/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./src/App.tsx"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js": /*!******************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js ***! \******************************************************************/ /*! exports provided: __assign, __awaiter, __extends, __generator, __read, __rest, __spread */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; function __rest(s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; } function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function __read(o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; } function __spread() { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; } //# sourceMappingURL=_tslib.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/app/ClientApplication.js": /*!************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/app/ClientApplication.js ***! \************************************************************************/ /*! exports provided: ClientApplication */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientApplication", function() { return ClientApplication; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _crypto_CryptoOps_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../crypto/CryptoOps.js */ "./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cache/BrowserCacheManager.js */ "./node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js"); /* harmony import */ var _config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config/Configuration.js */ "./node_modules/@azure/msal-browser/dist/config/Configuration.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-browser/dist/packageMetadata.js"); /* harmony import */ var _event_EventType_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../event/EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../error/BrowserConfigurationAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js"); /* harmony import */ var _event_EventHandler_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../event/EventHandler.js */ "./node_modules/@azure/msal-browser/dist/event/EventHandler.js"); /* harmony import */ var _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../interaction_client/PopupClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js"); /* harmony import */ var _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../interaction_client/RedirectClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js"); /* harmony import */ var _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../interaction_client/SilentIframeClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js"); /* harmony import */ var _interaction_client_SilentRefreshClient_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../interaction_client/SilentRefreshClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js"); /* harmony import */ var _cache_TokenCache_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../cache/TokenCache.js */ "./node_modules/@azure/msal-browser/dist/cache/TokenCache.js"); /* harmony import */ var _interaction_client_NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../interaction_client/NativeInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js"); /* harmony import */ var _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../broker/nativeBroker/NativeMessageHandler.js */ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js"); /* harmony import */ var _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../error/NativeAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js"); /* harmony import */ var _interaction_client_SilentCacheClient_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../interaction_client/SilentCacheClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js"); /* harmony import */ var _interaction_client_SilentAuthCodeClient_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../interaction_client/SilentAuthCodeClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _telemetry_BrowserPerformanceClient_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../telemetry/BrowserPerformanceClient.js */ "./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var ClientApplication = /** @class */ (function () { /** * @constructor * Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object * * Important attributes in the Configuration object for auth are: * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview * - authority: the authority URL for your application. * - redirect_uri: the uri of your application registered in the portal. * * In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens. * It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here} * If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com). * If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations. * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common. * To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers. * * In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/ * Full B2C functionality will be available in this library in future versions. * * @param configuration Object for the MSAL PublicClientApplication instance */ function ClientApplication(configuration) { /* * If loaded in an environment where window is not available, * set internal flag to false so that further requests fail. * This is to support server-side rendering environments. */ this.isBrowserEnvironment = typeof window !== "undefined"; // Set the configuration. this.config = Object(_config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__["buildConfiguration"])(configuration, this.isBrowserEnvironment); this.initialized = false; // Initialize logger this.logger = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["Logger"](this.config.system.loggerOptions, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["name"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["version"]); // Initialize the network module class. this.networkClient = this.config.system.networkClient; // Initialize the navigation client class. this.navigationClient = this.config.system.navigationClient; // Initialize redirectResponse Map this.redirectResponse = new Map(); // Initial hybrid spa map this.hybridAuthCodeResponses = new Map(); // Initialize performance client this.performanceClient = this.isBrowserEnvironment ? new _telemetry_BrowserPerformanceClient_js__WEBPACK_IMPORTED_MODULE_22__["BrowserPerformanceClient"](this.config.auth.clientId, this.config.auth.authority, this.logger, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["name"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["version"], this.config.telemetry.application, this.config.system.cryptoOptions) : new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["StubPerformanceClient"](this.config.auth.clientId, this.config.auth.authority, this.logger, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["name"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["version"], this.config.telemetry.application); // Initialize the crypto class. this.browserCrypto = this.isBrowserEnvironment ? new _crypto_CryptoOps_js__WEBPACK_IMPORTED_MODULE_1__["CryptoOps"](this.logger, this.performanceClient, this.config.system.cryptoOptions) : _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CRYPTO_IMPLEMENTATION"]; this.eventHandler = new _event_EventHandler_js__WEBPACK_IMPORTED_MODULE_10__["EventHandler"](this.logger, this.browserCrypto); // Initialize the browser storage class. this.browserStorage = this.isBrowserEnvironment ? new _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheManager"](this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) : Object(_cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__["DEFAULT_BROWSER_CACHE_MANAGER"])(this.config.auth.clientId, this.logger); // initialize in memory storage for native flows var nativeCacheOptions = { cacheLocation: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["BrowserCacheLocation"].MemoryStorage, temporaryCacheLocation: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["BrowserCacheLocation"].MemoryStorage, storeAuthStateInCookie: false, secureCookies: false, cacheMigrationEnabled: false, claimsBasedCachingEnabled: true }; this.nativeInternalStorage = new _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheManager"](this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger); // Initialize the token cache this.tokenCache = new _cache_TokenCache_js__WEBPACK_IMPORTED_MODULE_15__["TokenCache"](this.config, this.browserStorage, this.logger, this.browserCrypto); // Register listener functions this.trackPageVisibilityWithMeasurement = this.trackPageVisibilityWithMeasurement.bind(this); } /** * Initializer function to perform async startup tasks such as connecting to WAM extension */ ClientApplication.prototype.initialize = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var allowNativeBroker, initMeasurement, _a, e_1, claimsTokensRemovalMeasurement; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.logger.trace("initialize called"); if (this.initialized) { this.logger.info("initialize has already been called, exiting early."); return [2 /*return*/]; } allowNativeBroker = this.config.system.allowNativeBroker; initMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].InitializeClientApplication); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].INITIALIZE_START); if (!allowNativeBroker) return [3 /*break*/, 4]; _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); _a = this; return [4 /*yield*/, _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_17__["NativeMessageHandler"].createProvider(this.logger, this.config.system.nativeBrokerHandshakeTimeout, this.performanceClient)]; case 2: _a.nativeExtensionProvider = _b.sent(); return [3 /*break*/, 4]; case 3: e_1 = _b.sent(); this.logger.verbose(e_1); return [3 /*break*/, 4]; case 4: if (!!this.config.cache.claimsBasedCachingEnabled) return [3 /*break*/, 6]; this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"); claimsTokensRemovalMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].ClearTokensAndKeysWithClaims); return [4 /*yield*/, this.browserStorage.clearTokensAndKeysWithClaims()]; case 5: _b.sent(); claimsTokensRemovalMeasurement.endMeasurement({ success: true }); _b.label = 6; case 6: this.initialized = true; this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].INITIALIZE_END); initMeasurement.endMeasurement({ allowNativeBroker: allowNativeBroker, success: true }); return [2 /*return*/]; } }); }); }; // #region Redirect Flow /** * Event handler function which allows users to fire events after the PublicClientApplication object * has loaded during redirect flows. This should be invoked on all page loads involved in redirect * auth flows. * @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value. * @returns Token response or null. If the return value is null, then no auth redirect was detected. */ ClientApplication.prototype.handleRedirectPromise = function (hash) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var loggedInAccounts, redirectResponseKey, response, request, redirectResponse, nativeClient, correlationId, redirectClient; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.logger.verbose("handleRedirectPromise called"); // Block token acquisition before initialize has been called if native brokering is enabled _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized); loggedInAccounts = this.getAllAccounts(); if (this.isBrowserEnvironment) { redirectResponseKey = hash || _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["Constants"].EMPTY_STRING; response = this.redirectResponse.get(redirectResponseKey); if (typeof response === "undefined") { this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].HANDLE_REDIRECT_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect); this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"); request = this.browserStorage.getCachedNativeRequest(); redirectResponse = void 0; if (request && _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_17__["NativeMessageHandler"].isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !hash) { this.logger.trace("handleRedirectPromise - acquiring token from native platform"); nativeClient = new _interaction_client_NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_16__["NativeInteractionClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, request.accountId, this.nativeInternalStorage, request.correlationId); redirectResponse = nativeClient.handleRedirectPromise(); } else { this.logger.trace("handleRedirectPromise - acquiring token from web flow"); correlationId = this.browserStorage.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["TemporaryCacheKeys"].CORRELATION_ID, true) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["Constants"].EMPTY_STRING; redirectClient = this.createRedirectClient(correlationId); redirectResponse = redirectClient.handleRedirectPromise(hash); } response = redirectResponse.then(function (result) { if (result) { // Emit login event if number of accounts change var isLoggingIn = loggedInAccounts.length < _this.getAllAccounts().length; if (isLoggingIn) { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, result); _this.logger.verbose("handleRedirectResponse returned result, login success"); } else { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, result); _this.logger.verbose("handleRedirectResponse returned result, acquire token success"); } } _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].HANDLE_REDIRECT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect); return result; }).catch(function (e) { // Emit login event if there is an account if (loggedInAccounts.length > 0) { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, null, e); } else { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, null, e); } _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].HANDLE_REDIRECT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect); throw e; }); this.redirectResponse.set(redirectResponseKey, response); } else { this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"); } return [2 /*return*/, response]; } this.logger.verbose("handleRedirectPromise returns null, not browser environment"); return [2 /*return*/, null]; }); }); }; /** * Use when you want to obtain an access_token for your API by redirecting the user's browser window to the authorization endpoint. This function redirects * the page, so any code that follows this function will not execute. * * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function. * * @param request */ ClientApplication.prototype.acquireTokenRedirect = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId, isLoggedIn, result, nativeClient, redirectClient; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { correlationId = this.getRequestCorrelationId(request); this.logger.verbose("acquireTokenRedirect called", correlationId); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect); isLoggedIn = this.getAllAccounts().length > 0; if (isLoggedIn) { this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, request); } else { this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, request); } if (this.nativeExtensionProvider && this.canUseNative(request)) { nativeClient = new _interaction_client_NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_16__["NativeInteractionClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(request), this.nativeInternalStorage, request.correlationId); result = nativeClient.acquireTokenRedirect(request).catch(function (e) { if (e instanceof _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_18__["NativeAuthError"] && e.isFatal()) { _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt var redirectClient = _this.createRedirectClient(request.correlationId); return redirectClient.acquireToken(request); } else if (e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["InteractionRequiredAuthError"]) { _this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"); var redirectClient = _this.createRedirectClient(request.correlationId); return redirectClient.acquireToken(request); } _this.browserStorage.setInteractionInProgress(false); throw e; }); } else { redirectClient = this.createRedirectClient(request.correlationId); result = redirectClient.acquireToken(request); } return [2 /*return*/, result.catch(function (e) { // If logged in, emit acquire token events if (isLoggedIn) { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, null, e); } else { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect, null, e); } throw e; })]; }); }); }; // #endregion // #region Popup Flow /** * Use when you want to obtain an access_token for your API via opening a popup window in the user's browser * * @param request * * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised. */ ClientApplication.prototype.acquireTokenPopup = function (request) { var _this = this; var correlationId = this.getRequestCorrelationId(request); var atPopupMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].AcquireTokenPopup, correlationId); try { this.logger.verbose("acquireTokenPopup called", correlationId); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup); } catch (e) { // Since this function is syncronous we need to reject return Promise.reject(e); } // If logged in, emit acquire token events var loggedInAccounts = this.getAllAccounts(); if (loggedInAccounts.length > 0) { this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup, request); } else { this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup, request); } var result; if (this.canUseNative(request)) { result = this.acquireTokenNative(request, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].acquireTokenPopup).then(function (response) { _this.browserStorage.setInteractionInProgress(false); atPopupMeasurement.endMeasurement({ success: true, isNativeBroker: true, requestId: response.requestId }); return response; }).catch(function (e) { if (e instanceof _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_18__["NativeAuthError"] && e.isFatal()) { _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt var popupClient = _this.createPopupClient(request.correlationId); return popupClient.acquireToken(request); } else if (e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["InteractionRequiredAuthError"]) { _this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"); var popupClient = _this.createPopupClient(request.correlationId); return popupClient.acquireToken(request); } _this.browserStorage.setInteractionInProgress(false); throw e; }); } else { var popupClient = this.createPopupClient(request.correlationId); result = popupClient.acquireToken(request); } return result.then(function (result) { /* * If logged in, emit acquire token events */ var isLoggingIn = loggedInAccounts.length < _this.getAllAccounts().length; if (isLoggingIn) { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup, result); } else { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup, result); } atPopupMeasurement.addStaticFields({ accessTokenSize: result.accessToken.length, idTokenSize: result.idToken.length }); atPopupMeasurement.endMeasurement({ success: true, requestId: result.requestId }); return result; }).catch(function (e) { if (loggedInAccounts.length > 0) { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup, null, e); } else { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].LOGIN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup, null, e); } atPopupMeasurement.endMeasurement({ errorCode: e.errorCode, subErrorCode: e.subError, success: false }); // Since this function is syncronous we need to reject return Promise.reject(e); }); }; ClientApplication.prototype.trackPageVisibilityWithMeasurement = function () { var measurement = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement; if (!measurement) { return; } this.logger.info("Perf: Visibility change detected in ", measurement.event.name); measurement.increment({ visibilityChangeCount: 1, }); }; // #endregion // #region Silent Flow /** * This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work: * - Any browser using a form of Intelligent Tracking Prevention * - If there is not an established session with the service * * In these cases, the request must be done inside a popup or full frame redirect. * * For the cases where interaction is required, you cannot send a request with prompt=none. * * If your refresh token has expired, you can use this function to fetch a new set of tokens silently as long as * you session on the server still exists. * @param request {@link SsoSilentRequest} * * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised. */ ClientApplication.prototype.ssoSilent = function (request) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId, validRequest, result, silentIframeClient; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { correlationId = this.getRequestCorrelationId(request); validRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { // will be PromptValue.NONE or PromptValue.NO_SESSION prompt: request.prompt, correlationId: correlationId }); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent); this.ssoSilentMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].SsoSilent, correlationId); (_a = this.ssoSilentMeasurement) === null || _a === void 0 ? void 0 : _a.increment({ visibilityChangeCount: 0 }); document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement); this.logger.verbose("ssoSilent called", correlationId); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].SSO_SILENT_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, validRequest); if (this.canUseNative(validRequest)) { result = this.acquireTokenNative(validRequest, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].ssoSilent).catch(function (e) { // If native token acquisition fails for availability reasons fallback to standard flow if (e instanceof _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_18__["NativeAuthError"] && e.isFatal()) { _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt var silentIframeClient = _this.createSilentIframeClient(validRequest.correlationId); return silentIframeClient.acquireToken(validRequest); } throw e; }); } else { silentIframeClient = this.createSilentIframeClient(validRequest.correlationId); result = silentIframeClient.acquireToken(validRequest); } return [2 /*return*/, result.then(function (response) { var _a, _b; _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].SSO_SILENT_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, response); (_a = _this.ssoSilentMeasurement) === null || _a === void 0 ? void 0 : _a.addStaticFields({ accessTokenSize: response.accessToken.length, idTokenSize: response.idToken.length }); (_b = _this.ssoSilentMeasurement) === null || _b === void 0 ? void 0 : _b.endMeasurement({ success: true, isNativeBroker: response.fromNativeBroker, requestId: response.requestId }); return response; }).catch(function (e) { var _a; _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].SSO_SILENT_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, null, e); (_a = _this.ssoSilentMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({ errorCode: e.errorCode, subErrorCode: e.subError, success: false }); throw e; }).finally(function () { document.removeEventListener("visibilitychange", _this.trackPageVisibilityWithMeasurement); })]; }); }); }; /** * This function redeems an authorization code (passed as code) from the eSTS token endpoint. * This authorization code should be acquired server-side using a confidential client to acquire a spa_code. * This API is not indended for normal authorization code acquisition and redemption. * * Redemption of this authorization code will not require PKCE, as it was acquired by a confidential client. * * @param request {@link AuthorizationCodeRequest} * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised. */ ClientApplication.prototype.acquireTokenByCode = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId, atbcMeasurement, hybridAuthCode_1, response; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { correlationId = this.getRequestCorrelationId(request); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent); this.logger.trace("acquireTokenByCode called", correlationId); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_BY_CODE_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, request); atbcMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].AcquireTokenByCode, request.correlationId); try { if (request.code && request.nativeAccountId) { // Throw error in case server returns both spa_code and spa_accountid in exchange for auth code. throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_21__["BrowserAuthError"].createSpaCodeAndNativeAccountIdPresentError(); } else if (request.code) { hybridAuthCode_1 = request.code; response = this.hybridAuthCodeResponses.get(hybridAuthCode_1); if (!response) { this.logger.verbose("Initiating new acquireTokenByCode request", correlationId); response = this.acquireTokenByCodeAsync(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { correlationId: correlationId })) .then(function (result) { _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_BY_CODE_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, result); _this.hybridAuthCodeResponses.delete(hybridAuthCode_1); atbcMeasurement.addStaticFields({ accessTokenSize: result.accessToken.length, idTokenSize: result.idToken.length }); atbcMeasurement.endMeasurement({ success: true, isNativeBroker: result.fromNativeBroker, requestId: result.requestId }); return result; }) .catch(function (error) { _this.hybridAuthCodeResponses.delete(hybridAuthCode_1); _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_BY_CODE_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, null, error); atbcMeasurement.endMeasurement({ errorCode: error.errorCode, subErrorCode: error.subError, success: false }); throw error; }); this.hybridAuthCodeResponses.set(hybridAuthCode_1, response); } else { this.logger.verbose("Existing acquireTokenByCode request found", request.correlationId); atbcMeasurement.discardMeasurement(); } return [2 /*return*/, response]; } else if (request.nativeAccountId) { if (this.canUseNative(request, request.nativeAccountId)) { return [2 /*return*/, this.acquireTokenNative(request, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].acquireTokenByCode, request.nativeAccountId).catch(function (e) { // If native token acquisition fails for availability reasons fallback to standard flow if (e instanceof _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_18__["NativeAuthError"] && e.isFatal()) { _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt } throw e; })]; } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_21__["BrowserAuthError"].createUnableToAcquireTokenFromNativePlatformError(); } } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_21__["BrowserAuthError"].createAuthCodeOrNativeAccountIdRequiredError(); } } catch (e) { this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_8__["EventType"].ACQUIRE_TOKEN_BY_CODE_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Silent, null, e); atbcMeasurement.endMeasurement({ errorCode: e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthError"] && e.errorCode || undefined, subErrorCode: e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthError"] && e.subError || undefined, success: false }); throw e; } return [2 /*return*/]; }); }); }; /** * Creates a SilentAuthCodeClient to redeem an authorization code. * @param request * @returns Result of the operation to redeem the authorization code */ ClientApplication.prototype.acquireTokenByCodeAsync = function (request) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var silentAuthCodeClient, silentTokenResult; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.logger.trace("acquireTokenByCodeAsync called", request.correlationId); this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].AcquireTokenByCodeAsync, request.correlationId); (_a = this.acquireTokenByCodeAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.increment({ visibilityChangeCount: 0 }); document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement); silentAuthCodeClient = this.createSilentAuthCodeClient(request.correlationId); return [4 /*yield*/, silentAuthCodeClient.acquireToken(request).then(function (response) { var _a; (_a = _this.acquireTokenByCodeAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({ success: true, fromCache: response.fromCache, isNativeBroker: response.fromNativeBroker, requestId: response.requestId }); return response; }).catch(function (tokenRenewalError) { var _a; (_a = _this.acquireTokenByCodeAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({ errorCode: tokenRenewalError.errorCode, subErrorCode: tokenRenewalError.subError, success: false }); throw tokenRenewalError; }).finally(function () { document.removeEventListener("visibilitychange", _this.trackPageVisibilityWithMeasurement); })]; case 1: silentTokenResult = _b.sent(); return [2 /*return*/, silentTokenResult]; } }); }); }; /** * Attempt to acquire an access token from the cache * @param silentCacheClient SilentCacheClient * @param commonRequest CommonSilentFlowRequest * @param silentRequest SilentRequest * @returns A promise that, when resolved, returns the access token */ ClientApplication.prototype.acquireTokenFromCache = function (silentCacheClient, commonRequest, silentRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].AcquireTokenFromCache, commonRequest.correlationId); switch (silentRequest.cacheLookupPolicy) { case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].Default: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].AccessToken: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].AccessTokenAndRefreshToken: return [2 /*return*/, silentCacheClient.acquireToken(commonRequest)]; default: throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createRefreshRequiredError(); } return [2 /*return*/]; }); }); }; /** * Attempt to acquire an access token via a refresh token * @param commonRequest CommonSilentFlowRequest * @param silentRequest SilentRequest * @returns A promise that, when resolved, returns the access token */ ClientApplication.prototype.acquireTokenByRefreshToken = function (commonRequest, silentRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var silentRefreshClient; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].AcquireTokenByRefreshToken, commonRequest.correlationId); switch (silentRequest.cacheLookupPolicy) { case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].Default: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].AccessTokenAndRefreshToken: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].RefreshToken: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["CacheLookupPolicy"].RefreshTokenAndNetwork: silentRefreshClient = this.createSilentRefreshClient(commonRequest.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].SilentRefreshClientAcquireToken, commonRequest.correlationId); return [2 /*return*/, silentRefreshClient.acquireToken(commonRequest)]; default: throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createRefreshRequiredError(); } return [2 /*return*/]; }); }); }; /** * Attempt to acquire an access token via an iframe * @param request CommonSilentFlowRequest * @returns A promise that, when resolved, returns the access token */ ClientApplication.prototype.acquireTokenBySilentIframe = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var silentIframeClient; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].AcquireTokenBySilentIframe, request.correlationId); silentIframeClient = this.createSilentIframeClient(request.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].SilentIframeClientAcquireToken, request.correlationId); return [2 /*return*/, silentIframeClient.acquireToken(request)]; }); }); }; // #endregion // #region Logout /** * Deprecated logout function. Use logoutRedirect or logoutPopup instead * @param logoutRequest * @deprecated */ ClientApplication.prototype.logout = function (logoutRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { correlationId = this.getRequestCorrelationId(logoutRequest); this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.", correlationId); return [2 /*return*/, this.logoutRedirect(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ correlationId: correlationId }, logoutRequest))]; }); }); }; /** * Use to log out the current user, and redirect the user to the postLogoutRedirectUri. * Default behaviour is to redirect the user to `window.location.href`. * @param logoutRequest */ ClientApplication.prototype.logoutRedirect = function (logoutRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId, redirectClient; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { correlationId = this.getRequestCorrelationId(logoutRequest); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect); redirectClient = this.createRedirectClient(correlationId); return [2 /*return*/, redirectClient.logout(logoutRequest)]; }); }); }; /** * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server * @param logoutRequest */ ClientApplication.prototype.logoutPopup = function (logoutRequest) { try { var correlationId = this.getRequestCorrelationId(logoutRequest); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup); var popupClient = this.createPopupClient(correlationId); return popupClient.logout(logoutRequest); } catch (e) { // Since this function is syncronous we need to reject return Promise.reject(e); } }; // #endregion // #region Account APIs /** * Returns all accounts that MSAL currently has data for. * (the account object is created at the time of successful login) * or empty array when no accounts are found * @returns Array of account objects in cache */ ClientApplication.prototype.getAllAccounts = function () { this.logger.verbose("getAllAccounts called"); return this.isBrowserEnvironment ? this.browserStorage.getAllAccounts() : []; }; /** * Returns the signed in account matching username. * (the account object is created at the time of successful login) * or null when no matching account is found. * This API is provided for convenience but getAccountById should be used for best reliability * @param username * @returns The account object stored in MSAL */ ClientApplication.prototype.getAccountByUsername = function (username) { this.logger.trace("getAccountByUsername called"); if (!username) { this.logger.warning("getAccountByUsername: No username provided"); return null; } var account = this.browserStorage.getAccountInfoFilteredBy({ username: username }); if (account) { this.logger.verbose("getAccountByUsername: Account matching username found, returning"); this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: " + username); return account; } else { this.logger.verbose("getAccountByUsername: No matching account found, returning null"); return null; } }; /** * Returns the signed in account matching homeAccountId. * (the account object is created at the time of successful login) * or null when no matching account is found * @param homeAccountId * @returns The account object stored in MSAL */ ClientApplication.prototype.getAccountByHomeId = function (homeAccountId) { this.logger.trace("getAccountByHomeId called"); if (!homeAccountId) { this.logger.warning("getAccountByHomeId: No homeAccountId provided"); return null; } var account = this.browserStorage.getAccountInfoFilteredBy({ homeAccountId: homeAccountId }); if (account) { this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"); this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: " + homeAccountId); return account; } else { this.logger.verbose("getAccountByHomeId: No matching account found, returning null"); return null; } }; /** * Returns the signed in account matching localAccountId. * (the account object is created at the time of successful login) * or null when no matching account is found * @param localAccountId * @returns The account object stored in MSAL */ ClientApplication.prototype.getAccountByLocalId = function (localAccountId) { this.logger.trace("getAccountByLocalId called"); if (!localAccountId) { this.logger.warning("getAccountByLocalId: No localAccountId provided"); return null; } var account = this.browserStorage.getAccountInfoFilteredBy({ localAccountId: localAccountId }); if (account) { this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"); this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: " + localAccountId); return account; } else { this.logger.verbose("getAccountByLocalId: No matching account found, returning null"); return null; } }; /** * Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account. * @param account */ ClientApplication.prototype.setActiveAccount = function (account) { this.browserStorage.setActiveAccount(account); }; /** * Gets the currently active account */ ClientApplication.prototype.getActiveAccount = function () { return this.browserStorage.getActiveAccount(); }; // #endregion // #region Helpers /** * Helper to validate app environment before making an auth request * * @protected * @param {InteractionType} interactionType What kind of interaction is being used * @param {boolean} [setInteractionInProgress=true] Whether to set interaction in progress temp cache flag */ ClientApplication.prototype.preflightBrowserEnvironmentCheck = function (interactionType, setInteractionInProgress) { if (setInteractionInProgress === void 0) { setInteractionInProgress = true; } this.logger.verbose("preflightBrowserEnvironmentCheck started"); // Block request if not in browser environment _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockNonBrowserEnvironment(this.isBrowserEnvironment); // Block redirects if in an iframe _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockRedirectInIframe(interactionType, this.config.system.allowRedirectInIframe); // Block auth requests inside a hidden iframe _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockReloadInHiddenIframes(); // Block redirectUri opened in a popup from calling MSAL APIs _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockAcquireTokenInPopups(); // Block token acquisition before initialize has been called if native brokering is enabled _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized); // Block redirects if memory storage is enabled but storeAuthStateInCookie is not if (interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect && this.config.cache.cacheLocation === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["BrowserCacheLocation"].MemoryStorage && !this.config.cache.storeAuthStateInCookie) { throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_9__["BrowserConfigurationAuthError"].createInMemoryRedirectUnavailableError(); } if (interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Redirect || interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["InteractionType"].Popup) { this.preflightInteractiveRequest(setInteractionInProgress); } }; /** * Preflight check for interactive requests * * @protected * @param {boolean} setInteractionInProgress Whether to set interaction in progress temp cache flag */ ClientApplication.prototype.preflightInteractiveRequest = function (setInteractionInProgress) { this.logger.verbose("preflightInteractiveRequest called, validating app environment"); // block the reload if it occurred inside a hidden iframe _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserUtils"].blockReloadInHiddenIframes(); // Set interaction in progress temporary cache or throw if alread set. if (setInteractionInProgress) { this.browserStorage.setInteractionInProgress(true); } }; /** * Acquire a token from native device (e.g. WAM) * @param request */ ClientApplication.prototype.acquireTokenNative = function (request, apiId, accountId) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var nativeClient; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.logger.trace("acquireTokenNative called"); if (!this.nativeExtensionProvider) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_21__["BrowserAuthError"].createNativeConnectionNotEstablishedError(); } nativeClient = new _interaction_client_NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_16__["NativeInteractionClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, apiId, this.performanceClient, this.nativeExtensionProvider, accountId || this.getNativeAccountId(request), this.nativeInternalStorage, request.correlationId); return [2 /*return*/, nativeClient.acquireToken(request)]; }); }); }; /** * Returns boolean indicating if this request can use the native broker * @param request */ ClientApplication.prototype.canUseNative = function (request, accountId) { this.logger.trace("canUseNative called"); if (!_broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_17__["NativeMessageHandler"].isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme)) { this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"); return false; } if (request.prompt) { switch (request.prompt) { case _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PromptValue"].NONE: case _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PromptValue"].CONSENT: case _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PromptValue"].LOGIN: this.logger.trace("canUseNative: prompt is compatible with native flow"); break; default: this.logger.trace("canUseNative: prompt = " + request.prompt + " is not compatible with native flow, returning false"); return false; } } if (!accountId && !this.getNativeAccountId(request)) { this.logger.trace("canUseNative: nativeAccountId is not available, returning false"); return false; } return true; }; /** * Get the native accountId from the account * @param request * @returns */ ClientApplication.prototype.getNativeAccountId = function (request) { var account = request.account || this.browserStorage.getAccountInfoByHints(request.loginHint, request.sid) || this.getActiveAccount(); return account && account.nativeAccountId || ""; }; /** * Returns new instance of the Popup Interaction Client * @param correlationId */ ClientApplication.prototype.createPopupClient = function (correlationId) { return new _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_11__["PopupClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, correlationId); }; /** * Returns new instance of the Redirect Interaction Client * @param correlationId */ ClientApplication.prototype.createRedirectClient = function (correlationId) { return new _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_12__["RedirectClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, correlationId); }; /** * Returns new instance of the Silent Iframe Interaction Client * @param correlationId */ ClientApplication.prototype.createSilentIframeClient = function (correlationId) { return new _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_13__["SilentIframeClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].ssoSilent, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, correlationId); }; /** * Returns new instance of the Silent Cache Interaction Client */ ClientApplication.prototype.createSilentCacheClient = function (correlationId) { return new _interaction_client_SilentCacheClient_js__WEBPACK_IMPORTED_MODULE_19__["SilentCacheClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeExtensionProvider, correlationId); }; /** * Returns new instance of the Silent Refresh Interaction Client */ ClientApplication.prototype.createSilentRefreshClient = function (correlationId) { return new _interaction_client_SilentRefreshClient_js__WEBPACK_IMPORTED_MODULE_14__["SilentRefreshClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeExtensionProvider, correlationId); }; /** * Returns new instance of the Silent AuthCode Interaction Client */ ClientApplication.prototype.createSilentAuthCodeClient = function (correlationId) { return new _interaction_client_SilentAuthCodeClient_js__WEBPACK_IMPORTED_MODULE_20__["SilentAuthCodeClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_5__["ApiId"].acquireTokenByCode, this.performanceClient, this.nativeExtensionProvider, correlationId); }; /** * Adds event callbacks to array * @param callback */ ClientApplication.prototype.addEventCallback = function (callback) { return this.eventHandler.addEventCallback(callback); }; /** * Removes callback with provided id from callback array * @param callbackId */ ClientApplication.prototype.removeEventCallback = function (callbackId) { this.eventHandler.removeEventCallback(callbackId); }; /** * Registers a callback to receive performance events. * * @param {PerformanceCallbackFunction} callback * @returns {string} */ ClientApplication.prototype.addPerformanceCallback = function (callback) { return this.performanceClient.addPerformanceCallback(callback); }; /** * Removes a callback registered with addPerformanceCallback. * * @param {string} callbackId * @returns {boolean} */ ClientApplication.prototype.removePerformanceCallback = function (callbackId) { return this.performanceClient.removePerformanceCallback(callbackId); }; /** * Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window */ ClientApplication.prototype.enableAccountStorageEvents = function () { this.eventHandler.enableAccountStorageEvents(); }; /** * Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window */ ClientApplication.prototype.disableAccountStorageEvents = function () { this.eventHandler.disableAccountStorageEvents(); }; /** * Gets the token cache for the application. */ ClientApplication.prototype.getTokenCache = function () { return this.tokenCache; }; /** * Returns the logger instance */ ClientApplication.prototype.getLogger = function () { return this.logger; }; /** * Replaces the default logger set in configurations with new Logger with new configurations * @param logger Logger instance */ ClientApplication.prototype.setLogger = function (logger) { this.logger = logger; }; /** * Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc. * @param sku * @param version */ ClientApplication.prototype.initializeWrapperLibrary = function (sku, version) { // Validate the SKU passed in is one we expect this.browserStorage.setWrapperMetadata(sku, version); }; /** * Sets navigation client * @param navigationClient */ ClientApplication.prototype.setNavigationClient = function (navigationClient) { this.navigationClient = navigationClient; }; /** * Returns the configuration object */ ClientApplication.prototype.getConfiguration = function () { return this.config; }; /** * Generates a correlation id for a request if none is provided. * * @protected * @param {?Partial} [request] * @returns {string} */ ClientApplication.prototype.getRequestCorrelationId = function (request) { if (request === null || request === void 0 ? void 0 : request.correlationId) { return request.correlationId; } if (this.isBrowserEnvironment) { return this.browserCrypto.createNewGuid(); } /* * Included for fallback for non-browser environments, * and to ensure this method always returns a string. */ return _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["Constants"].EMPTY_STRING; }; return ClientApplication; }()); //# sourceMappingURL=ClientApplication.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.js": /*!*******************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.js ***! \*******************************************************************************/ /*! exports provided: stubbedPublicClientApplication */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stubbedPublicClientApplication", function() { return stubbedPublicClientApplication; }); /* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/BrowserConfigurationAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var stubbedPublicClientApplication = { initialize: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, acquireTokenPopup: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, acquireTokenRedirect: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, acquireTokenSilent: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, acquireTokenByCode: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, getAllAccounts: function () { return []; }, getAccountByHomeId: function () { return null; }, getAccountByUsername: function () { return null; }, getAccountByLocalId: function () { return null; }, handleRedirectPromise: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, loginPopup: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, loginRedirect: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, logout: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, logoutRedirect: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, logoutPopup: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, ssoSilent: function () { return Promise.reject(_error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError()); }, addEventCallback: function () { return null; }, removeEventCallback: function () { return; }, addPerformanceCallback: function () { return ""; }, removePerformanceCallback: function () { return false; }, enableAccountStorageEvents: function () { return; }, disableAccountStorageEvents: function () { return; }, getTokenCache: function () { throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError(); }, getLogger: function () { throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError(); }, setLogger: function () { return; }, setActiveAccount: function () { return; }, getActiveAccount: function () { return null; }, initializeWrapperLibrary: function () { return; }, setNavigationClient: function () { return; }, getConfiguration: function () { throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStubPcaInstanceCalledError(); } }; //# sourceMappingURL=IPublicClientApplication.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/app/PublicClientApplication.js": /*!******************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/app/PublicClientApplication.js ***! \******************************************************************************/ /*! exports provided: PublicClientApplication */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PublicClientApplication", function() { return PublicClientApplication; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _ClientApplication_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ClientApplication.js */ "./node_modules/@azure/msal-browser/dist/app/ClientApplication.js"); /* harmony import */ var _event_EventType_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../event/EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../error/NativeAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js"); /* harmony import */ var _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../broker/nativeBroker/NativeMessageHandler.js */ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications * to obtain JWT tokens as described in the OAuth 2.0 Authorization Code Flow with PKCE specification. */ var PublicClientApplication = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PublicClientApplication, _super); /** * @constructor * Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object * * Important attributes in the Configuration object for auth are: * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview * - authority: the authority URL for your application. * - redirect_uri: the uri of your application registered in the portal. * * In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens. * It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here} * If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com). * If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations. * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common. * To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers. * * In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/ * Full B2C functionality will be available in this library in future versions. * * @param configuration object for the MSAL PublicClientApplication instance */ function PublicClientApplication(configuration) { var _this = _super.call(this, configuration) || this; _this.astsAsyncMeasurement = undefined; _this.activeSilentTokenRequests = new Map(); // Register listener functions _this.trackPageVisibility = _this.trackPageVisibility.bind(_this); return _this; } /** * Use when initiating the login process by redirecting the user's browser to the authorization endpoint. This function redirects the page, so * any code that follows this function will not execute. * * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function. * * @param request */ PublicClientApplication.prototype.loginRedirect = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { correlationId = this.getRequestCorrelationId(request); this.logger.verbose("loginRedirect called", correlationId); return [2 /*return*/, this.acquireTokenRedirect(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ correlationId: correlationId }, (request || _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_REQUEST"])))]; }); }); }; /** * Use when initiating the login process via opening a popup window in the user's browser * * @param request * * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised. */ PublicClientApplication.prototype.loginPopup = function (request) { var correlationId = this.getRequestCorrelationId(request); this.logger.verbose("loginPopup called", correlationId); return this.acquireTokenPopup(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ correlationId: correlationId }, (request || _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_REQUEST"]))); }; /** * Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made. * * @param {@link (SilentRequest:type)} * @returns {Promise.} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse} object */ PublicClientApplication.prototype.acquireTokenSilent = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId, atsMeasurement, account, thumbprint, silentRequestKey, cachedResponse, response; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { correlationId = this.getRequestCorrelationId(request); atsMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenSilent, correlationId); atsMeasurement.addStaticFields({ cacheLookupPolicy: request.cacheLookupPolicy }); this.preflightBrowserEnvironmentCheck(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["InteractionType"].Silent); this.logger.verbose("acquireTokenSilent called", correlationId); account = request.account || this.getActiveAccount(); if (!account) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthError"].createNoAccountError(); } thumbprint = { clientId: this.config.auth.clientId, authority: request.authority || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, scopes: request.scopes, homeAccountIdentifier: account.homeAccountId, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; silentRequestKey = JSON.stringify(thumbprint); cachedResponse = this.activeSilentTokenRequests.get(silentRequestKey); if (typeof cachedResponse === "undefined") { this.logger.verbose("acquireTokenSilent called for the first time, storing active request", correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenSilentAsync, correlationId); response = this.acquireTokenSilentAsync(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { correlationId: correlationId }), account) .then(function (result) { _this.activeSilentTokenRequests.delete(silentRequestKey); atsMeasurement.addStaticFields({ accessTokenSize: result.accessToken.length, idTokenSize: result.idToken.length }); atsMeasurement.endMeasurement({ success: true, fromCache: result.fromCache, isNativeBroker: result.fromNativeBroker, cacheLookupPolicy: request.cacheLookupPolicy, requestId: result.requestId, }); return result; }) .catch(function (error) { _this.activeSilentTokenRequests.delete(silentRequestKey); atsMeasurement.endMeasurement({ errorCode: error.errorCode, subErrorCode: error.subError, success: false }); throw error; }); this.activeSilentTokenRequests.set(silentRequestKey, response); return [2 /*return*/, response]; } else { this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", correlationId); // Discard measurements for memoized calls, as they are usually only a couple of ms and will artificially deflate metrics atsMeasurement.discardMeasurement(); return [2 /*return*/, cachedResponse]; } }); }); }; PublicClientApplication.prototype.trackPageVisibility = function () { if (!this.astsAsyncMeasurement) { return; } this.logger.info("Perf: Visibility change detected"); this.astsAsyncMeasurement.increment({ visibilityChangeCount: 1, }); }; /** * Silently acquire an access token for a given set of scopes. Will use cached token if available, otherwise will attempt to acquire a new token from the network via refresh token. * @param {@link (SilentRequest:type)} * @param {@link (AccountInfo:type)} * @returns {Promise.} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse} */ PublicClientApplication.prototype.acquireTokenSilentAsync = function (request, account) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var result, silentRequest, silentCacheClient, silentRequest_1, requestWithCLP_1; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenSilentAsync, request.correlationId); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_4__["EventType"].ACQUIRE_TOKEN_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["InteractionType"].Silent, request); this.astsAsyncMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenSilentAsync, request.correlationId); (_a = this.astsAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.increment({ visibilityChangeCount: 0 }); document.addEventListener("visibilitychange", this.trackPageVisibility); if (!(_broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_7__["NativeMessageHandler"].isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme) && account.nativeAccountId)) return [3 /*break*/, 1]; this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"); silentRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { account: account }); result = this.acquireTokenNative(silentRequest, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["ApiId"].acquireTokenSilent_silentFlow).catch(function (e) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { var silentIframeClient; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { // If native token acquisition fails for availability reasons fallback to web flow if (e instanceof _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_6__["NativeAuthError"] && e.isFatal()) { this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"); this.nativeExtensionProvider = undefined; // Prevent future requests from continuing to attempt silentIframeClient = this.createSilentIframeClient(request.correlationId); return [2 /*return*/, silentIframeClient.acquireToken(request)]; } throw e; }); }); }); return [3 /*break*/, 3]; case 1: this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"); silentCacheClient = this.createSilentCacheClient(request.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].InitializeSilentRequest, request.correlationId); return [4 /*yield*/, silentCacheClient.initializeSilentRequest(request, account)]; case 2: silentRequest_1 = _b.sent(); requestWithCLP_1 = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { // set the request's CacheLookupPolicy to Default if it was not optionally passed in cacheLookupPolicy: request.cacheLookupPolicy || _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["CacheLookupPolicy"].Default }); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenFromCache, silentRequest_1.correlationId); result = this.acquireTokenFromCache(silentCacheClient, silentRequest_1, requestWithCLP_1).catch(function (cacheError) { if (requestWithCLP_1.cacheLookupPolicy === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["CacheLookupPolicy"].AccessToken) { throw cacheError; } // block the reload if it occurred inside a hidden iframe _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_8__["BrowserUtils"].blockReloadInHiddenIframes(); _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_4__["EventType"].ACQUIRE_TOKEN_NETWORK_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["InteractionType"].Silent, silentRequest_1); _this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenByRefreshToken, silentRequest_1.correlationId); return _this.acquireTokenByRefreshToken(silentRequest_1, requestWithCLP_1).catch(function (refreshTokenError) { var isServerError = refreshTokenError instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ServerError"]; var isInteractionRequiredError = refreshTokenError instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["InteractionRequiredAuthError"]; var rtNotFound = (refreshTokenError.errorCode === _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["InteractionRequiredAuthErrorMessage"].noTokensFoundError.code); var isInvalidGrantError = (refreshTokenError.errorCode === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["BrowserConstants"].INVALID_GRANT_ERROR); if ((!isServerError || !isInvalidGrantError || isInteractionRequiredError || requestWithCLP_1.cacheLookupPolicy === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["CacheLookupPolicy"].AccessTokenAndRefreshToken || requestWithCLP_1.cacheLookupPolicy === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["CacheLookupPolicy"].RefreshToken) && (requestWithCLP_1.cacheLookupPolicy !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["CacheLookupPolicy"].Skip) && !rtNotFound) { throw refreshTokenError; } _this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", request.correlationId); _this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AcquireTokenBySilentIframe, silentRequest_1.correlationId); return _this.acquireTokenBySilentIframe(silentRequest_1); }); }); _b.label = 3; case 3: return [2 /*return*/, result.then(function (response) { var _a; _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_4__["EventType"].ACQUIRE_TOKEN_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["InteractionType"].Silent, response); (_a = _this.astsAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({ success: true, fromCache: response.fromCache, isNativeBroker: response.fromNativeBroker, requestId: response.requestId }); return response; }).catch(function (tokenRenewalError) { var _a; _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_4__["EventType"].ACQUIRE_TOKEN_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["InteractionType"].Silent, null, tokenRenewalError); (_a = _this.astsAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({ errorCode: tokenRenewalError.errorCode, subErrorCode: tokenRenewalError.subError, success: false }); throw tokenRenewalError; }).finally(function () { document.removeEventListener("visibilitychange", _this.trackPageVisibility); })]; } }); }); }; return PublicClientApplication; }(_ClientApplication_js__WEBPACK_IMPORTED_MODULE_3__["ClientApplication"])); //# sourceMappingURL=PublicClientApplication.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js ***! \*******************************************************************************************/ /*! exports provided: NativeMessageHandler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeMessageHandler", function() { return NativeMessageHandler; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../error/NativeAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var NativeMessageHandler = /** @class */ (function () { function NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient, extensionId) { this.logger = logger; this.handshakeTimeoutMs = handshakeTimeoutMs; this.extensionId = extensionId; this.resolvers = new Map(); // Used for non-handshake messages this.handshakeResolvers = new Map(); // Used for handshake messages this.responseId = 0; this.messageChannel = new MessageChannel(); this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound this.performanceClient = performanceClient; this.handshakeEvent = performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].NativeMessageHandlerHandshake); } /** * Sends a given message to the extension and resolves with the extension response * @param body */ NativeMessageHandler.prototype.sendMessage = function (body) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var req; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.logger.trace("NativeMessageHandler - sendMessage called."); req = { channel: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeConstants"].CHANNEL_ID, extensionId: this.extensionId, responseId: this.responseId++, body: body }; this.logger.trace("NativeMessageHandler - Sending request to browser extension"); this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: " + JSON.stringify(req)); this.messageChannel.port1.postMessage(req); return [2 /*return*/, new Promise(function (resolve, reject) { _this.resolvers.set(req.responseId, { resolve: resolve, reject: reject }); })]; }); }); }; /** * Returns an instance of the MessageHandler that has successfully established a connection with an extension * @param {Logger} logger * @param {number} handshakeTimeoutMs * @param {IPerformanceClient} performanceClient */ NativeMessageHandler.createProvider = function (logger, handshakeTimeoutMs, performanceClient) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var preferredProvider, backupProvider; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: logger.trace("NativeMessageHandler - createProvider called."); _a.label = 1; case 1: _a.trys.push([1, 3, , 5]); preferredProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeConstants"].PREFERRED_EXTENSION_ID); return [4 /*yield*/, preferredProvider.sendHandshakeRequest()]; case 2: _a.sent(); return [2 /*return*/, preferredProvider]; case 3: _a.sent(); backupProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient); return [4 /*yield*/, backupProvider.sendHandshakeRequest()]; case 4: _a.sent(); return [2 /*return*/, backupProvider]; case 5: return [2 /*return*/]; } }); }); }; /** * Send handshake request helper. */ NativeMessageHandler.prototype.sendHandshakeRequest = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var req; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."); // Register this event listener before sending handshake window.addEventListener("message", this.windowListener, false); // false is important, because content script message processing should work first req = { channel: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeConstants"].CHANNEL_ID, extensionId: this.extensionId, responseId: this.responseId++, body: { method: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeExtensionMethod"].HandshakeRequest } }; this.handshakeEvent.addStaticFields({ extensionId: this.extensionId, extensionHandshakeTimeoutMs: this.handshakeTimeoutMs }); this.messageChannel.port1.onmessage = function (event) { _this.onChannelMessage(event); }; window.postMessage(req, window.origin, [this.messageChannel.port2]); return [2 /*return*/, new Promise(function (resolve, reject) { _this.handshakeResolvers.set(req.responseId, { resolve: resolve, reject: reject }); _this.timeoutId = window.setTimeout(function () { /* * Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe. * This typically suggests an event handler stopped propagation of the Handshake request but did not respond to it on the MessageChannel port */ window.removeEventListener("message", _this.windowListener, false); _this.messageChannel.port1.close(); _this.messageChannel.port2.close(); _this.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: true, success: false }); reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__["BrowserAuthError"].createNativeHandshakeTimeoutError()); _this.handshakeResolvers.delete(req.responseId); }, _this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here })]; }); }); }; /** * Invoked when a message is posted to the window. If a handshake request is received it means the extension is not installed. * @param event */ NativeMessageHandler.prototype.onWindowMessage = function (event) { this.logger.trace("NativeMessageHandler - onWindowMessage called"); // We only accept messages from ourselves if (event.source !== window) { return; } var request = event.data; if (!request.channel || request.channel !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeConstants"].CHANNEL_ID) { return; } if (request.extensionId && request.extensionId !== this.extensionId) { return; } if (request.body.method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeExtensionMethod"].HandshakeRequest) { // If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed this.logger.verbose(request.extensionId ? "Extension with id: " + request.extensionId + " not installed" : "No extension installed"); clearTimeout(this.timeoutId); this.messageChannel.port1.close(); this.messageChannel.port2.close(); window.removeEventListener("message", this.windowListener, false); var handshakeResolver = this.handshakeResolvers.get(request.responseId); if (handshakeResolver) { this.handshakeEvent.endMeasurement({ success: false, extensionInstalled: false }); handshakeResolver.reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__["BrowserAuthError"].createNativeExtensionNotInstalledError()); } } }; /** * Invoked when a message is received from the extension on the MessageChannel port * @param event */ NativeMessageHandler.prototype.onChannelMessage = function (event) { this.logger.trace("NativeMessageHandler - onChannelMessage called."); var request = event.data; var resolver = this.resolvers.get(request.responseId); var handshakeResolver = this.handshakeResolvers.get(request.responseId); try { var method = request.body.method; if (method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeExtensionMethod"].Response) { if (!resolver) { return; } var response = request.body.response; this.logger.trace("NativeMessageHandler - Received response from browser extension"); this.logger.tracePii("NativeMessageHandler - Received response from browser extension: " + JSON.stringify(response)); if (response.status !== "Success") { resolver.reject(_error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_3__["NativeAuthError"].createError(response.code, response.description, response.ext)); } else if (response.result) { if (response.result["code"] && response.result["description"]) { resolver.reject(_error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_3__["NativeAuthError"].createError(response.result["code"], response.result["description"], response.result["ext"])); } else { resolver.resolve(response.result); } } else { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthError"].createUnexpectedError("Event does not contain result."); } this.resolvers.delete(request.responseId); } else if (method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["NativeExtensionMethod"].HandshakeResponse) { if (!handshakeResolver) { return; } clearTimeout(this.timeoutId); // Clear setTimeout window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener this.extensionId = request.extensionId; this.extensionVersion = request.body.version; this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: " + this.extensionId); this.handshakeEvent.endMeasurement({ extensionInstalled: true, success: true }); handshakeResolver.resolve(); this.handshakeResolvers.delete(request.responseId); } // Do nothing if method is not Response or HandshakeResponse } catch (err) { this.logger.error("Error parsing response from WAM Extension"); this.logger.errorPii("Error parsing response from WAM Extension: " + err.toString()); this.logger.errorPii("Unable to parse " + event); if (resolver) { resolver.reject(err); } else if (handshakeResolver) { handshakeResolver.reject(err); } } }; /** * Returns the Id for the browser extension this handler is communicating with * @returns */ NativeMessageHandler.prototype.getExtensionId = function () { return this.extensionId; }; /** * Returns the version for the browser extension this handler is communicating with * @returns */ NativeMessageHandler.prototype.getExtensionVersion = function () { return this.extensionVersion; }; /** * Returns boolean indicating whether or not the request should attempt to use native broker * @param logger * @param config * @param nativeExtensionProvider * @param authenticationScheme */ NativeMessageHandler.isNativeAvailable = function (config, logger, nativeExtensionProvider, authenticationScheme) { logger.trace("isNativeAvailable called"); if (!config.system.allowNativeBroker) { logger.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"); // Developer disabled WAM return false; } if (!nativeExtensionProvider) { logger.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"); // Extension is not available return false; } if (authenticationScheme) { switch (authenticationScheme) { case _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthenticationScheme"].BEARER: case _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthenticationScheme"].POP: logger.trace("isNativeAvailable: authenticationScheme is supported, returning true"); return true; default: logger.trace("isNativeAvailable: authenticationScheme is not supported, returning false"); return false; } } return true; }; return NativeMessageHandler; }()); //# sourceMappingURL=NativeMessageHandler.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js": /*!***************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js ***! \***************************************************************************/ /*! exports provided: AsyncMemoryStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncMemoryStorage", function() { return AsyncMemoryStorage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _DatabaseStorage_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DatabaseStorage.js */ "./node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.js"); /* harmony import */ var _MemoryStorage_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MemoryStorage.js */ "./node_modules/@azure/msal-browser/dist/cache/MemoryStorage.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This class allows MSAL to store artifacts asynchronously using the DatabaseStorage IndexedDB wrapper, * backed up with the more volatile MemoryStorage object for cases in which IndexedDB may be unavailable. */ var AsyncMemoryStorage = /** @class */ (function () { function AsyncMemoryStorage(logger, storeName) { this.inMemoryCache = new _MemoryStorage_js__WEBPACK_IMPORTED_MODULE_3__["MemoryStorage"](); this.indexedDBCache = new _DatabaseStorage_js__WEBPACK_IMPORTED_MODULE_2__["DatabaseStorage"](); this.logger = logger; this.storeName = storeName; } AsyncMemoryStorage.prototype.handleDatabaseAccessError = function (error) { if (error instanceof _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"] && error.errorCode === _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthErrorMessage"].databaseUnavailable.code) { this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts."); } else { throw error; } }; /** * Get the item matching the given key. Tries in-memory cache first, then in the asynchronous * storage object if item isn't found in-memory. * @param key */ AsyncMemoryStorage.prototype.getItem = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var item, e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: item = this.inMemoryCache.getItem(key); if (!!item) return [3 /*break*/, 4]; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."); return [4 /*yield*/, this.indexedDBCache.getItem(key)]; case 2: return [2 /*return*/, _a.sent()]; case 3: e_1 = _a.sent(); this.handleDatabaseAccessError(e_1); return [3 /*break*/, 4]; case 4: return [2 /*return*/, item]; } }); }); }; /** * Sets the item in the in-memory cache and then tries to set it in the asynchronous * storage object with the given key. * @param key * @param value */ AsyncMemoryStorage.prototype.setItem = function (key, value) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var e_2; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.inMemoryCache.setItem(key, value); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this.indexedDBCache.setItem(key, value)]; case 2: _a.sent(); return [3 /*break*/, 4]; case 3: e_2 = _a.sent(); this.handleDatabaseAccessError(e_2); return [3 /*break*/, 4]; case 4: return [2 /*return*/]; } }); }); }; /** * Removes the item matching the key from the in-memory cache, then tries to remove it from the asynchronous storage object. * @param key */ AsyncMemoryStorage.prototype.removeItem = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var e_3; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.inMemoryCache.removeItem(key); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this.indexedDBCache.removeItem(key)]; case 2: _a.sent(); return [3 /*break*/, 4]; case 3: e_3 = _a.sent(); this.handleDatabaseAccessError(e_3); return [3 /*break*/, 4]; case 4: return [2 /*return*/]; } }); }); }; /** * Get all the keys from the in-memory cache as an iterable array of strings. If no keys are found, query the keys in the * asynchronous storage object. */ AsyncMemoryStorage.prototype.getKeys = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cacheKeys, e_4; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: cacheKeys = this.inMemoryCache.getKeys(); if (!(cacheKeys.length === 0)) return [3 /*break*/, 4]; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); this.logger.verbose("In-memory cache is empty, now querying persistent storage."); return [4 /*yield*/, this.indexedDBCache.getKeys()]; case 2: return [2 /*return*/, _a.sent()]; case 3: e_4 = _a.sent(); this.handleDatabaseAccessError(e_4); return [3 /*break*/, 4]; case 4: return [2 /*return*/, cacheKeys]; } }); }); }; /** * Returns true or false if the given key is present in the cache. * @param key */ AsyncMemoryStorage.prototype.containsKey = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var containsKey, e_5; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: containsKey = this.inMemoryCache.containsKey(key); if (!!containsKey) return [3 /*break*/, 4]; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."); return [4 /*yield*/, this.indexedDBCache.containsKey(key)]; case 2: return [2 /*return*/, _a.sent()]; case 3: e_5 = _a.sent(); this.handleDatabaseAccessError(e_5); return [3 /*break*/, 4]; case 4: return [2 /*return*/, containsKey]; } }); }); }; /** * Clears in-memory Map */ AsyncMemoryStorage.prototype.clearInMemory = function () { // InMemory cache is a Map instance, clear is straightforward this.logger.verbose("Deleting in-memory keystore " + this.storeName); this.inMemoryCache.clear(); this.logger.verbose("In-memory keystore " + this.storeName + " deleted"); }; /** * Tries to delete the IndexedDB database * @returns */ AsyncMemoryStorage.prototype.clearPersistent = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var dbDeleted, e_6; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); this.logger.verbose("Deleting persistent keystore"); return [4 /*yield*/, this.indexedDBCache.deleteDatabase()]; case 1: dbDeleted = _a.sent(); if (dbDeleted) { this.logger.verbose("Persistent keystore deleted"); } return [2 /*return*/, dbDeleted]; case 2: e_6 = _a.sent(); this.handleDatabaseAccessError(e_6); return [2 /*return*/, false]; case 3: return [2 /*return*/]; } }); }); }; return AsyncMemoryStorage; }()); //# sourceMappingURL=AsyncMemoryStorage.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js": /*!****************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js ***! \****************************************************************************/ /*! exports provided: BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserCacheManager", function() { return BrowserCacheManager; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_BROWSER_CACHE_MANAGER", function() { return DEFAULT_BROWSER_CACHE_MANAGER; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _BrowserStorage_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BrowserStorage.js */ "./node_modules/@azure/msal-browser/dist/cache/BrowserStorage.js"); /* harmony import */ var _MemoryStorage_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MemoryStorage.js */ "./node_modules/@azure/msal-browser/dist/cache/MemoryStorage.js"); /* harmony import */ var _utils_BrowserProtocolUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/BrowserProtocolUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This class implements the cache storage interface for MSAL through browser local or session storage. * Cookies are only used if storeAuthStateInCookie is true, and are only used for * parameters such as state and nonce, generally. */ var BrowserCacheManager = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrowserCacheManager, _super); function BrowserCacheManager(clientId, cacheConfig, cryptoImpl, logger) { var _this = _super.call(this, clientId, cryptoImpl, logger) || this; // Cookie life calculation (hours * minutes * seconds * ms) _this.COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1000; _this.cacheConfig = cacheConfig; _this.logger = logger; _this.internalStorage = new _MemoryStorage_js__WEBPACK_IMPORTED_MODULE_5__["MemoryStorage"](); _this.browserStorage = _this.setupBrowserStorage(_this.cacheConfig.cacheLocation); _this.temporaryCacheStorage = _this.setupTemporaryCacheStorage(_this.cacheConfig.temporaryCacheLocation, _this.cacheConfig.cacheLocation); // Migrate cache entries from older versions of MSAL. if (cacheConfig.cacheMigrationEnabled) { _this.migrateCacheEntries(); _this.createKeyMaps(); } return _this; } /** * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured cacheLocation. * @param cacheLocation */ BrowserCacheManager.prototype.setupBrowserStorage = function (cacheLocation) { switch (cacheLocation) { case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].LocalStorage: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].SessionStorage: try { return new _BrowserStorage_js__WEBPACK_IMPORTED_MODULE_4__["BrowserStorage"](cacheLocation); } catch (e) { this.logger.verbose(e); break; } } this.cacheConfig.cacheLocation = _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].MemoryStorage; return new _MemoryStorage_js__WEBPACK_IMPORTED_MODULE_5__["MemoryStorage"](); }; /** * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation. * @param temporaryCacheLocation * @param cacheLocation */ BrowserCacheManager.prototype.setupTemporaryCacheStorage = function (temporaryCacheLocation, cacheLocation) { switch (cacheLocation) { case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].LocalStorage: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].SessionStorage: try { /* * When users do not explicitly choose their own temporaryCacheLocation, * temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs */ return new _BrowserStorage_js__WEBPACK_IMPORTED_MODULE_4__["BrowserStorage"](temporaryCacheLocation || _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].SessionStorage); } catch (e) { this.logger.verbose(e); return this.internalStorage; } case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].MemoryStorage: default: return this.internalStorage; } }; /** * Migrate all old cache entries to new schema. No rollback supported. * @param storeAuthStateInCookie */ BrowserCacheManager.prototype.migrateCacheEntries = function () { var _this = this; var idTokenKey = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ID_TOKEN; var clientInfoKey = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].CLIENT_INFO; var errorKey = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ERROR; var errorDescKey = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ERROR_DESC; var idTokenValue = this.browserStorage.getItem(idTokenKey); var clientInfoValue = this.browserStorage.getItem(clientInfoKey); var errorValue = this.browserStorage.getItem(errorKey); var errorDescValue = this.browserStorage.getItem(errorDescKey); var values = [idTokenValue, clientInfoValue, errorValue, errorDescValue]; var keysToMigrate = [_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ID_TOKEN, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].CLIENT_INFO, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ERROR, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ERROR_DESC]; keysToMigrate.forEach(function (cacheKey, index) { return _this.migrateCacheEntry(cacheKey, values[index]); }); }; /** * Utility function to help with migration. * @param newKey * @param value * @param storeAuthStateInCookie */ BrowserCacheManager.prototype.migrateCacheEntry = function (newKey, value) { if (value) { this.setTemporaryCache(newKey, value, true); } }; /** * Searches all cache entries for MSAL accounts and creates the account key map * This is used to migrate users from older versions of MSAL which did not create the map. * @returns */ BrowserCacheManager.prototype.createKeyMaps = function () { var _this = this; this.logger.trace("BrowserCacheManager - createKeyMaps called."); var accountKeys = this.getItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].ACCOUNT_KEYS); var tokenKeys = this.getItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].TOKEN_KEYS + "." + this.clientId); if (accountKeys && tokenKeys) { this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."); // Key maps already exist, no need to iterate through cache return; } var allKeys = this.browserStorage.getKeys(); allKeys.forEach(function (key) { if (_this.isCredentialKey(key)) { // Get item, parse, validate and write key to map var value = _this.getItem(key); if (value) { var credObj = _this.validateAndParseJson(value); if (credObj && credObj.hasOwnProperty("credentialType")) { switch (credObj["credentialType"]) { case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN: if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["IdTokenEntity"].isIdTokenEntity(credObj)) { _this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: " + key + " found, saving key to token key map"); var idTokenEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["IdTokenEntity"](), credObj); var newKey = _this.updateCredentialCacheKey(key, idTokenEntity); _this.addTokenKey(newKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN); return; } else { _this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: " + key); } break; case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN: case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME: if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccessTokenEntity"].isAccessTokenEntity(credObj)) { _this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + key + " found, saving key to token key map"); var accessTokenEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccessTokenEntity"](), credObj); var newKey = _this.updateCredentialCacheKey(key, accessTokenEntity); _this.addTokenKey(newKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN); return; } else { _this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: " + key); } break; case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN: if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["RefreshTokenEntity"].isRefreshTokenEntity(credObj)) { _this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: " + key + " found, saving key to token key map"); var refreshTokenEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["RefreshTokenEntity"](), credObj); var newKey = _this.updateCredentialCacheKey(key, refreshTokenEntity); _this.addTokenKey(newKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN); return; } else { _this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: " + key); } break; // If credentialType isn't one of our predefined ones, it may not be an MSAL cache value. Ignore. } } } } if (_this.isAccountKey(key)) { var value = _this.getItem(key); if (value) { var accountObj = _this.validateAndParseJson(value); if (accountObj && _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"].isAccountEntity(accountObj)) { _this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"); _this.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: " + key + " found, saving key to account key map"); _this.addAccountKeyToMap(key); } } } }); }; /** * Parses passed value as JSON object, JSON.parse() will throw an error. * @param input */ BrowserCacheManager.prototype.validateAndParseJson = function (jsonValue) { try { var parsedJson = JSON.parse(jsonValue); /** * There are edge cases in which JSON.parse will successfully parse a non-valid JSON object * (e.g. JSON.parse will parse an escaped string into an unescaped string), so adding a type check * of the parsed value is necessary in order to be certain that the string represents a valid JSON object. * */ return (parsedJson && typeof parsedJson === "object") ? parsedJson : null; } catch (error) { return null; } }; /** * fetches the entry from the browser storage based off the key * @param key */ BrowserCacheManager.prototype.getItem = function (key) { return this.browserStorage.getItem(key); }; /** * sets the entry in the browser storage * @param key * @param value */ BrowserCacheManager.prototype.setItem = function (key, value) { this.browserStorage.setItem(key, value); }; /** * fetch the account entity from the platform cache * @param accountKey */ BrowserCacheManager.prototype.getAccount = function (accountKey) { this.logger.trace("BrowserCacheManager.getAccount called"); var account = this.getItem(accountKey); if (!account) { this.removeAccountKeyFromMap(accountKey); return null; } var parsedAccount = this.validateAndParseJson(account); if (!parsedAccount || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"].isAccountEntity(parsedAccount)) { this.removeAccountKeyFromMap(accountKey); return null; } return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"](), parsedAccount); }; /** * set account entity in the platform cache * @param key * @param value */ BrowserCacheManager.prototype.setAccount = function (account) { this.logger.trace("BrowserCacheManager.setAccount called"); var key = account.generateAccountKey(); this.setItem(key, JSON.stringify(account)); this.addAccountKeyToMap(key); }; /** * Returns the array of account keys currently cached * @returns */ BrowserCacheManager.prototype.getAccountKeys = function () { this.logger.trace("BrowserCacheManager.getAccountKeys called"); var accountKeys = this.getItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].ACCOUNT_KEYS); if (accountKeys) { return JSON.parse(accountKeys); } this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"); return []; }; /** * Add a new account to the key map * @param key */ BrowserCacheManager.prototype.addAccountKeyToMap = function (key) { this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"); this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: " + key); var accountKeys = this.getAccountKeys(); if (accountKeys.indexOf(key) === -1) { // Only add key if it does not already exist in the map accountKeys.push(key); this.setItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].ACCOUNT_KEYS, JSON.stringify(accountKeys)); this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added"); } else { this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map"); } }; /** * Remove an account from the key map * @param key */ BrowserCacheManager.prototype.removeAccountKeyFromMap = function (key) { this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"); this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: " + key); var accountKeys = this.getAccountKeys(); var removalIndex = accountKeys.indexOf(key); if (removalIndex > -1) { accountKeys.splice(removalIndex, 1); this.setItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].ACCOUNT_KEYS, JSON.stringify(accountKeys)); this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed"); } else { this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map"); } }; /** * Extends inherited removeAccount function to include removal of the account key from the map * @param key */ BrowserCacheManager.prototype.removeAccount = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { _super.prototype.removeAccount.call(this, key); this.removeAccountKeyFromMap(key); return [2 /*return*/]; }); }); }; /** * Removes given idToken from the cache and from the key map * @param key */ BrowserCacheManager.prototype.removeIdToken = function (key) { _super.prototype.removeIdToken.call(this, key); this.removeTokenKey(key, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN); }; /** * Removes given accessToken from the cache and from the key map * @param key */ BrowserCacheManager.prototype.removeAccessToken = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { _super.prototype.removeAccessToken.call(this, key); this.removeTokenKey(key, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN); return [2 /*return*/]; }); }); }; /** * Removes given refreshToken from the cache and from the key map * @param key */ BrowserCacheManager.prototype.removeRefreshToken = function (key) { _super.prototype.removeRefreshToken.call(this, key); this.removeTokenKey(key, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN); }; /** * Gets the keys for the cached tokens associated with this clientId * @returns */ BrowserCacheManager.prototype.getTokenKeys = function () { this.logger.trace("BrowserCacheManager.getTokenKeys called"); var item = this.getItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].TOKEN_KEYS + "." + this.clientId); if (item) { var tokenKeys = this.validateAndParseJson(item); if (tokenKeys && tokenKeys.hasOwnProperty("idToken") && tokenKeys.hasOwnProperty("accessToken") && tokenKeys.hasOwnProperty("refreshToken")) { return tokenKeys; } else { this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map."); } } else { this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found"); } return { idToken: [], accessToken: [], refreshToken: [] }; }; /** * Adds the given key to the token key map * @param key * @param type */ BrowserCacheManager.prototype.addTokenKey = function (key, type) { this.logger.trace("BrowserCacheManager addTokenKey called"); var tokenKeys = this.getTokenKeys(); switch (type) { case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN: if (tokenKeys.idToken.indexOf(key) === -1) { this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"); tokenKeys.idToken.push(key); } break; case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN: if (tokenKeys.accessToken.indexOf(key) === -1) { this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"); tokenKeys.accessToken.push(key); } break; case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN: if (tokenKeys.refreshToken.indexOf(key) === -1) { this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"); tokenKeys.refreshToken.push(key); } break; default: this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: " + type); _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createUnexpectedCredentialTypeError(); } this.setItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].TOKEN_KEYS + "." + this.clientId, JSON.stringify(tokenKeys)); }; /** * Removes the given key from the token key map * @param key * @param type */ BrowserCacheManager.prototype.removeTokenKey = function (key, type) { this.logger.trace("BrowserCacheManager removeTokenKey called"); var tokenKeys = this.getTokenKeys(); switch (type) { case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN: this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: " + key + " from map"); var idRemoval = tokenKeys.idToken.indexOf(key); if (idRemoval > -1) { this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"); tokenKeys.idToken.splice(idRemoval, 1); } else { this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added."); } break; case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN: this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: " + key + " from map"); var accessRemoval = tokenKeys.accessToken.indexOf(key); if (accessRemoval > -1) { this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"); tokenKeys.accessToken.splice(accessRemoval, 1); } else { this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added."); } break; case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN: this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: " + key + " from map"); var refreshRemoval = tokenKeys.refreshToken.indexOf(key); if (refreshRemoval > -1) { this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"); tokenKeys.refreshToken.splice(refreshRemoval, 1); } else { this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added."); } break; default: this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: " + type); _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createUnexpectedCredentialTypeError(); } this.setItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["StaticCacheKeys"].TOKEN_KEYS + "." + this.clientId, JSON.stringify(tokenKeys)); }; /** * generates idToken entity from a string * @param idTokenKey */ BrowserCacheManager.prototype.getIdTokenCredential = function (idTokenKey) { var value = this.getItem(idTokenKey); if (!value) { this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"); this.removeTokenKey(idTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN); return null; } var parsedIdToken = this.validateAndParseJson(value); if (!parsedIdToken || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["IdTokenEntity"].isIdTokenEntity(parsedIdToken)) { this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"); this.removeTokenKey(idTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN); return null; } this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["IdTokenEntity"](), parsedIdToken); }; /** * set IdToken credential to the platform cache * @param idToken */ BrowserCacheManager.prototype.setIdTokenCredential = function (idToken) { this.logger.trace("BrowserCacheManager.setIdTokenCredential called"); var idTokenKey = idToken.generateCredentialKey(); this.setItem(idTokenKey, JSON.stringify(idToken)); this.addTokenKey(idTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN); }; /** * generates accessToken entity from a string * @param key */ BrowserCacheManager.prototype.getAccessTokenCredential = function (accessTokenKey) { var value = this.getItem(accessTokenKey); if (!value) { this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"); this.removeTokenKey(accessTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN); return null; } var parsedAccessToken = this.validateAndParseJson(value); if (!parsedAccessToken || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccessTokenEntity"].isAccessTokenEntity(parsedAccessToken)) { this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"); this.removeTokenKey(accessTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN); return null; } this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccessTokenEntity"](), parsedAccessToken); }; /** * set accessToken credential to the platform cache * @param accessToken */ BrowserCacheManager.prototype.setAccessTokenCredential = function (accessToken) { this.logger.trace("BrowserCacheManager.setAccessTokenCredential called"); var accessTokenKey = accessToken.generateCredentialKey(); this.setItem(accessTokenKey, JSON.stringify(accessToken)); this.addTokenKey(accessTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN); }; /** * generates refreshToken entity from a string * @param refreshTokenKey */ BrowserCacheManager.prototype.getRefreshTokenCredential = function (refreshTokenKey) { var value = this.getItem(refreshTokenKey); if (!value) { this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"); this.removeTokenKey(refreshTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN); return null; } var parsedRefreshToken = this.validateAndParseJson(value); if (!parsedRefreshToken || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["RefreshTokenEntity"].isRefreshTokenEntity(parsedRefreshToken)) { this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"); this.removeTokenKey(refreshTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN); return null; } this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["RefreshTokenEntity"](), parsedRefreshToken); }; /** * set refreshToken credential to the platform cache * @param refreshToken */ BrowserCacheManager.prototype.setRefreshTokenCredential = function (refreshToken) { this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called"); var refreshTokenKey = refreshToken.generateCredentialKey(); this.setItem(refreshTokenKey, JSON.stringify(refreshToken)); this.addTokenKey(refreshTokenKey, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN); }; /** * fetch appMetadata entity from the platform cache * @param appMetadataKey */ BrowserCacheManager.prototype.getAppMetadata = function (appMetadataKey) { var value = this.getItem(appMetadataKey); if (!value) { this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"); return null; } var parsedMetadata = this.validateAndParseJson(value); if (!parsedMetadata || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AppMetadataEntity"].isAppMetadataEntity(appMetadataKey, parsedMetadata)) { this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"); return null; } this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AppMetadataEntity"](), parsedMetadata); }; /** * set appMetadata entity to the platform cache * @param appMetadata */ BrowserCacheManager.prototype.setAppMetadata = function (appMetadata) { this.logger.trace("BrowserCacheManager.setAppMetadata called"); var appMetadataKey = appMetadata.generateAppMetadataKey(); this.setItem(appMetadataKey, JSON.stringify(appMetadata)); }; /** * fetch server telemetry entity from the platform cache * @param serverTelemetryKey */ BrowserCacheManager.prototype.getServerTelemetry = function (serverTelemetryKey) { var value = this.getItem(serverTelemetryKey); if (!value) { this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"); return null; } var parsedMetadata = this.validateAndParseJson(value); if (!parsedMetadata || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ServerTelemetryEntity"].isServerTelemetryEntity(serverTelemetryKey, parsedMetadata)) { this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"); return null; } this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ServerTelemetryEntity"](), parsedMetadata); }; /** * set server telemetry entity to the platform cache * @param serverTelemetryKey * @param serverTelemetry */ BrowserCacheManager.prototype.setServerTelemetry = function (serverTelemetryKey, serverTelemetry) { this.logger.trace("BrowserCacheManager.setServerTelemetry called"); this.setItem(serverTelemetryKey, JSON.stringify(serverTelemetry)); }; /** * */ BrowserCacheManager.prototype.getAuthorityMetadata = function (key) { var value = this.internalStorage.getItem(key); if (!value) { this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"); return null; } var parsedMetadata = this.validateAndParseJson(value); if (parsedMetadata && _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityMetadataEntity"].isAuthorityMetadataEntity(key, parsedMetadata)) { this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityMetadataEntity"](), parsedMetadata); } return null; }; /** * */ BrowserCacheManager.prototype.getAuthorityMetadataKeys = function () { var _this = this; var allKeys = this.internalStorage.getKeys(); return allKeys.filter(function (key) { return _this.isAuthorityMetadata(key); }); }; /** * Sets wrapper metadata in memory * @param wrapperSKU * @param wrapperVersion */ BrowserCacheManager.prototype.setWrapperMetadata = function (wrapperSKU, wrapperVersion) { this.internalStorage.setItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InMemoryCacheKeys"].WRAPPER_SKU, wrapperSKU); this.internalStorage.setItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InMemoryCacheKeys"].WRAPPER_VER, wrapperVersion); }; /** * Returns wrapper metadata from in-memory storage */ BrowserCacheManager.prototype.getWrapperMetadata = function () { var sku = this.internalStorage.getItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InMemoryCacheKeys"].WRAPPER_SKU) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; var version = this.internalStorage.getItem(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InMemoryCacheKeys"].WRAPPER_VER) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; return [sku, version]; }; /** * * @param entity */ BrowserCacheManager.prototype.setAuthorityMetadata = function (key, entity) { this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"); this.internalStorage.setItem(key, JSON.stringify(entity)); }; /** * Gets the active account */ BrowserCacheManager.prototype.getActiveAccount = function () { var activeAccountKeyFilters = this.generateCacheKey(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ACTIVE_ACCOUNT_FILTERS); var activeAccountValueFilters = this.getItem(activeAccountKeyFilters); if (!activeAccountValueFilters) { // if new active account cache type isn't found, it's an old version, so look for that instead this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema"); var activeAccountKeyLocal = this.generateCacheKey(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ACTIVE_ACCOUNT); var activeAccountValueLocal = this.getItem(activeAccountKeyLocal); if (!activeAccountValueLocal) { this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"); return null; } var activeAccount = this.getAccountInfoByFilter({ localAccountId: activeAccountValueLocal })[0] || null; if (activeAccount) { this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"); this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"); this.setActiveAccount(activeAccount); return activeAccount; } return null; } var activeAccountValueObj = this.validateAndParseJson(activeAccountValueFilters); if (activeAccountValueObj) { this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"); return this.getAccountInfoByFilter({ homeAccountId: activeAccountValueObj.homeAccountId, localAccountId: activeAccountValueObj.localAccountId })[0] || null; } this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"); return null; }; /** * Sets the active account's localAccountId in cache * @param account */ BrowserCacheManager.prototype.setActiveAccount = function (account) { var activeAccountKey = this.generateCacheKey(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ACTIVE_ACCOUNT_FILTERS); var activeAccountKeyLocal = this.generateCacheKey(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ACTIVE_ACCOUNT); if (account) { this.logger.verbose("setActiveAccount: Active account set"); var activeAccountValue = { homeAccountId: account.homeAccountId, localAccountId: account.localAccountId }; this.browserStorage.setItem(activeAccountKey, JSON.stringify(activeAccountValue)); this.browserStorage.setItem(activeAccountKeyLocal, account.localAccountId); } else { this.logger.verbose("setActiveAccount: No account passed, active account not set"); this.browserStorage.removeItem(activeAccountKey); this.browserStorage.removeItem(activeAccountKeyLocal); } }; /** * Gets a list of accounts that match all of the filters provided * @param account */ BrowserCacheManager.prototype.getAccountInfoByFilter = function (accountFilter) { var allAccounts = this.getAllAccounts(); this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total " + allAccounts.length + " accounts found"); return allAccounts.filter(function (accountObj) { if (accountFilter.username && accountFilter.username.toLowerCase() !== accountObj.username.toLowerCase()) { return false; } if (accountFilter.homeAccountId && accountFilter.homeAccountId !== accountObj.homeAccountId) { return false; } if (accountFilter.localAccountId && accountFilter.localAccountId !== accountObj.localAccountId) { return false; } if (accountFilter.tenantId && accountFilter.tenantId !== accountObj.tenantId) { return false; } if (accountFilter.environment && accountFilter.environment !== accountObj.environment) { return false; } return true; }); }; /** * Checks the cache for accounts matching loginHint or SID * @param loginHint * @param sid */ BrowserCacheManager.prototype.getAccountInfoByHints = function (loginHint, sid) { var matchingAccounts = this.getAllAccounts().filter(function (accountInfo) { if (sid) { var accountSid = accountInfo.idTokenClaims && accountInfo.idTokenClaims["sid"]; return sid === accountSid; } if (loginHint) { return loginHint === accountInfo.username; } return false; }); if (matchingAccounts.length === 1) { return matchingAccounts[0]; } else if (matchingAccounts.length > 1) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createMultipleMatchingAccountsInCacheError(); } return null; }; /** * fetch throttling entity from the platform cache * @param throttlingCacheKey */ BrowserCacheManager.prototype.getThrottlingCache = function (throttlingCacheKey) { var value = this.getItem(throttlingCacheKey); if (!value) { this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"); return null; } var parsedThrottlingCache = this.validateAndParseJson(value); if (!parsedThrottlingCache || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ThrottlingEntity"].isThrottlingEntity(throttlingCacheKey, parsedThrottlingCache)) { this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"); return null; } this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ThrottlingEntity"](), parsedThrottlingCache); }; /** * set throttling entity to the platform cache * @param throttlingCacheKey * @param throttlingCache */ BrowserCacheManager.prototype.setThrottlingCache = function (throttlingCacheKey, throttlingCache) { this.logger.trace("BrowserCacheManager.setThrottlingCache called"); this.setItem(throttlingCacheKey, JSON.stringify(throttlingCache)); }; /** * Gets cache item with given key. * Will retrieve from cookies if storeAuthStateInCookie is set to true. * @param key */ BrowserCacheManager.prototype.getTemporaryCache = function (cacheKey, generateKey) { var key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey; if (this.cacheConfig.storeAuthStateInCookie) { var itemCookie = this.getItemCookie(key); if (itemCookie) { this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"); return itemCookie; } } var value = this.temporaryCacheStorage.getItem(key); if (!value) { // If temp cache item not found in session/memory, check local storage for items set by old versions if (this.cacheConfig.cacheLocation === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].LocalStorage) { var item = this.browserStorage.getItem(key); if (item) { this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"); return item; } } this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"); return null; } this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"); return value; }; /** * Sets the cache item with the key and value given. * Stores in cookie if storeAuthStateInCookie is set to true. * This can cause cookie overflow if used incorrectly. * @param key * @param value */ BrowserCacheManager.prototype.setTemporaryCache = function (cacheKey, value, generateKey) { var key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey; this.temporaryCacheStorage.setItem(key, value); if (this.cacheConfig.storeAuthStateInCookie) { this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"); this.setItemCookie(key, value); } }; /** * Removes the cache item with the given key. * Will also clear the cookie item if storeAuthStateInCookie is set to true. * @param key */ BrowserCacheManager.prototype.removeItem = function (key) { this.browserStorage.removeItem(key); this.temporaryCacheStorage.removeItem(key); if (this.cacheConfig.storeAuthStateInCookie) { this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"); this.clearItemCookie(key); } }; /** * Checks whether key is in cache. * @param key */ BrowserCacheManager.prototype.containsKey = function (key) { return this.browserStorage.containsKey(key) || this.temporaryCacheStorage.containsKey(key); }; /** * Gets all keys in window. */ BrowserCacheManager.prototype.getKeys = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spread"])(this.browserStorage.getKeys(), this.temporaryCacheStorage.getKeys()); }; /** * Clears all cache entries created by MSAL. */ BrowserCacheManager.prototype.clear = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: // Removes all accounts and their credentials return [4 /*yield*/, this.removeAllAccounts()]; case 1: // Removes all accounts and their credentials _a.sent(); this.removeAppMetadata(); // Removes all remaining MSAL cache items this.getKeys().forEach(function (cacheKey) { // Check if key contains msal prefix; For now, we are clearing all the cache items created by MSAL.js if ((_this.browserStorage.containsKey(cacheKey) || _this.temporaryCacheStorage.containsKey(cacheKey)) && ((cacheKey.indexOf(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX) !== -1) || (cacheKey.indexOf(_this.clientId) !== -1))) { _this.removeItem(cacheKey); } }); this.internalStorage.clear(); return [2 /*return*/]; } }); }); }; /** * Clears all access tokes that have claims prior to saving the current one * @param credential * @returns */ BrowserCacheManager.prototype.clearTokensAndKeysWithClaims = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var tokenKeys, removedAccessTokens; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"); tokenKeys = this.getTokenKeys(); removedAccessTokens = []; tokenKeys.accessToken.forEach(function (key) { // if the access token has claims in its key, remove the token key and the token var credential = _this.getAccessTokenCredential(key); if ((credential === null || credential === void 0 ? void 0 : credential.requestedClaimsHash) && key.includes(credential.requestedClaimsHash.toLowerCase())) { removedAccessTokens.push(_this.removeAccessToken(key)); } }); return [4 /*yield*/, Promise.all(removedAccessTokens)]; case 1: _a.sent(); // warn if any access tokens are removed if (removedAccessTokens.length > 0) { this.logger.warning(removedAccessTokens.length + " access tokens with claims in the cache keys have been removed from the cache."); } return [2 /*return*/]; } }); }); }; /** * Add value to cookies * @param cookieName * @param cookieValue * @param expires */ BrowserCacheManager.prototype.setItemCookie = function (cookieName, cookieValue, expires) { var cookieStr = encodeURIComponent(cookieName) + "=" + encodeURIComponent(cookieValue) + ";path=/;SameSite=Lax;"; if (expires) { var expireTime = this.getCookieExpirationTime(expires); cookieStr += "expires=" + expireTime + ";"; } if (this.cacheConfig.secureCookies) { cookieStr += "Secure;"; } document.cookie = cookieStr; }; /** * Get one item by key from cookies * @param cookieName */ BrowserCacheManager.prototype.getItemCookie = function (cookieName) { var name = encodeURIComponent(cookieName) + "="; var cookieList = document.cookie.split(";"); for (var i = 0; i < cookieList.length; i++) { var cookie = cookieList[i]; while (cookie.charAt(0) === " ") { cookie = cookie.substring(1); } if (cookie.indexOf(name) === 0) { return decodeURIComponent(cookie.substring(name.length, cookie.length)); } } return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; }; /** * Clear all msal-related cookies currently set in the browser. Should only be used to clear temporary cache items. */ BrowserCacheManager.prototype.clearMsalCookies = function () { var _this = this; var cookiePrefix = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + this.clientId; var cookieList = document.cookie.split(";"); cookieList.forEach(function (cookie) { while (cookie.charAt(0) === " ") { // eslint-disable-next-line no-param-reassign cookie = cookie.substring(1); } if (cookie.indexOf(cookiePrefix) === 0) { var cookieKey = cookie.split("=")[0]; _this.clearItemCookie(cookieKey); } }); }; /** * Clear an item in the cookies by key * @param cookieName */ BrowserCacheManager.prototype.clearItemCookie = function (cookieName) { this.setItemCookie(cookieName, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, -1); }; /** * Get cookie expiration time * @param cookieLifeDays */ BrowserCacheManager.prototype.getCookieExpirationTime = function (cookieLifeDays) { var today = new Date(); var expr = new Date(today.getTime() + cookieLifeDays * this.COOKIE_LIFE_MULTIPLIER); return expr.toUTCString(); }; /** * Gets the cache object referenced by the browser */ BrowserCacheManager.prototype.getCache = function () { return this.browserStorage; }; /** * interface compat, we cannot overwrite browser cache; Functionality is supported by individual entities in browser */ BrowserCacheManager.prototype.setCache = function () { // sets nothing }; /** * Prepend msal. to each key; Skip for any JSON object as Key (defined schemas do not need the key appended: AccessToken Keys or the upcoming schema) * @param key * @param addInstanceId */ BrowserCacheManager.prototype.generateCacheKey = function (key) { var generatedKey = this.validateAndParseJson(key); if (!generatedKey) { if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].startsWith(key, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].startsWith(key, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ADAL_ID_TOKEN)) { return key; } return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + this.clientId + "." + key; } return JSON.stringify(key); }; /** * Create authorityKey to cache authority * @param state */ BrowserCacheManager.prototype.generateAuthorityKey = function (stateString) { var stateId = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].parseRequestState(this.cryptoImpl, stateString).libraryState.id; return this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].AUTHORITY + "." + stateId); }; /** * Create Nonce key to cache nonce * @param state */ BrowserCacheManager.prototype.generateNonceKey = function (stateString) { var stateId = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].parseRequestState(this.cryptoImpl, stateString).libraryState.id; return this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].NONCE_IDTOKEN + "." + stateId); }; /** * Creates full cache key for the request state * @param stateString State string for the request */ BrowserCacheManager.prototype.generateStateKey = function (stateString) { // Use the library state id to key temp storage for uniqueness for multiple concurrent requests var stateId = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].parseRequestState(this.cryptoImpl, stateString).libraryState.id; return this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REQUEST_STATE + "." + stateId); }; /** * Gets the cached authority based on the cached state. Returns empty if no cached state found. */ BrowserCacheManager.prototype.getCachedAuthority = function (cachedState) { var stateCacheKey = this.generateStateKey(cachedState); var state = this.getTemporaryCache(stateCacheKey); if (!state) { return null; } var authorityCacheKey = this.generateAuthorityKey(state); return this.getTemporaryCache(authorityCacheKey); }; /** * Updates account, authority, and state in cache * @param serverAuthenticationRequest * @param account */ BrowserCacheManager.prototype.updateCacheEntries = function (state, nonce, authorityInstance, loginHint, account) { this.logger.trace("BrowserCacheManager.updateCacheEntries called"); // Cache the request state var stateCacheKey = this.generateStateKey(state); this.setTemporaryCache(stateCacheKey, state, false); // Cache the nonce var nonceCacheKey = this.generateNonceKey(state); this.setTemporaryCache(nonceCacheKey, nonce, false); // Cache authorityKey var authorityCacheKey = this.generateAuthorityKey(state); this.setTemporaryCache(authorityCacheKey, authorityInstance, false); if (account) { var ccsCredential = { credential: account.homeAccountId, type: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CcsCredentialType"].HOME_ACCOUNT_ID }; this.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].CCS_CREDENTIAL, JSON.stringify(ccsCredential), true); } else if (!_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(loginHint)) { var ccsCredential = { credential: loginHint, type: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CcsCredentialType"].UPN }; this.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].CCS_CREDENTIAL, JSON.stringify(ccsCredential), true); } }; /** * Reset all temporary cache items * @param state */ BrowserCacheManager.prototype.resetRequestCache = function (state) { var _this = this; this.logger.trace("BrowserCacheManager.resetRequestCache called"); // check state and remove associated cache items if (!_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(state)) { this.getKeys().forEach(function (key) { if (key.indexOf(state) !== -1) { _this.removeItem(key); } }); } // delete generic interactive request parameters if (state) { this.removeItem(this.generateStateKey(state)); this.removeItem(this.generateNonceKey(state)); this.removeItem(this.generateAuthorityKey(state)); } this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REQUEST_PARAMS)); this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].ORIGIN_URI)); this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].URL_HASH)); this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].CORRELATION_ID)); this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].CCS_CREDENTIAL)); this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].NATIVE_REQUEST)); this.setInteractionInProgress(false); }; /** * Removes temporary cache for the provided state * @param stateString */ BrowserCacheManager.prototype.cleanRequestByState = function (stateString) { this.logger.trace("BrowserCacheManager.cleanRequestByState called"); // Interaction is completed - remove interaction status. if (stateString) { var stateKey = this.generateStateKey(stateString); var cachedState = this.temporaryCacheStorage.getItem(stateKey); this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: " + cachedState); this.resetRequestCache(cachedState || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING); } this.clearMsalCookies(); }; /** * Looks in temporary cache for any state values with the provided interactionType and removes all temporary cache items for that state * Used in scenarios where temp cache needs to be cleaned but state is not known, such as clicking browser back button. * @param interactionType */ BrowserCacheManager.prototype.cleanRequestByInteractionType = function (interactionType) { var _this = this; this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"); // Loop through all keys to find state key this.getKeys().forEach(function (key) { // If this key is not the state key, move on if (key.indexOf(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REQUEST_STATE) === -1) { return; } // Retrieve state value, return if not a valid value var stateValue = _this.temporaryCacheStorage.getItem(key); if (!stateValue) { return; } // Extract state and ensure it matches given InteractionType, then clean request cache var parsedState = _utils_BrowserProtocolUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserProtocolUtils"].extractBrowserRequestState(_this.cryptoImpl, stateValue); if (parsedState && parsedState.interactionType === interactionType) { _this.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: " + stateValue); _this.resetRequestCache(stateValue); } }); this.clearMsalCookies(); this.setInteractionInProgress(false); }; BrowserCacheManager.prototype.cacheCodeRequest = function (authCodeRequest, browserCrypto) { this.logger.trace("BrowserCacheManager.cacheCodeRequest called"); var encodedValue = browserCrypto.base64Encode(JSON.stringify(authCodeRequest)); this.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REQUEST_PARAMS, encodedValue, true); }; /** * Gets the token exchange parameters from the cache. Throws an error if nothing is found. */ BrowserCacheManager.prototype.getCachedRequest = function (state, browserCrypto) { this.logger.trace("BrowserCacheManager.getCachedRequest called"); // Get token request from cache and parse as TokenExchangeParameters. var encodedTokenRequest = this.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REQUEST_PARAMS, true); if (!encodedTokenRequest) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createNoTokenRequestCacheError(); } var parsedRequest = this.validateAndParseJson(browserCrypto.base64Decode(encodedTokenRequest)); if (!parsedRequest) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createUnableToParseTokenRequestCacheError(); } this.removeItem(this.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REQUEST_PARAMS)); // Get cached authority and use if no authority is cached with request. if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(parsedRequest.authority)) { var authorityCacheKey = this.generateAuthorityKey(state); var cachedAuthority = this.getTemporaryCache(authorityCacheKey); if (!cachedAuthority) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createNoCachedAuthorityError(); } parsedRequest.authority = cachedAuthority; } return parsedRequest; }; /** * Gets cached native request for redirect flows */ BrowserCacheManager.prototype.getCachedNativeRequest = function () { this.logger.trace("BrowserCacheManager.getCachedNativeRequest called"); var cachedRequest = this.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].NATIVE_REQUEST, true); if (!cachedRequest) { this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"); return null; } var parsedRequest = this.validateAndParseJson(cachedRequest); if (!parsedRequest) { this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"); return null; } return parsedRequest; }; BrowserCacheManager.prototype.isInteractionInProgress = function (matchClientId) { var clientId = this.getInteractionInProgress(); if (matchClientId) { return clientId === this.clientId; } else { return !!clientId; } }; BrowserCacheManager.prototype.getInteractionInProgress = function () { var key = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].INTERACTION_STATUS_KEY; return this.getTemporaryCache(key, false); }; BrowserCacheManager.prototype.setInteractionInProgress = function (inProgress) { // Ensure we don't overwrite interaction in progress for a different clientId var key = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].CACHE_PREFIX + "." + _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].INTERACTION_STATUS_KEY; if (inProgress) { if (this.getInteractionInProgress()) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createInteractionInProgressError(); } else { // No interaction is in progress this.setTemporaryCache(key, this.clientId, false); } } else if (!inProgress && this.getInteractionInProgress() === this.clientId) { this.removeItem(key); } }; /** * Returns username retrieved from ADAL or MSAL v1 idToken */ BrowserCacheManager.prototype.getLegacyLoginHint = function () { // Only check for adal/msal token if no SSO params are being used var adalIdTokenString = this.getTemporaryCache(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ADAL_ID_TOKEN); if (adalIdTokenString) { this.browserStorage.removeItem(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ADAL_ID_TOKEN); this.logger.verbose("Cached ADAL id token retrieved."); } // Check for cached MSAL v1 id token var msalIdTokenString = this.getTemporaryCache(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ID_TOKEN, true); if (msalIdTokenString) { this.removeItem(this.generateCacheKey(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PersistentCacheKeys"].ID_TOKEN)); this.logger.verbose("Cached MSAL.js v1 id token retrieved"); } var cachedIdTokenString = msalIdTokenString || adalIdTokenString; if (cachedIdTokenString) { var cachedIdToken = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["IdToken"](cachedIdTokenString, this.cryptoImpl); if (cachedIdToken.claims && cachedIdToken.claims.preferred_username) { this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"); return cachedIdToken.claims.preferred_username; } else if (cachedIdToken.claims && cachedIdToken.claims.upn) { this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"); return cachedIdToken.claims.upn; } else { this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO."); } } return null; }; /** * Updates a credential's cache key if the current cache key is outdated */ BrowserCacheManager.prototype.updateCredentialCacheKey = function (currentCacheKey, credential) { var updatedCacheKey = credential.generateCredentialKey(); if (currentCacheKey !== updatedCacheKey) { var cacheItem = this.getItem(currentCacheKey); if (cacheItem) { this.removeItem(currentCacheKey); this.setItem(updatedCacheKey, cacheItem); this.logger.verbose("Updated an outdated " + credential.credentialType + " cache key"); return updatedCacheKey; } else { this.logger.error("Attempted to update an outdated " + credential.credentialType + " cache key but no item matching the outdated key was found in storage"); } } return currentCacheKey; }; /** * Returns application id as redirect context during AcquireTokenRedirect flow. */ BrowserCacheManager.prototype.getRedirectRequestContext = function () { return this.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REDIRECT_CONTEXT, true); }; /** * Sets application id as the redirect context during AcquireTokenRedirect flow. * @param value */ BrowserCacheManager.prototype.setRedirectRequestContext = function (value) { this.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].REDIRECT_CONTEXT, value, true); }; return BrowserCacheManager; }(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheManager"])); var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) { var cacheOptions = { cacheLocation: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].MemoryStorage, temporaryCacheLocation: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].MemoryStorage, storeAuthStateInCookie: false, secureCookies: false, cacheMigrationEnabled: false, claimsBasedCachingEnabled: true }; return new BrowserCacheManager(clientId, cacheOptions, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_CRYPTO_IMPLEMENTATION"], logger); }; //# sourceMappingURL=BrowserCacheManager.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/BrowserStorage.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/BrowserStorage.js ***! \***********************************************************************/ /*! exports provided: BrowserStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserStorage", function() { return BrowserStorage; }); /* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/BrowserConfigurationAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var BrowserStorage = /** @class */ (function () { function BrowserStorage(cacheLocation) { this.validateWindowStorage(cacheLocation); this.windowStorage = window[cacheLocation]; } BrowserStorage.prototype.validateWindowStorage = function (cacheLocation) { if (cacheLocation !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["BrowserCacheLocation"].LocalStorage && cacheLocation !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["BrowserCacheLocation"].SessionStorage) { throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStorageNotSupportedError(cacheLocation); } var storageSupported = !!window[cacheLocation]; if (!storageSupported) { throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_0__["BrowserConfigurationAuthError"].createStorageNotSupportedError(cacheLocation); } }; BrowserStorage.prototype.getItem = function (key) { return this.windowStorage.getItem(key); }; BrowserStorage.prototype.setItem = function (key, value) { this.windowStorage.setItem(key, value); }; BrowserStorage.prototype.removeItem = function (key) { this.windowStorage.removeItem(key); }; BrowserStorage.prototype.getKeys = function () { return Object.keys(this.windowStorage); }; BrowserStorage.prototype.containsKey = function (key) { return this.windowStorage.hasOwnProperty(key); }; return BrowserStorage; }()); //# sourceMappingURL=BrowserStorage.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/CryptoKeyStore.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/CryptoKeyStore.js ***! \***********************************************************************/ /*! exports provided: CryptoKeyStore, CryptoKeyStoreNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CryptoKeyStore", function() { return CryptoKeyStore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CryptoKeyStoreNames", function() { return CryptoKeyStoreNames; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _AsyncMemoryStorage_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncMemoryStorage.js */ "./node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var CryptoKeyStoreNames; (function (CryptoKeyStoreNames) { CryptoKeyStoreNames["asymmetricKeys"] = "asymmetricKeys"; CryptoKeyStoreNames["symmetricKeys"] = "symmetricKeys"; })(CryptoKeyStoreNames || (CryptoKeyStoreNames = {})); /** * MSAL CryptoKeyStore DB Version 2 */ var CryptoKeyStore = /** @class */ (function () { function CryptoKeyStore(logger) { this.logger = logger; this.asymmetricKeys = new _AsyncMemoryStorage_js__WEBPACK_IMPORTED_MODULE_1__["AsyncMemoryStorage"](this.logger, CryptoKeyStoreNames.asymmetricKeys); this.symmetricKeys = new _AsyncMemoryStorage_js__WEBPACK_IMPORTED_MODULE_1__["AsyncMemoryStorage"](this.logger, CryptoKeyStoreNames.symmetricKeys); } CryptoKeyStore.prototype.clear = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: // Delete in-memory keystores this.asymmetricKeys.clearInMemory(); this.symmetricKeys.clearInMemory(); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this.asymmetricKeys.clearPersistent()]; case 2: _a.sent(); return [2 /*return*/, true]; case 3: e_1 = _a.sent(); if (e_1 instanceof Error) { this.logger.error("Clearing keystore failed with error: " + e_1.message); } else { this.logger.error("Clearing keystore failed with unknown error"); } return [2 /*return*/, false]; case 4: return [2 /*return*/]; } }); }); }; return CryptoKeyStore; }()); //# sourceMappingURL=CryptoKeyStore.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.js": /*!************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.js ***! \************************************************************************/ /*! exports provided: DatabaseStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatabaseStorage", function() { return DatabaseStorage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Storage wrapper for IndexedDB storage in browsers: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API */ var DatabaseStorage = /** @class */ (function () { function DatabaseStorage() { this.dbName = _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["DB_NAME"]; this.version = _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["DB_VERSION"]; this.tableName = _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["DB_TABLE_NAME"]; this.dbOpen = false; } /** * Opens IndexedDB instance. */ DatabaseStorage.prototype.open = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var openDB = window.indexedDB.open(_this.dbName, _this.version); openDB.addEventListener("upgradeneeded", function (e) { var event = e; event.target.result.createObjectStore(_this.tableName); }); openDB.addEventListener("success", function (e) { var event = e; _this.db = event.target.result; _this.dbOpen = true; resolve(); }); openDB.addEventListener("error", function () { return reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createDatabaseUnavailableError()); }); })]; }); }); }; /** * Closes the connection to IndexedDB database when all pending transactions * complete. */ DatabaseStorage.prototype.closeConnection = function () { var db = this.db; if (db && this.dbOpen) { db.close(); this.dbOpen = false; } }; /** * Opens database if it's not already open */ DatabaseStorage.prototype.validateDbIsOpen = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (!!this.dbOpen) return [3 /*break*/, 2]; return [4 /*yield*/, this.open()]; case 1: return [2 /*return*/, _a.sent()]; case 2: return [2 /*return*/]; } }); }); }; /** * Retrieves item from IndexedDB instance. * @param key */ DatabaseStorage.prototype.getItem = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.validateDbIsOpen()]; case 1: _a.sent(); return [2 /*return*/, new Promise(function (resolve, reject) { // TODO: Add timeouts? if (!_this.db) { return reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createDatabaseNotOpenError()); } var transaction = _this.db.transaction([_this.tableName], "readonly"); var objectStore = transaction.objectStore(_this.tableName); var dbGet = objectStore.get(key); dbGet.addEventListener("success", function (e) { var event = e; _this.closeConnection(); resolve(event.target.result); }); dbGet.addEventListener("error", function (e) { _this.closeConnection(); reject(e); }); })]; } }); }); }; /** * Adds item to IndexedDB under given key * @param key * @param payload */ DatabaseStorage.prototype.setItem = function (key, payload) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.validateDbIsOpen()]; case 1: _a.sent(); return [2 /*return*/, new Promise(function (resolve, reject) { // TODO: Add timeouts? if (!_this.db) { return reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createDatabaseNotOpenError()); } var transaction = _this.db.transaction([_this.tableName], "readwrite"); var objectStore = transaction.objectStore(_this.tableName); var dbPut = objectStore.put(payload, key); dbPut.addEventListener("success", function () { _this.closeConnection(); resolve(); }); dbPut.addEventListener("error", function (e) { _this.closeConnection(); reject(e); }); })]; } }); }); }; /** * Removes item from IndexedDB under given key * @param key */ DatabaseStorage.prototype.removeItem = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.validateDbIsOpen()]; case 1: _a.sent(); return [2 /*return*/, new Promise(function (resolve, reject) { if (!_this.db) { return reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createDatabaseNotOpenError()); } var transaction = _this.db.transaction([_this.tableName], "readwrite"); var objectStore = transaction.objectStore(_this.tableName); var dbDelete = objectStore.delete(key); dbDelete.addEventListener("success", function () { _this.closeConnection(); resolve(); }); dbDelete.addEventListener("error", function (e) { _this.closeConnection(); reject(e); }); })]; } }); }); }; /** * Get all the keys from the storage object as an iterable array of strings. */ DatabaseStorage.prototype.getKeys = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.validateDbIsOpen()]; case 1: _a.sent(); return [2 /*return*/, new Promise(function (resolve, reject) { if (!_this.db) { return reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createDatabaseNotOpenError()); } var transaction = _this.db.transaction([_this.tableName], "readonly"); var objectStore = transaction.objectStore(_this.tableName); var dbGetKeys = objectStore.getAllKeys(); dbGetKeys.addEventListener("success", function (e) { var event = e; _this.closeConnection(); resolve(event.target.result); }); dbGetKeys.addEventListener("error", function (e) { _this.closeConnection(); reject(e); }); })]; } }); }); }; /** * * Checks whether there is an object under the search key in the object store */ DatabaseStorage.prototype.containsKey = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.validateDbIsOpen()]; case 1: _a.sent(); return [2 /*return*/, new Promise(function (resolve, reject) { if (!_this.db) { return reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createDatabaseNotOpenError()); } var transaction = _this.db.transaction([_this.tableName], "readonly"); var objectStore = transaction.objectStore(_this.tableName); var dbContainsKey = objectStore.count(key); dbContainsKey.addEventListener("success", function (e) { var event = e; _this.closeConnection(); resolve(event.target.result === 1); }); dbContainsKey.addEventListener("error", function (e) { _this.closeConnection(); reject(e); }); })]; } }); }); }; /** * Deletes the MSAL database. The database is deleted rather than cleared to make it possible * for client applications to downgrade to a previous MSAL version without worrying about forward compatibility issues * with IndexedDB database versions. */ DatabaseStorage.prototype.deleteDatabase = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { // Check if database being deleted exists if (this.db && this.dbOpen) { this.closeConnection(); } return [2 /*return*/, new Promise(function (resolve, reject) { var deleteDbRequest = window.indexedDB.deleteDatabase(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["DB_NAME"]); deleteDbRequest.addEventListener("success", function () { return resolve(true); }); deleteDbRequest.addEventListener("blocked", function () { return resolve(true); }); deleteDbRequest.addEventListener("error", function () { return reject(false); }); })]; }); }); }; return DatabaseStorage; }()); //# sourceMappingURL=DatabaseStorage.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/MemoryStorage.js": /*!**********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/MemoryStorage.js ***! \**********************************************************************/ /*! exports provided: MemoryStorage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryStorage", function() { return MemoryStorage; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var MemoryStorage = /** @class */ (function () { function MemoryStorage() { this.cache = new Map(); } MemoryStorage.prototype.getItem = function (key) { return this.cache.get(key) || null; }; MemoryStorage.prototype.setItem = function (key, value) { this.cache.set(key, value); }; MemoryStorage.prototype.removeItem = function (key) { this.cache.delete(key); }; MemoryStorage.prototype.getKeys = function () { var cacheKeys = []; this.cache.forEach(function (value, key) { cacheKeys.push(key); }); return cacheKeys; }; MemoryStorage.prototype.containsKey = function (key) { return this.cache.has(key); }; MemoryStorage.prototype.clear = function () { this.cache.clear(); }; return MemoryStorage; }()); //# sourceMappingURL=MemoryStorage.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/cache/TokenCache.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/cache/TokenCache.js ***! \*******************************************************************/ /*! exports provided: TokenCache */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenCache", function() { return TokenCache; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Token cache manager */ var TokenCache = /** @class */ (function () { function TokenCache(configuration, storage, logger, cryptoObj) { this.isBrowserEnvironment = typeof window !== "undefined"; this.config = configuration; this.storage = storage; this.logger = logger; this.cryptoObj = cryptoObj; } // Move getAllAccounts here and cache utility APIs /** * API to load tokens to msal-browser cache. * @param request * @param response * @param options * @returns `AuthenticationResult` for the response that was loaded. */ TokenCache.prototype.loadExternalTokens = function (request, response, options) { this.logger.info("TokenCache - loadExternalTokens called"); if (!response.id_token) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("Please ensure server response includes id token."); } var idToken = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AuthToken"](response.id_token, this.cryptoObj); var cacheRecord; var authority; if (request.account) { var cacheRecordAccount = this.loadAccount(idToken, request.account.environment, undefined, undefined, request.account.homeAccountId); cacheRecord = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["CacheRecord"](cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, request.account.environment, request.account.tenantId), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, request.account.environment, request.account.tenantId, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, request.account.environment)); } else if (request.authority) { var authorityUrl = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Authority"].generateAuthority(request.authority, request.azureCloudOptions); var authorityOptions = { protocolMode: this.config.auth.protocolMode, knownAuthorities: this.config.auth.knownAuthorities, cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata, authorityMetadata: this.config.auth.authorityMetadata, skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache, }; authority = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Authority"](authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger); // "clientInfo" from options takes precedence over "clientInfo" in response if (options.clientInfo) { this.logger.trace("TokenCache - homeAccountId from options"); var cacheRecordAccount = this.loadAccount(idToken, authority.hostnameAndPort, options.clientInfo, authority.authorityType); cacheRecord = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["CacheRecord"](cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort)); } else if (response.client_info) { this.logger.trace("TokenCache - homeAccountId from response"); var cacheRecordAccount = this.loadAccount(idToken, authority.hostnameAndPort, response.client_info, authority.authorityType); cacheRecord = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["CacheRecord"](cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort)); } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("Please provide clientInfo in the response or options."); } } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("Please provide a request with an account or a request with authority."); } return this.generateAuthenticationResult(request, idToken, cacheRecord, authority); }; /** * Helper function to load account to msal-browser cache * @param idToken * @param environment * @param clientInfo * @param authorityType * @param requestHomeAccountId * @returns `AccountEntity` */ TokenCache.prototype.loadAccount = function (idToken, environment, clientInfo, authorityType, requestHomeAccountId) { var homeAccountId; if (requestHomeAccountId) { homeAccountId = requestHomeAccountId; } else if (authorityType !== undefined && clientInfo) { homeAccountId = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AccountEntity"].generateHomeAccountId(clientInfo, authorityType, this.logger, this.cryptoObj, idToken); } if (!homeAccountId) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("Unexpected missing homeAccountId"); } var accountEntity = clientInfo ? _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AccountEntity"].createAccount(clientInfo, homeAccountId, idToken, undefined, undefined, undefined, environment) : _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AccountEntity"].createGenericAccount(homeAccountId, idToken, undefined, undefined, undefined, environment); if (this.isBrowserEnvironment) { this.logger.verbose("TokenCache - loading account"); this.storage.setAccount(accountEntity); return accountEntity; } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only."); } }; /** * Helper function to load id tokens to msal-browser cache * @param idToken * @param homeAccountId * @param environment * @param tenantId * @returns `IdTokenEntity` */ TokenCache.prototype.loadIdToken = function (idToken, homeAccountId, environment, tenantId) { var idTokenEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["IdTokenEntity"].createIdTokenEntity(homeAccountId, environment, idToken.rawToken, this.config.auth.clientId, tenantId); if (this.isBrowserEnvironment) { this.logger.verbose("TokenCache - loading id token"); this.storage.setIdTokenCredential(idTokenEntity); return idTokenEntity; } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only."); } }; /** * Helper function to load access tokens to msal-browser cache * @param request * @param response * @param homeAccountId * @param environment * @param tenantId * @returns `AccessTokenEntity` */ TokenCache.prototype.loadAccessToken = function (request, response, homeAccountId, environment, tenantId, options) { if (!response.access_token) { this.logger.verbose("TokenCache - No access token provided for caching"); return null; } if (!response.expires_in) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("Please ensure server response includes expires_in value."); } if (!options.extendedExpiresOn) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options."); } var scopes = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["ScopeSet"](request.scopes).printScopes(); var expiresOn = options.expiresOn || (response.expires_in + new Date().getTime() / 1000); var extendedExpiresOn = options.extendedExpiresOn; var accessTokenEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AccessTokenEntity"].createAccessTokenEntity(homeAccountId, environment, response.access_token, this.config.auth.clientId, tenantId, scopes, expiresOn, extendedExpiresOn, this.cryptoObj); if (this.isBrowserEnvironment) { this.logger.verbose("TokenCache - loading access token"); this.storage.setAccessTokenCredential(accessTokenEntity); return accessTokenEntity; } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only."); } }; /** * Helper function to load refresh tokens to msal-browser cache * @param request * @param response * @param homeAccountId * @param environment * @returns `RefreshTokenEntity` */ TokenCache.prototype.loadRefreshToken = function (request, response, homeAccountId, environment) { if (!response.refresh_token) { this.logger.verbose("TokenCache - No refresh token provided for caching"); return null; } var refreshTokenEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["RefreshTokenEntity"].createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, this.config.auth.clientId); if (this.isBrowserEnvironment) { this.logger.verbose("TokenCache - loading refresh token"); this.storage.setRefreshTokenCredential(refreshTokenEntity); return refreshTokenEntity; } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only."); } }; /** * Helper function to generate an `AuthenticationResult` for the result. * @param request * @param idTokenObj * @param cacheRecord * @param authority * @returns `AuthenticationResult` */ TokenCache.prototype.generateAuthenticationResult = function (request, idTokenObj, cacheRecord, authority) { var _a, _b, _c; var accessToken = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; var responseScopes = []; var expiresOn = null; var extExpiresOn; if (cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.accessToken) { accessToken = cacheRecord.accessToken.secret; responseScopes = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["ScopeSet"].fromString(cacheRecord.accessToken.target).asArray(); expiresOn = new Date(Number(cacheRecord.accessToken.expiresOn) * 1000); extExpiresOn = new Date(Number(cacheRecord.accessToken.extendedExpiresOn) * 1000); } var uid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.oid) || (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.sub) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; var tid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.tid) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; return { authority: authority ? authority.canonicalAuthority : _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, uniqueId: uid, tenantId: tid, scopes: responseScopes, account: (cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.account) ? cacheRecord.account.getAccountInfo() : null, idToken: idTokenObj ? idTokenObj.rawToken : _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, idTokenClaims: idTokenObj ? idTokenObj.claims : {}, accessToken: accessToken, fromCache: true, expiresOn: expiresOn, correlationId: request.correlationId || _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, requestId: _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, extExpiresOn: extExpiresOn, familyId: _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, tokenType: ((_a = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.accessToken) === null || _a === void 0 ? void 0 : _a.tokenType) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, state: _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, cloudGraphHostName: ((_b = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.account) === null || _b === void 0 ? void 0 : _b.cloudGraphHostName) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, msGraphHost: ((_c = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.account) === null || _c === void 0 ? void 0 : _c.msGraphHost) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, code: undefined, fromNativeBroker: false }; }; return TokenCache; }()); //# sourceMappingURL=TokenCache.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/config/Configuration.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/config/Configuration.js ***! \***********************************************************************/ /*! exports provided: DEFAULT_IFRAME_TIMEOUT_MS, DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, DEFAULT_POPUP_TIMEOUT_MS, DEFAULT_REDIRECT_TIMEOUT_MS, buildConfiguration */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_IFRAME_TIMEOUT_MS", function() { return DEFAULT_IFRAME_TIMEOUT_MS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS", function() { return DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_POPUP_TIMEOUT_MS", function() { return DEFAULT_POPUP_TIMEOUT_MS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_REDIRECT_TIMEOUT_MS", function() { return DEFAULT_REDIRECT_TIMEOUT_MS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildConfiguration", function() { return buildConfiguration; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _navigation_NavigationClient_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../navigation/NavigationClient.js */ "./node_modules/@azure/msal-browser/dist/navigation/NavigationClient.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ // Default timeout for popup windows and iframes in milliseconds var DEFAULT_POPUP_TIMEOUT_MS = 60000; var DEFAULT_IFRAME_TIMEOUT_MS = 6000; var DEFAULT_REDIRECT_TIMEOUT_MS = 30000; var DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS = 2000; /** * MSAL function that sets the default options when not explicitly configured from app developer * * @param auth * @param cache * @param system * * @returns Configuration object */ function buildConfiguration(_a, isBrowserEnvironment) { var userInputAuth = _a.auth, userInputCache = _a.cache, userInputSystem = _a.system, userInputTelemetry = _a.telemetry; // Default auth options for browser var DEFAULT_AUTH_OPTIONS = { clientId: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, authority: "" + _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].DEFAULT_AUTHORITY, knownAuthorities: [], cloudDiscoveryMetadata: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, authorityMetadata: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, redirectUri: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, postLogoutRedirectUri: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, navigateToLoginRequestUrl: true, clientCapabilities: [], protocolMode: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolMode"].AAD, azureCloudOptions: { azureCloudInstance: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AzureCloudInstance"].None, tenant: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }, skipAuthorityMetadataCache: false, }; // Default cache options for browser var DEFAULT_CACHE_OPTIONS = { cacheLocation: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].SessionStorage, temporaryCacheLocation: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].SessionStorage, storeAuthStateInCookie: false, secureCookies: false, // Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage cacheMigrationEnabled: userInputCache && userInputCache.cacheLocation === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"].LocalStorage ? true : false, claimsBasedCachingEnabled: true }; // Default logger options for browser var DEFAULT_LOGGER_OPTIONS = { // eslint-disable-next-line @typescript-eslint/no-empty-function loggerCallback: function () { // allow users to not set logger call back }, logLevel: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["LogLevel"].Info, piiLoggingEnabled: false }; // Default system options for browser var DEFAULT_BROWSER_SYSTEM_OPTIONS = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_SYSTEM_OPTIONS"]), { loggerOptions: DEFAULT_LOGGER_OPTIONS, networkClient: isBrowserEnvironment ? _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_2__["BrowserUtils"].getBrowserNetworkClient() : _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StubbedNetworkModule"], navigationClient: new _navigation_NavigationClient_js__WEBPACK_IMPORTED_MODULE_4__["NavigationClient"](), loadFrameTimeout: 0, // If loadFrameTimeout is provided, use that as default. windowHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_POPUP_TIMEOUT_MS, iframeHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_IFRAME_TIMEOUT_MS, navigateFrameWait: isBrowserEnvironment && _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_2__["BrowserUtils"].detectIEOrEdge() ? 500 : 0, redirectNavigationTimeout: DEFAULT_REDIRECT_TIMEOUT_MS, asyncPopups: false, allowRedirectInIframe: false, allowNativeBroker: false, nativeBrokerHandshakeTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.nativeBrokerHandshakeTimeout) || DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, pollIntervalMilliseconds: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserConstants"].DEFAULT_POLL_INTERVAL_MS, cryptoOptions: { useMsrCrypto: false, entropy: undefined } }); var providedSystemOptions = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, userInputSystem), { loggerOptions: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loggerOptions) || DEFAULT_LOGGER_OPTIONS }); var DEFAULT_TELEMETRY_OPTIONS = { application: { appName: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, appVersion: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING } }; var overlayedConfig = { auth: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_AUTH_OPTIONS), userInputAuth), cache: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_CACHE_OPTIONS), userInputCache), system: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_BROWSER_SYSTEM_OPTIONS), providedSystemOptions), telemetry: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_TELEMETRY_OPTIONS), userInputTelemetry) }; return overlayedConfig; } //# sourceMappingURL=Configuration.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.js ***! \***********************************************************************/ /*! exports provided: BrowserCrypto */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserCrypto", function() { return BrowserCrypto; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserStringUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _ModernBrowserCrypto_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ModernBrowserCrypto.js */ "./node_modules/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js"); /* harmony import */ var _MsrBrowserCrypto_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MsrBrowserCrypto.js */ "./node_modules/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js"); /* harmony import */ var _MsBrowserCrypto_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MsBrowserCrypto.js */ "./node_modules/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js"); /* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../error/BrowserConfigurationAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * See here for more info on RsaHashedKeyGenParams: https://developer.mozilla.org/en-US/docs/Web/API/RsaHashedKeyGenParams */ // RSA KeyGen Algorithm var PKCS1_V15_KEYGEN_ALG = "RSASSA-PKCS1-v1_5"; // SHA-256 hashing algorithm var S256_HASH_ALG = "SHA-256"; // MOD length for PoP tokens var MODULUS_LENGTH = 2048; // Public Exponent var PUBLIC_EXPONENT = new Uint8Array([0x01, 0x00, 0x01]); /** * This class implements functions used by the browser library to perform cryptography operations such as * hashing and encoding. It also has helper functions to validate the availability of specific APIs. */ var BrowserCrypto = /** @class */ (function () { function BrowserCrypto(logger, cryptoOptions) { var _a, _b; this.logger = logger; this.cryptoOptions = cryptoOptions; if (this.hasBrowserCrypto()) { // Use standard modern web crypto if available this.logger.verbose("BrowserCrypto: modern crypto interface available"); this.subtleCrypto = new _ModernBrowserCrypto_js__WEBPACK_IMPORTED_MODULE_3__["ModernBrowserCrypto"](); } else if (this.hasIECrypto()) { // For IE11, use msCrypto interface this.logger.verbose("BrowserCrypto: MS crypto interface available"); this.subtleCrypto = new _MsBrowserCrypto_js__WEBPACK_IMPORTED_MODULE_5__["MsBrowserCrypto"](); } else if (this.hasMsrCrypto() && ((_a = this.cryptoOptions) === null || _a === void 0 ? void 0 : _a.useMsrCrypto)) { // For other browsers, use MSR Crypto if found this.logger.verbose("BrowserCrypto: MSR crypto interface available"); this.subtleCrypto = new _MsrBrowserCrypto_js__WEBPACK_IMPORTED_MODULE_4__["MsrBrowserCrypto"](); } else { if (this.hasMsrCrypto()) { this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"); } this.logger.error("BrowserCrypto: No crypto interfaces available."); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available."); } // Mainly needed for MSR Crypto: https://github.com/microsoft/MSR-JavaScript-Crypto#random-number-generator-prng if (this.subtleCrypto.initPrng) { this.logger.verbose("BrowserCrypto: Interface requires entropy"); if (!((_b = this.cryptoOptions) === null || _b === void 0 ? void 0 : _b.entropy)) { this.logger.error("BrowserCrypto: Interface requires entropy but none provided."); throw _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_6__["BrowserConfigurationAuthError"].createEntropyNotProvided(); } this.logger.verbose("BrowserCrypto: Entropy provided"); this.subtleCrypto.initPrng(this.cryptoOptions.entropy); } this.keygenAlgorithmOptions = { name: PKCS1_V15_KEYGEN_ALG, hash: S256_HASH_ALG, modulusLength: MODULUS_LENGTH, publicExponent: PUBLIC_EXPONENT }; } /** * Check whether IE crypto or other browser cryptography is available. */ BrowserCrypto.prototype.hasIECrypto = function () { return "msCrypto" in window; }; /** * Check whether browser crypto is available. */ BrowserCrypto.prototype.hasBrowserCrypto = function () { return "crypto" in window; }; /** * Check whether MSR crypto polyfill is available */ BrowserCrypto.prototype.hasMsrCrypto = function () { return "msrCrypto" in window; }; /** * Returns a sha-256 hash of the given dataString as an ArrayBuffer. * @param dataString */ BrowserCrypto.prototype.sha256Digest = function (dataString) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var data; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { data = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_1__["BrowserStringUtils"].stringToUtf8Arr(dataString); // MSR Crypto wants object with name property, instead of string return [2 /*return*/, this.subtleCrypto.digest({ name: S256_HASH_ALG }, data)]; }); }); }; /** * Populates buffer with cryptographically random values. * @param dataBuffer */ BrowserCrypto.prototype.getRandomValues = function (dataBuffer) { return this.subtleCrypto.getRandomValues(dataBuffer); }; /** * Generates a keypair based on current keygen algorithm config. * @param extractable * @param usages */ BrowserCrypto.prototype.generateKeyPair = function (extractable, usages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.subtleCrypto.generateKey(this.keygenAlgorithmOptions, extractable, usages)]; }); }); }; /** * Export key as Json Web Key (JWK) * @param key * @param format */ BrowserCrypto.prototype.exportJwk = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.subtleCrypto.exportKey(key)]; }); }); }; /** * Imports key as Json Web Key (JWK), can set extractable and usages. * @param key * @param format * @param extractable * @param usages */ BrowserCrypto.prototype.importJwk = function (key, extractable, usages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.subtleCrypto.importKey(key, this.keygenAlgorithmOptions, extractable, usages)]; }); }); }; /** * Signs given data with given key * @param key * @param data */ BrowserCrypto.prototype.sign = function (key, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.subtleCrypto.sign(this.keygenAlgorithmOptions, key, data)]; }); }); }; return BrowserCrypto; }()); //# sourceMappingURL=BrowserCrypto.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js ***! \*******************************************************************/ /*! exports provided: CryptoOps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CryptoOps", function() { return CryptoOps; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _GuidGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GuidGenerator.js */ "./node_modules/@azure/msal-browser/dist/crypto/GuidGenerator.js"); /* harmony import */ var _encode_Base64Encode_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../encode/Base64Encode.js */ "./node_modules/@azure/msal-browser/dist/encode/Base64Encode.js"); /* harmony import */ var _encode_Base64Decode_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../encode/Base64Decode.js */ "./node_modules/@azure/msal-browser/dist/encode/Base64Decode.js"); /* harmony import */ var _PkceGenerator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PkceGenerator.js */ "./node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.js"); /* harmony import */ var _BrowserCrypto_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BrowserCrypto.js */ "./node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.js"); /* harmony import */ var _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/BrowserStringUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _cache_CryptoKeyStore_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../cache/CryptoKeyStore.js */ "./node_modules/@azure/msal-browser/dist/cache/CryptoKeyStore.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This class implements MSAL's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636). */ var CryptoOps = /** @class */ (function () { function CryptoOps(logger, performanceClient, cryptoConfig) { this.logger = logger; // Browser crypto needs to be validated first before any other classes can be set. this.browserCrypto = new _BrowserCrypto_js__WEBPACK_IMPORTED_MODULE_6__["BrowserCrypto"](this.logger, cryptoConfig); this.b64Encode = new _encode_Base64Encode_js__WEBPACK_IMPORTED_MODULE_3__["Base64Encode"](); this.b64Decode = new _encode_Base64Decode_js__WEBPACK_IMPORTED_MODULE_4__["Base64Decode"](); this.guidGenerator = new _GuidGenerator_js__WEBPACK_IMPORTED_MODULE_2__["GuidGenerator"](this.browserCrypto); this.pkceGenerator = new _PkceGenerator_js__WEBPACK_IMPORTED_MODULE_5__["PkceGenerator"](this.browserCrypto); this.cache = new _cache_CryptoKeyStore_js__WEBPACK_IMPORTED_MODULE_9__["CryptoKeyStore"](this.logger); this.performanceClient = performanceClient; } /** * Creates a new random GUID - used to populate state and nonce. * @returns string (GUID) */ CryptoOps.prototype.createNewGuid = function () { return this.guidGenerator.generateGuid(); }; /** * Encodes input string to base64. * @param input */ CryptoOps.prototype.base64Encode = function (input) { return this.b64Encode.encode(input); }; /** * Decodes input string from base64. * @param input */ CryptoOps.prototype.base64Decode = function (input) { return this.b64Decode.decode(input); }; /** * Generates PKCE codes used in Authorization Code Flow. */ CryptoOps.prototype.generatePkceCodes = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.pkceGenerator.generateCodes()]; }); }); }; /** * Generates a keypair, stores it and returns a thumbprint * @param request */ CryptoOps.prototype.getPublicKeyThumbprint = function (request) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var publicKeyThumbMeasurement, keyPair, publicKeyJwk, pubKeyThumprintObj, publicJwkString, publicJwkHash, privateKeyJwk, unextractablePrivateKey; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: publicKeyThumbMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].CryptoOptsGetPublicKeyThumbprint, request.correlationId); return [4 /*yield*/, this.browserCrypto.generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES)]; case 1: keyPair = _b.sent(); return [4 /*yield*/, this.browserCrypto.exportJwk(keyPair.publicKey)]; case 2: publicKeyJwk = _b.sent(); pubKeyThumprintObj = { e: publicKeyJwk.e, kty: publicKeyJwk.kty, n: publicKeyJwk.n }; publicJwkString = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserStringUtils"].getSortedObjectString(pubKeyThumprintObj); return [4 /*yield*/, this.hashString(publicJwkString)]; case 3: publicJwkHash = _b.sent(); return [4 /*yield*/, this.browserCrypto.exportJwk(keyPair.privateKey)]; case 4: privateKeyJwk = _b.sent(); return [4 /*yield*/, this.browserCrypto.importJwk(privateKeyJwk, false, ["sign"])]; case 5: unextractablePrivateKey = _b.sent(); // Store Keypair data in keystore return [4 /*yield*/, this.cache.asymmetricKeys.setItem(publicJwkHash, { privateKey: unextractablePrivateKey, publicKey: keyPair.publicKey, requestMethod: request.resourceRequestMethod, requestUri: request.resourceRequestUri })]; case 6: // Store Keypair data in keystore _b.sent(); if (publicKeyThumbMeasurement) { publicKeyThumbMeasurement.endMeasurement({ success: true }); } return [2 /*return*/, publicJwkHash]; } }); }); }; /** * Removes cryptographic keypair from key store matching the keyId passed in * @param kid */ CryptoOps.prototype.removeTokenBindingKey = function (kid) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var keyFound; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.cache.asymmetricKeys.removeItem(kid)]; case 1: _a.sent(); return [4 /*yield*/, this.cache.asymmetricKeys.containsKey(kid)]; case 2: keyFound = _a.sent(); return [2 /*return*/, !keyFound]; } }); }); }; /** * Removes all cryptographic keys from IndexedDB storage */ CryptoOps.prototype.clearKeystore = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.cache.clear()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; /** * Signs the given object as a jwt payload with private key retrieved by given kid. * @param payload * @param kid */ CryptoOps.prototype.signJwt = function (payload, kid, correlationId) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var signJwtMeasurement, cachedKeyPair, publicKeyJwk, publicKeyJwkString, encodedKeyIdThumbprint, shrHeader, encodedShrHeader, encodedPayload, tokenString, tokenBuffer, signatureBuffer, encodedSignature, signedJwt; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: signJwtMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].CryptoOptsSignJwt, correlationId); return [4 /*yield*/, this.cache.asymmetricKeys.getItem(kid)]; case 1: cachedKeyPair = _b.sent(); if (!cachedKeyPair) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createSigningKeyNotFoundInStorageError(kid); } return [4 /*yield*/, this.browserCrypto.exportJwk(cachedKeyPair.publicKey)]; case 2: publicKeyJwk = _b.sent(); publicKeyJwkString = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserStringUtils"].getSortedObjectString(publicKeyJwk); encodedKeyIdThumbprint = this.b64Encode.urlEncode(JSON.stringify({ kid: kid })); shrHeader = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["JoseHeader"].getShrHeaderString({ kid: encodedKeyIdThumbprint, alg: publicKeyJwk.alg }); encodedShrHeader = this.b64Encode.urlEncode(shrHeader); // Generate payload payload.cnf = { jwk: JSON.parse(publicKeyJwkString) }; encodedPayload = this.b64Encode.urlEncode(JSON.stringify(payload)); tokenString = encodedShrHeader + "." + encodedPayload; tokenBuffer = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserStringUtils"].stringToArrayBuffer(tokenString); return [4 /*yield*/, this.browserCrypto.sign(cachedKeyPair.privateKey, tokenBuffer)]; case 3: signatureBuffer = _b.sent(); encodedSignature = this.b64Encode.urlEncodeArr(new Uint8Array(signatureBuffer)); signedJwt = tokenString + "." + encodedSignature; if (signJwtMeasurement) { signJwtMeasurement.endMeasurement({ success: true }); } return [2 /*return*/, signedJwt]; } }); }); }; /** * Returns the SHA-256 hash of an input string * @param plainText */ CryptoOps.prototype.hashString = function (plainText) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var hashBuffer, hashBytes; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.browserCrypto.sha256Digest(plainText)]; case 1: hashBuffer = _a.sent(); hashBytes = new Uint8Array(hashBuffer); return [2 /*return*/, this.b64Encode.urlEncodeArr(hashBytes)]; } }); }); }; CryptoOps.POP_KEY_USAGES = ["sign", "verify"]; CryptoOps.EXTRACTABLE = true; return CryptoOps; }()); //# sourceMappingURL=CryptoOps.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/GuidGenerator.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/GuidGenerator.js ***! \***********************************************************************/ /*! exports provided: GuidGenerator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GuidGenerator", function() { return GuidGenerator; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/MathUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/MathUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var GuidGenerator = /** @class */ (function () { function GuidGenerator(cryptoObj) { this.cryptoObj = cryptoObj; } /* * RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or * pseudo-random numbers. * The algorithm is as follows: * Set the two most significant bits (bits 6 and 7) of the * clock_seq_hi_and_reserved to zero and one, respectively. * Set the four most significant bits (bits 12 through 15) of the * time_hi_and_version field to the 4-bit version number from * Section 4.1.3. Version4 * Set all the other bits to randomly (or pseudo-randomly) chosen * values. * UUID = time-low "-" time-mid "-"time-high-and-version "-"clock-seq-reserved and low(2hexOctet)"-" node * time-low = 4hexOctet * time-mid = 2hexOctet * time-high-and-version = 2hexOctet * clock-seq-and-reserved = hexOctet: * clock-seq-low = hexOctet * node = 6hexOctet * Format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx * y could be 1000, 1001, 1010, 1011 since most significant two bits needs to be 10 * y values are 8, 9, A, B */ GuidGenerator.prototype.generateGuid = function () { try { var buffer = new Uint8Array(16); this.cryptoObj.getRandomValues(buffer); // buffer[6] and buffer[7] represents the time_hi_and_version field. We will set the four most significant bits (4 through 7) of buffer[6] to represent decimal number 4 (UUID version number). buffer[6] |= 0x40; // buffer[6] | 01000000 will set the 6 bit to 1. buffer[6] &= 0x4f; // buffer[6] & 01001111 will set the 4, 5, and 7 bit to 0 such that bits 4-7 == 0100 = "4". // buffer[8] represents the clock_seq_hi_and_reserved field. We will set the two most significant bits (6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively. buffer[8] |= 0x80; // buffer[8] | 10000000 will set the 7 bit to 1. buffer[8] &= 0xbf; // buffer[8] & 10111111 will set the 6 bit to 0. return _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[0]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[1]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[2]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[3]) + "-" + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[4]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[5]) + "-" + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[6]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[7]) + "-" + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[8]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[9]) + "-" + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[10]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[11]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[12]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[13]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[14]) + _utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_1__["MathUtils"].decimalToHex(buffer[15]); } catch (err) { var guidHolder = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"; var hex = "0123456789abcdef"; var r = 0; var guidResponse = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; for (var i = 0; i < 36; i++) { if (guidHolder[i] !== "-" && guidHolder[i] !== "4") { // each x and y needs to be random r = Math.random() * 16 | 0; } if (guidHolder[i] === "x") { guidResponse += hex[r]; } else if (guidHolder[i] === "y") { // clock-seq-and-reserved first hex is filtered and remaining hex values are random r &= 0x3; // bit and with 0011 to set pos 2 to zero ?0?? r |= 0x8; // set pos 3 to 1 as 1??? guidResponse += hex[r]; } else { guidResponse += guidHolder[i]; } } return guidResponse; } }; /** * verifies if a string is GUID * @param guid */ GuidGenerator.prototype.isGuid = function (guid) { var regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; return regexGuid.test(guid); }; return GuidGenerator; }()); //# sourceMappingURL=GuidGenerator.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js": /*!*****************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js ***! \*****************************************************************************/ /*! exports provided: ModernBrowserCrypto */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModernBrowserCrypto", function() { return ModernBrowserCrypto; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var ModernBrowserCrypto = /** @class */ (function () { function ModernBrowserCrypto() { } ModernBrowserCrypto.prototype.getRandomValues = function (dataBuffer) { return window.crypto.getRandomValues(dataBuffer); }; ModernBrowserCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.crypto.subtle.generateKey(algorithm, extractable, keyUsages)]; }); }); }; ModernBrowserCrypto.prototype.exportKey = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.crypto.subtle.exportKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["KEY_FORMAT_JWK"], key)]; }); }); }; ModernBrowserCrypto.prototype.importKey = function (keyData, algorithm, extractable, keyUsages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.crypto.subtle.importKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["KEY_FORMAT_JWK"], keyData, algorithm, extractable, keyUsages)]; }); }); }; ModernBrowserCrypto.prototype.sign = function (algorithm, key, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.crypto.subtle.sign(algorithm, key, data)]; }); }); }; ModernBrowserCrypto.prototype.digest = function (algorithm, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.crypto.subtle.digest(algorithm, data)]; }); }); }; return ModernBrowserCrypto; }()); //# sourceMappingURL=ModernBrowserCrypto.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js ***! \*************************************************************************/ /*! exports provided: MsBrowserCrypto */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MsBrowserCrypto", function() { return MsBrowserCrypto; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserStringUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var MsBrowserCrypto = /** @class */ (function () { function MsBrowserCrypto() { } MsBrowserCrypto.prototype.getRandomValues = function (dataBuffer) { return window["msCrypto"].getRandomValues(dataBuffer); }; MsBrowserCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var msGenerateKey = window["msCrypto"].subtle.generateKey(algorithm, extractable, keyUsages); msGenerateKey.addEventListener("complete", function (e) { resolve(e.target.result); }); msGenerateKey.addEventListener("error", function (error) { reject(error); }); })]; }); }); }; MsBrowserCrypto.prototype.exportKey = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var msExportKey = window["msCrypto"].subtle.exportKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["KEY_FORMAT_JWK"], key); msExportKey.addEventListener("complete", function (e) { var resultBuffer = e.target.result; var resultString = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_3__["BrowserStringUtils"].utf8ArrToString(new Uint8Array(resultBuffer)) .replace(/\r/g, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING) .replace(/\n/g, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING) .replace(/\t/g, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING) .split(" ").join(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING) .replace("\u0000", _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING); try { resolve(JSON.parse(resultString)); } catch (e) { reject(e); } }); msExportKey.addEventListener("error", function (error) { reject(error); }); })]; }); }); }; MsBrowserCrypto.prototype.importKey = function (keyData, algorithm, extractable, keyUsages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var keyString, keyBuffer; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { keyString = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_3__["BrowserStringUtils"].getSortedObjectString(keyData); keyBuffer = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_3__["BrowserStringUtils"].stringToArrayBuffer(keyString); return [2 /*return*/, new Promise(function (resolve, reject) { var msImportKey = window["msCrypto"].subtle.importKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["KEY_FORMAT_JWK"], keyBuffer, algorithm, extractable, keyUsages); msImportKey.addEventListener("complete", function (e) { resolve(e.target.result); }); msImportKey.addEventListener("error", function (error) { reject(error); }); })]; }); }); }; MsBrowserCrypto.prototype.sign = function (algorithm, key, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var msSign = window["msCrypto"].subtle.sign(algorithm, key, data); msSign.addEventListener("complete", function (e) { resolve(e.target.result); }); msSign.addEventListener("error", function (error) { reject(error); }); })]; }); }); }; MsBrowserCrypto.prototype.digest = function (algorithm, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { var digestOperation = window["msCrypto"].subtle.digest(algorithm, data.buffer); digestOperation.addEventListener("complete", function (e) { resolve(e.target.result); }); digestOperation.addEventListener("error", function (error) { reject(error); }); })]; }); }); }; return MsBrowserCrypto; }()); //# sourceMappingURL=MsBrowserCrypto.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js": /*!**************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js ***! \**************************************************************************/ /*! exports provided: MsrBrowserCrypto */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MsrBrowserCrypto", function() { return MsrBrowserCrypto; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var MsrBrowserCrypto = /** @class */ (function () { function MsrBrowserCrypto() { } MsrBrowserCrypto.prototype.initPrng = function (entropy) { // Turn into array, as initPrng seems to not always like Uint8Array (even though it should support both) return window.msrCrypto.initPrng(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spread"])(entropy)); }; MsrBrowserCrypto.prototype.getRandomValues = function (dataBuffer) { return window.msrCrypto.getRandomValues(dataBuffer); }; MsrBrowserCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.msrCrypto.subtle.generateKey(algorithm, extractable, keyUsages)]; }); }); }; MsrBrowserCrypto.prototype.exportKey = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.msrCrypto.subtle.exportKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["KEY_FORMAT_JWK"], key)]; }); }); }; MsrBrowserCrypto.prototype.importKey = function (keyData, algorithm, extractable, keyUsages) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.msrCrypto.subtle.importKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["KEY_FORMAT_JWK"], keyData, algorithm, extractable, keyUsages)]; }); }); }; MsrBrowserCrypto.prototype.sign = function (algorithm, key, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.msrCrypto.subtle.sign(algorithm, key, data)]; }); }); }; MsrBrowserCrypto.prototype.digest = function (algorithm, data) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, window.msrCrypto.subtle.digest(algorithm, data)]; }); }); }; return MsrBrowserCrypto; }()); //# sourceMappingURL=MsrBrowserCrypto.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.js ***! \***********************************************************************/ /*! exports provided: PkceGenerator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PkceGenerator", function() { return PkceGenerator; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _encode_Base64Encode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../encode/Base64Encode.js */ "./node_modules/@azure/msal-browser/dist/encode/Base64Encode.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ // Constant byte array length var RANDOM_BYTE_ARR_LENGTH = 32; /** * Class which exposes APIs to generate PKCE codes and code verifiers. */ var PkceGenerator = /** @class */ (function () { function PkceGenerator(cryptoObj) { this.base64Encode = new _encode_Base64Encode_js__WEBPACK_IMPORTED_MODULE_2__["Base64Encode"](); this.cryptoObj = cryptoObj; } /** * Generates PKCE Codes. See the RFC for more information: https://tools.ietf.org/html/rfc7636 */ PkceGenerator.prototype.generateCodes = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var codeVerifier, codeChallenge; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: codeVerifier = this.generateCodeVerifier(); return [4 /*yield*/, this.generateCodeChallengeFromVerifier(codeVerifier)]; case 1: codeChallenge = _a.sent(); return [2 /*return*/, { verifier: codeVerifier, challenge: codeChallenge }]; } }); }); }; /** * Generates a random 32 byte buffer and returns the base64 * encoded string to be used as a PKCE Code Verifier */ PkceGenerator.prototype.generateCodeVerifier = function () { try { // Generate random values as utf-8 var buffer = new Uint8Array(RANDOM_BYTE_ARR_LENGTH); this.cryptoObj.getRandomValues(buffer); // encode verifier as base64 var pkceCodeVerifierB64 = this.base64Encode.urlEncodeArr(buffer); return pkceCodeVerifierB64; } catch (e) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createPkceNotGeneratedError(e); } }; /** * Creates a base64 encoded PKCE Code Challenge string from the * hash created from the PKCE Code Verifier supplied */ PkceGenerator.prototype.generateCodeChallengeFromVerifier = function (pkceCodeVerifier) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var pkceHashedCodeVerifier, e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, this.cryptoObj.sha256Digest(pkceCodeVerifier)]; case 1: pkceHashedCodeVerifier = _a.sent(); // encode hash as base64 return [2 /*return*/, this.base64Encode.urlEncodeArr(new Uint8Array(pkceHashedCodeVerifier))]; case 2: e_1 = _a.sent(); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createPkceNotGeneratedError(e_1); case 3: return [2 /*return*/]; } }); }); }; return PkceGenerator; }()); //# sourceMappingURL=PkceGenerator.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.js": /*!***************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.js ***! \***************************************************************************/ /*! exports provided: SignedHttpRequest */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignedHttpRequest", function() { return SignedHttpRequest; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _CryptoOps_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CryptoOps.js */ "./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-browser/dist/packageMetadata.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SignedHttpRequest = /** @class */ (function () { function SignedHttpRequest(shrParameters, shrOptions) { var loggerOptions = (shrOptions && shrOptions.loggerOptions) || {}; this.logger = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["Logger"](loggerOptions, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_3__["name"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_3__["version"]); this.cryptoOps = new _CryptoOps_js__WEBPACK_IMPORTED_MODULE_1__["CryptoOps"](this.logger); this.popTokenGenerator = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PopTokenGenerator"](this.cryptoOps); this.shrParameters = shrParameters; } /** * Generates and caches a keypair for the given request options. * @returns Public key digest, which should be sent to the token issuer. */ SignedHttpRequest.prototype.generatePublicKeyThumbprint = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var kid; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.popTokenGenerator.generateKid(this.shrParameters)]; case 1: kid = (_a.sent()).kid; return [2 /*return*/, kid]; } }); }); }; /** * Generates a signed http request for the given payload with the given key. * @param payload Payload to sign (e.g. access token) * @param publicKeyThumbprint Public key digest (from generatePublicKeyThumbprint API) * @param claims Additional claims to include/override in the signed JWT * @returns Pop token signed with the corresponding private key */ SignedHttpRequest.prototype.signRequest = function (payload, publicKeyThumbprint, claims) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.popTokenGenerator.signPayload(payload, publicKeyThumbprint, this.shrParameters, claims)]; }); }); }; /** * Removes cached keys from browser for given public key thumbprint * @param publicKeyThumbprint Public key digest (from generatePublicKeyThumbprint API) * @returns If keys are properly deleted */ SignedHttpRequest.prototype.removeKeys = function (publicKeyThumbprint) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.cryptoOps.removeTokenBindingKey(publicKeyThumbprint)]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; return SignedHttpRequest; }()); //# sourceMappingURL=SignedHttpRequest.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/encode/Base64Decode.js": /*!**********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/encode/Base64Decode.js ***! \**********************************************************************/ /*! exports provided: Base64Decode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Base64Decode", function() { return Base64Decode; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserStringUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Class which exposes APIs to decode base64 strings to plaintext. See here for implementation details: * https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64 */ var Base64Decode = /** @class */ (function () { function Base64Decode() { } /** * Returns a URL-safe plaintext decoded string from b64 encoded input. * @param input */ Base64Decode.prototype.decode = function (input) { var encodedString = input.replace(/-/g, "+").replace(/_/g, "/"); switch (encodedString.length % 4) { case 0: break; case 2: encodedString += "=="; break; case 3: encodedString += "="; break; default: throw new Error("Invalid base64 string"); } var inputUtf8Arr = this.base64DecToArr(encodedString); return _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_1__["BrowserStringUtils"].utf8ArrToString(inputUtf8Arr); }; /** * Decodes base64 into Uint8Array * @param base64String * @param nBlockSize */ Base64Decode.prototype.base64DecToArr = function (base64String, nBlockSize) { var sB64Enc = base64String.replace(/[^A-Za-z0-9\+\/]/g, _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING); var nInLen = sB64Enc.length; var nOutLen = nBlockSize ? Math.ceil((nInLen * 3 + 1 >>> 2) / nBlockSize) * nBlockSize : nInLen * 3 + 1 >>> 2; var aBytes = new Uint8Array(nOutLen); for (var nMod3 = void 0, nMod4 = void 0, nUint24 = 0, nOutIdx = 0, nInIdx = 0; nInIdx < nInLen; nInIdx++) { nMod4 = nInIdx & 3; nUint24 |= this.b64ToUint6(sB64Enc.charCodeAt(nInIdx)) << 18 - 6 * nMod4; if (nMod4 === 3 || nInLen - nInIdx === 1) { for (nMod3 = 0; nMod3 < 3 && nOutIdx < nOutLen; nMod3++, nOutIdx++) { aBytes[nOutIdx] = nUint24 >>> (16 >>> nMod3 & 24) & 255; } nUint24 = 0; } } return aBytes; }; /** * Base64 string to array decoding helper * @param charNum */ Base64Decode.prototype.b64ToUint6 = function (charNum) { return charNum > 64 && charNum < 91 ? charNum - 65 : charNum > 96 && charNum < 123 ? charNum - 71 : charNum > 47 && charNum < 58 ? charNum + 4 : charNum === 43 ? 62 : charNum === 47 ? 63 : 0; }; return Base64Decode; }()); //# sourceMappingURL=Base64Decode.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/encode/Base64Encode.js": /*!**********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/encode/Base64Encode.js ***! \**********************************************************************/ /*! exports provided: Base64Encode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Base64Encode", function() { return Base64Encode; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserStringUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Class which exposes APIs to encode plaintext to base64 encoded string. See here for implementation details: * https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64 */ var Base64Encode = /** @class */ (function () { function Base64Encode() { } /** * Returns URL Safe b64 encoded string from a plaintext string. * @param input */ Base64Encode.prototype.urlEncode = function (input) { return encodeURIComponent(this.encode(input) .replace(/=/g, _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING) .replace(/\+/g, "-") .replace(/\//g, "_")); }; /** * Returns URL Safe b64 encoded string from an int8Array. * @param inputArr */ Base64Encode.prototype.urlEncodeArr = function (inputArr) { return this.base64EncArr(inputArr) .replace(/=/g, _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING) .replace(/\+/g, "-") .replace(/\//g, "_"); }; /** * Returns b64 encoded string from plaintext string. * @param input */ Base64Encode.prototype.encode = function (input) { var inputUtf8Arr = _utils_BrowserStringUtils_js__WEBPACK_IMPORTED_MODULE_1__["BrowserStringUtils"].stringToUtf8Arr(input); return this.base64EncArr(inputUtf8Arr); }; /** * Base64 encode byte array * @param aBytes */ Base64Encode.prototype.base64EncArr = function (aBytes) { var eqLen = (3 - (aBytes.length % 3)) % 3; var sB64Enc = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; for (var nMod3 = void 0, nLen = aBytes.length, nUint24 = 0, nIdx = 0; nIdx < nLen; nIdx++) { nMod3 = nIdx % 3; /* Uncomment the following line in order to split the output in lines 76-character long: */ /* *if (nIdx > 0 && (nIdx * 4 / 3) % 76 === 0) { sB64Enc += "\r\n"; } */ nUint24 |= aBytes[nIdx] << (16 >>> nMod3 & 24); if (nMod3 === 2 || aBytes.length - nIdx === 1) { sB64Enc += String.fromCharCode(this.uint6ToB64(nUint24 >>> 18 & 63), this.uint6ToB64(nUint24 >>> 12 & 63), this.uint6ToB64(nUint24 >>> 6 & 63), this.uint6ToB64(nUint24 & 63)); nUint24 = 0; } } return eqLen === 0 ? sB64Enc : sB64Enc.substring(0, sB64Enc.length - eqLen) + (eqLen === 1 ? "=" : "=="); }; /** * Base64 string to array encoding helper * @param nUint6 */ Base64Encode.prototype.uint6ToB64 = function (nUint6) { return nUint6 < 26 ? nUint6 + 65 : nUint6 < 52 ? nUint6 + 71 : nUint6 < 62 ? nUint6 - 4 : nUint6 === 62 ? 43 : nUint6 === 63 ? 47 : 65; }; return Base64Encode; }()); //# sourceMappingURL=Base64Encode.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js ***! \*************************************************************************/ /*! exports provided: BrowserAuthError, BrowserAuthErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserAuthError", function() { return BrowserAuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserAuthErrorMessage", function() { return BrowserAuthErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * BrowserAuthErrorMessage class containing string constants used by error codes and messages. */ var BrowserAuthErrorMessage = { pkceNotGenerated: { code: "pkce_not_created", desc: "The PKCE code challenge and verifier could not be generated." }, cryptoDoesNotExist: { code: "crypto_nonexistent", desc: "The crypto object or function is not available." }, httpMethodNotImplementedError: { code: "http_method_not_implemented", desc: "The HTTP method given has not been implemented in this library." }, emptyNavigateUriError: { code: "empty_navigate_uri", desc: "Navigation URI is empty. Please check stack trace for more info." }, hashEmptyError: { code: "hash_empty_error", desc: "Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors." }, hashDoesNotContainStateError: { code: "no_state_in_hash", desc: "Hash does not contain state. Please verify that the request originated from msal." }, hashDoesNotContainKnownPropertiesError: { code: "hash_does_not_contain_known_properties", desc: "Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors." }, unableToParseStateError: { code: "unable_to_parse_state", desc: "Unable to parse state. Please verify that the request originated from msal." }, stateInteractionTypeMismatchError: { code: "state_interaction_type_mismatch", desc: "Hash contains state but the interaction type does not match the caller." }, interactionInProgress: { code: "interaction_in_progress", desc: "Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors." }, popupWindowError: { code: "popup_window_error", desc: "Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser." }, emptyWindowError: { code: "empty_window_error", desc: "window.open returned null or undefined window object." }, userCancelledError: { code: "user_cancelled", desc: "User cancelled the flow." }, monitorPopupTimeoutError: { code: "monitor_window_timeout", desc: "Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors." }, monitorIframeTimeoutError: { code: "monitor_window_timeout", desc: "Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors." }, redirectInIframeError: { code: "redirect_in_iframe", desc: "Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs." }, blockTokenRequestsInHiddenIframeError: { code: "block_iframe_reload", desc: "Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors" }, blockAcquireTokenInPopupsError: { code: "block_nested_popups", desc: "Request was blocked inside a popup because MSAL detected it was running in a popup." }, iframeClosedPrematurelyError: { code: "iframe_closed_prematurely", desc: "The iframe being monitored was closed prematurely." }, silentLogoutUnsupportedError: { code: "silent_logout_unsupported", desc: "Silent logout not supported. Please call logoutRedirect or logoutPopup instead." }, noAccountError: { code: "no_account_error", desc: "No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request." }, silentPromptValueError: { code: "silent_prompt_value_error", desc: "The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'." }, noTokenRequestCacheError: { code: "no_token_request_cache_error", desc: "No token request found in cache." }, unableToParseTokenRequestCacheError: { code: "unable_to_parse_token_request_cache_error", desc: "The cached token request could not be parsed." }, noCachedAuthorityError: { code: "no_cached_authority_error", desc: "No cached authority found." }, authRequestNotSet: { code: "auth_request_not_set_error", desc: "Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler" }, invalidCacheType: { code: "invalid_cache_type", desc: "Invalid cache type" }, notInBrowserEnvironment: { code: "non_browser_environment", desc: "Login and token requests are not supported in non-browser environments." }, databaseNotOpen: { code: "database_not_open", desc: "Database is not open!" }, noNetworkConnectivity: { code: "no_network_connectivity", desc: "No network connectivity. Check your internet connection." }, postRequestFailed: { code: "post_request_failed", desc: "Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'" }, getRequestFailed: { code: "get_request_failed", desc: "Network request failed. Please check the network trace to determine root cause." }, failedToParseNetworkResponse: { code: "failed_to_parse_response", desc: "Failed to parse network response. Check network trace." }, unableToLoadTokenError: { code: "unable_to_load_token", desc: "Error loading token to cache." }, signingKeyNotFoundInStorage: { code: "crypto_key_not_found", desc: "Cryptographic Key or Keypair not found in browser storage." }, authCodeRequired: { code: "auth_code_required", desc: "An authorization code must be provided (as the `code` property on the request) to this flow." }, authCodeOrNativeAccountRequired: { code: "auth_code_or_nativeAccountId_required", desc: "An authorization code or nativeAccountId must be provided to this flow." }, spaCodeAndNativeAccountPresent: { code: "spa_code_and_nativeAccountId_present", desc: "Request cannot contain both spa code and native account id." }, databaseUnavailable: { code: "database_unavailable", desc: "IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts." }, unableToAcquireTokenFromNativePlatform: { code: "unable_to_acquire_token_from_native_platform", desc: "Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors." }, nativeHandshakeTimeout: { code: "native_handshake_timeout", desc: "Timed out while attempting to establish connection to browser extension" }, nativeExtensionNotInstalled: { code: "native_extension_not_installed", desc: "Native extension is not installed. If you think this is a mistake call the initialize function." }, nativeConnectionNotEstablished: { code: "native_connection_not_established", desc: "Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors." }, nativeBrokerCalledBeforeInitialize: { code: "native_broker_called_before_initialize", desc: "You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors." }, nativePromptNotSupported: { code: "native_prompt_not_supported", desc: "The provided prompt is not supported by the native platform. This request should be routed to the web based flow." } }; /** * Browser library error class thrown by the MSAL.js library for SPAs */ var BrowserAuthError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrowserAuthError, _super); function BrowserAuthError(errorCode, errorMessage) { var _this = _super.call(this, errorCode, errorMessage) || this; Object.setPrototypeOf(_this, BrowserAuthError.prototype); _this.name = "BrowserAuthError"; return _this; } /** * Creates an error thrown when PKCE is not implemented. * @param errDetail */ BrowserAuthError.createPkceNotGeneratedError = function (errDetail) { return new BrowserAuthError(BrowserAuthErrorMessage.pkceNotGenerated.code, BrowserAuthErrorMessage.pkceNotGenerated.desc + " Detail:" + errDetail); }; /** * Creates an error thrown when the crypto object is unavailable. * @param errDetail */ BrowserAuthError.createCryptoNotAvailableError = function (errDetail) { return new BrowserAuthError(BrowserAuthErrorMessage.cryptoDoesNotExist.code, BrowserAuthErrorMessage.cryptoDoesNotExist.desc + " Detail:" + errDetail); }; /** * Creates an error thrown when an HTTP method hasn't been implemented by the browser class. * @param method */ BrowserAuthError.createHttpMethodNotImplementedError = function (method) { return new BrowserAuthError(BrowserAuthErrorMessage.httpMethodNotImplementedError.code, BrowserAuthErrorMessage.httpMethodNotImplementedError.desc + " Given Method: " + method); }; /** * Creates an error thrown when the navigation URI is empty. */ BrowserAuthError.createEmptyNavigationUriError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.emptyNavigateUriError.code, BrowserAuthErrorMessage.emptyNavigateUriError.desc); }; /** * Creates an error thrown when the hash string value is unexpectedly empty. * @param hashValue */ BrowserAuthError.createEmptyHashError = function (hashValue) { return new BrowserAuthError(BrowserAuthErrorMessage.hashEmptyError.code, BrowserAuthErrorMessage.hashEmptyError.desc + " Given Url: " + hashValue); }; /** * Creates an error thrown when the hash string value is unexpectedly empty. */ BrowserAuthError.createHashDoesNotContainStateError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.hashDoesNotContainStateError.code, BrowserAuthErrorMessage.hashDoesNotContainStateError.desc); }; /** * Creates an error thrown when the hash string value does not contain known properties */ BrowserAuthError.createHashDoesNotContainKnownPropertiesError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.hashDoesNotContainKnownPropertiesError.code, BrowserAuthErrorMessage.hashDoesNotContainKnownPropertiesError.desc); }; /** * Creates an error thrown when the hash string value is unexpectedly empty. */ BrowserAuthError.createUnableToParseStateError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.unableToParseStateError.code, BrowserAuthErrorMessage.unableToParseStateError.desc); }; /** * Creates an error thrown when the state value in the hash does not match the interaction type of the API attempting to consume it. */ BrowserAuthError.createStateInteractionTypeMismatchError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.stateInteractionTypeMismatchError.code, BrowserAuthErrorMessage.stateInteractionTypeMismatchError.desc); }; /** * Creates an error thrown when a browser interaction (redirect or popup) is in progress. */ BrowserAuthError.createInteractionInProgressError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.interactionInProgress.code, BrowserAuthErrorMessage.interactionInProgress.desc); }; /** * Creates an error thrown when the popup window could not be opened. * @param errDetail */ BrowserAuthError.createPopupWindowError = function (errDetail) { var errorMessage = BrowserAuthErrorMessage.popupWindowError.desc; errorMessage = !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(errDetail) ? errorMessage + " Details: " + errDetail : errorMessage; return new BrowserAuthError(BrowserAuthErrorMessage.popupWindowError.code, errorMessage); }; /** * Creates an error thrown when window.open returns an empty window object. * @param errDetail */ BrowserAuthError.createEmptyWindowCreatedError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.emptyWindowError.code, BrowserAuthErrorMessage.emptyWindowError.desc); }; /** * Creates an error thrown when the user closes a popup. */ BrowserAuthError.createUserCancelledError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.userCancelledError.code, BrowserAuthErrorMessage.userCancelledError.desc); }; /** * Creates an error thrown when monitorPopupFromHash times out for a given popup. */ BrowserAuthError.createMonitorPopupTimeoutError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.monitorPopupTimeoutError.code, BrowserAuthErrorMessage.monitorPopupTimeoutError.desc); }; /** * Creates an error thrown when monitorIframeFromHash times out for a given iframe. */ BrowserAuthError.createMonitorIframeTimeoutError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.monitorIframeTimeoutError.code, BrowserAuthErrorMessage.monitorIframeTimeoutError.desc); }; /** * Creates an error thrown when navigateWindow is called inside an iframe or brokered applications. * @param windowParentCheck */ BrowserAuthError.createRedirectInIframeError = function (windowParentCheck) { return new BrowserAuthError(BrowserAuthErrorMessage.redirectInIframeError.code, BrowserAuthErrorMessage.redirectInIframeError.desc + " (window.parent !== window) => " + windowParentCheck); }; /** * Creates an error thrown when an auth reload is done inside an iframe. */ BrowserAuthError.createBlockReloadInHiddenIframeError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.blockTokenRequestsInHiddenIframeError.code, BrowserAuthErrorMessage.blockTokenRequestsInHiddenIframeError.desc); }; /** * Creates an error thrown when a popup attempts to call an acquireToken API * @returns */ BrowserAuthError.createBlockAcquireTokenInPopupsError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.blockAcquireTokenInPopupsError.code, BrowserAuthErrorMessage.blockAcquireTokenInPopupsError.desc); }; /** * Creates an error thrown when an iframe is found to be closed before the timeout is reached. */ BrowserAuthError.createIframeClosedPrematurelyError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.iframeClosedPrematurelyError.code, BrowserAuthErrorMessage.iframeClosedPrematurelyError.desc); }; /** * Creates an error thrown when the logout API is called on any of the silent interaction clients */ BrowserAuthError.createSilentLogoutUnsupportedError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.silentLogoutUnsupportedError.code, BrowserAuthErrorMessage.silentLogoutUnsupportedError.desc); }; /** * Creates an error thrown when the account object is not provided in the acquireTokenSilent API. */ BrowserAuthError.createNoAccountError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.noAccountError.code, BrowserAuthErrorMessage.noAccountError.desc); }; /** * Creates an error thrown when a given prompt value is invalid for silent requests. */ BrowserAuthError.createSilentPromptValueError = function (givenPrompt) { return new BrowserAuthError(BrowserAuthErrorMessage.silentPromptValueError.code, BrowserAuthErrorMessage.silentPromptValueError.desc + " Given value: " + givenPrompt); }; /** * Creates an error thrown when the cached token request could not be retrieved from the cache */ BrowserAuthError.createUnableToParseTokenRequestCacheError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.unableToParseTokenRequestCacheError.code, BrowserAuthErrorMessage.unableToParseTokenRequestCacheError.desc); }; /** * Creates an error thrown when the token request could not be retrieved from the cache */ BrowserAuthError.createNoTokenRequestCacheError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.noTokenRequestCacheError.code, BrowserAuthErrorMessage.noTokenRequestCacheError.desc); }; /** * Creates an error thrown when handleCodeResponse is called before initiateAuthRequest (InteractionHandler) */ BrowserAuthError.createAuthRequestNotSetError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.authRequestNotSet.code, BrowserAuthErrorMessage.authRequestNotSet.desc); }; /** * Creates an error thrown when the authority could not be retrieved from the cache */ BrowserAuthError.createNoCachedAuthorityError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.noCachedAuthorityError.code, BrowserAuthErrorMessage.noCachedAuthorityError.desc); }; /** * Creates an error thrown if cache type is invalid. */ BrowserAuthError.createInvalidCacheTypeError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.invalidCacheType.code, "" + BrowserAuthErrorMessage.invalidCacheType.desc); }; /** * Create an error thrown when login and token requests are made from a non-browser environment */ BrowserAuthError.createNonBrowserEnvironmentError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.notInBrowserEnvironment.code, BrowserAuthErrorMessage.notInBrowserEnvironment.desc); }; /** * Create an error thrown when indexDB database is not open */ BrowserAuthError.createDatabaseNotOpenError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.databaseNotOpen.code, BrowserAuthErrorMessage.databaseNotOpen.desc); }; /** * Create an error thrown when token fetch fails due to no internet */ BrowserAuthError.createNoNetworkConnectivityError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.noNetworkConnectivity.code, BrowserAuthErrorMessage.noNetworkConnectivity.desc); }; /** * Create an error thrown when token fetch fails due to reasons other than internet connectivity */ BrowserAuthError.createPostRequestFailedError = function (errorDesc, endpoint) { return new BrowserAuthError(BrowserAuthErrorMessage.postRequestFailed.code, BrowserAuthErrorMessage.postRequestFailed.desc + " | Network client threw: " + errorDesc + " | Attempted to reach: " + endpoint.split("?")[0]); }; /** * Create an error thrown when get request fails due to reasons other than internet connectivity */ BrowserAuthError.createGetRequestFailedError = function (errorDesc, endpoint) { return new BrowserAuthError(BrowserAuthErrorMessage.getRequestFailed.code, BrowserAuthErrorMessage.getRequestFailed.desc + " | Network client threw: " + errorDesc + " | Attempted to reach: " + endpoint.split("?")[0]); }; /** * Create an error thrown when network client fails to parse network response */ BrowserAuthError.createFailedToParseNetworkResponseError = function (endpoint) { return new BrowserAuthError(BrowserAuthErrorMessage.failedToParseNetworkResponse.code, BrowserAuthErrorMessage.failedToParseNetworkResponse.desc + " | Attempted to reach: " + endpoint.split("?")[0]); }; /** * Create an error thrown when the necessary information is not available to sideload tokens */ BrowserAuthError.createUnableToLoadTokenError = function (errorDetail) { return new BrowserAuthError(BrowserAuthErrorMessage.unableToLoadTokenError.code, BrowserAuthErrorMessage.unableToLoadTokenError.desc + " | " + errorDetail); }; /** * Create an error thrown when the queried cryptographic key is not found in IndexedDB */ BrowserAuthError.createSigningKeyNotFoundInStorageError = function (keyId) { return new BrowserAuthError(BrowserAuthErrorMessage.signingKeyNotFoundInStorage.code, BrowserAuthErrorMessage.signingKeyNotFoundInStorage.desc + " | No match found for KeyId: " + keyId); }; /** * Create an error when an authorization code is required but not provided */ BrowserAuthError.createAuthCodeRequiredError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.authCodeRequired.code, BrowserAuthErrorMessage.authCodeRequired.desc); }; /** * Create an error when an authorization code or native account ID is required but not provided */ BrowserAuthError.createAuthCodeOrNativeAccountIdRequiredError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.authCodeOrNativeAccountRequired.code, BrowserAuthErrorMessage.authCodeOrNativeAccountRequired.desc); }; /** * Create an error when both authorization code and native account ID are provided */ BrowserAuthError.createSpaCodeAndNativeAccountIdPresentError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.spaCodeAndNativeAccountPresent.code, BrowserAuthErrorMessage.spaCodeAndNativeAccountPresent.desc); }; /** * Create an error when IndexedDB is unavailable */ BrowserAuthError.createDatabaseUnavailableError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.databaseUnavailable.code, BrowserAuthErrorMessage.databaseUnavailable.desc); }; /** * Create an error when native token acquisition is not possible */ BrowserAuthError.createUnableToAcquireTokenFromNativePlatformError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.unableToAcquireTokenFromNativePlatform.code, BrowserAuthErrorMessage.unableToAcquireTokenFromNativePlatform.desc); }; /** * Create an error thrown when Handshake with browser extension times out */ BrowserAuthError.createNativeHandshakeTimeoutError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.nativeHandshakeTimeout.code, BrowserAuthErrorMessage.nativeHandshakeTimeout.desc); }; /** * Create an error thrown when browser extension is not installed */ BrowserAuthError.createNativeExtensionNotInstalledError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.nativeExtensionNotInstalled.code, BrowserAuthErrorMessage.nativeExtensionNotInstalled.desc); }; /** * Create an error when native connection has not been established * @returns */ BrowserAuthError.createNativeConnectionNotEstablishedError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.nativeConnectionNotEstablished.code, BrowserAuthErrorMessage.nativeConnectionNotEstablished.desc); }; /** * Create an error thrown when the initialize function hasn't been called */ BrowserAuthError.createNativeBrokerCalledBeforeInitialize = function () { return new BrowserAuthError(BrowserAuthErrorMessage.nativeBrokerCalledBeforeInitialize.code, BrowserAuthErrorMessage.nativeBrokerCalledBeforeInitialize.desc); }; /** * Create an error thrown when requesting a token directly from the native platform with an unsupported prompt parameter e.g. select_account, login or create * These requests must go through eSTS to ensure eSTS is aware of the new account */ BrowserAuthError.createNativePromptParameterNotSupportedError = function () { return new BrowserAuthError(BrowserAuthErrorMessage.nativePromptNotSupported.code, BrowserAuthErrorMessage.nativePromptNotSupported.desc); }; return BrowserAuthError; }(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"])); //# sourceMappingURL=BrowserAuthError.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js": /*!**************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js ***! \**************************************************************************************/ /*! exports provided: BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserConfigurationAuthError", function() { return BrowserConfigurationAuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserConfigurationAuthErrorMessage", function() { return BrowserConfigurationAuthErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * BrowserAuthErrorMessage class containing string constants used by error codes and messages. */ var BrowserConfigurationAuthErrorMessage = { redirectUriNotSet: { code: "redirect_uri_empty", desc: "A redirect URI is required for all calls, and none has been set." }, postLogoutUriNotSet: { code: "post_logout_uri_empty", desc: "A post logout redirect has not been set." }, storageNotSupportedError: { code: "storage_not_supported", desc: "Given storage configuration option was not supported." }, noRedirectCallbacksSet: { code: "no_redirect_callbacks", desc: "No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. " + "More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics." }, invalidCallbackObject: { code: "invalid_callback_object", desc: "The object passed for the callback was invalid. " + "More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics." }, stubPcaInstanceCalled: { code: "stubbed_public_client_application_called", desc: "Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors" }, inMemRedirectUnavailable: { code: "in_mem_redirect_unavailable", desc: "Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true." }, entropyNotProvided: { code: "entropy_not_provided", desc: "The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option." } }; /** * Browser library error class thrown by the MSAL.js library for SPAs */ var BrowserConfigurationAuthError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrowserConfigurationAuthError, _super); function BrowserConfigurationAuthError(errorCode, errorMessage) { var _this = _super.call(this, errorCode, errorMessage) || this; _this.name = "BrowserConfigurationAuthError"; Object.setPrototypeOf(_this, BrowserConfigurationAuthError.prototype); return _this; } /** * Creates an error thrown when the redirect uri is empty (not set by caller) */ BrowserConfigurationAuthError.createRedirectUriEmptyError = function () { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.redirectUriNotSet.code, BrowserConfigurationAuthErrorMessage.redirectUriNotSet.desc); }; /** * Creates an error thrown when the post-logout redirect uri is empty (not set by caller) */ BrowserConfigurationAuthError.createPostLogoutRedirectUriEmptyError = function () { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.code, BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.desc); }; /** * Creates error thrown when given storage location is not supported. * @param givenStorageLocation */ BrowserConfigurationAuthError.createStorageNotSupportedError = function (givenStorageLocation) { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.storageNotSupportedError.code, BrowserConfigurationAuthErrorMessage.storageNotSupportedError.desc + " Given Location: " + givenStorageLocation); }; /** * Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect(). */ BrowserConfigurationAuthError.createRedirectCallbacksNotSetError = function () { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.code, BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.desc); }; /** * Creates error thrown when the stub instance of PublicClientApplication is called. */ BrowserConfigurationAuthError.createStubPcaInstanceCalledError = function () { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.code, BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.desc); }; /* * Create an error thrown when in-memory storage is used and storeAuthStateInCookie=false. */ BrowserConfigurationAuthError.createInMemoryRedirectUnavailableError = function () { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.code, BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.desc); }; /** * Creates an error thrown when a crypto interface that requires entropy is initialized without entropy */ BrowserConfigurationAuthError.createEntropyNotProvided = function () { return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.entropyNotProvided.code, BrowserConfigurationAuthErrorMessage.entropyNotProvided.desc); }; return BrowserConfigurationAuthError; }(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"])); //# sourceMappingURL=BrowserConfigurationAuthError.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js": /*!************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js ***! \************************************************************************/ /*! exports provided: NativeAuthError, NativeAuthErrorMessage, NativeStatusCode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeAuthError", function() { return NativeAuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeAuthErrorMessage", function() { return NativeAuthErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeStatusCode", function() { return NativeStatusCode; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var NativeStatusCode; (function (NativeStatusCode) { NativeStatusCode["USER_INTERACTION_REQUIRED"] = "USER_INTERACTION_REQUIRED"; NativeStatusCode["USER_CANCEL"] = "USER_CANCEL"; NativeStatusCode["NO_NETWORK"] = "NO_NETWORK"; NativeStatusCode["TRANSIENT_ERROR"] = "TRANSIENT_ERROR"; NativeStatusCode["PERSISTENT_ERROR"] = "PERSISTENT_ERROR"; NativeStatusCode["DISABLED"] = "DISABLED"; NativeStatusCode["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE"; })(NativeStatusCode || (NativeStatusCode = {})); var NativeAuthErrorMessage = { extensionError: { code: "ContentError" }, userSwitch: { code: "user_switch", desc: "User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again." }, tokensNotFoundInCache: { code: "tokens_not_found_in_internal_memory_cache", desc: "Tokens not cached in MSAL JS internal memory, please make the WAM request" } }; var NativeAuthError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NativeAuthError, _super); function NativeAuthError(errorCode, description, ext) { var _this = _super.call(this, errorCode, description) || this; Object.setPrototypeOf(_this, NativeAuthError.prototype); _this.name = "NativeAuthError"; _this.ext = ext; return _this; } /** * These errors should result in a fallback to the 'standard' browser based auth flow. */ NativeAuthError.prototype.isFatal = function () { if (this.ext && this.ext.status && (this.ext.status === NativeStatusCode.PERSISTENT_ERROR || this.ext.status === NativeStatusCode.DISABLED)) { return true; } switch (this.errorCode) { case NativeAuthErrorMessage.extensionError.code: return true; default: return false; } }; /** * Create the appropriate error object based on the WAM status code. * @param code * @param description * @param ext * @returns */ NativeAuthError.createError = function (code, description, ext) { if (ext && ext.status) { switch (ext.status) { case NativeStatusCode.ACCOUNT_UNAVAILABLE: return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["InteractionRequiredAuthError"].createNativeAccountUnavailableError(); case NativeStatusCode.USER_INTERACTION_REQUIRED: return new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["InteractionRequiredAuthError"](code, description); case NativeStatusCode.USER_CANCEL: return _BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createUserCancelledError(); case NativeStatusCode.NO_NETWORK: return _BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createNoNetworkConnectivityError(); } } return new NativeAuthError(code, description, ext); }; /** * Creates user switch error when the user chooses a different account in the native broker prompt * @returns */ NativeAuthError.createUserSwitchError = function () { return new NativeAuthError(NativeAuthErrorMessage.userSwitch.code, NativeAuthErrorMessage.userSwitch.desc); }; /** * Creates a tokens not found error when the internal cache look up fails * @returns NativeAuthError: tokensNotFoundInCache */ NativeAuthError.createTokensNotFoundInCacheError = function () { return new NativeAuthError(NativeAuthErrorMessage.tokensNotFoundInCache.code, NativeAuthErrorMessage.tokensNotFoundInCache.desc); }; return NativeAuthError; }(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"])); //# sourceMappingURL=NativeAuthError.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/event/EventHandler.js": /*!*********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/event/EventHandler.js ***! \*********************************************************************/ /*! exports provided: EventHandler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventHandler", function() { return EventHandler; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _EventType_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var EventHandler = /** @class */ (function () { function EventHandler(logger, browserCrypto) { this.eventCallbacks = new Map(); this.logger = logger; this.browserCrypto = browserCrypto; this.listeningToStorageEvents = false; this.handleAccountCacheChange = this.handleAccountCacheChange.bind(this); } /** * Adds event callbacks to array * @param callback */ EventHandler.prototype.addEventCallback = function (callback) { if (typeof window !== "undefined") { var callbackId = this.browserCrypto.createNewGuid(); this.eventCallbacks.set(callbackId, callback); this.logger.verbose("Event callback registered with id: " + callbackId); return callbackId; } return null; }; /** * Removes callback with provided id from callback array * @param callbackId */ EventHandler.prototype.removeEventCallback = function (callbackId) { this.eventCallbacks.delete(callbackId); this.logger.verbose("Event callback " + callbackId + " removed."); }; /** * Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window */ EventHandler.prototype.enableAccountStorageEvents = function () { if (typeof window === "undefined") { return; } if (!this.listeningToStorageEvents) { this.logger.verbose("Adding account storage listener."); this.listeningToStorageEvents = true; window.addEventListener("storage", this.handleAccountCacheChange); } else { this.logger.verbose("Account storage listener already registered."); } }; /** * Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window */ EventHandler.prototype.disableAccountStorageEvents = function () { if (typeof window === "undefined") { return; } if (this.listeningToStorageEvents) { this.logger.verbose("Removing account storage listener."); window.removeEventListener("storage", this.handleAccountCacheChange); this.listeningToStorageEvents = false; } else { this.logger.verbose("No account storage listener registered."); } }; /** * Emits events by calling callback with event message * @param eventType * @param interactionType * @param payload * @param error */ EventHandler.prototype.emitEvent = function (eventType, interactionType, payload, error) { var _this = this; if (typeof window !== "undefined") { var message_1 = { eventType: eventType, interactionType: interactionType || null, payload: payload || null, error: error || null, timestamp: Date.now() }; this.logger.info("Emitting event: " + eventType); this.eventCallbacks.forEach(function (callback, callbackId) { _this.logger.verbose("Emitting event to callback " + callbackId + ": " + eventType); callback.apply(null, [message_1]); }); } }; /** * Emit account added/removed events when cached accounts are changed in a different tab or frame */ EventHandler.prototype.handleAccountCacheChange = function (e) { try { var cacheValue = e.newValue || e.oldValue; if (!cacheValue) { return; } var parsedValue = JSON.parse(cacheValue); if (typeof parsedValue !== "object" || !_azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AccountEntity"].isAccountEntity(parsedValue)) { return; } var accountEntity = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["CacheManager"].toObject(new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["AccountEntity"](), parsedValue); var accountInfo = accountEntity.getAccountInfo(); if (!e.oldValue && e.newValue) { this.logger.info("Account was added to cache in a different window"); this.emitEvent(_EventType_js__WEBPACK_IMPORTED_MODULE_1__["EventType"].ACCOUNT_ADDED, undefined, accountInfo); } else if (!e.newValue && e.oldValue) { this.logger.info("Account was removed from cache in a different window"); this.emitEvent(_EventType_js__WEBPACK_IMPORTED_MODULE_1__["EventType"].ACCOUNT_REMOVED, undefined, accountInfo); } } catch (e) { return; } }; return EventHandler; }()); //# sourceMappingURL=EventHandler.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/event/EventMessage.js": /*!*********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/event/EventMessage.js ***! \*********************************************************************/ /*! exports provided: EventMessageUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventMessageUtils", function() { return EventMessageUtils; }); /* harmony import */ var _EventType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var EventMessageUtils = /** @class */ (function () { function EventMessageUtils() { } /** * Gets interaction status from event message * @param message * @param currentStatus */ EventMessageUtils.getInteractionStatusFromEvent = function (message, currentStatus) { switch (message.eventType) { case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].LOGIN_START: return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].Login; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].SSO_SILENT_START: return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].SsoSilent; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].ACQUIRE_TOKEN_START: if (message.interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionType"].Redirect || message.interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionType"].Popup) { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].AcquireToken; } break; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].HANDLE_REDIRECT_START: return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].HandleRedirect; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].LOGOUT_START: return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].Logout; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].SSO_SILENT_SUCCESS: case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].SSO_SILENT_FAILURE: if (currentStatus && currentStatus !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].SsoSilent) { // Prevent this event from clearing any status other than ssoSilent break; } return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].None; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].LOGOUT_END: if (currentStatus && currentStatus !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].Logout) { // Prevent this event from clearing any status other than logout break; } return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].None; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].HANDLE_REDIRECT_END: if (currentStatus && currentStatus !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].HandleRedirect) { // Prevent this event from clearing any status other than handleRedirect break; } return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].None; case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].LOGIN_SUCCESS: case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].LOGIN_FAILURE: case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].ACQUIRE_TOKEN_SUCCESS: case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].ACQUIRE_TOKEN_FAILURE: case _EventType_js__WEBPACK_IMPORTED_MODULE_0__["EventType"].RESTORE_FROM_BFCACHE: if (message.interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionType"].Redirect || message.interactionType === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionType"].Popup) { if (currentStatus && currentStatus !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].Login && currentStatus !== _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].AcquireToken) { // Prevent this event from clearing any status other than login or acquireToken break; } return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_1__["InteractionStatus"].None; } break; } return null; }; return EventMessageUtils; }()); //# sourceMappingURL=EventMessage.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/event/EventType.js": /*!******************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/event/EventType.js ***! \******************************************************************/ /*! exports provided: EventType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventType", function() { return EventType; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var EventType; (function (EventType) { EventType["INITIALIZE_START"] = "msal:initializeStart"; EventType["INITIALIZE_END"] = "msal:initializeEnd"; EventType["ACCOUNT_ADDED"] = "msal:accountAdded"; EventType["ACCOUNT_REMOVED"] = "msal:accountRemoved"; EventType["LOGIN_START"] = "msal:loginStart"; EventType["LOGIN_SUCCESS"] = "msal:loginSuccess"; EventType["LOGIN_FAILURE"] = "msal:loginFailure"; EventType["ACQUIRE_TOKEN_START"] = "msal:acquireTokenStart"; EventType["ACQUIRE_TOKEN_SUCCESS"] = "msal:acquireTokenSuccess"; EventType["ACQUIRE_TOKEN_FAILURE"] = "msal:acquireTokenFailure"; EventType["ACQUIRE_TOKEN_NETWORK_START"] = "msal:acquireTokenFromNetworkStart"; EventType["SSO_SILENT_START"] = "msal:ssoSilentStart"; EventType["SSO_SILENT_SUCCESS"] = "msal:ssoSilentSuccess"; EventType["SSO_SILENT_FAILURE"] = "msal:ssoSilentFailure"; EventType["ACQUIRE_TOKEN_BY_CODE_START"] = "msal:acquireTokenByCodeStart"; EventType["ACQUIRE_TOKEN_BY_CODE_SUCCESS"] = "msal:acquireTokenByCodeSuccess"; EventType["ACQUIRE_TOKEN_BY_CODE_FAILURE"] = "msal:acquireTokenByCodeFailure"; EventType["HANDLE_REDIRECT_START"] = "msal:handleRedirectStart"; EventType["HANDLE_REDIRECT_END"] = "msal:handleRedirectEnd"; EventType["POPUP_OPENED"] = "msal:popupOpened"; EventType["LOGOUT_START"] = "msal:logoutStart"; EventType["LOGOUT_SUCCESS"] = "msal:logoutSuccess"; EventType["LOGOUT_FAILURE"] = "msal:logoutFailure"; EventType["LOGOUT_END"] = "msal:logoutEnd"; EventType["RESTORE_FROM_BFCACHE"] = "msal:restoreFromBFCache"; })(EventType || (EventType = {})); //# sourceMappingURL=EventType.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/index.js": /*!********************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/index.js ***! \********************************************************/ /*! exports provided: internals, PublicClientApplication, DEFAULT_IFRAME_TIMEOUT_MS, ApiId, BrowserCacheLocation, CacheLookupPolicy, InteractionStatus, InteractionType, WrapperSKU, BrowserUtils, BrowserAuthError, BrowserAuthErrorMessage, BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage, stubbedPublicClientApplication, NavigationClient, EventMessageUtils, EventType, SignedHttpRequest, AccountEntity, AuthError, AuthErrorMessage, AuthenticationHeaderParser, AuthenticationScheme, AzureCloudInstance, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, LogLevel, Logger, OIDC_DEFAULT_SCOPES, PerformanceEvents, ProtocolMode, ServerError, StringUtils, UrlString, version */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _internals_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internals.js */ "./node_modules/@azure/msal-browser/dist/internals.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "internals", function() { return _internals_js__WEBPACK_IMPORTED_MODULE_0__; }); /* harmony import */ var _app_PublicClientApplication_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app/PublicClientApplication.js */ "./node_modules/@azure/msal-browser/dist/app/PublicClientApplication.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicClientApplication", function() { return _app_PublicClientApplication_js__WEBPACK_IMPORTED_MODULE_1__["PublicClientApplication"]; }); /* harmony import */ var _config_Configuration_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config/Configuration.js */ "./node_modules/@azure/msal-browser/dist/config/Configuration.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_IFRAME_TIMEOUT_MS", function() { return _config_Configuration_js__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_IFRAME_TIMEOUT_MS"]; }); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApiId", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserCacheLocation", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserCacheLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CacheLookupPolicy", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["CacheLookupPolicy"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionStatus", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionType", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WrapperSKU", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["WrapperSKU"]; }); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserUtils", function() { return _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_4__["BrowserUtils"]; }); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserAuthError", function() { return _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserAuthErrorMessage", function() { return _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthErrorMessage"]; }); /* harmony import */ var _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error/BrowserConfigurationAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserConfigurationAuthError", function() { return _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_6__["BrowserConfigurationAuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserConfigurationAuthErrorMessage", function() { return _error_BrowserConfigurationAuthError_js__WEBPACK_IMPORTED_MODULE_6__["BrowserConfigurationAuthErrorMessage"]; }); /* harmony import */ var _app_IPublicClientApplication_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app/IPublicClientApplication.js */ "./node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stubbedPublicClientApplication", function() { return _app_IPublicClientApplication_js__WEBPACK_IMPORTED_MODULE_7__["stubbedPublicClientApplication"]; }); /* harmony import */ var _navigation_NavigationClient_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./navigation/NavigationClient.js */ "./node_modules/@azure/msal-browser/dist/navigation/NavigationClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavigationClient", function() { return _navigation_NavigationClient_js__WEBPACK_IMPORTED_MODULE_8__["NavigationClient"]; }); /* harmony import */ var _event_EventMessage_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./event/EventMessage.js */ "./node_modules/@azure/msal-browser/dist/event/EventMessage.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventMessageUtils", function() { return _event_EventMessage_js__WEBPACK_IMPORTED_MODULE_9__["EventMessageUtils"]; }); /* harmony import */ var _event_EventType_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./event/EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventType", function() { return _event_EventType_js__WEBPACK_IMPORTED_MODULE_10__["EventType"]; }); /* harmony import */ var _crypto_SignedHttpRequest_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./crypto/SignedHttpRequest.js */ "./node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SignedHttpRequest", function() { return _crypto_SignedHttpRequest_js__WEBPACK_IMPORTED_MODULE_11__["SignedHttpRequest"]; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccountEntity", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["AccountEntity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthError", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["AuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthErrorMessage", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["AuthErrorMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationHeaderParser", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["AuthenticationHeaderParser"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationScheme", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["AuthenticationScheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AzureCloudInstance", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["AzureCloudInstance"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientAuthError", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["ClientAuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientAuthErrorMessage", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["ClientAuthErrorMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientConfigurationError", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["ClientConfigurationError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientConfigurationErrorMessage", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["ClientConfigurationErrorMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthError", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["InteractionRequiredAuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthErrorMessage", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["InteractionRequiredAuthErrorMessage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogLevel", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["LogLevel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["Logger"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OIDC_DEFAULT_SCOPES", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["OIDC_DEFAULT_SCOPES"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PerformanceEvents", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["PerformanceEvents"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProtocolMode", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["ProtocolMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerError", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["ServerError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringUtils", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["StringUtils"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UrlString", function() { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_12__["UrlString"]; }); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./packageMetadata.js */ "./node_modules/@azure/msal-browser/dist/packageMetadata.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _packageMetadata_js__WEBPACK_IMPORTED_MODULE_13__["version"]; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js ***! \*******************************************************************************************/ /*! exports provided: BaseInteractionClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseInteractionClient", function() { return BaseInteractionClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-browser/dist/packageMetadata.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var BaseInteractionClient = /** @class */ (function () { function BaseInteractionClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) { this.config = config; this.browserStorage = storageImpl; this.browserCrypto = browserCrypto; this.networkClient = this.config.system.networkClient; this.eventHandler = eventHandler; this.navigationClient = navigationClient; this.nativeMessageHandler = nativeMessageHandler; this.correlationId = correlationId || this.browserCrypto.createNewGuid(); this.logger = logger.clone(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserConstants"].MSAL_SKU, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_2__["version"], this.correlationId); this.performanceClient = performanceClient; } BaseInteractionClient.prototype.clearCacheOnLogout = function (account) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (!account) return [3 /*break*/, 5]; if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"].accountInfoIsEqual(account, this.browserStorage.getActiveAccount(), false)) { this.logger.verbose("Setting active account to null"); this.browserStorage.setActiveAccount(null); } _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this.browserStorage.removeAccount(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"].generateAccountCacheKey(account))]; case 2: _a.sent(); this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."); return [3 /*break*/, 4]; case 3: _a.sent(); this.logger.error("Account provided in logout request was not found. Local cache unchanged."); return [3 /*break*/, 4]; case 4: return [3 /*break*/, 9]; case 5: _a.trys.push([5, 8, , 9]); this.logger.verbose("No account provided in logout request, clearing all cache items.", this.correlationId); // Clear all accounts and tokens return [4 /*yield*/, this.browserStorage.clear()]; case 6: // Clear all accounts and tokens _a.sent(); // Clear any stray keys from IndexedDB return [4 /*yield*/, this.browserCrypto.clearKeystore()]; case 7: // Clear any stray keys from IndexedDB _a.sent(); return [3 /*break*/, 9]; case 8: _a.sent(); this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."); return [3 /*break*/, 9]; case 9: return [2 /*return*/]; } }); }); }; /** * Initializer function for all request APIs * @param request */ BaseInteractionClient.prototype.initializeBaseRequest = function (request, account) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var authority, scopes, validatedRequest, _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].InitializeBaseRequest, request.correlationId); this.logger.verbose("Initializing BaseAuthRequest"); authority = request.authority || this.config.auth.authority; if (!account) return [3 /*break*/, 2]; return [4 /*yield*/, this.validateRequestAuthority(authority, account)]; case 1: _b.sent(); _b.label = 2; case 2: scopes = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spread"])(((request && request.scopes) || [])); validatedRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { correlationId: this.correlationId, authority: authority, scopes: scopes }); // Set authenticationScheme to BEARER if not explicitly set in the request if (!validatedRequest.authenticationScheme) { validatedRequest.authenticationScheme = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].BEARER; this.logger.verbose("Authentication Scheme wasn't explicitly set in request, defaulting to \"Bearer\" request"); } else { if (validatedRequest.authenticationScheme === _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].SSH) { if (!request.sshJwk) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createMissingSshJwkError(); } if (!request.sshKid) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createMissingSshKidError(); } } this.logger.verbose("Authentication Scheme set to \"" + validatedRequest.authenticationScheme + "\" as configured in Auth request"); } if (!(this.config.cache.claimsBasedCachingEnabled && request.claims && !_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmptyObj(request.claims))) return [3 /*break*/, 4]; _a = validatedRequest; return [4 /*yield*/, this.browserCrypto.hashString(request.claims)]; case 3: _a.requestedClaimsHash = _b.sent(); _b.label = 4; case 4: return [2 /*return*/, validatedRequest]; } }); }); }; /** * * Use to get the redirect uri configured in MSAL or null. * @param requestRedirectUri * @returns Redirect URL * */ BaseInteractionClient.prototype.getRedirectUri = function (requestRedirectUri) { this.logger.verbose("getRedirectUri called"); var redirectUri = requestRedirectUri || this.config.auth.redirectUri || _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_4__["BrowserUtils"].getCurrentUri(); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getAbsoluteUrl(redirectUri, _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_4__["BrowserUtils"].getCurrentUri()); }; /* * If authority provided in the request does not match environment/authority specified * in the account or MSAL config, we throw an error. */ BaseInteractionClient.prototype.validateRequestAuthority = function (authority, account) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var discoveredAuthority; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.getDiscoveredAuthority(authority)]; case 1: discoveredAuthority = _a.sent(); if (!discoveredAuthority.isAlias(account.environment)) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createAuthorityMismatchError(); } return [2 /*return*/]; } }); }); }; /** * * @param apiId * @param correlationId * @param forceRefresh */ BaseInteractionClient.prototype.initializeServerTelemetryManager = function (apiId, forceRefresh) { this.logger.verbose("initializeServerTelemetryManager called"); var telemetryPayload = { clientId: this.config.auth.clientId, correlationId: this.correlationId, apiId: apiId, forceRefresh: forceRefresh || false, wrapperSKU: this.browserStorage.getWrapperMetadata()[0], wrapperVer: this.browserStorage.getWrapperMetadata()[1] }; return new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ServerTelemetryManager"](telemetryPayload, this.browserStorage); }; /** * Used to get a discovered version of the default authority. * @param requestAuthority * @param requestCorrelationId */ BaseInteractionClient.prototype.getDiscoveredAuthority = function (requestAuthority) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var authorityOptions; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.verbose("getDiscoveredAuthority called"); authorityOptions = { protocolMode: this.config.auth.protocolMode, knownAuthorities: this.config.auth.knownAuthorities, cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata, authorityMetadata: this.config.auth.authorityMetadata }; if (!requestAuthority) return [3 /*break*/, 2]; this.logger.verbose("Creating discovered authority with request authority"); return [4 /*yield*/, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityFactory"].createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)]; case 1: return [2 /*return*/, _a.sent()]; case 2: this.logger.verbose("Creating discovered authority with configured authority"); return [4 /*yield*/, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityFactory"].createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)]; case 3: return [2 /*return*/, _a.sent()]; } }); }); }; return BaseInteractionClient; }()); //# sourceMappingURL=BaseInteractionClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js ***! \******************************************************************************************************/ /*! exports provided: HybridSpaAuthorizationCodeClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HybridSpaAuthorizationCodeClient", function() { return HybridSpaAuthorizationCodeClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var HybridSpaAuthorizationCodeClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HybridSpaAuthorizationCodeClient, _super); function HybridSpaAuthorizationCodeClient(config) { var _this = _super.call(this, config) || this; _this.includeRedirectUri = false; return _this; } return HybridSpaAuthorizationCodeClient; }(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorizationCodeClient"])); //# sourceMappingURL=HybridSpaAuthorizationCodeClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js ***! \*********************************************************************************************/ /*! exports provided: NativeInteractionClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeInteractionClient", function() { return NativeInteractionClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _BaseInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/NativeAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _SilentCacheClient_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SilentCacheClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var NativeInteractionClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NativeInteractionClient, _super); function NativeInteractionClient(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) { var _this = _super.call(this, config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId) || this; _this.apiId = apiId; _this.accountId = accountId; _this.nativeMessageHandler = provider; _this.nativeStorageManager = nativeStorageImpl; _this.silentCacheClient = new _SilentCacheClient_js__WEBPACK_IMPORTED_MODULE_6__["SilentCacheClient"](config, _this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId); return _this; } /** * Acquire token from native platform via browser extension * @param request */ NativeInteractionClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var nativeATMeasurement, reqTimestamp, nativeRequest, result, messageBody, response, validatedResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("NativeInteractionClient - acquireToken called."); nativeATMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].NativeInteractionClientAcquireToken, request.correlationId); reqTimestamp = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["TimeUtils"].nowSeconds(); return [4 /*yield*/, this.initializeNativeRequest(request)]; case 1: nativeRequest = _a.sent(); _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); return [4 /*yield*/, this.acquireTokensFromCache(this.accountId, nativeRequest)]; case 3: result = _a.sent(); nativeATMeasurement.endMeasurement({ success: true, isNativeBroker: false, fromCache: true }); return [2 /*return*/, result]; case 4: _a.sent(); // continue with a native call for any and all errors this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"); return [3 /*break*/, 5]; case 5: messageBody = { method: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["NativeExtensionMethod"].GetToken, request: nativeRequest }; return [4 /*yield*/, this.nativeMessageHandler.sendMessage(messageBody)]; case 6: response = _a.sent(); validatedResponse = this.validateNativeResponse(response); return [2 /*return*/, this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp) .then(function (result) { nativeATMeasurement.endMeasurement({ success: true, isNativeBroker: true, requestId: result.requestId }); return result; }) .catch(function (error) { nativeATMeasurement.endMeasurement({ success: false, errorCode: error.errorCode, subErrorCode: error.subError, isNativeBroker: true }); throw error; })]; } }); }); }; /** * Creates silent flow request * @param request * @param cachedAccount * @returns CommonSilentFlowRequest */ NativeInteractionClient.prototype.createSilentCacheRequest = function (request, cachedAccount) { return { authority: request.authority, correlationId: this.correlationId, scopes: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ScopeSet"].fromString(request.scope).asArray(), account: cachedAccount, forceRefresh: false, }; }; /** * Fetches the tokens from the cache if un-expired * @param nativeAccountId * @param request * @returns authenticationResult */ NativeInteractionClient.prototype.acquireTokensFromCache = function (nativeAccountId, request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var account, silentRequest, result, e_2; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (!nativeAccountId) { this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"); throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createNoAccountFoundError(); } account = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: nativeAccountId }); if (!account) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createNoAccountFoundError(); } _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); silentRequest = this.createSilentCacheRequest(request, account); return [4 /*yield*/, this.silentCacheClient.acquireToken(silentRequest)]; case 2: result = _a.sent(); return [2 /*return*/, result]; case 3: e_2 = _a.sent(); throw e_2; case 4: return [2 /*return*/]; } }); }); }; /** * Acquires a token from native platform then redirects to the redirectUri instead of returning the response * @param request */ NativeInteractionClient.prototype.acquireTokenRedirect = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var nativeRequest, messageBody, response, e_3, navigationOptions, redirectUri; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."); return [4 /*yield*/, this.initializeNativeRequest(request)]; case 1: nativeRequest = _a.sent(); messageBody = { method: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["NativeExtensionMethod"].GetToken, request: nativeRequest }; _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); return [4 /*yield*/, this.nativeMessageHandler.sendMessage(messageBody)]; case 3: response = _a.sent(); this.validateNativeResponse(response); return [3 /*break*/, 5]; case 4: e_3 = _a.sent(); // Only throw fatal errors here to allow application to fallback to regular redirect. Otherwise proceed and the error will be thrown in handleRedirectPromise if (e_3 instanceof _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_4__["NativeAuthError"] && e_3.isFatal()) { throw e_3; } return [3 /*break*/, 5]; case 5: this.browserStorage.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].NATIVE_REQUEST, JSON.stringify(nativeRequest), true); navigationOptions = { apiId: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenRedirect, timeout: this.config.system.redirectNavigationTimeout, noHistory: false }; redirectUri = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(request.redirectUri); return [4 /*yield*/, this.navigationClient.navigateExternal(redirectUri, navigationOptions)]; case 6: _a.sent(); // Need to treat this as external to ensure handleRedirectPromise is run again return [2 /*return*/]; } }); }); }; /** * If the previous page called native platform for a token using redirect APIs, send the same request again and return the response */ NativeInteractionClient.prototype.handleRedirectPromise = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cachedRequest, prompt, request, messageBody, reqTimestamp, response, result, e_4; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("NativeInteractionClient - handleRedirectPromise called."); if (!this.browserStorage.isInteractionInProgress(true)) { this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."); return [2 /*return*/, null]; } cachedRequest = this.browserStorage.getCachedNativeRequest(); if (!cachedRequest) { this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."); return [2 /*return*/, null]; } prompt = cachedRequest.prompt, request = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__rest"])(cachedRequest, ["prompt"]); if (prompt) { this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."); } this.browserStorage.removeItem(this.browserStorage.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].NATIVE_REQUEST)); messageBody = { method: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["NativeExtensionMethod"].GetToken, request: request }; reqTimestamp = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["TimeUtils"].nowSeconds(); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."); return [4 /*yield*/, this.nativeMessageHandler.sendMessage(messageBody)]; case 2: response = _a.sent(); this.validateNativeResponse(response); result = this.handleNativeResponse(response, request, reqTimestamp); this.browserStorage.setInteractionInProgress(false); return [2 /*return*/, result]; case 3: e_4 = _a.sent(); this.browserStorage.setInteractionInProgress(false); throw e_4; case 4: return [2 /*return*/]; } }); }); }; /** * Logout from native platform via browser extension * @param request */ NativeInteractionClient.prototype.logout = function () { this.logger.trace("NativeInteractionClient - logout called."); return Promise.reject("Logout not implemented yet"); }; /** * Transform response from native platform into AuthenticationResult object which will be returned to the end user * @param response * @param request * @param reqTimestamp */ NativeInteractionClient.prototype.handleNativeResponse = function (response, request, reqTimestamp) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var authority, authorityPreferredCache, idTokenObj, homeAccountIdentifier, accountEntity, result; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("NativeInteractionClient - handleNativeResponse called."); if (response.account.id !== request.accountId) { // User switch in native broker prompt is not supported. All users must first sign in through web flow to ensure server state is in sync throw _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_4__["NativeAuthError"].createUserSwitchError(); } return [4 /*yield*/, this.getDiscoveredAuthority(request.authority)]; case 1: authority = _a.sent(); authorityPreferredCache = authority.getPreferredCache(); idTokenObj = this.createIdTokenObj(response); homeAccountIdentifier = this.createHomeAccountIdentifier(response, idTokenObj); accountEntity = this.createAccountEntity(response, homeAccountIdentifier, idTokenObj, authorityPreferredCache); return [4 /*yield*/, this.generateAuthenticationResult(response, request, idTokenObj, accountEntity, authority.canonicalAuthority, reqTimestamp)]; case 2: result = _a.sent(); // cache accounts and tokens in the appropriate storage this.cacheAccount(accountEntity); this.cacheNativeTokens(response, request, homeAccountIdentifier, accountEntity, idTokenObj, result.accessToken, result.tenantId, reqTimestamp); return [2 /*return*/, result]; } }); }); }; /** * Create an idToken Object (not entity) * @param response * @returns */ NativeInteractionClient.prototype.createIdTokenObj = function (response) { return new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthToken"](response.id_token || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, this.browserCrypto); }; /** * creates an homeAccountIdentifier for the account * @param response * @param idTokenObj * @returns */ NativeInteractionClient.prototype.createHomeAccountIdentifier = function (response, idTokenObj) { // Save account in browser storage var homeAccountIdentifier = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"].generateHomeAccountId(response.client_info || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Default, this.logger, this.browserCrypto, idTokenObj); return homeAccountIdentifier; }; /** * Creates account entity * @param response * @param homeAccountIdentifier * @param idTokenObj * @param authority * @returns */ NativeInteractionClient.prototype.createAccountEntity = function (response, homeAccountIdentifier, idTokenObj, authority) { return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccountEntity"].createAccount(response.client_info, homeAccountIdentifier, idTokenObj, undefined, undefined, undefined, authority, response.account.id); }; /** * Helper to generate scopes * @param response * @param request * @returns */ NativeInteractionClient.prototype.generateScopes = function (response, request) { return response.scope ? _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ScopeSet"].fromString(response.scope) : _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ScopeSet"].fromString(request.scope); }; /** * If PoP token is requesred, records the PoP token if returned from the WAM, else generates one in the browser * @param request * @param response */ NativeInteractionClient.prototype.generatePopAccessToken = function (response, request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var popTokenGenerator, shrParameters; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (!(request.tokenType === _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP)) return [3 /*break*/, 2]; /** * This code prioritizes SHR returned from the native layer. In case of error/SHR not calculated from WAM and the AT * is still received, SHR is calculated locally */ // Check if native layer returned an SHR token if (response.shr) { this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"); return [2 /*return*/, response.shr]; } popTokenGenerator = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PopTokenGenerator"](this.browserCrypto); shrParameters = { resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, shrNonce: request.shrNonce }; /** * KeyID must be present in the native request from when the PoP key was generated in order for * PopTokenGenerator to query the full key for signing */ if (!request.keyId) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createKeyIdMissingError(); } return [4 /*yield*/, popTokenGenerator.signPopToken(response.access_token, request.keyId, shrParameters)]; case 1: return [2 /*return*/, _a.sent()]; case 2: return [2 /*return*/, response.access_token]; } }); }); }; /** * Generates authentication result * @param response * @param request * @param idTokenObj * @param accountEntity * @param authority * @param reqTimestamp * @returns */ NativeInteractionClient.prototype.generateAuthenticationResult = function (response, request, idTokenObj, accountEntity, authority, reqTimestamp) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var mats, responseScopes, accountProperties, uid, tid, responseAccessToken, tokenType, result; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: mats = this.addTelemetryFromNativeResponse(response); responseScopes = response.scope ? _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ScopeSet"].fromString(response.scope) : _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ScopeSet"].fromString(request.scope); accountProperties = response.account.properties || {}; uid = accountProperties["UID"] || idTokenObj.claims.oid || idTokenObj.claims.sub || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; tid = accountProperties["TenantId"] || idTokenObj.claims.tid || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; return [4 /*yield*/, this.generatePopAccessToken(response, request)]; case 1: responseAccessToken = _a.sent(); tokenType = (request.tokenType === _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP) ? _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP : _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].BEARER; result = { authority: authority, uniqueId: uid, tenantId: tid, scopes: responseScopes.asArray(), account: accountEntity.getAccountInfo(), idToken: response.id_token, idTokenClaims: idTokenObj.claims, accessToken: responseAccessToken, fromCache: mats ? this.isResponseFromCache(mats) : false, expiresOn: new Date(Number(reqTimestamp + response.expires_in) * 1000), tokenType: tokenType, correlationId: this.correlationId, state: response.state, fromNativeBroker: true }; return [2 /*return*/, result]; } }); }); }; /** * cache the account entity in browser storage * @param accountEntity */ NativeInteractionClient.prototype.cacheAccount = function (accountEntity) { var _this = this; // Store the account info and hence `nativeAccountId` in browser cache this.browserStorage.setAccount(accountEntity); // Remove any existing cached tokens for this account in browser storage this.browserStorage.removeAccountContext(accountEntity).catch(function (e) { _this.logger.error("Error occurred while removing account context from browser storage. " + e); }); }; /** * Stores the access_token and id_token in inmemory storage * @param response * @param request * @param homeAccountIdentifier * @param idTokenObj * @param responseAccessToken * @param tenantId * @param reqTimestamp */ NativeInteractionClient.prototype.cacheNativeTokens = function (response, request, homeAccountIdentifier, accountEntity, idTokenObj, responseAccessToken, tenantId, reqTimestamp) { var cachedIdToken = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["IdTokenEntity"].createIdTokenEntity(homeAccountIdentifier, request.authority, response.id_token || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, request.clientId, idTokenObj.claims.tid || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING); // cache accessToken in inmemory storage var expiresIn = (request.tokenType === _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP) ? _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].SHR_NONCE_VALIDITY : (typeof response.expires_in === "string" ? parseInt(response.expires_in, 10) : response.expires_in) || 0; var tokenExpirationSeconds = reqTimestamp + expiresIn; var responseScopes = this.generateScopes(response, request); var cachedAccessToken = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AccessTokenEntity"].createAccessTokenEntity(homeAccountIdentifier, request.authority, responseAccessToken, request.clientId, idTokenObj ? idTokenObj.claims.tid || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING : tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, this.browserCrypto); var nativeCacheRecord = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["CacheRecord"](accountEntity, cachedIdToken, cachedAccessToken); this.nativeStorageManager.saveCacheRecord(nativeCacheRecord); }; NativeInteractionClient.prototype.addTelemetryFromNativeResponse = function (response) { var mats = this.getMATSFromResponse(response); if (!mats) { return null; } this.performanceClient.addStaticFields({ extensionId: this.nativeMessageHandler.getExtensionId(), extensionVersion: this.nativeMessageHandler.getExtensionVersion(), matsBrokerVersion: mats.broker_version, matsAccountJoinOnStart: mats.account_join_on_start, matsAccountJoinOnEnd: mats.account_join_on_end, matsDeviceJoin: mats.device_join, matsPromptBehavior: mats.prompt_behavior, matsApiErrorCode: mats.api_error_code, matsUiVisible: mats.ui_visible, matsSilentCode: mats.silent_code, matsSilentBiSubCode: mats.silent_bi_sub_code, matsSilentMessage: mats.silent_message, matsSilentStatus: mats.silent_status, matsHttpStatus: mats.http_status, matsHttpEventCount: mats.http_event_count }, this.correlationId); return mats; }; /** * Validates native platform response before processing * @param response */ NativeInteractionClient.prototype.validateNativeResponse = function (response) { if (response.hasOwnProperty("access_token") && response.hasOwnProperty("id_token") && response.hasOwnProperty("client_info") && response.hasOwnProperty("account") && response.hasOwnProperty("scope") && response.hasOwnProperty("expires_in")) { return response; } else { throw _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_4__["NativeAuthError"].createUnexpectedError("Response missing expected properties."); } }; /** * Gets MATS telemetry from native response * @param response * @returns */ NativeInteractionClient.prototype.getMATSFromResponse = function (response) { if (response.properties.MATS) { try { return JSON.parse(response.properties.MATS); } catch (e) { this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead"); } } return null; }; /** * Returns whether or not response came from native cache * @param response * @returns */ NativeInteractionClient.prototype.isResponseFromCache = function (mats) { if (typeof mats.is_cached === "undefined") { this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."); return false; } return !!mats.is_cached; }; /** * Translates developer provided request object into NativeRequest object * @param request */ NativeInteractionClient.prototype.initializeNativeRequest = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var authority, canonicalAuthority, scopes, remainingProperties, scopeSet, getPrompt, validatedRequest, shrParameters, popTokenGenerator, reqCnfData; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("NativeInteractionClient - initializeNativeRequest called"); authority = request.authority || this.config.auth.authority; if (!request.account) return [3 /*break*/, 2]; return [4 /*yield*/, this.validateRequestAuthority(authority, request.account)]; case 1: _a.sent(); _a.label = 2; case 2: canonicalAuthority = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"](authority); canonicalAuthority.validateAsUri(); scopes = request.scopes, remainingProperties = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__rest"])(request, ["scopes"]); scopeSet = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ScopeSet"](scopes || []); scopeSet.appendScopes(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["OIDC_DEFAULT_SCOPES"]); getPrompt = function () { // If request is silent, prompt is always none switch (_this.apiId) { case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].ssoSilent: case _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenSilent_silentFlow: _this.logger.trace("initializeNativeRequest: silent request sets prompt to none"); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].NONE; } // Prompt not provided, request may proceed and native broker decides if it needs to prompt if (!request.prompt) { _this.logger.trace("initializeNativeRequest: prompt was not provided"); return undefined; } // If request is interactive, check if prompt provided is allowed to go directly to native broker switch (request.prompt) { case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].NONE: case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].CONSENT: case _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].LOGIN: _this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"); return request.prompt; default: _this.logger.trace("initializeNativeRequest: prompt = " + request.prompt + " is not compatible with native flow"); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthError"].createNativePromptParameterNotSupportedError(); } }; validatedRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, remainingProperties), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scope: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), prompt: getPrompt(), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["NativeConstants"].MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable? }); if (!(request.authenticationScheme === _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP)) return [3 /*break*/, 4]; shrParameters = { resourceRequestUri: request.resourceRequestUri, resourceRequestMethod: request.resourceRequestMethod, shrClaims: request.shrClaims, shrNonce: request.shrNonce }; popTokenGenerator = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PopTokenGenerator"](this.browserCrypto); return [4 /*yield*/, popTokenGenerator.generateCnf(shrParameters)]; case 3: reqCnfData = _a.sent(); // to reduce the URL length, it is recommended to send the short form of the req_cnf validatedRequest.reqCnf = reqCnfData.reqCnfString; validatedRequest.keyId = reqCnfData.kid; _a.label = 4; case 4: return [2 /*return*/, validatedRequest]; } }); }); }; return NativeInteractionClient; }(_BaseInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__["BaseInteractionClient"])); //# sourceMappingURL=NativeInteractionClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js": /*!*********************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js ***! \*********************************************************************************/ /*! exports provided: PopupClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PopupClient", function() { return PopupClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony import */ var _event_EventType_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../event/EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /* harmony import */ var _NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NativeInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js"); /* harmony import */ var _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../broker/nativeBroker/NativeMessageHandler.js */ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _interaction_handler_InteractionHandler_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../interaction_handler/InteractionHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var PopupClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PopupClient, _super); function PopupClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) { var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this; // Properly sets this reference for the unload event. _this.unloadWindow = _this.unloadWindow.bind(_this); _this.nativeStorage = nativeStorageImpl; return _this; } /** * Acquires tokens by opening a popup window to the /authorize endpoint of the authority * @param request */ PopupClient.prototype.acquireToken = function (request) { try { var popupName = this.generatePopupName(request.scopes || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["OIDC_DEFAULT_SCOPES"], request.authority || this.config.auth.authority); var popupWindowAttributes = request.popupWindowAttributes || {}; // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously. if (this.config.system.asyncPopups) { this.logger.verbose("asyncPopups set to true, acquiring token"); // Passes on popup position and dimensions if in request return this.acquireTokenPopupAsync(request, popupName, popupWindowAttributes); } else { // asyncPopups flag is set to false. Opens popup before acquiring token. this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"); var popup = this.openSizedPopup("about:blank", popupName, popupWindowAttributes); return this.acquireTokenPopupAsync(request, popupName, popupWindowAttributes, popup); } } catch (e) { return Promise.reject(e); } }; /** * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server * @param logoutRequest */ PopupClient.prototype.logout = function (logoutRequest) { try { this.logger.verbose("logoutPopup called"); var validLogoutRequest = this.initializeLogoutRequest(logoutRequest); var popupName = this.generateLogoutPopupName(validLogoutRequest); var authority = logoutRequest && logoutRequest.authority; var mainWindowRedirectUri = logoutRequest && logoutRequest.mainWindowRedirectUri; var popupWindowAttributes = (logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.popupWindowAttributes) || {}; // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously. if (this.config.system.asyncPopups) { this.logger.verbose("asyncPopups set to true"); // Passes on popup position and dimensions if in request return this.logoutPopupAsync(validLogoutRequest, popupName, popupWindowAttributes, authority, undefined, mainWindowRedirectUri); } else { // asyncPopups flag is set to false. Opens popup before logging out. this.logger.verbose("asyncPopup set to false, opening popup"); var popup = this.openSizedPopup("about:blank", popupName, popupWindowAttributes); return this.logoutPopupAsync(validLogoutRequest, popupName, popupWindowAttributes, authority, popup, mainWindowRedirectUri); } } catch (e) { // Since this function is synchronous we need to reject return Promise.reject(e); } }; /** * Helper which obtains an access_token for your API via opening a popup window in the user's browser * @param validRequest * @param popupName * @param popup * @param popupWindowAttributes * * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised. */ PopupClient.prototype.acquireTokenPopupAsync = function (request, popupName, popupWindowAttributes, popup) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var serverTelemetryManager, validRequest, authCodeRequest, authClient, isNativeBroker, fetchNativeAccountIdMeasurement, navigateUrl, interactionHandler, popupParameters, popupWindow, hash, serverParams, state_1, nativeInteractionClient, userRequestState, result, e_1; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.verbose("acquireTokenPopupAsync called"); serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["ApiId"].acquireTokenPopup); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationRequest, request.correlationId); return [4 /*yield*/, this.initializeAuthorizationRequest(request, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup)]; case 1: validRequest = _a.sent(); this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, validRequest.account || null); _a.label = 2; case 2: _a.trys.push([2, 8, , 9]); // Create auth code request and generate PKCE params this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationCodeRequest, request.correlationId); return [4 /*yield*/, this.initializeAuthorizationCodeRequest(validRequest)]; case 3: authCodeRequest = _a.sent(); // Initialize the client this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, request.correlationId); return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, validRequest.authority, validRequest.azureCloudOptions)]; case 4: authClient = _a.sent(); this.logger.verbose("Auth code client created"); isNativeBroker = _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_7__["NativeMessageHandler"].isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme); fetchNativeAccountIdMeasurement = void 0; if (isNativeBroker) { fetchNativeAccountIdMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].FetchAccountIdWithNativeBroker, request.correlationId); } return [4 /*yield*/, authClient.getAuthCodeUrl(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, validRequest), { nativeBroker: isNativeBroker }))]; case 5: navigateUrl = _a.sent(); interactionHandler = new _interaction_handler_InteractionHandler_js__WEBPACK_IMPORTED_MODULE_9__["InteractionHandler"](authClient, this.browserStorage, authCodeRequest, this.logger, this.performanceClient); popupParameters = { popup: popup, popupName: popupName, popupWindowAttributes: popupWindowAttributes }; popupWindow = this.initiateAuthRequest(navigateUrl, popupParameters); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].POPUP_OPENED, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup, { popupWindow: popupWindow }, null); return [4 /*yield*/, this.monitorPopupForHash(popupWindow)]; case 6: hash = _a.sent(); serverParams = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getDeserializedHash(hash); state_1 = this.validateAndExtractStateFromHash(serverParams, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup, validRequest.correlationId); // Remove throttle if it exists _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ThrottlingUtils"].removeThrottle(this.browserStorage, this.config.auth.clientId, authCodeRequest); if (serverParams.accountId) { this.logger.verbose("Account id found in hash, calling WAM for token"); // end measurement for server call with native brokering enabled if (fetchNativeAccountIdMeasurement) { fetchNativeAccountIdMeasurement.endMeasurement({ success: true, isNativeBroker: true }); } if (!this.nativeMessageHandler) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createNativeConnectionNotEstablishedError(); } nativeInteractionClient = new _NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_6__["NativeInteractionClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["ApiId"].acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.nativeStorage, validRequest.correlationId); userRequestState = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].parseRequestState(this.browserCrypto, state_1).userRequestState; return [2 /*return*/, nativeInteractionClient.acquireToken(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, validRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently })).finally(function () { _this.browserStorage.cleanRequestByState(state_1); })]; } return [4 /*yield*/, interactionHandler.handleCodeResponseFromHash(hash, state_1, authClient.authority, this.networkClient)]; case 7: result = _a.sent(); return [2 /*return*/, result]; case 8: e_1 = _a.sent(); if (popup) { // Close the synchronous popup if an error is thrown before the window unload event is registered popup.close(); } if (e_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_1.setCorrelationId(this.correlationId); } serverTelemetryManager.cacheFailedRequest(e_1); this.browserStorage.cleanRequestByState(validRequest.state); throw e_1; case 9: return [2 /*return*/]; } }); }); }; /** * * @param validRequest * @param popupName * @param requestAuthority * @param popup * @param mainWindowRedirectUri * @param popupWindowAttributes */ PopupClient.prototype.logoutPopupAsync = function (validRequest, popupName, popupWindowAttributes, requestAuthority, popup, mainWindowRedirectUri) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var serverTelemetryManager, authClient, logoutUri, popupWindow, navigationOptions, absoluteUrl, e_2; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.verbose("logoutPopupAsync called"); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].LOGOUT_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup, validRequest); serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["ApiId"].logoutPopup); _a.label = 1; case 1: _a.trys.push([1, 5, , 6]); // Clear cache on logout return [4 /*yield*/, this.clearCacheOnLogout(validRequest.account)]; case 2: // Clear cache on logout _a.sent(); // Initialize the client this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, validRequest.correlationId); return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, requestAuthority)]; case 3: authClient = _a.sent(); this.logger.verbose("Auth code client created"); logoutUri = authClient.getLogoutUri(validRequest); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].LOGOUT_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup, validRequest); popupWindow = this.openPopup(logoutUri, { popupName: popupName, popupWindowAttributes: popupWindowAttributes, popup: popup }); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].POPUP_OPENED, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup, { popupWindow: popupWindow }, null); return [4 /*yield*/, this.waitForLogoutPopup(popupWindow)]; case 4: _a.sent(); if (mainWindowRedirectUri) { navigationOptions = { apiId: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["ApiId"].logoutPopup, timeout: this.config.system.redirectNavigationTimeout, noHistory: false }; absoluteUrl = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getAbsoluteUrl(mainWindowRedirectUri, _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__["BrowserUtils"].getCurrentUri()); this.logger.verbose("Redirecting main window to url specified in the request"); this.logger.verbosePii("Redirecting main window to: " + absoluteUrl); this.navigationClient.navigateInternal(absoluteUrl, navigationOptions); } else { this.logger.verbose("No main window navigation requested"); } return [3 /*break*/, 6]; case 5: e_2 = _a.sent(); if (popup) { // Close the synchronous popup if an error is thrown before the window unload event is registered popup.close(); } if (e_2 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_2.setCorrelationId(this.correlationId); } this.browserStorage.setInteractionInProgress(false); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].LOGOUT_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup, null, e_2); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].LOGOUT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup); serverTelemetryManager.cacheFailedRequest(e_2); throw e_2; case 6: this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_3__["EventType"].LOGOUT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup); return [2 /*return*/]; } }); }); }; /** * Opens a popup window with given request Url. * @param requestUrl */ PopupClient.prototype.initiateAuthRequest = function (requestUrl, params) { // Check that request url is not empty. if (!_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(requestUrl)) { this.logger.infoPii("Navigate to: " + requestUrl); // Open the popup window to requestUrl. return this.openPopup(requestUrl, params); } else { // Throw error if request URL is empty. this.logger.error("Navigate url is empty"); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createEmptyNavigationUriError(); } }; /** * Monitors a window until it loads a url with the same origin. * @param popupWindow - window that is being monitored * @param timeout - timeout for processing hash once popup is redirected back to application */ PopupClient.prototype.monitorPopupForHash = function (popupWindow) { var _this = this; return new Promise(function (resolve, reject) { /* * Polling for popups needs to be tick-based, * since a non-trivial amount of time can be spent on interaction (which should not count against the timeout). */ var maxTicks = _this.config.system.windowHashTimeout / _this.config.system.pollIntervalMilliseconds; var ticks = 0; _this.logger.verbose("PopupHandler.monitorPopupForHash - polling started"); var intervalId = setInterval(function () { // Window is closed if (popupWindow.closed) { _this.logger.error("PopupHandler.monitorPopupForHash - window closed"); _this.cleanPopup(); clearInterval(intervalId); reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createUserCancelledError()); return; } var href = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; var hash = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; try { /* * Will throw if cross origin, * which should be caught and ignored * since we need the interval to keep running while on STS UI. */ href = popupWindow.location.href; hash = popupWindow.location.hash; } catch (e) { } // Don't process blank pages or cross domain if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(href) || href === "about:blank") { return; } _this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"); /* * Only run clock when we are on same domain for popups * as popup operations can take a long time. */ ticks++; if (hash) { _this.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"); clearInterval(intervalId); _this.cleanPopup(popupWindow); if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].hashContainsKnownProperties(hash)) { _this.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."); resolve(hash); } else { _this.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."); _this.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + hash); reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createHashDoesNotContainKnownPropertiesError()); } } else if (ticks > maxTicks) { _this.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"); clearInterval(intervalId); reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createMonitorPopupTimeoutError()); } }, _this.config.system.pollIntervalMilliseconds); }); }; /** * Waits for user interaction in logout popup window * @param popupWindow * @returns */ PopupClient.prototype.waitForLogoutPopup = function (popupWindow) { var _this = this; return new Promise(function (resolve) { _this.logger.verbose("PopupHandler.waitForLogoutPopup - polling started"); var intervalId = setInterval(function () { // Window is closed if (popupWindow.closed) { _this.logger.error("PopupHandler.waitForLogoutPopup - window closed"); _this.cleanPopup(); clearInterval(intervalId); resolve(); } var href = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; try { /* * Will throw if cross origin, * which should be caught and ignored * since we need the interval to keep running while on STS UI. */ href = popupWindow.location.href; } catch (e) { } // Don't process blank pages or cross domain if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(href) || href === "about:blank") { return; } _this.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."); clearInterval(intervalId); _this.cleanPopup(popupWindow); resolve(); }, _this.config.system.pollIntervalMilliseconds); }); }; /** * @hidden * * Configures popup window for login. * * @param urlNavigate * @param title * @param popUpWidth * @param popUpHeight * @param popupWindowAttributes * @ignore * @hidden */ PopupClient.prototype.openPopup = function (urlNavigate, popupParams) { try { var popupWindow = void 0; // Popup window passed in, setting url to navigate to if (popupParams.popup) { popupWindow = popupParams.popup; this.logger.verbosePii("Navigating popup window to: " + urlNavigate); popupWindow.location.assign(urlNavigate); } else if (typeof popupParams.popup === "undefined") { // Popup will be undefined if it was not passed in this.logger.verbosePii("Opening popup window to: " + urlNavigate); popupWindow = this.openSizedPopup(urlNavigate, popupParams.popupName, popupParams.popupWindowAttributes); } // Popup will be null if popups are blocked if (!popupWindow) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createEmptyWindowCreatedError(); } if (popupWindow.focus) { popupWindow.focus(); } this.currentWindow = popupWindow; window.addEventListener("beforeunload", this.unloadWindow); return popupWindow; } catch (e) { this.logger.error("error opening popup " + e.message); this.browserStorage.setInteractionInProgress(false); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_8__["BrowserAuthError"].createPopupWindowError(e.toString()); } }; /** * Helper function to set popup window dimensions and position * @param urlNavigate * @param popupName * @param popupWindowAttributes * @returns */ PopupClient.prototype.openSizedPopup = function (urlNavigate, popupName, popupWindowAttributes) { var _a, _b, _c, _d; /** * adding winLeft and winTop to account for dual monitor * using screenLeft and screenTop for IE8 and earlier */ var winLeft = window.screenLeft ? window.screenLeft : window.screenX; var winTop = window.screenTop ? window.screenTop : window.screenY; /** * window.innerWidth displays browser window"s height and width excluding toolbars * using document.documentElement.clientWidth for IE8 and earlier */ var winWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var winHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var width = (_a = popupWindowAttributes.popupSize) === null || _a === void 0 ? void 0 : _a.width; var height = (_b = popupWindowAttributes.popupSize) === null || _b === void 0 ? void 0 : _b.height; var top = (_c = popupWindowAttributes.popupPosition) === null || _c === void 0 ? void 0 : _c.top; var left = (_d = popupWindowAttributes.popupPosition) === null || _d === void 0 ? void 0 : _d.left; if (!width || width < 0 || width > winWidth) { this.logger.verbose("Default popup window width used. Window width not configured or invalid."); width = _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_WIDTH; } if (!height || height < 0 || height > winHeight) { this.logger.verbose("Default popup window height used. Window height not configured or invalid."); height = _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_HEIGHT; } if (!top || top < 0 || top > winHeight) { this.logger.verbose("Default popup window top position used. Window top not configured or invalid."); top = Math.max(0, ((winHeight / 2) - (_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_HEIGHT / 2)) + winTop); } if (!left || left < 0 || left > winWidth) { this.logger.verbose("Default popup window left position used. Window left not configured or invalid."); left = Math.max(0, ((winWidth / 2) - (_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_WIDTH / 2)) + winLeft); } return window.open(urlNavigate, popupName, "width=" + width + ", height=" + height + ", top=" + top + ", left=" + left + ", scrollbars=yes"); }; /** * Event callback to unload main window. */ PopupClient.prototype.unloadWindow = function (e) { this.browserStorage.cleanRequestByInteractionType(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Popup); if (this.currentWindow) { this.currentWindow.close(); } // Guarantees browser unload will happen, so no other errors will be thrown. e.preventDefault(); }; /** * Closes popup, removes any state vars created during popup calls. * @param popupWindow */ PopupClient.prototype.cleanPopup = function (popupWindow) { if (popupWindow) { // Close window. popupWindow.close(); } // Remove window unload function window.removeEventListener("beforeunload", this.unloadWindow); // Interaction is completed - remove interaction status. this.browserStorage.setInteractionInProgress(false); }; /** * Generates the name for the popup based on the client id and request * @param clientId * @param request */ PopupClient.prototype.generatePopupName = function (scopes, authority) { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + scopes.join("-") + "." + authority + "." + this.correlationId; }; /** * Generates the name for the popup based on the client id and request for logouts * @param clientId * @param request */ PopupClient.prototype.generateLogoutPopupName = function (request) { var homeAccountId = request.account && request.account.homeAccountId; return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + homeAccountId + "." + this.correlationId; }; return PopupClient; }(_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__["StandardInteractionClient"])); //# sourceMappingURL=PopupClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js": /*!************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js ***! \************************************************************************************/ /*! exports provided: RedirectClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedirectClient", function() { return RedirectClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _interaction_handler_RedirectHandler_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interaction_handler/RedirectHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /* harmony import */ var _event_EventType_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../event/EventType.js */ "./node_modules/@azure/msal-browser/dist/event/EventType.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NativeInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js"); /* harmony import */ var _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../broker/nativeBroker/NativeMessageHandler.js */ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var RedirectClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RedirectClient, _super); function RedirectClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) { var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this; _this.nativeStorage = nativeStorageImpl; return _this; } /** * Redirects the page to the /authorize endpoint of the IDP * @param request */ RedirectClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var validRequest, serverTelemetryManager, handleBackButton, authCodeRequest, authClient, interactionHandler, navigateUrl, redirectStartPage, e_1; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationRequest, request.correlationId); return [4 /*yield*/, this.initializeAuthorizationRequest(request, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect)]; case 1: validRequest = _a.sent(); this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, validRequest.account || null); serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenRedirect); handleBackButton = function (event) { // Clear temporary cache if the back button is clicked during the redirect flow. if (event.persisted) { _this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."); _this.browserStorage.cleanRequestByState(validRequest.state); _this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_6__["EventType"].RESTORE_FROM_BFCACHE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); } }; _a.label = 2; case 2: _a.trys.push([2, 7, , 8]); // Create auth code request and generate PKCE params this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationCodeRequest, request.correlationId); return [4 /*yield*/, this.initializeAuthorizationCodeRequest(validRequest)]; case 3: authCodeRequest = _a.sent(); // Initialize the client this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, request.correlationId); return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, validRequest.authority, validRequest.azureCloudOptions)]; case 4: authClient = _a.sent(); this.logger.verbose("Auth code client created"); interactionHandler = new _interaction_handler_RedirectHandler_js__WEBPACK_IMPORTED_MODULE_4__["RedirectHandler"](authClient, this.browserStorage, authCodeRequest, this.logger, this.browserCrypto, this.performanceClient); return [4 /*yield*/, authClient.getAuthCodeUrl(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, validRequest), { nativeBroker: _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_9__["NativeMessageHandler"].isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme) }))]; case 5: navigateUrl = _a.sent(); redirectStartPage = this.getRedirectStartPage(request.redirectStartPage); this.logger.verbosePii("Redirect start page: " + redirectStartPage); // Clear temporary cache if the back button is clicked during the redirect flow. window.addEventListener("pageshow", handleBackButton); return [4 /*yield*/, interactionHandler.initiateAuthRequest(navigateUrl, { navigationClient: this.navigationClient, redirectTimeout: this.config.system.redirectNavigationTimeout, redirectStartPage: redirectStartPage, onRedirectNavigate: request.onRedirectNavigate })]; case 6: // Show the UI once the url has been created. Response will come back in the hash, which will be handled in the handleRedirectCallback function. return [2 /*return*/, _a.sent()]; case 7: e_1 = _a.sent(); if (e_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_1.setCorrelationId(this.correlationId); } window.removeEventListener("pageshow", handleBackButton); serverTelemetryManager.cacheFailedRequest(e_1); this.browserStorage.cleanRequestByState(validRequest.state); throw e_1; case 8: return [2 /*return*/]; } }); }); }; /** * Checks if navigateToLoginRequestUrl is set, and: * - if true, performs logic to cache and navigate * - if false, handles hash string and parses response * @param hash */ RedirectClient.prototype.handleRedirectPromise = function (hash) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var serverTelemetryManager, responseHash, state, serverParams, loginRequestUrl, loginRequestUrlNormalized, currentUrlNormalized, handleHashResult, navigationOptions, processHashOnRedirect, homepage, e_2; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].handleRedirectPromise); _a.label = 1; case 1: _a.trys.push([1, 10, , 11]); if (!this.browserStorage.isInteractionInProgress(true)) { this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."); return [2 /*return*/, null]; } responseHash = this.getRedirectResponseHash(hash || window.location.hash); if (!responseHash) { // Not a recognized server response hash or hash not associated with a redirect request this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."); this.browserStorage.cleanRequestByInteractionType(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); return [2 /*return*/, null]; } state = void 0; try { serverParams = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getDeserializedHash(responseHash); state = this.validateAndExtractStateFromHash(serverParams, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); this.logger.verbose("State extracted from hash"); } catch (e) { this.logger.info("handleRedirectPromise was unable to extract state due to: " + e); this.browserStorage.cleanRequestByInteractionType(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); return [2 /*return*/, null]; } loginRequestUrl = this.browserStorage.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].ORIGIN_URI, true) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; loginRequestUrlNormalized = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].removeHashFromUrl(loginRequestUrl); currentUrlNormalized = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].removeHashFromUrl(window.location.href); if (!(loginRequestUrlNormalized === currentUrlNormalized && this.config.auth.navigateToLoginRequestUrl)) return [3 /*break*/, 3]; // We are on the page we need to navigate to - handle hash this.logger.verbose("Current page is loginRequestUrl, handling hash"); return [4 /*yield*/, this.handleHash(responseHash, state, serverTelemetryManager)]; case 2: handleHashResult = _a.sent(); if (loginRequestUrl.indexOf("#") > -1) { // Replace current hash with non-msal hash, if present _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__["BrowserUtils"].replaceHash(loginRequestUrl); } return [2 /*return*/, handleHashResult]; case 3: if (!!this.config.auth.navigateToLoginRequestUrl) return [3 /*break*/, 4]; this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"); return [2 /*return*/, this.handleHash(responseHash, state, serverTelemetryManager)]; case 4: if (!(!_utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__["BrowserUtils"].isInIframe() || this.config.system.allowRedirectInIframe)) return [3 /*break*/, 9]; /* * Returned from authority using redirect - need to perform navigation before processing response * Cache the hash to be retrieved after the next redirect */ this.browserStorage.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].URL_HASH, responseHash, true); navigationOptions = { apiId: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].handleRedirectPromise, timeout: this.config.system.redirectNavigationTimeout, noHistory: true }; processHashOnRedirect = true; if (!(!loginRequestUrl || loginRequestUrl === "null")) return [3 /*break*/, 6]; homepage = _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__["BrowserUtils"].getHomepage(); // Cache the homepage under ORIGIN_URI to ensure cached hash is processed on homepage this.browserStorage.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].ORIGIN_URI, homepage, true); this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"); return [4 /*yield*/, this.navigationClient.navigateInternal(homepage, navigationOptions)]; case 5: processHashOnRedirect = _a.sent(); return [3 /*break*/, 8]; case 6: // Navigate to page that initiated the redirect request this.logger.verbose("Navigating to loginRequestUrl: " + loginRequestUrl); return [4 /*yield*/, this.navigationClient.navigateInternal(loginRequestUrl, navigationOptions)]; case 7: processHashOnRedirect = _a.sent(); _a.label = 8; case 8: // If navigateInternal implementation returns false, handle the hash now if (!processHashOnRedirect) { return [2 /*return*/, this.handleHash(responseHash, state, serverTelemetryManager)]; } _a.label = 9; case 9: return [2 /*return*/, null]; case 10: e_2 = _a.sent(); if (e_2 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_2.setCorrelationId(this.correlationId); } serverTelemetryManager.cacheFailedRequest(e_2); this.browserStorage.cleanRequestByInteractionType(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); throw e_2; case 11: return [2 /*return*/]; } }); }); }; /** * Gets the response hash for a redirect request * Returns null if interactionType in the state value is not "redirect" or the hash does not contain known properties * @param hash */ RedirectClient.prototype.getRedirectResponseHash = function (hash) { this.logger.verbose("getRedirectResponseHash called"); // Get current location hash from window or cache. var isResponseHash = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].hashContainsKnownProperties(hash); if (isResponseHash) { _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__["BrowserUtils"].clearHash(window); this.logger.verbose("Hash contains known properties, returning response hash"); return hash; } var cachedHash = this.browserStorage.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].URL_HASH, true); this.browserStorage.removeItem(this.browserStorage.generateCacheKey(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].URL_HASH)); this.logger.verbose("Hash does not contain known properties, returning cached hash"); return cachedHash; }; /** * Checks if hash exists and handles in window. * @param hash * @param state */ RedirectClient.prototype.handleHash = function (hash, state, serverTelemetryManager) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cachedRequest, serverParams, nativeInteractionClient, userRequestState, currentAuthority, authClient, interactionHandler; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: cachedRequest = this.browserStorage.getCachedRequest(state, this.browserCrypto); this.logger.verbose("handleHash called, retrieved cached request"); serverParams = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getDeserializedHash(hash); if (serverParams.accountId) { this.logger.verbose("Account id found in hash, calling WAM for token"); if (!this.nativeMessageHandler) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_7__["BrowserAuthError"].createNativeConnectionNotEstablishedError(); } nativeInteractionClient = new _NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_8__["NativeInteractionClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.nativeStorage, cachedRequest.correlationId); userRequestState = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].parseRequestState(this.browserCrypto, state).userRequestState; return [2 /*return*/, nativeInteractionClient.acquireToken(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, cachedRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently })).finally(function () { _this.browserStorage.cleanRequestByState(state); })]; } currentAuthority = this.browserStorage.getCachedAuthority(state); if (!currentAuthority) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_7__["BrowserAuthError"].createNoCachedAuthorityError(); } this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, cachedRequest.correlationId); return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, currentAuthority)]; case 1: authClient = _a.sent(); this.logger.verbose("Auth code client created"); _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ThrottlingUtils"].removeThrottle(this.browserStorage, this.config.auth.clientId, cachedRequest); interactionHandler = new _interaction_handler_RedirectHandler_js__WEBPACK_IMPORTED_MODULE_4__["RedirectHandler"](authClient, this.browserStorage, cachedRequest, this.logger, this.browserCrypto, this.performanceClient); return [4 /*yield*/, interactionHandler.handleCodeResponseFromHash(hash, state, authClient.authority, this.networkClient)]; case 2: return [2 /*return*/, _a.sent()]; } }); }); }; /** * Use to log out the current user, and redirect the user to the postLogoutRedirectUri. * Default behaviour is to redirect the user to `window.location.href`. * @param logoutRequest */ RedirectClient.prototype.logout = function (logoutRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var validLogoutRequest, serverTelemetryManager, navigationOptions, authClient, logoutUri, navigate, e_3; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.verbose("logoutRedirect called"); validLogoutRequest = this.initializeLogoutRequest(logoutRequest); serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].logout); _a.label = 1; case 1: _a.trys.push([1, 10, , 11]); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_6__["EventType"].LOGOUT_START, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect, logoutRequest); // Clear cache on logout return [4 /*yield*/, this.clearCacheOnLogout(validLogoutRequest.account)]; case 2: // Clear cache on logout _a.sent(); navigationOptions = { apiId: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].logout, timeout: this.config.system.redirectNavigationTimeout, noHistory: false }; this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, validLogoutRequest.correlationId); return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, logoutRequest && logoutRequest.authority)]; case 3: authClient = _a.sent(); this.logger.verbose("Auth code client created"); logoutUri = authClient.getLogoutUri(validLogoutRequest); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_6__["EventType"].LOGOUT_SUCCESS, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect, validLogoutRequest); if (!(logoutRequest && typeof logoutRequest.onRedirectNavigate === "function")) return [3 /*break*/, 7]; navigate = logoutRequest.onRedirectNavigate(logoutUri); if (!(navigate !== false)) return [3 /*break*/, 5]; this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"); // Ensure interaction is in progress if (!this.browserStorage.getInteractionInProgress()) { this.browserStorage.setInteractionInProgress(true); } return [4 /*yield*/, this.navigationClient.navigateExternal(logoutUri, navigationOptions)]; case 4: _a.sent(); return [2 /*return*/]; case 5: // Ensure interaction is not in progress this.browserStorage.setInteractionInProgress(false); this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"); _a.label = 6; case 6: return [3 /*break*/, 9]; case 7: // Ensure interaction is in progress if (!this.browserStorage.getInteractionInProgress()) { this.browserStorage.setInteractionInProgress(true); } return [4 /*yield*/, this.navigationClient.navigateExternal(logoutUri, navigationOptions)]; case 8: _a.sent(); return [2 /*return*/]; case 9: return [3 /*break*/, 11]; case 10: e_3 = _a.sent(); if (e_3 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_3.setCorrelationId(this.correlationId); } serverTelemetryManager.cacheFailedRequest(e_3); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_6__["EventType"].LOGOUT_FAILURE, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect, null, e_3); this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_6__["EventType"].LOGOUT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); throw e_3; case 11: this.eventHandler.emitEvent(_event_EventType_js__WEBPACK_IMPORTED_MODULE_6__["EventType"].LOGOUT_END, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["InteractionType"].Redirect); return [2 /*return*/]; } }); }); }; /** * Use to get the redirectStartPage either from request or use current window * @param requestStartPage */ RedirectClient.prototype.getRedirectStartPage = function (requestStartPage) { var redirectStartPage = requestStartPage || window.location.href; return _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getAbsoluteUrl(redirectStartPage, _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_5__["BrowserUtils"].getCurrentUri()); }; return RedirectClient; }(_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__["StandardInteractionClient"])); //# sourceMappingURL=RedirectClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js": /*!******************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js ***! \******************************************************************************************/ /*! exports provided: SilentAuthCodeClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SilentAuthCodeClient", function() { return SilentAuthCodeClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _interaction_handler_SilentHandler_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../interaction_handler/SilentHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.js"); /* harmony import */ var _HybridSpaAuthorizationCodeClient_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./HybridSpaAuthorizationCodeClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SilentAuthCodeClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SilentAuthCodeClient, _super); function SilentAuthCodeClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, nativeMessageHandler, correlationId) { var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this; _this.apiId = apiId; return _this; } /** * Acquires a token silently by redeeming an authorization code against the /token endpoint * @param request */ SilentAuthCodeClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var silentRequest, serverTelemetryManager, authCodeRequest, clientConfig, authClient, silentHandler, e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.trace("SilentAuthCodeClient.acquireToken called"); // Auth code payload is required if (!request.code) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createAuthCodeRequiredError(); } // Create silent request this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationRequest, request.correlationId); return [4 /*yield*/, this.initializeAuthorizationRequest(request, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Silent)]; case 1: silentRequest = _a.sent(); this.browserStorage.updateCacheEntries(silentRequest.state, silentRequest.nonce, silentRequest.authority, silentRequest.loginHint || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, silentRequest.account || null); serverTelemetryManager = this.initializeServerTelemetryManager(this.apiId); _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); authCodeRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, silentRequest), { code: request.code }); // Initialize the client this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientGetClientConfiguration, request.correlationId); return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, silentRequest.authority)]; case 3: clientConfig = _a.sent(); authClient = new _HybridSpaAuthorizationCodeClient_js__WEBPACK_IMPORTED_MODULE_6__["HybridSpaAuthorizationCodeClient"](clientConfig); this.logger.verbose("Auth code client created"); silentHandler = new _interaction_handler_SilentHandler_js__WEBPACK_IMPORTED_MODULE_5__["SilentHandler"](authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system, this.performanceClient); // Handle auth code parameters from request return [2 /*return*/, silentHandler.handleCodeResponseFromServer({ code: request.code, msgraph_host: request.msGraphHost, cloud_graph_host_name: request.cloudGraphHostName, cloud_instance_host_name: request.cloudInstanceHostName }, silentRequest.state, authClient.authority, this.networkClient, false)]; case 4: e_1 = _a.sent(); if (e_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_1.setCorrelationId(this.correlationId); } serverTelemetryManager.cacheFailedRequest(e_1); this.browserStorage.cleanRequestByState(silentRequest.state); throw e_1; case 5: return [2 /*return*/]; } }); }); }; /** * Currently Unsupported */ SilentAuthCodeClient.prototype.logout = function () { // Synchronous so we must reject return Promise.reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createSilentLogoutUnsupportedError()); }; return SilentAuthCodeClient; }(_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__["StandardInteractionClient"])); //# sourceMappingURL=SilentAuthCodeClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js": /*!***************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js ***! \***************************************************************************************/ /*! exports provided: SilentCacheClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SilentCacheClient", function() { return SilentCacheClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SilentCacheClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SilentCacheClient, _super); function SilentCacheClient() { return _super !== null && _super.apply(this, arguments) || this; } /** * Returns unexpired tokens from the cache, if available * @param silentRequest */ SilentCacheClient.prototype.acquireToken = function (silentRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var acquireTokenMeasurement, serverTelemetryManager, silentAuthClient, cachedToken, error_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: acquireTokenMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].SilentCacheClientAcquireToken, silentRequest.correlationId); serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenSilent_silentFlow); return [4 /*yield*/, this.createSilentFlowClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)]; case 1: silentAuthClient = _a.sent(); this.logger.verbose("Silent auth client created"); _a.label = 2; case 2: _a.trys.push([2, 4, , 5]); return [4 /*yield*/, silentAuthClient.acquireCachedToken(silentRequest)]; case 3: cachedToken = _a.sent(); acquireTokenMeasurement.endMeasurement({ success: true, fromCache: true }); return [2 /*return*/, cachedToken]; case 4: error_1 = _a.sent(); if (error_1 instanceof _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__["BrowserAuthError"] && error_1.errorCode === _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__["BrowserAuthErrorMessage"].signingKeyNotFoundInStorage.code) { this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."); } acquireTokenMeasurement.endMeasurement({ errorCode: error_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthError"] && error_1.errorCode || undefined, subErrorCode: error_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthError"] && error_1.subError || undefined, success: false }); throw error_1; case 5: return [2 /*return*/]; } }); }); }; /** * Currently Unsupported */ SilentCacheClient.prototype.logout = function () { // Synchronous so we must reject return Promise.reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__["BrowserAuthError"].createSilentLogoutUnsupportedError()); }; /** * Creates an Silent Flow Client with the given authority, or the default authority. * @param serverTelemetryManager * @param authorityUrl */ SilentCacheClient.prototype.createSilentFlowClient = function (serverTelemetryManager, authorityUrl, azureCloudOptions) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var clientConfig; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: // Create auth module. this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].StandardInteractionClientGetClientConfiguration, this.correlationId); return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, authorityUrl, azureCloudOptions)]; case 1: clientConfig = _a.sent(); return [2 /*return*/, new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["SilentFlowClient"](clientConfig, this.performanceClient)]; } }); }); }; SilentCacheClient.prototype.initializeSilentRequest = function (request, account) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].InitializeSilentRequest, this.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].InitializeBaseRequest, this.correlationId); _a = [Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request)]; return [4 /*yield*/, this.initializeBaseRequest(request, account)]; case 1: return [2 /*return*/, _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([_b.sent()])), { account: account, forceRefresh: request.forceRefresh || false }])]; } }); }); }; return SilentCacheClient; }(_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_1__["StandardInteractionClient"])); //# sourceMappingURL=SilentCacheClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js": /*!****************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js ***! \****************************************************************************************/ /*! exports provided: SilentIframeClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SilentIframeClient", function() { return SilentIframeClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _interaction_handler_SilentHandler_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../interaction_handler/SilentHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.js"); /* harmony import */ var _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../broker/nativeBroker/NativeMessageHandler.js */ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js"); /* harmony import */ var _NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NativeInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SilentIframeClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SilentIframeClient, _super); function SilentIframeClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) { var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this; _this.apiId = apiId; _this.nativeStorage = nativeStorageImpl; return _this; } /** * Acquires a token silently by opening a hidden iframe to the /authorize endpoint with prompt=none or prompt=no_session * @param request */ SilentIframeClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var acquireTokenMeasurement, silentRequest, serverTelemetryManager, authClient, e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentIframeClientAcquireToken, request.correlationId); this.logger.verbose("acquireTokenByIframe called"); acquireTokenMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentIframeClientAcquireToken, request.correlationId); // Check that we have some SSO data if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(request.loginHint) && _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(request.sid) && (!request.account || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(request.account.username))) { this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."); } // Check that prompt is set to none or no_session, throw error if it is set to anything else. if (request.prompt && (request.prompt !== _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].NONE) && (request.prompt !== _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].NO_SESSION)) { acquireTokenMeasurement.endMeasurement({ success: false }); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createSilentPromptValueError(request.prompt); } // Create silent request this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationRequest, request.correlationId); return [4 /*yield*/, this.initializeAuthorizationRequest(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { prompt: request.prompt || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].NONE }), _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Silent)]; case 1: silentRequest = _a.sent(); this.browserStorage.updateCacheEntries(silentRequest.state, silentRequest.nonce, silentRequest.authority, silentRequest.loginHint || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, silentRequest.account || null); serverTelemetryManager = this.initializeServerTelemetryManager(this.apiId); _a.label = 2; case 2: _a.trys.push([2, 5, , 6]); // Initialize the client this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, request.correlationId); return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)]; case 3: authClient = _a.sent(); this.logger.verbose("Auth code client created"); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentIframeClientTokenHelper, request.correlationId); return [4 /*yield*/, this.silentTokenHelper(authClient, silentRequest).then(function (result) { acquireTokenMeasurement.endMeasurement({ success: true, fromCache: false, requestId: result.requestId }); return result; })]; case 4: return [2 /*return*/, _a.sent()]; case 5: e_1 = _a.sent(); if (e_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"]) { e_1.setCorrelationId(this.correlationId); } serverTelemetryManager.cacheFailedRequest(e_1); this.browserStorage.cleanRequestByState(silentRequest.state); acquireTokenMeasurement.endMeasurement({ errorCode: e_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"] && e_1.errorCode || undefined, subErrorCode: e_1 instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthError"] && e_1.subError || undefined, success: false }); throw e_1; case 6: return [2 /*return*/]; } }); }); }; /** * Currently Unsupported */ SilentIframeClient.prototype.logout = function () { // Synchronous so we must reject return Promise.reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createSilentLogoutUnsupportedError()); }; /** * Helper which acquires an authorization code silently using a hidden iframe from given url * using the scopes requested as part of the id, and exchanges the code for a set of OAuth tokens. * @param navigateUrl * @param userRequestScopes */ SilentIframeClient.prototype.silentTokenHelper = function (authClient, silentRequest) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var authCodeRequest, navigateUrl, silentHandler, msalFrame, hash, serverParams, state, nativeInteractionClient, userRequestState; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentIframeClientTokenHelper, silentRequest.correlationId); // Create auth code request and generate PKCE params this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationCodeRequest, silentRequest.correlationId); return [4 /*yield*/, this.initializeAuthorizationCodeRequest(silentRequest)]; case 1: authCodeRequest = _a.sent(); // Create authorize request url this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].GetAuthCodeUrl, silentRequest.correlationId); return [4 /*yield*/, authClient.getAuthCodeUrl(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, silentRequest), { nativeBroker: _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_6__["NativeMessageHandler"].isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, silentRequest.authenticationScheme) }))]; case 2: navigateUrl = _a.sent(); silentHandler = new _interaction_handler_SilentHandler_js__WEBPACK_IMPORTED_MODULE_5__["SilentHandler"](authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system, this.performanceClient); // Get the frame handle for the silent request this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentHandlerInitiateAuthRequest, silentRequest.correlationId); return [4 /*yield*/, silentHandler.initiateAuthRequest(navigateUrl)]; case 3: msalFrame = _a.sent(); // Monitor the window for the hash. Return the string value and close the popup when the hash is received. Default timeout is 60 seconds. this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentHandlerMonitorIframeForHash, silentRequest.correlationId); return [4 /*yield*/, silentHandler.monitorIframeForHash(msalFrame, this.config.system.iframeHashTimeout)]; case 4: hash = _a.sent(); serverParams = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getDeserializedHash(hash); state = this.validateAndExtractStateFromHash(serverParams, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Silent, authCodeRequest.correlationId); if (serverParams.accountId) { this.logger.verbose("Account id found in hash, calling WAM for token"); if (!this.nativeMessageHandler) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createNativeConnectionNotEstablishedError(); } nativeInteractionClient = new _NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_7__["NativeInteractionClient"](this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.browserStorage, this.correlationId); userRequestState = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].parseRequestState(this.browserCrypto, state).userRequestState; return [2 /*return*/, nativeInteractionClient.acquireToken(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, silentRequest), { state: userRequestState, prompt: silentRequest.prompt || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PromptValue"].NONE })).finally(function () { _this.browserStorage.cleanRequestByState(state); })]; } // Handle response from hash string this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].HandleCodeResponseFromHash, silentRequest.correlationId); return [2 /*return*/, silentHandler.handleCodeResponseFromHash(hash, state, authClient.authority, this.networkClient)]; } }); }); }; return SilentIframeClient; }(_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__["StandardInteractionClient"])); //# sourceMappingURL=SilentIframeClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js ***! \*****************************************************************************************/ /*! exports provided: SilentRefreshClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SilentRefreshClient", function() { return SilentRefreshClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SilentRefreshClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SilentRefreshClient, _super); function SilentRefreshClient() { return _super !== null && _super.apply(this, arguments) || this; } /** * Exchanges the refresh token for new tokens * @param request */ SilentRefreshClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var silentRequest, _a, acquireTokenMeasurement, serverTelemetryManager, refreshTokenClient; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].SilentRefreshClientAcquireToken, request.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].InitializeBaseRequest, request.correlationId); _a = [Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request)]; return [4 /*yield*/, this.initializeBaseRequest(request, request.account)]; case 1: silentRequest = _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([_b.sent()])); acquireTokenMeasurement = this.performanceClient.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].SilentRefreshClientAcquireToken, silentRequest.correlationId); serverTelemetryManager = this.initializeServerTelemetryManager(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenSilent_silentFlow); return [4 /*yield*/, this.createRefreshTokenClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)]; case 2: refreshTokenClient = _b.sent(); this.logger.verbose("Refresh token client created"); // Send request to renew token. Auth module will throw errors if token cannot be renewed. this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId); return [2 /*return*/, refreshTokenClient.acquireTokenByRefreshToken(silentRequest) .then(function (result) { acquireTokenMeasurement.endMeasurement({ success: true, fromCache: result.fromCache, requestId: result.requestId }); return result; }) .catch(function (e) { if (e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["AuthError"]) { e.setCorrelationId(_this.correlationId); } serverTelemetryManager.cacheFailedRequest(e); acquireTokenMeasurement.endMeasurement({ errorCode: e.errorCode, subErrorCode: e.subError, success: false }); throw e; })]; } }); }); }; /** * Currently Unsupported */ SilentRefreshClient.prototype.logout = function () { // Synchronous so we must reject return Promise.reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_4__["BrowserAuthError"].createSilentLogoutUnsupportedError()); }; /** * Creates a Refresh Client with the given authority, or the default authority. * @param serverTelemetryManager * @param authorityUrl */ SilentRefreshClient.prototype.createRefreshTokenClient = function (serverTelemetryManager, authorityUrl, azureCloudOptions) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var clientConfig; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: // Create auth module. this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].StandardInteractionClientGetClientConfiguration, this.correlationId); return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, authorityUrl, azureCloudOptions)]; case 1: clientConfig = _a.sent(); return [2 /*return*/, new _azure_msal_common__WEBPACK_IMPORTED_MODULE_2__["RefreshTokenClient"](clientConfig, this.performanceClient)]; } }); }); }; return SilentRefreshClient; }(_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_1__["StandardInteractionClient"])); //# sourceMappingURL=SilentRefreshClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js ***! \***********************************************************************************************/ /*! exports provided: StandardInteractionClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandardInteractionClient", function() { return StandardInteractionClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _BaseInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-browser/dist/packageMetadata.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserProtocolUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/BrowserProtocolUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js"); /* harmony import */ var _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/BrowserUtils.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Defines the class structure and helper functions used by the "standard", non-brokered auth flows (popup, redirect, silent (RT), silent (iframe)) */ var StandardInteractionClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StandardInteractionClient, _super); function StandardInteractionClient() { return _super !== null && _super.apply(this, arguments) || this; } /** * Generates an auth code request tied to the url request. * @param request */ StandardInteractionClient.prototype.initializeAuthorizationCodeRequest = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var generatedPkceParams, authCodeRequest; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationCodeRequest, request.correlationId); this.logger.verbose("initializeAuthorizationRequest called", request.correlationId); return [4 /*yield*/, this.browserCrypto.generatePkceCodes()]; case 1: generatedPkceParams = _a.sent(); authCodeRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { redirectUri: request.redirectUri, code: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, codeVerifier: generatedPkceParams.verifier }); request.codeChallenge = generatedPkceParams.challenge; request.codeChallengeMethod = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].S256_CODE_CHALLENGE_METHOD; return [2 /*return*/, authCodeRequest]; } }); }); }; /** * Initializer for the logout request. * @param logoutRequest */ StandardInteractionClient.prototype.initializeLogoutRequest = function (logoutRequest) { this.logger.verbose("initializeLogoutRequest called", logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.correlationId); var validLogoutRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ correlationId: this.correlationId || this.browserCrypto.createNewGuid() }, logoutRequest); /** * Set logout_hint to be login_hint from ID Token Claims if present * and logoutHint attribute wasn't manually set in logout request */ if (logoutRequest) { // If logoutHint isn't set and an account was passed in, try to extract logoutHint from ID Token Claims if (!logoutRequest.logoutHint) { if (logoutRequest.account) { var logoutHint = this.getLogoutHintFromIdTokenClaims(logoutRequest.account); if (logoutHint) { this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"); validLogoutRequest.logoutHint = logoutHint; } } else { this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set"); } } else { this.logger.verbose("logoutHint has already been set in logoutRequest"); } } else { this.logger.verbose("logoutHint will not be set since no logout request was configured"); } /* * Only set redirect uri if logout request isn't provided or the set uri isn't null. * Otherwise, use passed uri, config, or current page. */ if (!logoutRequest || logoutRequest.postLogoutRedirectUri !== null) { if (logoutRequest && logoutRequest.postLogoutRedirectUri) { this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request", validLogoutRequest.correlationId); validLogoutRequest.postLogoutRedirectUri = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getAbsoluteUrl(logoutRequest.postLogoutRedirectUri, _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserUtils"].getCurrentUri()); } else if (this.config.auth.postLogoutRedirectUri === null) { this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect", validLogoutRequest.correlationId); } else if (this.config.auth.postLogoutRedirectUri) { this.logger.verbose("Setting postLogoutRedirectUri to configured uri", validLogoutRequest.correlationId); validLogoutRequest.postLogoutRedirectUri = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserUtils"].getCurrentUri()); } else { this.logger.verbose("Setting postLogoutRedirectUri to current page", validLogoutRequest.correlationId); validLogoutRequest.postLogoutRedirectUri = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].getAbsoluteUrl(_utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserUtils"].getCurrentUri(), _utils_BrowserUtils_js__WEBPACK_IMPORTED_MODULE_7__["BrowserUtils"].getCurrentUri()); } } else { this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri", validLogoutRequest.correlationId); } return validLogoutRequest; }; /** * Parses login_hint ID Token Claim out of AccountInfo object to be used as * logout_hint in end session request. * @param account */ StandardInteractionClient.prototype.getLogoutHintFromIdTokenClaims = function (account) { var idTokenClaims = account.idTokenClaims; if (idTokenClaims) { if (idTokenClaims.login_hint) { return idTokenClaims.login_hint; } else { this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request"); } } else { this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request"); } return null; }; /** * Creates an Authorization Code Client with the given authority, or the default authority. * @param serverTelemetryManager * @param authorityUrl */ StandardInteractionClient.prototype.createAuthCodeClient = function (serverTelemetryManager, authorityUrl, requestAzureCloudOptions) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var clientConfig; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientCreateAuthCodeClient, this.correlationId); // Create auth module. this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientGetClientConfiguration, this.correlationId); return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, authorityUrl, requestAzureCloudOptions)]; case 1: clientConfig = _a.sent(); return [2 /*return*/, new _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorizationCodeClient"](clientConfig, this.performanceClient)]; } }); }); }; /** * Creates a Client Configuration object with the given request authority, or the default authority. * @param serverTelemetryManager * @param requestAuthority * @param requestCorrelationId */ StandardInteractionClient.prototype.getClientConfiguration = function (serverTelemetryManager, requestAuthority, requestAzureCloudOptions) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var discoveredAuthority, logger; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientGetClientConfiguration, this.correlationId); this.logger.verbose("getClientConfiguration called", this.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientGetDiscoveredAuthority, this.correlationId); return [4 /*yield*/, this.getDiscoveredAuthority(requestAuthority, requestAzureCloudOptions)]; case 1: discoveredAuthority = _a.sent(); logger = this.config.system.loggerOptions; return [2 /*return*/, { authOptions: { clientId: this.config.auth.clientId, authority: discoveredAuthority, clientCapabilities: this.config.auth.clientCapabilities }, systemOptions: { tokenRenewalOffsetSeconds: this.config.system.tokenRenewalOffsetSeconds, preventCorsPreflight: true }, loggerOptions: { loggerCallback: logger.loggerCallback, piiLoggingEnabled: logger.piiLoggingEnabled, logLevel: logger.logLevel, correlationId: this.correlationId }, cacheOptions: { claimsBasedCachingEnabled: this.config.cache.claimsBasedCachingEnabled }, cryptoInterface: this.browserCrypto, networkInterface: this.networkClient, storageInterface: this.browserStorage, serverTelemetryManager: serverTelemetryManager, libraryInfo: { sku: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["BrowserConstants"].MSAL_SKU, version: _packageMetadata_js__WEBPACK_IMPORTED_MODULE_4__["version"], cpu: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, os: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }, telemetry: this.config.telemetry }]; } }); }); }; /** * @param hash * @param interactionType */ StandardInteractionClient.prototype.validateAndExtractStateFromHash = function (serverParams, interactionType, requestCorrelationId) { this.logger.verbose("validateAndExtractStateFromHash called", requestCorrelationId); if (!serverParams.state) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthError"].createHashDoesNotContainStateError(); } var platformStateObj = _utils_BrowserProtocolUtils_js__WEBPACK_IMPORTED_MODULE_6__["BrowserProtocolUtils"].extractBrowserRequestState(this.browserCrypto, serverParams.state); if (!platformStateObj) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthError"].createUnableToParseStateError(); } if (platformStateObj.interactionType !== interactionType) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_5__["BrowserAuthError"].createStateInteractionTypeMismatchError(); } this.logger.verbose("Returning state from hash", requestCorrelationId); return serverParams.state; }; /** * Used to get a discovered version of the default authority. * @param requestAuthority * @param requestCorrelationId */ StandardInteractionClient.prototype.getDiscoveredAuthority = function (requestAuthority, requestAzureCloudOptions) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var getAuthorityMeasurement, authorityOptions, userAuthority, builtAuthority; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientGetDiscoveredAuthority, this.correlationId); this.logger.verbose("getDiscoveredAuthority called", this.correlationId); getAuthorityMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientGetDiscoveredAuthority, this.correlationId); authorityOptions = { protocolMode: this.config.auth.protocolMode, knownAuthorities: this.config.auth.knownAuthorities, cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata, authorityMetadata: this.config.auth.authorityMetadata, skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache }; userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority; builtAuthority = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Authority"].generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions); this.logger.verbose("Creating discovered authority with configured authority", this.correlationId); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AuthorityFactoryCreateDiscoveredInstance, this.correlationId); return [4 /*yield*/, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityFactory"].createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger, this.performanceClient, this.correlationId) .then(function (result) { getAuthorityMeasurement.endMeasurement({ success: true, }); return result; }) .catch(function (error) { getAuthorityMeasurement.endMeasurement({ errorCode: error.errorCode, subErrorCode: error.subError, success: false }); throw error; })]; case 1: return [2 /*return*/, _b.sent()]; } }); }); }; /** * Helper to initialize required request parameters for interactive APIs and ssoSilent() * @param request * @param interactionType */ StandardInteractionClient.prototype.initializeAuthorizationRequest = function (request, interactionType) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var redirectUri, browserState, state, validatedRequest, _a, account, legacyLoginHint; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].StandardInteractionClientInitializeAuthorizationRequest, this.correlationId); this.logger.verbose("initializeAuthorizationRequest called", this.correlationId); redirectUri = this.getRedirectUri(request.redirectUri); browserState = { interactionType: interactionType }; state = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ProtocolUtils"].setRequestState(this.browserCrypto, (request && request.state) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, browserState); this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].InitializeBaseRequest, this.correlationId); _a = [{}]; return [4 /*yield*/, this.initializeBaseRequest(request)]; case 1: validatedRequest = _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([_b.sent()])), { redirectUri: redirectUri, state: state, nonce: request.nonce || this.browserCrypto.createNewGuid(), responseMode: _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ResponseMode"].FRAGMENT }]); account = request.account || this.browserStorage.getActiveAccount(); if (account) { this.logger.verbose("Setting validated request account", this.correlationId); this.logger.verbosePii("Setting validated request account: " + account.homeAccountId, this.correlationId); validatedRequest.account = account; } // Check for ADAL/MSAL v1 SSO if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(validatedRequest.loginHint) && !account) { legacyLoginHint = this.browserStorage.getLegacyLoginHint(); if (legacyLoginHint) { validatedRequest.loginHint = legacyLoginHint; } } return [2 /*return*/, validatedRequest]; } }); }); }; return StandardInteractionClient; }(_BaseInteractionClient_js__WEBPACK_IMPORTED_MODULE_2__["BaseInteractionClient"])); //# sourceMappingURL=StandardInteractionClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js ***! \*****************************************************************************************/ /*! exports provided: InteractionHandler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionHandler", function() { return InteractionHandler; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Abstract class which defines operations for a browser interaction handling class. */ var InteractionHandler = /** @class */ (function () { function InteractionHandler(authCodeModule, storageImpl, authCodeRequest, logger, performanceClient) { this.authModule = authCodeModule; this.browserStorage = storageImpl; this.authCodeRequest = authCodeRequest; this.logger = logger; this.performanceClient = performanceClient; } /** * Function to handle response parameters from hash. * @param locationHash */ InteractionHandler.prototype.handleCodeResponseFromHash = function (locationHash, state, authority, networkModule) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var stateKey, requestState, authCodeResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].HandleCodeResponseFromHash, this.authCodeRequest.correlationId); this.logger.verbose("InteractionHandler.handleCodeResponse called"); // Check that location hash isn't empty. if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(locationHash)) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createEmptyHashError(locationHash); } stateKey = this.browserStorage.generateStateKey(state); requestState = this.browserStorage.getTemporaryCache(stateKey); if (!requestState) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createStateNotFoundError("Cached State"); } try { authCodeResponse = this.authModule.handleFragmentResponse(locationHash, requestState); } catch (e) { if (e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ServerError"] && e.subError === _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthErrorMessage"].userCancelledError.code) { // Translate server error caused by user closing native prompt to corresponding first class MSAL error throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createUserCancelledError(); } else { throw e; } } this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].HandleCodeResponseFromServer, this.authCodeRequest.correlationId); return [2 /*return*/, this.handleCodeResponseFromServer(authCodeResponse, state, authority, networkModule)]; }); }); }; /** * Process auth code response from AAD * @param authCodeResponse * @param state * @param authority * @param networkModule * @returns */ InteractionHandler.prototype.handleCodeResponseFromServer = function (authCodeResponse, state, authority, networkModule, validateNonce) { if (validateNonce === void 0) { validateNonce = true; } return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var stateKey, requestState, nonceKey, cachedNonce, cachedCcsCred, tokenResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].HandleCodeResponseFromServer, this.authCodeRequest.correlationId); this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"); stateKey = this.browserStorage.generateStateKey(state); requestState = this.browserStorage.getTemporaryCache(stateKey); if (!requestState) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createStateNotFoundError("Cached State"); } nonceKey = this.browserStorage.generateNonceKey(requestState); cachedNonce = this.browserStorage.getTemporaryCache(nonceKey); // Assign code to request this.authCodeRequest.code = authCodeResponse.code; if (!authCodeResponse.cloud_instance_host_name) return [3 /*break*/, 2]; this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId); return [4 /*yield*/, this.updateTokenEndpointAuthority(authCodeResponse.cloud_instance_host_name, authority, networkModule)]; case 1: _a.sent(); _a.label = 2; case 2: // Nonce validation not needed when redirect not involved (e.g. hybrid spa, renewing token via rt) if (validateNonce) { authCodeResponse.nonce = cachedNonce || undefined; } authCodeResponse.state = requestState; // Add CCS parameters if available if (authCodeResponse.client_info) { this.authCodeRequest.clientInfo = authCodeResponse.client_info; } else { cachedCcsCred = this.checkCcsCredentials(); if (cachedCcsCred) { this.authCodeRequest.ccsCredential = cachedCcsCred; } } // Acquire token with retrieved code. this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].AuthClientAcquireToken, this.authCodeRequest.correlationId); return [4 /*yield*/, this.authModule.acquireToken(this.authCodeRequest, authCodeResponse)]; case 3: tokenResponse = _a.sent(); this.browserStorage.cleanRequestByState(state); return [2 /*return*/, tokenResponse]; } }); }); }; /** * Updates authority based on cloudInstanceHostname * @param cloudInstanceHostname * @param authority * @param networkModule */ InteractionHandler.prototype.updateTokenEndpointAuthority = function (cloudInstanceHostname, authority, networkModule) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cloudInstanceAuthorityUri, cloudInstanceAuthority; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId); cloudInstanceAuthorityUri = "https://" + cloudInstanceHostname + "/" + authority.tenant + "/"; return [4 /*yield*/, _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["AuthorityFactory"].createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options, this.logger, this.performanceClient, this.authCodeRequest.correlationId)]; case 1: cloudInstanceAuthority = _a.sent(); this.authModule.updateAuthority(cloudInstanceAuthority); return [2 /*return*/]; } }); }); }; /** * Looks up ccs creds in the cache */ InteractionHandler.prototype.checkCcsCredentials = function () { // Look up ccs credential in temp cache var cachedCcsCred = this.browserStorage.getTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].CCS_CREDENTIAL, true); if (cachedCcsCred) { try { return JSON.parse(cachedCcsCred); } catch (e) { this.authModule.logger.error("Cache credential could not be parsed"); this.authModule.logger.errorPii("Cache credential could not be parsed: " + cachedCcsCred); } } return null; }; return InteractionHandler; }()); //# sourceMappingURL=InteractionHandler.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js": /*!**************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js ***! \**************************************************************************************/ /*! exports provided: RedirectHandler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedirectHandler", function() { return RedirectHandler; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony import */ var _InteractionHandler_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InteractionHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var RedirectHandler = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RedirectHandler, _super); function RedirectHandler(authCodeModule, storageImpl, authCodeRequest, logger, browserCrypto, performanceClient) { var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger, performanceClient) || this; _this.browserCrypto = browserCrypto; return _this; } /** * Redirects window to given URL. * @param urlNavigate */ RedirectHandler.prototype.initiateAuthRequest = function (requestUrl, params) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var navigationOptions, navigate; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.verbose("RedirectHandler.initiateAuthRequest called"); if (!!_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(requestUrl)) return [3 /*break*/, 7]; // Cache start page, returns to this page after redirectUri if navigateToLoginRequestUrl is true if (params.redirectStartPage) { this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"); this.browserStorage.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].ORIGIN_URI, params.redirectStartPage, true); } // Set interaction status in the library. this.browserStorage.setTemporaryCache(_utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["TemporaryCacheKeys"].CORRELATION_ID, this.authCodeRequest.correlationId, true); this.browserStorage.cacheCodeRequest(this.authCodeRequest, this.browserCrypto); this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: " + requestUrl); navigationOptions = { apiId: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["ApiId"].acquireTokenRedirect, timeout: params.redirectTimeout, noHistory: false }; if (!(typeof params.onRedirectNavigate === "function")) return [3 /*break*/, 4]; this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"); navigate = params.onRedirectNavigate(requestUrl); if (!(navigate !== false)) return [3 /*break*/, 2]; this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"); return [4 /*yield*/, params.navigationClient.navigateExternal(requestUrl, navigationOptions)]; case 1: _a.sent(); return [2 /*return*/]; case 2: this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"); return [2 /*return*/]; case 3: return [3 /*break*/, 6]; case 4: // Navigate window to request URL this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"); return [4 /*yield*/, params.navigationClient.navigateExternal(requestUrl, navigationOptions)]; case 5: _a.sent(); return [2 /*return*/]; case 6: return [3 /*break*/, 8]; case 7: // Throw error if request URL is empty. this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createEmptyNavigationUriError(); case 8: return [2 /*return*/]; } }); }); }; /** * Handle authorization code response in the window. * @param hash */ RedirectHandler.prototype.handleCodeResponseFromHash = function (locationHash, state, authority, networkModule) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var stateKey, requestState, authCodeResponse, nonceKey, cachedNonce, cachedCcsCred, tokenResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.logger.verbose("RedirectHandler.handleCodeResponse called"); // Check that location hash isn't empty. if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(locationHash)) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createEmptyHashError(locationHash); } // Interaction is completed - remove interaction status. this.browserStorage.setInteractionInProgress(false); stateKey = this.browserStorage.generateStateKey(state); requestState = this.browserStorage.getTemporaryCache(stateKey); if (!requestState) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createStateNotFoundError("Cached State"); } try { authCodeResponse = this.authModule.handleFragmentResponse(locationHash, requestState); } catch (e) { if (e instanceof _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["ServerError"] && e.subError === _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthErrorMessage"].userCancelledError.code) { // Translate server error caused by user closing native prompt to corresponding first class MSAL error throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createUserCancelledError(); } else { throw e; } } nonceKey = this.browserStorage.generateNonceKey(requestState); cachedNonce = this.browserStorage.getTemporaryCache(nonceKey); // Assign code to request this.authCodeRequest.code = authCodeResponse.code; if (!authCodeResponse.cloud_instance_host_name) return [3 /*break*/, 2]; return [4 /*yield*/, this.updateTokenEndpointAuthority(authCodeResponse.cloud_instance_host_name, authority, networkModule)]; case 1: _a.sent(); _a.label = 2; case 2: authCodeResponse.nonce = cachedNonce || undefined; authCodeResponse.state = requestState; // Add CCS parameters if available if (authCodeResponse.client_info) { this.authCodeRequest.clientInfo = authCodeResponse.client_info; } else { cachedCcsCred = this.checkCcsCredentials(); if (cachedCcsCred) { this.authCodeRequest.ccsCredential = cachedCcsCred; } } return [4 /*yield*/, this.authModule.acquireToken(this.authCodeRequest, authCodeResponse)]; case 3: tokenResponse = _a.sent(); this.browserStorage.cleanRequestByState(state); return [2 /*return*/, tokenResponse]; } }); }); }; return RedirectHandler; }(_InteractionHandler_js__WEBPACK_IMPORTED_MODULE_4__["InteractionHandler"])); //# sourceMappingURL=RedirectHandler.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.js": /*!************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.js ***! \************************************************************************************/ /*! exports provided: SilentHandler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SilentHandler", function() { return SilentHandler; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _InteractionHandler_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InteractionHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config/Configuration.js */ "./node_modules/@azure/msal-browser/dist/config/Configuration.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SilentHandler = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SilentHandler, _super); function SilentHandler(authCodeModule, storageImpl, authCodeRequest, logger, systemOptions, performanceClient) { var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger, performanceClient) || this; _this.navigateFrameWait = systemOptions.navigateFrameWait; _this.pollIntervalMilliseconds = systemOptions.pollIntervalMilliseconds; return _this; } /** * Creates a hidden iframe to given URL using user-requested scopes as an id. * @param urlNavigate * @param userRequestScopes */ SilentHandler.prototype.initiateAuthRequest = function (requestUrl) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentHandlerInitiateAuthRequest, this.authCodeRequest.correlationId); if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(requestUrl)) { // Throw error if request URL is empty. this.logger.info("Navigate url is empty"); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createEmptyNavigationUriError(); } if (!this.navigateFrameWait) return [3 /*break*/, 2]; this.performanceClient.setPreQueueTime(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentHandlerLoadFrame, this.authCodeRequest.correlationId); return [4 /*yield*/, this.loadFrame(requestUrl)]; case 1: return [2 /*return*/, _a.sent()]; case 2: return [2 /*return*/, this.loadFrameSync(requestUrl)]; } }); }); }; /** * Monitors an iframe content window until it loads a url with a known hash, or hits a specified timeout. * @param iframe * @param timeout */ SilentHandler.prototype.monitorIframeForHash = function (iframe, timeout) { var _this = this; this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId); return new Promise(function (resolve, reject) { if (timeout < _config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_IFRAME_TIMEOUT_MS"]) { _this.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + timeout + "ms) than the default (" + _config_Configuration_js__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_IFRAME_TIMEOUT_MS"] + "ms). This may result in timeouts."); } /* * Polling for iframes can be purely timing based, * since we don't need to account for interaction. */ var nowMark = window.performance.now(); var timeoutMark = nowMark + timeout; var intervalId = setInterval(function () { if (window.performance.now() > timeoutMark) { _this.removeHiddenIframe(iframe); clearInterval(intervalId); reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createMonitorIframeTimeoutError()); return; } var href = _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; var contentWindow = iframe.contentWindow; try { /* * Will throw if cross origin, * which should be caught and ignored * since we need the interval to keep running while on STS UI. */ href = contentWindow ? contentWindow.location.href : _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; } catch (e) { } if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(href)) { return; } var contentHash = contentWindow ? contentWindow.location.hash : _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["UrlString"].hashContainsKnownProperties(contentHash)) { // Success case _this.removeHiddenIframe(iframe); clearInterval(intervalId); resolve(contentHash); return; } }, _this.pollIntervalMilliseconds); }); }; /** * @hidden * Loads iframe with authorization endpoint URL * @ignore */ SilentHandler.prototype.loadFrame = function (urlNavigate) { var _this = this; this.performanceClient.addQueueMeasurement(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceEvents"].SilentHandlerLoadFrame, this.authCodeRequest.correlationId); /* * This trick overcomes iframe navigation in IE * IE does not load the page consistently in iframe */ return new Promise(function (resolve, reject) { var frameHandle = _this.createHiddenIframe(); setTimeout(function () { if (!frameHandle) { reject("Unable to load iframe"); return; } frameHandle.src = urlNavigate; resolve(frameHandle); }, _this.navigateFrameWait); }); }; /** * @hidden * Loads the iframe synchronously when the navigateTimeFrame is set to `0` * @param urlNavigate * @param frameName * @param logger */ SilentHandler.prototype.loadFrameSync = function (urlNavigate) { var frameHandle = this.createHiddenIframe(); frameHandle.src = urlNavigate; return frameHandle; }; /** * @hidden * Creates a new hidden iframe or gets an existing one for silent token renewal. * @ignore */ SilentHandler.prototype.createHiddenIframe = function () { var authFrame = document.createElement("iframe"); authFrame.style.visibility = "hidden"; authFrame.style.position = "absolute"; authFrame.style.width = authFrame.style.height = "0"; authFrame.style.border = "0"; authFrame.setAttribute("sandbox", "allow-scripts allow-same-origin allow-forms"); document.getElementsByTagName("body")[0].appendChild(authFrame); return authFrame; }; /** * @hidden * Removes a hidden iframe from the page. * @ignore */ SilentHandler.prototype.removeHiddenIframe = function (iframe) { if (document.body === iframe.parentNode) { document.body.removeChild(iframe); } }; return SilentHandler; }(_InteractionHandler_js__WEBPACK_IMPORTED_MODULE_2__["InteractionHandler"])); //# sourceMappingURL=SilentHandler.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/internals.js": /*!************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/internals.js ***! \************************************************************/ /*! exports provided: BrowserCacheManager, StandardInteractionClient, RedirectClient, PopupClient, SilentIframeClient, SilentCacheClient, SilentRefreshClient, NativeInteractionClient, RedirectHandler, EventHandler, NativeMessageHandler, BrowserConstants, TemporaryCacheKeys, CryptoOps, NativeAuthError, BrowserPerformanceClient, BrowserPerformanceMeasurement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cache/BrowserCacheManager.js */ "./node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserCacheManager", function() { return _cache_BrowserCacheManager_js__WEBPACK_IMPORTED_MODULE_0__["BrowserCacheManager"]; }); /* harmony import */ var _interaction_client_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interaction_client/StandardInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StandardInteractionClient", function() { return _interaction_client_StandardInteractionClient_js__WEBPACK_IMPORTED_MODULE_1__["StandardInteractionClient"]; }); /* harmony import */ var _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interaction_client/RedirectClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedirectClient", function() { return _interaction_client_RedirectClient_js__WEBPACK_IMPORTED_MODULE_2__["RedirectClient"]; }); /* harmony import */ var _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interaction_client/PopupClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupClient", function() { return _interaction_client_PopupClient_js__WEBPACK_IMPORTED_MODULE_3__["PopupClient"]; }); /* harmony import */ var _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interaction_client/SilentIframeClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SilentIframeClient", function() { return _interaction_client_SilentIframeClient_js__WEBPACK_IMPORTED_MODULE_4__["SilentIframeClient"]; }); /* harmony import */ var _interaction_client_SilentCacheClient_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./interaction_client/SilentCacheClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SilentCacheClient", function() { return _interaction_client_SilentCacheClient_js__WEBPACK_IMPORTED_MODULE_5__["SilentCacheClient"]; }); /* harmony import */ var _interaction_client_SilentRefreshClient_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./interaction_client/SilentRefreshClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SilentRefreshClient", function() { return _interaction_client_SilentRefreshClient_js__WEBPACK_IMPORTED_MODULE_6__["SilentRefreshClient"]; }); /* harmony import */ var _interaction_client_NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interaction_client/NativeInteractionClient.js */ "./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NativeInteractionClient", function() { return _interaction_client_NativeInteractionClient_js__WEBPACK_IMPORTED_MODULE_7__["NativeInteractionClient"]; }); /* harmony import */ var _interaction_handler_RedirectHandler_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./interaction_handler/RedirectHandler.js */ "./node_modules/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedirectHandler", function() { return _interaction_handler_RedirectHandler_js__WEBPACK_IMPORTED_MODULE_8__["RedirectHandler"]; }); /* harmony import */ var _event_EventHandler_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./event/EventHandler.js */ "./node_modules/@azure/msal-browser/dist/event/EventHandler.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventHandler", function() { return _event_EventHandler_js__WEBPACK_IMPORTED_MODULE_9__["EventHandler"]; }); /* harmony import */ var _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./broker/nativeBroker/NativeMessageHandler.js */ "./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NativeMessageHandler", function() { return _broker_nativeBroker_NativeMessageHandler_js__WEBPACK_IMPORTED_MODULE_10__["NativeMessageHandler"]; }); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserConstants", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_11__["BrowserConstants"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemporaryCacheKeys", function() { return _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_11__["TemporaryCacheKeys"]; }); /* harmony import */ var _crypto_CryptoOps_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./crypto/CryptoOps.js */ "./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CryptoOps", function() { return _crypto_CryptoOps_js__WEBPACK_IMPORTED_MODULE_12__["CryptoOps"]; }); /* harmony import */ var _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./error/NativeAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NativeAuthError", function() { return _error_NativeAuthError_js__WEBPACK_IMPORTED_MODULE_13__["NativeAuthError"]; }); /* harmony import */ var _telemetry_BrowserPerformanceClient_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./telemetry/BrowserPerformanceClient.js */ "./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserPerformanceClient", function() { return _telemetry_BrowserPerformanceClient_js__WEBPACK_IMPORTED_MODULE_14__["BrowserPerformanceClient"]; }); /* harmony import */ var _telemetry_BrowserPerformanceMeasurement_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./telemetry/BrowserPerformanceMeasurement.js */ "./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrowserPerformanceMeasurement", function() { return _telemetry_BrowserPerformanceMeasurement_js__WEBPACK_IMPORTED_MODULE_15__["BrowserPerformanceMeasurement"]; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ //# sourceMappingURL=internals.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/navigation/NavigationClient.js": /*!******************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/navigation/NavigationClient.js ***! \******************************************************************************/ /*! exports provided: NavigationClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationClient", function() { return NavigationClient; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var NavigationClient = /** @class */ (function () { function NavigationClient() { } /** * Navigates to other pages within the same web application * @param url * @param options */ NavigationClient.prototype.navigateInternal = function (url, options) { return NavigationClient.defaultNavigateWindow(url, options); }; /** * Navigates to other pages outside the web application i.e. the Identity Provider * @param url * @param options */ NavigationClient.prototype.navigateExternal = function (url, options) { return NavigationClient.defaultNavigateWindow(url, options); }; /** * Default navigation implementation invoked by the internal and external functions * @param url * @param options */ NavigationClient.defaultNavigateWindow = function (url, options) { if (options.noHistory) { window.location.replace(url); } else { window.location.assign(url); } return new Promise(function (resolve) { setTimeout(function () { resolve(true); }, options.timeout); }); }; return NavigationClient; }()); //# sourceMappingURL=NavigationClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/network/FetchClient.js": /*!**********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/network/FetchClient.js ***! \**********************************************************************/ /*! exports provided: FetchClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FetchClient", function() { return FetchClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This class implements the Fetch API for GET and POST requests. See more here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API */ var FetchClient = /** @class */ (function () { function FetchClient() { } /** * Fetch Client for REST endpoints - Get request * @param url * @param headers * @param body */ FetchClient.prototype.sendGetRequestAsync = function (url, options) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var response, e_1, _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: _b.trys.push([0, 2, , 3]); return [4 /*yield*/, fetch(url, { method: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["HTTP_REQUEST_TYPE"].GET, headers: this.getFetchHeaders(options) })]; case 1: response = _b.sent(); return [3 /*break*/, 3]; case 2: e_1 = _b.sent(); if (window.navigator.onLine) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createGetRequestFailedError(e_1, url); } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createNoNetworkConnectivityError(); } case 3: _b.trys.push([3, 5, , 6]); _a = { headers: this.getHeaderDict(response.headers) }; return [4 /*yield*/, response.json()]; case 4: return [2 /*return*/, (_a.body = (_b.sent()), _a.status = response.status, _a)]; case 5: _b.sent(); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createFailedToParseNetworkResponseError(url); case 6: return [2 /*return*/]; } }); }); }; /** * Fetch Client for REST endpoints - Post request * @param url * @param headers * @param body */ FetchClient.prototype.sendPostRequestAsync = function (url, options) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var reqBody, response, e_3, _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: reqBody = (options && options.body) || _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); return [4 /*yield*/, fetch(url, { method: _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_3__["HTTP_REQUEST_TYPE"].POST, headers: this.getFetchHeaders(options), body: reqBody })]; case 2: response = _b.sent(); return [3 /*break*/, 4]; case 3: e_3 = _b.sent(); if (window.navigator.onLine) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createPostRequestFailedError(e_3, url); } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createNoNetworkConnectivityError(); } case 4: _b.trys.push([4, 6, , 7]); _a = { headers: this.getHeaderDict(response.headers) }; return [4 /*yield*/, response.json()]; case 5: return [2 /*return*/, (_a.body = (_b.sent()), _a.status = response.status, _a)]; case 6: _b.sent(); throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_2__["BrowserAuthError"].createFailedToParseNetworkResponseError(url); case 7: return [2 /*return*/]; } }); }); }; /** * Get Fetch API Headers object from string map * @param inputHeaders */ FetchClient.prototype.getFetchHeaders = function (options) { var headers = new Headers(); if (!(options && options.headers)) { return headers; } var optionsHeaders = options.headers; Object.keys(optionsHeaders).forEach(function (key) { headers.append(key, optionsHeaders[key]); }); return headers; }; FetchClient.prototype.getHeaderDict = function (headers) { var headerDict = {}; headers.forEach(function (value, key) { headerDict[key] = value; }); return headerDict; }; return FetchClient; }()); //# sourceMappingURL=FetchClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/network/XhrClient.js": /*!********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/network/XhrClient.js ***! \********************************************************************/ /*! exports provided: XhrClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XhrClient", function() { return XhrClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This client implements the XMLHttpRequest class to send GET and POST requests. */ var XhrClient = /** @class */ (function () { function XhrClient() { } /** * XhrClient for REST endpoints - Get request * @param url * @param headers * @param body */ XhrClient.prototype.sendGetRequestAsync = function (url, options) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.sendRequestAsync(url, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["HTTP_REQUEST_TYPE"].GET, options)]; }); }); }; /** * XhrClient for REST endpoints - Post request * @param url * @param headers * @param body */ XhrClient.prototype.sendPostRequestAsync = function (url, options) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.sendRequestAsync(url, _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["HTTP_REQUEST_TYPE"].POST, options)]; }); }); }; /** * Helper for XhrClient requests. * @param url * @param method * @param options */ XhrClient.prototype.sendRequestAsync = function (url, method, options) { var _this = this; return new Promise(function (resolve, reject) { var xhr = new XMLHttpRequest(); xhr.open(method, url, /* async: */ true); _this.setXhrHeaders(xhr, options); xhr.onload = function () { if (xhr.status < 200 || xhr.status >= 300) { if (method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["HTTP_REQUEST_TYPE"].POST) { reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createPostRequestFailedError("Failed with status " + xhr.status, url)); } else { reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createGetRequestFailedError("Failed with status " + xhr.status, url)); } } try { var jsonResponse = JSON.parse(xhr.responseText); var networkResponse = { headers: _this.getHeaderDict(xhr), body: jsonResponse, status: xhr.status }; resolve(networkResponse); } catch (e) { reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createFailedToParseNetworkResponseError(url)); } }; xhr.onerror = function () { if (window.navigator.onLine) { if (method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["HTTP_REQUEST_TYPE"].POST) { reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createPostRequestFailedError("Failed with status " + xhr.status, url)); } else { reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createGetRequestFailedError("Failed with status " + xhr.status, url)); } } else { reject(_error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createNoNetworkConnectivityError()); } }; if (method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["HTTP_REQUEST_TYPE"].POST && options && options.body) { xhr.send(options.body); } else if (method === _utils_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_2__["HTTP_REQUEST_TYPE"].GET) { xhr.send(); } else { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_1__["BrowserAuthError"].createHttpMethodNotImplementedError(method); } }); }; /** * Helper to set XHR headers for request. * @param xhr * @param options */ XhrClient.prototype.setXhrHeaders = function (xhr, options) { if (options && options.headers) { var headers_1 = options.headers; Object.keys(headers_1).forEach(function (key) { xhr.setRequestHeader(key, headers_1[key]); }); } }; /** * Gets a string map of the headers received in the response. * * Algorithm comes from https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders * @param xhr */ XhrClient.prototype.getHeaderDict = function (xhr) { var headerString = xhr.getAllResponseHeaders(); var headerArr = headerString.trim().split(/[\r\n]+/); var headerDict = {}; headerArr.forEach(function (value) { var parts = value.split(": "); var headerName = parts.shift(); var headerVal = parts.join(": "); if (headerName && headerVal) { headerDict[headerName] = headerVal; } }); return headerDict; }; return XhrClient; }()); //# sourceMappingURL=XhrClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/packageMetadata.js": /*!******************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/packageMetadata.js ***! \******************************************************************/ /*! exports provided: name, version */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* eslint-disable header/header */ var name = "@azure/msal-browser"; var version = "2.38.3"; //# sourceMappingURL=packageMetadata.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js": /*!*************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js ***! \*************************************************************************************/ /*! exports provided: BrowserPerformanceClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserPerformanceClient", function() { return BrowserPerformanceClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js"); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _crypto_BrowserCrypto_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../crypto/BrowserCrypto.js */ "./node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.js"); /* harmony import */ var _crypto_GuidGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../crypto/GuidGenerator.js */ "./node_modules/@azure/msal-browser/dist/crypto/GuidGenerator.js"); /* harmony import */ var _BrowserPerformanceMeasurement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BrowserPerformanceMeasurement.js */ "./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var BrowserPerformanceClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrowserPerformanceClient, _super); function BrowserPerformanceClient(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry, cryptoOptions) { var _this = _super.call(this, clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) || this; _this.browserCrypto = new _crypto_BrowserCrypto_js__WEBPACK_IMPORTED_MODULE_2__["BrowserCrypto"](_this.logger, cryptoOptions); _this.guidGenerator = new _crypto_GuidGenerator_js__WEBPACK_IMPORTED_MODULE_3__["GuidGenerator"](_this.browserCrypto); return _this; } BrowserPerformanceClient.prototype.startPerformanceMeasuremeant = function (measureName, correlationId) { return new _BrowserPerformanceMeasurement_js__WEBPACK_IMPORTED_MODULE_4__["BrowserPerformanceMeasurement"](measureName, correlationId); }; BrowserPerformanceClient.prototype.generateId = function () { return this.guidGenerator.generateGuid(); }; BrowserPerformanceClient.prototype.getPageVisibility = function () { var _a; return ((_a = document.visibilityState) === null || _a === void 0 ? void 0 : _a.toString()) || null; }; BrowserPerformanceClient.prototype.deleteIncompleteSubMeasurements = function (inProgressEvent) { var rootEvent = this.eventsByCorrelationId.get(inProgressEvent.event.correlationId); var isRootEvent = rootEvent && rootEvent.eventId === inProgressEvent.event.eventId; var incompleteMeasurements = []; if (isRootEvent && (rootEvent === null || rootEvent === void 0 ? void 0 : rootEvent.incompleteSubMeasurements)) { rootEvent.incompleteSubMeasurements.forEach(function (subMeasurement) { incompleteMeasurements.push(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, subMeasurement)); }); } // Clean up remaining marks for incomplete sub-measurements if (incompleteMeasurements.length > 0) { _BrowserPerformanceMeasurement_js__WEBPACK_IMPORTED_MODULE_4__["BrowserPerformanceMeasurement"].flushMeasurements(inProgressEvent.event.correlationId, incompleteMeasurements); } }; BrowserPerformanceClient.prototype.supportsBrowserPerformanceNow = function () { return typeof window !== "undefined" && typeof window.performance !== "undefined" && typeof window.performance.now === "function"; }; /** * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement. * Also captures browser page visibilityState. * * @param {PerformanceEvents} measureName * @param {?string} [correlationId] * @returns {((event?: Partial) => PerformanceEvent| null)} */ BrowserPerformanceClient.prototype.startMeasurement = function (measureName, correlationId) { var _this = this; // Capture page visibilityState and then invoke start/end measurement var startPageVisibility = this.getPageVisibility(); var inProgressEvent = _super.prototype.startMeasurement.call(this, measureName, correlationId); return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, inProgressEvent), { endMeasurement: function (event) { var res = inProgressEvent.endMeasurement(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ startPageVisibility: startPageVisibility, endPageVisibility: _this.getPageVisibility() }, event)); _this.deleteIncompleteSubMeasurements(inProgressEvent); return res; }, discardMeasurement: function () { inProgressEvent.discardMeasurement(); _this.deleteIncompleteSubMeasurements(inProgressEvent); inProgressEvent.measurement.flushMeasurement(); } }); }; /** * Adds pre-queue time to preQueueTimeByCorrelationId map. * @param {PerformanceEvents} eventName * @param {?string} correlationId * @returns */ BrowserPerformanceClient.prototype.setPreQueueTime = function (eventName, correlationId) { if (!this.supportsBrowserPerformanceNow()) { this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for " + eventName); return; } if (!correlationId) { this.logger.trace("BrowserPerformanceClient: correlationId for " + eventName + " not provided, unable to set telemetry queue time"); return; } var preQueueEvent = this.preQueueTimeByCorrelationId.get(correlationId); /** * Manually complete queue measurement if there is an incomplete pre-queue event. * Incomplete pre-queue events are instrumentation bugs that should be fixed. */ if (preQueueEvent) { this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue " + preQueueEvent.name + " found", correlationId); this.addQueueMeasurement(preQueueEvent.name, correlationId, undefined, true); } this.preQueueTimeByCorrelationId.set(correlationId, { name: eventName, time: window.performance.now() }); }; /** * Calculates and adds queue time measurement for given performance event. * * @param {PerformanceEvents} eventName * @param {?string} correlationId * @param {?number} queueTime * @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements * @returns */ BrowserPerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime, manuallyCompleted) { if (!this.supportsBrowserPerformanceNow()) { this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for " + eventName); return; } if (!correlationId) { this.logger.trace("BrowserPerformanceClient: correlationId for " + eventName + " not provided, unable to add queue measurement"); return; } var preQueueTime = _super.prototype.getPreQueueTime.call(this, eventName, correlationId); if (!preQueueTime) { return; } var currentTime = window.performance.now(); var resQueueTime = queueTime || _super.prototype.calculateQueuedTime.call(this, preQueueTime, currentTime); return _super.prototype.addQueueMeasurement.call(this, eventName, correlationId, resQueueTime, manuallyCompleted); }; return BrowserPerformanceClient; }(_azure_msal_common__WEBPACK_IMPORTED_MODULE_1__["PerformanceClient"])); //# sourceMappingURL=BrowserPerformanceClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js": /*!******************************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js ***! \******************************************************************************************/ /*! exports provided: BrowserPerformanceMeasurement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserPerformanceMeasurement", function() { return BrowserPerformanceMeasurement; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var BrowserPerformanceMeasurement = /** @class */ (function () { function BrowserPerformanceMeasurement(name, correlationId) { this.correlationId = correlationId; this.measureName = BrowserPerformanceMeasurement.makeMeasureName(name, correlationId); this.startMark = BrowserPerformanceMeasurement.makeStartMark(name, correlationId); this.endMark = BrowserPerformanceMeasurement.makeEndMark(name, correlationId); } BrowserPerformanceMeasurement.makeMeasureName = function (name, correlationId) { return "msal.measure." + name + "." + correlationId; }; BrowserPerformanceMeasurement.makeStartMark = function (name, correlationId) { return "msal.start." + name + "." + correlationId; }; BrowserPerformanceMeasurement.makeEndMark = function (name, correlationId) { return "msal.end." + name + "." + correlationId; }; BrowserPerformanceMeasurement.supportsBrowserPerformance = function () { return typeof window !== "undefined" && typeof window.performance !== "undefined" && typeof window.performance.mark === "function" && typeof window.performance.measure === "function" && typeof window.performance.clearMarks === "function" && typeof window.performance.clearMeasures === "function" && typeof window.performance.getEntriesByName === "function"; }; /** * Flush browser marks and measurements. * @param {string} correlationId * @param {SubMeasurement} measurements */ BrowserPerformanceMeasurement.flushMeasurements = function (correlationId, measurements) { if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) { try { measurements.forEach(function (measurement) { var measureName = BrowserPerformanceMeasurement.makeMeasureName(measurement.name, correlationId); var entriesForMeasurement = window.performance.getEntriesByName(measureName, "measure"); if (entriesForMeasurement.length > 0) { window.performance.clearMeasures(measureName); window.performance.clearMarks(BrowserPerformanceMeasurement.makeStartMark(measureName, correlationId)); window.performance.clearMarks(BrowserPerformanceMeasurement.makeEndMark(measureName, correlationId)); } }); } catch (e) { // Silently catch and return null } } }; BrowserPerformanceMeasurement.prototype.startMeasurement = function () { if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) { try { window.performance.mark(this.startMark); } catch (e) { // Silently catch } } }; BrowserPerformanceMeasurement.prototype.endMeasurement = function () { if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) { try { window.performance.mark(this.endMark); window.performance.measure(this.measureName, this.startMark, this.endMark); } catch (e) { // Silently catch } } }; BrowserPerformanceMeasurement.prototype.flushMeasurement = function () { if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) { try { var entriesForMeasurement = window.performance.getEntriesByName(this.measureName, "measure"); if (entriesForMeasurement.length > 0) { var durationMs = entriesForMeasurement[0].duration; window.performance.clearMeasures(this.measureName); window.performance.clearMarks(this.startMark); window.performance.clearMarks(this.endMark); return durationMs; } } catch (e) { // Silently catch and return null } } return null; }; return BrowserPerformanceMeasurement; }()); //# sourceMappingURL=BrowserPerformanceMeasurement.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js ***! \*************************************************************************/ /*! exports provided: ApiId, BrowserCacheLocation, BrowserConstants, CacheLookupPolicy, DB_NAME, DB_TABLE_NAME, DB_VERSION, DEFAULT_REQUEST, HTTP_REQUEST_TYPE, InMemoryCacheKeys, InteractionStatus, InteractionType, KEY_FORMAT_JWK, NativeConstants, NativeExtensionMethod, StaticCacheKeys, TemporaryCacheKeys, WrapperSKU */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApiId", function() { return ApiId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserCacheLocation", function() { return BrowserCacheLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserConstants", function() { return BrowserConstants; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheLookupPolicy", function() { return CacheLookupPolicy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DB_NAME", function() { return DB_NAME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DB_TABLE_NAME", function() { return DB_TABLE_NAME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DB_VERSION", function() { return DB_VERSION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_REQUEST", function() { return DEFAULT_REQUEST; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HTTP_REQUEST_TYPE", function() { return HTTP_REQUEST_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InMemoryCacheKeys", function() { return InMemoryCacheKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionStatus", function() { return InteractionStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionType", function() { return InteractionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY_FORMAT_JWK", function() { return KEY_FORMAT_JWK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeConstants", function() { return NativeConstants; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NativeExtensionMethod", function() { return NativeExtensionMethod; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StaticCacheKeys", function() { return StaticCacheKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemporaryCacheKeys", function() { return TemporaryCacheKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WrapperSKU", function() { return WrapperSKU; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Constants */ var BrowserConstants = { /** * Interaction in progress cache value */ INTERACTION_IN_PROGRESS_VALUE: "interaction_in_progress", /** * Invalid grant error code */ INVALID_GRANT_ERROR: "invalid_grant", /** * Default popup window width */ POPUP_WIDTH: 483, /** * Default popup window height */ POPUP_HEIGHT: 600, /** * Name of the popup window starts with */ POPUP_NAME_PREFIX: "msal", /** * Default popup monitor poll interval in milliseconds */ DEFAULT_POLL_INTERVAL_MS: 30, /** * Msal-browser SKU */ MSAL_SKU: "msal.js.browser", }; var NativeConstants = { CHANNEL_ID: "53ee284d-920a-4b59-9d30-a60315b26836", PREFERRED_EXTENSION_ID: "ppnbnpeolgkicgegkbkbjmhlideopiji", MATS_TELEMETRY: "MATS" }; var NativeExtensionMethod; (function (NativeExtensionMethod) { NativeExtensionMethod["HandshakeRequest"] = "Handshake"; NativeExtensionMethod["HandshakeResponse"] = "HandshakeResponse"; NativeExtensionMethod["GetToken"] = "GetToken"; NativeExtensionMethod["Response"] = "Response"; })(NativeExtensionMethod || (NativeExtensionMethod = {})); var BrowserCacheLocation; (function (BrowserCacheLocation) { BrowserCacheLocation["LocalStorage"] = "localStorage"; BrowserCacheLocation["SessionStorage"] = "sessionStorage"; BrowserCacheLocation["MemoryStorage"] = "memoryStorage"; })(BrowserCacheLocation || (BrowserCacheLocation = {})); /** * HTTP Request types supported by MSAL. */ var HTTP_REQUEST_TYPE; (function (HTTP_REQUEST_TYPE) { HTTP_REQUEST_TYPE["GET"] = "GET"; HTTP_REQUEST_TYPE["POST"] = "POST"; })(HTTP_REQUEST_TYPE || (HTTP_REQUEST_TYPE = {})); /** * Temporary cache keys for MSAL, deleted after any request. */ var TemporaryCacheKeys; (function (TemporaryCacheKeys) { TemporaryCacheKeys["AUTHORITY"] = "authority"; TemporaryCacheKeys["ACQUIRE_TOKEN_ACCOUNT"] = "acquireToken.account"; TemporaryCacheKeys["SESSION_STATE"] = "session.state"; TemporaryCacheKeys["REQUEST_STATE"] = "request.state"; TemporaryCacheKeys["NONCE_IDTOKEN"] = "nonce.id_token"; TemporaryCacheKeys["ORIGIN_URI"] = "request.origin"; TemporaryCacheKeys["RENEW_STATUS"] = "token.renew.status"; TemporaryCacheKeys["URL_HASH"] = "urlHash"; TemporaryCacheKeys["REQUEST_PARAMS"] = "request.params"; TemporaryCacheKeys["SCOPES"] = "scopes"; TemporaryCacheKeys["INTERACTION_STATUS_KEY"] = "interaction.status"; TemporaryCacheKeys["CCS_CREDENTIAL"] = "ccs.credential"; TemporaryCacheKeys["CORRELATION_ID"] = "request.correlationId"; TemporaryCacheKeys["NATIVE_REQUEST"] = "request.native"; TemporaryCacheKeys["REDIRECT_CONTEXT"] = "request.redirect.context"; })(TemporaryCacheKeys || (TemporaryCacheKeys = {})); var StaticCacheKeys; (function (StaticCacheKeys) { StaticCacheKeys["ACCOUNT_KEYS"] = "msal.account.keys"; StaticCacheKeys["TOKEN_KEYS"] = "msal.token.keys"; })(StaticCacheKeys || (StaticCacheKeys = {})); /** * Cache keys stored in-memory */ var InMemoryCacheKeys; (function (InMemoryCacheKeys) { InMemoryCacheKeys["WRAPPER_SKU"] = "wrapper.sku"; InMemoryCacheKeys["WRAPPER_VER"] = "wrapper.version"; })(InMemoryCacheKeys || (InMemoryCacheKeys = {})); /** * API Codes for Telemetry purposes. * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs * 0-99 Silent Flow * 800-899 Auth Code Flow */ var ApiId; (function (ApiId) { ApiId[ApiId["acquireTokenRedirect"] = 861] = "acquireTokenRedirect"; ApiId[ApiId["acquireTokenPopup"] = 862] = "acquireTokenPopup"; ApiId[ApiId["ssoSilent"] = 863] = "ssoSilent"; ApiId[ApiId["acquireTokenSilent_authCode"] = 864] = "acquireTokenSilent_authCode"; ApiId[ApiId["handleRedirectPromise"] = 865] = "handleRedirectPromise"; ApiId[ApiId["acquireTokenByCode"] = 866] = "acquireTokenByCode"; ApiId[ApiId["acquireTokenSilent_silentFlow"] = 61] = "acquireTokenSilent_silentFlow"; ApiId[ApiId["logout"] = 961] = "logout"; ApiId[ApiId["logoutPopup"] = 962] = "logoutPopup"; })(ApiId || (ApiId = {})); /* * Interaction type of the API - used for state and telemetry */ var InteractionType; (function (InteractionType) { InteractionType["Redirect"] = "redirect"; InteractionType["Popup"] = "popup"; InteractionType["Silent"] = "silent"; InteractionType["None"] = "none"; })(InteractionType || (InteractionType = {})); /** * Types of interaction currently in progress. * Used in events in wrapper libraries to invoke functions when certain interaction is in progress or all interactions are complete. */ var InteractionStatus; (function (InteractionStatus) { /** * Initial status before interaction occurs */ InteractionStatus["Startup"] = "startup"; /** * Status set when all login calls occuring */ InteractionStatus["Login"] = "login"; /** * Status set when logout call occuring */ InteractionStatus["Logout"] = "logout"; /** * Status set for acquireToken calls */ InteractionStatus["AcquireToken"] = "acquireToken"; /** * Status set for ssoSilent calls */ InteractionStatus["SsoSilent"] = "ssoSilent"; /** * Status set when handleRedirect in progress */ InteractionStatus["HandleRedirect"] = "handleRedirect"; /** * Status set when interaction is complete */ InteractionStatus["None"] = "none"; })(InteractionStatus || (InteractionStatus = {})); var DEFAULT_REQUEST = { scopes: _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["OIDC_DEFAULT_SCOPES"] }; /** * JWK Key Format string (Type MUST be defined for window crypto APIs) */ var KEY_FORMAT_JWK = "jwk"; // Supported wrapper SKUs var WrapperSKU; (function (WrapperSKU) { WrapperSKU["React"] = "@azure/msal-react"; WrapperSKU["Angular"] = "@azure/msal-angular"; })(WrapperSKU || (WrapperSKU = {})); // DatabaseStorage Constants var DB_NAME = "msal.db"; var DB_VERSION = 1; var DB_TABLE_NAME = DB_NAME + ".keys"; var CacheLookupPolicy; (function (CacheLookupPolicy) { /* * acquireTokenSilent will attempt to retrieve an access token from the cache. If the access token is expired * or cannot be found the refresh token will be used to acquire a new one. Finally, if the refresh token * is expired acquireTokenSilent will attempt to acquire new access and refresh tokens. */ CacheLookupPolicy[CacheLookupPolicy["Default"] = 0] = "Default"; /* * acquireTokenSilent will only look for access tokens in the cache. It will not attempt to renew access or * refresh tokens. */ CacheLookupPolicy[CacheLookupPolicy["AccessToken"] = 1] = "AccessToken"; /* * acquireTokenSilent will attempt to retrieve an access token from the cache. If the access token is expired or * cannot be found, the refresh token will be used to acquire a new one. If the refresh token is expired, it * will not be renewed and acquireTokenSilent will fail. */ CacheLookupPolicy[CacheLookupPolicy["AccessTokenAndRefreshToken"] = 2] = "AccessTokenAndRefreshToken"; /* * acquireTokenSilent will not attempt to retrieve access tokens from the cache and will instead attempt to * exchange the cached refresh token for a new access token. If the refresh token is expired, it will not be * renewed and acquireTokenSilent will fail. */ CacheLookupPolicy[CacheLookupPolicy["RefreshToken"] = 3] = "RefreshToken"; /* * acquireTokenSilent will not look in the cache for the access token. It will go directly to network with the * cached refresh token. If the refresh token is expired an attempt will be made to renew it. This is equivalent to * setting "forceRefresh: true". */ CacheLookupPolicy[CacheLookupPolicy["RefreshTokenAndNetwork"] = 4] = "RefreshTokenAndNetwork"; /* * acquireTokenSilent will attempt to renew both access and refresh tokens. It will not look in the cache. This will * always fail if 3rd party cookies are blocked by the browser. */ CacheLookupPolicy[CacheLookupPolicy["Skip"] = 5] = "Skip"; })(CacheLookupPolicy || (CacheLookupPolicy = {})); //# sourceMappingURL=BrowserConstants.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js": /*!*****************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js ***! \*****************************************************************************/ /*! exports provided: BrowserProtocolUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserProtocolUtils", function() { return BrowserProtocolUtils; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var BrowserProtocolUtils = /** @class */ (function () { function BrowserProtocolUtils() { } /** * Extracts the BrowserStateObject from the state string. * @param browserCrypto * @param state */ BrowserProtocolUtils.extractBrowserRequestState = function (browserCrypto, state) { if (_azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(state)) { return null; } try { var requestStateObj = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["ProtocolUtils"].parseRequestState(browserCrypto, state); return requestStateObj.libraryState.meta; } catch (e) { throw _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createInvalidStateError(state, e); } }; /** * Parses properties of server response from url hash * @param locationHash Hash from url */ BrowserProtocolUtils.parseServerResponseFromHash = function (locationHash) { if (!locationHash) { return {}; } var hashUrlString = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["UrlString"](locationHash); return _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["UrlString"].getDeserializedHash(hashUrlString.getHash()); }; return BrowserProtocolUtils; }()); //# sourceMappingURL=BrowserProtocolUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js": /*!***************************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js ***! \***************************************************************************/ /*! exports provided: BrowserStringUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserStringUtils", function() { return BrowserStringUtils; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Utility functions for strings in a browser. See here for implementation details: * https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64 */ var BrowserStringUtils = /** @class */ (function () { function BrowserStringUtils() { } /** * Converts string to Uint8Array * @param sDOMStr */ BrowserStringUtils.stringToUtf8Arr = function (sDOMStr) { var nChr; var nArrLen = 0; var nStrLen = sDOMStr.length; /* mapping... */ for (var nMapIdx = 0; nMapIdx < nStrLen; nMapIdx++) { nChr = sDOMStr.charCodeAt(nMapIdx); nArrLen += nChr < 0x80 ? 1 : nChr < 0x800 ? 2 : nChr < 0x10000 ? 3 : nChr < 0x200000 ? 4 : nChr < 0x4000000 ? 5 : 6; } var aBytes = new Uint8Array(nArrLen); /* transcription... */ for (var nIdx = 0, nChrIdx = 0; nIdx < nArrLen; nChrIdx++) { nChr = sDOMStr.charCodeAt(nChrIdx); if (nChr < 128) { /* one byte */ aBytes[nIdx++] = nChr; } else if (nChr < 0x800) { /* two bytes */ aBytes[nIdx++] = 192 + (nChr >>> 6); aBytes[nIdx++] = 128 + (nChr & 63); } else if (nChr < 0x10000) { /* three bytes */ aBytes[nIdx++] = 224 + (nChr >>> 12); aBytes[nIdx++] = 128 + (nChr >>> 6 & 63); aBytes[nIdx++] = 128 + (nChr & 63); } else if (nChr < 0x200000) { /* four bytes */ aBytes[nIdx++] = 240 + (nChr >>> 18); aBytes[nIdx++] = 128 + (nChr >>> 12 & 63); aBytes[nIdx++] = 128 + (nChr >>> 6 & 63); aBytes[nIdx++] = 128 + (nChr & 63); } else if (nChr < 0x4000000) { /* five bytes */ aBytes[nIdx++] = 248 + (nChr >>> 24); aBytes[nIdx++] = 128 + (nChr >>> 18 & 63); aBytes[nIdx++] = 128 + (nChr >>> 12 & 63); aBytes[nIdx++] = 128 + (nChr >>> 6 & 63); aBytes[nIdx++] = 128 + (nChr & 63); } else /* if (nChr <= 0x7fffffff) */ { /* six bytes */ aBytes[nIdx++] = 252 + (nChr >>> 30); aBytes[nIdx++] = 128 + (nChr >>> 24 & 63); aBytes[nIdx++] = 128 + (nChr >>> 18 & 63); aBytes[nIdx++] = 128 + (nChr >>> 12 & 63); aBytes[nIdx++] = 128 + (nChr >>> 6 & 63); aBytes[nIdx++] = 128 + (nChr & 63); } } return aBytes; }; /** * Converst string to ArrayBuffer * @param dataString */ BrowserStringUtils.stringToArrayBuffer = function (dataString) { var data = new ArrayBuffer(dataString.length); var dataView = new Uint8Array(data); for (var i = 0; i < dataString.length; i++) { dataView[i] = dataString.charCodeAt(i); } return data; }; /** * Converts Uint8Array to a string * @param aBytes */ BrowserStringUtils.utf8ArrToString = function (aBytes) { var sView = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; for (var nPart = void 0, nLen = aBytes.length, nIdx = 0; nIdx < nLen; nIdx++) { nPart = aBytes[nIdx]; sView += String.fromCharCode(nPart > 251 && nPart < 254 && nIdx + 5 < nLen ? /* six bytes */ /* (nPart - 252 << 30) may be not so safe in ECMAScript! So...: */ (nPart - 252) * 1073741824 + (aBytes[++nIdx] - 128 << 24) + (aBytes[++nIdx] - 128 << 18) + (aBytes[++nIdx] - 128 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128 : nPart > 247 && nPart < 252 && nIdx + 4 < nLen ? /* five bytes */ (nPart - 248 << 24) + (aBytes[++nIdx] - 128 << 18) + (aBytes[++nIdx] - 128 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128 : nPart > 239 && nPart < 248 && nIdx + 3 < nLen ? /* four bytes */ (nPart - 240 << 18) + (aBytes[++nIdx] - 128 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128 : nPart > 223 && nPart < 240 && nIdx + 2 < nLen ? /* three bytes */ (nPart - 224 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128 : nPart > 191 && nPart < 224 && nIdx + 1 < nLen ? /* two bytes */ (nPart - 192 << 6) + aBytes[++nIdx] - 128 : /* nPart < 127 ? */ /* one byte */ nPart); } return sView; }; /** * Returns stringified jwk. * @param jwk */ BrowserStringUtils.getSortedObjectString = function (obj) { return JSON.stringify(obj, Object.keys(obj).sort()); }; return BrowserStringUtils; }()); //# sourceMappingURL=BrowserStringUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js": /*!*********************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js ***! \*********************************************************************/ /*! exports provided: BrowserUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserUtils", function() { return BrowserUtils; }); /* harmony import */ var _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-common */ "./node_modules/@azure/msal-common/dist/index.js"); /* harmony import */ var _network_FetchClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../network/FetchClient.js */ "./node_modules/@azure/msal-browser/dist/network/FetchClient.js"); /* harmony import */ var _network_XhrClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../network/XhrClient.js */ "./node_modules/@azure/msal-browser/dist/network/XhrClient.js"); /* harmony import */ var _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/BrowserAuthError.js */ "./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js"); /* harmony import */ var _BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BrowserConstants.js */ "./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js"); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Utility class for browser specific functions */ var BrowserUtils = /** @class */ (function () { function BrowserUtils() { } // #region Window Navigation and URL management /** * Clears hash from window url. */ BrowserUtils.clearHash = function (contentWindow) { // Office.js sets history.replaceState to null contentWindow.location.hash = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; if (typeof contentWindow.history.replaceState === "function") { // Full removes "#" from url contentWindow.history.replaceState(null, _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, "" + contentWindow.location.origin + contentWindow.location.pathname + contentWindow.location.search); } }; /** * Replaces current hash with hash from provided url */ BrowserUtils.replaceHash = function (url) { var urlParts = url.split("#"); urlParts.shift(); // Remove part before the hash window.location.hash = urlParts.length > 0 ? urlParts.join("#") : _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; }; /** * Returns boolean of whether the current window is in an iframe or not. */ BrowserUtils.isInIframe = function () { return window.parent !== window; }; /** * Returns boolean of whether or not the current window is a popup opened by msal */ BrowserUtils.isInPopup = function () { return typeof window !== "undefined" && !!window.opener && window.opener !== window && typeof window.name === "string" && window.name.indexOf(_BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["BrowserConstants"].POPUP_NAME_PREFIX + ".") === 0; }; // #endregion /** * Returns current window URL as redirect uri */ BrowserUtils.getCurrentUri = function () { return window.location.href.split("?")[0].split("#")[0]; }; /** * Gets the homepage url for the current window location. */ BrowserUtils.getHomepage = function () { var currentUrl = new _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["UrlString"](window.location.href); var urlComponents = currentUrl.getUrlComponents(); return urlComponents.Protocol + "//" + urlComponents.HostNameAndPort + "/"; }; /** * Returns best compatible network client object. */ BrowserUtils.getBrowserNetworkClient = function () { if (window.fetch && window.Headers) { return new _network_FetchClient_js__WEBPACK_IMPORTED_MODULE_1__["FetchClient"](); } else { return new _network_XhrClient_js__WEBPACK_IMPORTED_MODULE_2__["XhrClient"](); } }; /** * Throws error if we have completed an auth and are * attempting another auth request inside an iframe. */ BrowserUtils.blockReloadInHiddenIframes = function () { var isResponseHash = _azure_msal_common__WEBPACK_IMPORTED_MODULE_0__["UrlString"].hashContainsKnownProperties(window.location.hash); // return an error if called from the hidden iframe created by the msal js silent calls if (isResponseHash && BrowserUtils.isInIframe()) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createBlockReloadInHiddenIframeError(); } }; /** * Block redirect operations in iframes unless explicitly allowed * @param interactionType Interaction type for the request * @param allowRedirectInIframe Config value to allow redirects when app is inside an iframe */ BrowserUtils.blockRedirectInIframe = function (interactionType, allowRedirectInIframe) { var isIframedApp = BrowserUtils.isInIframe(); if (interactionType === _BrowserConstants_js__WEBPACK_IMPORTED_MODULE_4__["InteractionType"].Redirect && isIframedApp && !allowRedirectInIframe) { // If we are not in top frame, we shouldn't redirect. This is also handled by the service. throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createRedirectInIframeError(isIframedApp); } }; /** * Block redirectUri loaded in popup from calling AcquireToken APIs */ BrowserUtils.blockAcquireTokenInPopups = function () { // Popups opened by msal popup APIs are given a name that starts with "msal." if (BrowserUtils.isInPopup()) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createBlockAcquireTokenInPopupsError(); } }; /** * Throws error if token requests are made in non-browser environment * @param isBrowserEnvironment Flag indicating if environment is a browser. */ BrowserUtils.blockNonBrowserEnvironment = function (isBrowserEnvironment) { if (!isBrowserEnvironment) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createNonBrowserEnvironmentError(); } }; /** * Throws error if native brokering is enabled but initialize hasn't been called * @param allowNativeBroker * @param initialized */ BrowserUtils.blockNativeBrokerCalledBeforeInitialized = function (allowNativeBroker, initialized) { if (allowNativeBroker && !initialized) { throw _error_BrowserAuthError_js__WEBPACK_IMPORTED_MODULE_3__["BrowserAuthError"].createNativeBrokerCalledBeforeInitialize(); } }; /** * Returns boolean of whether current browser is an Internet Explorer or Edge browser. */ BrowserUtils.detectIEOrEdge = function () { var ua = window.navigator.userAgent; var msie = ua.indexOf("MSIE "); var msie11 = ua.indexOf("Trident/"); var msedge = ua.indexOf("Edge/"); var isIE = msie > 0 || msie11 > 0; var isEdge = msedge > 0; return isIE || isEdge; }; return BrowserUtils; }()); //# sourceMappingURL=BrowserUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-browser/dist/utils/MathUtils.js": /*!******************************************************************!*\ !*** ./node_modules/@azure/msal-browser/dist/utils/MathUtils.js ***! \******************************************************************/ /*! exports provided: MathUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MathUtils", function() { return MathUtils; }); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Utility class for math specific functions in browser. */ var MathUtils = /** @class */ (function () { function MathUtils() { } /** * Decimal to Hex * * @param num */ MathUtils.decimalToHex = function (num) { var hex = num.toString(16); while (hex.length < 2) { hex = "0" + hex; } return hex; }; return MathUtils; }()); //# sourceMappingURL=MathUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js": /*!*****************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/_virtual/_tslib.js ***! \*****************************************************************/ /*! exports provided: __assign, __awaiter, __extends, __generator, __spreadArrays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function __spreadArrays() { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; } //# sourceMappingURL=_tslib.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/account/AuthToken.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/account/AuthToken.js ***! \*******************************************************************/ /*! exports provided: AuthToken */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthToken", function() { return AuthToken; }); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * JWT Token representation class. Parses token string and generates claims object. */ var AuthToken = /** @class */ (function () { function AuthToken(rawToken, crypto) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(rawToken)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createTokenNullOrEmptyError(rawToken); } this.rawToken = rawToken; this.claims = AuthToken.extractTokenClaims(rawToken, crypto); } /** * Extract token by decoding the rawToken * * @param encodedToken */ AuthToken.extractTokenClaims = function (encodedToken, crypto) { var decodedToken = _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].decodeAuthToken(encodedToken); // token will be decoded to get the username try { var base64TokenPayload = decodedToken.JWSPayload; // base64Decode() should throw an error if there is an issue var base64Decoded = crypto.base64Decode(base64TokenPayload); return JSON.parse(base64Decoded); } catch (err) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createTokenParsingError(err); } }; /** * Determine if the token's max_age has transpired */ AuthToken.checkMaxAge = function (authTime, maxAge) { /* * per https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest * To force an immediate re-authentication: If an app requires that a user re-authenticate prior to access, * provide a value of 0 for the max_age parameter and the AS will force a fresh login. */ var fiveMinuteSkew = 300000; // five minutes in milliseconds if ((maxAge === 0) || ((Date.now() - fiveMinuteSkew) > (authTime + maxAge))) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createMaxAgeTranspiredError(); } }; return AuthToken; }()); //# sourceMappingURL=AuthToken.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/account/CcsCredential.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/account/CcsCredential.js ***! \***********************************************************************/ /*! exports provided: CcsCredentialType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CcsCredentialType", function() { return CcsCredentialType; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var CcsCredentialType; (function (CcsCredentialType) { CcsCredentialType["HOME_ACCOUNT_ID"] = "home_account_id"; CcsCredentialType["UPN"] = "UPN"; })(CcsCredentialType || (CcsCredentialType = {})); //# sourceMappingURL=CcsCredential.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js": /*!********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/account/ClientInfo.js ***! \********************************************************************/ /*! exports provided: buildClientInfo, buildClientInfoFromHomeAccountId */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildClientInfo", function() { return buildClientInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildClientInfoFromHomeAccountId", function() { return buildClientInfoFromHomeAccountId; }); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Function to build a client info object from server clientInfo string * @param rawClientInfo * @param crypto */ function buildClientInfo(rawClientInfo, crypto) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(rawClientInfo)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createClientInfoEmptyError(); } try { var decodedClientInfo = crypto.base64Decode(rawClientInfo); return JSON.parse(decodedClientInfo); } catch (e) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createClientInfoDecodingError(e.message); } } /** * Function to build a client info object from cached homeAccountId string * @param homeAccountId */ function buildClientInfoFromHomeAccountId(homeAccountId) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_1__["StringUtils"].isEmpty(homeAccountId)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createClientInfoDecodingError("Home account ID was empty."); } var clientInfoParts = homeAccountId.split(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["Separators"].CLIENT_INFO_SEPARATOR, 2); return { uid: clientInfoParts[0], utid: clientInfoParts.length < 2 ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["Constants"].EMPTY_STRING : clientInfoParts[1] }; } //# sourceMappingURL=ClientInfo.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/Authority.js": /*!*********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/Authority.js ***! \*********************************************************************/ /*! exports provided: Authority */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Authority", function() { return Authority; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AuthorityType.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityType.js"); /* harmony import */ var _OpenIdConfigResponse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OpenIdConfigResponse.js */ "./node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _AuthorityMetadata_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AuthorityMetadata.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _ProtocolMode_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ProtocolMode.js */ "./node_modules/@azure/msal-common/dist/authority/ProtocolMode.js"); /* harmony import */ var _cache_entities_AuthorityMetadataEntity_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../cache/entities/AuthorityMetadataEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js"); /* harmony import */ var _AuthorityOptions_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./AuthorityOptions.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js"); /* harmony import */ var _CloudInstanceDiscoveryResponse_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CloudInstanceDiscoveryResponse.js */ "./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js"); /* harmony import */ var _CloudInstanceDiscoveryErrorResponse_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./CloudInstanceDiscoveryErrorResponse.js */ "./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js"); /* harmony import */ var _RegionDiscovery_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./RegionDiscovery.js */ "./node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js"); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the * endpoint. It will store the pertinent config data in this object for use during token calls. */ var Authority = /** @class */ (function () { function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) { this.canonicalAuthority = authority; this._canonicalAuthority.validateAsUri(); this.networkInterface = networkInterface; this.cacheManager = cacheManager; this.authorityOptions = authorityOptions; this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined }; this.logger = logger; this.performanceClient = performanceClient; this.correlationId = correlationId; this.regionDiscovery = new _RegionDiscovery_js__WEBPACK_IMPORTED_MODULE_13__["RegionDiscovery"](networkInterface, this.performanceClient, this.correlationId); } /** * Get {@link AuthorityType} * @param authorityUri {@link IUri} * @private */ Authority.prototype.getAuthorityType = function (authorityUri) { // CIAM auth url pattern is being standardized as: .ciamlogin.com if (authorityUri.HostNameAndPort.endsWith(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].CIAM_AUTH_URL)) { return _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Ciam; } var pathSegments = authorityUri.PathSegments; if (pathSegments.length) { switch (pathSegments[0].toLowerCase()) { case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].ADFS: return _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Adfs; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].DSTS: return _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Dsts; } } return _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Default; }; Object.defineProperty(Authority.prototype, "authorityType", { // See above for AuthorityType get: function () { return this.getAuthorityType(this.canonicalAuthorityUrlComponents); }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "protocolMode", { /** * ProtocolMode enum representing the way endpoints are constructed. */ get: function () { return this.authorityOptions.protocolMode; }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "options", { /** * Returns authorityOptions which can be used to reinstantiate a new authority instance */ get: function () { return this.authorityOptions; }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "canonicalAuthority", { /** * A URL that is the authority set by the developer */ get: function () { return this._canonicalAuthority.urlString; }, /** * Sets canonical authority. */ set: function (url) { this._canonicalAuthority = new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"](url); this._canonicalAuthority.validateAsUri(); this._canonicalAuthorityUrlComponents = null; }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "canonicalAuthorityUrlComponents", { /** * Get authority components. */ get: function () { if (!this._canonicalAuthorityUrlComponents) { this._canonicalAuthorityUrlComponents = this._canonicalAuthority.getUrlComponents(); } return this._canonicalAuthorityUrlComponents; }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "hostnameAndPort", { /** * Get hostname and port i.e. login.microsoftonline.com */ get: function () { return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase(); }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "tenant", { /** * Get tenant for authority. */ get: function () { return this.canonicalAuthorityUrlComponents.PathSegments[0]; }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "authorizationEndpoint", { /** * OAuth /authorize endpoint for requests */ get: function () { if (this.discoveryComplete()) { return this.replacePath(this.metadata.authorization_endpoint); } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "tokenEndpoint", { /** * OAuth /token endpoint for requests */ get: function () { if (this.discoveryComplete()) { return this.replacePath(this.metadata.token_endpoint); } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "deviceCodeEndpoint", { get: function () { if (this.discoveryComplete()) { return this.replacePath(this.metadata.token_endpoint.replace("/token", "/devicecode")); } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "endSessionEndpoint", { /** * OAuth logout endpoint for requests */ get: function () { if (this.discoveryComplete()) { // ROPC policies may not have end_session_endpoint set if (!this.metadata.end_session_endpoint) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createLogoutNotSupportedError(); } return this.replacePath(this.metadata.end_session_endpoint); } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "selfSignedJwtAudience", { /** * OAuth issuer for requests */ get: function () { if (this.discoveryComplete()) { return this.replacePath(this.metadata.issuer); } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }, enumerable: false, configurable: true }); Object.defineProperty(Authority.prototype, "jwksUri", { /** * Jwks_uri for token signing keys */ get: function () { if (this.discoveryComplete()) { return this.replacePath(this.metadata.jwks_uri); } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }, enumerable: false, configurable: true }); /** * Returns a flag indicating that tenant name can be replaced in authority {@link IUri} * @param authorityUri {@link IUri} * @private */ Authority.prototype.canReplaceTenant = function (authorityUri) { return authorityUri.PathSegments.length === 1 && !Authority.reservedTenantDomains.has(authorityUri.PathSegments[0]) && this.getAuthorityType(authorityUri) === _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Default && this.protocolMode === _ProtocolMode_js__WEBPACK_IMPORTED_MODULE_8__["ProtocolMode"].AAD; }; /** * Replaces tenant in url path with current tenant. Defaults to common. * @param urlString */ Authority.prototype.replaceTenant = function (urlString) { return urlString.replace(/{tenant}|{tenantid}/g, this.tenant); }; /** * Replaces path such as tenant or policy with the current tenant or policy. * @param urlString */ Authority.prototype.replacePath = function (urlString) { var _this = this; var endpoint = urlString; var cachedAuthorityUrl = new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"](this.metadata.canonical_authority); var cachedAuthorityUrlComponents = cachedAuthorityUrl.getUrlComponents(); var cachedAuthorityParts = cachedAuthorityUrlComponents.PathSegments; var currentAuthorityParts = this.canonicalAuthorityUrlComponents.PathSegments; currentAuthorityParts.forEach(function (currentPart, index) { var cachedPart = cachedAuthorityParts[index]; if (index === 0 && _this.canReplaceTenant(cachedAuthorityUrlComponents)) { var tenantId = (new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"](_this.metadata.authorization_endpoint)).getUrlComponents().PathSegments[0]; /** * Check if AAD canonical authority contains tenant domain name, for example "testdomain.onmicrosoft.com", * by comparing its first path segment to the corresponding authorization endpoint path segment, which is * always resolved with tenant id by OIDC. */ if (cachedPart !== tenantId) { _this.logger.verbose("Replacing tenant domain name " + cachedPart + " with id " + tenantId); cachedPart = tenantId; } } if (currentPart !== cachedPart) { endpoint = endpoint.replace("/" + cachedPart + "/", "/" + currentPart + "/"); } }); return this.replaceTenant(endpoint); }; Object.defineProperty(Authority.prototype, "defaultOpenIdConfigurationEndpoint", { /** * The default open id configuration endpoint for any canonical authority. */ get: function () { if (this.authorityType === _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Adfs || this.authorityType === _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Dsts || this.protocolMode === _ProtocolMode_js__WEBPACK_IMPORTED_MODULE_8__["ProtocolMode"].OIDC) { return this.canonicalAuthority + ".well-known/openid-configuration"; } return this.canonicalAuthority + "v2.0/.well-known/openid-configuration"; }, enumerable: false, configurable: true }); /** * Boolean that returns whethr or not tenant discovery has been completed. */ Authority.prototype.discoveryComplete = function () { return !!this.metadata; }; /** * Perform endpoint discovery to discover aliases, preferred_cache, preferred_network * and the /authorize, /token and logout endpoints. */ Authority.prototype.resolveEndpointsAsync = function () { var _a, _b, _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var metadataEntity, cloudDiscoverySource, endpointSource, cacheKey; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityResolveEndpointsAsync, this.correlationId); metadataEntity = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort); if (!metadataEntity) { metadataEntity = new _cache_entities_AuthorityMetadataEntity_js__WEBPACK_IMPORTED_MODULE_9__["AuthorityMetadataEntity"](); metadataEntity.updateCanonicalAuthority(this.canonicalAuthority); } (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateCloudDiscoveryMetadata, this.correlationId); return [4 /*yield*/, this.updateCloudDiscoveryMetadata(metadataEntity)]; case 1: cloudDiscoverySource = _d.sent(); this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, metadataEntity.preferred_network); (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateEndpointMetadata, this.correlationId); return [4 /*yield*/, this.updateEndpointMetadata(metadataEntity)]; case 2: endpointSource = _d.sent(); if (cloudDiscoverySource !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].CACHE && endpointSource !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].CACHE) { // Reset the expiration time unless both values came from a successful cache lookup metadataEntity.resetExpiresAt(); metadataEntity.updateCanonicalAuthority(this.canonicalAuthority); } cacheKey = this.cacheManager.generateAuthorityMetadataCacheKey(metadataEntity.preferred_cache); this.cacheManager.setAuthorityMetadata(cacheKey, metadataEntity); this.metadata = metadataEntity; return [2 /*return*/]; } }); }); }; /** * Update AuthorityMetadataEntity with new endpoints and return where the information came from * @param metadataEntity */ Authority.prototype.updateEndpointMetadata = function (metadataEntity) { var _a, _b, _c, _d, _e, _f; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var metadata, harcodedMetadata; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateEndpointMetadata, this.correlationId); metadata = this.getEndpointMetadataFromConfig(); if (metadata) { metadataEntity.updateEndpointMetadata(metadata, false); return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].CONFIG]; } if (this.isAuthoritySameType(metadataEntity) && metadataEntity.endpointsFromNetwork && !metadataEntity.isExpired()) { // No need to update return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].CACHE]; } (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityGetEndpointMetadataFromNetwork, this.correlationId); return [4 /*yield*/, this.getEndpointMetadataFromNetwork()]; case 1: metadata = _g.sent(); if (!metadata) return [3 /*break*/, 4]; if (!((_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.azureRegion)) return [3 /*break*/, 3]; (_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateMetadataWithRegionalInformation, this.correlationId); return [4 /*yield*/, this.updateMetadataWithRegionalInformation(metadata)]; case 2: metadata = _g.sent(); _g.label = 3; case 3: metadataEntity.updateEndpointMetadata(metadata, true); return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].NETWORK]; case 4: harcodedMetadata = this.getEndpointMetadataFromHardcodedValues(); if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7]; if (!((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion)) return [3 /*break*/, 6]; (_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateMetadataWithRegionalInformation, this.correlationId); return [4 /*yield*/, this.updateMetadataWithRegionalInformation(harcodedMetadata)]; case 5: harcodedMetadata = _g.sent(); _g.label = 6; case 6: metadataEntity.updateEndpointMetadata(harcodedMetadata, false); return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].HARDCODED_VALUES]; case 7: throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint); } }); }); }; /** * Compares the number of url components after the domain to determine if the cached * authority metadata can be used for the requested authority. Protects against same domain different * authority such as login.microsoftonline.com/tenant and login.microsoftonline.com/tfp/tenant/policy * @param metadataEntity */ Authority.prototype.isAuthoritySameType = function (metadataEntity) { var cachedAuthorityUrl = new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"](metadataEntity.canonical_authority); var cachedParts = cachedAuthorityUrl.getUrlComponents().PathSegments; return cachedParts.length === this.canonicalAuthorityUrlComponents.PathSegments.length; }; /** * Parse authorityMetadata config option */ Authority.prototype.getEndpointMetadataFromConfig = function () { if (this.authorityOptions.authorityMetadata) { try { return JSON.parse(this.authorityOptions.authorityMetadata); } catch (e) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__["ClientConfigurationError"].createInvalidAuthorityMetadataError(); } } return null; }; /** * Gets OAuth endpoints from the given OpenID configuration endpoint. * * @param hasHardcodedMetadata boolean */ Authority.prototype.getEndpointMetadataFromNetwork = function () { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var options, response; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityGetEndpointMetadataFromNetwork, this.correlationId); options = {}; _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); return [4 /*yield*/, this.networkInterface. sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint, options)]; case 2: response = _b.sent(); return [2 /*return*/, Object(_OpenIdConfigResponse_js__WEBPACK_IMPORTED_MODULE_2__["isOpenIdConfigResponse"])(response.body) ? response.body : null]; case 3: _b.sent(); return [2 /*return*/, null]; case 4: return [2 /*return*/]; } }); }); }; /** * Get OAuth endpoints for common authorities. */ Authority.prototype.getEndpointMetadataFromHardcodedValues = function () { if (this.canonicalAuthority in _AuthorityMetadata_js__WEBPACK_IMPORTED_MODULE_6__["EndpointMetadata"]) { return _AuthorityMetadata_js__WEBPACK_IMPORTED_MODULE_6__["EndpointMetadata"][this.canonicalAuthority]; } return null; }; /** * Update the retrieved metadata with regional information. * User selected Azure region will be used if configured. */ Authority.prototype.updateMetadataWithRegionalInformation = function (metadata) { var _a, _b, _c, _d; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var userConfiguredAzureRegion, autodetectedRegionName; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateMetadataWithRegionalInformation, this.correlationId); userConfiguredAzureRegion = (_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion; if (!userConfiguredAzureRegion) return [3 /*break*/, 2]; if (userConfiguredAzureRegion !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].AZURE_REGION_AUTO_DISCOVER_FLAG) { this.regionDiscoveryMetadata.region_outcome = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["RegionDiscoveryOutcomes"].CONFIGURED_NO_AUTO_DETECTION; this.regionDiscoveryMetadata.region_used = userConfiguredAzureRegion; return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, userConfiguredAzureRegion)]; } (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RegionDiscoveryDetectRegion, this.correlationId); return [4 /*yield*/, this.regionDiscovery.detectRegion((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.environmentRegion, this.regionDiscoveryMetadata)]; case 1: autodetectedRegionName = _e.sent(); if (autodetectedRegionName) { this.regionDiscoveryMetadata.region_outcome = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["RegionDiscoveryOutcomes"].AUTO_DETECTION_REQUESTED_SUCCESSFUL; this.regionDiscoveryMetadata.region_used = autodetectedRegionName; return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, autodetectedRegionName)]; } this.regionDiscoveryMetadata.region_outcome = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["RegionDiscoveryOutcomes"].AUTO_DETECTION_REQUESTED_FAILED; _e.label = 2; case 2: return [2 /*return*/, metadata]; } }); }); }; /** * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache * and returns where the information was retrieved from * @param metadataEntity * @returns AuthorityMetadataSource */ Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var metadata, metadataEntityExpired, harcodedMetadata; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityUpdateCloudDiscoveryMetadata, this.correlationId); // attempt to read metadata from the config this.logger.verbose("Attempting to get cloud discovery metadata in the config"); this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].NOT_APPLICABLE)); this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].NOT_APPLICABLE)); this.logger.verbosePii("Canonical Authority: " + (metadataEntity.canonical_authority || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].NOT_APPLICABLE)); metadata = this.getCloudDiscoveryMetadataFromConfig(); if (metadata) { this.logger.verbose("Found cloud discovery metadata in the config."); metadataEntity.updateCloudDiscoveryMetadata(metadata, false); return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].CONFIG]; } // If the cached metadata came from config but that config was not passed to this instance, we must go to the network this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."); metadataEntityExpired = metadataEntity.isExpired(); if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntityExpired) { this.logger.verbose("Found metadata in the cache."); // No need to update return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].CACHE]; } else if (metadataEntityExpired) { this.logger.verbose("The metadata entity is expired."); } this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."); (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId); return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()]; case 1: metadata = _c.sent(); if (metadata) { this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"); metadataEntity.updateCloudDiscoveryMetadata(metadata, true); return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].NETWORK]; } this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."); harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues(); if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) { this.logger.verbose("Found cloud discovery metadata from hardcoded values."); metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false); return [2 /*return*/, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AuthorityMetadataSource"].HARDCODED_VALUES]; } // Metadata could not be obtained from the config, cache, network or hardcoded values this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."); throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__["ClientConfigurationError"].createUntrustedAuthorityError(); } }); }); }; /** * Parse cloudDiscoveryMetadata config or check knownAuthorities */ Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () { // CIAM does not support cloud discovery metadata if (this.authorityType === _AuthorityType_js__WEBPACK_IMPORTED_MODULE_1__["AuthorityType"].Ciam) { this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."); return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort); } // Check if network response was provided in config if (this.authorityOptions.cloudDiscoveryMetadata) { this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config."); try { this.logger.verbose("Attempting to parse the cloud discovery metadata."); var parsedResponse = JSON.parse(this.authorityOptions.cloudDiscoveryMetadata); var metadata = Authority.getCloudDiscoveryMetadataFromNetworkResponse(parsedResponse.metadata, this.hostnameAndPort); this.logger.verbose("Parsed the cloud discovery metadata."); if (metadata) { this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."); return metadata; } else { this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata."); } } catch (e) { this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."); throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__["ClientConfigurationError"].createInvalidCloudDiscoveryMetadataError(); } } // If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities if (this.isInKnownAuthorities()) { this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."); return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort); } return null; }; /** * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config * * @param hasHardcodedMetadata boolean */ Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId); instanceDiscoveryEndpoint = "" + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize"; options = {}; match = null; _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)]; case 2: response = _b.sent(); typedResponseBody = void 0; metadata = void 0; if (Object(_CloudInstanceDiscoveryResponse_js__WEBPACK_IMPORTED_MODULE_11__["isCloudInstanceDiscoveryResponse"])(response.body)) { typedResponseBody = response.body; metadata = typedResponseBody.metadata; this.logger.verbosePii("tenant_discovery_endpoint is: " + typedResponseBody.tenant_discovery_endpoint); } else if (Object(_CloudInstanceDiscoveryErrorResponse_js__WEBPACK_IMPORTED_MODULE_12__["isCloudInstanceDiscoveryErrorResponse"])(response.body)) { this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: " + response.status); typedResponseBody = response.body; if (typedResponseBody.error === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].INVALID_INSTANCE) { this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."); return [2 /*return*/, null]; } this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is " + typedResponseBody.error); this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is " + typedResponseBody.error_description); this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"); metadata = []; } else { this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"); return [2 /*return*/, null]; } this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."); match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort); return [3 /*break*/, 4]; case 3: error_1 = _b.sent(); if (error_1 instanceof _error_AuthError_js__WEBPACK_IMPORTED_MODULE_14__["AuthError"]) { this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: " + error_1.errorCode + "\nError Description: " + error_1.errorMessage); } else { typedError = error_1; this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: " + typedError.name + "\nError Description: " + typedError.message); } return [2 /*return*/, null]; case 4: // Custom Domain scenario, host is trusted because Instance Discovery call succeeded if (!match) { this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."); this.logger.verbose("Creating custom Authority for custom domain scenario."); match = Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort); } return [2 /*return*/, match]; } }); }); }; /** * Get cloud discovery metadata for common authorities */ Authority.prototype.getCloudDiscoveryMetadataFromHarcodedValues = function () { if (this.canonicalAuthority in _AuthorityMetadata_js__WEBPACK_IMPORTED_MODULE_6__["InstanceDiscoveryMetadata"]) { return _AuthorityMetadata_js__WEBPACK_IMPORTED_MODULE_6__["InstanceDiscoveryMetadata"][this.canonicalAuthority]; } return null; }; /** * Helper function to determine if this host is included in the knownAuthorities config option */ Authority.prototype.isInKnownAuthorities = function () { var _this = this; var matches = this.authorityOptions.knownAuthorities.filter(function (authority) { return _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"].getDomainFromUrl(authority).toLowerCase() === _this.hostnameAndPort; }); return matches.length > 0; }; /** * helper function to populate the authority based on azureCloudOptions * @param authorityString * @param azureCloudOptions */ Authority.generateAuthority = function (authorityString, azureCloudOptions) { var authorityAzureCloudInstance; if (azureCloudOptions && azureCloudOptions.azureCloudInstance !== _AuthorityOptions_js__WEBPACK_IMPORTED_MODULE_10__["AzureCloudInstance"].None) { var tenant = azureCloudOptions.tenant ? azureCloudOptions.tenant : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].DEFAULT_COMMON_TENANT; authorityAzureCloudInstance = azureCloudOptions.azureCloudInstance + "/" + tenant + "/"; } return authorityAzureCloudInstance ? authorityAzureCloudInstance : authorityString; }; /** * Creates cloud discovery metadata object from a given host * @param host */ Authority.createCloudDiscoveryMetadataFromHost = function (host) { return { preferred_network: host, preferred_cache: host, aliases: [host] }; }; /** * Searches instance discovery network response for the entry that contains the host in the aliases list * @param response * @param authority */ Authority.getCloudDiscoveryMetadataFromNetworkResponse = function (response, authority) { for (var i = 0; i < response.length; i++) { var metadata = response[i]; if (metadata.aliases.indexOf(authority) > -1) { return metadata; } } return null; }; /** * helper function to generate environment from authority object */ Authority.prototype.getPreferredCache = function () { if (this.discoveryComplete()) { return this.metadata.preferred_cache; } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Discovery incomplete."); } }; /** * Returns whether or not the provided host is an alias of this authority instance * @param host */ Authority.prototype.isAlias = function (host) { return this.metadata.aliases.indexOf(host) > -1; }; /** * Checks whether the provided host is that of a public cloud authority * * @param authority string * @returns bool */ Authority.isPublicCloudAuthority = function (host) { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].KNOWN_PUBLIC_CLOUDS.indexOf(host) >= 0; }; /** * Rebuild the authority string with the region * * @param host string * @param region string */ Authority.buildRegionalAuthorityString = function (host, region, queryString) { // Create and validate a Url string object with the initial authority string var authorityUrlInstance = new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"](host); authorityUrlInstance.validateAsUri(); var authorityUrlParts = authorityUrlInstance.getUrlComponents(); var hostNameAndPort = region + "." + authorityUrlParts.HostNameAndPort; if (this.isPublicCloudAuthority(authorityUrlParts.HostNameAndPort)) { hostNameAndPort = region + "." + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX; } // Include the query string portion of the url var url = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"].constructAuthorityUriFromObject(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, authorityUrlInstance.getUrlComponents()), { HostNameAndPort: hostNameAndPort })).urlString; // Add the query string if a query string was provided if (queryString) return url + "?" + queryString; return url; }; /** * Replace the endpoints in the metadata object with their regional equivalents. * * @param metadata OpenIdConfigResponse * @param azureRegion string */ Authority.replaceWithRegionalInformation = function (metadata, azureRegion) { metadata.authorization_endpoint = Authority.buildRegionalAuthorityString(metadata.authorization_endpoint, azureRegion); // TODO: Enquire on whether we should leave the query string or remove it before releasing the feature metadata.token_endpoint = Authority.buildRegionalAuthorityString(metadata.token_endpoint, azureRegion, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].REGIONAL_AUTH_NON_MSI_QUERY_STRING); if (metadata.end_session_endpoint) { metadata.end_session_endpoint = Authority.buildRegionalAuthorityString(metadata.end_session_endpoint, azureRegion); } return metadata; }; /** * Transform CIAM_AUTHORIY as per the below rules: * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it * * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com` * `ciamlogin.com` can also change in the future and we should accommodate the same * * @param authority */ Authority.transformCIAMAuthority = function (authority) { var ciamAuthority = authority.endsWith(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].FORWARD_SLASH) ? authority : "" + authority + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].FORWARD_SLASH; var authorityUrl = new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_3__["UrlString"](authority); var authorityUrlComponents = authorityUrl.getUrlComponents(); // check if transformation is needed if (authorityUrlComponents.PathSegments.length === 0 && (authorityUrlComponents.HostNameAndPort.endsWith(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].CIAM_AUTH_URL))) { var tenantIdOrDomain = authorityUrlComponents.HostNameAndPort.split(".")[0]; ciamAuthority = "" + ciamAuthority + tenantIdOrDomain + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["Constants"].AAD_TENANT_DOMAIN_SUFFIX; } return ciamAuthority; }; // Reserved tenant domain names that will not be replaced with tenant id Authority.reservedTenantDomains = (new Set([ "{tenant}", "{tenantid}", _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AADAuthorityConstants"].COMMON, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AADAuthorityConstants"].CONSUMERS, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_5__["AADAuthorityConstants"].ORGANIZATIONS ])); return Authority; }()); //# sourceMappingURL=Authority.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js": /*!****************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js ***! \****************************************************************************/ /*! exports provided: AuthorityFactory */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthorityFactory", function() { return AuthorityFactory; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _Authority_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Authority.js */ "./node_modules/@azure/msal-common/dist/authority/Authority.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var AuthorityFactory = /** @class */ (function () { function AuthorityFactory() { } /** * Create an authority object of the correct type based on the url * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs) * * Also performs endpoint discovery. * * @param authorityUri * @param networkClient * @param protocolMode */ AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var authorityUriFinal, acquireTokenAuthority, e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_5__["PerformanceEvents"].AuthorityFactoryCreateDiscoveredInstance, correlationId); authorityUriFinal = _Authority_js__WEBPACK_IMPORTED_MODULE_1__["Authority"].transformCIAMAuthority(authorityUri); acquireTokenAuthority = AuthorityFactory.createInstance(authorityUriFinal, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_5__["PerformanceEvents"].AuthorityResolveEndpointsAsync, correlationId); return [4 /*yield*/, acquireTokenAuthority.resolveEndpointsAsync()]; case 2: _a.sent(); return [2 /*return*/, acquireTokenAuthority]; case 3: e_1 = _a.sent(); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_4__["ClientAuthError"].createEndpointDiscoveryIncompleteError(e_1); case 4: return [2 /*return*/]; } }); }); }; /** * Create an authority object of the correct type based on the url * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs) * * Does not perform endpoint discovery. * * @param authorityUrl * @param networkInterface * @param protocolMode */ AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) { // Throw error if authority url is empty if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(authorityUrl)) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_2__["ClientConfigurationError"].createUrlEmptyError(); } return new _Authority_js__WEBPACK_IMPORTED_MODULE_1__["Authority"](authorityUrl, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId); }; return AuthorityFactory; }()); //# sourceMappingURL=AuthorityFactory.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js": /*!*****************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js ***! \*****************************************************************************/ /*! exports provided: EndpointMetadata, InstanceDiscoveryMetadata, rawMetdataJSON */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointMetadata", function() { return EndpointMetadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InstanceDiscoveryMetadata", function() { return InstanceDiscoveryMetadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawMetdataJSON", function() { return rawMetdataJSON; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/common/": { "token_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/common/": { "token_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/common/": { "token_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" }, "https://login.microsoftonline.com/consumers/": { "token_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/consumers/": { "token_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/consumers/": { "token_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" }, "https://login.microsoftonline.com/organizations/": { "token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/organizations/": { "token_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/organizations/": { "token_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" } }, "instanceDiscoveryMetadata": { "https://login.microsoftonline.com/common/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/common/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/common/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.com/consumers/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/consumers/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/consumers/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.com/organizations/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/organizations/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/organizations/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] } } }; var EndpointMetadata = rawMetdataJSON.endpointMetadata; var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata; //# sourceMappingURL=AuthorityMetadata.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js": /*!****************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js ***! \****************************************************************************/ /*! exports provided: AzureCloudInstance */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AzureCloudInstance", function() { return AzureCloudInstance; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var AzureCloudInstance; (function (AzureCloudInstance) { // AzureCloudInstance is not specified. AzureCloudInstance[AzureCloudInstance["None"] = 0] = "None"; // Microsoft Azure public cloud AzureCloudInstance["AzurePublic"] = "https://login.microsoftonline.com"; // Microsoft PPE AzureCloudInstance["AzurePpe"] = "https://login.windows-ppe.net"; // Microsoft Chinese national cloud AzureCloudInstance["AzureChina"] = "https://login.chinacloudapi.cn"; // Microsoft German national cloud ("Black Forest") AzureCloudInstance["AzureGermany"] = "https://login.microsoftonline.de"; // US Government cloud AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us"; })(AzureCloudInstance || (AzureCloudInstance = {})); //# sourceMappingURL=AuthorityOptions.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/AuthorityType.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/AuthorityType.js ***! \*************************************************************************/ /*! exports provided: AuthorityType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthorityType", function() { return AuthorityType; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Authority types supported by MSAL. */ var AuthorityType; (function (AuthorityType) { AuthorityType[AuthorityType["Default"] = 0] = "Default"; AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs"; AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts"; AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam"; })(AuthorityType || (AuthorityType = {})); //# sourceMappingURL=AuthorityType.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js ***! \***********************************************************************************************/ /*! exports provided: isCloudInstanceDiscoveryErrorResponse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCloudInstanceDiscoveryErrorResponse", function() { return isCloudInstanceDiscoveryErrorResponse; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ function isCloudInstanceDiscoveryErrorResponse(response) { return (response.hasOwnProperty("error") && response.hasOwnProperty("error_description")); } //# sourceMappingURL=CloudInstanceDiscoveryErrorResponse.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js": /*!******************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js ***! \******************************************************************************************/ /*! exports provided: isCloudInstanceDiscoveryResponse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCloudInstanceDiscoveryResponse", function() { return isCloudInstanceDiscoveryResponse; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ function isCloudInstanceDiscoveryResponse(response) { return (response.hasOwnProperty("tenant_discovery_endpoint") && response.hasOwnProperty("metadata")); } //# sourceMappingURL=CloudInstanceDiscoveryResponse.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js": /*!********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js ***! \********************************************************************************/ /*! exports provided: isOpenIdConfigResponse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOpenIdConfigResponse", function() { return isOpenIdConfigResponse; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ function isOpenIdConfigResponse(response) { return (response.hasOwnProperty("authorization_endpoint") && response.hasOwnProperty("token_endpoint") && response.hasOwnProperty("issuer") && response.hasOwnProperty("jwks_uri")); } //# sourceMappingURL=OpenIdConfigResponse.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/ProtocolMode.js": /*!************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/ProtocolMode.js ***! \************************************************************************/ /*! exports provided: ProtocolMode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProtocolMode", function() { return ProtocolMode; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Protocol modes supported by MSAL. */ var ProtocolMode; (function (ProtocolMode) { ProtocolMode["AAD"] = "AAD"; ProtocolMode["OIDC"] = "OIDC"; })(ProtocolMode || (ProtocolMode = {})); //# sourceMappingURL=ProtocolMode.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js": /*!***************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js ***! \***************************************************************************/ /*! exports provided: RegionDiscovery */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegionDiscovery", function() { return RegionDiscovery; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var RegionDiscovery = /** @class */ (function () { function RegionDiscovery(networkInterface, performanceClient, correlationId) { this.networkInterface = networkInterface; this.performanceClient = performanceClient; this.correlationId = correlationId; } /** * Detect the region from the application's environment. * * @returns Promise */ RegionDiscovery.prototype.detectRegion = function (environmentRegion, regionDiscoveryMetadata) { var _a, _b, _c, _d; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var autodetectedRegionName, options, localIMDSVersionResponse, currentIMDSVersion, currentIMDSVersionResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RegionDiscoveryDetectRegion, this.correlationId); autodetectedRegionName = environmentRegion; if (!!autodetectedRegionName) return [3 /*break*/, 8]; options = RegionDiscovery.IMDS_OPTIONS; _e.label = 1; case 1: _e.trys.push([1, 6, , 7]); (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RegionDiscoveryGetRegionFromIMDS, this.correlationId); return [4 /*yield*/, this.getRegionFromIMDS(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].IMDS_VERSION, options)]; case 2: localIMDSVersionResponse = _e.sent(); if (localIMDSVersionResponse.status === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ResponseCodes"].httpSuccess) { autodetectedRegionName = localIMDSVersionResponse.body; regionDiscoveryMetadata.region_source = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["RegionDiscoverySources"].IMDS; } if (!(localIMDSVersionResponse.status === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ResponseCodes"].httpBadRequest)) return [3 /*break*/, 5]; (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RegionDiscoveryGetCurrentVersion, this.correlationId); return [4 /*yield*/, this.getCurrentVersion(options)]; case 3: currentIMDSVersion = _e.sent(); if (!currentIMDSVersion) { regionDiscoveryMetadata.region_source = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["RegionDiscoverySources"].FAILED_AUTO_DETECTION; return [2 /*return*/, null]; } (_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RegionDiscoveryGetRegionFromIMDS, this.correlationId); return [4 /*yield*/, this.getRegionFromIMDS(currentIMDSVersion, options)]; case 4: currentIMDSVersionResponse = _e.sent(); if (currentIMDSVersionResponse.status === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ResponseCodes"].httpSuccess) { autodetectedRegionName = currentIMDSVersionResponse.body; regionDiscoveryMetadata.region_source = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["RegionDiscoverySources"].IMDS; } _e.label = 5; case 5: return [3 /*break*/, 7]; case 6: _e.sent(); regionDiscoveryMetadata.region_source = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["RegionDiscoverySources"].FAILED_AUTO_DETECTION; return [2 /*return*/, null]; case 7: return [3 /*break*/, 9]; case 8: regionDiscoveryMetadata.region_source = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["RegionDiscoverySources"].ENVIRONMENT_VARIABLE; _e.label = 9; case 9: // If no region was auto detected from the environment or from the IMDS endpoint, mark the attempt as a FAILED_AUTO_DETECTION if (!autodetectedRegionName) { regionDiscoveryMetadata.region_source = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["RegionDiscoverySources"].FAILED_AUTO_DETECTION; } return [2 /*return*/, autodetectedRegionName || null]; } }); }); }; /** * Make the call to the IMDS endpoint * * @param imdsEndpointUrl * @returns Promise> */ RegionDiscovery.prototype.getRegionFromIMDS = function (version, options) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RegionDiscoveryGetRegionFromIMDS, this.correlationId); return [2 /*return*/, this.networkInterface.sendGetRequestAsync(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].IMDS_ENDPOINT + "?api-version=" + version + "&format=text", options, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].IMDS_TIMEOUT)]; }); }); }; /** * Get the most recent version of the IMDS endpoint available * * @returns Promise */ RegionDiscovery.prototype.getCurrentVersion = function (options) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var response; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_2__["PerformanceEvents"].RegionDiscoveryGetCurrentVersion, this.correlationId); _b.label = 1; case 1: _b.trys.push([1, 3, , 4]); return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].IMDS_ENDPOINT + "?format=json", options)]; case 2: response = _b.sent(); // When IMDS endpoint is called without the api version query param, bad request response comes back with latest version. if (response.status === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ResponseCodes"].httpBadRequest && response.body && response.body["newest-versions"] && response.body["newest-versions"].length > 0) { return [2 /*return*/, response.body["newest-versions"][0]]; } return [2 /*return*/, null]; case 3: _b.sent(); return [2 /*return*/, null]; case 4: return [2 /*return*/]; } }); }); }; // Options for the IMDS endpoint request RegionDiscovery.IMDS_OPTIONS = { headers: { Metadata: "true", }, }; return RegionDiscovery; }()); //# sourceMappingURL=RegionDiscovery.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/CacheManager.js": /*!********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/CacheManager.js ***! \********************************************************************/ /*! exports provided: CacheManager, DefaultStorageClass */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheManager", function() { return CacheManager; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultStorageClass", function() { return DefaultStorageClass; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../request/ScopeSet.js */ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js"); /* harmony import */ var _entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entities/AccountEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js"); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../account/AuthToken.js */ "./node_modules/@azure/msal-common/dist/account/AuthToken.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-common/dist/packageMetadata.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens. */ var CacheManager = /** @class */ (function () { function CacheManager(clientId, cryptoImpl, logger) { this.clientId = clientId; this.cryptoImpl = cryptoImpl; this.commonLogger = logger.clone(_packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["name"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_7__["version"]); } /** * Returns all accounts in cache */ CacheManager.prototype.getAllAccounts = function () { var _this = this; var allAccountKeys = this.getAccountKeys(); if (allAccountKeys.length < 1) { return []; } var accountEntities = allAccountKeys.reduce(function (accounts, key) { var entity = _this.getAccount(key); if (!entity) { return accounts; } accounts.push(entity); return accounts; }, []); if (accountEntities.length < 1) { return []; } else { var allAccounts = accountEntities.map(function (accountEntity) { return _this.getAccountInfoFromEntity(accountEntity); }); return allAccounts; } }; /** * Gets accountInfo object based on provided filters */ CacheManager.prototype.getAccountInfoFilteredBy = function (accountFilter) { var allAccounts = this.getAccountsFilteredBy(accountFilter); if (allAccounts.length > 0) { return this.getAccountInfoFromEntity(allAccounts[0]); } else { return null; } }; CacheManager.prototype.getAccountInfoFromEntity = function (accountEntity) { var accountInfo = accountEntity.getAccountInfo(); var idToken = this.getIdToken(accountInfo); if (idToken) { accountInfo.idToken = idToken.secret; accountInfo.idTokenClaims = new _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_6__["AuthToken"](idToken.secret, this.cryptoImpl).claims; } return accountInfo; }; /** * saves a cache record * @param cacheRecord */ CacheManager.prototype.saveCacheRecord = function (cacheRecord) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (!cacheRecord) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createNullOrUndefinedCacheRecord(); } if (!!cacheRecord.account) { this.setAccount(cacheRecord.account); } if (!!cacheRecord.idToken) { this.setIdTokenCredential(cacheRecord.idToken); } if (!!!cacheRecord.accessToken) return [3 /*break*/, 2]; return [4 /*yield*/, this.saveAccessToken(cacheRecord.accessToken)]; case 1: _a.sent(); _a.label = 2; case 2: if (!!cacheRecord.refreshToken) { this.setRefreshTokenCredential(cacheRecord.refreshToken); } if (!!cacheRecord.appMetadata) { this.setAppMetadata(cacheRecord.appMetadata); } return [2 /*return*/]; } }); }); }; /** * saves access token credential * @param credential */ CacheManager.prototype.saveAccessToken = function (credential) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var accessTokenFilter, tokenKeys, currentScopes, removedAccessTokens; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: accessTokenFilter = { clientId: credential.clientId, credentialType: credential.credentialType, environment: credential.environment, homeAccountId: credential.homeAccountId, realm: credential.realm, tokenType: credential.tokenType, requestedClaimsHash: credential.requestedClaimsHash }; tokenKeys = this.getTokenKeys(); currentScopes = _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__["ScopeSet"].fromString(credential.target); removedAccessTokens = []; tokenKeys.accessToken.forEach(function (key) { if (!_this.accessTokenKeyMatchesFilter(key, accessTokenFilter, false)) { return; } var tokenEntity = _this.getAccessTokenCredential(key); if (tokenEntity && _this.credentialMatchesFilter(tokenEntity, accessTokenFilter)) { var tokenScopeSet = _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__["ScopeSet"].fromString(tokenEntity.target); if (tokenScopeSet.intersectingScopeSets(currentScopes)) { removedAccessTokens.push(_this.removeAccessToken(key)); } } }); return [4 /*yield*/, Promise.all(removedAccessTokens)]; case 1: _a.sent(); this.setAccessTokenCredential(credential); return [2 /*return*/]; } }); }); }; /** * retrieve accounts matching all provided filters; if no filter is set, get all accounts * not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared * @param homeAccountId * @param environment * @param realm */ CacheManager.prototype.getAccountsFilteredBy = function (accountFilter) { var _this = this; var allAccountKeys = this.getAccountKeys(); var matchingAccounts = []; allAccountKeys.forEach(function (cacheKey) { if (!_this.isAccountKey(cacheKey, accountFilter.homeAccountId, accountFilter.realm)) { // Don't parse value if the key doesn't match the account filters return; } var entity = _this.getAccount(cacheKey); if (!entity) { return; } if (!!accountFilter.homeAccountId && !_this.matchHomeAccountId(entity, accountFilter.homeAccountId)) { return; } if (!!accountFilter.localAccountId && !_this.matchLocalAccountId(entity, accountFilter.localAccountId)) { return; } if (!!accountFilter.username && !_this.matchUsername(entity, accountFilter.username)) { return; } if (!!accountFilter.environment && !_this.matchEnvironment(entity, accountFilter.environment)) { return; } if (!!accountFilter.realm && !_this.matchRealm(entity, accountFilter.realm)) { return; } if (!!accountFilter.nativeAccountId && !_this.matchNativeAccountId(entity, accountFilter.nativeAccountId)) { return; } matchingAccounts.push(entity); }); return matchingAccounts; }; /** * Returns true if the given key matches our account key schema. Also matches homeAccountId and/or tenantId if provided * @param key * @param homeAccountId * @param tenantId * @returns */ CacheManager.prototype.isAccountKey = function (key, homeAccountId, tenantId) { if (key.split(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Separators"].CACHE_KEY_SEPARATOR).length < 3) { // Account cache keys contain 3 items separated by '-' (each item may also contain '-') return false; } if (homeAccountId && !key.toLowerCase().includes(homeAccountId.toLowerCase())) { return false; } if (tenantId && !key.toLowerCase().includes(tenantId.toLowerCase())) { return false; } // Do not check environment as aliasing can cause false negatives return true; }; /** * Returns true if the given key matches our credential key schema. * @param key */ CacheManager.prototype.isCredentialKey = function (key) { if (key.split(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Separators"].CACHE_KEY_SEPARATOR).length < 6) { // Credential cache keys contain 6 items separated by '-' (each item may also contain '-') return false; } var lowerCaseKey = key.toLowerCase(); // Credential keys must indicate what credential type they represent if (lowerCaseKey.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN.toLowerCase()) === -1 && lowerCaseKey.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN.toLowerCase()) === -1 && lowerCaseKey.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) === -1 && lowerCaseKey.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN.toLowerCase()) === -1) { return false; } if (lowerCaseKey.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN.toLowerCase()) > -1) { // Refresh tokens must contain the client id or family id var clientIdValidation = "" + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Separators"].CACHE_KEY_SEPARATOR + this.clientId + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Separators"].CACHE_KEY_SEPARATOR; var familyIdValidation = "" + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Separators"].CACHE_KEY_SEPARATOR + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["THE_FAMILY_ID"] + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Separators"].CACHE_KEY_SEPARATOR; if (lowerCaseKey.indexOf(clientIdValidation.toLowerCase()) === -1 && lowerCaseKey.indexOf(familyIdValidation.toLowerCase()) === -1) { return false; } } else if (lowerCaseKey.indexOf(this.clientId.toLowerCase()) === -1) { // Tokens must contain the clientId return false; } return true; }; /** * Returns whether or not the given credential entity matches the filter * @param entity * @param filter * @returns */ CacheManager.prototype.credentialMatchesFilter = function (entity, filter) { if (!!filter.clientId && !this.matchClientId(entity, filter.clientId)) { return false; } if (!!filter.userAssertionHash && !this.matchUserAssertionHash(entity, filter.userAssertionHash)) { return false; } /* * homeAccountId can be undefined, and we want to filter out cached items that have a homeAccountId of "" * because we don't want a client_credential request to return a cached token that has a homeAccountId */ if ((typeof filter.homeAccountId === "string") && !this.matchHomeAccountId(entity, filter.homeAccountId)) { return false; } if (!!filter.environment && !this.matchEnvironment(entity, filter.environment)) { return false; } if (!!filter.realm && !this.matchRealm(entity, filter.realm)) { return false; } if (!!filter.credentialType && !this.matchCredentialType(entity, filter.credentialType)) { return false; } if (!!filter.familyId && !this.matchFamilyId(entity, filter.familyId)) { return false; } /* * idTokens do not have "target", target specific refreshTokens do exist for some types of authentication * Resource specific refresh tokens case will be added when the support is deemed necessary */ if (!!filter.target && !this.matchTarget(entity, filter.target)) { return false; } // If request OR cached entity has requested Claims Hash, check if they match if (filter.requestedClaimsHash || entity.requestedClaimsHash) { // Don't match if either is undefined or they are different if (entity.requestedClaimsHash !== filter.requestedClaimsHash) { return false; } } // Access Token with Auth Scheme specific matching if (entity.credentialType === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME) { if (!!filter.tokenType && !this.matchTokenType(entity, filter.tokenType)) { return false; } // KeyId (sshKid) in request must match cached SSH certificate keyId because SSH cert is bound to a specific key if (filter.tokenType === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].SSH) { if (filter.keyId && !this.matchKeyId(entity, filter.keyId)) { return false; } } } return true; }; /** * retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata * @param filter */ CacheManager.prototype.getAppMetadataFilteredBy = function (filter) { return this.getAppMetadataFilteredByInternal(filter.environment, filter.clientId); }; /** * Support function to help match appMetadata * @param environment * @param clientId */ CacheManager.prototype.getAppMetadataFilteredByInternal = function (environment, clientId) { var _this = this; var allCacheKeys = this.getKeys(); var matchingAppMetadata = {}; allCacheKeys.forEach(function (cacheKey) { // don't parse any non-appMetadata type cache entities if (!_this.isAppMetadata(cacheKey)) { return; } // Attempt retrieval var entity = _this.getAppMetadata(cacheKey); if (!entity) { return; } if (!!environment && !_this.matchEnvironment(entity, environment)) { return; } if (!!clientId && !_this.matchClientId(entity, clientId)) { return; } matchingAppMetadata[cacheKey] = entity; }); return matchingAppMetadata; }; /** * retrieve authorityMetadata that contains a matching alias * @param filter */ CacheManager.prototype.getAuthorityMetadataByAlias = function (host) { var _this = this; var allCacheKeys = this.getAuthorityMetadataKeys(); var matchedEntity = null; allCacheKeys.forEach(function (cacheKey) { // don't parse any non-authorityMetadata type cache entities if (!_this.isAuthorityMetadata(cacheKey) || cacheKey.indexOf(_this.clientId) === -1) { return; } // Attempt retrieval var entity = _this.getAuthorityMetadata(cacheKey); if (!entity) { return; } if (entity.aliases.indexOf(host) === -1) { return; } matchedEntity = entity; }); return matchedEntity; }; /** * Removes all accounts and related tokens from cache. */ CacheManager.prototype.removeAllAccounts = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var allAccountKeys, removedAccounts; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: allAccountKeys = this.getAccountKeys(); removedAccounts = []; allAccountKeys.forEach(function (cacheKey) { removedAccounts.push(_this.removeAccount(cacheKey)); }); return [4 /*yield*/, Promise.all(removedAccounts)]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; /** * Removes the account and related tokens for a given account key * @param account */ CacheManager.prototype.removeAccount = function (accountKey) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var account; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: account = this.getAccount(accountKey); if (!account) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createNoAccountFoundError(); } return [4 /*yield*/, this.removeAccountContext(account)]; case 1: _a.sent(); this.removeItem(accountKey); return [2 /*return*/]; } }); }); }; /** * Removes credentials associated with the provided account * @param account */ CacheManager.prototype.removeAccountContext = function (account) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var allTokenKeys, accountId, removedCredentials; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: allTokenKeys = this.getTokenKeys(); accountId = account.generateAccountId(); removedCredentials = []; allTokenKeys.idToken.forEach(function (key) { if (key.indexOf(accountId) === 0) { _this.removeIdToken(key); } }); allTokenKeys.accessToken.forEach(function (key) { if (key.indexOf(accountId) === 0) { removedCredentials.push(_this.removeAccessToken(key)); } }); allTokenKeys.refreshToken.forEach(function (key) { if (key.indexOf(accountId) === 0) { _this.removeRefreshToken(key); } }); return [4 /*yield*/, Promise.all(removedCredentials)]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; /** * returns a boolean if the given credential is removed * @param credential */ CacheManager.prototype.removeAccessToken = function (key) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var credential, accessTokenWithAuthSchemeEntity, kid; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: credential = this.getAccessTokenCredential(key); if (!credential) { return [2 /*return*/]; } if (!(credential.credentialType.toLowerCase() === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())) return [3 /*break*/, 4]; if (!(credential.tokenType === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP)) return [3 /*break*/, 4]; accessTokenWithAuthSchemeEntity = credential; kid = accessTokenWithAuthSchemeEntity.keyId; if (!kid) return [3 /*break*/, 4]; _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this.cryptoImpl.removeTokenBindingKey(kid)]; case 2: _a.sent(); return [3 /*break*/, 4]; case 3: _a.sent(); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createBindingKeyNotRemovedError(); case 4: return [2 /*return*/, this.removeItem(key)]; } }); }); }; /** * Removes all app metadata objects from cache. */ CacheManager.prototype.removeAppMetadata = function () { var _this = this; var allCacheKeys = this.getKeys(); allCacheKeys.forEach(function (cacheKey) { if (_this.isAppMetadata(cacheKey)) { _this.removeItem(cacheKey); } }); return true; }; /** * Retrieve the cached credentials into a cacherecord * @param account * @param clientId * @param scopes * @param environment * @param authScheme */ CacheManager.prototype.readCacheRecord = function (account, request, environment) { var tokenKeys = this.getTokenKeys(); var cachedAccount = this.readAccountFromCache(account); var cachedIdToken = this.getIdToken(account, tokenKeys); var cachedAccessToken = this.getAccessToken(account, request, tokenKeys); var cachedRefreshToken = this.getRefreshToken(account, false, tokenKeys); var cachedAppMetadata = this.readAppMetadataFromCache(environment); if (cachedAccount && cachedIdToken) { cachedAccount.idTokenClaims = new _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_6__["AuthToken"](cachedIdToken.secret, this.cryptoImpl).claims; } return { account: cachedAccount, idToken: cachedIdToken, accessToken: cachedAccessToken, refreshToken: cachedRefreshToken, appMetadata: cachedAppMetadata, }; }; /** * Retrieve AccountEntity from cache * @param account */ CacheManager.prototype.readAccountFromCache = function (account) { var accountKey = _entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_3__["AccountEntity"].generateAccountCacheKey(account); return this.getAccount(accountKey); }; /** * Retrieve IdTokenEntity from cache * @param clientId * @param account * @param inputRealm */ CacheManager.prototype.getIdToken = function (account, tokenKeys) { var _this = this; this.commonLogger.trace("CacheManager - getIdToken called"); var idTokenFilter = { homeAccountId: account.homeAccountId, environment: account.environment, credentialType: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ID_TOKEN, clientId: this.clientId, realm: account.tenantId, }; var idTokens = this.getIdTokensByFilter(idTokenFilter, tokenKeys); var numIdTokens = idTokens.length; if (numIdTokens < 1) { this.commonLogger.info("CacheManager:getIdToken - No token found"); return null; } else if (numIdTokens > 1) { this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"); idTokens.forEach(function (idToken) { _this.removeIdToken(idToken.generateCredentialKey()); }); return null; } this.commonLogger.info("CacheManager:getIdToken - Returning id token"); return idTokens[0]; }; /** * Gets all idTokens matching the given filter * @param filter * @returns */ CacheManager.prototype.getIdTokensByFilter = function (filter, tokenKeys) { var _this = this; var idTokenKeys = tokenKeys && tokenKeys.idToken || this.getTokenKeys().idToken; var idTokens = []; idTokenKeys.forEach(function (key) { if (!_this.idTokenKeyMatchesFilter(key, Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ clientId: _this.clientId }, filter))) { return; } var idToken = _this.getIdTokenCredential(key); if (idToken && _this.credentialMatchesFilter(idToken, filter)) { idTokens.push(idToken); } }); return idTokens; }; /** * Validate the cache key against filter before retrieving and parsing cache value * @param key * @param filter * @returns */ CacheManager.prototype.idTokenKeyMatchesFilter = function (inputKey, filter) { var key = inputKey.toLowerCase(); if (filter.clientId && key.indexOf(filter.clientId.toLowerCase()) === -1) { return false; } if (filter.homeAccountId && key.indexOf(filter.homeAccountId.toLowerCase()) === -1) { return false; } return true; }; /** * Removes idToken from the cache * @param key */ CacheManager.prototype.removeIdToken = function (key) { this.removeItem(key); }; /** * Removes refresh token from the cache * @param key */ CacheManager.prototype.removeRefreshToken = function (key) { this.removeItem(key); }; /** * Retrieve AccessTokenEntity from cache * @param clientId * @param account * @param scopes * @param authScheme */ CacheManager.prototype.getAccessToken = function (account, request, tokenKeys) { var _this = this; this.commonLogger.trace("CacheManager - getAccessToken called"); var scopes = _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__["ScopeSet"].createSearchScopes(request.scopes); var authScheme = request.authenticationScheme || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].BEARER; /* * Distinguish between Bearer and PoP/SSH token cache types * Cast to lowercase to handle "bearer" from ADFS */ var credentialType = (authScheme && authScheme.toLowerCase() !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].BEARER.toLowerCase()) ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN; var accessTokenFilter = { homeAccountId: account.homeAccountId, environment: account.environment, credentialType: credentialType, clientId: this.clientId, realm: account.tenantId, target: scopes, tokenType: authScheme, keyId: request.sshKid, requestedClaimsHash: request.requestedClaimsHash, }; var accessTokenKeys = tokenKeys && tokenKeys.accessToken || this.getTokenKeys().accessToken; var accessTokens = []; accessTokenKeys.forEach(function (key) { // Validate key if (_this.accessTokenKeyMatchesFilter(key, accessTokenFilter, true)) { var accessToken = _this.getAccessTokenCredential(key); // Validate value if (accessToken && _this.credentialMatchesFilter(accessToken, accessTokenFilter)) { accessTokens.push(accessToken); } } }); var numAccessTokens = accessTokens.length; if (numAccessTokens < 1) { this.commonLogger.info("CacheManager:getAccessToken - No token found"); return null; } else if (numAccessTokens > 1) { this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"); accessTokens.forEach(function (accessToken) { _this.removeAccessToken(accessToken.generateCredentialKey()); }); return null; } this.commonLogger.info("CacheManager:getAccessToken - Returning access token"); return accessTokens[0]; }; /** * Validate the cache key against filter before retrieving and parsing cache value * @param key * @param filter * @param keyMustContainAllScopes * @returns */ CacheManager.prototype.accessTokenKeyMatchesFilter = function (inputKey, filter, keyMustContainAllScopes) { var key = inputKey.toLowerCase(); if (filter.clientId && key.indexOf(filter.clientId.toLowerCase()) === -1) { return false; } if (filter.homeAccountId && key.indexOf(filter.homeAccountId.toLowerCase()) === -1) { return false; } if (filter.realm && key.indexOf(filter.realm.toLowerCase()) === -1) { return false; } if (filter.requestedClaimsHash && key.indexOf(filter.requestedClaimsHash.toLowerCase()) === -1) { return false; } if (filter.target) { var scopes = filter.target.asArray(); for (var i = 0; i < scopes.length; i++) { if (keyMustContainAllScopes && !key.includes(scopes[i].toLowerCase())) { // When performing a cache lookup a missing scope would be a cache miss return false; } else if (!keyMustContainAllScopes && key.includes(scopes[i].toLowerCase())) { // When performing a cache write, any token with a subset of requested scopes should be replaced return true; } } } return true; }; /** * Gets all access tokens matching the filter * @param filter * @returns */ CacheManager.prototype.getAccessTokensByFilter = function (filter) { var _this = this; var tokenKeys = this.getTokenKeys(); var accessTokens = []; tokenKeys.accessToken.forEach(function (key) { if (!_this.accessTokenKeyMatchesFilter(key, filter, true)) { return; } var accessToken = _this.getAccessTokenCredential(key); if (accessToken && _this.credentialMatchesFilter(accessToken, filter)) { accessTokens.push(accessToken); } }); return accessTokens; }; /** * Helper to retrieve the appropriate refresh token from cache * @param clientId * @param account * @param familyRT */ CacheManager.prototype.getRefreshToken = function (account, familyRT, tokenKeys) { var _this = this; this.commonLogger.trace("CacheManager - getRefreshToken called"); var id = familyRT ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["THE_FAMILY_ID"] : undefined; var refreshTokenFilter = { homeAccountId: account.homeAccountId, environment: account.environment, credentialType: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].REFRESH_TOKEN, clientId: this.clientId, familyId: id, }; var refreshTokenKeys = tokenKeys && tokenKeys.refreshToken || this.getTokenKeys().refreshToken; var refreshTokens = []; refreshTokenKeys.forEach(function (key) { // Validate key if (_this.refreshTokenKeyMatchesFilter(key, refreshTokenFilter)) { var refreshToken = _this.getRefreshTokenCredential(key); // Validate value if (refreshToken && _this.credentialMatchesFilter(refreshToken, refreshTokenFilter)) { refreshTokens.push(refreshToken); } } }); var numRefreshTokens = refreshTokens.length; if (numRefreshTokens < 1) { this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."); return null; } // address the else case after remove functions address environment aliases this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"); return refreshTokens[0]; }; /** * Validate the cache key against filter before retrieving and parsing cache value * @param key * @param filter */ CacheManager.prototype.refreshTokenKeyMatchesFilter = function (inputKey, filter) { var key = inputKey.toLowerCase(); if (filter.familyId && key.indexOf(filter.familyId.toLowerCase()) === -1) { return false; } // If familyId is used, clientId is not in the key if (!filter.familyId && filter.clientId && key.indexOf(filter.clientId.toLowerCase()) === -1) { return false; } if (filter.homeAccountId && key.indexOf(filter.homeAccountId.toLowerCase()) === -1) { return false; } return true; }; /** * Retrieve AppMetadataEntity from cache */ CacheManager.prototype.readAppMetadataFromCache = function (environment) { var appMetadataFilter = { environment: environment, clientId: this.clientId, }; var appMetadata = this.getAppMetadataFilteredBy(appMetadataFilter); var appMetadataEntries = Object.keys(appMetadata).map(function (key) { return appMetadata[key]; }); var numAppMetadata = appMetadataEntries.length; if (numAppMetadata < 1) { return null; } else if (numAppMetadata > 1) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createMultipleMatchingAppMetadataInCacheError(); } return appMetadataEntries[0]; }; /** * Return the family_id value associated with FOCI * @param environment * @param clientId */ CacheManager.prototype.isAppMetadataFOCI = function (environment) { var appMetadata = this.readAppMetadataFromCache(environment); return !!(appMetadata && appMetadata.familyId === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["THE_FAMILY_ID"]); }; /** * helper to match account ids * @param value * @param homeAccountId */ CacheManager.prototype.matchHomeAccountId = function (entity, homeAccountId) { return !!((typeof entity.homeAccountId === "string") && (homeAccountId === entity.homeAccountId)); }; /** * helper to match account ids * @param entity * @param localAccountId * @returns */ CacheManager.prototype.matchLocalAccountId = function (entity, localAccountId) { return !!((typeof entity.localAccountId === "string") && (localAccountId === entity.localAccountId)); }; /** * helper to match usernames * @param entity * @param username * @returns */ CacheManager.prototype.matchUsername = function (entity, username) { return !!((typeof entity.username === "string") && (username.toLowerCase() === entity.username.toLowerCase())); }; /** * helper to match assertion * @param value * @param oboAssertion */ CacheManager.prototype.matchUserAssertionHash = function (entity, userAssertionHash) { return !!(entity.userAssertionHash && userAssertionHash === entity.userAssertionHash); }; /** * helper to match environment * @param value * @param environment */ CacheManager.prototype.matchEnvironment = function (entity, environment) { var cloudMetadata = this.getAuthorityMetadataByAlias(environment); if (cloudMetadata && cloudMetadata.aliases.indexOf(entity.environment) > -1) { return true; } return false; }; /** * helper to match credential type * @param entity * @param credentialType */ CacheManager.prototype.matchCredentialType = function (entity, credentialType) { return (entity.credentialType && credentialType.toLowerCase() === entity.credentialType.toLowerCase()); }; /** * helper to match client ids * @param entity * @param clientId */ CacheManager.prototype.matchClientId = function (entity, clientId) { return !!(entity.clientId && clientId === entity.clientId); }; /** * helper to match family ids * @param entity * @param familyId */ CacheManager.prototype.matchFamilyId = function (entity, familyId) { return !!(entity.familyId && familyId === entity.familyId); }; /** * helper to match realm * @param entity * @param realm */ CacheManager.prototype.matchRealm = function (entity, realm) { return !!(entity.realm && realm === entity.realm); }; /** * helper to match nativeAccountId * @param entity * @param nativeAccountId * @returns boolean indicating the match result */ CacheManager.prototype.matchNativeAccountId = function (entity, nativeAccountId) { return !!(entity.nativeAccountId && nativeAccountId === entity.nativeAccountId); }; /** * Returns true if the target scopes are a subset of the current entity's scopes, false otherwise. * @param entity * @param target */ CacheManager.prototype.matchTarget = function (entity, target) { var isNotAccessTokenCredential = (entity.credentialType !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN && entity.credentialType !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME); if (isNotAccessTokenCredential || !entity.target) { return false; } var entityScopeSet = _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__["ScopeSet"].fromString(entity.target); return entityScopeSet.containsScopeSet(target); }; /** * Returns true if the credential's tokenType or Authentication Scheme matches the one in the request, false otherwise * @param entity * @param tokenType */ CacheManager.prototype.matchTokenType = function (entity, tokenType) { return !!(entity.tokenType && entity.tokenType === tokenType); }; /** * Returns true if the credential's keyId matches the one in the request, false otherwise * @param entity * @param tokenType */ CacheManager.prototype.matchKeyId = function (entity, keyId) { return !!(entity.keyId && entity.keyId === keyId); }; /** * returns if a given cache entity is of the type appmetadata * @param key */ CacheManager.prototype.isAppMetadata = function (key) { return key.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["APP_METADATA"]) !== -1; }; /** * returns if a given cache entity is of the type authoritymetadata * @param key */ CacheManager.prototype.isAuthorityMetadata = function (key) { return key.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AUTHORITY_METADATA_CONSTANTS"].CACHE_KEY) !== -1; }; /** * returns cache key used for cloud instance metadata */ CacheManager.prototype.generateAuthorityMetadataCacheKey = function (authority) { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AUTHORITY_METADATA_CONSTANTS"].CACHE_KEY + "-" + this.clientId + "-" + authority; }; /** * Helper to convert serialized data to object * @param obj * @param json */ CacheManager.toObject = function (obj, json) { for (var propertyName in json) { obj[propertyName] = json[propertyName]; } return obj; }; return CacheManager; }()); var DefaultStorageClass = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DefaultStorageClass, _super); function DefaultStorageClass() { return _super !== null && _super.apply(this, arguments) || this; } DefaultStorageClass.prototype.setAccount = function () { var notImplErr = "Storage interface - setAccount() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getAccount = function () { var notImplErr = "Storage interface - getAccount() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setIdTokenCredential = function () { var notImplErr = "Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getIdTokenCredential = function () { var notImplErr = "Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setAccessTokenCredential = function () { var notImplErr = "Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getAccessTokenCredential = function () { var notImplErr = "Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setRefreshTokenCredential = function () { var notImplErr = "Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getRefreshTokenCredential = function () { var notImplErr = "Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setAppMetadata = function () { var notImplErr = "Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getAppMetadata = function () { var notImplErr = "Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setServerTelemetry = function () { var notImplErr = "Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getServerTelemetry = function () { var notImplErr = "Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setAuthorityMetadata = function () { var notImplErr = "Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getAuthorityMetadata = function () { var notImplErr = "Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getAuthorityMetadataKeys = function () { var notImplErr = "Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.setThrottlingCache = function () { var notImplErr = "Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getThrottlingCache = function () { var notImplErr = "Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.removeItem = function () { var notImplErr = "Storage interface - removeItem() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.containsKey = function () { var notImplErr = "Storage interface - containsKey() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getKeys = function () { var notImplErr = "Storage interface - getKeys() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getAccountKeys = function () { var notImplErr = "Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.getTokenKeys = function () { var notImplErr = "Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; DefaultStorageClass.prototype.clear = function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Storage interface - clear() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }); }); }; DefaultStorageClass.prototype.updateCredentialCacheKey = function () { var notImplErr = "Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface."; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_4__["AuthError"].createUnexpectedError(notImplErr); }; return DefaultStorageClass; }(CacheManager)); //# sourceMappingURL=CacheManager.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js": /*!**********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js ***! \**********************************************************************************/ /*! exports provided: AccessTokenEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccessTokenEntity", function() { return AccessTokenEntity; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _CredentialEntity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CredentialEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../account/AuthToken.js */ "./node_modules/@azure/msal-common/dist/account/AuthToken.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * ACCESS_TOKEN Credential Type * * Key:Value Schema: * * Key Example: uid.utid-login.microsoftonline.com-accesstoken-clientId-contoso.com-user.read * * Value Schema: * { * homeAccountId: home account identifier for the auth scheme, * environment: entity that issued the token, represented as a full host * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other * clientId: client ID of the application * secret: Actual credential as a string * familyId: Family ID identifier, usually only used for refresh tokens * realm: Full tenant or organizational identifier that the account belongs to * target: Permissions that are included in the token, or for refresh tokens, the resource identifier. * cachedAt: Absolute device time when entry was created in the cache. * expiresOn: Token expiry time, calculated based on current UTC time in seconds. Represented as a string. * extendedExpiresOn: Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds. * keyId: used for POP and SSH tokenTypes * tokenType: Type of the token issued. Usually "Bearer" * } */ var AccessTokenEntity = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AccessTokenEntity, _super); function AccessTokenEntity() { return _super !== null && _super.apply(this, arguments) || this; } /** * Create AccessTokenEntity * @param homeAccountId * @param environment * @param accessToken * @param clientId * @param tenantId * @param scopes * @param expiresOn * @param extExpiresOn */ AccessTokenEntity.createAccessTokenEntity = function (homeAccountId, environment, accessToken, clientId, tenantId, scopes, expiresOn, extExpiresOn, cryptoUtils, refreshOn, tokenType, userAssertionHash, keyId, requestedClaims, requestedClaimsHash) { var _a, _b; var atEntity = new AccessTokenEntity(); atEntity.homeAccountId = homeAccountId; atEntity.credentialType = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].ACCESS_TOKEN; atEntity.secret = accessToken; var currentTime = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_3__["TimeUtils"].nowSeconds(); atEntity.cachedAt = currentTime.toString(); /* * Token expiry time. * This value should be  calculated based on the current UTC time measured locally and the value  expires_in Represented as a string in JSON. */ atEntity.expiresOn = expiresOn.toString(); atEntity.extendedExpiresOn = extExpiresOn.toString(); if (refreshOn) { atEntity.refreshOn = refreshOn.toString(); } atEntity.environment = environment; atEntity.clientId = clientId; atEntity.realm = tenantId; atEntity.target = scopes; atEntity.userAssertionHash = userAssertionHash; atEntity.tokenType = _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_4__["StringUtils"].isEmpty(tokenType) ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["AuthenticationScheme"].BEARER : tokenType; if (requestedClaims) { atEntity.requestedClaims = requestedClaims; atEntity.requestedClaimsHash = requestedClaimsHash; } /* * Create Access Token With Auth Scheme instead of regular access token * Cast to lower to handle "bearer" from ADFS */ if (((_a = atEntity.tokenType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["AuthenticationScheme"].BEARER.toLowerCase()) { atEntity.credentialType = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME; switch (atEntity.tokenType) { case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["AuthenticationScheme"].POP: // Make sure keyId is present and add it to credential var tokenClaims = _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_5__["AuthToken"].extractTokenClaims(accessToken, cryptoUtils); if (!((_b = tokenClaims === null || tokenClaims === void 0 ? void 0 : tokenClaims.cnf) === null || _b === void 0 ? void 0 : _b.kid)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__["ClientAuthError"].createTokenClaimsRequiredError(); } atEntity.keyId = tokenClaims.cnf.kid; break; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["AuthenticationScheme"].SSH: atEntity.keyId = keyId; } } return atEntity; }; /** * Validates an entity: checks for all expected params * @param entity */ AccessTokenEntity.isAccessTokenEntity = function (entity) { if (!entity) { return false; } return (entity.hasOwnProperty("homeAccountId") && entity.hasOwnProperty("environment") && entity.hasOwnProperty("credentialType") && entity.hasOwnProperty("realm") && entity.hasOwnProperty("clientId") && entity.hasOwnProperty("secret") && entity.hasOwnProperty("target") && (entity["credentialType"] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].ACCESS_TOKEN || entity["credentialType"] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME)); }; return AccessTokenEntity; }(_CredentialEntity_js__WEBPACK_IMPORTED_MODULE_1__["CredentialEntity"])); //# sourceMappingURL=AccessTokenEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js": /*!******************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js ***! \******************************************************************************/ /*! exports provided: AccountEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccountEntity", function() { return AccountEntity; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../account/ClientInfo.js */ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../authority/AuthorityType.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityType.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs). * * Key : Value Schema * * Key: -- * * Value Schema: * { * homeAccountId: home account identifier for the auth scheme, * environment: entity that issued the token, represented as a full host * realm: Full tenant or organizational identifier that the account belongs to * localAccountId: Original tenant-specific accountID, usually used for legacy cases * username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt * authorityType: Accounts authority type as a string * name: Full name for the account, including given name and family name, * clientInfo: Full base64 encoded client info received from ESTS * lastModificationTime: last time this entity was modified in the cache * lastModificationApp: * idTokenClaims: Object containing claims parsed from ID token * nativeAccountId: Account identifier on the native device * } */ var AccountEntity = /** @class */ (function () { function AccountEntity() { } /** * Generate Account Id key component as per the schema: - */ AccountEntity.prototype.generateAccountId = function () { var accountId = [this.homeAccountId, this.environment]; return accountId.join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR).toLowerCase(); }; /** * Generate Account Cache Key as per the schema: -- */ AccountEntity.prototype.generateAccountKey = function () { return AccountEntity.generateAccountCacheKey({ homeAccountId: this.homeAccountId, environment: this.environment, tenantId: this.realm, username: this.username, localAccountId: this.localAccountId }); }; /** * returns the type of the cache (in this case account) */ AccountEntity.prototype.generateType = function () { switch (this.authorityType) { case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].ADFS_ACCOUNT_TYPE: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].ADFS; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].MSAV1_ACCOUNT_TYPE: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].MSA; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].MSSTS_ACCOUNT_TYPE: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].MSSTS; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].GENERIC_ACCOUNT_TYPE: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].GENERIC; default: { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createUnexpectedAccountTypeError(); } } }; /** * Returns the AccountInfo interface for this account. */ AccountEntity.prototype.getAccountInfo = function () { return { homeAccountId: this.homeAccountId, environment: this.environment, tenantId: this.realm, username: this.username, localAccountId: this.localAccountId, name: this.name, idTokenClaims: this.idTokenClaims, nativeAccountId: this.nativeAccountId }; }; /** * Generates account key from interface * @param accountInterface */ AccountEntity.generateAccountCacheKey = function (accountInterface) { var accountKey = [ accountInterface.homeAccountId, accountInterface.environment || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, accountInterface.tenantId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, ]; return accountKey.join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR).toLowerCase(); }; /** * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD. * @param clientInfo * @param authority * @param idToken * @param policy */ AccountEntity.createAccount = function (clientInfo, homeAccountId, idToken, authority, cloudGraphHostName, msGraphHost, environment, nativeAccountId) { var _a, _b, _c, _d, _e, _f; var account = new AccountEntity(); account.authorityType = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].MSSTS_ACCOUNT_TYPE; account.clientInfo = clientInfo; account.homeAccountId = homeAccountId; account.nativeAccountId = nativeAccountId; var env = environment || (authority && authority.getPreferredCache()); if (!env) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createInvalidCacheEnvironmentError(); } account.environment = env; // non AAD scenarios can have empty realm account.realm = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.tid) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; if (idToken) { account.idTokenClaims = idToken.claims; // How do you account for MSA CID here? account.localAccountId = ((_b = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _b === void 0 ? void 0 : _b.oid) || ((_c = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _c === void 0 ? void 0 : _c.sub) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; /* * In B2C scenarios the emails claim is used instead of preferred_username and it is an array. * In most cases it will contain a single email. This field should not be relied upon if a custom * policy is configured to return more than 1 email. */ var preferredUsername = (_d = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _d === void 0 ? void 0 : _d.preferred_username; var email = ((_e = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _e === void 0 ? void 0 : _e.emails) ? idToken.claims.emails[0] : null; account.username = preferredUsername || email || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; account.name = (_f = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _f === void 0 ? void 0 : _f.name; } account.cloudGraphHostName = cloudGraphHostName; account.msGraphHost = msGraphHost; return account; }; /** * Builds non-AAD/ADFS account. * @param authority * @param idToken */ AccountEntity.createGenericAccount = function (homeAccountId, idToken, authority, cloudGraphHostName, msGraphHost, environment) { var _a, _b, _c, _d; var account = new AccountEntity(); account.authorityType = (authority && authority.authorityType === _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_4__["AuthorityType"].Adfs) ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].ADFS_ACCOUNT_TYPE : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheAccountType"].GENERIC_ACCOUNT_TYPE; account.homeAccountId = homeAccountId; // non AAD scenarios can have empty realm account.realm = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; var env = environment || authority && authority.getPreferredCache(); if (!env) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createInvalidCacheEnvironmentError(); } if (idToken) { // How do you account for MSA CID here? account.localAccountId = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.oid) || ((_b = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _b === void 0 ? void 0 : _b.sub) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; // upn claim for most ADFS scenarios account.username = ((_c = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _c === void 0 ? void 0 : _c.upn) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; account.name = ((_d = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _d === void 0 ? void 0 : _d.name) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; account.idTokenClaims = idToken === null || idToken === void 0 ? void 0 : idToken.claims; } account.environment = env; account.cloudGraphHostName = cloudGraphHostName; account.msGraphHost = msGraphHost; /* * add uniqueName to claims * account.name = idToken.claims.uniqueName; */ return account; }; /** * Generate HomeAccountId from server response * @param serverClientInfo * @param authType */ AccountEntity.generateHomeAccountId = function (serverClientInfo, authType, logger, cryptoObj, idToken) { var _a; var accountId = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.sub) ? idToken.claims.sub : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; // since ADFS does not have tid and does not set client_info if (authType === _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_4__["AuthorityType"].Adfs || authType === _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_4__["AuthorityType"].Dsts) { return accountId; } // for cases where there is clientInfo if (serverClientInfo) { try { var clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_1__["buildClientInfo"])(serverClientInfo, cryptoObj); if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(clientInfo.uid) && !_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(clientInfo.utid)) { return "" + clientInfo.uid + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CLIENT_INFO_SEPARATOR + clientInfo.utid; } } catch (e) { } } // default to "sub" claim logger.verbose("No client info in response"); return accountId; }; /** * Validates an entity: checks for all expected params * @param entity */ AccountEntity.isAccountEntity = function (entity) { if (!entity) { return false; } return (entity.hasOwnProperty("homeAccountId") && entity.hasOwnProperty("environment") && entity.hasOwnProperty("realm") && entity.hasOwnProperty("localAccountId") && entity.hasOwnProperty("username") && entity.hasOwnProperty("authorityType")); }; /** * Helper function to determine whether 2 accountInfo objects represent the same account * @param accountA * @param accountB * @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality */ AccountEntity.accountInfoIsEqual = function (accountA, accountB, compareClaims) { if (!accountA || !accountB) { return false; } var claimsMatch = true; // default to true so as to not fail comparison below if compareClaims: false if (compareClaims) { var accountAClaims = (accountA.idTokenClaims || {}); var accountBClaims = (accountB.idTokenClaims || {}); // issued at timestamp and nonce are expected to change each time a new id token is acquired claimsMatch = (accountAClaims.iat === accountBClaims.iat) && (accountAClaims.nonce === accountBClaims.nonce); } return (accountA.homeAccountId === accountB.homeAccountId) && (accountA.localAccountId === accountB.localAccountId) && (accountA.username === accountB.username) && (accountA.tenantId === accountB.tenantId) && (accountA.environment === accountB.environment) && (accountA.nativeAccountId === accountB.nativeAccountId) && claimsMatch; }; return AccountEntity; }()); //# sourceMappingURL=AccountEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js": /*!**********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js ***! \**********************************************************************************/ /*! exports provided: AppMetadataEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppMetadataEntity", function() { return AppMetadataEntity; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * APP_METADATA Cache * * Key:Value Schema: * * Key: appmetadata-- * * Value: * { * clientId: client ID of the application * environment: entity that issued the token, represented as a full host * familyId: Family ID identifier, '1' represents Microsoft Family * } */ var AppMetadataEntity = /** @class */ (function () { function AppMetadataEntity() { } /** * Generate AppMetadata Cache Key as per the schema: appmetadata-- */ AppMetadataEntity.prototype.generateAppMetadataKey = function () { return AppMetadataEntity.generateAppMetadataCacheKey(this.environment, this.clientId); }; /** * Generate AppMetadata Cache Key */ AppMetadataEntity.generateAppMetadataCacheKey = function (environment, clientId) { var appMetaDataKeyArray = [ _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["APP_METADATA"], environment, clientId, ]; return appMetaDataKeyArray.join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR).toLowerCase(); }; /** * Creates AppMetadataEntity * @param clientId * @param environment * @param familyId */ AppMetadataEntity.createAppMetadataEntity = function (clientId, environment, familyId) { var appMetadata = new AppMetadataEntity(); appMetadata.clientId = clientId; appMetadata.environment = environment; if (familyId) { appMetadata.familyId = familyId; } return appMetadata; }; /** * Validates an entity: checks for all expected params * @param entity */ AppMetadataEntity.isAppMetadataEntity = function (key, entity) { if (!entity) { return false; } return (key.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["APP_METADATA"]) === 0 && entity.hasOwnProperty("clientId") && entity.hasOwnProperty("environment")); }; return AppMetadataEntity; }()); //# sourceMappingURL=AppMetadataEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js": /*!****************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js ***! \****************************************************************************************/ /*! exports provided: AuthorityMetadataEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthorityMetadataEntity", function() { return AuthorityMetadataEntity; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var AuthorityMetadataEntity = /** @class */ (function () { function AuthorityMetadataEntity() { this.expiresAt = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_1__["TimeUtils"].nowSeconds() + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["AUTHORITY_METADATA_CONSTANTS"].REFRESH_TIME_SECONDS; } /** * Update the entity with new aliases, preferred_cache and preferred_network values * @param metadata * @param fromNetwork */ AuthorityMetadataEntity.prototype.updateCloudDiscoveryMetadata = function (metadata, fromNetwork) { this.aliases = metadata.aliases; this.preferred_cache = metadata.preferred_cache; this.preferred_network = metadata.preferred_network; this.aliasesFromNetwork = fromNetwork; }; /** * Update the entity with new endpoints * @param metadata * @param fromNetwork */ AuthorityMetadataEntity.prototype.updateEndpointMetadata = function (metadata, fromNetwork) { this.authorization_endpoint = metadata.authorization_endpoint; this.token_endpoint = metadata.token_endpoint; this.end_session_endpoint = metadata.end_session_endpoint; this.issuer = metadata.issuer; this.endpointsFromNetwork = fromNetwork; this.jwks_uri = metadata.jwks_uri; }; /** * Save the authority that was used to create this cache entry * @param authority */ AuthorityMetadataEntity.prototype.updateCanonicalAuthority = function (authority) { this.canonical_authority = authority; }; /** * Reset the exiresAt value */ AuthorityMetadataEntity.prototype.resetExpiresAt = function () { this.expiresAt = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_1__["TimeUtils"].nowSeconds() + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["AUTHORITY_METADATA_CONSTANTS"].REFRESH_TIME_SECONDS; }; /** * Returns whether or not the data needs to be refreshed */ AuthorityMetadataEntity.prototype.isExpired = function () { return this.expiresAt <= _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_1__["TimeUtils"].nowSeconds(); }; /** * Validates an entity: checks for all expected params * @param entity */ AuthorityMetadataEntity.isAuthorityMetadataEntity = function (key, entity) { if (!entity) { return false; } return (key.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["AUTHORITY_METADATA_CONSTANTS"].CACHE_KEY) === 0 && entity.hasOwnProperty("aliases") && entity.hasOwnProperty("preferred_cache") && entity.hasOwnProperty("preferred_network") && entity.hasOwnProperty("canonical_authority") && entity.hasOwnProperty("authorization_endpoint") && entity.hasOwnProperty("token_endpoint") && entity.hasOwnProperty("issuer") && entity.hasOwnProperty("aliasesFromNetwork") && entity.hasOwnProperty("endpointsFromNetwork") && entity.hasOwnProperty("expiresAt") && entity.hasOwnProperty("jwks_uri")); }; return AuthorityMetadataEntity; }()); //# sourceMappingURL=AuthorityMetadataEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js": /*!****************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js ***! \****************************************************************************/ /*! exports provided: CacheRecord */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheRecord", function() { return CacheRecord; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var CacheRecord = /** @class */ (function () { function CacheRecord(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) { this.account = accountEntity || null; this.idToken = idTokenEntity || null; this.accessToken = accessTokenEntity || null; this.refreshToken = refreshTokenEntity || null; this.appMetadata = appMetadataEntity || null; } return CacheRecord; }()); //# sourceMappingURL=CacheRecord.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js": /*!*********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js ***! \*********************************************************************************/ /*! exports provided: CredentialEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CredentialEntity", function() { return CredentialEntity; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Base type for credentials to be stored in the cache: eg: ACCESS_TOKEN, ID_TOKEN etc * * Key:Value Schema: * * Key: ------- * * Value Schema: * { * homeAccountId: home account identifier for the auth scheme, * environment: entity that issued the token, represented as a full host * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other * clientId: client ID of the application * secret: Actual credential as a string * familyId: Family ID identifier, usually only used for refresh tokens * realm: Full tenant or organizational identifier that the account belongs to * target: Permissions that are included in the token, or for refresh tokens, the resource identifier. * tokenType: Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) * requestedClaimsHash: Matches the SHA 256 hash of the claims object included in the token request * userAssertionHash: Matches the SHA 256 hash of the obo_assertion for the OBO flow * } */ var CredentialEntity = /** @class */ (function () { function CredentialEntity() { } /** * Generate Account Id key component as per the schema: - */ CredentialEntity.prototype.generateAccountId = function () { return CredentialEntity.generateAccountIdForCacheKey(this.homeAccountId, this.environment); }; /** * Generate Credential Id key component as per the schema: -- */ CredentialEntity.prototype.generateCredentialId = function () { return CredentialEntity.generateCredentialIdForCacheKey(this.credentialType, this.clientId, this.realm, this.familyId); }; /** * Generate target key component as per schema: */ CredentialEntity.prototype.generateTarget = function () { return CredentialEntity.generateTargetForCacheKey(this.target); }; /** * generates credential key */ CredentialEntity.prototype.generateCredentialKey = function () { return CredentialEntity.generateCredentialCacheKey(this.homeAccountId, this.environment, this.credentialType, this.clientId, this.realm, this.target, this.familyId, this.tokenType, this.requestedClaimsHash); }; /** * returns the type of the cache (in this case credential) */ CredentialEntity.prototype.generateType = function () { switch (this.credentialType) { case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CredentialType"].ID_TOKEN: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].ID_TOKEN; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CredentialType"].ACCESS_TOKEN: case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].ACCESS_TOKEN; case _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CredentialType"].REFRESH_TOKEN: return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheType"].REFRESH_TOKEN; default: { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createUnexpectedCredentialTypeError(); } } }; /** * generates credential key * -\----- */ CredentialEntity.generateCredentialCacheKey = function (homeAccountId, environment, credentialType, clientId, realm, target, familyId, tokenType, requestedClaimsHash) { var credentialKey = [ this.generateAccountIdForCacheKey(homeAccountId, environment), this.generateCredentialIdForCacheKey(credentialType, clientId, realm, familyId), this.generateTargetForCacheKey(target), this.generateClaimsHashForCacheKey(requestedClaimsHash), this.generateSchemeForCacheKey(tokenType) ]; return credentialKey.join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR).toLowerCase(); }; /** * generates Account Id for keys * @param homeAccountId * @param environment */ CredentialEntity.generateAccountIdForCacheKey = function (homeAccountId, environment) { var accountId = [homeAccountId, environment]; return accountId.join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR).toLowerCase(); }; /** * Generates Credential Id for keys * @param credentialType * @param realm * @param clientId * @param familyId */ CredentialEntity.generateCredentialIdForCacheKey = function (credentialType, clientId, realm, familyId) { var clientOrFamilyId = credentialType === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CredentialType"].REFRESH_TOKEN ? familyId || clientId : clientId; var credentialId = [ credentialType, clientOrFamilyId, realm || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, ]; return credentialId.join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR).toLowerCase(); }; /** * Generate target key component as per schema: */ CredentialEntity.generateTargetForCacheKey = function (scopes) { return (scopes || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING).toLowerCase(); }; /** * Generate requested claims key component as per schema: */ CredentialEntity.generateClaimsHashForCacheKey = function (requestedClaimsHash) { return (requestedClaimsHash || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING).toLowerCase(); }; /** * Generate scheme key componenet as per schema: */ CredentialEntity.generateSchemeForCacheKey = function (tokenType) { /* * PoP Tokens and SSH certs include scheme in cache key * Cast to lowercase to handle "bearer" from ADFS */ return (tokenType && tokenType.toLowerCase() !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["AuthenticationScheme"].BEARER.toLowerCase()) ? tokenType.toLowerCase() : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; }; return CredentialEntity; }()); //# sourceMappingURL=CredentialEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js": /*!******************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js ***! \******************************************************************************/ /*! exports provided: IdTokenEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IdTokenEntity", function() { return IdTokenEntity; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _CredentialEntity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CredentialEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * ID_TOKEN Cache * * Key:Value Schema: * * Key Example: uid.utid-login.microsoftonline.com-idtoken-clientId-contoso.com- * * Value Schema: * { * homeAccountId: home account identifier for the auth scheme, * environment: entity that issued the token, represented as a full host * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other * clientId: client ID of the application * secret: Actual credential as a string * realm: Full tenant or organizational identifier that the account belongs to * } */ var IdTokenEntity = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IdTokenEntity, _super); function IdTokenEntity() { return _super !== null && _super.apply(this, arguments) || this; } /** * Create IdTokenEntity * @param homeAccountId * @param authenticationResult * @param clientId * @param authority */ IdTokenEntity.createIdTokenEntity = function (homeAccountId, environment, idToken, clientId, tenantId) { var idTokenEntity = new IdTokenEntity(); idTokenEntity.credentialType = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].ID_TOKEN; idTokenEntity.homeAccountId = homeAccountId; idTokenEntity.environment = environment; idTokenEntity.clientId = clientId; idTokenEntity.secret = idToken; idTokenEntity.realm = tenantId; return idTokenEntity; }; /** * Validates an entity: checks for all expected params * @param entity */ IdTokenEntity.isIdTokenEntity = function (entity) { if (!entity) { return false; } return (entity.hasOwnProperty("homeAccountId") && entity.hasOwnProperty("environment") && entity.hasOwnProperty("credentialType") && entity.hasOwnProperty("realm") && entity.hasOwnProperty("clientId") && entity.hasOwnProperty("secret") && entity["credentialType"] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].ID_TOKEN); }; return IdTokenEntity; }(_CredentialEntity_js__WEBPACK_IMPORTED_MODULE_1__["CredentialEntity"])); //# sourceMappingURL=IdTokenEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js": /*!***********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js ***! \***********************************************************************************/ /*! exports provided: RefreshTokenEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RefreshTokenEntity", function() { return RefreshTokenEntity; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _CredentialEntity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CredentialEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * REFRESH_TOKEN Cache * * Key:Value Schema: * * Key Example: uid.utid-login.microsoftonline.com-refreshtoken-clientId-- * * Value: * { * homeAccountId: home account identifier for the auth scheme, * environment: entity that issued the token, represented as a full host * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other * clientId: client ID of the application * secret: Actual credential as a string * familyId: Family ID identifier, '1' represents Microsoft Family * realm: Full tenant or organizational identifier that the account belongs to * target: Permissions that are included in the token, or for refresh tokens, the resource identifier. * } */ var RefreshTokenEntity = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RefreshTokenEntity, _super); function RefreshTokenEntity() { return _super !== null && _super.apply(this, arguments) || this; } /** * Create RefreshTokenEntity * @param homeAccountId * @param authenticationResult * @param clientId * @param authority */ RefreshTokenEntity.createRefreshTokenEntity = function (homeAccountId, environment, refreshToken, clientId, familyId, userAssertionHash) { var rtEntity = new RefreshTokenEntity(); rtEntity.clientId = clientId; rtEntity.credentialType = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].REFRESH_TOKEN; rtEntity.environment = environment; rtEntity.homeAccountId = homeAccountId; rtEntity.secret = refreshToken; rtEntity.userAssertionHash = userAssertionHash; if (familyId) rtEntity.familyId = familyId; return rtEntity; }; /** * Validates an entity: checks for all expected params * @param entity */ RefreshTokenEntity.isRefreshTokenEntity = function (entity) { if (!entity) { return false; } return (entity.hasOwnProperty("homeAccountId") && entity.hasOwnProperty("environment") && entity.hasOwnProperty("credentialType") && entity.hasOwnProperty("clientId") && entity.hasOwnProperty("secret") && entity["credentialType"] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CredentialType"].REFRESH_TOKEN); }; return RefreshTokenEntity; }(_CredentialEntity_js__WEBPACK_IMPORTED_MODULE_1__["CredentialEntity"])); //# sourceMappingURL=RefreshTokenEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js": /*!**************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js ***! \**************************************************************************************/ /*! exports provided: ServerTelemetryEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerTelemetryEntity", function() { return ServerTelemetryEntity; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var ServerTelemetryEntity = /** @class */ (function () { function ServerTelemetryEntity() { this.failedRequests = []; this.errors = []; this.cacheHits = 0; } /** * validates if a given cache entry is "Telemetry", parses * @param key * @param entity */ ServerTelemetryEntity.isServerTelemetryEntity = function (key, entity) { var validateKey = key.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].CACHE_KEY) === 0; var validateEntity = true; if (entity) { validateEntity = entity.hasOwnProperty("failedRequests") && entity.hasOwnProperty("errors") && entity.hasOwnProperty("cacheHits"); } return validateKey && validateEntity; }; return ServerTelemetryEntity; }()); //# sourceMappingURL=ServerTelemetryEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js": /*!*********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js ***! \*********************************************************************************/ /*! exports provided: ThrottlingEntity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThrottlingEntity", function() { return ThrottlingEntity; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var ThrottlingEntity = /** @class */ (function () { function ThrottlingEntity() { } /** * validates if a given cache entry is "Throttling", parses * @param key * @param entity */ ThrottlingEntity.isThrottlingEntity = function (key, entity) { var validateKey = false; if (key) { validateKey = key.indexOf(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["ThrottlingConstants"].THROTTLING_PREFIX) === 0; } var validateEntity = true; if (entity) { validateEntity = entity.hasOwnProperty("throttleTime"); } return validateKey && validateEntity; }; return ThrottlingEntity; }()); //# sourceMappingURL=ThrottlingEntity.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js": /*!*************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js ***! \*************************************************************************************/ /*! exports provided: TokenCacheContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenCacheContext", function() { return TokenCacheContext; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This class instance helps track the memory changes facilitating * decisions to read from and write to the persistent cache */ var TokenCacheContext = /** @class */ (function () { function TokenCacheContext(tokenCache, hasChanged) { this.cache = tokenCache; this.hasChanged = hasChanged; } Object.defineProperty(TokenCacheContext.prototype, "cacheHasChanged", { /** * boolean which indicates the changes in cache */ get: function () { return this.hasChanged; }, enumerable: false, configurable: true }); Object.defineProperty(TokenCacheContext.prototype, "tokenCache", { /** * function to retrieve the token cache */ get: function () { return this.cache; }, enumerable: false, configurable: true }); return TokenCacheContext; }()); //# sourceMappingURL=TokenCacheContext.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js": /*!********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js ***! \********************************************************************************/ /*! exports provided: AuthorizationCodeClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthorizationCodeClient", function() { return AuthorizationCodeClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /* harmony import */ var _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../crypto/PopTokenGenerator.js */ "./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../account/ClientInfo.js */ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js"); /* harmony import */ var _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../account/CcsCredential.js */ "./node_modules/@azure/msal-common/dist/account/CcsCredential.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _request_RequestValidator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../request/RequestValidator.js */ "./node_modules/@azure/msal-common/dist/request/RequestValidator.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Oauth2.0 Authorization Code client */ var AuthorizationCodeClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AuthorizationCodeClient, _super); function AuthorizationCodeClient(configuration, performanceClient) { var _this = _super.call(this, configuration, performanceClient) || this; // Flag to indicate if client is for hybrid spa auth code redemption _this.includeRedirectUri = true; return _this; } /** * Creates the URL of the authorization request letting the user input credentials and consent to the * application. The URL target the /authorize endpoint of the authority configured in the * application object. * * Once the user inputs their credentials and consents, the authority will send a response to the redirect URI * sent in the request and should contain an authorization code, which can then be used to acquire tokens via * acquireToken(AuthorizationCodeRequest) * @param request */ AuthorizationCodeClient.prototype.getAuthCodeUrl = function (request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var queryString; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].GetAuthCodeUrl, request.correlationId); (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientCreateQueryString, request.correlationId); return [4 /*yield*/, this.createAuthCodeUrlQueryString(request)]; case 1: queryString = _c.sent(); return [2 /*return*/, _url_UrlString_js__WEBPACK_IMPORTED_MODULE_7__["UrlString"].appendQueryString(this.authority.authorizationEndpoint, queryString)]; } }); }); }; /** * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the * authorization_code_grant * @param request */ AuthorizationCodeClient.prototype.acquireToken = function (request, authCodePayload) { var _a, _b, _c, _d, _e, _f; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var atsMeasurement, reqTimestamp, response, requestId, httpVerAuthority, responseHandler; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) { switch (_g.label) { case 0: if (!request || !request.code) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__["ClientAuthError"].createTokenRequestCannotBeMadeError(); } (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientAcquireToken, request.correlationId); atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement("AuthCodeClientAcquireToken", request.correlationId); this.logger.info("in acquireToken call in auth-code client"); reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_9__["TimeUtils"].nowSeconds(); (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientExecuteTokenRequest, request.correlationId); return [4 /*yield*/, this.executeTokenRequest(this.authority, request)]; case 1: response = _g.sent(); requestId = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["HeaderNames"].X_MS_REQUEST_ID]; httpVerAuthority = (_e = response.headers) === null || _e === void 0 ? void 0 : _e[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["HeaderNames"].X_MS_HTTP_VERSION]; if (httpVerAuthority) { atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({ httpVerAuthority: httpVerAuthority }); } responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_4__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient); // Validate response. This function throws a server error if an error is returned by the server. responseHandler.validateTokenResponse(response.body); (_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].HandleServerTokenResponse, request.correlationId); return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId).then(function (result) { atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({ success: true }); return result; }) .catch(function (error) { _this.logger.verbose("Error in fetching token in ACC", request.correlationId); atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({ errorCode: error.errorCode, subErrorCode: error.subError, success: false }); throw error; })]; } }); }); }; /** * Handles the hash fragment response from public client code request. Returns a code response used by * the client to exchange for a token in acquireToken. * @param hashFragment */ AuthorizationCodeClient.prototype.handleFragmentResponse = function (hashFragment, cachedState) { // Handle responses. var responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_4__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, null, null); // Deserialize hash fragment response parameters. var hashUrlString = new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_7__["UrlString"](hashFragment); // Deserialize hash fragment response parameters. var serverParams = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_7__["UrlString"].getDeserializedHash(hashUrlString.getHash()); // Get code response responseHandler.validateServerAuthorizationCodeResponse(serverParams, cachedState, this.cryptoUtils); // throw when there is no auth code in the response if (!serverParams.code) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__["ClientAuthError"].createNoAuthCodeInServerResponseError(); } return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, serverParams), { // Code param is optional in ServerAuthorizationCodeResponse but required in AuthorizationCodePaylod code: serverParams.code }); }; /** * Used to log out the current user, and redirect the user to the postLogoutRedirectUri. * Default behaviour is to redirect the user to `window.location.href`. * @param authorityUri */ AuthorizationCodeClient.prototype.getLogoutUri = function (logoutRequest) { // Throw error if logoutRequest is null/undefined if (!logoutRequest) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_12__["ClientConfigurationError"].createEmptyLogoutRequestError(); } var queryString = this.createLogoutUrlQueryString(logoutRequest); // Construct logout URI return _url_UrlString_js__WEBPACK_IMPORTED_MODULE_7__["UrlString"].appendQueryString(this.authority.endSessionEndpoint, queryString); }; /** * Executes POST request to token endpoint * @param authority * @param request */ AuthorizationCodeClient.prototype.executeTokenRequest = function (authority, request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var queryParametersString, endpoint, requestBody, ccsCredential, clientInfo, headers, thumbprint; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientExecuteTokenRequest, request.correlationId); (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientCreateTokenRequestBody, request.correlationId); queryParametersString = this.createTokenQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_7__["UrlString"].appendQueryString(authority.tokenEndpoint, queryParametersString); return [4 /*yield*/, this.createTokenRequestBody(request)]; case 1: requestBody = _c.sent(); ccsCredential = undefined; if (request.clientInfo) { try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfo"])(request.clientInfo, this.cryptoUtils); ccsCredential = { credential: "" + clientInfo.uid + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Separators"].CLIENT_INFO_SEPARATOR + clientInfo.utid, type: _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_11__["CcsCredentialType"].HOME_ACCOUNT_ID }; } catch (e) { this.logger.verbose("Could not parse client info for CCS Header: " + e); } } headers = this.createTokenRequestHeaders(ccsCredential || request.ccsCredential); thumbprint = { clientId: this.config.authOptions.clientId, authority: authority.canonicalAuthority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)]; } }); }); }; /** * Generates a map for all the params to be sent to the service * @param request */ AuthorizationCodeClient.prototype.createTokenRequestBody = function (request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var parameterBuilder, clientAssertion, popTokenGenerator, reqCnfData, correlationId, ccsCred, clientInfo, clientInfo; var _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientCreateTokenRequestBody, request.correlationId); parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__["RequestParameterBuilder"](); parameterBuilder.addClientId(this.config.authOptions.clientId); /* * For hybrid spa flow, there will be a code but no verifier * In this scenario, don't include redirect uri as auth code will not be bound to redirect URI */ if (!this.includeRedirectUri) { // Just validate _request_RequestValidator_js__WEBPACK_IMPORTED_MODULE_13__["RequestValidator"].validateRedirectUri(request.redirectUri); } else { // Validate and include redirect uri parameterBuilder.addRedirectUri(request.redirectUri); } // Add scope array, parameter builder will add default scopes and dedupe parameterBuilder.addScopes(request.scopes); // add code: user set, not validated parameterBuilder.addAuthorizationCode(request.code); // Add library metadata parameterBuilder.addLibraryInfo(this.config.libraryInfo); parameterBuilder.addApplicationTelemetry(this.config.telemetry.application); parameterBuilder.addThrottling(); if (this.serverTelemetryManager) { parameterBuilder.addServerTelemetry(this.serverTelemetryManager); } // add code_verifier if passed if (request.codeVerifier) { parameterBuilder.addCodeVerifier(request.codeVerifier); } if (this.config.clientCredentials.clientSecret) { parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret); } if (this.config.clientCredentials.clientAssertion) { clientAssertion = this.config.clientCredentials.clientAssertion; parameterBuilder.addClientAssertion(clientAssertion.assertion); parameterBuilder.addClientAssertionType(clientAssertion.assertionType); } parameterBuilder.addGrantType(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["GrantType"].AUTHORIZATION_CODE_GRANT); parameterBuilder.addClientInfo(); if (!(request.authenticationScheme === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AuthenticationScheme"].POP)) return [3 /*break*/, 2]; popTokenGenerator = new _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_8__["PopTokenGenerator"](this.cryptoUtils, this.performanceClient); (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].PopTokenGenerateCnf, request.correlationId); return [4 /*yield*/, popTokenGenerator.generateCnf(request)]; case 1: reqCnfData = _d.sent(); // SPA PoP requires full Base64Url encoded req_cnf string (unhashed) parameterBuilder.addPopToken(reqCnfData.reqCnfString); return [3 /*break*/, 3]; case 2: if (request.authenticationScheme === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AuthenticationScheme"].SSH) { if (request.sshJwk) { parameterBuilder.addSshJwk(request.sshJwk); } else { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_12__["ClientConfigurationError"].createMissingSshJwkError(); } } _d.label = 3; case 3: correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid(); parameterBuilder.addCorrelationId(correlationId); if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } ccsCred = undefined; if (request.clientInfo) { try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfo"])(request.clientInfo, this.cryptoUtils); ccsCred = { credential: "" + clientInfo.uid + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Separators"].CLIENT_INFO_SEPARATOR + clientInfo.utid, type: _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_11__["CcsCredentialType"].HOME_ACCOUNT_ID }; } catch (e) { this.logger.verbose("Could not parse client info for CCS Header: " + e); } } else { ccsCred = request.ccsCredential; } // Adds these as parameters in the request instead of headers to prevent CORS preflight request if (this.config.systemOptions.preventCorsPreflight && ccsCred) { switch (ccsCred.type) { case _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_11__["CcsCredentialType"].HOME_ACCOUNT_ID: try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfoFromHomeAccountId"])(ccsCred.credential); parameterBuilder.addCcsOid(clientInfo); } catch (e) { this.logger.verbose("Could not parse home account ID for CCS Header: " + e); } break; case _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_11__["CcsCredentialType"].UPN: parameterBuilder.addCcsUpn(ccsCred.credential); break; } } if (request.tokenBodyParameters) { parameterBuilder.addExtraQueryParameters(request.tokenBodyParameters); } // Add hybrid spa parameters if not already provided if (request.enableSpaAuthorizationCode && (!request.tokenBodyParameters || !request.tokenBodyParameters[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AADServerParamKeys"].RETURN_SPA_CODE])) { parameterBuilder.addExtraQueryParameters((_c = {}, _c[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AADServerParamKeys"].RETURN_SPA_CODE] = "1", _c)); } return [2 /*return*/, parameterBuilder.createQueryString()]; } }); }); }; /** * This API validates the `AuthorizationCodeUrlRequest` and creates a URL * @param request */ AuthorizationCodeClient.prototype.createAuthCodeUrlQueryString = function (request) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var parameterBuilder, requestScopes, correlationId, accountSid, accountLoginHintClaim, clientInfo, clientInfo, clientInfo, popTokenGenerator, reqCnfData; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_14__["PerformanceEvents"].AuthClientCreateQueryString, request.correlationId); parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__["RequestParameterBuilder"](); parameterBuilder.addClientId(this.config.authOptions.clientId); requestScopes = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(request.scopes || [], request.extraScopesToConsent || []); parameterBuilder.addScopes(requestScopes); // validate the redirectUri (to be a non null value) parameterBuilder.addRedirectUri(request.redirectUri); correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid(); parameterBuilder.addCorrelationId(correlationId); // add response_mode. If not passed in it defaults to query. parameterBuilder.addResponseMode(request.responseMode); // add response_type = code parameterBuilder.addResponseTypeCode(); // add library info parameters parameterBuilder.addLibraryInfo(this.config.libraryInfo); parameterBuilder.addApplicationTelemetry(this.config.telemetry.application); // add client_info=1 parameterBuilder.addClientInfo(); if (request.codeChallenge && request.codeChallengeMethod) { parameterBuilder.addCodeChallengeParams(request.codeChallenge, request.codeChallengeMethod); } if (request.prompt) { parameterBuilder.addPrompt(request.prompt); } if (request.domainHint) { parameterBuilder.addDomainHint(request.domainHint); } // Add sid or loginHint with preference for login_hint claim (in request) -> sid -> loginHint (upn/email) -> username of AccountInfo object if (request.prompt !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["PromptValue"].SELECT_ACCOUNT) { // AAD will throw if prompt=select_account is passed with an account hint if (request.sid && request.prompt === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["PromptValue"].NONE) { // SessionID is only used in silent calls this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"); parameterBuilder.addSid(request.sid); } else if (request.account) { accountSid = this.extractAccountSid(request.account); accountLoginHintClaim = this.extractLoginHint(request.account); // If login_hint claim is present, use it over sid/username if (accountLoginHintClaim) { this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"); parameterBuilder.addLoginHint(accountLoginHintClaim); try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfoFromHomeAccountId"])(request.account.homeAccountId); parameterBuilder.addCcsOid(clientInfo); } catch (e) { this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header"); } } else if (accountSid && request.prompt === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["PromptValue"].NONE) { /* * If account and loginHint are provided, we will check account first for sid before adding loginHint * SessionId is only used in silent calls */ this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"); parameterBuilder.addSid(accountSid); try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfoFromHomeAccountId"])(request.account.homeAccountId); parameterBuilder.addCcsOid(clientInfo); } catch (e) { this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header"); } } else if (request.loginHint) { this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"); parameterBuilder.addLoginHint(request.loginHint); parameterBuilder.addCcsUpn(request.loginHint); } else if (request.account.username) { // Fallback to account username if provided this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"); parameterBuilder.addLoginHint(request.account.username); try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfoFromHomeAccountId"])(request.account.homeAccountId); parameterBuilder.addCcsOid(clientInfo); } catch (e) { this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header"); } } } else if (request.loginHint) { this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"); parameterBuilder.addLoginHint(request.loginHint); parameterBuilder.addCcsUpn(request.loginHint); } } else { this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints"); } if (request.nonce) { parameterBuilder.addNonce(request.nonce); } if (request.state) { parameterBuilder.addState(request.state); } if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmpty(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } if (request.extraQueryParameters) { parameterBuilder.addExtraQueryParameters(request.extraQueryParameters); } if (!request.nativeBroker) return [3 /*break*/, 2]; // signal ests that this is a WAM call parameterBuilder.addNativeBroker(); if (!(request.authenticationScheme === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AuthenticationScheme"].POP)) return [3 /*break*/, 2]; popTokenGenerator = new _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_8__["PopTokenGenerator"](this.cryptoUtils); return [4 /*yield*/, popTokenGenerator.generateCnf(request)]; case 1: reqCnfData = _b.sent(); parameterBuilder.addPopToken(reqCnfData.reqCnfString); _b.label = 2; case 2: return [2 /*return*/, parameterBuilder.createQueryString()]; } }); }); }; /** * This API validates the `EndSessionRequest` and creates a URL * @param request */ AuthorizationCodeClient.prototype.createLogoutUrlQueryString = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__["RequestParameterBuilder"](); if (request.postLogoutRedirectUri) { parameterBuilder.addPostLogoutRedirectUri(request.postLogoutRedirectUri); } if (request.correlationId) { parameterBuilder.addCorrelationId(request.correlationId); } if (request.idTokenHint) { parameterBuilder.addIdTokenHint(request.idTokenHint); } if (request.state) { parameterBuilder.addState(request.state); } if (request.logoutHint) { parameterBuilder.addLogoutHint(request.logoutHint); } if (request.extraQueryParameters) { parameterBuilder.addExtraQueryParameters(request.extraQueryParameters); } return parameterBuilder.createQueryString(); }; /** * Helper to get sid from account. Returns null if idTokenClaims are not present or sid is not present. * @param account */ AuthorizationCodeClient.prototype.extractAccountSid = function (account) { var _a; return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a.sid) || null; }; AuthorizationCodeClient.prototype.extractLoginHint = function (account) { var _a; return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a.login_hint) || null; }; return AuthorizationCodeClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=AuthorizationCodeClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/BaseClient.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/BaseClient.js ***! \*******************************************************************/ /*! exports provided: BaseClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseClient", function() { return BaseClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _config_ClientConfiguration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config/ClientConfiguration.js */ "./node_modules/@azure/msal-common/dist/config/ClientConfiguration.js"); /* harmony import */ var _network_NetworkManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../network/NetworkManager.js */ "./node_modules/@azure/msal-common/dist/network/NetworkManager.js"); /* harmony import */ var _logger_Logger_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../logger/Logger.js */ "./node_modules/@azure/msal-common/dist/logger/Logger.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-common/dist/packageMetadata.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../account/CcsCredential.js */ "./node_modules/@azure/msal-common/dist/account/CcsCredential.js"); /* harmony import */ var _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../account/ClientInfo.js */ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow. */ var BaseClient = /** @class */ (function () { function BaseClient(configuration, performanceClient) { // Set the configuration this.config = Object(_config_ClientConfiguration_js__WEBPACK_IMPORTED_MODULE_1__["buildClientConfiguration"])(configuration); // Initialize the logger this.logger = new _logger_Logger_js__WEBPACK_IMPORTED_MODULE_3__["Logger"](this.config.loggerOptions, _packageMetadata_js__WEBPACK_IMPORTED_MODULE_5__["name"], _packageMetadata_js__WEBPACK_IMPORTED_MODULE_5__["version"]); // Initialize crypto this.cryptoUtils = this.config.cryptoInterface; // Initialize storage interface this.cacheManager = this.config.storageInterface; // Set the network interface this.networkClient = this.config.networkInterface; // Set the NetworkManager this.networkManager = new _network_NetworkManager_js__WEBPACK_IMPORTED_MODULE_2__["NetworkManager"](this.networkClient, this.cacheManager); // Set TelemetryManager this.serverTelemetryManager = this.config.serverTelemetryManager; // set Authority this.authority = this.config.authOptions.authority; // set performance telemetry client this.performanceClient = performanceClient; } /** * Creates default headers for requests to token endpoint */ BaseClient.prototype.createTokenRequestHeaders = function (ccsCred) { var headers = {}; headers[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["HeaderNames"].CONTENT_TYPE] = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].URL_FORM_CONTENT_TYPE; if (!this.config.systemOptions.preventCorsPreflight && ccsCred) { switch (ccsCred.type) { case _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_7__["CcsCredentialType"].HOME_ACCOUNT_ID: try { var clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_8__["buildClientInfoFromHomeAccountId"])(ccsCred.credential); headers[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["HeaderNames"].CCS_HEADER] = "Oid:" + clientInfo.uid + "@" + clientInfo.utid; } catch (e) { this.logger.verbose("Could not parse home account ID for CCS Header: " + e); } break; case _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_7__["CcsCredentialType"].UPN: headers[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["HeaderNames"].CCS_HEADER] = "UPN: " + ccsCred.credential; break; } } return headers; }; /** * Http post to token endpoint * @param tokenEndpoint * @param queryString * @param headers * @param thumbprint */ BaseClient.prototype.executePostToTokenEndpoint = function (tokenEndpoint, queryString, headers, thumbprint) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var response; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.networkManager.sendPostRequest(thumbprint, tokenEndpoint, { body: queryString, headers: headers })]; case 1: response = _a.sent(); if (this.config.serverTelemetryManager && response.status < 500 && response.status !== 429) { // Telemetry data successfully logged by server, clear Telemetry cache this.config.serverTelemetryManager.clearTelemetryCache(); } return [2 /*return*/, response]; } }); }); }; /** * Updates the authority object of the client. Endpoint discovery must be completed. * @param updatedAuthority */ BaseClient.prototype.updateAuthority = function (updatedAuthority) { if (!updatedAuthority.discoveryComplete()) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_6__["ClientAuthError"].createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery."); } this.authority = updatedAuthority; }; /** * Creates query string for the /token request * @param request */ BaseClient.prototype.createTokenQueryParameters = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_9__["RequestParameterBuilder"](); if (request.tokenQueryParameters) { parameterBuilder.addExtraQueryParameters(request.tokenQueryParameters); } return parameterBuilder.createQueryString(); }; return BaseClient; }()); //# sourceMappingURL=BaseClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/ClientCredentialClient.js": /*!*******************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/ClientCredentialClient.js ***! \*******************************************************************************/ /*! exports provided: ClientCredentialClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientCredentialClient", function() { return ClientCredentialClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /* harmony import */ var _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../request/ScopeSet.js */ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * OAuth2.0 client credential grant */ var ClientCredentialClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ClientCredentialClient, _super); function ClientCredentialClient(configuration, appTokenProvider) { var _this = _super.call(this, configuration) || this; _this.appTokenProvider = appTokenProvider; return _this; } /** * Public API to acquire a token with ClientCredential Flow for Confidential clients * @param request */ ClientCredentialClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cachedAuthenticationResult; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: this.scopeSet = new _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_3__["ScopeSet"](request.scopes || []); if (!request.skipCache) return [3 /*break*/, 2]; return [4 /*yield*/, this.executeTokenRequest(request, this.authority)]; case 1: return [2 /*return*/, _a.sent()]; case 2: return [4 /*yield*/, this.getCachedAuthenticationResult(request)]; case 3: cachedAuthenticationResult = _a.sent(); if (!cachedAuthenticationResult) return [3 /*break*/, 4]; return [2 /*return*/, cachedAuthenticationResult]; case 4: return [4 /*yield*/, this.executeTokenRequest(request, this.authority)]; case 5: return [2 /*return*/, _a.sent()]; } }); }); }; /** * looks up cache if the tokens are cached already */ ClientCredentialClient.prototype.getCachedAuthenticationResult = function (request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cachedAccessToken; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: cachedAccessToken = this.readAccessTokenFromCache(); if (!cachedAccessToken) { (_a = this.serverTelemetryManager) === null || _a === void 0 ? void 0 : _a.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CacheOutcome"].NO_CACHED_ACCESS_TOKEN); return [2 /*return*/, null]; } if (_utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__["TimeUtils"].isTokenExpired(cachedAccessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) { (_b = this.serverTelemetryManager) === null || _b === void 0 ? void 0 : _b.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CacheOutcome"].CACHED_ACCESS_TOKEN_EXPIRED); return [2 /*return*/, null]; } return [4 /*yield*/, _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_5__["ResponseHandler"].generateAuthenticationResult(this.cryptoUtils, this.authority, { account: null, idToken: null, accessToken: cachedAccessToken, refreshToken: null, appMetadata: null }, true, request)]; case 1: return [2 /*return*/, _c.sent()]; } }); }); }; /** * Reads access token from the cache */ ClientCredentialClient.prototype.readAccessTokenFromCache = function () { var accessTokenFilter = { homeAccountId: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING, environment: this.authority.canonicalAuthorityUrlComponents.HostNameAndPort, credentialType: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CredentialType"].ACCESS_TOKEN, clientId: this.config.authOptions.clientId, realm: this.authority.tenant, target: _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_3__["ScopeSet"].createSearchScopes(this.scopeSet.asArray()) }; var accessTokens = this.cacheManager.getAccessTokensByFilter(accessTokenFilter); if (accessTokens.length < 1) { return null; } else if (accessTokens.length > 1) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__["ClientAuthError"].createMultipleMatchingTokensInCacheError(); } return accessTokens[0]; }; /** * Makes a network call to request the token from the service * @param request * @param authority */ ClientCredentialClient.prototype.executeTokenRequest = function (request, authority) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var serverTokenResponse, reqTimestamp, appTokenPropviderParameters, appTokenProviderResult, queryParametersString, endpoint, requestBody, headers, thumbprint, response, responseHandler, tokenResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (!this.appTokenProvider) return [3 /*break*/, 2]; this.logger.info("Using appTokenProvider extensibility."); appTokenPropviderParameters = { correlationId: request.correlationId, tenantId: this.config.authOptions.authority.tenant, scopes: request.scopes, claims: request.claims, }; reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__["TimeUtils"].nowSeconds(); return [4 /*yield*/, this.appTokenProvider(appTokenPropviderParameters)]; case 1: appTokenProviderResult = _a.sent(); serverTokenResponse = { access_token: appTokenProviderResult.accessToken, expires_in: appTokenProviderResult.expiresInSeconds, refresh_in: appTokenProviderResult.refreshInSeconds, token_type: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["AuthenticationScheme"].BEARER }; return [3 /*break*/, 4]; case 2: queryParametersString = this.createTokenQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__["UrlString"].appendQueryString(authority.tokenEndpoint, queryParametersString); requestBody = this.createTokenRequestBody(request); headers = this.createTokenRequestHeaders(); thumbprint = { clientId: this.config.authOptions.clientId, authority: request.authority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__["TimeUtils"].nowSeconds(); return [4 /*yield*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)]; case 3: response = _a.sent(); serverTokenResponse = response.body; _a.label = 4; case 4: responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_5__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin); responseHandler.validateTokenResponse(serverTokenResponse); return [4 /*yield*/, responseHandler.handleServerTokenResponse(serverTokenResponse, this.authority, reqTimestamp, request)]; case 5: tokenResponse = _a.sent(); return [2 /*return*/, tokenResponse]; } }); }); }; /** * generate the request to the server in the acceptable format * @param request */ ClientCredentialClient.prototype.createTokenRequestBody = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__["RequestParameterBuilder"](); parameterBuilder.addClientId(this.config.authOptions.clientId); parameterBuilder.addScopes(request.scopes, false); parameterBuilder.addGrantType(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["GrantType"].CLIENT_CREDENTIALS_GRANT); parameterBuilder.addLibraryInfo(this.config.libraryInfo); parameterBuilder.addApplicationTelemetry(this.config.telemetry.application); parameterBuilder.addThrottling(); if (this.serverTelemetryManager) { parameterBuilder.addServerTelemetry(this.serverTelemetryManager); } var correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid(); parameterBuilder.addCorrelationId(correlationId); if (this.config.clientCredentials.clientSecret) { parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret); } // Use clientAssertion from request, fallback to client assertion in base configuration var clientAssertion = request.clientAssertion || this.config.clientCredentials.clientAssertion; if (clientAssertion) { parameterBuilder.addClientAssertion(clientAssertion.assertion); parameterBuilder.addClientAssertionType(clientAssertion.assertionType); } if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_7__["StringUtils"].isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } return parameterBuilder.createQueryString(); }; return ClientCredentialClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=ClientCredentialClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/DeviceCodeClient.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/DeviceCodeClient.js ***! \*************************************************************************/ /*! exports provided: DeviceCodeClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeviceCodeClient", function() { return DeviceCodeClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ServerError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/ServerError.js */ "./node_modules/@azure/msal-common/dist/error/ServerError.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * OAuth2.0 Device code client */ var DeviceCodeClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeviceCodeClient, _super); function DeviceCodeClient(configuration) { return _super.call(this, configuration) || this; } /** * Gets device code from device code endpoint, calls back to with device code response, and * polls token endpoint to exchange device code for tokens * @param request */ DeviceCodeClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var deviceCodeResponse, reqTimestamp, response, responseHandler; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.getDeviceCode(request)]; case 1: deviceCodeResponse = _a.sent(); request.deviceCodeCallback(deviceCodeResponse); reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__["TimeUtils"].nowSeconds(); return [4 /*yield*/, this.acquireTokenWithDeviceCode(request, deviceCodeResponse)]; case 2: response = _a.sent(); responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_6__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin); // Validate response. This function throws a server error if an error is returned by the server. responseHandler.validateTokenResponse(response); return [4 /*yield*/, responseHandler.handleServerTokenResponse(response, this.authority, reqTimestamp, request)]; case 3: return [2 /*return*/, _a.sent()]; } }); }); }; /** * Creates device code request and executes http GET * @param request */ DeviceCodeClient.prototype.getDeviceCode = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var queryParametersString, endpoint, queryString, headers, thumbprint; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { queryParametersString = this.createExtraQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__["UrlString"].appendQueryString(this.authority.deviceCodeEndpoint, queryParametersString); queryString = this.createQueryString(request); headers = this.createTokenRequestHeaders(); thumbprint = { clientId: this.config.authOptions.clientId, authority: request.authority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; return [2 /*return*/, this.executePostRequestToDeviceCodeEndpoint(endpoint, queryString, headers, thumbprint)]; }); }); }; /** * Creates query string for the device code request * @param request */ DeviceCodeClient.prototype.createExtraQueryParameters = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_3__["RequestParameterBuilder"](); if (request.extraQueryParameters) { parameterBuilder.addExtraQueryParameters(request.extraQueryParameters); } return parameterBuilder.createQueryString(); }; /** * Executes POST request to device code endpoint * @param deviceCodeEndpoint * @param queryString * @param headers */ DeviceCodeClient.prototype.executePostRequestToDeviceCodeEndpoint = function (deviceCodeEndpoint, queryString, headers, thumbprint) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _a, userCode, deviceCode, verificationUri, expiresIn, interval, message; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: return [4 /*yield*/, this.networkManager.sendPostRequest(thumbprint, deviceCodeEndpoint, { body: queryString, headers: headers })]; case 1: _a = (_b.sent()).body, userCode = _a.user_code, deviceCode = _a.device_code, verificationUri = _a.verification_uri, expiresIn = _a.expires_in, interval = _a.interval, message = _a.message; return [2 /*return*/, { userCode: userCode, deviceCode: deviceCode, verificationUri: verificationUri, expiresIn: expiresIn, interval: interval, message: message }]; } }); }); }; /** * Create device code endpoint query parameters and returns string */ DeviceCodeClient.prototype.createQueryString = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_3__["RequestParameterBuilder"](); parameterBuilder.addScopes(request.scopes); parameterBuilder.addClientId(this.config.authOptions.clientId); if (request.extraQueryParameters) { parameterBuilder.addExtraQueryParameters(request.extraQueryParameters); } if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_7__["StringUtils"].isEmpty(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } return parameterBuilder.createQueryString(); }; /** * Breaks the polling with specific conditions. * @param request CommonDeviceCodeRequest * @param deviceCodeResponse DeviceCodeResponse */ DeviceCodeClient.prototype.continuePolling = function (deviceCodeExpirationTime, userSpecifiedTimeout, userSpecifiedCancelFlag) { if (userSpecifiedCancelFlag) { this.logger.error("Token request cancelled by setting DeviceCodeRequest.cancel = true"); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createDeviceCodeCancelledError(); } else if (userSpecifiedTimeout && userSpecifiedTimeout < deviceCodeExpirationTime && _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__["TimeUtils"].nowSeconds() > userSpecifiedTimeout) { this.logger.error("User defined timeout for device code polling reached. The timeout was set for " + userSpecifiedTimeout); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createUserTimeoutReachedError(); } else if (_utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__["TimeUtils"].nowSeconds() > deviceCodeExpirationTime) { if (userSpecifiedTimeout) { this.logger.verbose("User specified timeout ignored as the device code has expired before the timeout elapsed. The user specified timeout was set for " + userSpecifiedTimeout); } this.logger.error("Device code expired. Expiration time of device code was " + deviceCodeExpirationTime); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createDeviceCodeExpiredError(); } return true; }; /** * Creates token request with device code response and polls token endpoint at interval set by the device code * response * @param request * @param deviceCodeResponse */ DeviceCodeClient.prototype.acquireTokenWithDeviceCode = function (request, deviceCodeResponse) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var queryParametersString, endpoint, requestBody, headers, userSpecifiedTimeout, deviceCodeExpirationTime, pollingIntervalMilli, thumbprint, response; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: queryParametersString = this.createTokenQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__["UrlString"].appendQueryString(this.authority.tokenEndpoint, queryParametersString); requestBody = this.createTokenRequestBody(request, deviceCodeResponse); headers = this.createTokenRequestHeaders(); userSpecifiedTimeout = request.timeout ? _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__["TimeUtils"].nowSeconds() + request.timeout : undefined; deviceCodeExpirationTime = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__["TimeUtils"].nowSeconds() + deviceCodeResponse.expiresIn; pollingIntervalMilli = deviceCodeResponse.interval * 1000; _a.label = 1; case 1: if (!this.continuePolling(deviceCodeExpirationTime, userSpecifiedTimeout, request.cancel)) return [3 /*break*/, 8]; thumbprint = { clientId: this.config.authOptions.clientId, authority: request.authority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; return [4 /*yield*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)]; case 2: response = _a.sent(); if (!(response.body && response.body.error)) return [3 /*break*/, 6]; if (!(response.body.error === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].AUTHORIZATION_PENDING)) return [3 /*break*/, 4]; this.logger.info("Authorization pending. Continue polling."); return [4 /*yield*/, _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_5__["TimeUtils"].delay(pollingIntervalMilli)]; case 3: _a.sent(); return [3 /*break*/, 5]; case 4: // for any other error, throw this.logger.info("Unexpected error in polling from the server"); throw _error_ServerError_js__WEBPACK_IMPORTED_MODULE_8__["ServerError"].createPostRequestFailed(response.body.error); case 5: return [3 /*break*/, 7]; case 6: this.logger.verbose("Authorization completed successfully. Polling stopped."); return [2 /*return*/, response.body]; case 7: return [3 /*break*/, 1]; case 8: /* * The above code should've thrown by this point, but to satisfy TypeScript, * and in the rare case the conditionals in continuePolling() may not catch everything... */ this.logger.error("Polling stopped for unknown reasons."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createDeviceCodeUnknownError(); } }); }); }; /** * Creates query parameters and converts to string. * @param request * @param deviceCodeResponse */ DeviceCodeClient.prototype.createTokenRequestBody = function (request, deviceCodeResponse) { var requestParameters = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_3__["RequestParameterBuilder"](); requestParameters.addScopes(request.scopes); requestParameters.addClientId(this.config.authOptions.clientId); requestParameters.addGrantType(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["GrantType"].DEVICE_CODE_GRANT); requestParameters.addDeviceCode(deviceCodeResponse.deviceCode); var correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid(); requestParameters.addCorrelationId(correlationId); requestParameters.addClientInfo(); requestParameters.addLibraryInfo(this.config.libraryInfo); requestParameters.addApplicationTelemetry(this.config.telemetry.application); requestParameters.addThrottling(); if (this.serverTelemetryManager) { requestParameters.addServerTelemetry(this.serverTelemetryManager); } if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_7__["StringUtils"].isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { requestParameters.addClaims(request.claims, this.config.authOptions.clientCapabilities); } return requestParameters.createQueryString(); }; return DeviceCodeClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=DeviceCodeClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/OnBehalfOfClient.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/OnBehalfOfClient.js ***! \*************************************************************************/ /*! exports provided: OnBehalfOfClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OnBehalfOfClient", function() { return OnBehalfOfClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /* harmony import */ var _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../request/ScopeSet.js */ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../account/AuthToken.js */ "./node_modules/@azure/msal-common/dist/account/AuthToken.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * On-Behalf-Of client */ var OnBehalfOfClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OnBehalfOfClient, _super); function OnBehalfOfClient(configuration) { return _super.call(this, configuration) || this; } /** * Public API to acquire tokens with on behalf of flow * @param request */ OnBehalfOfClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: this.scopeSet = new _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_3__["ScopeSet"](request.scopes || []); // generate the user_assertion_hash for OBOAssertion _a = this; return [4 /*yield*/, this.cryptoUtils.hashString(request.oboAssertion)]; case 1: // generate the user_assertion_hash for OBOAssertion _a.userAssertionHash = _b.sent(); if (!request.skipCache) return [3 /*break*/, 3]; return [4 /*yield*/, this.executeTokenRequest(request, this.authority, this.userAssertionHash)]; case 2: return [2 /*return*/, _b.sent()]; case 3: _b.trys.push([3, 5, , 7]); return [4 /*yield*/, this.getCachedAuthenticationResult(request)]; case 4: return [2 /*return*/, _b.sent()]; case 5: _b.sent(); return [4 /*yield*/, this.executeTokenRequest(request, this.authority, this.userAssertionHash)]; case 6: // Any failure falls back to interactive request, once we implement distributed cache, we plan to handle `createRefreshRequiredError` to refresh using the RT return [2 /*return*/, _b.sent()]; case 7: return [2 /*return*/]; } }); }); }; /** * look up cache for tokens * Find idtoken in the cache * Find accessToken based on user assertion and account info in the cache * Please note we are not yet supported OBO tokens refreshed with long lived RT. User will have to send a new assertion if the current access token expires * This is to prevent security issues when the assertion changes over time, however, longlived RT helps retaining the session * @param request */ OnBehalfOfClient.prototype.getCachedAuthenticationResult = function (request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var cachedAccessToken, cachedIdToken, idTokenObject, cachedAccount, localAccountId, accountInfo; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: cachedAccessToken = this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId, request); if (!cachedAccessToken) { // Must refresh due to non-existent access_token. (_a = this.serverTelemetryManager) === null || _a === void 0 ? void 0 : _a.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CacheOutcome"].NO_CACHED_ACCESS_TOKEN); this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__["ClientAuthError"].createRefreshRequiredError(); } else if (_utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__["TimeUtils"].isTokenExpired(cachedAccessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) { // Access token expired, will need to renewed (_b = this.serverTelemetryManager) === null || _b === void 0 ? void 0 : _b.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CacheOutcome"].CACHED_ACCESS_TOKEN_EXPIRED); this.logger.info("OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__["ClientAuthError"].createRefreshRequiredError(); } cachedIdToken = this.readIdTokenFromCacheForOBO(cachedAccessToken.homeAccountId); cachedAccount = null; if (cachedIdToken) { idTokenObject = new _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_7__["AuthToken"](cachedIdToken.secret, this.config.cryptoInterface); localAccountId = idTokenObject.claims.oid ? idTokenObject.claims.oid : idTokenObject.claims.sub; accountInfo = { homeAccountId: cachedIdToken.homeAccountId, environment: cachedIdToken.environment, tenantId: cachedIdToken.realm, username: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING, localAccountId: localAccountId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING }; cachedAccount = this.cacheManager.readAccountFromCache(accountInfo); } // increment telemetry cache hit counter if (this.config.serverTelemetryManager) { this.config.serverTelemetryManager.incrementCacheHits(); } return [4 /*yield*/, _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_5__["ResponseHandler"].generateAuthenticationResult(this.cryptoUtils, this.authority, { account: cachedAccount, accessToken: cachedAccessToken, idToken: cachedIdToken, refreshToken: null, appMetadata: null }, true, request, idTokenObject)]; case 1: return [2 /*return*/, _c.sent()]; } }); }); }; /** * read idtoken from cache, this is a specific implementation for OBO as the requirements differ from a generic lookup in the cacheManager * Certain use cases of OBO flow do not expect an idToken in the cache/or from the service * @param request */ OnBehalfOfClient.prototype.readIdTokenFromCacheForOBO = function (atHomeAccountId) { var idTokenFilter = { homeAccountId: atHomeAccountId, environment: this.authority.canonicalAuthorityUrlComponents.HostNameAndPort, credentialType: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CredentialType"].ID_TOKEN, clientId: this.config.authOptions.clientId, realm: this.authority.tenant }; var idTokens = this.cacheManager.getIdTokensByFilter(idTokenFilter); // When acquiring a token on behalf of an application, there might not be an id token in the cache if (idTokens.length < 1) { return null; } return idTokens[0]; }; /** * Fetches the cached access token based on incoming assertion * @param clientId * @param request * @param userAssertionHash */ OnBehalfOfClient.prototype.readAccessTokenFromCacheForOBO = function (clientId, request) { var authScheme = request.authenticationScheme || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["AuthenticationScheme"].BEARER; /* * Distinguish between Bearer and PoP/SSH token cache types * Cast to lowercase to handle "bearer" from ADFS */ var credentialType = (authScheme && authScheme.toLowerCase() !== _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["AuthenticationScheme"].BEARER.toLowerCase()) ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CredentialType"].ACCESS_TOKEN_WITH_AUTH_SCHEME : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["CredentialType"].ACCESS_TOKEN; var accessTokenFilter = { credentialType: credentialType, clientId: clientId, target: _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_3__["ScopeSet"].createSearchScopes(this.scopeSet.asArray()), tokenType: authScheme, keyId: request.sshKid, requestedClaimsHash: request.requestedClaimsHash, userAssertionHash: this.userAssertionHash }; var accessTokens = this.cacheManager.getAccessTokensByFilter(accessTokenFilter); var numAccessTokens = accessTokens.length; if (numAccessTokens < 1) { return null; } else if (numAccessTokens > 1) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__["ClientAuthError"].createMultipleMatchingTokensInCacheError(); } return accessTokens[0]; }; /** * Make a network call to the server requesting credentials * @param request * @param authority */ OnBehalfOfClient.prototype.executeTokenRequest = function (request, authority, userAssertionHash) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var queryParametersString, endpoint, requestBody, headers, thumbprint, reqTimestamp, response, responseHandler, tokenResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: queryParametersString = this.createTokenQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_9__["UrlString"].appendQueryString(authority.tokenEndpoint, queryParametersString); requestBody = this.createTokenRequestBody(request); headers = this.createTokenRequestHeaders(); thumbprint = { clientId: this.config.authOptions.clientId, authority: request.authority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__["TimeUtils"].nowSeconds(); return [4 /*yield*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)]; case 1: response = _a.sent(); responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_5__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin); responseHandler.validateTokenResponse(response.body); return [4 /*yield*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, userAssertionHash)]; case 2: tokenResponse = _a.sent(); return [2 /*return*/, tokenResponse]; } }); }); }; /** * generate a server request in accepable format * @param request */ OnBehalfOfClient.prototype.createTokenRequestBody = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__["RequestParameterBuilder"](); parameterBuilder.addClientId(this.config.authOptions.clientId); parameterBuilder.addScopes(request.scopes); parameterBuilder.addGrantType(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["GrantType"].JWT_BEARER); parameterBuilder.addClientInfo(); parameterBuilder.addLibraryInfo(this.config.libraryInfo); parameterBuilder.addApplicationTelemetry(this.config.telemetry.application); parameterBuilder.addThrottling(); if (this.serverTelemetryManager) { parameterBuilder.addServerTelemetry(this.serverTelemetryManager); } var correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid(); parameterBuilder.addCorrelationId(correlationId); parameterBuilder.addRequestTokenUse(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["AADServerParamKeys"].ON_BEHALF_OF); parameterBuilder.addOboAssertion(request.oboAssertion); if (this.config.clientCredentials.clientSecret) { parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret); } if (this.config.clientCredentials.clientAssertion) { var clientAssertion = this.config.clientCredentials.clientAssertion; parameterBuilder.addClientAssertion(clientAssertion.assertion); parameterBuilder.addClientAssertionType(clientAssertion.assertionType); } if (request.claims || (this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0)) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } return parameterBuilder.createQueryString(); }; return OnBehalfOfClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=OnBehalfOfClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js": /*!***************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js ***! \***************************************************************************/ /*! exports provided: RefreshTokenClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RefreshTokenClient", function() { return RefreshTokenClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../crypto/PopTokenGenerator.js */ "./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _error_ServerError_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../error/ServerError.js */ "./node_modules/@azure/msal-common/dist/error/ServerError.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /* harmony import */ var _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../account/CcsCredential.js */ "./node_modules/@azure/msal-common/dist/account/CcsCredential.js"); /* harmony import */ var _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../account/ClientInfo.js */ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js"); /* harmony import */ var _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../error/InteractionRequiredAuthError.js */ "./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * OAuth2.0 refresh token client */ var RefreshTokenClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RefreshTokenClient, _super); function RefreshTokenClient(configuration, performanceClient) { return _super.call(this, configuration, performanceClient) || this; } RefreshTokenClient.prototype.acquireToken = function (request) { var _a, _b, _c, _d, _e, _f, _g; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var atsMeasurement, reqTimestamp, response, httpVerToken, requestId, responseHandler; var _this = this; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) { switch (_h.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireToken, request.correlationId); atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireToken, request.correlationId); this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId); reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_10__["TimeUtils"].nowSeconds(); (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientExecuteTokenRequest, request.correlationId); return [4 /*yield*/, this.executeTokenRequest(request, this.authority)]; case 1: response = _h.sent(); httpVerToken = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["HeaderNames"].X_MS_HTTP_VERSION]; atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({ refreshTokenSize: ((_e = response.body.refresh_token) === null || _e === void 0 ? void 0 : _e.length) || 0, }); if (httpVerToken) { atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({ httpVerToken: httpVerToken, }); } requestId = (_f = response.headers) === null || _f === void 0 ? void 0 : _f[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["HeaderNames"].X_MS_REQUEST_ID]; responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_4__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin); responseHandler.validateTokenResponse(response.body); (_g = this.performanceClient) === null || _g === void 0 ? void 0 : _g.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].HandleServerTokenResponse, request.correlationId); return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) { atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({ success: true }); return result; }) .catch(function (error) { _this.logger.verbose("Error in fetching refresh token", request.correlationId); atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({ errorCode: error.errorCode, subErrorCode: error.subError, success: false }); throw error; })]; } }); }); }; /** * Gets cached refresh token and attaches to request, then calls acquireToken API * @param request */ RefreshTokenClient.prototype.acquireTokenByRefreshToken = function (request) { var _a, _b, _c, _d; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var isFOCI, noFamilyRTInCache, clientMismatchErrorWithFamilyRT; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { // Cannot renew token if no request object is given. if (!request) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__["ClientConfigurationError"].createEmptyTokenRequestError(); } (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId); // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases if (!request.account) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_8__["ClientAuthError"].createNoAccountInSilentRequestError(); } isFOCI = this.cacheManager.isAppMetadataFOCI(request.account.environment); // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest if (isFOCI) { try { (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId); return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, true)]; } catch (e) { noFamilyRTInCache = e instanceof _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_14__["InteractionRequiredAuthError"] && e.errorCode === _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_14__["InteractionRequiredAuthErrorMessage"].noTokensFoundError.code; clientMismatchErrorWithFamilyRT = e instanceof _error_ServerError_js__WEBPACK_IMPORTED_MODULE_9__["ServerError"] && e.errorCode === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Errors"].INVALID_GRANT_ERROR && e.subError === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Errors"].CLIENT_MISMATCH_ERROR; // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART) if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) { (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId); return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, false)]; // throw in all other cases } else { throw e; } } } // fall back to application refresh token acquisition (_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId); return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, false)]; }); }); }; /** * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached * @param request */ RefreshTokenClient.prototype.acquireTokenWithCachedRefreshToken = function (request, foci) { var _a, _b, _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var atsMeasurement, refreshToken, refreshTokenRequest; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId); atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId); this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", request.correlationId); refreshToken = this.cacheManager.getRefreshToken(request.account, foci); if (!refreshToken) { atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.discardMeasurement(); throw _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_14__["InteractionRequiredAuthError"].createNoTokensFoundError(); } // attach cached RT size to the current measurement atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({ success: true }); refreshTokenRequest = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { refreshToken: refreshToken.secret, authenticationScheme: request.authenticationScheme || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AuthenticationScheme"].BEARER, ccsCredential: { credential: request.account.homeAccountId, type: _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_12__["CcsCredentialType"].HOME_ACCOUNT_ID } }); (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientAcquireToken, request.correlationId); return [2 /*return*/, this.acquireToken(refreshTokenRequest)]; }); }); }; /** * Constructs the network message and makes a NW call to the underlying secure token service * @param request * @param authority */ RefreshTokenClient.prototype.executeTokenRequest = function (request, authority) { var _a, _b, _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var acquireTokenMeasurement, queryParametersString, endpoint, requestBody, headers, thumbprint; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientExecuteTokenRequest, request.correlationId); acquireTokenMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientExecuteTokenRequest, request.correlationId); (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientCreateTokenRequestBody, request.correlationId); queryParametersString = this.createTokenQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_11__["UrlString"].appendQueryString(authority.tokenEndpoint, queryParametersString); return [4 /*yield*/, this.createTokenRequestBody(request)]; case 1: requestBody = _d.sent(); headers = this.createTokenRequestHeaders(request.ccsCredential); thumbprint = { clientId: this.config.authOptions.clientId, authority: authority.canonicalAuthority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint) .then(function (result) { acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({ success: true }); return result; }) .catch(function (error) { acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({ success: false }); throw error; })]; } }); }); }; /** * Helper function to create the token request body * @param request */ RefreshTokenClient.prototype.createTokenRequestBody = function (request) { var _a, _b, _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var correlationId, acquireTokenMeasurement, parameterBuilder, clientAssertion, popTokenGenerator, reqCnfData, clientInfo; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].RefreshTokenClientCreateTokenRequestBody, request.correlationId); correlationId = request.correlationId; acquireTokenMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].BaseClientCreateTokenRequestHeaders, correlationId); parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_2__["RequestParameterBuilder"](); parameterBuilder.addClientId(this.config.authOptions.clientId); parameterBuilder.addScopes(request.scopes); parameterBuilder.addGrantType(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["GrantType"].REFRESH_TOKEN_GRANT); parameterBuilder.addClientInfo(); parameterBuilder.addLibraryInfo(this.config.libraryInfo); parameterBuilder.addApplicationTelemetry(this.config.telemetry.application); parameterBuilder.addThrottling(); if (this.serverTelemetryManager) { parameterBuilder.addServerTelemetry(this.serverTelemetryManager); } parameterBuilder.addCorrelationId(correlationId); parameterBuilder.addRefreshToken(request.refreshToken); if (this.config.clientCredentials.clientSecret) { parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret); } if (this.config.clientCredentials.clientAssertion) { clientAssertion = this.config.clientCredentials.clientAssertion; parameterBuilder.addClientAssertion(clientAssertion.assertion); parameterBuilder.addClientAssertionType(clientAssertion.assertionType); } if (!(request.authenticationScheme === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AuthenticationScheme"].POP)) return [3 /*break*/, 2]; popTokenGenerator = new _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_5__["PopTokenGenerator"](this.cryptoUtils, this.performanceClient); (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_15__["PerformanceEvents"].PopTokenGenerateCnf, request.correlationId); return [4 /*yield*/, popTokenGenerator.generateCnf(request)]; case 1: reqCnfData = _d.sent(); // SPA PoP requires full Base64Url encoded req_cnf string (unhashed) parameterBuilder.addPopToken(reqCnfData.reqCnfString); return [3 /*break*/, 3]; case 2: if (request.authenticationScheme === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AuthenticationScheme"].SSH) { if (request.sshJwk) { parameterBuilder.addSshJwk(request.sshJwk); } else { acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({ success: false }); throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_7__["ClientConfigurationError"].createMissingSshJwkError(); } } _d.label = 3; case 3: if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_6__["StringUtils"].isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } if (this.config.systemOptions.preventCorsPreflight && request.ccsCredential) { switch (request.ccsCredential.type) { case _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_12__["CcsCredentialType"].HOME_ACCOUNT_ID: try { clientInfo = Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_13__["buildClientInfoFromHomeAccountId"])(request.ccsCredential.credential); parameterBuilder.addCcsOid(clientInfo); } catch (e) { this.logger.verbose("Could not parse home account ID for CCS Header: " + e); } break; case _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_12__["CcsCredentialType"].UPN: parameterBuilder.addCcsUpn(request.ccsCredential.credential); break; } } acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({ success: true }); return [2 /*return*/, parameterBuilder.createQueryString()]; } }); }); }; return RefreshTokenClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=RefreshTokenClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/SilentFlowClient.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/SilentFlowClient.js ***! \*************************************************************************/ /*! exports provided: SilentFlowClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SilentFlowClient", function() { return SilentFlowClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../account/AuthToken.js */ "./node_modules/@azure/msal-common/dist/account/AuthToken.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _RefreshTokenClient_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RefreshTokenClient.js */ "./node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var SilentFlowClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SilentFlowClient, _super); function SilentFlowClient(configuration, performanceClient) { return _super.call(this, configuration, performanceClient) || this; } /** * Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew * the given token and returns the renewed token * @param request */ SilentFlowClient.prototype.acquireToken = function (request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var e_1, refreshTokenClient; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); return [4 /*yield*/, this.acquireCachedToken(request)]; case 1: return [2 /*return*/, _a.sent()]; case 2: e_1 = _a.sent(); if (e_1 instanceof _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"] && e_1.errorCode === _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthErrorMessage"].tokenRefreshRequired.code) { refreshTokenClient = new _RefreshTokenClient_js__WEBPACK_IMPORTED_MODULE_4__["RefreshTokenClient"](this.config, this.performanceClient); return [2 /*return*/, refreshTokenClient.acquireTokenByRefreshToken(request)]; } else { throw e_1; } case 3: return [2 /*return*/]; } }); }); }; /** * Retrieves token from cache or throws an error if it must be refreshed. * @param request */ SilentFlowClient.prototype.acquireCachedToken = function (request) { var _a, _b, _c, _d, _e; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var environment, cacheRecord; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) { switch (_f.label) { case 0: // Cannot renew token if no request object is given. if (!request) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_6__["ClientConfigurationError"].createEmptyTokenRequestError(); } if (request.forceRefresh) { // Must refresh due to present force_refresh flag. (_a = this.serverTelemetryManager) === null || _a === void 0 ? void 0 : _a.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_8__["CacheOutcome"].FORCE_REFRESH); this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createRefreshRequiredError(); } else if (!this.config.cacheOptions.claimsBasedCachingEnabled && !_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_9__["StringUtils"].isEmptyObj(request.claims)) { // Must refresh due to presence of claims in request preventing cache lookup (_b = this.serverTelemetryManager) === null || _b === void 0 ? void 0 : _b.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_8__["CacheOutcome"].CLAIMS_REQUESTED_CACHE_SKIPPED); this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createRefreshRequiredError(); } // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases if (!request.account) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createNoAccountInSilentRequestError(); } environment = request.authority || this.authority.getPreferredCache(); cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment); if (!cacheRecord.accessToken) { // Must refresh due to non-existent access_token. (_c = this.serverTelemetryManager) === null || _c === void 0 ? void 0 : _c.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_8__["CacheOutcome"].NO_CACHED_ACCESS_TOKEN); this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createRefreshRequiredError(); } else if (_utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_3__["TimeUtils"].wasClockTurnedBack(cacheRecord.accessToken.cachedAt) || _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_3__["TimeUtils"].isTokenExpired(cacheRecord.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) { // Must refresh due to expired access_token. (_d = this.serverTelemetryManager) === null || _d === void 0 ? void 0 : _d.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_8__["CacheOutcome"].CACHED_ACCESS_TOKEN_EXPIRED); this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createRefreshRequiredError(); } else if (cacheRecord.accessToken.refreshOn && _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_3__["TimeUtils"].isTokenExpired(cacheRecord.accessToken.refreshOn, 0)) { // Must refresh due to the refresh_in value. (_e = this.serverTelemetryManager) === null || _e === void 0 ? void 0 : _e.setCacheOutcome(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_8__["CacheOutcome"].REFRESH_CACHED_ACCESS_TOKEN); this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."); throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createRefreshRequiredError(); } if (this.config.serverTelemetryManager) { this.config.serverTelemetryManager.incrementCacheHits(); } return [4 /*yield*/, this.generateResultFromCacheRecord(cacheRecord, request)]; case 1: return [2 /*return*/, _f.sent()]; } }); }); }; /** * Helper function to build response object from the CacheRecord * @param cacheRecord */ SilentFlowClient.prototype.generateResultFromCacheRecord = function (cacheRecord, request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var idTokenObj, authTime; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: if (cacheRecord.idToken) { idTokenObj = new _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_2__["AuthToken"](cacheRecord.idToken.secret, this.config.cryptoInterface); } // token max_age check if (request.maxAge || (request.maxAge === 0)) { authTime = idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.auth_time; if (!authTime) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_5__["ClientAuthError"].createAuthTimeNotFoundError(); } _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_2__["AuthToken"].checkMaxAge(authTime, request.maxAge); } return [4 /*yield*/, _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_7__["ResponseHandler"].generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, idTokenObj)]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; return SilentFlowClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=SilentFlowClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/client/UsernamePasswordClient.js": /*!*******************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/client/UsernamePasswordClient.js ***! \*******************************************************************************/ /*! exports provided: UsernamePasswordClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsernamePasswordClient", function() { return UsernamePasswordClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _BaseClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseClient.js */ "./node_modules/@azure/msal-common/dist/client/BaseClient.js"); /* harmony import */ var _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../response/ResponseHandler.js */ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js"); /* harmony import */ var _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../request/RequestParameterBuilder.js */ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../account/CcsCredential.js */ "./node_modules/@azure/msal-common/dist/account/CcsCredential.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Oauth2.0 Password grant client * Note: We are only supporting public clients for password grant and for purely testing purposes */ var UsernamePasswordClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UsernamePasswordClient, _super); function UsernamePasswordClient(configuration) { return _super.call(this, configuration) || this; } /** * API to acquire a token by passing the username and password to the service in exchage of credentials * password_grant * @param request */ UsernamePasswordClient.prototype.acquireToken = function (request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var atsMeasurement, reqTimestamp, response, httpVerToken, responseHandler, tokenResponse; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) { switch (_c.label) { case 0: atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement("UsernamePasswordClientAcquireToken", request.correlationId); this.logger.info("in acquireToken call in username-password client"); reqTimestamp = _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_6__["TimeUtils"].nowSeconds(); return [4 /*yield*/, this.executeTokenRequest(this.authority, request)]; case 1: response = _c.sent(); httpVerToken = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["HeaderNames"].X_MS_HTTP_VERSION]; atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({ httpVerToken: httpVerToken }); responseHandler = new _response_ResponseHandler_js__WEBPACK_IMPORTED_MODULE_2__["ResponseHandler"](this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin); // Validate response. This function throws a server error if an error is returned by the server. responseHandler.validateTokenResponse(response.body); tokenResponse = responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request); return [2 /*return*/, tokenResponse]; } }); }); }; /** * Executes POST request to token endpoint * @param authority * @param request */ UsernamePasswordClient.prototype.executeTokenRequest = function (authority, request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var queryParametersString, endpoint, requestBody, headers, thumbprint; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { queryParametersString = this.createTokenQueryParameters(request); endpoint = _url_UrlString_js__WEBPACK_IMPORTED_MODULE_8__["UrlString"].appendQueryString(authority.tokenEndpoint, queryParametersString); requestBody = this.createTokenRequestBody(request); headers = this.createTokenRequestHeaders({ credential: request.username, type: _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_7__["CcsCredentialType"].UPN }); thumbprint = { clientId: this.config.authOptions.clientId, authority: authority.canonicalAuthority, scopes: request.scopes, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)]; }); }); }; /** * Generates a map for all the params to be sent to the service * @param request */ UsernamePasswordClient.prototype.createTokenRequestBody = function (request) { var parameterBuilder = new _request_RequestParameterBuilder_js__WEBPACK_IMPORTED_MODULE_3__["RequestParameterBuilder"](); parameterBuilder.addClientId(this.config.authOptions.clientId); parameterBuilder.addUsername(request.username); parameterBuilder.addPassword(request.password); parameterBuilder.addScopes(request.scopes); parameterBuilder.addResponseTypeForTokenAndIdToken(); parameterBuilder.addGrantType(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["GrantType"].RESOURCE_OWNER_PASSWORD_GRANT); parameterBuilder.addClientInfo(); parameterBuilder.addLibraryInfo(this.config.libraryInfo); parameterBuilder.addApplicationTelemetry(this.config.telemetry.application); parameterBuilder.addThrottling(); if (this.serverTelemetryManager) { parameterBuilder.addServerTelemetry(this.serverTelemetryManager); } var correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid(); parameterBuilder.addCorrelationId(correlationId); if (this.config.clientCredentials.clientSecret) { parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret); } if (this.config.clientCredentials.clientAssertion) { var clientAssertion = this.config.clientCredentials.clientAssertion; parameterBuilder.addClientAssertion(clientAssertion.assertion); parameterBuilder.addClientAssertionType(clientAssertion.assertionType); } if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) { parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities); } if (this.config.systemOptions.preventCorsPreflight && request.username) { parameterBuilder.addCcsUpn(request.username); } return parameterBuilder.createQueryString(); }; return UsernamePasswordClient; }(_BaseClient_js__WEBPACK_IMPORTED_MODULE_1__["BaseClient"])); //# sourceMappingURL=UsernamePasswordClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/config/ClientConfiguration.js": /*!****************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/config/ClientConfiguration.js ***! \****************************************************************************/ /*! exports provided: DEFAULT_SYSTEM_OPTIONS, buildClientConfiguration */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_SYSTEM_OPTIONS", function() { return DEFAULT_SYSTEM_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildClientConfiguration", function() { return buildClientConfiguration; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _crypto_ICrypto_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../crypto/ICrypto.js */ "./node_modules/@azure/msal-common/dist/crypto/ICrypto.js"); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /* harmony import */ var _logger_Logger_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../logger/Logger.js */ "./node_modules/@azure/msal-common/dist/logger/Logger.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../packageMetadata.js */ "./node_modules/@azure/msal-common/dist/packageMetadata.js"); /* harmony import */ var _authority_AuthorityOptions_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../authority/AuthorityOptions.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js"); /* harmony import */ var _cache_CacheManager_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cache/CacheManager.js */ "./node_modules/@azure/msal-common/dist/cache/CacheManager.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ // Token renewal offset default in seconds var DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300; var DEFAULT_SYSTEM_OPTIONS = { tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC, preventCorsPreflight: false }; var DEFAULT_LOGGER_IMPLEMENTATION = { loggerCallback: function () { // allow users to not set loggerCallback }, piiLoggingEnabled: false, logLevel: _logger_Logger_js__WEBPACK_IMPORTED_MODULE_3__["LogLevel"].Info, correlationId: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING }; var DEFAULT_CACHE_OPTIONS = { claimsBasedCachingEnabled: true }; var DEFAULT_NETWORK_IMPLEMENTATION = { sendGetRequestAsync: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Network interface - sendGetRequestAsync() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_2__["AuthError"].createUnexpectedError(notImplErr); }); }); }, sendPostRequestAsync: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Network interface - sendPostRequestAsync() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_2__["AuthError"].createUnexpectedError(notImplErr); }); }); } }; var DEFAULT_LIBRARY_INFO = { sku: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].SKU, version: _packageMetadata_js__WEBPACK_IMPORTED_MODULE_5__["version"], cpu: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING, os: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING }; var DEFAULT_CLIENT_CREDENTIALS = { clientSecret: _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING, clientAssertion: undefined }; var DEFAULT_AZURE_CLOUD_OPTIONS = { azureCloudInstance: _authority_AuthorityOptions_js__WEBPACK_IMPORTED_MODULE_6__["AzureCloudInstance"].None, tenant: "" + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].DEFAULT_COMMON_TENANT }; var DEFAULT_TELEMETRY_OPTIONS = { application: { appName: "", appVersion: "" } }; /** * Function that sets the default options when not explicitly configured from app developer * * @param Configuration * * @returns Configuration */ function buildClientConfiguration(_a) { var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, userCacheOptions = _a.cacheOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, telemetry = _a.telemetry, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache; var loggerOptions = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_LOGGER_IMPLEMENTATION), userLoggerOption); return { authOptions: buildAuthOptions(userAuthOptions), systemOptions: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_SYSTEM_OPTIONS), userSystemOptions), loggerOptions: loggerOptions, cacheOptions: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_CACHE_OPTIONS), userCacheOptions), storageInterface: storageImplementation || new _cache_CacheManager_js__WEBPACK_IMPORTED_MODULE_7__["DefaultStorageClass"](userAuthOptions.clientId, _crypto_ICrypto_js__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_CRYPTO_IMPLEMENTATION"], new _logger_Logger_js__WEBPACK_IMPORTED_MODULE_3__["Logger"](loggerOptions)), networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION, cryptoInterface: cryptoImplementation || _crypto_ICrypto_js__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_CRYPTO_IMPLEMENTATION"], clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS, libraryInfo: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_LIBRARY_INFO), libraryInfo), telemetry: Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_TELEMETRY_OPTIONS), telemetry), serverTelemetryManager: serverTelemetryManager || null, persistencePlugin: persistencePlugin || null, serializableCache: serializableCache || null, }; } /** * Construct authoptions from the client and platform passed values * @param authOptions */ function buildAuthOptions(authOptions) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions); } //# sourceMappingURL=ClientConfiguration.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/crypto/ICrypto.js": /*!****************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/crypto/ICrypto.js ***! \****************************************************************/ /*! exports provided: DEFAULT_CRYPTO_IMPLEMENTATION */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CRYPTO_IMPLEMENTATION", function() { return DEFAULT_CRYPTO_IMPLEMENTATION; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var DEFAULT_CRYPTO_IMPLEMENTATION = { createNewGuid: function () { var notImplErr = "Crypto interface - createNewGuid() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }, base64Decode: function () { var notImplErr = "Crypto interface - base64Decode() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }, base64Encode: function () { var notImplErr = "Crypto interface - base64Encode() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }, generatePkceCodes: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Crypto interface - generatePkceCodes() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }); }); }, getPublicKeyThumbprint: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Crypto interface - getPublicKeyThumbprint() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }); }); }, removeTokenBindingKey: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Crypto interface - removeTokenBindingKey() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }); }); }, clearKeystore: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Crypto interface - clearKeystore() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }); }); }, signJwt: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Crypto interface - signJwt() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }); }); }, hashString: function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var notImplErr; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { notImplErr = "Crypto interface - hashString() has not been implemented"; throw _error_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"].createUnexpectedError(notImplErr); }); }); } }; //# sourceMappingURL=ICrypto.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/crypto/JoseHeader.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/crypto/JoseHeader.js ***! \*******************************************************************/ /*! exports provided: JoseHeader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JoseHeader", function() { return JoseHeader; }); /* harmony import */ var _error_JoseHeaderError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/JoseHeaderError.js */ "./node_modules/@azure/msal-common/dist/error/JoseHeaderError.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var JoseHeader = /** @class */ (function () { function JoseHeader(options) { this.typ = options.typ; this.alg = options.alg; this.kid = options.kid; } /** * Builds SignedHttpRequest formatted JOSE Header from the * JOSE Header options provided or previously set on the object and returns * the stringified header object. * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding. * @param shrHeaderOptions * @returns */ JoseHeader.getShrHeaderString = function (shrHeaderOptions) { // KeyID is required on the SHR header if (!shrHeaderOptions.kid) { throw _error_JoseHeaderError_js__WEBPACK_IMPORTED_MODULE_0__["JoseHeaderError"].createMissingKidError(); } // Alg is required on the SHR header if (!shrHeaderOptions.alg) { throw _error_JoseHeaderError_js__WEBPACK_IMPORTED_MODULE_0__["JoseHeaderError"].createMissingAlgError(); } var shrHeader = new JoseHeader({ // Access Token PoP headers must have type pop, but the type header can be overriden for special cases typ: shrHeaderOptions.typ || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["JsonTypes"].Pop, kid: shrHeaderOptions.kid, alg: shrHeaderOptions.alg }); return JSON.stringify(shrHeader); }; return JoseHeader; }()); //# sourceMappingURL=JoseHeader.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js": /*!**************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js ***! \**************************************************************************/ /*! exports provided: PopTokenGenerator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PopTokenGenerator", function() { return PopTokenGenerator; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var KeyLocation; (function (KeyLocation) { KeyLocation["SW"] = "sw"; KeyLocation["UHW"] = "uhw"; })(KeyLocation || (KeyLocation = {})); var PopTokenGenerator = /** @class */ (function () { function PopTokenGenerator(cryptoUtils, performanceClient) { this.cryptoUtils = cryptoUtils; this.performanceClient = performanceClient; } /** * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash * @param request * @returns */ PopTokenGenerator.prototype.generateCnf = function (request) { var _a, _b; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var reqCnf, reqCnfString, _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) { switch (_d.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_3__["PerformanceEvents"].PopTokenGenerateCnf, request.correlationId); (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_3__["PerformanceEvents"].PopTokenGenerateKid, request.correlationId); return [4 /*yield*/, this.generateKid(request)]; case 1: reqCnf = _d.sent(); reqCnfString = this.cryptoUtils.base64Encode(JSON.stringify(reqCnf)); _c = { kid: reqCnf.kid, reqCnfString: reqCnfString }; return [4 /*yield*/, this.cryptoUtils.hashString(reqCnfString)]; case 2: return [2 /*return*/, (_c.reqCnfHash = _d.sent(), _c)]; } }); }); }; /** * Generates key_id for a SHR token request * @param request * @returns */ PopTokenGenerator.prototype.generateKid = function (request) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var kidThumbprint; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_3__["PerformanceEvents"].PopTokenGenerateKid, request.correlationId); return [4 /*yield*/, this.cryptoUtils.getPublicKeyThumbprint(request)]; case 1: kidThumbprint = _b.sent(); return [2 /*return*/, { kid: kidThumbprint, xms_ksl: KeyLocation.SW }]; } }); }); }; /** * Signs the POP access_token with the local generated key-pair * @param accessToken * @param request * @returns */ PopTokenGenerator.prototype.signPopToken = function (accessToken, keyId, request) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { return [2 /*return*/, this.signPayload(accessToken, keyId, request)]; }); }); }; /** * Utility function to generate the signed JWT for an access_token * @param payload * @param kid * @param request * @param claims * @returns */ PopTokenGenerator.prototype.signPayload = function (payload, keyId, request, claims) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var resourceRequestMethod, resourceRequestUri, shrClaims, shrNonce, resourceUrlString, resourceUrlComponents; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: resourceRequestMethod = request.resourceRequestMethod, resourceRequestUri = request.resourceRequestUri, shrClaims = request.shrClaims, shrNonce = request.shrNonce; resourceUrlString = (resourceRequestUri) ? new _url_UrlString_js__WEBPACK_IMPORTED_MODULE_2__["UrlString"](resourceRequestUri) : undefined; resourceUrlComponents = resourceUrlString === null || resourceUrlString === void 0 ? void 0 : resourceUrlString.getUrlComponents(); return [4 /*yield*/, this.cryptoUtils.signJwt(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ at: payload, ts: _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_1__["TimeUtils"].nowSeconds(), m: resourceRequestMethod === null || resourceRequestMethod === void 0 ? void 0 : resourceRequestMethod.toUpperCase(), u: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.HostNameAndPort, nonce: shrNonce || this.cryptoUtils.createNewGuid(), p: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.AbsolutePath, q: (resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : undefined, client_claims: shrClaims || undefined }, claims), keyId, request.correlationId)]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; return PopTokenGenerator; }()); //# sourceMappingURL=PopTokenGenerator.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/error/AuthError.js": /*!*****************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/error/AuthError.js ***! \*****************************************************************/ /*! exports provided: AuthError, AuthErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthError", function() { return AuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthErrorMessage", function() { return AuthErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * AuthErrorMessage class containing string constants used by error codes and messages. */ var AuthErrorMessage = { unexpectedError: { code: "unexpected_error", desc: "Unexpected error in authentication." }, postRequestFailed: { code: "post_request_failed", desc: "Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details." } }; /** * General error class thrown by the MSAL.js library. */ var AuthError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AuthError, _super); function AuthError(errorCode, errorMessage, suberror) { var _this = this; var errorString = errorMessage ? errorCode + ": " + errorMessage : errorCode; _this = _super.call(this, errorString) || this; Object.setPrototypeOf(_this, AuthError.prototype); _this.errorCode = errorCode || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.errorMessage = errorMessage || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.subError = suberror || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.name = "AuthError"; return _this; } AuthError.prototype.setCorrelationId = function (correlationId) { this.correlationId = correlationId; }; /** * Creates an error that is thrown when something unexpected happens in the library. * @param errDesc */ AuthError.createUnexpectedError = function (errDesc) { return new AuthError(AuthErrorMessage.unexpectedError.code, AuthErrorMessage.unexpectedError.desc + ": " + errDesc); }; /** * Creates an error for post request failures. * @param errDesc * @returns */ AuthError.createPostRequestFailed = function (errDesc) { return new AuthError(AuthErrorMessage.postRequestFailed.code, AuthErrorMessage.postRequestFailed.desc + ": " + errDesc); }; return AuthError; }(Error)); //# sourceMappingURL=AuthError.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/error/ClientAuthError.js ***! \***********************************************************************/ /*! exports provided: ClientAuthError, ClientAuthErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientAuthError", function() { return ClientAuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientAuthErrorMessage", function() { return ClientAuthErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _AuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * ClientAuthErrorMessage class containing string constants used by error codes and messages. */ var ClientAuthErrorMessage = { clientInfoDecodingError: { code: "client_info_decoding_error", desc: "The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause." }, clientInfoEmptyError: { code: "client_info_empty_error", desc: "The client info was empty. Please review the trace to determine the root cause." }, tokenParsingError: { code: "token_parsing_error", desc: "Token cannot be parsed. Please review stack trace to determine root cause." }, nullOrEmptyToken: { code: "null_or_empty_token", desc: "The token is null or empty. Please review the trace to determine the root cause." }, endpointResolutionError: { code: "endpoints_resolution_error", desc: "Error: could not resolve endpoints. Please check network and try again." }, networkError: { code: "network_error", desc: "Network request failed. Please check network trace to determine root cause." }, unableToGetOpenidConfigError: { code: "openid_config_error", desc: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints." }, hashNotDeserialized: { code: "hash_not_deserialized", desc: "The hash parameters could not be deserialized. Please review the trace to determine the root cause." }, blankGuidGenerated: { code: "blank_guid_generated", desc: "The guid generated was blank. Please review the trace to determine the root cause." }, invalidStateError: { code: "invalid_state", desc: "State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()." }, stateMismatchError: { code: "state_mismatch", desc: "State mismatch error. Please check your network. Continued requests may cause cache overflow." }, stateNotFoundError: { code: "state_not_found", desc: "State not found" }, nonceMismatchError: { code: "nonce_mismatch", desc: "Nonce mismatch error. This may be caused by a race condition in concurrent requests." }, nonceNotFoundError: { code: "nonce_not_found", desc: "nonce not found" }, authTimeNotFoundError: { code: "auth_time_not_found", desc: "Max Age was requested and the ID token is missing the auth_time variable." + " auth_time is an optional claim and is not enabled by default - it must be enabled." + " See https://aka.ms/msaljs/optional-claims for more information." }, maxAgeTranspiredError: { code: "max_age_transpired", desc: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication." }, noTokensFoundError: { code: "no_tokens_found", desc: "No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()." }, multipleMatchingTokens: { code: "multiple_matching_tokens", desc: "The cache contains multiple tokens satisfying the requirements. " + "Call AcquireToken again providing more requirements such as authority or account." }, multipleMatchingAccounts: { code: "multiple_matching_accounts", desc: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account" }, multipleMatchingAppMetadata: { code: "multiple_matching_appMetadata", desc: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata" }, tokenRequestCannotBeMade: { code: "request_cannot_be_made", desc: "Token request cannot be made without authorization code or refresh token." }, appendEmptyScopeError: { code: "cannot_append_empty_scope", desc: "Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info." }, removeEmptyScopeError: { code: "cannot_remove_empty_scope", desc: "Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info." }, appendScopeSetError: { code: "cannot_append_scopeset", desc: "Cannot append ScopeSet due to error." }, emptyInputScopeSetError: { code: "empty_input_scopeset", desc: "Empty input ScopeSet cannot be processed." }, DeviceCodePollingCancelled: { code: "device_code_polling_cancelled", desc: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true." }, DeviceCodeExpired: { code: "device_code_expired", desc: "Device code is expired." }, DeviceCodeUnknownError: { code: "device_code_unknown_error", desc: "Device code stopped polling for unknown reasons." }, NoAccountInSilentRequest: { code: "no_account_in_silent_request", desc: "Please pass an account object, silent flow is not supported without account information" }, invalidCacheRecord: { code: "invalid_cache_record", desc: "Cache record object was null or undefined." }, invalidCacheEnvironment: { code: "invalid_cache_environment", desc: "Invalid environment when attempting to create cache entry" }, noAccountFound: { code: "no_account_found", desc: "No account found in cache for given key." }, CachePluginError: { code: "no cache plugin set on CacheManager", desc: "ICachePlugin needs to be set before using readFromStorage or writeFromStorage" }, noCryptoObj: { code: "no_crypto_object", desc: "No crypto object detected. This is required for the following operation: " }, invalidCacheType: { code: "invalid_cache_type", desc: "Invalid cache type" }, unexpectedAccountType: { code: "unexpected_account_type", desc: "Unexpected account type." }, unexpectedCredentialType: { code: "unexpected_credential_type", desc: "Unexpected credential type." }, invalidAssertion: { code: "invalid_assertion", desc: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515" }, invalidClientCredential: { code: "invalid_client_credential", desc: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential" }, tokenRefreshRequired: { code: "token_refresh_required", desc: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired." }, userTimeoutReached: { code: "user_timeout_reached", desc: "User defined timeout for device code polling reached", }, tokenClaimsRequired: { code: "token_claims_cnf_required_for_signedjwt", desc: "Cannot generate a POP jwt if the token_claims are not populated" }, noAuthorizationCodeFromServer: { code: "authorization_code_missing_from_server_response", desc: "Server response does not contain an authorization code to proceed" }, noAzureRegionDetected: { code: "no_azure_region_detected", desc: "No azure region was detected and no fallback was made available" }, accessTokenEntityNullError: { code: "access_token_entity_null", desc: "Access token entity is null, please check logs and cache to ensure a valid access token is present." }, bindingKeyNotRemovedError: { code: "binding_key_not_removed", desc: "Could not remove the credential's binding key from storage." }, logoutNotSupported: { code: "end_session_endpoint_not_supported", desc: "Provided authority does not support logout." }, keyIdMissing: { code: "key_id_missing", desc: "A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key." }, noNetworkConnectivity: { code: "no_network_connectivity", desc: "No network connectivity. Check your internet connection." }, userCanceledError: { code: "user_canceled", desc: "User canceled the flow." } }; /** * Error thrown when there is an error in the client code running on the browser. */ var ClientAuthError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ClientAuthError, _super); function ClientAuthError(errorCode, errorMessage) { var _this = _super.call(this, errorCode, errorMessage) || this; _this.name = "ClientAuthError"; Object.setPrototypeOf(_this, ClientAuthError.prototype); return _this; } /** * Creates an error thrown when client info object doesn't decode correctly. * @param caughtError */ ClientAuthError.createClientInfoDecodingError = function (caughtError) { return new ClientAuthError(ClientAuthErrorMessage.clientInfoDecodingError.code, ClientAuthErrorMessage.clientInfoDecodingError.desc + " Failed with error: " + caughtError); }; /** * Creates an error thrown if the client info is empty. * @param rawClientInfo */ ClientAuthError.createClientInfoEmptyError = function () { return new ClientAuthError(ClientAuthErrorMessage.clientInfoEmptyError.code, "" + ClientAuthErrorMessage.clientInfoEmptyError.desc); }; /** * Creates an error thrown when the id token extraction errors out. * @param err */ ClientAuthError.createTokenParsingError = function (caughtExtractionError) { return new ClientAuthError(ClientAuthErrorMessage.tokenParsingError.code, ClientAuthErrorMessage.tokenParsingError.desc + " Failed with error: " + caughtExtractionError); }; /** * Creates an error thrown when the id token string is null or empty. * @param invalidRawTokenString */ ClientAuthError.createTokenNullOrEmptyError = function (invalidRawTokenString) { return new ClientAuthError(ClientAuthErrorMessage.nullOrEmptyToken.code, ClientAuthErrorMessage.nullOrEmptyToken.desc + " Raw Token Value: " + invalidRawTokenString); }; /** * Creates an error thrown when the endpoint discovery doesn't complete correctly. */ ClientAuthError.createEndpointDiscoveryIncompleteError = function (errDetail) { return new ClientAuthError(ClientAuthErrorMessage.endpointResolutionError.code, ClientAuthErrorMessage.endpointResolutionError.desc + " Detail: " + errDetail); }; /** * Creates an error thrown when the fetch client throws */ ClientAuthError.createNetworkError = function (endpoint, errDetail) { return new ClientAuthError(ClientAuthErrorMessage.networkError.code, ClientAuthErrorMessage.networkError.desc + " | Fetch client threw: " + errDetail + " | Attempted to reach: " + endpoint.split("?")[0]); }; /** * Creates an error thrown when the openid-configuration endpoint cannot be reached or does not contain the required data */ ClientAuthError.createUnableToGetOpenidConfigError = function (errDetail) { return new ClientAuthError(ClientAuthErrorMessage.unableToGetOpenidConfigError.code, ClientAuthErrorMessage.unableToGetOpenidConfigError.desc + " Attempted to retrieve endpoints from: " + errDetail); }; /** * Creates an error thrown when the hash cannot be deserialized. * @param hashParamObj */ ClientAuthError.createHashNotDeserializedError = function (hashParamObj) { return new ClientAuthError(ClientAuthErrorMessage.hashNotDeserialized.code, ClientAuthErrorMessage.hashNotDeserialized.desc + " Given Object: " + hashParamObj); }; /** * Creates an error thrown when the state cannot be parsed. * @param invalidState */ ClientAuthError.createInvalidStateError = function (invalidState, errorString) { return new ClientAuthError(ClientAuthErrorMessage.invalidStateError.code, ClientAuthErrorMessage.invalidStateError.desc + " Invalid State: " + invalidState + ", Root Err: " + errorString); }; /** * Creates an error thrown when two states do not match. */ ClientAuthError.createStateMismatchError = function () { return new ClientAuthError(ClientAuthErrorMessage.stateMismatchError.code, ClientAuthErrorMessage.stateMismatchError.desc); }; /** * Creates an error thrown when the state is not present * @param missingState */ ClientAuthError.createStateNotFoundError = function (missingState) { return new ClientAuthError(ClientAuthErrorMessage.stateNotFoundError.code, ClientAuthErrorMessage.stateNotFoundError.desc + ": " + missingState); }; /** * Creates an error thrown when the nonce does not match. */ ClientAuthError.createNonceMismatchError = function () { return new ClientAuthError(ClientAuthErrorMessage.nonceMismatchError.code, ClientAuthErrorMessage.nonceMismatchError.desc); }; /** * Creates an error thrown when max_age was provided in the request, but auth_time is not in the token claims * @param missingNonce */ ClientAuthError.createAuthTimeNotFoundError = function () { return new ClientAuthError(ClientAuthErrorMessage.authTimeNotFoundError.code, ClientAuthErrorMessage.authTimeNotFoundError.desc); }; /** * Creates an error thrown when too much time has elapsed since the last end-user authentication */ ClientAuthError.createMaxAgeTranspiredError = function () { return new ClientAuthError(ClientAuthErrorMessage.maxAgeTranspiredError.code, ClientAuthErrorMessage.maxAgeTranspiredError.desc); }; /** * Creates an error thrown when the mnonce is not present * @param missingNonce */ ClientAuthError.createNonceNotFoundError = function (missingNonce) { return new ClientAuthError(ClientAuthErrorMessage.nonceNotFoundError.code, ClientAuthErrorMessage.nonceNotFoundError.desc + ": " + missingNonce); }; /** * Throws error when multiple tokens are in cache. */ ClientAuthError.createMultipleMatchingTokensInCacheError = function () { return new ClientAuthError(ClientAuthErrorMessage.multipleMatchingTokens.code, ClientAuthErrorMessage.multipleMatchingTokens.desc + "."); }; /** * Throws error when multiple accounts are in cache for the given params */ ClientAuthError.createMultipleMatchingAccountsInCacheError = function () { return new ClientAuthError(ClientAuthErrorMessage.multipleMatchingAccounts.code, ClientAuthErrorMessage.multipleMatchingAccounts.desc); }; /** * Throws error when multiple appMetada are in cache for the given clientId. */ ClientAuthError.createMultipleMatchingAppMetadataInCacheError = function () { return new ClientAuthError(ClientAuthErrorMessage.multipleMatchingAppMetadata.code, ClientAuthErrorMessage.multipleMatchingAppMetadata.desc); }; /** * Throws error when no auth code or refresh token is given to ServerTokenRequestParameters. */ ClientAuthError.createTokenRequestCannotBeMadeError = function () { return new ClientAuthError(ClientAuthErrorMessage.tokenRequestCannotBeMade.code, ClientAuthErrorMessage.tokenRequestCannotBeMade.desc); }; /** * Throws error when attempting to append a null, undefined or empty scope to a set * @param givenScope */ ClientAuthError.createAppendEmptyScopeToSetError = function (givenScope) { return new ClientAuthError(ClientAuthErrorMessage.appendEmptyScopeError.code, ClientAuthErrorMessage.appendEmptyScopeError.desc + " Given Scope: " + givenScope); }; /** * Throws error when attempting to append a null, undefined or empty scope to a set * @param givenScope */ ClientAuthError.createRemoveEmptyScopeFromSetError = function (givenScope) { return new ClientAuthError(ClientAuthErrorMessage.removeEmptyScopeError.code, ClientAuthErrorMessage.removeEmptyScopeError.desc + " Given Scope: " + givenScope); }; /** * Throws error when attempting to append null or empty ScopeSet. * @param appendError */ ClientAuthError.createAppendScopeSetError = function (appendError) { return new ClientAuthError(ClientAuthErrorMessage.appendScopeSetError.code, ClientAuthErrorMessage.appendScopeSetError.desc + " Detail Error: " + appendError); }; /** * Throws error if ScopeSet is null or undefined. * @param givenScopeSet */ ClientAuthError.createEmptyInputScopeSetError = function () { return new ClientAuthError(ClientAuthErrorMessage.emptyInputScopeSetError.code, "" + ClientAuthErrorMessage.emptyInputScopeSetError.desc); }; /** * Throws error if user sets CancellationToken.cancel = true during polling of token endpoint during device code flow */ ClientAuthError.createDeviceCodeCancelledError = function () { return new ClientAuthError(ClientAuthErrorMessage.DeviceCodePollingCancelled.code, "" + ClientAuthErrorMessage.DeviceCodePollingCancelled.desc); }; /** * Throws error if device code is expired */ ClientAuthError.createDeviceCodeExpiredError = function () { return new ClientAuthError(ClientAuthErrorMessage.DeviceCodeExpired.code, "" + ClientAuthErrorMessage.DeviceCodeExpired.desc); }; /** * Throws error if device code is expired */ ClientAuthError.createDeviceCodeUnknownError = function () { return new ClientAuthError(ClientAuthErrorMessage.DeviceCodeUnknownError.code, "" + ClientAuthErrorMessage.DeviceCodeUnknownError.desc); }; /** * Throws error when silent requests are made without an account object */ ClientAuthError.createNoAccountInSilentRequestError = function () { return new ClientAuthError(ClientAuthErrorMessage.NoAccountInSilentRequest.code, "" + ClientAuthErrorMessage.NoAccountInSilentRequest.desc); }; /** * Throws error when cache record is null or undefined. */ ClientAuthError.createNullOrUndefinedCacheRecord = function () { return new ClientAuthError(ClientAuthErrorMessage.invalidCacheRecord.code, ClientAuthErrorMessage.invalidCacheRecord.desc); }; /** * Throws error when provided environment is not part of the CloudDiscoveryMetadata object */ ClientAuthError.createInvalidCacheEnvironmentError = function () { return new ClientAuthError(ClientAuthErrorMessage.invalidCacheEnvironment.code, ClientAuthErrorMessage.invalidCacheEnvironment.desc); }; /** * Throws error when account is not found in cache. */ ClientAuthError.createNoAccountFoundError = function () { return new ClientAuthError(ClientAuthErrorMessage.noAccountFound.code, ClientAuthErrorMessage.noAccountFound.desc); }; /** * Throws error if ICachePlugin not set on CacheManager. */ ClientAuthError.createCachePluginError = function () { return new ClientAuthError(ClientAuthErrorMessage.CachePluginError.code, "" + ClientAuthErrorMessage.CachePluginError.desc); }; /** * Throws error if crypto object not found. * @param operationName */ ClientAuthError.createNoCryptoObjectError = function (operationName) { return new ClientAuthError(ClientAuthErrorMessage.noCryptoObj.code, "" + ClientAuthErrorMessage.noCryptoObj.desc + operationName); }; /** * Throws error if cache type is invalid. */ ClientAuthError.createInvalidCacheTypeError = function () { return new ClientAuthError(ClientAuthErrorMessage.invalidCacheType.code, "" + ClientAuthErrorMessage.invalidCacheType.desc); }; /** * Throws error if unexpected account type. */ ClientAuthError.createUnexpectedAccountTypeError = function () { return new ClientAuthError(ClientAuthErrorMessage.unexpectedAccountType.code, "" + ClientAuthErrorMessage.unexpectedAccountType.desc); }; /** * Throws error if unexpected credential type. */ ClientAuthError.createUnexpectedCredentialTypeError = function () { return new ClientAuthError(ClientAuthErrorMessage.unexpectedCredentialType.code, "" + ClientAuthErrorMessage.unexpectedCredentialType.desc); }; /** * Throws error if client assertion is not valid. */ ClientAuthError.createInvalidAssertionError = function () { return new ClientAuthError(ClientAuthErrorMessage.invalidAssertion.code, "" + ClientAuthErrorMessage.invalidAssertion.desc); }; /** * Throws error if client assertion is not valid. */ ClientAuthError.createInvalidCredentialError = function () { return new ClientAuthError(ClientAuthErrorMessage.invalidClientCredential.code, "" + ClientAuthErrorMessage.invalidClientCredential.desc); }; /** * Throws error if token cannot be retrieved from cache due to refresh being required. */ ClientAuthError.createRefreshRequiredError = function () { return new ClientAuthError(ClientAuthErrorMessage.tokenRefreshRequired.code, ClientAuthErrorMessage.tokenRefreshRequired.desc); }; /** * Throws error if the user defined timeout is reached. */ ClientAuthError.createUserTimeoutReachedError = function () { return new ClientAuthError(ClientAuthErrorMessage.userTimeoutReached.code, ClientAuthErrorMessage.userTimeoutReached.desc); }; /* * Throws error if token claims are not populated for a signed jwt generation */ ClientAuthError.createTokenClaimsRequiredError = function () { return new ClientAuthError(ClientAuthErrorMessage.tokenClaimsRequired.code, ClientAuthErrorMessage.tokenClaimsRequired.desc); }; /** * Throws error when the authorization code is missing from the server response */ ClientAuthError.createNoAuthCodeInServerResponseError = function () { return new ClientAuthError(ClientAuthErrorMessage.noAuthorizationCodeFromServer.code, ClientAuthErrorMessage.noAuthorizationCodeFromServer.desc); }; ClientAuthError.createBindingKeyNotRemovedError = function () { return new ClientAuthError(ClientAuthErrorMessage.bindingKeyNotRemovedError.code, ClientAuthErrorMessage.bindingKeyNotRemovedError.desc); }; /** * Thrown when logout is attempted for an authority that doesnt have an end_session_endpoint */ ClientAuthError.createLogoutNotSupportedError = function () { return new ClientAuthError(ClientAuthErrorMessage.logoutNotSupported.code, ClientAuthErrorMessage.logoutNotSupported.desc); }; /** * Create an error when kid attribute is missing from a PoP token's cache record */ ClientAuthError.createKeyIdMissingError = function () { return new ClientAuthError(ClientAuthErrorMessage.keyIdMissing.code, ClientAuthErrorMessage.keyIdMissing.desc); }; /** * Create an error when the client does not have network connectivity */ ClientAuthError.createNoNetworkConnectivityError = function () { return new ClientAuthError(ClientAuthErrorMessage.noNetworkConnectivity.code, ClientAuthErrorMessage.noNetworkConnectivity.desc); }; /** * Create an error when the user cancels the flow */ ClientAuthError.createUserCanceledError = function () { return new ClientAuthError(ClientAuthErrorMessage.userCanceledError.code, ClientAuthErrorMessage.userCanceledError.desc); }; return ClientAuthError; }(_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"])); //# sourceMappingURL=ClientAuthError.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js": /*!********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js ***! \********************************************************************************/ /*! exports provided: ClientConfigurationError, ClientConfigurationErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientConfigurationError", function() { return ClientConfigurationError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientConfigurationErrorMessage", function() { return ClientConfigurationErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * ClientConfigurationErrorMessage class containing string constants used by error codes and messages. */ var ClientConfigurationErrorMessage = { redirectUriNotSet: { code: "redirect_uri_empty", desc: "A redirect URI is required for all calls, and none has been set." }, postLogoutUriNotSet: { code: "post_logout_uri_empty", desc: "A post logout redirect has not been set." }, claimsRequestParsingError: { code: "claims_request_parsing_error", desc: "Could not parse the given claims request object." }, authorityUriInsecure: { code: "authority_uri_insecure", desc: "Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options" }, urlParseError: { code: "url_parse_error", desc: "URL could not be parsed into appropriate segments." }, urlEmptyError: { code: "empty_url_error", desc: "URL was empty or null." }, emptyScopesError: { code: "empty_input_scopes_error", desc: "Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token." }, nonArrayScopesError: { code: "nonarray_input_scopes_error", desc: "Scopes cannot be passed as non-array." }, clientIdSingleScopeError: { code: "clientid_input_scopes_error", desc: "Client ID can only be provided as a single scope." }, invalidPrompt: { code: "invalid_prompt_value", desc: "Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest", }, invalidClaimsRequest: { code: "invalid_claims", desc: "Given claims parameter must be a stringified JSON object." }, tokenRequestEmptyError: { code: "token_request_empty", desc: "Token request was empty and not found in cache." }, logoutRequestEmptyError: { code: "logout_request_empty", desc: "The logout request was null or undefined." }, invalidCodeChallengeMethod: { code: "invalid_code_challenge_method", desc: "code_challenge_method passed is invalid. Valid values are \"plain\" and \"S256\"." }, invalidCodeChallengeParams: { code: "pkce_params_missing", desc: "Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request" }, invalidCloudDiscoveryMetadata: { code: "invalid_cloud_discovery_metadata", desc: "Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields" }, invalidAuthorityMetadata: { code: "invalid_authority_metadata", desc: "Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields." }, untrustedAuthority: { code: "untrusted_authority", desc: "The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter." }, invalidAzureCloudInstance: { code: "invalid_azure_cloud_instance", desc: "Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values" }, missingSshJwk: { code: "missing_ssh_jwk", desc: "Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme." }, missingSshKid: { code: "missing_ssh_kid", desc: "Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme." }, missingNonceAuthenticationHeader: { code: "missing_nonce_authentication_header", desc: "Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce." }, invalidAuthenticationHeader: { code: "invalid_authentication_header", desc: "Invalid authentication header provided" }, authorityMismatch: { code: "authority_mismatch", desc: "Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority." } }; /** * Error thrown when there is an error in configuration of the MSAL.js library. */ var ClientConfigurationError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ClientConfigurationError, _super); function ClientConfigurationError(errorCode, errorMessage) { var _this = _super.call(this, errorCode, errorMessage) || this; _this.name = "ClientConfigurationError"; Object.setPrototypeOf(_this, ClientConfigurationError.prototype); return _this; } /** * Creates an error thrown when the redirect uri is empty (not set by caller) */ ClientConfigurationError.createRedirectUriEmptyError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.redirectUriNotSet.code, ClientConfigurationErrorMessage.redirectUriNotSet.desc); }; /** * Creates an error thrown when the post-logout redirect uri is empty (not set by caller) */ ClientConfigurationError.createPostLogoutRedirectUriEmptyError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.postLogoutUriNotSet.code, ClientConfigurationErrorMessage.postLogoutUriNotSet.desc); }; /** * Creates an error thrown when the claims request could not be successfully parsed */ ClientConfigurationError.createClaimsRequestParsingError = function (claimsRequestParseError) { return new ClientConfigurationError(ClientConfigurationErrorMessage.claimsRequestParsingError.code, ClientConfigurationErrorMessage.claimsRequestParsingError.desc + " Given value: " + claimsRequestParseError); }; /** * Creates an error thrown if authority uri is given an insecure protocol. * @param urlString */ ClientConfigurationError.createInsecureAuthorityUriError = function (urlString) { return new ClientConfigurationError(ClientConfigurationErrorMessage.authorityUriInsecure.code, ClientConfigurationErrorMessage.authorityUriInsecure.desc + " Given URI: " + urlString); }; /** * Creates an error thrown if URL string does not parse into separate segments. * @param urlString */ ClientConfigurationError.createUrlParseError = function (urlParseError) { return new ClientConfigurationError(ClientConfigurationErrorMessage.urlParseError.code, ClientConfigurationErrorMessage.urlParseError.desc + " Given Error: " + urlParseError); }; /** * Creates an error thrown if URL string is empty or null. * @param urlString */ ClientConfigurationError.createUrlEmptyError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.urlEmptyError.code, ClientConfigurationErrorMessage.urlEmptyError.desc); }; /** * Error thrown when scopes are empty. * @param scopesValue */ ClientConfigurationError.createEmptyScopesArrayError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.emptyScopesError.code, "" + ClientConfigurationErrorMessage.emptyScopesError.desc); }; /** * Error thrown when client id scope is not provided as single scope. * @param inputScopes */ ClientConfigurationError.createClientIdSingleScopeError = function (inputScopes) { return new ClientConfigurationError(ClientConfigurationErrorMessage.clientIdSingleScopeError.code, ClientConfigurationErrorMessage.clientIdSingleScopeError.desc + " Given Scopes: " + inputScopes); }; /** * Error thrown when prompt is not an allowed type. * @param promptValue */ ClientConfigurationError.createInvalidPromptError = function (promptValue) { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidPrompt.code, ClientConfigurationErrorMessage.invalidPrompt.desc + " Given value: " + promptValue); }; /** * Creates error thrown when claims parameter is not a stringified JSON object */ ClientConfigurationError.createInvalidClaimsRequestError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidClaimsRequest.code, ClientConfigurationErrorMessage.invalidClaimsRequest.desc); }; /** * Throws error when token request is empty and nothing cached in storage. */ ClientConfigurationError.createEmptyLogoutRequestError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.logoutRequestEmptyError.code, ClientConfigurationErrorMessage.logoutRequestEmptyError.desc); }; /** * Throws error when token request is empty and nothing cached in storage. */ ClientConfigurationError.createEmptyTokenRequestError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.tokenRequestEmptyError.code, ClientConfigurationErrorMessage.tokenRequestEmptyError.desc); }; /** * Throws error when an invalid code_challenge_method is passed by the user */ ClientConfigurationError.createInvalidCodeChallengeMethodError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidCodeChallengeMethod.code, ClientConfigurationErrorMessage.invalidCodeChallengeMethod.desc); }; /** * Throws error when both params: code_challenge and code_challenge_method are not passed together */ ClientConfigurationError.createInvalidCodeChallengeParamsError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidCodeChallengeParams.code, ClientConfigurationErrorMessage.invalidCodeChallengeParams.desc); }; /** * Throws an error when the user passes invalid cloudDiscoveryMetadata */ ClientConfigurationError.createInvalidCloudDiscoveryMetadataError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidCloudDiscoveryMetadata.code, ClientConfigurationErrorMessage.invalidCloudDiscoveryMetadata.desc); }; /** * Throws an error when the user passes invalid cloudDiscoveryMetadata */ ClientConfigurationError.createInvalidAuthorityMetadataError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAuthorityMetadata.code, ClientConfigurationErrorMessage.invalidAuthorityMetadata.desc); }; /** * Throws error when provided authority is not a member of the trusted host list */ ClientConfigurationError.createUntrustedAuthorityError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.untrustedAuthority.code, ClientConfigurationErrorMessage.untrustedAuthority.desc); }; /** * Throws error when the AzureCloudInstance is set to an invalid value */ ClientConfigurationError.createInvalidAzureCloudInstanceError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAzureCloudInstance.code, ClientConfigurationErrorMessage.invalidAzureCloudInstance.desc); }; /** * Throws an error when the authentication scheme is set to SSH but the SSH public key is omitted from the request */ ClientConfigurationError.createMissingSshJwkError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.missingSshJwk.code, ClientConfigurationErrorMessage.missingSshJwk.desc); }; /** * Throws an error when the authentication scheme is set to SSH but the SSH public key ID is omitted from the request */ ClientConfigurationError.createMissingSshKidError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.missingSshKid.code, ClientConfigurationErrorMessage.missingSshKid.desc); }; /** * Throws error when provided headers don't contain a header that a server nonce can be extracted from */ ClientConfigurationError.createMissingNonceAuthenticationHeadersError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.missingNonceAuthenticationHeader.code, ClientConfigurationErrorMessage.missingNonceAuthenticationHeader.desc); }; /** * Throws error when a provided header is invalid in any way */ ClientConfigurationError.createInvalidAuthenticationHeaderError = function (invalidHeaderName, details) { return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAuthenticationHeader.code, ClientConfigurationErrorMessage.invalidAuthenticationHeader.desc + ". Invalid header: " + invalidHeaderName + ". Details: " + details); }; /** * Create an error when the authority provided in request does not match authority provided in account or MSAL.js configuration. */ ClientConfigurationError.createAuthorityMismatchError = function () { return new ClientConfigurationError(ClientConfigurationErrorMessage.authorityMismatch.code, ClientConfigurationErrorMessage.authorityMismatch.desc); }; return ClientConfigurationError; }(_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"])); //# sourceMappingURL=ClientConfigurationError.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js": /*!************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js ***! \************************************************************************************/ /*! exports provided: InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, InteractionRequiredAuthSubErrorMessage, InteractionRequiredServerErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthError", function() { return InteractionRequiredAuthError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthErrorMessage", function() { return InteractionRequiredAuthErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthSubErrorMessage", function() { return InteractionRequiredAuthSubErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredServerErrorMessage", function() { return InteractionRequiredServerErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _AuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required */ var InteractionRequiredServerErrorMessage = [ "interaction_required", "consent_required", "login_required" ]; var InteractionRequiredAuthSubErrorMessage = [ "message_only", "additional_action", "basic_action", "user_password_expired", "consent_required" ]; /** * Interaction required errors defined by the SDK */ var InteractionRequiredAuthErrorMessage = { noTokensFoundError: { code: "no_tokens_found", desc: "No refresh token found in the cache. Please sign-in." }, native_account_unavailable: { code: "native_account_unavailable", desc: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API." } }; /** * Error thrown when user interaction is required. */ var InteractionRequiredAuthError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InteractionRequiredAuthError, _super); function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims) { var _this = _super.call(this, errorCode, errorMessage, subError) || this; Object.setPrototypeOf(_this, InteractionRequiredAuthError.prototype); _this.timestamp = timestamp || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.traceId = traceId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.correlationId = correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.claims = claims || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; _this.name = "InteractionRequiredAuthError"; return _this; } /** * Helper function used to determine if an error thrown by the server requires interaction to resolve * @param errorCode * @param errorString * @param subError */ InteractionRequiredAuthError.isInteractionRequiredError = function (errorCode, errorString, subError) { var isInteractionRequiredErrorCode = !!errorCode && InteractionRequiredServerErrorMessage.indexOf(errorCode) > -1; var isInteractionRequiredSubError = !!subError && InteractionRequiredAuthSubErrorMessage.indexOf(subError) > -1; var isInteractionRequiredErrorDesc = !!errorString && InteractionRequiredServerErrorMessage.some(function (irErrorCode) { return errorString.indexOf(irErrorCode) > -1; }); return isInteractionRequiredErrorCode || isInteractionRequiredErrorDesc || isInteractionRequiredSubError; }; /** * Creates an error thrown when the authorization code required for a token request is null or empty. */ InteractionRequiredAuthError.createNoTokensFoundError = function () { return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.noTokensFoundError.code, InteractionRequiredAuthErrorMessage.noTokensFoundError.desc); }; /** * Creates an error thrown when the native broker returns ACCOUNT_UNAVAILABLE status, indicating that the account was removed and interactive sign-in is required * @returns */ InteractionRequiredAuthError.createNativeAccountUnavailableError = function () { return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.native_account_unavailable.code, InteractionRequiredAuthErrorMessage.native_account_unavailable.desc); }; return InteractionRequiredAuthError; }(_AuthError_js__WEBPACK_IMPORTED_MODULE_2__["AuthError"])); //# sourceMappingURL=InteractionRequiredAuthError.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/error/JoseHeaderError.js": /*!***********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/error/JoseHeaderError.js ***! \***********************************************************************/ /*! exports provided: JoseHeaderError, JoseHeaderErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JoseHeaderError", function() { return JoseHeaderError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JoseHeaderErrorMessage", function() { return JoseHeaderErrorMessage; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _AuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * ClientAuthErrorMessage class containing string constants used by error codes and messages. */ var JoseHeaderErrorMessage = { missingKidError: { code: "missing_kid_error", desc: "The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided." }, missingAlgError: { code: "missing_alg_error", desc: "The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided." }, }; /** * Error thrown when there is an error in the client code running on the browser. */ var JoseHeaderError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(JoseHeaderError, _super); function JoseHeaderError(errorCode, errorMessage) { var _this = _super.call(this, errorCode, errorMessage) || this; _this.name = "JoseHeaderError"; Object.setPrototypeOf(_this, JoseHeaderError.prototype); return _this; } /** * Creates an error thrown when keyId isn't set on JOSE header. */ JoseHeaderError.createMissingKidError = function () { return new JoseHeaderError(JoseHeaderErrorMessage.missingKidError.code, JoseHeaderErrorMessage.missingKidError.desc); }; /** * Creates an error thrown when algorithm isn't set on JOSE header. */ JoseHeaderError.createMissingAlgError = function () { return new JoseHeaderError(JoseHeaderErrorMessage.missingAlgError.code, JoseHeaderErrorMessage.missingAlgError.desc); }; return JoseHeaderError; }(_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"])); //# sourceMappingURL=JoseHeaderError.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/error/ServerError.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/error/ServerError.js ***! \*******************************************************************/ /*! exports provided: ServerError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerError", function() { return ServerError; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _AuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Error thrown when there is an error with the server code, for example, unavailability. */ var ServerError = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ServerError, _super); function ServerError(errorCode, errorMessage, subError) { var _this = _super.call(this, errorCode, errorMessage, subError) || this; _this.name = "ServerError"; Object.setPrototypeOf(_this, ServerError.prototype); return _this; } return ServerError; }(_AuthError_js__WEBPACK_IMPORTED_MODULE_1__["AuthError"])); //# sourceMappingURL=ServerError.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/index.js": /*!*******************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/index.js ***! \*******************************************************/ /*! exports provided: AuthorizationCodeClient, DeviceCodeClient, RefreshTokenClient, ClientCredentialClient, OnBehalfOfClient, SilentFlowClient, UsernamePasswordClient, DEFAULT_SYSTEM_OPTIONS, AuthToken, IdToken, CcsCredentialType, buildClientInfo, buildClientInfoFromHomeAccountId, Authority, AzureCloudInstance, AuthorityFactory, AuthorityType, ProtocolMode, CacheManager, DefaultStorageClass, CacheRecord, CredentialEntity, AppMetadataEntity, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, ServerTelemetryEntity, AuthorityMetadataEntity, ThrottlingEntity, TokenCacheContext, StubbedNetworkModule, NetworkManager, ThrottlingUtils, UrlString, DEFAULT_CRYPTO_IMPLEMENTATION, JoseHeader, ScopeSet, AuthenticationHeaderParser, LogLevel, Logger, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, AuthError, AuthErrorMessage, ServerError, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, AADServerParamKeys, AuthenticationScheme, CacheAccountType, CacheType, ClaimsRequestKeys, CodeChallengeMethodValues, Constants, CredentialType, Errors, HeaderNames, OIDC_DEFAULT_SCOPES, ONE_DAY_IN_MS, PasswordGrantConstants, PersistentCacheKeys, PromptValue, ResponseMode, SSOTypes, THE_FAMILY_ID, ThrottlingConstants, StringUtils, ProtocolUtils, TimeUtils, ServerTelemetryManager, IntFields, PerformanceEventStatus, PerformanceEvents, PerformanceClient, StubPerformanceClient, PopTokenGenerator, version */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _client_AuthorizationCodeClient_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./client/AuthorizationCodeClient.js */ "./node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthorizationCodeClient", function() { return _client_AuthorizationCodeClient_js__WEBPACK_IMPORTED_MODULE_0__["AuthorizationCodeClient"]; }); /* harmony import */ var _client_DeviceCodeClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./client/DeviceCodeClient.js */ "./node_modules/@azure/msal-common/dist/client/DeviceCodeClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeviceCodeClient", function() { return _client_DeviceCodeClient_js__WEBPACK_IMPORTED_MODULE_1__["DeviceCodeClient"]; }); /* harmony import */ var _client_RefreshTokenClient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./client/RefreshTokenClient.js */ "./node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RefreshTokenClient", function() { return _client_RefreshTokenClient_js__WEBPACK_IMPORTED_MODULE_2__["RefreshTokenClient"]; }); /* harmony import */ var _client_ClientCredentialClient_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./client/ClientCredentialClient.js */ "./node_modules/@azure/msal-common/dist/client/ClientCredentialClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientCredentialClient", function() { return _client_ClientCredentialClient_js__WEBPACK_IMPORTED_MODULE_3__["ClientCredentialClient"]; }); /* harmony import */ var _client_OnBehalfOfClient_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./client/OnBehalfOfClient.js */ "./node_modules/@azure/msal-common/dist/client/OnBehalfOfClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OnBehalfOfClient", function() { return _client_OnBehalfOfClient_js__WEBPACK_IMPORTED_MODULE_4__["OnBehalfOfClient"]; }); /* harmony import */ var _client_SilentFlowClient_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./client/SilentFlowClient.js */ "./node_modules/@azure/msal-common/dist/client/SilentFlowClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SilentFlowClient", function() { return _client_SilentFlowClient_js__WEBPACK_IMPORTED_MODULE_5__["SilentFlowClient"]; }); /* harmony import */ var _client_UsernamePasswordClient_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./client/UsernamePasswordClient.js */ "./node_modules/@azure/msal-common/dist/client/UsernamePasswordClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsernamePasswordClient", function() { return _client_UsernamePasswordClient_js__WEBPACK_IMPORTED_MODULE_6__["UsernamePasswordClient"]; }); /* harmony import */ var _config_ClientConfiguration_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./config/ClientConfiguration.js */ "./node_modules/@azure/msal-common/dist/config/ClientConfiguration.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_SYSTEM_OPTIONS", function() { return _config_ClientConfiguration_js__WEBPACK_IMPORTED_MODULE_7__["DEFAULT_SYSTEM_OPTIONS"]; }); /* harmony import */ var _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./account/AuthToken.js */ "./node_modules/@azure/msal-common/dist/account/AuthToken.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthToken", function() { return _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_8__["AuthToken"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdToken", function() { return _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_8__["AuthToken"]; }); /* harmony import */ var _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./account/CcsCredential.js */ "./node_modules/@azure/msal-common/dist/account/CcsCredential.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CcsCredentialType", function() { return _account_CcsCredential_js__WEBPACK_IMPORTED_MODULE_9__["CcsCredentialType"]; }); /* harmony import */ var _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./account/ClientInfo.js */ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildClientInfo", function() { return _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildClientInfoFromHomeAccountId", function() { return _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_10__["buildClientInfoFromHomeAccountId"]; }); /* harmony import */ var _authority_Authority_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./authority/Authority.js */ "./node_modules/@azure/msal-common/dist/authority/Authority.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Authority", function() { return _authority_Authority_js__WEBPACK_IMPORTED_MODULE_11__["Authority"]; }); /* harmony import */ var _authority_AuthorityOptions_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./authority/AuthorityOptions.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AzureCloudInstance", function() { return _authority_AuthorityOptions_js__WEBPACK_IMPORTED_MODULE_12__["AzureCloudInstance"]; }); /* harmony import */ var _authority_AuthorityFactory_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./authority/AuthorityFactory.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthorityFactory", function() { return _authority_AuthorityFactory_js__WEBPACK_IMPORTED_MODULE_13__["AuthorityFactory"]; }); /* harmony import */ var _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./authority/AuthorityType.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityType.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthorityType", function() { return _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_14__["AuthorityType"]; }); /* harmony import */ var _authority_ProtocolMode_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./authority/ProtocolMode.js */ "./node_modules/@azure/msal-common/dist/authority/ProtocolMode.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProtocolMode", function() { return _authority_ProtocolMode_js__WEBPACK_IMPORTED_MODULE_15__["ProtocolMode"]; }); /* harmony import */ var _cache_CacheManager_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./cache/CacheManager.js */ "./node_modules/@azure/msal-common/dist/cache/CacheManager.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CacheManager", function() { return _cache_CacheManager_js__WEBPACK_IMPORTED_MODULE_16__["CacheManager"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultStorageClass", function() { return _cache_CacheManager_js__WEBPACK_IMPORTED_MODULE_16__["DefaultStorageClass"]; }); /* harmony import */ var _cache_entities_CacheRecord_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./cache/entities/CacheRecord.js */ "./node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CacheRecord", function() { return _cache_entities_CacheRecord_js__WEBPACK_IMPORTED_MODULE_17__["CacheRecord"]; }); /* harmony import */ var _cache_entities_CredentialEntity_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./cache/entities/CredentialEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CredentialEntity", function() { return _cache_entities_CredentialEntity_js__WEBPACK_IMPORTED_MODULE_18__["CredentialEntity"]; }); /* harmony import */ var _cache_entities_AppMetadataEntity_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./cache/entities/AppMetadataEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AppMetadataEntity", function() { return _cache_entities_AppMetadataEntity_js__WEBPACK_IMPORTED_MODULE_19__["AppMetadataEntity"]; }); /* harmony import */ var _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./cache/entities/AccountEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccountEntity", function() { return _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_20__["AccountEntity"]; }); /* harmony import */ var _cache_entities_IdTokenEntity_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./cache/entities/IdTokenEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IdTokenEntity", function() { return _cache_entities_IdTokenEntity_js__WEBPACK_IMPORTED_MODULE_21__["IdTokenEntity"]; }); /* harmony import */ var _cache_entities_AccessTokenEntity_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./cache/entities/AccessTokenEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccessTokenEntity", function() { return _cache_entities_AccessTokenEntity_js__WEBPACK_IMPORTED_MODULE_22__["AccessTokenEntity"]; }); /* harmony import */ var _cache_entities_RefreshTokenEntity_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./cache/entities/RefreshTokenEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RefreshTokenEntity", function() { return _cache_entities_RefreshTokenEntity_js__WEBPACK_IMPORTED_MODULE_23__["RefreshTokenEntity"]; }); /* harmony import */ var _cache_entities_ServerTelemetryEntity_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./cache/entities/ServerTelemetryEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerTelemetryEntity", function() { return _cache_entities_ServerTelemetryEntity_js__WEBPACK_IMPORTED_MODULE_24__["ServerTelemetryEntity"]; }); /* harmony import */ var _cache_entities_AuthorityMetadataEntity_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./cache/entities/AuthorityMetadataEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthorityMetadataEntity", function() { return _cache_entities_AuthorityMetadataEntity_js__WEBPACK_IMPORTED_MODULE_25__["AuthorityMetadataEntity"]; }); /* harmony import */ var _cache_entities_ThrottlingEntity_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./cache/entities/ThrottlingEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThrottlingEntity", function() { return _cache_entities_ThrottlingEntity_js__WEBPACK_IMPORTED_MODULE_26__["ThrottlingEntity"]; }); /* harmony import */ var _cache_persistence_TokenCacheContext_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./cache/persistence/TokenCacheContext.js */ "./node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TokenCacheContext", function() { return _cache_persistence_TokenCacheContext_js__WEBPACK_IMPORTED_MODULE_27__["TokenCacheContext"]; }); /* harmony import */ var _network_INetworkModule_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./network/INetworkModule.js */ "./node_modules/@azure/msal-common/dist/network/INetworkModule.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StubbedNetworkModule", function() { return _network_INetworkModule_js__WEBPACK_IMPORTED_MODULE_28__["StubbedNetworkModule"]; }); /* harmony import */ var _network_NetworkManager_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./network/NetworkManager.js */ "./node_modules/@azure/msal-common/dist/network/NetworkManager.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NetworkManager", function() { return _network_NetworkManager_js__WEBPACK_IMPORTED_MODULE_29__["NetworkManager"]; }); /* harmony import */ var _network_ThrottlingUtils_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./network/ThrottlingUtils.js */ "./node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThrottlingUtils", function() { return _network_ThrottlingUtils_js__WEBPACK_IMPORTED_MODULE_30__["ThrottlingUtils"]; }); /* harmony import */ var _url_UrlString_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./url/UrlString.js */ "./node_modules/@azure/msal-common/dist/url/UrlString.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UrlString", function() { return _url_UrlString_js__WEBPACK_IMPORTED_MODULE_31__["UrlString"]; }); /* harmony import */ var _crypto_ICrypto_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./crypto/ICrypto.js */ "./node_modules/@azure/msal-common/dist/crypto/ICrypto.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CRYPTO_IMPLEMENTATION", function() { return _crypto_ICrypto_js__WEBPACK_IMPORTED_MODULE_32__["DEFAULT_CRYPTO_IMPLEMENTATION"]; }); /* harmony import */ var _crypto_JoseHeader_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./crypto/JoseHeader.js */ "./node_modules/@azure/msal-common/dist/crypto/JoseHeader.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JoseHeader", function() { return _crypto_JoseHeader_js__WEBPACK_IMPORTED_MODULE_33__["JoseHeader"]; }); /* harmony import */ var _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./request/ScopeSet.js */ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScopeSet", function() { return _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_34__["ScopeSet"]; }); /* harmony import */ var _request_AuthenticationHeaderParser_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./request/AuthenticationHeaderParser.js */ "./node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationHeaderParser", function() { return _request_AuthenticationHeaderParser_js__WEBPACK_IMPORTED_MODULE_35__["AuthenticationHeaderParser"]; }); /* harmony import */ var _logger_Logger_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./logger/Logger.js */ "./node_modules/@azure/msal-common/dist/logger/Logger.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogLevel", function() { return _logger_Logger_js__WEBPACK_IMPORTED_MODULE_36__["LogLevel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return _logger_Logger_js__WEBPACK_IMPORTED_MODULE_36__["Logger"]; }); /* harmony import */ var _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./error/InteractionRequiredAuthError.js */ "./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthError", function() { return _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_37__["InteractionRequiredAuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InteractionRequiredAuthErrorMessage", function() { return _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_37__["InteractionRequiredAuthErrorMessage"]; }); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthError", function() { return _error_AuthError_js__WEBPACK_IMPORTED_MODULE_38__["AuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthErrorMessage", function() { return _error_AuthError_js__WEBPACK_IMPORTED_MODULE_38__["AuthErrorMessage"]; }); /* harmony import */ var _error_ServerError_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./error/ServerError.js */ "./node_modules/@azure/msal-common/dist/error/ServerError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerError", function() { return _error_ServerError_js__WEBPACK_IMPORTED_MODULE_39__["ServerError"]; }); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientAuthError", function() { return _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_40__["ClientAuthError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientAuthErrorMessage", function() { return _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_40__["ClientAuthErrorMessage"]; }); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientConfigurationError", function() { return _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_41__["ClientConfigurationError"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClientConfigurationErrorMessage", function() { return _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_41__["ClientConfigurationErrorMessage"]; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AADServerParamKeys", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["AADServerParamKeys"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AuthenticationScheme", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["AuthenticationScheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CacheAccountType", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["CacheAccountType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CacheType", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["CacheType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClaimsRequestKeys", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["ClaimsRequestKeys"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CodeChallengeMethodValues", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["CodeChallengeMethodValues"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Constants", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["Constants"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CredentialType", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["CredentialType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Errors", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["Errors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderNames", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["HeaderNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OIDC_DEFAULT_SCOPES", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["OIDC_DEFAULT_SCOPES"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ONE_DAY_IN_MS", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["ONE_DAY_IN_MS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PasswordGrantConstants", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["PasswordGrantConstants"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersistentCacheKeys", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["PersistentCacheKeys"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PromptValue", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["PromptValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResponseMode", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["ResponseMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SSOTypes", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["SSOTypes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "THE_FAMILY_ID", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["THE_FAMILY_ID"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThrottlingConstants", function() { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_42__["ThrottlingConstants"]; }); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringUtils", function() { return _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_43__["StringUtils"]; }); /* harmony import */ var _utils_ProtocolUtils_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./utils/ProtocolUtils.js */ "./node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProtocolUtils", function() { return _utils_ProtocolUtils_js__WEBPACK_IMPORTED_MODULE_44__["ProtocolUtils"]; }); /* harmony import */ var _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./utils/TimeUtils.js */ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeUtils", function() { return _utils_TimeUtils_js__WEBPACK_IMPORTED_MODULE_45__["TimeUtils"]; }); /* harmony import */ var _telemetry_server_ServerTelemetryManager_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./telemetry/server/ServerTelemetryManager.js */ "./node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServerTelemetryManager", function() { return _telemetry_server_ServerTelemetryManager_js__WEBPACK_IMPORTED_MODULE_46__["ServerTelemetryManager"]; }); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IntFields", function() { return _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_47__["IntFields"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PerformanceEventStatus", function() { return _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_47__["PerformanceEventStatus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PerformanceEvents", function() { return _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_47__["PerformanceEvents"]; }); /* harmony import */ var _telemetry_performance_PerformanceClient_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./telemetry/performance/PerformanceClient.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PerformanceClient", function() { return _telemetry_performance_PerformanceClient_js__WEBPACK_IMPORTED_MODULE_48__["PerformanceClient"]; }); /* harmony import */ var _telemetry_performance_StubPerformanceClient_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./telemetry/performance/StubPerformanceClient.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StubPerformanceClient", function() { return _telemetry_performance_StubPerformanceClient_js__WEBPACK_IMPORTED_MODULE_49__["StubPerformanceClient"]; }); /* harmony import */ var _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./crypto/PopTokenGenerator.js */ "./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopTokenGenerator", function() { return _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_50__["PopTokenGenerator"]; }); /* harmony import */ var _packageMetadata_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./packageMetadata.js */ "./node_modules/@azure/msal-common/dist/packageMetadata.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _packageMetadata_js__WEBPACK_IMPORTED_MODULE_51__["version"]; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/logger/Logger.js": /*!***************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/logger/Logger.js ***! \***************************************************************/ /*! exports provided: LogLevel, Logger */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogLevel", function() { return LogLevel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return Logger; }); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Log message level. */ var LogLevel; (function (LogLevel) { LogLevel[LogLevel["Error"] = 0] = "Error"; LogLevel[LogLevel["Warning"] = 1] = "Warning"; LogLevel[LogLevel["Info"] = 2] = "Info"; LogLevel[LogLevel["Verbose"] = 3] = "Verbose"; LogLevel[LogLevel["Trace"] = 4] = "Trace"; })(LogLevel || (LogLevel = {})); /** * Class which facilitates logging of messages to a specific place. */ var Logger = /** @class */ (function () { function Logger(loggerOptions, packageName, packageVersion) { // Current log level, defaults to info. this.level = LogLevel.Info; var defaultLoggerCallback = function () { return; }; var setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions(); this.localCallback = setLoggerOptions.loggerCallback || defaultLoggerCallback; this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false; this.level = typeof (setLoggerOptions.logLevel) === "number" ? setLoggerOptions.logLevel : LogLevel.Info; this.correlationId = setLoggerOptions.correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; this.packageName = packageName || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; this.packageVersion = packageVersion || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; } Logger.createDefaultLoggerOptions = function () { return { loggerCallback: function () { // allow users to not set loggerCallback }, piiLoggingEnabled: false, logLevel: LogLevel.Info }; }; /** * Create new Logger with existing configurations. */ Logger.prototype.clone = function (packageName, packageVersion, correlationId) { return new Logger({ loggerCallback: this.localCallback, piiLoggingEnabled: this.piiLoggingEnabled, logLevel: this.level, correlationId: correlationId || this.correlationId }, packageName, packageVersion); }; /** * Log message with required options. */ Logger.prototype.logMessage = function (logMessage, options) { if ((options.logLevel > this.level) || (!this.piiLoggingEnabled && options.containsPii)) { return; } var timestamp = new Date().toUTCString(); // Add correlationId to logs if set, correlationId provided on log messages take precedence var logHeader; if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(options.correlationId)) { logHeader = "[" + timestamp + "] : [" + options.correlationId + "]"; } else if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(this.correlationId)) { logHeader = "[" + timestamp + "] : [" + this.correlationId + "]"; } else { logHeader = "[" + timestamp + "]"; } var log = logHeader + " : " + this.packageName + "@" + this.packageVersion + " : " + LogLevel[options.logLevel] + " - " + logMessage; // debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? "-Pii": Constants.EMPTY_STRING}${options.context ? `:${options.context}` : Constants.EMPTY_STRING}`)(logMessage); this.executeCallback(options.logLevel, log, options.containsPii || false); }; /** * Execute callback with message. */ Logger.prototype.executeCallback = function (level, message, containsPii) { if (this.localCallback) { this.localCallback(level, message, containsPii); } }; /** * Logs error messages. */ Logger.prototype.error = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Error, containsPii: false, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs error messages with PII. */ Logger.prototype.errorPii = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Error, containsPii: true, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs warning messages. */ Logger.prototype.warning = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Warning, containsPii: false, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs warning messages with PII. */ Logger.prototype.warningPii = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Warning, containsPii: true, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs info messages. */ Logger.prototype.info = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Info, containsPii: false, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs info messages with PII. */ Logger.prototype.infoPii = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Info, containsPii: true, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs verbose messages. */ Logger.prototype.verbose = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Verbose, containsPii: false, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs verbose messages with PII. */ Logger.prototype.verbosePii = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Verbose, containsPii: true, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs trace messages. */ Logger.prototype.trace = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Trace, containsPii: false, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Logs trace messages with PII. */ Logger.prototype.tracePii = function (message, correlationId) { this.logMessage(message, { logLevel: LogLevel.Trace, containsPii: true, correlationId: correlationId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING }); }; /** * Returns whether PII Logging is enabled or not. */ Logger.prototype.isPiiLoggingEnabled = function () { return this.piiLoggingEnabled || false; }; return Logger; }()); //# sourceMappingURL=Logger.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/network/INetworkModule.js": /*!************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/network/INetworkModule.js ***! \************************************************************************/ /*! exports provided: StubbedNetworkModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StubbedNetworkModule", function() { return StubbedNetworkModule; }); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var StubbedNetworkModule = { sendGetRequestAsync: function () { var notImplErr = "Network interface - sendGetRequestAsync() has not been implemented for the Network interface."; return Promise.reject(_error_AuthError_js__WEBPACK_IMPORTED_MODULE_0__["AuthError"].createUnexpectedError(notImplErr)); }, sendPostRequestAsync: function () { var notImplErr = "Network interface - sendPostRequestAsync() has not been implemented for the Network interface."; return Promise.reject(_error_AuthError_js__WEBPACK_IMPORTED_MODULE_0__["AuthError"].createUnexpectedError(notImplErr)); } }; //# sourceMappingURL=INetworkModule.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/network/NetworkManager.js": /*!************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/network/NetworkManager.js ***! \************************************************************************/ /*! exports provided: NetworkManager */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NetworkManager", function() { return NetworkManager; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _ThrottlingUtils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ThrottlingUtils.js */ "./node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js"); /* harmony import */ var _error_AuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/AuthError.js */ "./node_modules/@azure/msal-common/dist/error/AuthError.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var NetworkManager = /** @class */ (function () { function NetworkManager(networkClient, cacheManager) { this.networkClient = networkClient; this.cacheManager = cacheManager; } /** * Wraps sendPostRequestAsync with necessary preflight and postflight logic * @param thumbprint * @param tokenEndpoint * @param options */ NetworkManager.prototype.sendPostRequest = function (thumbprint, tokenEndpoint, options) { return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var response, e_1; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { switch (_a.label) { case 0: _ThrottlingUtils_js__WEBPACK_IMPORTED_MODULE_1__["ThrottlingUtils"].preProcess(this.cacheManager, thumbprint); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); return [4 /*yield*/, this.networkClient.sendPostRequestAsync(tokenEndpoint, options)]; case 2: response = _a.sent(); return [3 /*break*/, 4]; case 3: e_1 = _a.sent(); if (e_1 instanceof _error_AuthError_js__WEBPACK_IMPORTED_MODULE_2__["AuthError"]) { throw e_1; } else { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createNetworkError(tokenEndpoint, e_1); } case 4: _ThrottlingUtils_js__WEBPACK_IMPORTED_MODULE_1__["ThrottlingUtils"].postProcess(this.cacheManager, thumbprint, response); return [2 /*return*/, response]; } }); }); }; return NetworkManager; }()); //# sourceMappingURL=NetworkManager.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js": /*!*************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js ***! \*************************************************************************/ /*! exports provided: ThrottlingUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThrottlingUtils", function() { return ThrottlingUtils; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _error_ServerError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ServerError.js */ "./node_modules/@azure/msal-common/dist/error/ServerError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var ThrottlingUtils = /** @class */ (function () { function ThrottlingUtils() { } /** * Prepares a RequestThumbprint to be stored as a key. * @param thumbprint */ ThrottlingUtils.generateThrottlingStorageKey = function (thumbprint) { return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["ThrottlingConstants"].THROTTLING_PREFIX + "." + JSON.stringify(thumbprint); }; /** * Performs necessary throttling checks before a network request. * @param cacheManager * @param thumbprint */ ThrottlingUtils.preProcess = function (cacheManager, thumbprint) { var _a; var key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint); var value = cacheManager.getThrottlingCache(key); if (value) { if (value.throttleTime < Date.now()) { cacheManager.removeItem(key); return; } throw new _error_ServerError_js__WEBPACK_IMPORTED_MODULE_1__["ServerError"](((_a = value.errorCodes) === null || _a === void 0 ? void 0 : _a.join(" ")) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING, value.errorMessage, value.subError); } }; /** * Performs necessary throttling checks after a network request. * @param cacheManager * @param thumbprint * @param response */ ThrottlingUtils.postProcess = function (cacheManager, thumbprint, response) { if (ThrottlingUtils.checkResponseStatus(response) || ThrottlingUtils.checkResponseForRetryAfter(response)) { var thumbprintValue = { throttleTime: ThrottlingUtils.calculateThrottleTime(parseInt(response.headers[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["HeaderNames"].RETRY_AFTER])), error: response.body.error, errorCodes: response.body.error_codes, errorMessage: response.body.error_description, subError: response.body.suberror }; cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue); } }; /** * Checks a NetworkResponse object's status codes against 429 or 5xx * @param response */ ThrottlingUtils.checkResponseStatus = function (response) { return response.status === 429 || response.status >= 500 && response.status < 600; }; /** * Checks a NetworkResponse object's RetryAfter header * @param response */ ThrottlingUtils.checkResponseForRetryAfter = function (response) { if (response.headers) { return response.headers.hasOwnProperty(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["HeaderNames"].RETRY_AFTER) && (response.status < 200 || response.status >= 300); } return false; }; /** * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds. * @param throttleTime */ ThrottlingUtils.calculateThrottleTime = function (throttleTime) { var time = throttleTime <= 0 ? 0 : throttleTime; var currentSeconds = Date.now() / 1000; return Math.floor(Math.min(currentSeconds + (time || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["ThrottlingConstants"].DEFAULT_THROTTLE_TIME_SECONDS), currentSeconds + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["ThrottlingConstants"].DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1000); }; ThrottlingUtils.removeThrottle = function (cacheManager, clientId, request, homeAccountIdentifier) { var thumbprint = { clientId: clientId, authority: request.authority, scopes: request.scopes, homeAccountIdentifier: homeAccountIdentifier, claims: request.claims, authenticationScheme: request.authenticationScheme, resourceRequestMethod: request.resourceRequestMethod, resourceRequestUri: request.resourceRequestUri, shrClaims: request.shrClaims, sshKid: request.sshKid }; var key = this.generateThrottlingStorageKey(thumbprint); cacheManager.removeItem(key); }; return ThrottlingUtils; }()); //# sourceMappingURL=ThrottlingUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/packageMetadata.js": /*!*****************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/packageMetadata.js ***! \*****************************************************************/ /*! exports provided: name, version */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "name", function() { return name; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* eslint-disable header/header */ var name = "@azure/msal-common"; var version = "13.3.1"; //# sourceMappingURL=packageMetadata.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js": /*!************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js ***! \************************************************************************************/ /*! exports provided: AuthenticationHeaderParser */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthenticationHeaderParser", function() { return AuthenticationHeaderParser; }); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This is a helper class that parses supported HTTP response authentication headers to extract and return * header challenge values that can be used outside the basic authorization flows. */ var AuthenticationHeaderParser = /** @class */ (function () { function AuthenticationHeaderParser(headers) { this.headers = headers; } /** * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers. * @returns */ AuthenticationHeaderParser.prototype.getShrNonce = function () { // Attempt to parse nonce from Authentiacation-Info var authenticationInfo = this.headers[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["HeaderNames"].AuthenticationInfo]; if (authenticationInfo) { var authenticationInfoChallenges = this.parseChallenges(authenticationInfo); if (authenticationInfoChallenges.nextnonce) { return authenticationInfoChallenges.nextnonce; } throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createInvalidAuthenticationHeaderError(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["HeaderNames"].AuthenticationInfo, "nextnonce challenge is missing."); } // Attempt to parse nonce from WWW-Authenticate var wwwAuthenticate = this.headers[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["HeaderNames"].WWWAuthenticate]; if (wwwAuthenticate) { var wwwAuthenticateChallenges = this.parseChallenges(wwwAuthenticate); if (wwwAuthenticateChallenges.nonce) { return wwwAuthenticateChallenges.nonce; } throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createInvalidAuthenticationHeaderError(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["HeaderNames"].WWWAuthenticate, "nonce challenge is missing."); } // If neither header is present, throw missing headers error throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createMissingNonceAuthenticationHeadersError(); }; /** * Parses an HTTP header's challenge set into a key/value map. * @param header * @returns */ AuthenticationHeaderParser.prototype.parseChallenges = function (header) { var schemeSeparator = header.indexOf(" "); var challenges = header.substr(schemeSeparator + 1).split(","); var challengeMap = {}; challenges.forEach(function (challenge) { var _a = challenge.split("="), key = _a[0], value = _a[1]; // Remove escaped quotation marks (', ") from challenge string to keep only the challenge value challengeMap[key] = unescape(value.replace(/['"]+/g, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING)); }); return challengeMap; }; return AuthenticationHeaderParser; }()); //# sourceMappingURL=AuthenticationHeaderParser.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js": /*!*********************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js ***! \*********************************************************************************/ /*! exports provided: RequestParameterBuilder */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequestParameterBuilder", function() { return RequestParameterBuilder; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ScopeSet.js */ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RequestValidator.js */ "./node_modules/@azure/msal-common/dist/request/RequestValidator.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var RequestParameterBuilder = /** @class */ (function () { function RequestParameterBuilder() { this.parameters = new Map(); } /** * add response_type = code */ RequestParameterBuilder.prototype.addResponseTypeCode = function () { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].RESPONSE_TYPE, encodeURIComponent(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].CODE_RESPONSE_TYPE)); }; /** * add response_type = token id_token */ RequestParameterBuilder.prototype.addResponseTypeForTokenAndIdToken = function () { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].RESPONSE_TYPE, encodeURIComponent(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].TOKEN_RESPONSE_TYPE + " " + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].ID_TOKEN_RESPONSE_TYPE)); }; /** * add response_mode. defaults to query. * @param responseMode */ RequestParameterBuilder.prototype.addResponseMode = function (responseMode) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].RESPONSE_MODE, encodeURIComponent((responseMode) ? responseMode : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ResponseMode"].QUERY)); }; /** * Add flag to indicate STS should attempt to use WAM if available */ RequestParameterBuilder.prototype.addNativeBroker = function () { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].NATIVE_BROKER, encodeURIComponent("1")); }; /** * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios * @param scopeSet * @param addOidcScopes */ RequestParameterBuilder.prototype.addScopes = function (scopes, addOidcScopes) { if (addOidcScopes === void 0) { addOidcScopes = true; } var requestScopes = addOidcScopes ? Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(scopes || [], _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["OIDC_DEFAULT_SCOPES"]) : scopes || []; var scopeSet = new _ScopeSet_js__WEBPACK_IMPORTED_MODULE_2__["ScopeSet"](requestScopes); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].SCOPE, encodeURIComponent(scopeSet.printScopes())); }; /** * add clientId * @param clientId */ RequestParameterBuilder.prototype.addClientId = function (clientId) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CLIENT_ID, encodeURIComponent(clientId)); }; /** * add redirect_uri * @param redirectUri */ RequestParameterBuilder.prototype.addRedirectUri = function (redirectUri) { _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__["RequestValidator"].validateRedirectUri(redirectUri); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].REDIRECT_URI, encodeURIComponent(redirectUri)); }; /** * add post logout redirectUri * @param redirectUri */ RequestParameterBuilder.prototype.addPostLogoutRedirectUri = function (redirectUri) { _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__["RequestValidator"].validateRedirectUri(redirectUri); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].POST_LOGOUT_URI, encodeURIComponent(redirectUri)); }; /** * add id_token_hint to logout request * @param idTokenHint */ RequestParameterBuilder.prototype.addIdTokenHint = function (idTokenHint) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].ID_TOKEN_HINT, encodeURIComponent(idTokenHint)); }; /** * add domain_hint * @param domainHint */ RequestParameterBuilder.prototype.addDomainHint = function (domainHint) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["SSOTypes"].DOMAIN_HINT, encodeURIComponent(domainHint)); }; /** * add login_hint * @param loginHint */ RequestParameterBuilder.prototype.addLoginHint = function (loginHint) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["SSOTypes"].LOGIN_HINT, encodeURIComponent(loginHint)); }; /** * Adds the CCS (Cache Credential Service) query parameter for login_hint * @param loginHint */ RequestParameterBuilder.prototype.addCcsUpn = function (loginHint) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["HeaderNames"].CCS_HEADER, encodeURIComponent("UPN:" + loginHint)); }; /** * Adds the CCS (Cache Credential Service) query parameter for account object * @param loginHint */ RequestParameterBuilder.prototype.addCcsOid = function (clientInfo) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["HeaderNames"].CCS_HEADER, encodeURIComponent("Oid:" + clientInfo.uid + "@" + clientInfo.utid)); }; /** * add sid * @param sid */ RequestParameterBuilder.prototype.addSid = function (sid) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["SSOTypes"].SID, encodeURIComponent(sid)); }; /** * add claims * @param claims */ RequestParameterBuilder.prototype.addClaims = function (claims, clientCapabilities) { var mergedClaims = this.addClientCapabilitiesToClaims(claims, clientCapabilities); _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__["RequestValidator"].validateClaims(mergedClaims); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CLAIMS, encodeURIComponent(mergedClaims)); }; /** * add correlationId * @param correlationId */ RequestParameterBuilder.prototype.addCorrelationId = function (correlationId) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CLIENT_REQUEST_ID, encodeURIComponent(correlationId)); }; /** * add library info query params * @param libraryInfo */ RequestParameterBuilder.prototype.addLibraryInfo = function (libraryInfo) { // Telemetry Info this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_CLIENT_SKU, libraryInfo.sku); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_CLIENT_VER, libraryInfo.version); if (libraryInfo.os) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_CLIENT_OS, libraryInfo.os); } if (libraryInfo.cpu) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_CLIENT_CPU, libraryInfo.cpu); } }; /** * Add client telemetry parameters * @param appTelemetry */ RequestParameterBuilder.prototype.addApplicationTelemetry = function (appTelemetry) { if (appTelemetry === null || appTelemetry === void 0 ? void 0 : appTelemetry.appName) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_APP_NAME, appTelemetry.appName); } if (appTelemetry === null || appTelemetry === void 0 ? void 0 : appTelemetry.appVersion) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_APP_VER, appTelemetry.appVersion); } }; /** * add prompt * @param prompt */ RequestParameterBuilder.prototype.addPrompt = function (prompt) { _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__["RequestValidator"].validatePrompt(prompt); this.parameters.set("" + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].PROMPT, encodeURIComponent(prompt)); }; /** * add state * @param state */ RequestParameterBuilder.prototype.addState = function (state) { if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmpty(state)) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].STATE, encodeURIComponent(state)); } }; /** * add nonce * @param nonce */ RequestParameterBuilder.prototype.addNonce = function (nonce) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].NONCE, encodeURIComponent(nonce)); }; /** * add code_challenge and code_challenge_method * - throw if either of them are not passed * @param codeChallenge * @param codeChallengeMethod */ RequestParameterBuilder.prototype.addCodeChallengeParams = function (codeChallenge, codeChallengeMethod) { _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__["RequestValidator"].validateCodeChallengeParams(codeChallenge, codeChallengeMethod); if (codeChallenge && codeChallengeMethod) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CODE_CHALLENGE, encodeURIComponent(codeChallenge)); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CODE_CHALLENGE_METHOD, encodeURIComponent(codeChallengeMethod)); } else { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_3__["ClientConfigurationError"].createInvalidCodeChallengeParamsError(); } }; /** * add the `authorization_code` passed by the user to exchange for a token * @param code */ RequestParameterBuilder.prototype.addAuthorizationCode = function (code) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CODE, encodeURIComponent(code)); }; /** * add the `authorization_code` passed by the user to exchange for a token * @param code */ RequestParameterBuilder.prototype.addDeviceCode = function (code) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].DEVICE_CODE, encodeURIComponent(code)); }; /** * add the `refreshToken` passed by the user * @param refreshToken */ RequestParameterBuilder.prototype.addRefreshToken = function (refreshToken) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].REFRESH_TOKEN, encodeURIComponent(refreshToken)); }; /** * add the `code_verifier` passed by the user to exchange for a token * @param codeVerifier */ RequestParameterBuilder.prototype.addCodeVerifier = function (codeVerifier) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CODE_VERIFIER, encodeURIComponent(codeVerifier)); }; /** * add client_secret * @param clientSecret */ RequestParameterBuilder.prototype.addClientSecret = function (clientSecret) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CLIENT_SECRET, encodeURIComponent(clientSecret)); }; /** * add clientAssertion for confidential client flows * @param clientAssertion */ RequestParameterBuilder.prototype.addClientAssertion = function (clientAssertion) { if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmpty(clientAssertion)) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CLIENT_ASSERTION, encodeURIComponent(clientAssertion)); } }; /** * add clientAssertionType for confidential client flows * @param clientAssertionType */ RequestParameterBuilder.prototype.addClientAssertionType = function (clientAssertionType) { if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmpty(clientAssertionType)) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].CLIENT_ASSERTION_TYPE, encodeURIComponent(clientAssertionType)); } }; /** * add OBO assertion for confidential client flows * @param clientAssertion */ RequestParameterBuilder.prototype.addOboAssertion = function (oboAssertion) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].OBO_ASSERTION, encodeURIComponent(oboAssertion)); }; /** * add grant type * @param grantType */ RequestParameterBuilder.prototype.addRequestTokenUse = function (tokenUse) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].REQUESTED_TOKEN_USE, encodeURIComponent(tokenUse)); }; /** * add grant type * @param grantType */ RequestParameterBuilder.prototype.addGrantType = function (grantType) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].GRANT_TYPE, encodeURIComponent(grantType)); }; /** * add client info * */ RequestParameterBuilder.prototype.addClientInfo = function () { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CLIENT_INFO"], "1"); }; /** * add extraQueryParams * @param eQParams */ RequestParameterBuilder.prototype.addExtraQueryParameters = function (eQParams) { var _this = this; var sanitizedEQParams = _RequestValidator_js__WEBPACK_IMPORTED_MODULE_4__["RequestValidator"].sanitizeEQParams(eQParams, this.parameters); Object.keys(sanitizedEQParams).forEach(function (key) { _this.parameters.set(key, eQParams[key]); }); }; RequestParameterBuilder.prototype.addClientCapabilitiesToClaims = function (claims, clientCapabilities) { var mergedClaims; // Parse provided claims into JSON object or initialize empty object if (!claims) { mergedClaims = {}; } else { try { mergedClaims = JSON.parse(claims); } catch (e) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_3__["ClientConfigurationError"].createInvalidClaimsRequestError(); } } if (clientCapabilities && clientCapabilities.length > 0) { if (!mergedClaims.hasOwnProperty(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ClaimsRequestKeys"].ACCESS_TOKEN)) { // Add access_token key to claims object mergedClaims[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ClaimsRequestKeys"].ACCESS_TOKEN] = {}; } // Add xms_cc claim with provided clientCapabilities to access_token key mergedClaims[_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ClaimsRequestKeys"].ACCESS_TOKEN][_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ClaimsRequestKeys"].XMS_CC] = { values: clientCapabilities }; } return JSON.stringify(mergedClaims); }; /** * adds `username` for Password Grant flow * @param username */ RequestParameterBuilder.prototype.addUsername = function (username) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["PasswordGrantConstants"].username, encodeURIComponent(username)); }; /** * adds `password` for Password Grant flow * @param password */ RequestParameterBuilder.prototype.addPassword = function (password) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["PasswordGrantConstants"].password, encodeURIComponent(password)); }; /** * add pop_jwk to query params * @param cnfString */ RequestParameterBuilder.prototype.addPopToken = function (cnfString) { if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmpty(cnfString)) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].TOKEN_TYPE, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].POP); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].REQ_CNF, encodeURIComponent(cnfString)); } }; /** * add SSH JWK and key ID to query params */ RequestParameterBuilder.prototype.addSshJwk = function (sshJwkString) { if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_5__["StringUtils"].isEmpty(sshJwkString)) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].TOKEN_TYPE, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AuthenticationScheme"].SSH); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].REQ_CNF, encodeURIComponent(sshJwkString)); } }; /** * add server telemetry fields * @param serverTelemetryManager */ RequestParameterBuilder.prototype.addServerTelemetry = function (serverTelemetryManager) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue()); this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue()); }; /** * Adds parameter that indicates to the server that throttling is supported */ RequestParameterBuilder.prototype.addThrottling = function () { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].X_MS_LIB_CAPABILITY, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["ThrottlingConstants"].X_MS_LIB_CAPABILITY_VALUE); }; /** * Adds logout_hint parameter for "silent" logout which prevent server account picker */ RequestParameterBuilder.prototype.addLogoutHint = function (logoutHint) { this.parameters.set(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_1__["AADServerParamKeys"].LOGOUT_HINT, encodeURIComponent(logoutHint)); }; /** * Utility to create a URL from the params map */ RequestParameterBuilder.prototype.createQueryString = function () { var queryParameterArray = new Array(); this.parameters.forEach(function (value, key) { queryParameterArray.push(key + "=" + value); }); return queryParameterArray.join("&"); }; return RequestParameterBuilder; }()); //# sourceMappingURL=RequestParameterBuilder.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/request/RequestValidator.js": /*!**************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/request/RequestValidator.js ***! \**************************************************************************/ /*! exports provided: RequestValidator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequestValidator", function() { return RequestValidator; }); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Validates server consumable params from the "request" objects */ var RequestValidator = /** @class */ (function () { function RequestValidator() { } /** * Utility to check if the `redirectUri` in the request is a non-null value * @param redirectUri */ RequestValidator.validateRedirectUri = function (redirectUri) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(redirectUri)) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createRedirectUriEmptyError(); } }; /** * Utility to validate prompt sent by the user in the request * @param prompt */ RequestValidator.validatePrompt = function (prompt) { var promptValues = []; for (var value in _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["PromptValue"]) { promptValues.push(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["PromptValue"][value]); } if (promptValues.indexOf(prompt) < 0) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createInvalidPromptError(prompt); } }; RequestValidator.validateClaims = function (claims) { try { JSON.parse(claims); } catch (e) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createInvalidClaimsRequestError(); } }; /** * Utility to validate code_challenge and code_challenge_method * @param codeChallenge * @param codeChallengeMethod */ RequestValidator.validateCodeChallengeParams = function (codeChallenge, codeChallengeMethod) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(codeChallenge) || _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(codeChallengeMethod)) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createInvalidCodeChallengeParamsError(); } else { this.validateCodeChallengeMethod(codeChallengeMethod); } }; /** * Utility to validate code_challenge_method * @param codeChallengeMethod */ RequestValidator.validateCodeChallengeMethod = function (codeChallengeMethod) { if ([ _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CodeChallengeMethodValues"].PLAIN, _utils_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CodeChallengeMethodValues"].S256 ].indexOf(codeChallengeMethod) < 0) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createInvalidCodeChallengeMethodError(); } }; /** * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters * @param request */ RequestValidator.sanitizeEQParams = function (eQParams, queryParams) { if (!eQParams) { return {}; } // Remove any query parameters already included in SSO params queryParams.forEach(function (value, key) { if (eQParams[key]) { delete eQParams[key]; } }); // remove empty string parameters // eslint-disable-next-line @typescript-eslint/no-unused-vars return Object.fromEntries(Object.entries(eQParams).filter(function (_a) { var value = _a[1]; return value !== ""; })); }; return RequestValidator; }()); //# sourceMappingURL=RequestValidator.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js": /*!******************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/request/ScopeSet.js ***! \******************************************************************/ /*! exports provided: ScopeSet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScopeSet", function() { return ScopeSet; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions * to ensure uniqueness of strings. */ var ScopeSet = /** @class */ (function () { function ScopeSet(inputScopes) { var _this = this; // Filter empty string and null/undefined array items var scopeArr = inputScopes ? _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].trimArrayEntries(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(inputScopes)) : []; var filteredInput = scopeArr ? _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].removeEmptyStringsFromArray(scopeArr) : []; // Validate and filter scopes (validate function throws if validation fails) this.validateInputScopes(filteredInput); this.scopes = new Set(); // Iterator in constructor not supported by IE11 filteredInput.forEach(function (scope) { return _this.scopes.add(scope); }); } /** * Factory method to create ScopeSet from space-delimited string * @param inputScopeString * @param appClientId * @param scopesRequired */ ScopeSet.fromString = function (inputScopeString) { var scopeString = inputScopeString || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING; var inputScopes = scopeString.split(" "); return new ScopeSet(inputScopes); }; /** * Creates the set of scopes to search for in cache lookups * @param inputScopeString * @returns */ ScopeSet.createSearchScopes = function (inputScopeString) { var scopeSet = new ScopeSet(inputScopeString); if (!scopeSet.containsOnlyOIDCScopes()) { scopeSet.removeOIDCScopes(); } else { scopeSet.removeScope(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].OFFLINE_ACCESS_SCOPE); } return scopeSet; }; /** * Used to validate the scopes input parameter requested by the developer. * @param {Array} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned. * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not */ ScopeSet.prototype.validateInputScopes = function (inputScopes) { // Check if scopes are required but not given or is an empty array if (!inputScopes || inputScopes.length < 1) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_1__["ClientConfigurationError"].createEmptyScopesArrayError(); } }; /** * Check if a given scope is present in this set of scopes. * @param scope */ ScopeSet.prototype.containsScope = function (scope) { var lowerCaseScopes = this.printScopesLowerCase().split(" "); var lowerCaseScopesSet = new ScopeSet(lowerCaseScopes); // compare lowercase scopes return !_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(scope) ? lowerCaseScopesSet.scopes.has(scope.toLowerCase()) : false; }; /** * Check if a set of scopes is present in this set of scopes. * @param scopeSet */ ScopeSet.prototype.containsScopeSet = function (scopeSet) { var _this = this; if (!scopeSet || scopeSet.scopes.size <= 0) { return false; } return (this.scopes.size >= scopeSet.scopes.size && scopeSet.asArray().every(function (scope) { return _this.containsScope(scope); })); }; /** * Check if set of scopes contains only the defaults */ ScopeSet.prototype.containsOnlyOIDCScopes = function () { var _this = this; var defaultScopeCount = 0; _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["OIDC_SCOPES"].forEach(function (defaultScope) { if (_this.containsScope(defaultScope)) { defaultScopeCount += 1; } }); return this.scopes.size === defaultScopeCount; }; /** * Appends single scope if passed * @param newScope */ ScopeSet.prototype.appendScope = function (newScope) { if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(newScope)) { this.scopes.add(newScope.trim()); } }; /** * Appends multiple scopes if passed * @param newScopes */ ScopeSet.prototype.appendScopes = function (newScopes) { var _this = this; try { newScopes.forEach(function (newScope) { return _this.appendScope(newScope); }); } catch (e) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createAppendScopeSetError(e); } }; /** * Removes element from set of scopes. * @param scope */ ScopeSet.prototype.removeScope = function (scope) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(scope)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createRemoveEmptyScopeFromSetError(scope); } this.scopes.delete(scope.trim()); }; /** * Removes default scopes from set of scopes * Primarily used to prevent cache misses if the default scopes are not returned from the server */ ScopeSet.prototype.removeOIDCScopes = function () { var _this = this; _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["OIDC_SCOPES"].forEach(function (defaultScope) { _this.scopes.delete(defaultScope); }); }; /** * Combines an array of scopes with the current set of scopes. * @param otherScopes */ ScopeSet.prototype.unionScopeSets = function (otherScopes) { if (!otherScopes) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createEmptyInputScopeSetError(); } var unionScopes = new Set(); // Iterator in constructor not supported in IE11 otherScopes.scopes.forEach(function (scope) { return unionScopes.add(scope.toLowerCase()); }); this.scopes.forEach(function (scope) { return unionScopes.add(scope.toLowerCase()); }); return unionScopes; }; /** * Check if scopes intersect between this set and another. * @param otherScopes */ ScopeSet.prototype.intersectingScopeSets = function (otherScopes) { if (!otherScopes) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_3__["ClientAuthError"].createEmptyInputScopeSetError(); } // Do not allow OIDC scopes to be the only intersecting scopes if (!otherScopes.containsOnlyOIDCScopes()) { otherScopes.removeOIDCScopes(); } var unionScopes = this.unionScopeSets(otherScopes); var sizeOtherScopes = otherScopes.getScopeCount(); var sizeThisScopes = this.getScopeCount(); var sizeUnionScopes = unionScopes.size; return sizeUnionScopes < (sizeThisScopes + sizeOtherScopes); }; /** * Returns size of set of scopes. */ ScopeSet.prototype.getScopeCount = function () { return this.scopes.size; }; /** * Returns the scopes as an array of string values */ ScopeSet.prototype.asArray = function () { var array = []; this.scopes.forEach(function (val) { return array.push(val); }); return array; }; /** * Prints scopes into a space-delimited string */ ScopeSet.prototype.printScopes = function () { if (this.scopes) { var scopeArr = this.asArray(); return scopeArr.join(" "); } return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_4__["Constants"].EMPTY_STRING; }; /** * Prints scopes into a space-delimited lower-case string (used for caching) */ ScopeSet.prototype.printScopesLowerCase = function () { return this.printScopes().toLowerCase(); }; return ScopeSet; }()); //# sourceMappingURL=ScopeSet.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/response/ResponseHandler.js": /*!**************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/response/ResponseHandler.js ***! \**************************************************************************/ /*! exports provided: ResponseHandler */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponseHandler", function() { return ResponseHandler; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../account/ClientInfo.js */ "./node_modules/@azure/msal-common/dist/account/ClientInfo.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _error_ServerError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error/ServerError.js */ "./node_modules/@azure/msal-common/dist/error/ServerError.js"); /* harmony import */ var _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../account/AuthToken.js */ "./node_modules/@azure/msal-common/dist/account/AuthToken.js"); /* harmony import */ var _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../request/ScopeSet.js */ "./node_modules/@azure/msal-common/dist/request/ScopeSet.js"); /* harmony import */ var _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cache/entities/AccountEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js"); /* harmony import */ var _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../authority/AuthorityType.js */ "./node_modules/@azure/msal-common/dist/authority/AuthorityType.js"); /* harmony import */ var _cache_entities_IdTokenEntity_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../cache/entities/IdTokenEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js"); /* harmony import */ var _cache_entities_AccessTokenEntity_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../cache/entities/AccessTokenEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js"); /* harmony import */ var _cache_entities_RefreshTokenEntity_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cache/entities/RefreshTokenEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js"); /* harmony import */ var _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../error/InteractionRequiredAuthError.js */ "./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js"); /* harmony import */ var _cache_entities_CacheRecord_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../cache/entities/CacheRecord.js */ "./node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js"); /* harmony import */ var _utils_ProtocolUtils_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/ProtocolUtils.js */ "./node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../crypto/PopTokenGenerator.js */ "./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js"); /* harmony import */ var _cache_entities_AppMetadataEntity_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../cache/entities/AppMetadataEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js"); /* harmony import */ var _cache_persistence_TokenCacheContext_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../cache/persistence/TokenCacheContext.js */ "./node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js"); /* harmony import */ var _telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../telemetry/performance/PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Class that handles response parsing. */ var ResponseHandler = /** @class */ (function () { function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) { this.clientId = clientId; this.cacheStorage = cacheStorage; this.cryptoObj = cryptoObj; this.logger = logger; this.serializableCache = serializableCache; this.persistencePlugin = persistencePlugin; this.performanceClient = performanceClient; } /** * Function which validates server authorization code response. * @param serverResponseHash * @param cachedState * @param cryptoObj */ ResponseHandler.prototype.validateServerAuthorizationCodeResponse = function (serverResponseHash, cachedState, cryptoObj) { if (!serverResponseHash.state || !cachedState) { throw !serverResponseHash.state ? _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createStateNotFoundError("Server State") : _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createStateNotFoundError("Cached State"); } if (decodeURIComponent(serverResponseHash.state) !== decodeURIComponent(cachedState)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createStateMismatchError(); } // Check for error if (serverResponseHash.error || serverResponseHash.error_description || serverResponseHash.suberror) { if (_error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_12__["InteractionRequiredAuthError"].isInteractionRequiredError(serverResponseHash.error, serverResponseHash.error_description, serverResponseHash.suberror)) { throw new _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_12__["InteractionRequiredAuthError"](serverResponseHash.error || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror, serverResponseHash.timestamp || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponseHash.trace_id || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponseHash.correlation_id || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponseHash.claims || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING); } throw new _error_ServerError_js__WEBPACK_IMPORTED_MODULE_4__["ServerError"](serverResponseHash.error || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror); } if (serverResponseHash.client_info) { Object(_account_ClientInfo_js__WEBPACK_IMPORTED_MODULE_1__["buildClientInfo"])(serverResponseHash.client_info, cryptoObj); } }; /** * Function which validates server authorization token response. * @param serverResponse */ ResponseHandler.prototype.validateTokenResponse = function (serverResponse) { // Check for error if (serverResponse.error || serverResponse.error_description || serverResponse.suberror) { if (_error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_12__["InteractionRequiredAuthError"].isInteractionRequiredError(serverResponse.error, serverResponse.error_description, serverResponse.suberror)) { throw new _error_InteractionRequiredAuthError_js__WEBPACK_IMPORTED_MODULE_12__["InteractionRequiredAuthError"](serverResponse.error, serverResponse.error_description, serverResponse.suberror, serverResponse.timestamp || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponse.trace_id || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponse.correlation_id || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, serverResponse.claims || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING); } var errString = serverResponse.error_codes + " - [" + serverResponse.timestamp + "]: " + serverResponse.error_description + " - Correlation ID: " + serverResponse.correlation_id + " - Trace ID: " + serverResponse.trace_id; throw new _error_ServerError_js__WEBPACK_IMPORTED_MODULE_4__["ServerError"](serverResponse.error, errString, serverResponse.suberror); } }; /** * Returns a constructed token response based on given string. Also manages the cache updates and cleanups. * @param serverTokenResponse * @param authority */ ResponseHandler.prototype.handleServerTokenResponse = function (serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) { var _a; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var idTokenObj, authTime, requestStateObj, cacheRecord, cacheContext, key, account; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) { switch (_b.label) { case 0: (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(_telemetry_performance_PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_19__["PerformanceEvents"].HandleServerTokenResponse, serverTokenResponse.correlation_id); if (serverTokenResponse.id_token) { idTokenObj = new _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_5__["AuthToken"](serverTokenResponse.id_token || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, this.cryptoObj); // token nonce check (TODO: Add a warning if no nonce is given?) if (authCodePayload && !_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(authCodePayload.nonce)) { if (idTokenObj.claims.nonce !== authCodePayload.nonce) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createNonceMismatchError(); } } // token max_age check if (request.maxAge || (request.maxAge === 0)) { authTime = idTokenObj.claims.auth_time; if (!authTime) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createAuthTimeNotFoundError(); } _account_AuthToken_js__WEBPACK_IMPORTED_MODULE_5__["AuthToken"].checkMaxAge(authTime, request.maxAge); } } // generate homeAccountId this.homeAccountIdentifier = _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_7__["AccountEntity"].generateHomeAccountId(serverTokenResponse.client_info || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, authority.authorityType, this.logger, this.cryptoObj, idTokenObj); if (!!authCodePayload && !!authCodePayload.state) { requestStateObj = _utils_ProtocolUtils_js__WEBPACK_IMPORTED_MODULE_14__["ProtocolUtils"].parseRequestState(this.cryptoObj, authCodePayload.state); } // Add keyId from request to serverTokenResponse if defined serverTokenResponse.key_id = serverTokenResponse.key_id || request.sshKid || undefined; cacheRecord = this.generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload); _b.label = 1; case 1: _b.trys.push([1, , 5, 8]); if (!(this.persistencePlugin && this.serializableCache)) return [3 /*break*/, 3]; this.logger.verbose("Persistence enabled, calling beforeCacheAccess"); cacheContext = new _cache_persistence_TokenCacheContext_js__WEBPACK_IMPORTED_MODULE_18__["TokenCacheContext"](this.serializableCache, true); return [4 /*yield*/, this.persistencePlugin.beforeCacheAccess(cacheContext)]; case 2: _b.sent(); _b.label = 3; case 3: /* * When saving a refreshed tokens to the cache, it is expected that the account that was used is present in the cache. * If not present, we should return null, as it's the case that another application called removeAccount in between * the calls to getAllAccounts and acquireTokenSilent. We should not overwrite that removal, unless explicitly flagged by * the developer, as in the case of refresh token flow used in ADAL Node to MSAL Node migration. */ if (handlingRefreshTokenResponse && !forceCacheRefreshTokenResponse && cacheRecord.account) { key = cacheRecord.account.generateAccountKey(); account = this.cacheStorage.getAccount(key); if (!account) { this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"); return [2 /*return*/, ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, undefined, serverRequestId)]; } } return [4 /*yield*/, this.cacheStorage.saveCacheRecord(cacheRecord)]; case 4: _b.sent(); return [3 /*break*/, 8]; case 5: if (!(this.persistencePlugin && this.serializableCache && cacheContext)) return [3 /*break*/, 7]; this.logger.verbose("Persistence enabled, calling afterCacheAccess"); return [4 /*yield*/, this.persistencePlugin.afterCacheAccess(cacheContext)]; case 6: _b.sent(); _b.label = 7; case 7: return [7 /*endfinally*/]; case 8: return [2 /*return*/, ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, serverTokenResponse, serverRequestId)]; } }); }); }; /** * Generates CacheRecord * @param serverTokenResponse * @param idTokenObj * @param authority */ ResponseHandler.prototype.generateCacheRecord = function (serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload) { var env = authority.getPreferredCache(); if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(env)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createInvalidCacheEnvironmentError(); } // IdToken: non AAD scenarios can have empty realm var cachedIdToken; var cachedAccount; if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(serverTokenResponse.id_token) && !!idTokenObj) { cachedIdToken = _cache_entities_IdTokenEntity_js__WEBPACK_IMPORTED_MODULE_9__["IdTokenEntity"].createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, this.clientId, idTokenObj.claims.tid || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING); cachedAccount = this.generateAccountEntity(serverTokenResponse, idTokenObj, authority, authCodePayload); } // AccessToken var cachedAccessToken = null; if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(serverTokenResponse.access_token)) { // If scopes not returned in server response, use request scopes var responseScopes = serverTokenResponse.scope ? _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_6__["ScopeSet"].fromString(serverTokenResponse.scope) : new _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_6__["ScopeSet"](request.scopes || []); /* * Use timestamp calculated before request * Server may return timestamps as strings, parse to numbers if so. */ var expiresIn = (typeof serverTokenResponse.expires_in === "string" ? parseInt(serverTokenResponse.expires_in, 10) : serverTokenResponse.expires_in) || 0; var extExpiresIn = (typeof serverTokenResponse.ext_expires_in === "string" ? parseInt(serverTokenResponse.ext_expires_in, 10) : serverTokenResponse.ext_expires_in) || 0; var refreshIn = (typeof serverTokenResponse.refresh_in === "string" ? parseInt(serverTokenResponse.refresh_in, 10) : serverTokenResponse.refresh_in) || undefined; var tokenExpirationSeconds = reqTimestamp + expiresIn; var extendedTokenExpirationSeconds = tokenExpirationSeconds + extExpiresIn; var refreshOnSeconds = refreshIn && refreshIn > 0 ? reqTimestamp + refreshIn : undefined; // non AAD scenarios can have empty realm cachedAccessToken = _cache_entities_AccessTokenEntity_js__WEBPACK_IMPORTED_MODULE_10__["AccessTokenEntity"].createAccessTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.access_token || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, this.clientId, idTokenObj ? idTokenObj.claims.tid || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING : authority.tenant, responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request.claims, request.requestedClaimsHash); } // refreshToken var cachedRefreshToken = null; if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(serverTokenResponse.refresh_token)) { cachedRefreshToken = _cache_entities_RefreshTokenEntity_js__WEBPACK_IMPORTED_MODULE_11__["RefreshTokenEntity"].createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, this.clientId, serverTokenResponse.foci, userAssertionHash); } // appMetadata var cachedAppMetadata = null; if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(serverTokenResponse.foci)) { cachedAppMetadata = _cache_entities_AppMetadataEntity_js__WEBPACK_IMPORTED_MODULE_17__["AppMetadataEntity"].createAppMetadataEntity(this.clientId, env, serverTokenResponse.foci); } return new _cache_entities_CacheRecord_js__WEBPACK_IMPORTED_MODULE_13__["CacheRecord"](cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata); }; /** * Generate Account * @param serverTokenResponse * @param idToken * @param authority */ ResponseHandler.prototype.generateAccountEntity = function (serverTokenResponse, idToken, authority, authCodePayload) { var authorityType = authority.authorityType; var cloudGraphHostName = authCodePayload ? authCodePayload.cloud_graph_host_name : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; var msGraphhost = authCodePayload ? authCodePayload.msgraph_host : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; // ADFS does not require client_info in the response if (authorityType === _authority_AuthorityType_js__WEBPACK_IMPORTED_MODULE_8__["AuthorityType"].Adfs) { this.logger.verbose("Authority type is ADFS, creating ADFS account"); return _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_7__["AccountEntity"].createGenericAccount(this.homeAccountIdentifier, idToken, authority, cloudGraphHostName, msGraphhost); } // This fallback applies to B2C as well as they fall under an AAD account type. if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_3__["StringUtils"].isEmpty(serverTokenResponse.client_info) && authority.protocolMode === "AAD") { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createClientInfoEmptyError(); } return serverTokenResponse.client_info ? _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_7__["AccountEntity"].createAccount(serverTokenResponse.client_info, this.homeAccountIdentifier, idToken, authority, cloudGraphHostName, msGraphhost) : _cache_entities_AccountEntity_js__WEBPACK_IMPORTED_MODULE_7__["AccountEntity"].createGenericAccount(this.homeAccountIdentifier, idToken, authority, cloudGraphHostName, msGraphhost); }; /** * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache. * * Optionally takes a state string that is set as-is in the response. * * @param cacheRecord * @param idTokenObj * @param fromTokenCache * @param stateString */ ResponseHandler.generateAuthenticationResult = function (cryptoObj, authority, cacheRecord, fromTokenCache, request, idTokenObj, requestState, serverTokenResponse, requestId) { var _a, _b, _c; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var accessToken, responseScopes, expiresOn, extExpiresOn, familyId, popTokenGenerator, _d, secret, keyId, uid, tid; return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) { switch (_e.label) { case 0: accessToken = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; responseScopes = []; expiresOn = null; familyId = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; if (!cacheRecord.accessToken) return [3 /*break*/, 4]; if (!(cacheRecord.accessToken.tokenType === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["AuthenticationScheme"].POP)) return [3 /*break*/, 2]; popTokenGenerator = new _crypto_PopTokenGenerator_js__WEBPACK_IMPORTED_MODULE_16__["PopTokenGenerator"](cryptoObj); _d = cacheRecord.accessToken, secret = _d.secret, keyId = _d.keyId; if (!keyId) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createKeyIdMissingError(); } return [4 /*yield*/, popTokenGenerator.signPopToken(secret, keyId, request)]; case 1: accessToken = _e.sent(); return [3 /*break*/, 3]; case 2: accessToken = cacheRecord.accessToken.secret; _e.label = 3; case 3: responseScopes = _request_ScopeSet_js__WEBPACK_IMPORTED_MODULE_6__["ScopeSet"].fromString(cacheRecord.accessToken.target).asArray(); expiresOn = new Date(Number(cacheRecord.accessToken.expiresOn) * 1000); extExpiresOn = new Date(Number(cacheRecord.accessToken.extendedExpiresOn) * 1000); _e.label = 4; case 4: if (cacheRecord.appMetadata) { familyId = cacheRecord.appMetadata.familyId === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["THE_FAMILY_ID"] ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["THE_FAMILY_ID"] : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; } uid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.oid) || (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.sub) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; tid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.tid) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING; // for hybrid + native bridge enablement, send back the native account Id if ((serverTokenResponse === null || serverTokenResponse === void 0 ? void 0 : serverTokenResponse.spa_accountid) && !!cacheRecord.account) { cacheRecord.account.nativeAccountId = serverTokenResponse === null || serverTokenResponse === void 0 ? void 0 : serverTokenResponse.spa_accountid; } return [2 /*return*/, { authority: authority.canonicalAuthority, uniqueId: uid, tenantId: tid, scopes: responseScopes, account: cacheRecord.account ? cacheRecord.account.getAccountInfo() : null, idToken: idTokenObj ? idTokenObj.rawToken : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, idTokenClaims: idTokenObj ? idTokenObj.claims : {}, accessToken: accessToken, fromCache: fromTokenCache, expiresOn: expiresOn, correlationId: request.correlationId, requestId: requestId || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, extExpiresOn: extExpiresOn, familyId: familyId, tokenType: ((_a = cacheRecord.accessToken) === null || _a === void 0 ? void 0 : _a.tokenType) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, state: requestState ? requestState.userRequestState : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, cloudGraphHostName: ((_b = cacheRecord.account) === null || _b === void 0 ? void 0 : _b.cloudGraphHostName) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, msGraphHost: ((_c = cacheRecord.account) === null || _c === void 0 ? void 0 : _c.msGraphHost) || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_15__["Constants"].EMPTY_STRING, code: serverTokenResponse === null || serverTokenResponse === void 0 ? void 0 : serverTokenResponse.spa_code, fromNativeBroker: false, }]; } }); }); }; return ResponseHandler; }()); //# sourceMappingURL=ResponseHandler.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js ***! \*****************************************************************************************/ /*! exports provided: PerformanceClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PerformanceClient", function() { return PerformanceClient; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PerformanceEvent.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var PerformanceClient = /** @class */ (function () { /** * Creates an instance of PerformanceClient, * an abstract class containing core performance telemetry logic. * * @constructor * @param {string} clientId Client ID of the application * @param {string} authority Authority used by the application * @param {Logger} logger Logger used by the application * @param {string} libraryName Name of the library * @param {string} libraryVersion Version of the library */ function PerformanceClient(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) { this.authority = authority; this.libraryName = libraryName; this.libraryVersion = libraryVersion; this.applicationTelemetry = applicationTelemetry; this.clientId = clientId; this.logger = logger; this.callbacks = new Map(); this.eventsByCorrelationId = new Map(); this.queueMeasurements = new Map(); this.preQueueTimeByCorrelationId = new Map(); } /** * Starts and returns an platform-specific implementation of IPerformanceMeasurement. * Note: this function can be changed to abstract at the next major version bump. * * @param {string} measureName * @param {string} correlationId * @returns {IPerformanceMeasurement} */ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ PerformanceClient.prototype.startPerformanceMeasurement = function (measureName, correlationId) { return {}; }; /** * Starts and returns an platform-specific implementation of IPerformanceMeasurement. * Note: this incorrectly-named function will be removed at the next major version bump. * * @param {string} measureName * @param {string} correlationId * @returns {IPerformanceMeasurement} */ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ PerformanceClient.prototype.startPerformanceMeasuremeant = function (measureName, correlationId) { return {}; }; /** * Get integral fields. * Override to change the set. */ PerformanceClient.prototype.getIntFields = function () { return _PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_1__["IntFields"]; }; /** * Gets map of pre-queue times by correlation Id * * @param {PerformanceEvents} eventName * @param {string} correlationId * @returns {number} */ PerformanceClient.prototype.getPreQueueTime = function (eventName, correlationId) { var preQueueEvent = this.preQueueTimeByCorrelationId.get(correlationId); if (!preQueueEvent) { this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: " + correlationId + ", unable to add queue measurement"); return; } else if (preQueueEvent.name !== eventName) { this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for " + eventName + ", unable to add queue measurement"); return; } return preQueueEvent.time; }; /** * Calculates the difference between current time and time when function was queued. * Note: It is possible to have 0 as the queue time if the current time and the queued time was the same. * * @param {number} preQueueTime * @param {number} currentTime * @returns {number} */ PerformanceClient.prototype.calculateQueuedTime = function (preQueueTime, currentTime) { if (preQueueTime < 1) { this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not " + preQueueTime); return 0; } if (currentTime < 1) { this.logger.trace("PerformanceClient: currentTime should be a positive integer and not " + currentTime); return 0; } if (currentTime < preQueueTime) { this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"); return 0; } return currentTime - preQueueTime; }; /** * Adds queue measurement time to QueueMeasurements array for given correlation ID. * * @param {PerformanceEvents} eventName * @param {?string} correlationId * @param {?number} queueTime * @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements * @returns */ PerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime, manuallyCompleted) { if (!correlationId) { this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for " + eventName + ", cannot add queue measurement"); return; } if (queueTime === 0) { // Possible for there to be no queue time after calculation this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for " + eventName + " is " + queueTime); } else if (!queueTime) { this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for " + eventName); return; } var queueMeasurement = { eventName: eventName, queueTime: queueTime, manuallyCompleted: manuallyCompleted }; // Adds to existing correlation Id if present in queueMeasurements var existingMeasurements = this.queueMeasurements.get(correlationId); if (existingMeasurements) { existingMeasurements.push(queueMeasurement); this.queueMeasurements.set(correlationId, existingMeasurements); } else { // Sets new correlation Id if not present in queueMeasurements this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId " + correlationId + " to queue measurements"); var measurementArray = [queueMeasurement]; this.queueMeasurements.set(correlationId, measurementArray); } // Delete processed pre-queue event. this.preQueueTimeByCorrelationId.delete(correlationId); }; /** * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement. * * @param {PerformanceEvents} measureName * @param {?string} [correlationId] * @returns {InProgressPerformanceEvent} */ PerformanceClient.prototype.startMeasurement = function (measureName, correlationId) { var _this = this; var _a, _b; // Generate a placeholder correlation if the request does not provide one var eventCorrelationId = correlationId || this.generateId(); if (!correlationId) { this.logger.info("PerformanceClient: No correlation id provided for " + measureName + ", generating", eventCorrelationId); } // Duplicate code to address spelling error will be removed at the next major version bump. this.logger.trace("PerformanceClient: Performance measurement started for " + measureName, eventCorrelationId); var performanceMeasurement = this.startPerformanceMeasuremeant(measureName, eventCorrelationId); performanceMeasurement.startMeasurement(); var inProgressEvent = { eventId: this.generateId(), status: _PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_1__["PerformanceEventStatus"].InProgress, authority: this.authority, libraryName: this.libraryName, libraryVersion: this.libraryVersion, clientId: this.clientId, name: measureName, startTimeMs: Date.now(), correlationId: eventCorrelationId, appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName, appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion, }; // Store in progress events so they can be discarded if not ended properly this.cacheEventByCorrelationId(inProgressEvent); // Return the event and functions the caller can use to properly end/flush the measurement return { endMeasurement: function (event) { return _this.endMeasurement(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, inProgressEvent), event), performanceMeasurement); }, discardMeasurement: function () { return _this.discardMeasurements(inProgressEvent.correlationId); }, addStaticFields: function (fields) { return _this.addStaticFields(fields, inProgressEvent.correlationId); }, increment: function (counters) { return _this.increment(counters, inProgressEvent.correlationId); }, measurement: performanceMeasurement, event: inProgressEvent }; }; /** * Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, * as consumers should instead use the function returned by startMeasurement. * Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event * otherwise. * * @param {PerformanceEvent} event * @param {IPerformanceMeasurement} measurement * @returns {(PerformanceEvent | null)} */ PerformanceClient.prototype.endMeasurement = function (event, measurement) { var _this = this; var _a, _b; var rootEvent = this.eventsByCorrelationId.get(event.correlationId); if (!rootEvent) { this.logger.trace("PerformanceClient: Measurement not found for " + event.eventId, event.correlationId); return null; } var isRoot = event.eventId === rootEvent.eventId; var queueInfo = { totalQueueTime: 0, totalQueueCount: 0, manuallyCompletedCount: 0 }; if (isRoot) { queueInfo = this.getQueueInfo(event.correlationId); this.discardCache(rootEvent.correlationId); } else { (_a = rootEvent.incompleteSubMeasurements) === null || _a === void 0 ? void 0 : _a.delete(event.eventId); } measurement === null || measurement === void 0 ? void 0 : measurement.endMeasurement(); var durationMs = measurement === null || measurement === void 0 ? void 0 : measurement.flushMeasurement(); // null indicates no measurement was taken (e.g. needed performance APIs not present) if (!durationMs) { this.logger.trace("PerformanceClient: Performance measurement not taken", rootEvent.correlationId); return null; } this.logger.trace("PerformanceClient: Performance measurement ended for " + event.name + ": " + durationMs + " ms", event.correlationId); // Add sub-measurement attribute to root event. if (!isRoot) { rootEvent[event.name + "DurationMs"] = Math.floor(durationMs); return Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rootEvent); } var finalEvent = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rootEvent), event); var incompleteSubsCount = 0; // Incomplete sub-measurements are discarded. They are likely an instrumentation bug that should be fixed. (_b = finalEvent.incompleteSubMeasurements) === null || _b === void 0 ? void 0 : _b.forEach(function (subMeasurement) { _this.logger.trace("PerformanceClient: Incomplete submeasurement " + subMeasurement.name + " found for " + event.name, finalEvent.correlationId); incompleteSubsCount++; }); finalEvent.incompleteSubMeasurements = undefined; finalEvent = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, finalEvent), { durationMs: Math.round(durationMs), queuedTimeMs: queueInfo.totalQueueTime, queuedCount: queueInfo.totalQueueCount, queuedManuallyCompletedCount: queueInfo.manuallyCompletedCount, status: _PerformanceEvent_js__WEBPACK_IMPORTED_MODULE_1__["PerformanceEventStatus"].Completed, incompleteSubsCount: incompleteSubsCount }); this.truncateIntegralFields(finalEvent, this.getIntFields()); this.emitEvents([finalEvent], event.correlationId); return finalEvent; }; /** * Saves extra information to be emitted when the measurements are flushed * @param fields * @param correlationId */ PerformanceClient.prototype.addStaticFields = function (fields, correlationId) { this.logger.trace("PerformanceClient: Updating static fields"); var event = this.eventsByCorrelationId.get(correlationId); if (event) { this.eventsByCorrelationId.set(correlationId, Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, event), fields)); } else { this.logger.trace("PerformanceClient: Event not found for", correlationId); } }; /** * Increment counters to be emitted when the measurements are flushed * @param counters {Counters} * @param correlationId {string} correlation identifier */ PerformanceClient.prototype.increment = function (counters, correlationId) { this.logger.trace("PerformanceClient: Updating counters"); var event = this.eventsByCorrelationId.get(correlationId); if (event) { for (var counter in counters) { if (!event.hasOwnProperty(counter)) { event[counter] = 0; } event[counter] += counters[counter]; } } else { this.logger.trace("PerformanceClient: Event not found for", correlationId); } }; /** * Upserts event into event cache. * First key is the correlation id, second key is the event id. * Allows for events to be grouped by correlation id, * and to easily allow for properties on them to be updated. * * @private * @param {PerformanceEvent} event */ PerformanceClient.prototype.cacheEventByCorrelationId = function (event) { var rootEvent = this.eventsByCorrelationId.get(event.correlationId); if (rootEvent) { this.logger.trace("PerformanceClient: Performance measurement for " + event.name + " added/updated", event.correlationId); rootEvent.incompleteSubMeasurements = rootEvent.incompleteSubMeasurements || new Map(); rootEvent.incompleteSubMeasurements.set(event.eventId, { name: event.name, startTimeMs: event.startTimeMs }); } else { this.logger.trace("PerformanceClient: Performance measurement for " + event.name + " started", event.correlationId); this.eventsByCorrelationId.set(event.correlationId, Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, event)); } }; PerformanceClient.prototype.getQueueInfo = function (correlationId) { var queueMeasurementForCorrelationId = this.queueMeasurements.get(correlationId); if (!queueMeasurementForCorrelationId) { this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: " + correlationId); } var totalQueueTime = 0; var totalQueueCount = 0; var manuallyCompletedCount = 0; queueMeasurementForCorrelationId === null || queueMeasurementForCorrelationId === void 0 ? void 0 : queueMeasurementForCorrelationId.forEach(function (measurement) { totalQueueTime += measurement.queueTime; totalQueueCount++; manuallyCompletedCount += measurement.manuallyCompleted ? 1 : 0; }); return { totalQueueTime: totalQueueTime, totalQueueCount: totalQueueCount, manuallyCompletedCount: manuallyCompletedCount }; }; /** * Removes measurements for a given correlation id. * * @param {string} correlationId */ PerformanceClient.prototype.discardMeasurements = function (correlationId) { this.logger.trace("PerformanceClient: Performance measurements discarded", correlationId); this.eventsByCorrelationId.delete(correlationId); }; /** * Removes cache for a given correlation id. * * @param {string} correlationId correlation identifier */ PerformanceClient.prototype.discardCache = function (correlationId) { this.discardMeasurements(correlationId); this.logger.trace("PerformanceClient: QueueMeasurements discarded", correlationId); this.queueMeasurements.delete(correlationId); this.logger.trace("PerformanceClient: Pre-queue times discarded", correlationId); this.preQueueTimeByCorrelationId.delete(correlationId); }; /** * Registers a callback function to receive performance events. * * @param {PerformanceCallbackFunction} callback * @returns {string} */ PerformanceClient.prototype.addPerformanceCallback = function (callback) { var callbackId = this.generateId(); this.callbacks.set(callbackId, callback); this.logger.verbose("PerformanceClient: Performance callback registered with id: " + callbackId); return callbackId; }; /** * Removes a callback registered with addPerformanceCallback. * * @param {string} callbackId * @returns {boolean} */ PerformanceClient.prototype.removePerformanceCallback = function (callbackId) { var result = this.callbacks.delete(callbackId); if (result) { this.logger.verbose("PerformanceClient: Performance callback " + callbackId + " removed."); } else { this.logger.verbose("PerformanceClient: Performance callback " + callbackId + " not removed."); } return result; }; /** * Emits events to all registered callbacks. * * @param {PerformanceEvent[]} events * @param {?string} [correlationId] */ PerformanceClient.prototype.emitEvents = function (events, correlationId) { var _this = this; this.logger.verbose("PerformanceClient: Emitting performance events", correlationId); this.callbacks.forEach(function (callback, callbackId) { _this.logger.trace("PerformanceClient: Emitting event to callback " + callbackId, correlationId); callback.apply(null, [events]); }); }; /** * Enforce truncation of integral fields in performance event. * @param {PerformanceEvent} event performance event to update. * @param {Set} intFields integral fields. */ PerformanceClient.prototype.truncateIntegralFields = function (event, intFields) { intFields.forEach(function (key) { if (key in event && typeof event[key] === "number") { event[key] = Math.floor(event[key]); } }); }; return PerformanceClient; }()); //# sourceMappingURL=PerformanceClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js": /*!****************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js ***! \****************************************************************************************/ /*! exports provided: IntFields, PerformanceEventStatus, PerformanceEvents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntFields", function() { return IntFields; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PerformanceEventStatus", function() { return PerformanceEventStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PerformanceEvents", function() { return PerformanceEvents; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient. * * @export * @enum {number} */ var PerformanceEvents; (function (PerformanceEvents) { /** * acquireTokenByCode API (msal-browser and msal-node). * Used to acquire tokens by trading an authorization code against the token endpoint. */ PerformanceEvents["AcquireTokenByCode"] = "acquireTokenByCode"; /** * acquireTokenByRefreshToken API (msal-browser and msal-node). * Used to renew an access token using a refresh token against the token endpoint. */ PerformanceEvents["AcquireTokenByRefreshToken"] = "acquireTokenByRefreshToken"; /** * acquireTokenSilent API (msal-browser and msal-node). * Used to silently acquire a new access token (from the cache or the network). */ PerformanceEvents["AcquireTokenSilent"] = "acquireTokenSilent"; /** * acquireTokenSilentAsync (msal-browser). * Internal API for acquireTokenSilent. */ PerformanceEvents["AcquireTokenSilentAsync"] = "acquireTokenSilentAsync"; /** * acquireTokenPopup (msal-browser). * Used to acquire a new access token interactively through pop ups */ PerformanceEvents["AcquireTokenPopup"] = "acquireTokenPopup"; /** * getPublicKeyThumbprint API in CryptoOpts class (msal-browser). * Used to generate a public/private keypair and generate a public key thumbprint for pop requests. */ PerformanceEvents["CryptoOptsGetPublicKeyThumbprint"] = "cryptoOptsGetPublicKeyThumbprint"; /** * signJwt API in CryptoOpts class (msal-browser). * Used to signed a pop token. */ PerformanceEvents["CryptoOptsSignJwt"] = "cryptoOptsSignJwt"; /** * acquireToken API in the SilentCacheClient class (msal-browser). * Used to read access tokens from the cache. */ PerformanceEvents["SilentCacheClientAcquireToken"] = "silentCacheClientAcquireToken"; /** * acquireToken API in the SilentIframeClient class (msal-browser). * Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe. */ PerformanceEvents["SilentIframeClientAcquireToken"] = "silentIframeClientAcquireToken"; /** * acquireToken API in SilentRereshClient (msal-browser). * Used to acquire a new set of tokens from the token endpoint using a refresh token. */ PerformanceEvents["SilentRefreshClientAcquireToken"] = "silentRefreshClientAcquireToken"; /** * ssoSilent API (msal-browser). * Used to silently acquire an authorization code and set of tokens using a hidden iframe. */ PerformanceEvents["SsoSilent"] = "ssoSilent"; /** * getDiscoveredAuthority API in StandardInteractionClient class (msal-browser). * Used to load authority metadata for a request. */ PerformanceEvents["StandardInteractionClientGetDiscoveredAuthority"] = "standardInteractionClientGetDiscoveredAuthority"; /** * acquireToken APIs in msal-browser. * Used to make an /authorize endpoint call with native brokering enabled. */ PerformanceEvents["FetchAccountIdWithNativeBroker"] = "fetchAccountIdWithNativeBroker"; /** * acquireToken API in NativeInteractionClient class (msal-browser). * Used to acquire a token from Native component when native brokering is enabled. */ PerformanceEvents["NativeInteractionClientAcquireToken"] = "nativeInteractionClientAcquireToken"; /** * Time spent creating default headers for requests to token endpoint */ PerformanceEvents["BaseClientCreateTokenRequestHeaders"] = "baseClientCreateTokenRequestHeaders"; /** * Used to measure the time taken for completing embedded-broker handshake (PW-Broker). */ PerformanceEvents["BrokerHandhshake"] = "brokerHandshake"; /** * acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) . */ PerformanceEvents["AcquireTokenByRefreshTokenInBroker"] = "acquireTokenByRefreshTokenInBroker"; /** * Time taken for token acquisition by broker */ PerformanceEvents["AcquireTokenByBroker"] = "acquireTokenByBroker"; /** * Time spent on the network for refresh token acquisition */ PerformanceEvents["RefreshTokenClientExecuteTokenRequest"] = "refreshTokenClientExecuteTokenRequest"; /** * Time taken for acquiring refresh token , records RT size */ PerformanceEvents["RefreshTokenClientAcquireToken"] = "refreshTokenClientAcquireToken"; /** * Time taken for acquiring cached refresh token */ PerformanceEvents["RefreshTokenClientAcquireTokenWithCachedRefreshToken"] = "refreshTokenClientAcquireTokenWithCachedRefreshToken"; /** * acquireTokenByRefreshToken API in RefreshTokenClient (msal-common). */ PerformanceEvents["RefreshTokenClientAcquireTokenByRefreshToken"] = "refreshTokenClientAcquireTokenByRefreshToken"; /** * Helper function to create token request body in RefreshTokenClient (msal-common). */ PerformanceEvents["RefreshTokenClientCreateTokenRequestBody"] = "refreshTokenClientCreateTokenRequestBody"; /** * acquireTokenFromCache (msal-browser). * Internal API for acquiring token from cache */ PerformanceEvents["AcquireTokenFromCache"] = "acquireTokenFromCache"; /** * acquireTokenBySilentIframe (msal-browser). * Internal API for acquiring token by silent Iframe */ PerformanceEvents["AcquireTokenBySilentIframe"] = "acquireTokenBySilentIframe"; /** * Internal API for initializing base request in BaseInteractionClient (msal-browser) */ PerformanceEvents["InitializeBaseRequest"] = "initializeBaseRequest"; /** * Internal API for initializing silent request in SilentCacheClient (msal-browser) */ PerformanceEvents["InitializeSilentRequest"] = "initializeSilentRequest"; PerformanceEvents["InitializeClientApplication"] = "initializeClientApplication"; /** * Helper function in SilentIframeClient class (msal-browser). */ PerformanceEvents["SilentIframeClientTokenHelper"] = "silentIframeClientTokenHelper"; /** * SilentHandler */ PerformanceEvents["SilentHandlerInitiateAuthRequest"] = "silentHandlerInitiateAuthRequest"; PerformanceEvents["SilentHandlerMonitorIframeForHash"] = "silentHandlerMonitorIframeForHash"; PerformanceEvents["SilentHandlerLoadFrame"] = "silentHandlerLoadFrame"; /** * Helper functions in StandardInteractionClient class (msal-browser) */ PerformanceEvents["StandardInteractionClientCreateAuthCodeClient"] = "standardInteractionClientCreateAuthCodeClient"; PerformanceEvents["StandardInteractionClientGetClientConfiguration"] = "standardInteractionClientGetClientConfiguration"; PerformanceEvents["StandardInteractionClientInitializeAuthorizationRequest"] = "standardInteractionClientInitializeAuthorizationRequest"; PerformanceEvents["StandardInteractionClientInitializeAuthorizationCodeRequest"] = "standardInteractionClientInitializeAuthorizationCodeRequest"; /** * getAuthCodeUrl API (msal-browser and msal-node). */ PerformanceEvents["GetAuthCodeUrl"] = "getAuthCodeUrl"; /** * Functions from InteractionHandler (msal-browser) */ PerformanceEvents["HandleCodeResponseFromServer"] = "handleCodeResponseFromServer"; PerformanceEvents["HandleCodeResponseFromHash"] = "handleCodeResponseFromHash"; PerformanceEvents["UpdateTokenEndpointAuthority"] = "updateTokenEndpointAuthority"; /** * APIs in Authorization Code Client (msal-common) */ PerformanceEvents["AuthClientAcquireToken"] = "authClientAcquireToken"; PerformanceEvents["AuthClientExecuteTokenRequest"] = "authClientExecuteTokenRequest"; PerformanceEvents["AuthClientCreateTokenRequestBody"] = "authClientCreateTokenRequestBody"; PerformanceEvents["AuthClientCreateQueryString"] = "authClientCreateQueryString"; /** * Generate functions in PopTokenGenerator (msal-common) */ PerformanceEvents["PopTokenGenerateCnf"] = "popTokenGenerateCnf"; PerformanceEvents["PopTokenGenerateKid"] = "popTokenGenerateKid"; /** * handleServerTokenResponse API in ResponseHandler (msal-common) */ PerformanceEvents["HandleServerTokenResponse"] = "handleServerTokenResponse"; /** * Authority functions */ PerformanceEvents["AuthorityFactoryCreateDiscoveredInstance"] = "authorityFactoryCreateDiscoveredInstance"; PerformanceEvents["AuthorityResolveEndpointsAsync"] = "authorityResolveEndpointsAsync"; PerformanceEvents["AuthorityGetCloudDiscoveryMetadataFromNetwork"] = "authorityGetCloudDiscoveryMetadataFromNetwork"; PerformanceEvents["AuthorityUpdateCloudDiscoveryMetadata"] = "authorityUpdateCloudDiscoveryMetadata"; PerformanceEvents["AuthorityGetEndpointMetadataFromNetwork"] = "authorityGetEndpointMetadataFromNetwork"; PerformanceEvents["AuthorityUpdateEndpointMetadata"] = "authorityUpdateEndpointMetadata"; PerformanceEvents["AuthorityUpdateMetadataWithRegionalInformation"] = "authorityUpdateMetadataWithRegionalInformation"; /** * Region Discovery functions */ PerformanceEvents["RegionDiscoveryDetectRegion"] = "regionDiscoveryDetectRegion"; PerformanceEvents["RegionDiscoveryGetRegionFromIMDS"] = "regionDiscoveryGetRegionFromIMDS"; PerformanceEvents["RegionDiscoveryGetCurrentVersion"] = "regionDiscoveryGetCurrentVersion"; PerformanceEvents["AcquireTokenByCodeAsync"] = "acquireTokenByCodeAsync"; PerformanceEvents["GetEndpointMetadataFromNetwork"] = "getEndpointMetadataFromNetwork"; PerformanceEvents["GetCloudDiscoveryMetadataFromNetworkMeasurement"] = "getCloudDiscoveryMetadataFromNetworkMeasurement"; PerformanceEvents["HandleRedirectPromiseMeasurement"] = "handleRedirectPromiseMeasurement"; PerformanceEvents["UpdateCloudDiscoveryMetadataMeasurement"] = "updateCloudDiscoveryMetadataMeasurement"; PerformanceEvents["UsernamePasswordClientAcquireToken"] = "usernamePasswordClientAcquireToken"; PerformanceEvents["NativeMessageHandlerHandshake"] = "nativeMessageHandlerHandshake"; /** * Cache operations */ PerformanceEvents["ClearTokensAndKeysWithClaims"] = "clearTokensAndKeysWithClaims"; })(PerformanceEvents || (PerformanceEvents = {})); /** * State of the performance event. * * @export * @enum {number} */ var PerformanceEventStatus; (function (PerformanceEventStatus) { PerformanceEventStatus[PerformanceEventStatus["NotStarted"] = 0] = "NotStarted"; PerformanceEventStatus[PerformanceEventStatus["InProgress"] = 1] = "InProgress"; PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed"; })(PerformanceEventStatus || (PerformanceEventStatus = {})); var IntFields = new Set([ "accessTokenSize", "durationMs", "idTokenSize", "matsSilentStatus", "matsHttpStatus", "refreshTokenSize", "queuedTimeMs", "startTimeMs", "status", ]); //# sourceMappingURL=PerformanceEvent.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js ***! \*********************************************************************************************/ /*! exports provided: StubPerformanceClient, StubPerformanceMeasurement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StubPerformanceClient", function() { return StubPerformanceClient; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StubPerformanceMeasurement", function() { return StubPerformanceMeasurement; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /* harmony import */ var _PerformanceClient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PerformanceClient.js */ "./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var StubPerformanceMeasurement = /** @class */ (function () { function StubPerformanceMeasurement() { } /* eslint-disable-next-line @typescript-eslint/no-empty-function */ StubPerformanceMeasurement.prototype.startMeasurement = function () { }; /* eslint-disable-next-line @typescript-eslint/no-empty-function */ StubPerformanceMeasurement.prototype.endMeasurement = function () { }; StubPerformanceMeasurement.prototype.flushMeasurement = function () { return null; }; return StubPerformanceMeasurement; }()); var StubPerformanceClient = /** @class */ (function (_super) { Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StubPerformanceClient, _super); function StubPerformanceClient() { return _super !== null && _super.apply(this, arguments) || this; } StubPerformanceClient.prototype.generateId = function () { return "callback-id"; }; StubPerformanceClient.prototype.startPerformanceMeasuremeant = function () { return new StubPerformanceMeasurement(); }; StubPerformanceClient.prototype.startPerformanceMeasurement = function () { return new StubPerformanceMeasurement(); }; /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ StubPerformanceClient.prototype.calculateQueuedTime = function (preQueueTime, currentTime) { return 0; }; /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ StubPerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime) { return; }; /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ StubPerformanceClient.prototype.setPreQueueTime = function (eventName, correlationId) { return; }; return StubPerformanceClient; }(_PerformanceClient_js__WEBPACK_IMPORTED_MODULE_1__["PerformanceClient"])); //# sourceMappingURL=StubPerformanceClient.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js ***! \*****************************************************************************************/ /*! exports provided: ServerTelemetryManager */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerTelemetryManager", function() { return ServerTelemetryManager; }); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _cache_entities_ServerTelemetryEntity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../cache/entities/ServerTelemetryEntity.js */ "./node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var ServerTelemetryManager = /** @class */ (function () { function ServerTelemetryManager(telemetryRequest, cacheManager) { this.cacheOutcome = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CacheOutcome"].NO_CACHE_HIT; this.cacheManager = cacheManager; this.apiId = telemetryRequest.apiId; this.correlationId = telemetryRequest.correlationId; this.wrapperSKU = telemetryRequest.wrapperSKU || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; this.wrapperVer = telemetryRequest.wrapperVer || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; this.telemetryCacheKey = _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].CACHE_KEY + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Separators"].CACHE_KEY_SEPARATOR + telemetryRequest.clientId; } /** * API to add MSER Telemetry to request */ ServerTelemetryManager.prototype.generateCurrentRequestHeaderValue = function () { var request = "" + this.apiId + _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].VALUE_SEPARATOR + this.cacheOutcome; var platformFields = [this.wrapperSKU, this.wrapperVer].join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].VALUE_SEPARATOR); var regionDiscoveryFields = this.getRegionDiscoveryFields(); var requestWithRegionDiscoveryFields = [request, regionDiscoveryFields].join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].VALUE_SEPARATOR); return [_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].SCHEMA_VERSION, requestWithRegionDiscoveryFields, platformFields].join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].CATEGORY_SEPARATOR); }; /** * API to add MSER Telemetry for the last failed request */ ServerTelemetryManager.prototype.generateLastRequestHeaderValue = function () { var lastRequests = this.getLastRequests(); var maxErrors = ServerTelemetryManager.maxErrorsToSend(lastRequests); var failedRequests = lastRequests.failedRequests.slice(0, 2 * maxErrors).join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].VALUE_SEPARATOR); var errors = lastRequests.errors.slice(0, maxErrors).join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].VALUE_SEPARATOR); var errorCount = lastRequests.errors.length; // Indicate whether this header contains all data or partial data var overflow = maxErrors < errorCount ? _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].OVERFLOW_TRUE : _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].OVERFLOW_FALSE; var platformFields = [errorCount, overflow].join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].VALUE_SEPARATOR); return [_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].SCHEMA_VERSION, lastRequests.cacheHits, failedRequests, errors, platformFields].join(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].CATEGORY_SEPARATOR); }; /** * API to cache token failures for MSER data capture * @param error */ ServerTelemetryManager.prototype.cacheFailedRequest = function (error) { var lastRequests = this.getLastRequests(); if (lastRequests.errors.length >= _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].MAX_CACHED_ERRORS) { // Remove a cached error to make room, first in first out lastRequests.failedRequests.shift(); // apiId lastRequests.failedRequests.shift(); // correlationId lastRequests.errors.shift(); } lastRequests.failedRequests.push(this.apiId, this.correlationId); if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(error.subError)) { lastRequests.errors.push(error.subError); } else if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(error.errorCode)) { lastRequests.errors.push(error.errorCode); } else if (!!error && error.toString()) { lastRequests.errors.push(error.toString()); } else { lastRequests.errors.push(_utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].UNKNOWN_ERROR); } this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests); return; }; /** * Update server telemetry cache entry by incrementing cache hit counter */ ServerTelemetryManager.prototype.incrementCacheHits = function () { var lastRequests = this.getLastRequests(); lastRequests.cacheHits += 1; this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests); return lastRequests.cacheHits; }; /** * Get the server telemetry entity from cache or initialize a new one */ ServerTelemetryManager.prototype.getLastRequests = function () { var initialValue = new _cache_entities_ServerTelemetryEntity_js__WEBPACK_IMPORTED_MODULE_1__["ServerTelemetryEntity"](); var lastRequests = this.cacheManager.getServerTelemetry(this.telemetryCacheKey); return lastRequests || initialValue; }; /** * Remove server telemetry cache entry */ ServerTelemetryManager.prototype.clearTelemetryCache = function () { var lastRequests = this.getLastRequests(); var numErrorsFlushed = ServerTelemetryManager.maxErrorsToSend(lastRequests); var errorCount = lastRequests.errors.length; if (numErrorsFlushed === errorCount) { // All errors were sent on last request, clear Telemetry cache this.cacheManager.removeItem(this.telemetryCacheKey); } else { // Partial data was flushed to server, construct a new telemetry cache item with errors that were not flushed var serverTelemEntity = new _cache_entities_ServerTelemetryEntity_js__WEBPACK_IMPORTED_MODULE_1__["ServerTelemetryEntity"](); serverTelemEntity.failedRequests = lastRequests.failedRequests.slice(numErrorsFlushed * 2); // failedRequests contains 2 items for each error serverTelemEntity.errors = lastRequests.errors.slice(numErrorsFlushed); this.cacheManager.setServerTelemetry(this.telemetryCacheKey, serverTelemEntity); } }; /** * Returns the maximum number of errors that can be flushed to the server in the next network request * @param serverTelemetryEntity */ ServerTelemetryManager.maxErrorsToSend = function (serverTelemetryEntity) { var i; var maxErrors = 0; var dataSize = 0; var errorCount = serverTelemetryEntity.errors.length; for (i = 0; i < errorCount; i++) { // failedRequests parameter contains pairs of apiId and correlationId, multiply index by 2 to preserve pairs var apiId = serverTelemetryEntity.failedRequests[2 * i] || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; var correlationId = serverTelemetryEntity.failedRequests[2 * i + 1] || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; var errorCode = serverTelemetryEntity.errors[i] || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING; // Count number of characters that would be added to header, each character is 1 byte. Add 3 at the end to account for separators dataSize += apiId.toString().length + correlationId.toString().length + errorCode.length + 3; if (dataSize < _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["SERVER_TELEM_CONSTANTS"].MAX_LAST_HEADER_BYTES) { // Adding this entry to the header would still keep header size below the limit maxErrors += 1; } else { break; } } return maxErrors; }; /** * Get the region discovery fields * * @returns string */ ServerTelemetryManager.prototype.getRegionDiscoveryFields = function () { var regionDiscoveryFields = []; regionDiscoveryFields.push(this.regionUsed || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING); regionDiscoveryFields.push(this.regionSource || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING); regionDiscoveryFields.push(this.regionOutcome || _utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__["Constants"].EMPTY_STRING); return regionDiscoveryFields.join(","); }; /** * Update the region discovery metadata * * @param regionDiscoveryMetadata * @returns void */ ServerTelemetryManager.prototype.updateRegionDiscoveryMetadata = function (regionDiscoveryMetadata) { this.regionUsed = regionDiscoveryMetadata.region_used; this.regionSource = regionDiscoveryMetadata.region_source; this.regionOutcome = regionDiscoveryMetadata.region_outcome; }; /** * Set cache outcome */ ServerTelemetryManager.prototype.setCacheOutcome = function (cacheOutcome) { this.cacheOutcome = cacheOutcome; }; return ServerTelemetryManager; }()); //# sourceMappingURL=ServerTelemetryManager.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/url/UrlString.js": /*!***************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/url/UrlString.js ***! \***************************************************************/ /*! exports provided: UrlString */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UrlString", function() { return UrlString; }); /* harmony import */ var _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/ClientConfigurationError.js */ "./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /* harmony import */ var _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Url object class which can perform various transformations on url strings. */ var UrlString = /** @class */ (function () { function UrlString(url) { this._urlString = url; if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(this._urlString)) { // Throws error if url is empty throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createUrlEmptyError(); } if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(this.getHash())) { this._urlString = UrlString.canonicalizeUri(url); } } Object.defineProperty(UrlString.prototype, "urlString", { get: function () { return this._urlString; }, enumerable: false, configurable: true }); /** * Ensure urls are lower case and end with a / character. * @param url */ UrlString.canonicalizeUri = function (url) { if (url) { var lowerCaseUrl = url.toLowerCase(); if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].endsWith(lowerCaseUrl, "?")) { lowerCaseUrl = lowerCaseUrl.slice(0, -1); } else if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].endsWith(lowerCaseUrl, "?/")) { lowerCaseUrl = lowerCaseUrl.slice(0, -2); } if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].endsWith(lowerCaseUrl, "/")) { lowerCaseUrl += "/"; } return lowerCaseUrl; } return url; }; /** * Throws if urlString passed is not a valid authority URI string. */ UrlString.prototype.validateAsUri = function () { // Attempts to parse url for uri components var components; try { components = this.getUrlComponents(); } catch (e) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createUrlParseError(e); } // Throw error if URI or path segments are not parseable. if (!components.HostNameAndPort || !components.PathSegments) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createUrlParseError("Given url string: " + this.urlString); } // Throw error if uri is insecure. if (!components.Protocol || components.Protocol.toLowerCase() !== "https:") { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createInsecureAuthorityUriError(this.urlString); } }; /** * Given a url and a query string return the url with provided query string appended * @param url * @param queryString */ UrlString.appendQueryString = function (url, queryString) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(queryString)) { return url; } return url.indexOf("?") < 0 ? url + "?" + queryString : url + "&" + queryString; }; /** * Returns a url with the hash removed * @param url */ UrlString.removeHashFromUrl = function (url) { return UrlString.canonicalizeUri(url.split("#")[0]); }; /** * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d * @param href The url * @param tenantId The tenant id to replace */ UrlString.prototype.replaceTenantPath = function (tenantId) { var urlObject = this.getUrlComponents(); var pathArray = urlObject.PathSegments; if (tenantId && (pathArray.length !== 0 && (pathArray[0] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AADAuthorityConstants"].COMMON || pathArray[0] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["AADAuthorityConstants"].ORGANIZATIONS))) { pathArray[0] = tenantId; } return UrlString.constructAuthorityUriFromObject(urlObject); }; /** * Returns the anchor part(#) of the URL */ UrlString.prototype.getHash = function () { return UrlString.parseHash(this.urlString); }; /** * Parses out the components from a url string. * @returns An object with the various components. Please cache this value insted of calling this multiple times on the same url. */ UrlString.prototype.getUrlComponents = function () { // https://gist.github.com/curtisz/11139b2cfcaef4a261e0 var regEx = RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"); // If url string does not match regEx, we throw an error var match = this.urlString.match(regEx); if (!match) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createUrlParseError("Given url string: " + this.urlString); } // Url component object var urlComponents = { Protocol: match[1], HostNameAndPort: match[4], AbsolutePath: match[5], QueryString: match[7] }; var pathSegments = urlComponents.AbsolutePath.split("/"); pathSegments = pathSegments.filter(function (val) { return val && val.length > 0; }); // remove empty elements urlComponents.PathSegments = pathSegments; if (!_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(urlComponents.QueryString) && urlComponents.QueryString.endsWith("/")) { urlComponents.QueryString = urlComponents.QueryString.substring(0, urlComponents.QueryString.length - 1); } return urlComponents; }; UrlString.getDomainFromUrl = function (url) { var regEx = RegExp("^([^:/?#]+://)?([^/?#]*)"); var match = url.match(regEx); if (!match) { throw _error_ClientConfigurationError_js__WEBPACK_IMPORTED_MODULE_0__["ClientConfigurationError"].createUrlParseError("Given url string: " + url); } return match[2]; }; UrlString.getAbsoluteUrl = function (relativeUrl, baseUrl) { if (relativeUrl[0] === _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Constants"].FORWARD_SLASH) { var url = new UrlString(baseUrl); var baseComponents = url.getUrlComponents(); return baseComponents.Protocol + "//" + baseComponents.HostNameAndPort + relativeUrl; } return relativeUrl; }; /** * Parses hash string from given string. Returns empty string if no hash symbol is found. * @param hashString */ UrlString.parseHash = function (hashString) { var hashIndex1 = hashString.indexOf("#"); var hashIndex2 = hashString.indexOf("#/"); if (hashIndex2 > -1) { return hashString.substring(hashIndex2 + 2); } else if (hashIndex1 > -1) { return hashString.substring(hashIndex1 + 1); } return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Constants"].EMPTY_STRING; }; /** * Parses query string from given string. Returns empty string if no query symbol is found. * @param queryString */ UrlString.parseQueryString = function (queryString) { var queryIndex1 = queryString.indexOf("?"); var queryIndex2 = queryString.indexOf("/?"); if (queryIndex2 > -1) { return queryString.substring(queryIndex2 + 2); } else if (queryIndex1 > -1) { return queryString.substring(queryIndex1 + 1); } return _utils_Constants_js__WEBPACK_IMPORTED_MODULE_3__["Constants"].EMPTY_STRING; }; UrlString.constructAuthorityUriFromObject = function (urlObject) { return new UrlString(urlObject.Protocol + "//" + urlObject.HostNameAndPort + "/" + urlObject.PathSegments.join("/")); }; /** * Returns URL hash as server auth code response object. */ UrlString.getDeserializedHash = function (hash) { // Check if given hash is empty if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(hash)) { return {}; } // Strip the # symbol if present var parsedHash = UrlString.parseHash(hash); // If # symbol was not present, above will return empty string, so give original hash value var deserializedHash = _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].queryStringToObject(_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(parsedHash) ? hash : parsedHash); // Check if deserialization didn't work if (!deserializedHash) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createHashNotDeserializedError(JSON.stringify(deserializedHash)); } return deserializedHash; }; /** * Returns URL query string as server auth code response object. */ UrlString.getDeserializedQueryString = function (query) { // Check if given query is empty if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(query)) { return {}; } // Strip the ? symbol if present var parsedQueryString = UrlString.parseQueryString(query); // If ? symbol was not present, above will return empty string, so give original query value var deserializedQueryString = _utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].queryStringToObject(_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(parsedQueryString) ? query : parsedQueryString); // Check if deserialization didn't work if (!deserializedQueryString) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_1__["ClientAuthError"].createHashNotDeserializedError(JSON.stringify(deserializedQueryString)); } return deserializedQueryString; }; /** * Check if the hash of the URL string contains known properties */ UrlString.hashContainsKnownProperties = function (hash) { if (_utils_StringUtils_js__WEBPACK_IMPORTED_MODULE_2__["StringUtils"].isEmpty(hash) || hash.indexOf("=") < 0) { // Hash doesn't contain key/value pairs return false; } var parameters = UrlString.getDeserializedHash(hash); return !!(parameters.code || parameters.error_description || parameters.error || parameters.state); }; return UrlString; }()); //# sourceMappingURL=UrlString.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/utils/Constants.js": /*!*****************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/utils/Constants.js ***! \*****************************************************************/ /*! exports provided: AADAuthorityConstants, AADServerParamKeys, APP_METADATA, AUTHORITY_METADATA_CONSTANTS, AuthenticationScheme, AuthorityMetadataSource, CLIENT_INFO, CacheAccountType, CacheOutcome, CacheType, ClaimsRequestKeys, CodeChallengeMethodValues, Constants, CredentialType, Errors, GrantType, HeaderNames, JsonTypes, OIDC_DEFAULT_SCOPES, OIDC_SCOPES, ONE_DAY_IN_MS, PasswordGrantConstants, PersistentCacheKeys, PromptValue, RegionDiscoveryOutcomes, RegionDiscoverySources, ResponseCodes, ResponseMode, SERVER_TELEM_CONSTANTS, SSOTypes, Separators, THE_FAMILY_ID, ThrottlingConstants */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AADAuthorityConstants", function() { return AADAuthorityConstants; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AADServerParamKeys", function() { return AADServerParamKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_METADATA", function() { return APP_METADATA; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUTHORITY_METADATA_CONSTANTS", function() { return AUTHORITY_METADATA_CONSTANTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthenticationScheme", function() { return AuthenticationScheme; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthorityMetadataSource", function() { return AuthorityMetadataSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLIENT_INFO", function() { return CLIENT_INFO; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheAccountType", function() { return CacheAccountType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheOutcome", function() { return CacheOutcome; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CacheType", function() { return CacheType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClaimsRequestKeys", function() { return ClaimsRequestKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CodeChallengeMethodValues", function() { return CodeChallengeMethodValues; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Constants", function() { return Constants; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CredentialType", function() { return CredentialType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Errors", function() { return Errors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GrantType", function() { return GrantType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderNames", function() { return HeaderNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonTypes", function() { return JsonTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OIDC_DEFAULT_SCOPES", function() { return OIDC_DEFAULT_SCOPES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OIDC_SCOPES", function() { return OIDC_SCOPES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE_DAY_IN_MS", function() { return ONE_DAY_IN_MS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordGrantConstants", function() { return PasswordGrantConstants; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersistentCacheKeys", function() { return PersistentCacheKeys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PromptValue", function() { return PromptValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegionDiscoveryOutcomes", function() { return RegionDiscoveryOutcomes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegionDiscoverySources", function() { return RegionDiscoverySources; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponseCodes", function() { return ResponseCodes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponseMode", function() { return ResponseMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SERVER_TELEM_CONSTANTS", function() { return SERVER_TELEM_CONSTANTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SSOTypes", function() { return SSOTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Separators", function() { return Separators; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THE_FAMILY_ID", function() { return THE_FAMILY_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThrottlingConstants", function() { return ThrottlingConstants; }); /* harmony import */ var _virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_tslib.js */ "./node_modules/@azure/msal-common/dist/_virtual/_tslib.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var Constants = { LIBRARY_NAME: "MSAL.JS", SKU: "msal.js.common", // Prefix for all library cache entries CACHE_PREFIX: "msal", // default authority DEFAULT_AUTHORITY: "https://login.microsoftonline.com/common/", DEFAULT_AUTHORITY_HOST: "login.microsoftonline.com", DEFAULT_COMMON_TENANT: "common", // ADFS String ADFS: "adfs", DSTS: "dstsv2", // Default AAD Instance Discovery Endpoint AAD_INSTANCE_DISCOVERY_ENDPT: "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=", // CIAM URL CIAM_AUTH_URL: ".ciamlogin.com", AAD_TENANT_DOMAIN_SUFFIX: ".onmicrosoft.com", // Resource delimiter - used for certain cache entries RESOURCE_DELIM: "|", // Placeholder for non-existent account ids/objects NO_ACCOUNT: "NO_ACCOUNT", // Claims CLAIMS: "claims", // Consumer UTID CONSUMER_UTID: "9188040d-6c67-4c5b-b112-36a304b66dad", // Default scopes OPENID_SCOPE: "openid", PROFILE_SCOPE: "profile", OFFLINE_ACCESS_SCOPE: "offline_access", EMAIL_SCOPE: "email", // Default response type for authorization code flow CODE_RESPONSE_TYPE: "code", CODE_GRANT_TYPE: "authorization_code", RT_GRANT_TYPE: "refresh_token", FRAGMENT_RESPONSE_MODE: "fragment", S256_CODE_CHALLENGE_METHOD: "S256", URL_FORM_CONTENT_TYPE: "application/x-www-form-urlencoded;charset=utf-8", AUTHORIZATION_PENDING: "authorization_pending", NOT_DEFINED: "not_defined", EMPTY_STRING: "", NOT_APPLICABLE: "N/A", FORWARD_SLASH: "/", IMDS_ENDPOINT: "http://169.254.169.254/metadata/instance/compute/location", IMDS_VERSION: "2020-06-01", IMDS_TIMEOUT: 2000, AZURE_REGION_AUTO_DISCOVER_FLAG: "TryAutoDetect", REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX: "login.microsoft.com", REGIONAL_AUTH_NON_MSI_QUERY_STRING: "allowestsrnonmsi=true", KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"], TOKEN_RESPONSE_TYPE: "token", ID_TOKEN_RESPONSE_TYPE: "id_token", SHR_NONCE_VALIDITY: 240, INVALID_INSTANCE: "invalid_instance", }; var OIDC_DEFAULT_SCOPES = [ Constants.OPENID_SCOPE, Constants.PROFILE_SCOPE, Constants.OFFLINE_ACCESS_SCOPE ]; var OIDC_SCOPES = Object(_virtual_tslib_js__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(OIDC_DEFAULT_SCOPES, [ Constants.EMAIL_SCOPE ]); /** * Request header names */ var HeaderNames; (function (HeaderNames) { HeaderNames["CONTENT_TYPE"] = "Content-Type"; HeaderNames["RETRY_AFTER"] = "Retry-After"; HeaderNames["CCS_HEADER"] = "X-AnchorMailbox"; HeaderNames["WWWAuthenticate"] = "WWW-Authenticate"; HeaderNames["AuthenticationInfo"] = "Authentication-Info"; HeaderNames["X_MS_REQUEST_ID"] = "x-ms-request-id"; HeaderNames["X_MS_HTTP_VERSION"] = "x-ms-httpver"; })(HeaderNames || (HeaderNames = {})); /** * Persistent cache keys MSAL which stay while user is logged in. */ var PersistentCacheKeys; (function (PersistentCacheKeys) { PersistentCacheKeys["ID_TOKEN"] = "idtoken"; PersistentCacheKeys["CLIENT_INFO"] = "client.info"; PersistentCacheKeys["ADAL_ID_TOKEN"] = "adal.idtoken"; PersistentCacheKeys["ERROR"] = "error"; PersistentCacheKeys["ERROR_DESC"] = "error.description"; PersistentCacheKeys["ACTIVE_ACCOUNT"] = "active-account"; PersistentCacheKeys["ACTIVE_ACCOUNT_FILTERS"] = "active-account-filters"; // new cache entry for active_account for a more robust version for browser })(PersistentCacheKeys || (PersistentCacheKeys = {})); /** * String constants related to AAD Authority */ var AADAuthorityConstants; (function (AADAuthorityConstants) { AADAuthorityConstants["COMMON"] = "common"; AADAuthorityConstants["ORGANIZATIONS"] = "organizations"; AADAuthorityConstants["CONSUMERS"] = "consumers"; })(AADAuthorityConstants || (AADAuthorityConstants = {})); /** * Keys in the hashParams sent by AAD Server */ var AADServerParamKeys; (function (AADServerParamKeys) { AADServerParamKeys["CLIENT_ID"] = "client_id"; AADServerParamKeys["REDIRECT_URI"] = "redirect_uri"; AADServerParamKeys["RESPONSE_TYPE"] = "response_type"; AADServerParamKeys["RESPONSE_MODE"] = "response_mode"; AADServerParamKeys["GRANT_TYPE"] = "grant_type"; AADServerParamKeys["CLAIMS"] = "claims"; AADServerParamKeys["SCOPE"] = "scope"; AADServerParamKeys["ERROR"] = "error"; AADServerParamKeys["ERROR_DESCRIPTION"] = "error_description"; AADServerParamKeys["ACCESS_TOKEN"] = "access_token"; AADServerParamKeys["ID_TOKEN"] = "id_token"; AADServerParamKeys["REFRESH_TOKEN"] = "refresh_token"; AADServerParamKeys["EXPIRES_IN"] = "expires_in"; AADServerParamKeys["STATE"] = "state"; AADServerParamKeys["NONCE"] = "nonce"; AADServerParamKeys["PROMPT"] = "prompt"; AADServerParamKeys["SESSION_STATE"] = "session_state"; AADServerParamKeys["CLIENT_INFO"] = "client_info"; AADServerParamKeys["CODE"] = "code"; AADServerParamKeys["CODE_CHALLENGE"] = "code_challenge"; AADServerParamKeys["CODE_CHALLENGE_METHOD"] = "code_challenge_method"; AADServerParamKeys["CODE_VERIFIER"] = "code_verifier"; AADServerParamKeys["CLIENT_REQUEST_ID"] = "client-request-id"; AADServerParamKeys["X_CLIENT_SKU"] = "x-client-SKU"; AADServerParamKeys["X_CLIENT_VER"] = "x-client-VER"; AADServerParamKeys["X_CLIENT_OS"] = "x-client-OS"; AADServerParamKeys["X_CLIENT_CPU"] = "x-client-CPU"; AADServerParamKeys["X_CLIENT_CURR_TELEM"] = "x-client-current-telemetry"; AADServerParamKeys["X_CLIENT_LAST_TELEM"] = "x-client-last-telemetry"; AADServerParamKeys["X_MS_LIB_CAPABILITY"] = "x-ms-lib-capability"; AADServerParamKeys["X_APP_NAME"] = "x-app-name"; AADServerParamKeys["X_APP_VER"] = "x-app-ver"; AADServerParamKeys["POST_LOGOUT_URI"] = "post_logout_redirect_uri"; AADServerParamKeys["ID_TOKEN_HINT"] = "id_token_hint"; AADServerParamKeys["DEVICE_CODE"] = "device_code"; AADServerParamKeys["CLIENT_SECRET"] = "client_secret"; AADServerParamKeys["CLIENT_ASSERTION"] = "client_assertion"; AADServerParamKeys["CLIENT_ASSERTION_TYPE"] = "client_assertion_type"; AADServerParamKeys["TOKEN_TYPE"] = "token_type"; AADServerParamKeys["REQ_CNF"] = "req_cnf"; AADServerParamKeys["OBO_ASSERTION"] = "assertion"; AADServerParamKeys["REQUESTED_TOKEN_USE"] = "requested_token_use"; AADServerParamKeys["ON_BEHALF_OF"] = "on_behalf_of"; AADServerParamKeys["FOCI"] = "foci"; AADServerParamKeys["CCS_HEADER"] = "X-AnchorMailbox"; AADServerParamKeys["RETURN_SPA_CODE"] = "return_spa_code"; AADServerParamKeys["NATIVE_BROKER"] = "nativebroker"; AADServerParamKeys["LOGOUT_HINT"] = "logout_hint"; })(AADServerParamKeys || (AADServerParamKeys = {})); /** * Claims request keys */ var ClaimsRequestKeys; (function (ClaimsRequestKeys) { ClaimsRequestKeys["ACCESS_TOKEN"] = "access_token"; ClaimsRequestKeys["XMS_CC"] = "xms_cc"; })(ClaimsRequestKeys || (ClaimsRequestKeys = {})); /** * we considered making this "enum" in the request instead of string, however it looks like the allowed list of * prompt values kept changing over past couple of years. There are some undocumented prompt values for some * internal partners too, hence the choice of generic "string" type instead of the "enum" */ var PromptValue = { LOGIN: "login", SELECT_ACCOUNT: "select_account", CONSENT: "consent", NONE: "none", CREATE: "create", NO_SESSION: "no_session" }; /** * SSO Types - generated to populate hints */ var SSOTypes; (function (SSOTypes) { SSOTypes["ACCOUNT"] = "account"; SSOTypes["SID"] = "sid"; SSOTypes["LOGIN_HINT"] = "login_hint"; SSOTypes["ID_TOKEN"] = "id_token"; SSOTypes["DOMAIN_HINT"] = "domain_hint"; SSOTypes["ORGANIZATIONS"] = "organizations"; SSOTypes["CONSUMERS"] = "consumers"; SSOTypes["ACCOUNT_ID"] = "accountIdentifier"; SSOTypes["HOMEACCOUNT_ID"] = "homeAccountIdentifier"; })(SSOTypes || (SSOTypes = {})); /** * allowed values for codeVerifier */ var CodeChallengeMethodValues = { PLAIN: "plain", S256: "S256" }; /** * allowed values for response_mode */ var ResponseMode; (function (ResponseMode) { ResponseMode["QUERY"] = "query"; ResponseMode["FRAGMENT"] = "fragment"; ResponseMode["FORM_POST"] = "form_post"; })(ResponseMode || (ResponseMode = {})); /** * allowed grant_type */ var GrantType; (function (GrantType) { GrantType["IMPLICIT_GRANT"] = "implicit"; GrantType["AUTHORIZATION_CODE_GRANT"] = "authorization_code"; GrantType["CLIENT_CREDENTIALS_GRANT"] = "client_credentials"; GrantType["RESOURCE_OWNER_PASSWORD_GRANT"] = "password"; GrantType["REFRESH_TOKEN_GRANT"] = "refresh_token"; GrantType["DEVICE_CODE_GRANT"] = "device_code"; GrantType["JWT_BEARER"] = "urn:ietf:params:oauth:grant-type:jwt-bearer"; })(GrantType || (GrantType = {})); /** * Account types in Cache */ var CacheAccountType; (function (CacheAccountType) { CacheAccountType["MSSTS_ACCOUNT_TYPE"] = "MSSTS"; CacheAccountType["ADFS_ACCOUNT_TYPE"] = "ADFS"; CacheAccountType["MSAV1_ACCOUNT_TYPE"] = "MSA"; CacheAccountType["GENERIC_ACCOUNT_TYPE"] = "Generic"; // NTLM, Kerberos, FBA, Basic etc })(CacheAccountType || (CacheAccountType = {})); /** * Separators used in cache */ var Separators; (function (Separators) { Separators["CACHE_KEY_SEPARATOR"] = "-"; Separators["CLIENT_INFO_SEPARATOR"] = "."; })(Separators || (Separators = {})); /** * Credential Type stored in the cache */ var CredentialType; (function (CredentialType) { CredentialType["ID_TOKEN"] = "IdToken"; CredentialType["ACCESS_TOKEN"] = "AccessToken"; CredentialType["ACCESS_TOKEN_WITH_AUTH_SCHEME"] = "AccessToken_With_AuthScheme"; CredentialType["REFRESH_TOKEN"] = "RefreshToken"; })(CredentialType || (CredentialType = {})); /** * Combine all cache types */ var CacheType; (function (CacheType) { CacheType[CacheType["ADFS"] = 1001] = "ADFS"; CacheType[CacheType["MSA"] = 1002] = "MSA"; CacheType[CacheType["MSSTS"] = 1003] = "MSSTS"; CacheType[CacheType["GENERIC"] = 1004] = "GENERIC"; CacheType[CacheType["ACCESS_TOKEN"] = 2001] = "ACCESS_TOKEN"; CacheType[CacheType["REFRESH_TOKEN"] = 2002] = "REFRESH_TOKEN"; CacheType[CacheType["ID_TOKEN"] = 2003] = "ID_TOKEN"; CacheType[CacheType["APP_METADATA"] = 3001] = "APP_METADATA"; CacheType[CacheType["UNDEFINED"] = 9999] = "UNDEFINED"; })(CacheType || (CacheType = {})); /** * More Cache related constants */ var APP_METADATA = "appmetadata"; var CLIENT_INFO = "client_info"; var THE_FAMILY_ID = "1"; var AUTHORITY_METADATA_CONSTANTS = { CACHE_KEY: "authority-metadata", REFRESH_TIME_SECONDS: 3600 * 24 // 24 Hours }; var AuthorityMetadataSource; (function (AuthorityMetadataSource) { AuthorityMetadataSource["CONFIG"] = "config"; AuthorityMetadataSource["CACHE"] = "cache"; AuthorityMetadataSource["NETWORK"] = "network"; AuthorityMetadataSource["HARDCODED_VALUES"] = "hardcoded_values"; })(AuthorityMetadataSource || (AuthorityMetadataSource = {})); var SERVER_TELEM_CONSTANTS = { SCHEMA_VERSION: 5, MAX_CUR_HEADER_BYTES: 80, MAX_LAST_HEADER_BYTES: 330, MAX_CACHED_ERRORS: 50, CACHE_KEY: "server-telemetry", CATEGORY_SEPARATOR: "|", VALUE_SEPARATOR: ",", OVERFLOW_TRUE: "1", OVERFLOW_FALSE: "0", UNKNOWN_ERROR: "unknown_error" }; /** * Type of the authentication request */ var AuthenticationScheme; (function (AuthenticationScheme) { AuthenticationScheme["BEARER"] = "Bearer"; AuthenticationScheme["POP"] = "pop"; AuthenticationScheme["SSH"] = "ssh-cert"; })(AuthenticationScheme || (AuthenticationScheme = {})); /** * Constants related to throttling */ var ThrottlingConstants = { // Default time to throttle RequestThumbprint in seconds DEFAULT_THROTTLE_TIME_SECONDS: 60, // Default maximum time to throttle in seconds, overrides what the server sends back DEFAULT_MAX_THROTTLE_TIME_SECONDS: 3600, // Prefix for storing throttling entries THROTTLING_PREFIX: "throttling", // Value assigned to the x-ms-lib-capability header to indicate to the server the library supports throttling X_MS_LIB_CAPABILITY_VALUE: "retry-after, h429" }; var Errors = { INVALID_GRANT_ERROR: "invalid_grant", CLIENT_MISMATCH_ERROR: "client_mismatch", }; /** * Password grant parameters */ var PasswordGrantConstants; (function (PasswordGrantConstants) { PasswordGrantConstants["username"] = "username"; PasswordGrantConstants["password"] = "password"; })(PasswordGrantConstants || (PasswordGrantConstants = {})); /** * Response codes */ var ResponseCodes; (function (ResponseCodes) { ResponseCodes[ResponseCodes["httpSuccess"] = 200] = "httpSuccess"; ResponseCodes[ResponseCodes["httpBadRequest"] = 400] = "httpBadRequest"; })(ResponseCodes || (ResponseCodes = {})); /** * Region Discovery Sources */ var RegionDiscoverySources; (function (RegionDiscoverySources) { RegionDiscoverySources["FAILED_AUTO_DETECTION"] = "1"; RegionDiscoverySources["INTERNAL_CACHE"] = "2"; RegionDiscoverySources["ENVIRONMENT_VARIABLE"] = "3"; RegionDiscoverySources["IMDS"] = "4"; })(RegionDiscoverySources || (RegionDiscoverySources = {})); /** * Region Discovery Outcomes */ var RegionDiscoveryOutcomes; (function (RegionDiscoveryOutcomes) { RegionDiscoveryOutcomes["CONFIGURED_MATCHES_DETECTED"] = "1"; RegionDiscoveryOutcomes["CONFIGURED_NO_AUTO_DETECTION"] = "2"; RegionDiscoveryOutcomes["CONFIGURED_NOT_DETECTED"] = "3"; RegionDiscoveryOutcomes["AUTO_DETECTION_REQUESTED_SUCCESSFUL"] = "4"; RegionDiscoveryOutcomes["AUTO_DETECTION_REQUESTED_FAILED"] = "5"; })(RegionDiscoveryOutcomes || (RegionDiscoveryOutcomes = {})); var CacheOutcome; (function (CacheOutcome) { CacheOutcome["NO_CACHE_HIT"] = "0"; CacheOutcome["FORCE_REFRESH"] = "1"; CacheOutcome["NO_CACHED_ACCESS_TOKEN"] = "2"; CacheOutcome["CACHED_ACCESS_TOKEN_EXPIRED"] = "3"; CacheOutcome["REFRESH_CACHED_ACCESS_TOKEN"] = "4"; CacheOutcome["CLAIMS_REQUESTED_CACHE_SKIPPED"] = "5"; })(CacheOutcome || (CacheOutcome = {})); var JsonTypes; (function (JsonTypes) { JsonTypes["Jwt"] = "JWT"; JsonTypes["Jwk"] = "JWK"; JsonTypes["Pop"] = "pop"; })(JsonTypes || (JsonTypes = {})); var ONE_DAY_IN_MS = 86400000; //# sourceMappingURL=Constants.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js": /*!*********************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js ***! \*********************************************************************/ /*! exports provided: ProtocolUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProtocolUtils", function() { return ProtocolUtils; }); /* harmony import */ var _StringUtils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StringUtils.js */ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js"); /* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ "./node_modules/@azure/msal-common/dist/utils/Constants.js"); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Class which provides helpers for OAuth 2.0 protocol specific values */ var ProtocolUtils = /** @class */ (function () { function ProtocolUtils() { } /** * Appends user state with random guid, or returns random guid. * @param userState * @param randomGuid */ ProtocolUtils.setRequestState = function (cryptoObj, userState, meta) { var libraryState = ProtocolUtils.generateLibraryState(cryptoObj, meta); return !_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(userState) ? "" + libraryState + _Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].RESOURCE_DELIM + userState : libraryState; }; /** * Generates the state value used by the common library. * @param randomGuid * @param cryptoObj */ ProtocolUtils.generateLibraryState = function (cryptoObj, meta) { if (!cryptoObj) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createNoCryptoObjectError("generateLibraryState"); } // Create a state object containing a unique id and the timestamp of the request creation var stateObj = { id: cryptoObj.createNewGuid() }; if (meta) { stateObj.meta = meta; } var stateString = JSON.stringify(stateObj); return cryptoObj.base64Encode(stateString); }; /** * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user. * @param state * @param cryptoObj */ ProtocolUtils.parseRequestState = function (cryptoObj, state) { if (!cryptoObj) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createNoCryptoObjectError("parseRequestState"); } if (_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(state)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createInvalidStateError(state, "Null, undefined or empty state"); } try { // Split the state between library state and user passed state and decode them separately var splitState = state.split(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].RESOURCE_DELIM); var libraryState = splitState[0]; var userState = splitState.length > 1 ? splitState.slice(1).join(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].RESOURCE_DELIM) : _Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING; var libraryStateString = cryptoObj.base64Decode(libraryState); var libraryStateObj = JSON.parse(libraryStateString); return { userRequestState: !_StringUtils_js__WEBPACK_IMPORTED_MODULE_0__["StringUtils"].isEmpty(userState) ? userState : _Constants_js__WEBPACK_IMPORTED_MODULE_1__["Constants"].EMPTY_STRING, libraryState: libraryStateObj }; } catch (e) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_2__["ClientAuthError"].createInvalidStateError(state, e); } }; return ProtocolUtils; }()); //# sourceMappingURL=ProtocolUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/utils/StringUtils.js": /*!*******************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/utils/StringUtils.js ***! \*******************************************************************/ /*! exports provided: StringUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringUtils", function() { return StringUtils; }); /* harmony import */ var _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../error/ClientAuthError.js */ "./node_modules/@azure/msal-common/dist/error/ClientAuthError.js"); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * @hidden */ var StringUtils = /** @class */ (function () { function StringUtils() { } /** * decode a JWT * * @param authToken */ StringUtils.decodeAuthToken = function (authToken) { if (StringUtils.isEmpty(authToken)) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createTokenNullOrEmptyError(authToken); } var tokenPartsRegex = /^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/; var matches = tokenPartsRegex.exec(authToken); if (!matches || matches.length < 4) { throw _error_ClientAuthError_js__WEBPACK_IMPORTED_MODULE_0__["ClientAuthError"].createTokenParsingError("Given token is malformed: " + JSON.stringify(authToken)); } var crackedToken = { header: matches[1], JWSPayload: matches[2], JWSSig: matches[3] }; return crackedToken; }; /** * Check if a string is empty. * * @param str */ StringUtils.isEmpty = function (str) { return (typeof str === "undefined" || !str || 0 === str.length); }; /** * Check if stringified object is empty * @param strObj */ StringUtils.isEmptyObj = function (strObj) { if (strObj && !StringUtils.isEmpty(strObj)) { try { var obj = JSON.parse(strObj); return Object.keys(obj).length === 0; } catch (e) { } } return true; }; StringUtils.startsWith = function (str, search) { return str.indexOf(search) === 0; }; StringUtils.endsWith = function (str, search) { return (str.length >= search.length) && (str.lastIndexOf(search) === (str.length - search.length)); }; /** * Parses string into an object. * * @param query */ StringUtils.queryStringToObject = function (query) { var obj = {}; var params = query.split("&"); var decode = function (s) { return decodeURIComponent(s.replace(/\+/g, " ")); }; params.forEach(function (pair) { if (pair.trim()) { var _a = pair.split(/=(.+)/g, 2), key = _a[0], value = _a[1]; // Split on the first occurence of the '=' character if (key && value) { obj[decode(key)] = decode(value); } } }); return obj; }; /** * Trims entries in an array. * * @param arr */ StringUtils.trimArrayEntries = function (arr) { return arr.map(function (entry) { return entry.trim(); }); }; /** * Removes empty strings from array * @param arr */ StringUtils.removeEmptyStringsFromArray = function (arr) { return arr.filter(function (entry) { return !StringUtils.isEmpty(entry); }); }; /** * Attempts to parse a string into JSON * @param str */ StringUtils.jsonParseHelper = function (str) { try { return JSON.parse(str); } catch (e) { return null; } }; /** * Tests if a given string matches a given pattern, with support for wildcards and queries. * @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries * @param input String to match against */ StringUtils.matchPattern = function (pattern, input) { /** * Wildcard support: https://stackoverflow.com/a/3117248/4888559 * Queries: replaces "?" in string with escaped "\?" for regex test */ var regex = new RegExp(pattern.replace(/\\/g, "\\\\").replace(/\*/g, "[^ ]*").replace(/\?/g, "\\\?")); // eslint-disable-line security/detect-non-literal-regexp return regex.test(input); }; return StringUtils; }()); //# sourceMappingURL=StringUtils.js.map /***/ }), /***/ "./node_modules/@azure/msal-common/dist/utils/TimeUtils.js": /*!*****************************************************************!*\ !*** ./node_modules/@azure/msal-common/dist/utils/TimeUtils.js ***! \*****************************************************************/ /*! exports provided: TimeUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeUtils", function() { return TimeUtils; }); /*! @azure/msal-common v13.3.1 2023-10-27 */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * Utility class which exposes functions for managing date and time operations. */ var TimeUtils = /** @class */ (function () { function TimeUtils() { } /** * return the current time in Unix time (seconds). */ TimeUtils.nowSeconds = function () { // Date.getTime() returns in milliseconds. return Math.round(new Date().getTime() / 1000.0); }; /** * check if a token is expired based on given UTC time in seconds. * @param expiresOn */ TimeUtils.isTokenExpired = function (expiresOn, offset) { // check for access token expiry var expirationSec = Number(expiresOn) || 0; var offsetCurrentTimeSec = TimeUtils.nowSeconds() + offset; // If current time + offset is greater than token expiration time, then token is expired. return (offsetCurrentTimeSec > expirationSec); }; /** * If the current time is earlier than the time that a token was cached at, we must discard the token * i.e. The system clock was turned back after acquiring the cached token * @param cachedAt * @param offset */ TimeUtils.wasClockTurnedBack = function (cachedAt) { var cachedAtSec = Number(cachedAt); return cachedAtSec > TimeUtils.nowSeconds(); }; /** * Waits for t number of milliseconds * @param t number * @param value T */ TimeUtils.delay = function (t, value) { return new Promise(function (resolve) { return setTimeout(function () { return resolve(value); }, t); }); }; return TimeUtils; }()); //# sourceMappingURL=TimeUtils.js.map /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; }); /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); function _defineProperty(obj, key, value) { key = Object(_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js": /*!************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; }); function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; }); /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; Object(_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectSpread2; }); /* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectSpread2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { Object(_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js": /*!*********************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; }); function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js": /*!*******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; }); function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js": /*!****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toPrimitive; }); /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); function _toPrimitive(input, hint) { if (Object(_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (Object(_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toPropertyKey; }); /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); function _toPropertyKey(arg) { var key = Object(_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arg, "string"); return Object(_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key) === "symbol" ? key : String(key); } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js": /*!***********************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _typeof; }); function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/components/index.js": /*!********************************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/components/index.js ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./panel */ "./node_modules/@cseo/coherence-panel/lib/components/panel/index.js"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _panel__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _panel__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.base.js": /*!****************************************************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.base.js ***! \****************************************************************************************/ /*! exports provided: CoherencePanelBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePanelBase", function() { return coherencePanelBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/coherence-utilities */ "./node_modules/@cseo/coherence-utilities/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); var getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var coherencePanelBase = function (props) { var styles = props.styles, titleText = props.titleText, onRenderFooter = props.onRenderFooter, theme = props.theme, hasCloseButton = props.hasCloseButton, panelSize = props.panelSize, isLightDismiss = props.isLightDismiss, backButton = props.backButton, children = props.children, panelBodyResponsiveMargin = props.panelBodyResponsiveMargin, onRenderHeader = props.onRenderHeader, closeButtonAriaLabel = props.closeButtonAriaLabel; var uniqueId = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["getId"])('CoherPanel'))[0]; react__WEBPACK_IMPORTED_MODULE_3___default.a.useEffect(function () { window.addEventListener('resize', handleResize); return function () { window.removeEventListener('resize', handleResize); }; }, []); var handleResize = function () { if (!Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["isPanelHeightSufficient"])()) { setIsShort(true); } else if (Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["isPanelHeightSufficient"])()) { setIsShort(false); } }; var _a = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(!Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["isPanelHeightSufficient"])()), isShort = _a[0], setIsShort = _a[1]; var classNames = getClassNames(styles, { theme: theme, isFooterInBody: (isShort), panelSize: panelSize, panelBodyResponsiveMargin: panelBodyResponsiveMargin }); var _renderElement = function () { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Panel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { id: uniqueId, headerText: titleText, hasCloseButton: _getCloseButton(), isLightDismiss: isLightDismiss !== undefined ? isLightDismiss : true, type: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PanelType"].custom, styles: classNames.subComponentStyles.panelStyles, isFooterAtBottom: true, onRenderHeader: _renderHeader, onRenderBody: _renderBody, onRenderFooter: _renderFooter, onRenderNavigationContent: _renderNavigation, closeButtonAriaLabel: closeButtonAriaLabel !== null && closeButtonAriaLabel !== void 0 ? closeButtonAriaLabel : 'Close' }))); }; var _renderNavigation = function (panelProps, defaultRender) { var _a; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: classNames.headerButtonsContainer }, backButton && backButton.onClick && (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["IconButton"], { iconProps: { iconName: 'Back' }, onClick: backButton.onClick, ariaLabel: backButton.ariaLabel ? backButton.ariaLabel : 'Back', className: classNames.backButton }))), (_a = props.onRenderAdditionalNavigationContent) === null || _a === void 0 ? void 0 : _a.call(props), defaultRender(panelProps))); }; var _getCloseButton = function () { if (isShort) { return true; } else { return hasCloseButton !== undefined ? hasCloseButton : true; } }; var _renderHeader = function (panelProps, defaultRender, headerId) { if (onRenderHeader) { return onRenderHeader(panelProps, _renderHeaderDefault, headerId); } return _renderHeaderDefault(panelProps, defaultRender, headerId); }; var _renderHeaderDefault = function (_, __, headerId) { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("h1", { className: classNames.header, id: headerId }, titleText)); }; var _renderBody = function () { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: classNames.body }, children, _renderFooterContent(!isShort))); }; var _renderFooter = function () { return _renderFooterContent(isShort); }; var _renderFooterContent = function (_isShort) { var _a; var accessibleCloseButton = !hasCloseButton && (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["IconButton"], { iconProps: { iconName: 'Cancel' }, className: classNames.accessibleCloseButton, id: "accessible_close_button", "aria-label": (_a = props.closeButtonAriaLabel) !== null && _a !== void 0 ? _a : 'Close', onClick: function (e) { var _a; (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props, e); } })); if (!_isShort && onRenderFooter) { if (typeof onRenderFooter === 'function') { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: classNames.footer }, onRenderFooter(), accessibleCloseButton)); } else { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: classNames.footer }, _renderButtons(), accessibleCloseButton)); } } return null; }; var _renderButtons = function () { var actionBar = onRenderFooter; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, actionBar.primaryButton && actionBar.primaryButton.text && actionBar.primaryButton.onAction && (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PrimaryButton"], { disabled: !!actionBar.primaryButton.disabled, onClick: actionBar.primaryButton.onAction }, actionBar.primaryButton.text)), actionBar.secondaryButton && actionBar.secondaryButton.text && actionBar.secondaryButton.onAction && (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["DefaultButton"], { disabled: !!actionBar.secondaryButton.disabled, onClick: actionBar.secondaryButton.onAction }, actionBar.secondaryButton.text)))); }; return _renderElement(); }; //# sourceMappingURL=CoherencePanel.base.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.js": /*!***********************************************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.js ***! \***********************************************************************************/ /*! exports provided: CoherencePanel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePanel", function() { return CoherencePanel; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherencePanel_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePanel.base */ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.base.js"); /* harmony import */ var _CoherencePanel_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherencePanel.styles */ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.styles.js"); var CoherencePanel = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherencePanel_base__WEBPACK_IMPORTED_MODULE_1__["CoherencePanelBase"], _CoherencePanel_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherencePanel.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.styles.js ***! \******************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/coherence-utilities */ "./node_modules/@cseo/coherence-utilities/lib/index.js"); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); var getStyles = function (props) { var theme = props.theme, isFooterInBody = props.isFooterInBody, _a = props.panelSize, panelSize = _a === void 0 ? _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["CoherencePanelSize"].small : _a, _b = props.panelBodyResponsiveMargin, panelBodyResponsiveMargin = _b === void 0 ? true : _b; return { subComponentStyles: { panelStyles: { main: { selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["getResponsivePanelWidth"])(panelSize, isFooterInBody)) }, root: [ { marginTop: '48px' }, isFooterInBody && { marginTop: '0px' } ], navigation: { height: '40px' }, closeButton: { color: theme.palette.neutralPrimary, }, overlay: { backgroundColor: theme.palette.blackTranslucent40 } } }, headerButtonsContainer: { flex: '1 1 auto' }, backButton: { padding: '0px', height: '40px', color: theme.palette.neutralPrimary }, accessibleCloseButton: { position: 'absolute', color: theme.palette.neutralPrimary, fontSize: '20px', border: 0, clip: 'rect(0 0 0 0)', height: '1px', width: '1px', overflow: 'hidden', padding: 0, selectors: { '&:focus': { color: theme.palette.neutralPrimary, width: '44px', height: '40px', top: 0, right: 0, marginRight: 0, border: 'initial', clip: 'initial', overflow: 'initial', }, '&:hover': { color: theme.palette.neutralPrimary, } } }, header: [ _cseo_styles__WEBPACK_IMPORTED_MODULE_2__["ExtendedTypography"].size26Bold, { color: theme.palette.neutralPrimary, marginTop: '8px', marginBottom: '32px', selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["getResponsivePanelMargin"])(panelSize, undefined)) }, isFooterInBody && { marginTop: '0px', marginBottom: '8px' } ], body: { selectors: panelBodyResponsiveMargin ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["getResponsivePanelMargin"])(panelSize, undefined)) : { margin: '0px' } }, footer: { color: theme.palette.neutralPrimary, marginTop: '24px', marginBottom: '24px', display: 'flex', selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ '.ms-Button': { marginRight: '12px' } }, Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["getResponsivePanelMargin"])(panelSize, isFooterInBody)) } }; }; //# sourceMappingURL=CoherencePanel.styles.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.types.js ***! \*****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=CoherencePanel.types.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/components/panel/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/components/panel/index.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherencePanel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherencePanel */ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherencePanel", function() { return _CoherencePanel__WEBPACK_IMPORTED_MODULE_0__["CoherencePanel"]; }); /* harmony import */ var _CoherencePanel_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePanel.types */ "./node_modules/@cseo/coherence-panel/lib/components/panel/CoherencePanel.types.js"); /* harmony import */ var _CoherencePanel_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CoherencePanel_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherencePanel_types__WEBPACK_IMPORTED_MODULE_1__) if(["default","CoherencePanel"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherencePanel_types__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-panel/lib/index.js": /*!*********************************************************!*\ !*** ./node_modules/@cseo/coherence-panel/lib/index.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components */ "./node_modules/@cseo/coherence-panel/lib/components/index.js"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _components__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _components__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-utilities/lib/CoherenceConstants.js": /*!**************************************************************************!*\ !*** ./node_modules/@cseo/coherence-utilities/lib/CoherenceConstants.js ***! \**************************************************************************/ /*! exports provided: KeyCode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyCode", function() { return KeyCode; }); var KeyCode; (function (KeyCode) { KeyCode[KeyCode["Enter"] = 13] = "Enter"; KeyCode[KeyCode["Space"] = 32] = "Space"; KeyCode[KeyCode["LeftArrow"] = 37] = "LeftArrow"; KeyCode[KeyCode["RightArrow"] = 39] = "RightArrow"; })(KeyCode || (KeyCode = {})); //# sourceMappingURL=CoherenceConstants.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-utilities/lib/StyleUtils.js": /*!******************************************************************!*\ !*** ./node_modules/@cseo/coherence-utilities/lib/StyleUtils.js ***! \******************************************************************/ /*! exports provided: CoherencePanelSize, panelMargin, getResponsivePanelWidth, getResponsivePanelMargin, isPanelHeightSufficient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePanelSize", function() { return CoherencePanelSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "panelMargin", function() { return panelMargin; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getResponsivePanelWidth", function() { return getResponsivePanelWidth; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getResponsivePanelMargin", function() { return getResponsivePanelMargin; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPanelHeightSufficient", function() { return isPanelHeightSufficient; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var CoherencePanelSize; (function (CoherencePanelSize) { CoherencePanelSize["small"] = "304px"; CoherencePanelSize["medium"] = "600px"; CoherencePanelSize["large"] = "1160px"; })(CoherencePanelSize || (CoherencePanelSize = {})); var panelMargin = { xs: '16px', sm: '32px', md: '48px', lg: '64px' }; var getResponsivePanelWidth = function (size, _isFooterInBody) { var _a, _b, _c; var width; switch (size) { case CoherencePanelSize.medium: width = (_a = {}, _a['@media (min-width: 648px)'] = { width: _isFooterInBody ? '100%' : CoherencePanelSize.medium }, _a["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: 647px)"] = { width: _isFooterInBody ? '100%' : 'calc(100% - 48px)', minWidth: '272px' }, _a); break; case CoherencePanelSize.large: width = (_b = {}, _b['@media (min-width: 1208px)'] = { width: _isFooterInBody ? '100%' : CoherencePanelSize.large }, _b["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: 1207px)"] = { width: _isFooterInBody ? '100%' : 'calc(100% - 48px)', minWidth: '272px' }, _b); break; case CoherencePanelSize.small: default: width = (_c = {}, _c['@media (min-width: 352px)'] = { width: _isFooterInBody ? '100%' : CoherencePanelSize.small }, _c["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: 351px)"] = { width: _isFooterInBody ? '100%' : 'calc(100% - 48px)', minWidth: '272px' }, _c); break; } return width; }; var getResponsivePanelMargin = function (size, _isFooterInBody) { var _a, _b, _c; var margins; switch (size) { case CoherencePanelSize.medium: margins = (_a = {}, _a["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinLarge"] + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.md, marginRight: _isFooterInBody ? '0px' : panelMargin.md }, _a["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinLarge"] - 1) + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.sm, marginRight: _isFooterInBody ? '0px' : panelMargin.sm }, _a["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] - 1) + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.xs, marginRight: _isFooterInBody ? '0px' : panelMargin.xs }, _a); break; case CoherencePanelSize.large: margins = (_b = {}, _b["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinXLarge"] + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.lg, marginRight: _isFooterInBody ? '0px' : panelMargin.lg }, _b["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinLarge"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinXLarge"] - 1) + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.md, marginRight: _isFooterInBody ? '0px' : panelMargin.md }, _b["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinLarge"] - 1) + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.sm, marginRight: _isFooterInBody ? '0px' : panelMargin.sm }, _b["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] - 1) + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.xs, marginRight: _isFooterInBody ? '0px' : panelMargin.xs }, _b); break; case CoherencePanelSize.small: default: margins = (_c = {}, _c["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.sm, marginRight: _isFooterInBody ? '0px' : panelMargin.sm }, _c["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] - 1) + "px)"] = { marginLeft: _isFooterInBody ? '0px' : panelMargin.xs, marginRight: _isFooterInBody ? '0px' : panelMargin.xs }, _c); break; } return margins; }; var isPanelHeightSufficient = function () { return window.innerHeight - 48 >= window.innerHeight * 0.85; }; //# sourceMappingURL=StyleUtils.js.map /***/ }), /***/ "./node_modules/@cseo/coherence-utilities/lib/index.js": /*!*************************************************************!*\ !*** ./node_modules/@cseo/coherence-utilities/lib/index.js ***! \*************************************************************/ /*! exports provided: CoherencePanelSize, panelMargin, getResponsivePanelWidth, getResponsivePanelMargin, isPanelHeightSufficient, KeyCode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _StyleUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StyleUtils */ "./node_modules/@cseo/coherence-utilities/lib/StyleUtils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherencePanelSize", function() { return _StyleUtils__WEBPACK_IMPORTED_MODULE_0__["CoherencePanelSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "panelMargin", function() { return _StyleUtils__WEBPACK_IMPORTED_MODULE_0__["panelMargin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getResponsivePanelWidth", function() { return _StyleUtils__WEBPACK_IMPORTED_MODULE_0__["getResponsivePanelWidth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getResponsivePanelMargin", function() { return _StyleUtils__WEBPACK_IMPORTED_MODULE_0__["getResponsivePanelMargin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPanelHeightSufficient", function() { return _StyleUtils__WEBPACK_IMPORTED_MODULE_0__["isPanelHeightSufficient"]; }); /* harmony import */ var _CoherenceConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceConstants */ "./node_modules/@cseo/coherence-utilities/lib/CoherenceConstants.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyCode", function() { return _CoherenceConstants__WEBPACK_IMPORTED_MODULE_1__["KeyCode"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/OfficeBrowserFeedback.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/OfficeBrowserFeedback.types.js ***! \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=OfficeBrowserFeedback.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/OfficeBrowserFeedbackWrapper.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/OfficeBrowserFeedbackWrapper.js ***! \**********************************************************************************************/ /*! exports provided: initializeOBFeedback */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeOBFeedback", function() { return initializeOBFeedback; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); function initializeOBFeedback(appId, env, scriptUrl, styleUrl, intlUrl, userVoiceUrl, userEmail, sessionId, cid, build, primaryColour, secondaryColour, intlFilename, locale, onError, applicationGroup, telemetryGroup, webGroup, userEmailConsentDefault, onDismiss, bugForm, screenshot, eventSampling, showEmailAddress, transitionEnabled, isShowThanks) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () { var environment, scriptTagId, existingScript, script; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) { environment = env === 'Prod' ? 0 : 1; window.OfficeBrowserFeedback = window.OfficeBrowserFeedback || {}; window.OfficeBrowserFeedback.initOptions = { appId: appId, stylesUrl: styleUrl, intlUrl: intlUrl, environment: environment, userVoice: userVoiceUrl ? { url: userVoiceUrl } : undefined, userEmail: userEmail, sessionId: sessionId, cid: cid, build: build, primaryColour: primaryColour, secondaryColour: secondaryColour, intlFilename: intlFilename, locale: locale, onError: onError, applicationGroup: applicationGroup, telemetryGroup: telemetryGroup, webGroup: webGroup, userEmailConsentDefault: userEmailConsentDefault, onDismiss: onDismiss, bugForm: bugForm, screenshot: screenshot, eventSampling: eventSampling, showEmailAddress: showEmailAddress, transitionEnabled: transitionEnabled, isShowThanks: isShowThanks }; scriptTagId = 'officebrowserfeedback-jssdk'; existingScript = document.getElementById(scriptTagId); if (!existingScript) { script = document.createElement('script'); script.id = scriptTagId; script.src = scriptUrl; document.body.appendChild(script); } return [2]; }); }); } //# sourceMappingURL=OfficeBrowserFeedbackWrapper.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/index.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _OfficeBrowserFeedbackWrapper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OfficeBrowserFeedbackWrapper */ "./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/OfficeBrowserFeedbackWrapper.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initializeOBFeedback", function() { return _OfficeBrowserFeedbackWrapper__WEBPACK_IMPORTED_MODULE_0__["initializeOBFeedback"]; }); /* harmony import */ var _OfficeBrowserFeedback_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OfficeBrowserFeedback.types */ "./node_modules/@cseo/controls/lib/OfficeBrowerFeedback/OfficeBrowserFeedback.types.js"); /* harmony import */ var _OfficeBrowserFeedback_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_OfficeBrowserFeedback_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _OfficeBrowserFeedback_types__WEBPACK_IMPORTED_MODULE_1__) if(["default","initializeOBFeedback"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _OfficeBrowserFeedback_types__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/CoherenceHeader.base.js": /*!************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/CoherenceHeader.base.js ***! \************************************************************************/ /*! exports provided: CoherenceHeaderBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceHeaderBase", function() { return CoherenceHeaderBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_coherence_panel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/coherence-panel */ "./node_modules/@cseo/coherence-panel/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _notification__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../notification */ "./node_modules/@cseo/controls/lib/notification/index.js"); /* harmony import */ var _Components_HeaderBanner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Components/HeaderBanner */ "./node_modules/@cseo/controls/lib/header/Components/HeaderBanner.js"); /* harmony import */ var _Components_NotificationControl__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Components/NotificationControl */ "./node_modules/@cseo/controls/lib/header/Components/NotificationControl.js"); var CoherenceHeaderBase = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CoherenceHeaderBase, _super); function CoherenceHeaderBase(props) { var _this = _super.call(this, props) || this; _this._getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); _this._ignoreOverflowButtonFocus = false; _this._onFarRightButtonDismissed = function () { _this.setState(function (prevState) { return ({ panelVisible: prevState.nextPanelVisible ? prevState.nextPanelVisible : prevState.panelVisible, nextPanelVisible: prevState.nextPanelVisible ? undefined : prevState.nextPanelVisible }); }, function () { if (!_this.state.panelVisible && !_this._ignoreOverflowButtonFocus) { var overflowButton = (document.getElementById('coher-header-overflow-button-id')); if (overflowButton) { overflowButton.focus(); } _this._ignoreOverflowButtonFocus = true; } }); }; _this._onPanelChange = function (nextPanelType) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; _this.setState(function (prevState) { return ({ panelVisible: prevState.panelVisible ? undefined : nextPanelType, nextPanelVisible: prevState.panelVisible ? nextPanelType : undefined }); }, function () { _this._ignoreOverflowButtonFocus = nextPanelType === 'Profile'; }); var farRightSettings = _this.props.farRightSettings; switch (nextPanelType) { case 'Notifications': (_c = (_a = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings) === null || _a === void 0 ? void 0 : (_b = _a.panelSettings).onClick) === null || _c === void 0 ? void 0 : _c.call(_b); break; case 'Help': (_f = (_d = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.helpSettings) === null || _d === void 0 ? void 0 : (_e = _d.panelSettings).onClick) === null || _f === void 0 ? void 0 : _f.call(_e); break; case 'Settings': (_j = (_g = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.settingsSettings) === null || _g === void 0 ? void 0 : (_h = _g.panelSettings).onClick) === null || _j === void 0 ? void 0 : _j.call(_h); break; case 'Feedback': { if (farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.feedbackSettings) { _this.setState({ panelVisible: undefined, nextPanelVisible: undefined }); if (!farRightSettings.feedbackSettings.panelSettings.onClick()) { return; } } var launchOptions = ((_k = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.feedbackSettings) === null || _k === void 0 ? void 0 : _k.panelSettings.launchOptions) || {}; OfficeBrowserFeedback.multiFeedback(launchOptions).catch(function (err) { console.log('OCV Feedback Submission Failed with error: ' + err); }); } break; case 'Profile': (_o = (_l = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.profileSettings) === null || _l === void 0 ? void 0 : (_m = _l.panelSettings).onClick) === null || _o === void 0 ? void 0 : _o.call(_m); break; default: break; } }; _this._closePanel = function (ev) { if ((ev === null || ev === void 0 ? void 0 : ev.type) === 'click' || (ev === null || ev === void 0 ? void 0 : ev.type) === 'mousedown' || (ev === null || ev === void 0 ? void 0 : ev.nativeEvent.key) === 'Escape') { _this.setState({ panelVisible: undefined, nextPanelVisible: undefined }); if (_this.props.dismissOpenedPanel && _this.props.onDismissOpenedPanel) { _this.props.onDismissOpenedPanel(); } } }; _this._skipToMainClicked = function () { var mainTags = document.getElementsByTagName('main'); if (mainTags.length) { mainTags[mainTags.length - 1].focus(); return; } var divsWithMain = (document.querySelectorAll('[role="main"]')); if (divsWithMain) { divsWithMain[divsWithMain.length - 1].focus(); } }; _this.onClickNotifications = function () { _this._onFarRightButtonClicked('Notifications'); _this.updateNewNotifications(); }; _this.updateNewNotifications = function () { var _a, _b, _c; var farRightSettings = _this.props.farRightSettings; (_c = (_a = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings) === null || _a === void 0 ? void 0 : (_b = _a.panelSettings).onPanelOpened) === null || _c === void 0 ? void 0 : _c.call(_b); }; _this.getSettingsControl = function () { var _a, _b, _c, _d, _e; var buttonSettings = (_b = (_a = _this.props.farRightSettings) === null || _a === void 0 ? void 0 : _a.settingsSettings) === null || _b === void 0 ? void 0 : _b.buttonSettings; return { key: 'settings', text: (_c = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _c !== void 0 ? _c : 'Settings', value: 'Settings', title: (_d = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _d !== void 0 ? _d : 'Settings', ariaLabel: (_e = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.ariaLabel) !== null && _e !== void 0 ? _e : 'Settings', checked: _this.state.panelVisible === 'Settings', iconProps: { iconName: 'Settings' }, onClick: function () { return _this._onFarRightButtonClicked('Settings'); } }; }; _this.getHelpControl = function () { var _a, _b, _c, _d, _e; var buttonSettings = (_b = (_a = _this.props.farRightSettings) === null || _a === void 0 ? void 0 : _a.helpSettings) === null || _b === void 0 ? void 0 : _b.buttonSettings; return { key: 'help', text: (_c = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _c !== void 0 ? _c : 'Help', value: 'Help', ariaLabel: (_d = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.ariaLabel) !== null && _d !== void 0 ? _d : 'Help', title: (_e = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _e !== void 0 ? _e : 'Help', checked: _this.state.panelVisible === 'Help', iconProps: { iconName: 'Help' }, onClick: function () { return _this._onFarRightButtonClicked('Help'); } }; }; _this.getFeedbackControl = function () { var _a, _b, _c, _d, _e, _f, _g; var buttonSettings = (_b = (_a = _this.props.farRightSettings) === null || _a === void 0 ? void 0 : _a.feedbackSettings) === null || _b === void 0 ? void 0 : _b.buttonSettings; var ocvButtonIsFocused = ((_d = (_c = _this.props.farRightSettings) === null || _c === void 0 ? void 0 : _c.feedbackSettings) === null || _d === void 0 ? void 0 : _d.panelSettings.ocvButtonIsFocused) || false; return { id: 'coher-header-ocv-button-id', key: 'feedback', text: (_e = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _e !== void 0 ? _e : 'Feedback', value: 'Feedback', ariaLabel: (_f = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.ariaLabel) !== null && _f !== void 0 ? _f : 'Feedback', title: (_g = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _g !== void 0 ? _g : 'Feedback', checked: ocvButtonIsFocused, iconProps: { iconName: 'Emoji2' }, onClick: function () { return _this._onFarRightButtonClicked('Feedback'); } }; }; _this.getPersonaCoin = function () { var _a, _b, _c, _d, _e, _f, _g; var buttonSettings = (_b = (_a = _this.props.farRightSettings) === null || _a === void 0 ? void 0 : _a.profileSettings) === null || _b === void 0 ? void 0 : _b.buttonSettings; var panelSettings = (_d = (_c = _this.props.farRightSettings) === null || _c === void 0 ? void 0 : _c.profileSettings) === null || _d === void 0 ? void 0 : _d.panelSettings; return { key: 'filter', title: (_f = (_e = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.title) !== null && _e !== void 0 ? _e : panelSettings === null || panelSettings === void 0 ? void 0 : panelSettings.fullName) !== null && _f !== void 0 ? _f : 'Profile', ariaLabel: (_g = buttonSettings === null || buttonSettings === void 0 ? void 0 : buttonSettings.ariaLabel) !== null && _g !== void 0 ? _g : 'Profile', checked: _this.state.panelVisible === 'Profile', iconProps: { iconName: 'Filter' }, onClick: function () { return _this._onFarRightButtonClicked('Profile'); }, onRenderIcon: function () { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaCoin"], { size: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size28, imageUrl: panelSettings === null || panelSettings === void 0 ? void 0 : panelSettings.imageUrl, initialsColor: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaInitialsColor"].purple, text: panelSettings === null || panelSettings === void 0 ? void 0 : panelSettings.fullName })); } }; }; _this._onFarRightButtonClicked = function (panel) { _this._onPanelChange(_this.state.panelVisible === panel ? undefined : panel); }; _this.getProfile = function () { var farRightSettings = _this.props.farRightSettings; if (farRightSettings && farRightSettings.profileSettings) { var profileSettings_1 = farRightSettings.profileSettings; var personaInfo = { imageUrl: profileSettings_1.panelSettings.imageUrl, initialsColor: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaInitialsColor"].purple, text: profileSettings_1.panelSettings.fullName, secondaryText: profileSettings_1.panelSettings.emailAddress }; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Persona"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, personaInfo, { size: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size72, styles: _this._classNames.subComponentStyles.personaProfile, onRenderTertiaryText: function () { if (profileSettings_1.panelSettings.viewAccountLink) { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: _this._classNames.personaLinkContainer }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], { styles: _this._classNames.subComponentStyles.personaLink, href: profileSettings_1.panelSettings.viewAccountLink, onClick: _this.onClickViewAccount }, "View Account"))); } else { return null; } } })), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: _this._classNames.dividerStyle }), _this.getProfileBody(), !(profileSettings_1.panelSettings.hideSignOut) && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, !(profileSettings_1.panelSettings.hideSignOutDivider) && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: _this._classNames.dividerStyle }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], { styles: _this._classNames.subComponentStyles.personaLink, href: profileSettings_1.panelSettings.logOutLink, onClick: _this.onClickLogOut }, "Sign out")))); } else { return null; } }; _this.onClickViewAccount = function () { var _a, _b, _c, _d; (_d = (_b = (_a = _this.props.farRightSettings) === null || _a === void 0 ? void 0 : _a.profileSettings) === null || _b === void 0 ? void 0 : (_c = _b.panelSettings).onViewAccount) === null || _d === void 0 ? void 0 : _d.call(_c); }; _this.onClickLogOut = function () { var _a, _b, _c, _d; (_d = (_b = (_a = _this.props.farRightSettings) === null || _a === void 0 ? void 0 : _a.profileSettings) === null || _b === void 0 ? void 0 : (_c = _b.panelSettings).onLogOut) === null || _d === void 0 ? void 0 : _d.call(_c); }; _this.getProfileBody = function () { var _a; var farRightSettings = _this.props.farRightSettings; if ((_a = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.profileSettings) === null || _a === void 0 ? void 0 : _a.panelSettings.body) { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, farRightSettings.profileSettings.panelSettings.body)); } return null; }; _this.state = { panelVisible: undefined, nextPanelVisible: undefined }; return _this; } CoherenceHeaderBase.prototype.componentWillReceiveProps = function (nextProps, prevProps) { if (nextProps.dismissOpenedPanel && nextProps.onDismissOpenedPanel && nextProps.dismissOpenedPanel !== prevProps.dismissOpenedPanel) { this.setState({ panelVisible: undefined, nextPanelVisible: undefined }); nextProps.onDismissOpenedPanel(); } else if (nextProps.displayPanel != prevProps.displayPanel) { if (this.state.panelVisible === undefined) { this._onFarRightButtonClicked(nextProps.displayPanel); } } }; CoherenceHeaderBase.prototype.render = function () { var _this = this; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z; var _0 = this.props, appNameSettings = _0.appNameSettings, searchSettings = _0.searchSettings, navbarProps = _0.navbarProps, farRightSettings = _0.farRightSettings, styles = _0.styles, theme = _0.theme; var newNotifications = ((_a = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings) === null || _a === void 0 ? void 0 : _a.panelSettings.newNotifications) || -1; var notificationItems = ((_b = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings) === null || _b === void 0 ? void 0 : _b.panelSettings.items) || []; this._classNames = this._getClassNames(styles, { theme: theme }); var appLabelString = typeof (appNameSettings.label) === 'string' ? appNameSettings.label : 'App header'; var appNameProps = { label: appNameSettings.label, linkUrl: appNameSettings.linkUrl, linkProps: { styles: this._classNames.subComponentStyles.appNameLink }, ariaLabel: (_c = appNameSettings.ariaLabel) !== null && _c !== void 0 ? _c : appLabelString }; var searchBoxProps = searchSettings !== null && searchSettings !== undefined ? searchSettings : {}; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], { href: "javascript:void(0)", className: this._classNames.skipToMainLinkStyles, tabIndex: 0, as: 'a', onClick: this._skipToMainClicked, onKeyPress: function (event) { var code = event.keyCode || event.which; if (code === 13 || code === 32) { _this._skipToMainClicked(); } } }, "Skip to main content"), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Components_HeaderBanner__WEBPACK_IMPORTED_MODULE_5__["HeaderBanner"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ headerLabel: this.props.headerLabel }, navbarProps, { theme: theme, actions: { flexItems: this._getRightFlexItems(), staticItems: this._getRightStaticItems() }, appNameSettings: appNameProps, searchBoxProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, searchBoxProps), { enabled: !!searchSettings }) })), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_notification__WEBPACK_IMPORTED_MODULE_4__["CoherenceNotificationPanel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ titleText: (_e = (_d = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings) === null || _d === void 0 ? void 0 : _d.panelSettings.titleText) !== null && _e !== void 0 ? _e : 'Notifications', isOpen: this.state.panelVisible === 'Notifications' }, (_g = (_f = this.props.farRightSettings) === null || _f === void 0 ? void 0 : _f.notificationsSettings) === null || _g === void 0 ? void 0 : _g.panelSettings, { items: notificationItems, newNotifications: newNotifications, onDismissPanel: this._closePanel, onDismissed: this._onFarRightButtonDismissed, hasCloseButton: false, backButton: (_h = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings) === null || _h === void 0 ? void 0 : _h.panelSettings.backButton })), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_cseo_coherence_panel__WEBPACK_IMPORTED_MODULE_1__["CoherencePanel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ titleText: (_k = (_j = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.settingsSettings) === null || _j === void 0 ? void 0 : _j.panelSettings.titleText) !== null && _k !== void 0 ? _k : 'Settings', isOpen: this.state.panelVisible === 'Settings' }, (_m = (_l = this.props.farRightSettings) === null || _l === void 0 ? void 0 : _l.settingsSettings) === null || _m === void 0 ? void 0 : _m.panelSettings, { onDismiss: this._closePanel, onDismissed: this._onFarRightButtonDismissed, hasCloseButton: false }), ((_p = (_o = this.props.farRightSettings) === null || _o === void 0 ? void 0 : _o.settingsSettings) === null || _p === void 0 ? void 0 : _p.panelSettings.body) || null), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_cseo_coherence_panel__WEBPACK_IMPORTED_MODULE_1__["CoherencePanel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ titleText: (_r = (_q = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.helpSettings) === null || _q === void 0 ? void 0 : _q.panelSettings.titleText) !== null && _r !== void 0 ? _r : 'Help', isOpen: this.state.panelVisible === 'Help' }, (_t = (_s = this.props.farRightSettings) === null || _s === void 0 ? void 0 : _s.helpSettings) === null || _t === void 0 ? void 0 : _t.panelSettings, { onDismiss: this._closePanel, onDismissed: this._onFarRightButtonDismissed, hasCloseButton: false }), ((_v = (_u = this.props.farRightSettings) === null || _u === void 0 ? void 0 : _u.helpSettings) === null || _v === void 0 ? void 0 : _v.panelSettings.body) || null), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_cseo_coherence_panel__WEBPACK_IMPORTED_MODULE_1__["CoherencePanel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ titleText: (_x = (_w = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.profileSettings) === null || _w === void 0 ? void 0 : _w.panelSettings.titleText) !== null && _x !== void 0 ? _x : 'Profile', isOpen: this.state.panelVisible === 'Profile' }, (_z = (_y = this.props.farRightSettings) === null || _y === void 0 ? void 0 : _y.profileSettings) === null || _z === void 0 ? void 0 : _z.panelSettings, { onDismiss: this._closePanel, onDismissed: this._onFarRightButtonDismissed, hasCloseButton: false }), this.getProfile()))); }; CoherenceHeaderBase.prototype._getRightFlexItems = function () { var farRightSettings = this.props.farRightSettings; if (!farRightSettings) { return []; } var items = farRightSettings.additionalItems ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(farRightSettings.additionalItems) : []; if (farRightSettings.notificationsSettings) { var newNotifications = farRightSettings.notificationsSettings.panelSettings.newNotifications; var notificationButtonSettings = farRightSettings.notificationsSettings.buttonSettings; items.push(Object(_Components_NotificationControl__WEBPACK_IMPORTED_MODULE_6__["NotificationControl"])(newNotifications, this.state.panelVisible === 'Notifications', this.onClickNotifications, notificationButtonSettings === null || notificationButtonSettings === void 0 ? void 0 : notificationButtonSettings.title, notificationButtonSettings === null || notificationButtonSettings === void 0 ? void 0 : notificationButtonSettings.ariaLabel)); } if (farRightSettings.settingsSettings) { items.push(this.getSettingsControl()); } if (farRightSettings.helpSettings) { items.push(this.getHelpControl()); } if (window.OfficeBrowserFeedback || farRightSettings.feedbackSettings) { items.push(this.getFeedbackControl()); } return items; }; CoherenceHeaderBase.prototype._getRightStaticItems = function () { var farRightSettings = this.props.farRightSettings; var items = []; if (farRightSettings && farRightSettings.profileSettings) { items.push(this.getPersonaCoin()); } return items; }; return CoherenceHeaderBase; }(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component)); //# sourceMappingURL=CoherenceHeader.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/CoherenceHeader.js": /*!*******************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/CoherenceHeader.js ***! \*******************************************************************/ /*! exports provided: CoherenceHeader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceHeader", function() { return CoherenceHeader; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherenceHeader_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceHeader.base */ "./node_modules/@cseo/controls/lib/header/CoherenceHeader.base.js"); /* harmony import */ var _CoherenceHeader_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceHeader.styles */ "./node_modules/@cseo/controls/lib/header/CoherenceHeader.styles.js"); var CoherenceHeader = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherenceHeader_base__WEBPACK_IMPORTED_MODULE_1__["CoherenceHeaderBase"], _CoherenceHeader_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherenceHeader.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/CoherenceHeader.styles.js": /*!**************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/CoherenceHeader.styles.js ***! \**************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var getStyles = function (props) { var _a; var theme = props.theme; return { dividerStyle: { marginTop: '24px', marginBottom: '24px', height: '1px', width: '100%', alignSelf: 'center', background: theme.palette.neutralQuaternaryAlt }, skipToMainLinkStyles: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { width: '100%', height: '48px', lineHeight: '48px', textAlign: 'center', verticalAlign: 'true', position: 'absolute', top: -100, zIndex: 1000, textDecorationLine: 'underline', color: theme.palette.themeDarkAlt + '!important', backgroundColor: theme.palette.neutralLighter + '!important', selectors: { '&:hover, &:active, &:focus': { color: theme.palette.themeDarkAlt + '!important', backgroundColor: theme.palette.neutralLighter + '!important' }, '&:focus': { top: 0 } } } ], personaLinkContainer: { padding: '3px' }, subComponentStyles: { appNameLink: { root: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size16Semibold), { height: '46px', lineHeight: '46px', display: 'block', overflow: 'hidden', maxWidth: '100%', whiteSpace: 'nowrap', textOverflow: 'ellipsis', color: theme.palette.white + ' !important', border: '1px solid transparent', selectors: { '&:hover, &:active, &:focus, &:active:hover': { color: theme.palette.white + ' !important', textDecorationLine: 'none' }, '&:focus': { borderColor: theme.palette.white + ' !important' } } } ] }, searchBox: { root: { backgroundColor: theme.palette.themeLight, border: '1px solid transparent', selectors: { ':hover': { backgroundColor: theme.palette.white, border: '1px solid transparent' }, ':focus-within': { backgroundColor: theme.palette.white, border: '1px solid transparent' }, ':after': { top: '0px', bottom: '0px', left: '0px', right: '0px', border: '1px solid transparent' } } }, field: { selectors: { '::placeholder': { color: theme.palette.themeDarkAlt } } } }, personaLink: { root: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { selectors: { ':hover': { color: theme.palette.themeDarkAlt }, ':active': { color: theme.palette.themeDarker }, ':focus': { color: theme.palette.themeDarker } } } ] }, personaProfile: { root: {}, details: {}, primaryText: [Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { color: theme.palette.neutralPrimary }], secondaryText: [Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size12Regular), { color: theme.palette.neutralPrimary }], tertiaryText: { marginTop: '12px', selectors: (_a = {}, _a[_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { padding: '1px' }, _a) }, optionalText: {}, textContent: {} } } }; }; //# sourceMappingURL=CoherenceHeader.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Common/CoherenceHeaderHelpers.js": /*!*********************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Common/CoherenceHeaderHelpers.js ***! \*********************************************************************************/ /*! exports provided: onRenderCommandBarButton, HeaderActionsStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onRenderCommandBarButton", function() { return onRenderCommandBarButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderActionsStyles", function() { return HeaderActionsStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); function onRenderCommandBarButton(item) { var Styles = HeaderActionsStyles; var buttonClassName = item.renderedInOverflow ? Styles.rightItemButtonOverflow : Styles.rightItemButton; var buttonIconClassName = item.renderedInOverflow ? Styles.rightItemButtonOverflowIcon : Styles.rightItemButtonIcon; var requestedClassName = item.iconProps ? item.iconProps.className : undefined; var iconPropsClassName = requestedClassName ? Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["css"])(requestedClassName, buttonIconClassName) : buttonIconClassName; var iconOnly = !item.renderedInOverflow; var itemText = item.text || item.name; var commandButtonProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ allowDisabledFocus: true }, item), { text: !iconOnly ? itemText : undefined, checked: item.checked, menuProps: item.subMenuProps, iconProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item.iconProps), { className: iconPropsClassName }), iconOnly: iconOnly, onClick: _onButtonClick(item), className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-CommandBarItem-link', buttonClassName, item.className), styles: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ root: { height: '48px' }, label: { whiteSpace: 'nowrap', marginLeft: '10px' } }, item.buttonStyles), title: '' }); if (itemText !== undefined) { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["TooltipHost"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ content: itemText }, item.tooltipHostProps), _commandButton(item, commandButtonProps))); } return _commandButton(item, commandButtonProps); } function _commandButton(item, props) { if (item.commandBarButtonAs) { var Type = item.commandBarButtonAs; return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Type, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); } return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["CommandBarButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); } function _onButtonClick(item) { return function (ev) { if (item.onClick) { item.onClick(ev, item); } }; } var buttonWidth = 48; var HeaderActionsStyles = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["mergeStyleSets"])({ rightItemButton: { width: buttonWidth + 'px', height: buttonWidth + 'px', backgroundColor: 'transparent', selectors: { ':hover': { backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarkAlt, selectors: { '.notification-badge': { color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarkAlt, backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white } } }, ':active': { backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarker, selectors: { '.notification-badge': { color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarker, backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white } } }, '&.is-checked': { backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarker, selectors: { '.notification-badge': { color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarker, backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white } } } } }, rightItemButtonOverflow: { width: '100%', height: buttonWidth + 'px', backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white, color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.neutralPrimary, textAlign: 'left' }, rightItemButtonIcon: { color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white + ' !important', backgroundColor: 'transparent !important', fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size16 }, rightItemButtonOverflowIcon: { color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.neutralPrimary + ' !important', fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size14, margin: '0px', paddingLeft: '14px' } }); //# sourceMappingURL=CoherenceHeaderHelpers.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/AutoSuggestDropdown.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/AutoSuggestDropdown.js ***! \***********************************************************************************************/ /*! exports provided: AutoSuggestDropdown */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoSuggestDropdown", function() { return AutoSuggestDropdown; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GlobalSearch.styles */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.styles.js"); /* harmony import */ var _InternalGlobalSearch_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InternalGlobalSearch.types */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/InternalGlobalSearch.types.js"); /* harmony import */ var _SearchPersona__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SearchPersona */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/SearchPersona.js"); var AutoSuggestDropdown = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AutoSuggestDropdown, _super); function AutoSuggestDropdown(props) { var _this = _super.call(this, props) || this; _this._focusZone = react__WEBPACK_IMPORTED_MODULE_2___default.a.createRef(); _this._host = react__WEBPACK_IMPORTED_MODULE_2___default.a.createRef(); _this._requestAnimationFrame = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["safeRequestAnimationFrame"])(_this); _this._onRenderRecentSearchRow = function (recentSearchItem, index) { return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Stack"], { grow: true, verticalFill: true, key: recentSearchItem.id + index }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["CommandButton"], { key: 'recentSearch' + index + recentSearchItem.text, iconProps: { iconName: 'Clock' }, className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_this.props.styles.searchSuggestionItem), styles: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["RecentSearchBtnStyles"])(_this.props.theme), ariaLabel: recentSearchItem.text, role: 'link', "data-is-focusable": true, onClick: function () { return _this._onClickSuggestion(recentSearchItem); } }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["RecentSearchText"])(_this.props.theme) }, recentSearchItem.text)))); }; _this._onRenderSuggestionsList = function (suggestions, recentSearchTexts) { return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Stack"], { grow: true, verticalFill: true }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", null, recentSearchTexts.map(function (text, index) { return _this._onRenderRecentSearchRow(text, index); })), react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", null, suggestions.map(function (obj) { var category = obj.category !== null && obj.category !== undefined ? obj.category : ''; var _suggestionItems = obj.suggestions.slice(0, _this.props.suggestionsCount); return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Stack"], { grow: true, verticalFill: true, className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_this.props.styles.searchSuggestionList), key: category }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_this.props.styles.suggestionCategoryHeader) }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Text"], { className: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["SuggestionCategoryHeaderText"])(_this.props.theme), id: category }, category)), _suggestionItems.map(function (x, index) { return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["CommandButton"], { key: 'searchsuggestion' + index + x.text, className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_this.props.styles.searchSuggestionItem), styles: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["suggestionRowCommandBtnStyles"])(_this.props.theme), role: 'link', ariaLabel: x.text, "data-is-focusable": true, "aria-describedby": category, onClick: function () { return _this._onClickSuggestion(x, category); } }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_SearchPersona__WEBPACK_IMPORTED_MODULE_5__["SearchPersona"], { key: x.text, text: x.text, secondaryText: x.secondaryText, isPerson: x.isPerson, imageUrl: x.imageUrl, theme: _this.props.theme }))); })); })), suggestions.length > 0 && react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_this.props.styles.showMoreResultsLink) }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Link"], { className: _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["ShowMoreLinkStyles"], onClick: _this._onShowMoreResults, role: 'link', "aria-label": 'Show more results' }, "Show more results")))); }; _this._onClickSuggestion = function (suggestion, category) { if (_this.props.OnClickSuggestionItem) { _this.props.OnClickSuggestionItem(suggestion, category); } }; _this._onShowMoreResults = function () { if (_this.props.OnShowMoreResults) { _this.props.OnShowMoreResults(); } }; _this._onZoneKeyDown = function (ev) { var elementToFocus; var containsExpandCollapseModifier = ev.altKey || ev.metaKey; switch (ev.which) { case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].up: if (containsExpandCollapseModifier) { _this.props.CloseAutosuggest(); } else { if (_this._host.current) { elementToFocus = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["getLastFocusable"])(_this._host.current, _this._host.current.lastChild, true); } } break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].home: case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].end: case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].pageUp: case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].pageDown: break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].enter: return; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].down: if (!containsExpandCollapseModifier && _this._host.current) { elementToFocus = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["getFirstFocusable"])(_this._host.current, _this._host.current.firstChild, true); } break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].escape: _this.props.CloseAutosuggest(); break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].tab: _this.props.CloseAutosuggest(); return; default: return; } if (elementToFocus) { elementToFocus.focus(); } ev.stopPropagation(); ev.preventDefault(); }; _this.focus = function () { if (_this._focusZone.current) { _this._requestAnimationFrame(function () { if (_this._focusZone.current) { _this._focusZone.current.focus(); } }); } }; Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["initializeComponentRef"])(_this); return _this; } AutoSuggestDropdown.prototype.render = function () { var _a = this.props, recentSearchTexts = _a.recentSearchTexts, target = _a.target, suggestions = _a.suggestions, isLoading = _a.isLoading, showSearchSuggestions = _a.showSearchSuggestions, OnCalloutDismissCallback = _a.OnCalloutDismissCallback, isError = _a.isError, errorMessage = _a.errorMessage, recentSearchTextsCount = _a.recentSearchTextsCount, searchCategoryCount = _a.searchCategoryCount, id = _a.id, styles = _a.styles, theme = _a.theme; var _recentSearchTexts = (recentSearchTexts && recentSearchTexts.length > 0) ? recentSearchTexts.slice(0, recentSearchTextsCount) : []; var _suggestions = (suggestions && suggestions.length > 0) ? suggestions.slice(0, searchCategoryCount) : []; var _isLoading = (isLoading === null || isLoading === undefined) ? false : isLoading; var _isError = (isError === null || isError === undefined) ? false : isError; var _errorMessage = (errorMessage === null || errorMessage === undefined || errorMessage === '') ? _InternalGlobalSearch_types__WEBPACK_IMPORTED_MODULE_4__["ErrorMessage"] : errorMessage; var _id = (id !== null || id !== undefined) ? id : Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["getId"])(); return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Callout"], { id: _id, isBeakVisible: false, gapSpace: 6, doNotLayer: false, directionalHintFixed: true, directionalHint: _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["DirectionalHint"].bottomLeftEdge, minPagePadding: 0, coverTarget: false, target: target.current, alignTargetEdge: false, onDismiss: OnCalloutDismissCallback, className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.autoSuggestDropdown), calloutWidth: target.current ? target.current.clientWidth : 0, role: "dialog", "aria-label": "Search dialog" }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { id: 'autoSuggestdropdownCallout', onKeyDown: this._onZoneKeyDown, ref: this._host }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["FocusZone"], { direction: _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["FocusZoneDirection"].vertical, ref: this._focusZone }, _isError ? react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.errorMessage) }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["FontIcon"], { iconName: 'Warning' }), react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Text"], { variant: 'medium' }, _errorMessage)) : _isLoading ? react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], { className: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["SearchLoader"])(theme), size: _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["SpinnerSize"].small, label: 'Loading...', ariaLive: 'polite', labelPosition: 'right' })) : showSearchSuggestions ? this._onRenderSuggestionsList(_suggestions, _recentSearchTexts) : react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null)))); }; return AutoSuggestDropdown; }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component)); //# sourceMappingURL=AutoSuggestDropdown.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.base.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.base.js ***! \*********************************************************************************************/ /*! exports provided: GlobalSearchBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalSearchBase", function() { return GlobalSearchBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _AutoSuggestDropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AutoSuggestDropdown */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/AutoSuggestDropdown.js"); /* harmony import */ var _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./GlobalSearch.styles */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.styles.js"); /* harmony import */ var _GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./GlobalSearch.types */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.types.js"); /* harmony import */ var _GlobalSearch_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GlobalSearch.utils */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.utils.js"); var getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["classNamesFunction"])(); var GlobalSearchBase = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GlobalSearchBase, _super); function GlobalSearchBase(props) { var _this = _super.call(this, props) || this; _this.searchRootRef = react__WEBPACK_IMPORTED_MODULE_3___default.a.createRef(); _this.searchInputRef = react__WEBPACK_IMPORTED_MODULE_3___default.a.createRef(); _this._autoSuggestionRef = react__WEBPACK_IMPORTED_MODULE_3___default.a.createRef(); _this.updateNumResultsDebounced = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["debounce"])(function (value) { _this.setState({ messageAnnouce: Object(_GlobalSearch_utils__WEBPACK_IMPORTED_MODULE_7__["getSearchResultsAnnounce"])(value) }); }, 10000); _this._getPlaceholderText = function () { if (_this.props.placeholder) return _this.props.placeholder; else if (_this.props.headerLabel) return 'Search ' + _this.props.headerLabel; return 'Search app'; }; _this._onSearchCallback = function (newSearchText) { if (newSearchText !== '') { _this.setState({ isOpen: false, searchText: newSearchText, showSearchSuggestions: true }, function () { if (_this.props.onSearch) { _this.props.onSearch(newSearchText); } if (_this.props.onShowMoreResultsCallback) { _this.props.onShowMoreResultsCallback(newSearchText); } }); } }; _this._onChangeCallback = function (event, newSearchText) { if (newSearchText !== '') { _this.setState({ isOpen: !Object(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["GetOnSearchDetailsView"])(), searchText: newSearchText, showSearchSuggestions: true }, function () { if (_this.props.onChange && !Object(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["GetOnSearchDetailsView"])()) { _this.props.onChange(event, newSearchText); } else if (_this.props.onShowMoreResultsCallback) { _this.props.onShowMoreResultsCallback(newSearchText !== null && newSearchText !== undefined ? newSearchText : ''); } }); } }; _this._onBlurCallback = function () { if (_this.state.isOpen) { return; } if (Object(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["GetOnSearchDetailsView"])()) { _this.setState({ isOpen: false, showSearchSuggestions: false, isError: false }); } else { _this.setState({ isOpen: false, searchText: '', showSearchSuggestions: false, isError: false }); } if (_this.props.OnBlurCallback !== undefined) { _this.props.OnBlurCallback(); } }; _this._onClearCallback = function () { _this.setState({ searchText: '', showSearchSuggestions: false, isError: false }); if (_this.props && _this.props.onClear) { _this.props.onClear(); } }; _this._onFocusCallback = function () { var _a; if (!_this.state.isOpen) { _this.setState({ isOpen: true, showSearchSuggestions: true }); if (_this.props && _this.props.OnFocusCallback) { _this.props.OnFocusCallback(); } (_a = _this.searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } }; _this._onCalloutDismissCallback = function () { _this.setState({ isOpen: false, showSearchSuggestions: false, isError: false }, function () { _this._onBlurCallback(); }); }; _this._closeAutosuggestDropdown = function () { _this.setState({ isOpen: false, showSearchSuggestions: false, isError: false }); }; _this._onShowMoreResultsClick = function () { _this.setState({ isOpen: false }, function () { if (_this.props.onShowMoreResultsCallback && _this.state.searchText) { _this.props.onShowMoreResultsCallback(_this.state.searchText); } }); }; _this._onClickSuggestionItem = function (item, category) { _this.setState({ isOpen: false }, function () { if (_this.props.OnClickSuggestionItem) { _this.props.OnClickSuggestionItem(item, category); } }); }; _this._onDropdownKeyDown = function (ev) { var _a, _b; var isOpen = _this.state.isOpen; switch (ev.which) { case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].enter: _this.setState({ isOpen: !isOpen }); break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].escape: if (!isOpen) { return; } _this.setState({ isOpen: false }); break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].up: if (isOpen) { _this.setState({ isOpen: false }); break; } return; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].down: if (isOpen) { (_a = _this._autoSuggestionRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } else { (_b = _this.searchInputRef.current) === null || _b === void 0 ? void 0 : _b.focus(); } ev.stopPropagation(); ev.preventDefault(); break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].home: break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].end: break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].space: break; case _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].tab: break; default: } }; _this._id = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["getId"])(); _this._autoSuggestDropdownId = 'autoSuggestionDropDown' + _this._id; _this.state = { isOpen: false, searchText: undefined, showSearchSuggestions: false, isError: (_this.props.isError !== null && _this.props.isError !== undefined) ? _this.props.isError : false, messageAnnouce: '' }; return _this; } GlobalSearchBase.prototype.componentWillReceiveProps = function (nextProps) { var _a, _b, _c, _d; if ((this.props.isError !== nextProps.isError) || (!Object(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["GetOnSearchDetailsView"])() && !this.state.isOpen)) { this.setState({ isError: (nextProps.isError !== null && nextProps !== undefined) ? nextProps.isError : false, searchText: !Object(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["GetOnSearchDetailsView"])() && !this.state.isOpen ? '' : this.state.searchText }); } var prevNumSuggestions = (_b = (_a = this.props.suggestions) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, cur) { return acc += Math.min(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["SearchSuggestionCount"], cur.suggestions.length); }, 0)) !== null && _b !== void 0 ? _b : 0; var curNumSuggestions = (_d = (_c = nextProps.suggestions) === null || _c === void 0 ? void 0 : _c.reduce(function (acc, cur) { return acc += Math.min(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["SearchSuggestionCount"], cur.suggestions.length); }, 0)) !== null && _d !== void 0 ? _d : 0; if (prevNumSuggestions !== curNumSuggestions) { this.setState({ messageAnnouce: Object(_GlobalSearch_utils__WEBPACK_IMPORTED_MODULE_7__["getSearchResultsAnnounce"])(curNumSuggestions) }); } }; GlobalSearchBase.prototype.componentDidUpdate = function (prevProps, prevState) { var _a, _b; if (prevState.searchText !== this.state.searchText) { if (this.state.messageAnnouce !== '') { this.setState({ messageAnnouce: '' }); } var curNumSuggestions = (_b = (_a = this.props.suggestions) === null || _a === void 0 ? void 0 : _a.reduce(function (acc, cur) { return acc += Math.min(_GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["SearchSuggestionCount"], cur.suggestions.length); }, 0)) !== null && _b !== void 0 ? _b : 0; this.updateNumResultsDebounced(curNumSuggestions); } }; GlobalSearchBase.prototype.render = function () { var _a = this.props, isLoading = _a.isLoading, recentSearchTexts = _a.recentSearchTexts, suggestions = _a.suggestions, errorMessage = _a.errorMessage, onEscape = _a.onEscape, disabled = _a.disabled, styles = _a.styles, theme = _a.theme, iconProps = _a.iconProps; var _b = this.state, searchText = _b.searchText, isOpen = _b.isOpen, showSearchSuggestions = _b.showSearchSuggestions, isError = _b.isError; var _theme = theme; var classNames = getClassNames(styles, { theme: _theme }); return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { role: "search" }, this.state.searchText !== '' && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Announced"], { "aria-live": "polite", message: this.state.messageAnnouce }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { ref: this.searchRootRef, onFocus: this._onFocusCallback, onBlur: this._onBlurCallback, "aria-owns": isOpen ? this._autoSuggestDropdownId : undefined, "data-is-focusable": true, onKeyDown: this._onDropdownKeyDown, className: classNames.root, id: 'coherenceSearchBase' }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("label", { htmlFor: 'searchbox', style: { display: 'none' } }, this._getPlaceholderText()), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["SearchBox"], { id: 'searchbox', componentRef: this.searchInputRef, disabled: disabled, placeholder: this._getPlaceholderText(), onSearch: this._onSearchCallback, onChange: this._onChangeCallback, onClear: this._onClearCallback, onEscape: onEscape, styles: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_5__["searchBoxStyles"])(_theme), value: searchText, className: classNames.searchbox, iconProps: iconProps })), isOpen ? react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_AutoSuggestDropdown__WEBPACK_IMPORTED_MODULE_4__["AutoSuggestDropdown"], { target: this.searchRootRef, id: this._autoSuggestDropdownId, showSearchSuggestions: showSearchSuggestions, recentSearchTexts: recentSearchTexts, suggestions: (suggestions !== null && suggestions !== undefined) ? suggestions : [], isLoading: isLoading, OnCalloutDismissCallback: this._onCalloutDismissCallback, OnClickSuggestionItem: this._onClickSuggestionItem, OnShowMoreResults: this._onShowMoreResultsClick, isError: isError, errorMessage: errorMessage, recentSearchTextsCount: _GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["RecentSearchTextsCount"], searchCategoryCount: _GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["TotalSearchCategoryCount"], suggestionsCount: _GlobalSearch_types__WEBPACK_IMPORTED_MODULE_6__["SearchSuggestionCount"], CloseAutosuggest: this._closeAutosuggestDropdown, componentRef: this._autoSuggestionRef, styles: classNames, theme: _theme }) : react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null))); }; return GlobalSearchBase; }(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component)); //# sourceMappingURL=GlobalSearch.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.js": /*!****************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.js ***! \****************************************************************************************/ /*! exports provided: GlobalSearch */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalSearch", function() { return GlobalSearch; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _GlobalSearch_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GlobalSearch.base */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.base.js"); /* harmony import */ var _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GlobalSearch.styles */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.styles.js"); var GlobalSearch = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_GlobalSearch_base__WEBPACK_IMPORTED_MODULE_1__["GlobalSearchBase"], _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=GlobalSearch.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.styles.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.styles.js ***! \***********************************************************************************************/ /*! exports provided: getStyles, searchBoxStyles, TypeHierarchy, EmptyDropDown, SearchLoader, SuggestionItemStyle, sidePadding, suggestionRowHoverState, bottomBorder, SuggestionRowStyle, suggestionRowCommandBtnStyles, RecentSearchBtnStyles, zeroSidePadding, fullSearchResultsSeparatorStyles, RecentSearchText, SuggestionCategoryHeaderText, ShowMoreLinkStyles, SearchPersonaCoinStylesSqaure, SearchPersonaCoinStylesRound, divGlobalSearch, announcedBGColor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchBoxStyles", function() { return searchBoxStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TypeHierarchy", function() { return TypeHierarchy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyDropDown", function() { return EmptyDropDown; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchLoader", function() { return SearchLoader; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionItemStyle", function() { return SuggestionItemStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sidePadding", function() { return sidePadding; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "suggestionRowHoverState", function() { return suggestionRowHoverState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bottomBorder", function() { return bottomBorder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionRowStyle", function() { return SuggestionRowStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "suggestionRowCommandBtnStyles", function() { return suggestionRowCommandBtnStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecentSearchBtnStyles", function() { return RecentSearchBtnStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zeroSidePadding", function() { return zeroSidePadding; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fullSearchResultsSeparatorStyles", function() { return fullSearchResultsSeparatorStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecentSearchText", function() { return RecentSearchText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionCategoryHeaderText", function() { return SuggestionCategoryHeaderText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowMoreLinkStyles", function() { return ShowMoreLinkStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchPersonaCoinStylesSqaure", function() { return SearchPersonaCoinStylesSqaure; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchPersonaCoinStylesRound", function() { return SearchPersonaCoinStylesRound; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "divGlobalSearch", function() { return divGlobalSearch; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "announcedBGColor", function() { return announcedBGColor; }); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var getStyles = function (props) { var theme = props.theme; return { root: {}, searchbox: {}, autoSuggestDropdown: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'AutoSuggestDropdownStyles', backgroundColor: theme.palette.white, boxShadow: '0px 3.2px 7.2px rgba(0, 0, 0, 0.132), 0px 0.6px 1.8px rgba(0, 0, 0, 0.108)', borderRadius: '2px' }), searchSuggestionList: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ paddingTop: '8px' }), searchSuggestionItem: {}, errorMessage: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'EmptyDropDown', paddingTop: '16px', paddingBottom: '16px', alignContent: 'center', textAlign: 'center' }), suggestionCategoryHeader: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(TypeHierarchy.base, { displayName: 'SuggestionCategoryHeader', height: '32px', paddingRight: '16px', paddingLeft: '16px' }), showMoreResultsLink: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ textAlign: 'center', color: theme.palette.themeDark, height: '49px', borderTop: "1px solid " + theme.palette.neutralLighter, alignItems: 'center' }) }; }; var searchBoxStyles = function (theme) { return { root: { backgroundColor: theme.palette.themeLighter, border: '1px solid transparent', selectors: { ':hover': { backgroundColor: theme.palette.white, border: '1px solid transparent' }, ':focus-within': { backgroundColor: theme.palette.white, border: '1px solid transparent' }, ':after': { top: '0px', bottom: '0px', left: '0px', right: '0px', border: '1px solid transparent' } } }, field: { selectors: { '::placeholder': { color: theme.palette.themePrimary } } } }; }; var TypeHierarchy = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"])({ base: _cseo_styles__WEBPACK_IMPORTED_MODULE_0__["DefaultTypography"].base, body: _cseo_styles__WEBPACK_IMPORTED_MODULE_0__["DefaultTypography"].body, caption: _cseo_styles__WEBPACK_IMPORTED_MODULE_0__["DefaultTypography"].caption }); var EmptyDropDown = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'EmptyDropDown', paddingTop: '16px', paddingBottom: '16px', alignContent: 'center', textAlign: 'center' }); var SearchLoader = function (theme) { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(EmptyDropDown, { displayName: 'SearchLoader', color: theme.palette.themePrimary }); }; var SuggestionItemStyle = function (theme) { return { details: { paddingLeft: '12px' }, primaryText: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(TypeHierarchy.body, { color: theme.palette.neutralPrimary }), secondaryText: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(TypeHierarchy.caption, { color: theme.palette.neutralSecondary }) }; }; var sidePadding = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'sidePadding', paddingRight: '16px', paddingLeft: '16px' }); var suggestionRowHoverState = function (theme) { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'suggestionRowHoverState', selectors: { ':hover': { backgroundColor: theme.palette.neutralLighter } } }); }; var bottomBorder = function (theme) { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'bottomBorder', borderBottom: "1px solid " + theme.palette.neutralLighter }); }; var SuggestionRowStyle = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ height: '49px', width: '-webkit-fill-available' }); var suggestionRowCommandBtnStyles = function (theme) { return { flexContainer: { borderBottom: "1px solid " + theme.palette.neutralLighter }, root: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(sidePadding, SuggestionRowStyle, suggestionRowHoverState(theme)) }; }; var RecentSearchBtnStyles = function (theme) { return { icon: { fontSize: '28px', marginLeft: '0px', marginRight: '16px', color: theme.palette.neutralPrimaryAlt }, root: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(sidePadding, SuggestionRowStyle, suggestionRowHoverState(theme)), flexContainer: { borderBottom: "1px solid " + theme.palette.neutralLighter } }; }; var zeroSidePadding = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'zeroSidePadding', paddingLeft: '0px', paddingRight: '0px' }); var fullSearchResultsSeparatorStyles = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'fullSearchResultsSeparatorStyles', paddingTop: '0px', paddingBottom: '0px', height: '1px' }); var RecentSearchText = function (theme) { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["DefaultTypography"].body, { displayName: 'RecentSearchText', color: theme.palette.neutralPrimary, lineHeight: '19px' }); }; var SuggestionCategoryHeaderText = function (theme) { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(TypeHierarchy.base, { displayName: 'SuggestionCategoryHeaderText', color: theme.palette.neutralDark, lineHeight: '32px' }); }; var ShowMoreLinkStyles = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ border: 'none', marginTop: '11px' }); var SearchPersonaCoinStylesSqaure = { image: { borderRadius: 2 }, initials: { borderRadius: 2 } }; var SearchPersonaCoinStylesRound = { image: { borderRadius: 25 }, initials: { borderRadius: 25 } }; var divGlobalSearch = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])({ displayName: 'divGlobalSearch', paddingTop: '4% !important', height: '90vh !important' }); var announcedBGColor = function (theme) { return { screenReaderText: { backgroundColor: theme.palette.white } }; }; //# sourceMappingURL=GlobalSearch.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.types.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.types.js ***! \**********************************************************************************************/ /*! exports provided: RecentSearchTextsCount, SearchSuggestionCount, TotalSearchCategoryCount, GetOnSearchDetailsView, SetOnsearchDetailsView */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecentSearchTextsCount", function() { return RecentSearchTextsCount; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchSuggestionCount", function() { return SearchSuggestionCount; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TotalSearchCategoryCount", function() { return TotalSearchCategoryCount; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetOnSearchDetailsView", function() { return GetOnSearchDetailsView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetOnsearchDetailsView", function() { return SetOnsearchDetailsView; }); var RecentSearchTextsCount = 3; var SearchSuggestionCount = 2; var TotalSearchCategoryCount = 5; var _onSearchDetailsView = false; function GetOnSearchDetailsView() { return _onSearchDetailsView; } function SetOnsearchDetailsView(onView) { _onSearchDetailsView = onView; } //# sourceMappingURL=GlobalSearch.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.utils.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.utils.js ***! \**********************************************************************************************/ /*! exports provided: getSearchResultsAnnounce */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSearchResultsAnnounce", function() { return getSearchResultsAnnounce; }); var getSearchResultsAnnounce = function (numResults, customAria) { if (customAria) { return customAria(numResults); } else if (numResults === 1) { return 'One result found'; } else if (numResults === 0) { return 'No results found'; } else { return "Top " + numResults + " results found"; } }; //# sourceMappingURL=GlobalSearch.utils.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/InternalGlobalSearch.types.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/InternalGlobalSearch.types.js ***! \******************************************************************************************************/ /*! exports provided: GetRecentSearchTexts, SetRecentSearchTexts, ErrorMessage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecentSearchTexts", function() { return GetRecentSearchTexts; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetRecentSearchTexts", function() { return SetRecentSearchTexts; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorMessage", function() { return ErrorMessage; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); var _recentSearchTexts = []; function GetRecentSearchTexts() { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(_recentSearchTexts); } function SetRecentSearchTexts(recentSearches, count) { _recentSearchTexts = recentSearches.splice(0, count); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(_recentSearchTexts); } var ErrorMessage = 'Some error occurred. Please try again'; //# sourceMappingURL=InternalGlobalSearch.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/SearchPersona.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/SearchPersona.js ***! \*****************************************************************************************/ /*! exports provided: SearchPersona */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchPersona", function() { return SearchPersona; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GlobalSearch.styles */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.styles.js"); var SearchPersona = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SearchPersona, _super); function SearchPersona() { return _super !== null && _super.apply(this, arguments) || this; } SearchPersona.prototype.render = function () { var _a = this.props, text = _a.text, secondaryText = _a.secondaryText, isPerson = _a.isPerson, imageUrl = _a.imageUrl, theme = _a.theme; var _isPerson = isPerson !== null && isPerson !== undefined ? isPerson : false; var personaProps = { text: text, secondaryText: (secondaryText !== null && secondaryText !== undefined) ? secondaryText : '', imageUrl: (imageUrl !== null && imageUrl !== undefined) ? imageUrl : '' }; return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["Persona"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, personaProps, { size: _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["PersonaSize"].size72, coinSize: 32, coinProps: { styles: _isPerson ? _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["SearchPersonaCoinStylesRound"] : _GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["SearchPersonaCoinStylesSqaure"] }, styles: Object(_GlobalSearch_styles__WEBPACK_IMPORTED_MODULE_3__["SuggestionItemStyle"])(theme), allowPhoneInitials: true }))); }; return SearchPersona; }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component)); //# sourceMappingURL=SearchPersona.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/HeaderBanner.js": /*!***************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/HeaderBanner.js ***! \***************************************************************************/ /*! exports provided: HeaderBanner */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderBanner", function() { return HeaderBanner; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Common/CoherenceHeaderHelpers */ "./node_modules/@cseo/controls/lib/header/Common/CoherenceHeaderHelpers.js"); /* harmony import */ var _GlobalSearch_GlobalSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./GlobalSearch/GlobalSearch */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.js"); /* harmony import */ var _SearchBoxOverlay__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SearchBoxOverlay */ "./node_modules/@cseo/controls/lib/header/Components/SearchBoxOverlay.js"); var buttonWidth = 48; var getStylesInternal = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (numRightItems, isSearchEnabled, theme) { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["mergeStyleSets"])({ root: { backgroundColor: theme ? theme.palette.themePrimary : _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themePrimary, fontFamily: "'Segoe UI', 'Segoe UI Web(West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', 'sans-serif'", alignItems: 'center', height: '48px', overflow: 'hidden', display: 'grid', gridTemplateColumns: '1fr 468px 1fr', selectors: { '@media (min-width:1366px) and (max-width: 1920px)': { gridTemplateColumns: '1fr 468px 1fr' }, '@media (min-width:1024px) and (max-width: 1365px)': { gridTemplateColumns: '1fr 468px 1fr' }, '@media (min-width:640px) and (max-width: 1023px)': { gridTemplateColumns: '1fr 274px 1fr' }, '@media (min-width: 320px) and (max-width: 639px)': { gridTemplateColumns: '1fr ' + buttonWidth + 'px ' + (numRightItems * buttonWidth) + 'px' }, '@media (max-width: 320px)': { gridTemplateColumns: '1fr ' + buttonWidth + 'px ' + (numRightItems * buttonWidth) + 'px' } } }, titleContainer: { height: '100%', paddingLeft: '16px', paddingRight: '12px', alignSelf: 'center', fontSize: '16px', overflow: 'hidden', minWidth: '160px', display: 'flex', alignItems: 'center', gridColumnStart: '1', gridColumnEnd: isSearchEnabled ? '1' : '3' }, searchBoxContainer: { alignSelf: 'center', gridColumnStart: '2', gridColumnEnd: '2' }, floatingSearchRoot: { width: '100%', backgroundColor: theme ? theme.palette.themePrimary : _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themePrimary }, rightItemsContainer: { height: '48px', overflow: 'hidden', gridColumnStart: '3', gridColumnEnd: '3' }, overflowSet: {} }); }); var resizeGroupStyles = { flex: 1, overflow: 'hidden' }; var actionsGroupResizeGroupContainer = { display: 'flex', justifyContent: 'flex-end' }; var actionsGroupOverflowSetStyles = { root: { justifyContent: 'flex-end' } }; Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["initializeIcons"])(); var HeaderBanner = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HeaderBanner, _super); function HeaderBanner(props) { var _this = _super.call(this, props) || this; _this._actionsResizeGroup = react__WEBPACK_IMPORTED_MODULE_3___default.a.createRef(); _this._onRenderSearchBoxData = function (data) { var _a = _this.props, searchBoxProps = _a.searchBoxProps, headerLabel = _a.headerLabel; if (data.renderState === 'ButtonOnly') { return (Object(_Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__["onRenderCommandBarButton"])({ key: 'Search button', name: 'Search', ariaLabel: 'Search button. Select to activate search box.', iconProps: { iconName: 'Search' }, onClick: _this._onSearchOverlayOpen })); } else { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_GlobalSearch_GlobalSearch__WEBPACK_IMPORTED_MODULE_5__["GlobalSearch"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ role: "search" }, searchBoxProps, { headerLabel: headerLabel, suggestions: ((searchBoxProps === null || searchBoxProps === void 0 ? void 0 : searchBoxProps.suggestions) !== null && (searchBoxProps === null || searchBoxProps === void 0 ? void 0 : searchBoxProps.suggestions) !== undefined) ? searchBoxProps === null || searchBoxProps === void 0 ? void 0 : searchBoxProps.suggestions : [], onSearch: _this._onSearch, onChange: _this._onChange }))); } }; _this._onSearch = function (newValue) { var searchBoxProps = _this.props.searchBoxProps; _this.setState({ searchText: newValue }); if (searchBoxProps && searchBoxProps.onSearch) { searchBoxProps.onSearch(newValue); } }; _this._onChange = function (event, newValue) { var searchBoxProps = _this.props.searchBoxProps; _this.setState({ searchText: newValue }); if (searchBoxProps && searchBoxProps.onChange) { searchBoxProps.onChange(event, newValue); } }; _this._onRenderActionsGroup = function (data) { var overflowSetProps = _this.props.overflowSetProps; var Styles = _this._getStyles(); return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["OverflowSet"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, overflowSetProps, { role: undefined, doNotContainWithinFocusZone: true, className: Styles.overflowSet, items: data.primaryItems, overflowItems: data.overflowItems, onRenderItem: _Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__["onRenderCommandBarButton"], onRenderOverflowButton: _this._onRenderActionsOverflowButton, styles: actionsGroupOverflowSetStyles }))); }; _this._onSearchBoxReduceData = function (data) { var renderState = data.renderState; if (renderState !== 'ButtonOnly') { var newData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { renderState: 'ButtonOnly' }); newData.cacheKey = _this._computeSearchBoxCacheKey(newData); return newData; } return undefined; }; _this._onSearchBoxGrowData = function (data) { var renderState = data.renderState; if (renderState !== 'SearchBox') { var newData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { renderState: 'SearchBox' }); newData.cacheKey = _this._computeSearchBoxCacheKey(newData); return newData; } return undefined; }; _this._onSearchOverlayOpen = function () { _this.setState({ isFloatingSearchVisible: true }); }; _this._onSearchOverlayClose = function () { _this.setState({ isFloatingSearchVisible: false }); }; _this._onSearchChange = function (event, value) { var searchBoxProps = _this.props.searchBoxProps; _this.setState({ searchText: value }); if (searchBoxProps && searchBoxProps.onChange) { searchBoxProps.onChange(event, value); } }; _this._onSearchClear = function () { var searchBoxProps = _this.props.searchBoxProps; _this.setState({ searchText: undefined }); if (searchBoxProps && searchBoxProps.onClear) { searchBoxProps.onClear(); } }; _this._onRenderActionsOverflowButton = function (overflowItems) { var combinedOverflowItems = overflowItems.map(function (x) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, x), { renderedInOverflow: true, onRender: _Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__["onRenderCommandBarButton"] })); }); var overflowProps = { id: 'coher-header-overflow-button-id', checked: overflowItems.some(function (i) { return i.checked === true; }), ariaLabel: 'Access additional app options. Select to open menu', className: Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-CommandBar-overflowButton', _Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__["HeaderActionsStyles"].rightItemButton), menuProps: { items: combinedOverflowItems, isBeakVisible: false }, menuIconProps: { iconName: 'More', className: _Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__["HeaderActionsStyles"].rightItemButtonIcon }, styles: { menuIcon: { color: (_this.props.theme ? _this.props.theme.palette.white : _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white) + ' !important', backgroundColor: 'transparent !important', fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size16 } } }; return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["CommandBarButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, overflowProps)); }; _this._onActionsReduceData = function (data) { var primaryItems = data.primaryItems, overflowItems = data.overflowItems; if (primaryItems && primaryItems.length) { var movedItems = primaryItems.map(function (x) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, x), { renderedInOverflow: true })); }); var newData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { primaryItems: [], overflowItems: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(overflowItems, movedItems) }); newData.cacheKey = _this._computeActionsCacheKey(newData); return newData; } return undefined; }; _this._onActionsGrowData = function (data) { var primaryItems = data.primaryItems, overflowItems = data.overflowItems; if (overflowItems && overflowItems.length) { var movedItems = overflowItems.map(function (x) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, x), { renderedInOverflow: false })); }); var newData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { primaryItems: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(primaryItems, movedItems), overflowItems: [] }); newData.cacheKey = _this._computeActionsCacheKey(newData); return newData; } return undefined; }; _this._getActionsCount = function () { var actions = _this.props.actions; var count = 0; if (actions && actions.flexItems && actions.flexItems.length) { count++; } if (actions && actions.staticItems && actions.staticItems.length) { count++; } return count; }; _this._getStyles = function () { var _a, _b; return getStylesInternal(_this._getActionsCount(), (_b = (_a = _this.props.searchBoxProps) === null || _a === void 0 ? void 0 : _a.enabled) !== null && _b !== void 0 ? _b : false, _this.props.theme); }; _this.state = { isFloatingSearchVisible: false, searchText: undefined }; return _this; } HeaderBanner.prototype.render = function () { var _a; if (this.state.isFloatingSearchVisible) { return this._renderFloatingSearchBox(); } else { var Styles = this._getStyles(); return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: Styles.root, role: 'banner', "aria-label": this.props.headerLabel }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: Styles.titleContainer }, this._renderAppName()), ((_a = this.props.searchBoxProps) === null || _a === void 0 ? void 0 : _a.enabled) && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: Styles.searchBoxContainer }, this._renderSearchBox()), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: Styles.rightItemsContainer, role: 'menubar' }, this._renderActionsGroup())))); } }; HeaderBanner.prototype.remeasure = function () { if (this._actionsResizeGroup.current) { this._actionsResizeGroup.current.remeasure(); } }; HeaderBanner.prototype._renderAppName = function () { var appNameSettings = this.props.appNameSettings; if (!appNameSettings || !appNameSettings.label) { return null; } else if (typeof (appNameSettings.label) === 'string') { return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ href: appNameSettings.linkUrl || '/', "aria-label": appNameSettings.ariaLabel }, appNameSettings.linkProps), appNameSettings.label)); } else { return (appNameSettings.label); } }; HeaderBanner.prototype._renderSearchBox = function () { var searchBoxProps = this.props.searchBoxProps; if (searchBoxProps.onRender) { return searchBoxProps.onRender(); } var searchBoxData = { renderState: 'SearchBox', cacheKey: '' }; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["ResizeGroup"], { data: searchBoxData, onReduceData: this._onSearchBoxReduceData, onGrowData: this._onSearchBoxGrowData, onRenderData: this._onRenderSearchBoxData, style: resizeGroupStyles })); }; HeaderBanner.prototype._renderFloatingSearchBox = function () { var _a = this.props, searchBoxProps = _a.searchBoxProps, headerLabel = _a.headerLabel; var searchText = this.state.searchText; var Styles = this._getStyles(); return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: Styles.floatingSearchRoot }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SearchBoxOverlay__WEBPACK_IMPORTED_MODULE_6__["SearchBoxOverlay"], { searchBoxProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, searchBoxProps), { onChange: this._onSearchChange, onClear: this._onSearchClear, value: searchText, headerLabel: headerLabel, suggestions: ((searchBoxProps === null || searchBoxProps === void 0 ? void 0 : searchBoxProps.suggestions) !== null && (searchBoxProps === null || searchBoxProps === void 0 ? void 0 : searchBoxProps.suggestions) !== undefined) ? searchBoxProps === null || searchBoxProps === void 0 ? void 0 : searchBoxProps.suggestions : [] }), onClose: this._onSearchOverlayClose, dismissOnClear: false, dismissOnSearch: false }))); }; HeaderBanner.prototype._renderActionsGroup = function () { var actions = this.props.actions; var hasActions = actions && ((actions.flexItems && actions.flexItems.length) || (actions.staticItems && actions.staticItems.length)); if (!hasActions) { return null; } var actionsData = { primaryItems: actions && actions.flexItems ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(actions.flexItems) : [], overflowItems: [], cacheKey: '' }; var staticActions = undefined; if (actions && actions.staticItems && actions.staticItems.length) { staticActions = actions.staticItems.map(function (x) { return Object(_Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_4__["onRenderCommandBarButton"])(x); }); } return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { style: actionsGroupResizeGroupContainer, role: "menuitem" }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["ResizeGroup"], { componentRef: this._actionsResizeGroup, data: actionsData, onReduceData: this._onActionsReduceData, onGrowData: this._onActionsGrowData, onRenderData: this._onRenderActionsGroup, style: resizeGroupStyles }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", null, staticActions))); }; HeaderBanner.prototype._computeSearchBoxCacheKey = function (data) { var renderState = data.renderState; return renderState + ''; }; HeaderBanner.prototype._computeActionsCacheKey = function (data) { var primaryItems = data.primaryItems, overflowItems = data.overflowItems; var returnKey = function (acc, current) { var cacheKey = current.cacheKey || current.key; return acc + cacheKey; }; var primaryKey = primaryItems.reduce(returnKey, ''); var overflowKey = overflowItems.length ? 'overflow' : ''; return [primaryKey, overflowKey].join(' '); }; return HeaderBanner; }(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component)); //# sourceMappingURL=HeaderBanner.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/NotificationControl.js": /*!**********************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/NotificationControl.js ***! \**********************************************************************************/ /*! exports provided: NotificationControl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationControl", function() { return NotificationControl; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); var badgeBase = { position: 'absolute', height: '16px', minWidth: '16px', borderRadius: '8px', fontSize: '10px', fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["FontWeights"].semibold, lineHeight: 16, textAlign: 'center', paddingLeft: '3px', paddingRight: '3px', backgroundColor: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.themeDarker, color: _cseo_styles__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"].palette.white, top: '-16px' }; var Styles = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["mergeStyleSets"])({ badgeContainer: { position: 'relative' }, badgeSingleDigit: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, badgeBase), { minWidth: '10px', right: '-4px' }), badgeDoubleDigits: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, badgeBase), { right: '-8px' }), badgeTripleDigits: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, badgeBase), { right: '-10px' }) }); function NotificationControl(newItemCount, isPanelOpen, onClickFunction, title, ariaLabel) { var ariaLabelText = (newItemCount > 0 && newItemCount <= 99) ? newItemCount + " new notification" + (newItemCount !== 1 ? 's' : '') : (newItemCount > 0 ? 'Over 99 new notifications' : 'Notifications'); return { key: 'notifications', text: title || 'Notifications', value: 'Notifications', title: title || 'Notifications', ariaLabel: ariaLabel || ariaLabelText, checked: isPanelOpen, iconProps: { iconName: 'Ringer' }, onClick: onClickFunction, onRenderIcon: function (props, defaultRender) { var badge = (newItemCount < 10) ? Styles.badgeSingleDigit : (newItemCount < 100) ? Styles.badgeDoubleDigits : Styles.badgeTripleDigits; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, defaultRender(props), newItemCount > 0 && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: Styles.badgeContainer }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { className: [badge, 'notification-badge'].join(' ') }, newItemCount <= 99 ? newItemCount : '99+')))); } }; } //# sourceMappingURL=NotificationControl.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/header/Components/SearchBoxOverlay.js": /*!*******************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/header/Components/SearchBoxOverlay.js ***! \*******************************************************************************/ /*! exports provided: SearchBoxOverlay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchBoxOverlay", function() { return SearchBoxOverlay; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Common/CoherenceHeaderHelpers */ "./node_modules/@cseo/controls/lib/header/Common/CoherenceHeaderHelpers.js"); /* harmony import */ var _GlobalSearch_GlobalSearch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GlobalSearch/GlobalSearch */ "./node_modules/@cseo/controls/lib/header/Components/GlobalSearch/GlobalSearch.js"); var SearchBoxOverlay = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SearchBoxOverlay, _super); function SearchBoxOverlay() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._searchBoxRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.createRef(); _this._onSearch = function (value) { var _a = _this.props, dismissOnSearch = _a.dismissOnSearch, onClose = _a.onClose, searchBoxProps = _a.searchBoxProps; if (searchBoxProps && searchBoxProps.onSearch) { searchBoxProps.onSearch(value); } if (dismissOnSearch !== false) { onClose(); } }; _this._onChange = function (event, value) { var _a = _this.props, dismissOnSearch = _a.dismissOnSearch, onClose = _a.onClose, searchBoxProps = _a.searchBoxProps; if (searchBoxProps && searchBoxProps.onChange) { searchBoxProps.onChange(event, value); } if (dismissOnSearch !== false) { onClose(); } }; _this._onClear = function () { var _a = _this.props, dismissOnClear = _a.dismissOnClear, onClose = _a.onClose, searchBoxProps = _a.searchBoxProps; if (searchBoxProps && searchBoxProps.onClear) { searchBoxProps.onClear(); } if (dismissOnClear !== false) { onClose(); } }; _this._onEscape = function () { var _a = _this.props, searchBoxProps = _a.searchBoxProps, onClose = _a.onClose; if (searchBoxProps && searchBoxProps.onEscape) { searchBoxProps.onEscape(); } onClose(); }; _this._getStyles = function () { return getStylesInternal(); }; return _this; } SearchBoxOverlay.prototype.componentDidMount = function () { if (this._searchBoxRef.current) { this._searchBoxRef.current.focus(); } }; SearchBoxOverlay.prototype.render = function () { var _a = this.props, searchBoxProps = _a.searchBoxProps, onClose = _a.onClose; var Styles = this._getStyles(); return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Styles.root }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Styles.searchBoxRoot }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_GlobalSearch_GlobalSearch__WEBPACK_IMPORTED_MODULE_4__["GlobalSearch"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, searchBoxProps, { onSearch: this._onSearch, onChange: this._onChange, onClear: this._onClear, onEscape: this._onEscape, placeholder: searchBoxProps && searchBoxProps.placeholder ? searchBoxProps.placeholder : 'Search' }))), react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: Styles.closeButtonRoot }, Object(_Common_CoherenceHeaderHelpers__WEBPACK_IMPORTED_MODULE_3__["onRenderCommandBarButton"])({ key: 'CloseSearch', ariaLabel: 'Close search', iconOnly: true, iconProps: { iconName: 'ChromeClose' }, onClick: onClose })))); }; return SearchBoxOverlay; }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component)); var buttonWidth = 48; var getStylesInternal = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function () { return Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"])({ root: { width: '100%', display: 'grid', gridTemplateColumns: '1fr ' + buttonWidth + 'px', justifyContent: 'center' }, searchBoxRoot: { marginLeft: '8px', alignSelf: 'center' }, closeButtonRoot: {} }); }); //# sourceMappingURL=SearchBoxOverlay.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.base.js": /*!******************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/nav/CoherenceNav.base.js ***! \******************************************************************/ /*! exports provided: CoherenceNavBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceNavBase", function() { return coherenceNavBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _m365_admin_nav__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @m365-admin/nav */ "./node_modules/@m365-admin/nav/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); var navCollapseButtonId = 'navCollapseButton'; var mobileNavOpenButtonId = 'mobileNavOpenButton'; var getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["classNamesFunction"])(); var coherenceNavBase = function (props) { var _a, _b; var styles = props.styles, theme = props.theme, appName = props.appName, toggleNavAriaLabel = props.toggleNavAriaLabel, toggleNavTooltip = props.toggleNavTooltip, navProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(props, ["styles", "theme", "appName", "toggleNavAriaLabel", "toggleNavTooltip"]); var _c = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(true), navIsHiddenOnMobile = _c[0], setNavIsHiddenOnMobile = _c[1]; var _d = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(true), isMobile = _d[0], setIsMobile = _d[1]; var _e = react__WEBPACK_IMPORTED_MODULE_3___default.a.useState(!!props.defaultIsNavCollapsed), isCoherenceNavCollapsed = _e[0], setIsCoherenceNavCollapsed = _e[1]; var navWrapperRef = react__WEBPACK_IMPORTED_MODULE_3___default.a.useRef(null); var mobileNavButtonRef = react__WEBPACK_IMPORTED_MODULE_3___default.a.useRef(null); var frameIdRef = react__WEBPACK_IMPORTED_MODULE_3___default.a.useRef(0); var hamburgerIcon = { iconName: 'GlobalNavButton' }; var isNavCollapsed = navIsHiddenOnMobile === false ? false : isCoherenceNavCollapsed; var classNames = getClassNames(styles, { isNavCollapsed: isNavCollapsed, theme: theme, shouldScroll: false, zoomLevel: window.devicePixelRatio }); react__WEBPACK_IMPORTED_MODULE_3___default.a.useEffect(function () { var windowWidth = window.innerWidth; if (windowWidth < _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"] && navProps.onNavCollapsed) { navProps.onNavCollapsed(true); } window.addEventListener('click', outSideClickDismiss); window.addEventListener('keydown', keydownDismiss); return function () { window.removeEventListener('click', outSideClickDismiss); window.removeEventListener('keydown', keydownDismiss); }; }, []); react__WEBPACK_IMPORTED_MODULE_3___default.a.useEffect(function () { window.removeEventListener('resize', handleResize); window.addEventListener('resize', handleResize); return function () { window.removeEventListener('resize', handleResize); }; }, [isCoherenceNavCollapsed]); var handleResize = function () { if (frameIdRef.current !== 0) { cancelAnimationFrame(frameIdRef.current); } frameIdRef.current = requestAnimationFrame(shouldNavCollapse); }; react__WEBPACK_IMPORTED_MODULE_3___default.a.useEffect(function () { var _a, _b; var windowWidth = window.innerWidth; if (windowWidth < _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"] && navIsHiddenOnMobile) { (_a = document.getElementById(mobileNavOpenButtonId)) === null || _a === void 0 ? void 0 : _a.focus(); } if (windowWidth < _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"] && !navIsHiddenOnMobile) { (_b = document.getElementById(navCollapseButtonId)) === null || _b === void 0 ? void 0 : _b.focus(); } }, [navIsHiddenOnMobile]); var outSideClickDismiss = function (event) { if (navWrapperRef.current && !navWrapperRef.current.contains(event.target) && mobileNavButtonRef.current && !mobileNavButtonRef.current.contains(event.target)) { setNavIsHiddenOnMobile(true); } }; var keydownDismiss = function (event) { var _a, _b; var activeElementIsHamburgerButton = ((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.id) === navCollapseButtonId || ((_b = document.activeElement) === null || _b === void 0 ? void 0 : _b.id) === mobileNavOpenButtonId; if (event.keyCode === _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].escape || (event.keyCode === _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].tab && !activeElementIsHamburgerButton)) { setNavIsHiddenOnMobile(true); } }; var showMobileNav = function () { setNavIsHiddenOnMobile(false); setIsCoherenceNavCollapsed(false); if (navProps.onNavCollapsed) { navProps.onNavCollapsed(false); } }; var navCollapseLinkClick = function (event) { var _a; setNavIsHiddenOnMobile(true); if ((_a = navProps.collapseNavLinkProps) === null || _a === void 0 ? void 0 : _a.onClick) { navProps.collapseNavLinkProps.onClick(event); } }; var handleNavCollapsed = function () { if (window.innerWidth > _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"]) { setIsCoherenceNavCollapsed(!isCoherenceNavCollapsed); } if (navProps.onNavCollapsed) { navProps.onNavCollapsed(!isCoherenceNavCollapsed); } }; var shouldNavCollapse = function () { var _a, _b, _c; if (window.innerWidth < _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"]) { if (!isCoherenceNavCollapsed) { (_a = navProps.onNavCollapsed) === null || _a === void 0 ? void 0 : _a.call(navProps, true); } setIsMobile(true); setIsCoherenceNavCollapsed(true); } else if (window.innerWidth >= _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"]) { if (isMobile) { setIsMobile(false); setNavIsHiddenOnMobile(true); (_b = navProps.onNavCollapsed) === null || _b === void 0 ? void 0 : _b.call(navProps, false); } else if (isCoherenceNavCollapsed) { (_c = navProps.onNavCollapsed) === null || _c === void 0 ? void 0 : _c.call(navProps, false); } setIsCoherenceNavCollapsed(false); } }; return (react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { className: classNames.mobileNavWrapper, ref: mobileNavButtonRef }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["IconButton"], { iconProps: hamburgerIcon, className: classNames.mobileNavTrigger, onClick: showMobileNav, "aria-label": toggleNavAriaLabel !== null && toggleNavAriaLabel !== void 0 ? toggleNavAriaLabel : appName + " Navigation", "aria-expanded": !navIsHiddenOnMobile, id: mobileNavOpenButtonId })), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", { ref: navWrapperRef, className: classNames.outerNavWrapper + " " + (navIsHiddenOnMobile ? '' : classNames.showNav) }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_m365_admin_nav__WEBPACK_IMPORTED_MODULE_2__["Nav"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, navProps, { collapseNavLinkProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ title: undefined, onClick: navCollapseLinkClick, id: navCollapseButtonId, 'aria-label': toggleNavAriaLabel !== null && toggleNavAriaLabel !== void 0 ? toggleNavAriaLabel : appName + " Navigation", tooltipProps: { directionalHint: _fluentui_react__WEBPACK_IMPORTED_MODULE_1__["DirectionalHint"].bottomLeftEdge, content: isNavCollapsed ? ((_a = toggleNavTooltip === null || toggleNavTooltip === void 0 ? void 0 : toggleNavTooltip.expand) !== null && _a !== void 0 ? _a : 'Expand navigation') : ((_b = toggleNavTooltip === null || toggleNavTooltip === void 0 ? void 0 : toggleNavTooltip.collapse) !== null && _b !== void 0 ? _b : 'Collapse navigation') } }, navProps.collapseNavLinkProps), isNavCollapsed: isNavCollapsed, onNavCollapsed: handleNavCollapsed, styles: { root: classNames.root, navContainer: classNames.navContainer, navWrapper: classNames.navWrapper, navGroup: classNames.navGroup, navGroupDivider: classNames.navGroupDivider } }))))); }; //# sourceMappingURL=CoherenceNav.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.js": /*!*************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/nav/CoherenceNav.js ***! \*************************************************************/ /*! exports provided: CoherenceNav */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceNav", function() { return CoherenceNav; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherenceNav_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceNav.base */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.base.js"); /* harmony import */ var _CoherenceNav_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceNav.styles */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.styles.js"); var CoherenceNav = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherenceNav_base__WEBPACK_IMPORTED_MODULE_1__["CoherenceNavBase"], _CoherenceNav_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherenceNav.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.styles.js": /*!********************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/nav/CoherenceNav.styles.js ***! \********************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _m365_admin_nav__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @m365-admin/nav */ "./node_modules/@m365-admin/nav/lib/index.js"); /* harmony import */ var _CoherenceNav_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceNav.utilities */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.utilities.js"); var headerHeight = 48; var navWidth = 228; var scrollBarWidth = 0; var currentZoomLevel = 0; var getStyles = function (props) { var _a, _b, _c; var theme = props.theme, isNavCollapsed = props.isNavCollapsed, zoomLevel = props.zoomLevel; _a = Object(_CoherenceNav_utilities__WEBPACK_IMPORTED_MODULE_2__["getScrollBarWidth"])(scrollBarWidth, currentZoomLevel, zoomLevel), scrollBarWidth = _a[0], currentZoomLevel = _a[1]; return { root: { position: 'fixed', top: headerHeight, bottom: 0 }, navContainer: { width: isNavCollapsed ? _m365_admin_nav__WEBPACK_IMPORTED_MODULE_1__["navCollapsedWidth"] + scrollBarWidth : navWidth + scrollBarWidth }, outerNavWrapper: { selectors: (_b = {}, _b["@media (max-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinXLarge"] + "px)"] = { display: 'none' }, _b) }, showNav: { display: 'block', position: 'absolute', top: headerHeight, left: 0, bottom: 0 }, mobileNavWrapper: { marginTop: 4, selectors: (_c = {}, _c["@media (min-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinXLarge"] + 1) + "px)"] = { display: 'none' }, _c) }, mobileNavTrigger: { marginLeft: 8, color: theme.palette.neutralPrimary, selectors: { ':hover, :active': { color: theme.palette.neutralPrimary } } } }; }; //# sourceMappingURL=CoherenceNav.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.types.js": /*!*******************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/nav/CoherenceNav.types.js ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=CoherenceNav.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.utilities.js": /*!***********************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/nav/CoherenceNav.utilities.js ***! \***********************************************************************/ /*! exports provided: getScrollBarWidth */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScrollBarWidth", function() { return getScrollBarWidth; }); function getScrollBarWidth(navScrollBarWidth, currentZoomLevel, nextZoomLevel) { if (navScrollBarWidth !== 0 && currentZoomLevel === nextZoomLevel) { return [navScrollBarWidth, currentZoomLevel]; } currentZoomLevel = nextZoomLevel; var scrollDiv = document.createElement('div'); scrollDiv.setAttribute('style', 'width: 100px; height: 100px; overflow: scroll; position: absolute; top: -999px;'); var contentDiv = document.createElement('p'); contentDiv.setAttribute('style', 'width: 100px; height: 200px;'); scrollDiv.appendChild(contentDiv); document.body.appendChild(scrollDiv); navScrollBarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); return [navScrollBarWidth, currentZoomLevel]; } //# sourceMappingURL=CoherenceNav.utilities.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/nav/index.js": /*!******************************************************!*\ !*** ./node_modules/@cseo/controls/lib/nav/index.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @m365-admin/nav/lib/components/Nav/index */ "./node_modules/@m365-admin/nav/lib/components/Nav/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "navCollapsedWidth", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["navCollapsedWidth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "navItemHeight", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["navItemHeight"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "navGroupDividerStyle", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["navGroupDividerStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNavStyles", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["getNavStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["Nav"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavBase", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNavGroupStyles", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["getNavGroupStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavGroup", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavGroupBase", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavGroupBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNavLinkStyles", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["getNavLinkStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavLink"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavLinkBase", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavLinkBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flyoutNavWidth", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["flyoutNavWidth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNavLinkGroupStyles", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["getNavLinkGroupStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavLinkGroupBase", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavLinkGroupBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavLinkGroup", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavLinkGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNavCountInfo", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["getNavCountInfo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNavGroupCountStart", function() { return _m365_admin_nav_lib_components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["getNavGroupCountStart"]; }); /* harmony import */ var _CoherenceNav__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceNav */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceNav", function() { return _CoherenceNav__WEBPACK_IMPORTED_MODULE_1__["CoherenceNav"]; }); /* harmony import */ var _CoherenceNav_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceNav.styles */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return _CoherenceNav_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]; }); /* harmony import */ var _CoherenceNav_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CoherenceNav.types */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.types.js"); /* harmony import */ var _CoherenceNav_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_CoherenceNav_types__WEBPACK_IMPORTED_MODULE_3__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherenceNav_types__WEBPACK_IMPORTED_MODULE_3__) if(["default","navCollapsedWidth","navItemHeight","navGroupDividerStyle","getNavStyles","Nav","NavBase","getNavGroupStyles","NavGroup","NavGroupBase","getNavLinkStyles","NavLink","NavLinkBase","flyoutNavWidth","getNavLinkGroupStyles","NavLinkGroupBase","NavLinkGroup","getNavCountInfo","getNavGroupCountStart","CoherenceNav","getStyles"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherenceNav_types__WEBPACK_IMPORTED_MODULE_3__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _CoherenceNav_utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CoherenceNav.utilities */ "./node_modules/@cseo/controls/lib/nav/CoherenceNav.utilities.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getScrollBarWidth", function() { return _CoherenceNav_utilities__WEBPACK_IMPORTED_MODULE_4__["getScrollBarWidth"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/index.js": /*!***************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/index.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _notificationItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notificationItem */ "./node_modules/@cseo/controls/lib/notification/notificationItem/index.js"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _notificationItem__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _notificationItem__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _notificationPanel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notificationPanel */ "./node_modules/@cseo/controls/lib/notification/notificationPanel/index.js"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _notificationPanel__WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _notificationPanel__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.base.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.base.js ***! \*********************************************************************************************************/ /*! exports provided: CoherenceNotificationItemBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceNotificationItemBase", function() { return CoherenceNotificationItemBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/coherence-utilities */ "./node_modules/@cseo/coherence-utilities/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); /* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dayjs/plugin/duration */ "./node_modules/dayjs/plugin/duration.js"); /* harmony import */ var dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var dayjs_plugin_localizedFormat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dayjs/plugin/localizedFormat */ "./node_modules/dayjs/plugin/localizedFormat.js"); /* harmony import */ var dayjs_plugin_localizedFormat__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_localizedFormat__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var react_html_parser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-html-parser */ "./node_modules/react-html-parser/lib/index.js"); /* harmony import */ var react_html_parser__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_html_parser__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var react_innertext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-innertext */ "./node_modules/react-innertext/index.js"); /* harmony import */ var react_innertext__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_innertext__WEBPACK_IMPORTED_MODULE_8__); dayjs__WEBPACK_IMPORTED_MODULE_3___default.a.extend(dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_4___default.a); dayjs__WEBPACK_IMPORTED_MODULE_3___default.a.extend(dayjs_plugin_localizedFormat__WEBPACK_IMPORTED_MODULE_5___default.a); var MAX_MESSAGE_CHARACTER = 200; var CoherenceNotificationItemBase = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CoherenceNotificationItemBase, _super); function CoherenceNotificationItemBase() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); _this._getId = function (identifier) { return ('coher-notificationItem-' + identifier + '-id-' + _this.props.item.itemKey); }; _this._openNotificationItem = function (item) { var _a = _this.props, openItem = _a.openItem, onSetCurrentNotificationItem = _a.onSetCurrentNotificationItem; if (onSetCurrentNotificationItem) { onSetCurrentNotificationItem(item); } _this._updateNotificationItem(item.itemKey, 'old', 'read'); if (openItem) { openItem(item.itemKey); } }; _this._getTimeStamp = function (deliveredTime) { var _a, _b; var MDYYFormat = 'M/D/YY'; var _c = _this.props, dateFormatter = _c.dateFormatter, timeFormatter = _c.timeFormatter; var start = dayjs__WEBPACK_IMPORTED_MODULE_3___default()(dayjs__WEBPACK_IMPORTED_MODULE_3___default()().format(dateFormatter !== null && dateFormatter !== void 0 ? dateFormatter : MDYYFormat)); var end = dayjs__WEBPACK_IMPORTED_MODULE_3___default()(deliveredTime.format(dateFormatter !== null && dateFormatter !== void 0 ? dateFormatter : MDYYFormat)); var timeDiff = dayjs__WEBPACK_IMPORTED_MODULE_3___default.a.duration(start.diff(end)).asDays(); if (timeDiff === 0) { return deliveredTime.format(timeFormatter !== null && timeFormatter !== void 0 ? timeFormatter : 'LT'); } else if (timeDiff === 1) { return (_b = (_a = _this.props.timeGroupLabels) === null || _a === void 0 ? void 0 : _a.yesterday) !== null && _b !== void 0 ? _b : 'yesterday'; } else { return deliveredTime.format(dateFormatter !== null && dateFormatter !== void 0 ? dateFormatter : MDYYFormat); } }; _this._updateNotificationItem = function (itemKey, displayStatus, readStatus) { var updateItem = _this.props.updateItem; if (updateItem) { if (readStatus) { updateItem(itemKey, displayStatus, readStatus); } else { updateItem(itemKey, displayStatus); } } }; _this._actionTextClicked = function (event) { event.stopPropagation(); }; _this._trimMessageBodyText = function (message) { var messageText = react_innertext__WEBPACK_IMPORTED_MODULE_8___default()(react_html_parser__WEBPACK_IMPORTED_MODULE_7___default()(message)); return messageText.length > MAX_MESSAGE_CHARACTER ? messageText.substring(0, MAX_MESSAGE_CHARACTER) : messageText; }; return _this; } CoherenceNotificationItemBase.prototype.render = function () { var _this = this; var _a, _b, _c, _d, _e, _f, _g, _h, _j; var _k = this.props, styles = _k.styles, theme = _k.theme, notificationDismissedMessage = _k.notificationDismissedMessage, itemActionsText = _k.itemActionsText; var _classNames = this._getClassNames(styles, { theme: theme }); var item = this.props.item; if (item.displayStatus === 'dismiss') { return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Stack"], { className: _classNames.itemDismissUndo }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _classNames.attentionText }, notificationDismissedMessage !== null && notificationDismissedMessage !== void 0 ? notificationDismissedMessage : 'This notification has been dismissed'), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], { className: _classNames.attentionText, "aria-label": (_a = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.undo) !== null && _a !== void 0 ? _a : 'Undo', onClick: function () { return _this._updateNotificationItem(item.itemKey, 'old'); } }, (_b = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.undo) !== null && _b !== void 0 ? _b : 'Undo'))); } var subjectTextStyle = item.status === 'unread' ? _classNames.subjectTextUnread : _classNames.subjectTextRead; var senderNameStyle = item.status === 'unread' ? _classNames.senderNameUnread : _classNames.senderNameRead; var timeDeliveredStyle = item.status === 'unread' ? _classNames.timeDeliveredUnread : _classNames.timeDeliveredRead; var _statusId = this._getId('status'); var _senderNameId = this._getId('senderName'); var _subjectId = this._getId('subject'); return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _classNames.root, role: 'presentation' }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { id: this._getId('buttonDiv'), tabIndex: 0, "aria-labelledby": _statusId + ' ' + _senderNameId + ' ' + _subjectId, className: _classNames.rootButtonDiv, onClick: function () { return _this._openNotificationItem(item); }, onKeyPress: function (event) { var code = event.keyCode || event.which; if (code === _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCode"].Enter || code === _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCode"].Space) { _this._openNotificationItem(item); } } }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _classNames.buttonContent }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Stack"], { horizontal: true }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { id: _statusId, "aria-label": item.status, className: _classNames.leftColumn, role: 'img' }, item.status === 'unread' && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], { className: _classNames.unreadIcon, iconName: 'StatusCircleInner' }))), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Stack"], { className: _classNames.timestampRow, horizontal: true }, item.senderName != null && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Persona"], { className: _classNames.senderImage, imageUrl: item.senderImageUrl, presence: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaPresence"].none, size: _fluentui_react__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size28, text: item.senderName })), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Stack"], { className: _classNames.subjectContainer }, item.senderName != null && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { id: _senderNameId, className: senderNameStyle, nowrap: true }, item.senderName)), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Stack"], { horizontal: true }, item.subjectIcon != null && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], { className: _classNames.icon, iconName: item.subjectIcon })), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("h3", { id: _subjectId, className: subjectTextStyle }, item.subjectHeader))), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { className: timeDeliveredStyle, nowrap: true }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span", { className: _classNames.timeHook }, this._getTimeStamp(item.timeDelivered))))), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _classNames.contextMenuContainer }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["IconButton"], { className: _classNames.contextButton, ariaLabel: (_c = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.moreActionsAriaLabel) !== null && _c !== void 0 ? _c : 'More actions', menuIconProps: { iconName: 'More', style: { fontSize: 16 } }, onKeyPress: function (event) { event.stopPropagation(); }, menuProps: { items: [ { key: 'dismiss', text: (_d = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.dismiss) !== null && _d !== void 0 ? _d : 'Dismiss', onClick: function () { return _this._updateNotificationItem(item.itemKey, 'dismiss'); } }, { key: 'toggleReadUnread', text: item.status === 'unread' ? ((_e = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.markAsRead) !== null && _e !== void 0 ? _e : 'Mark as read') : ((_f = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.markAsUnread) !== null && _f !== void 0 ? _f : 'Mark as unread'), onClick: function () { return item.status === 'unread' ? _this._updateNotificationItem(item.itemKey, 'old', 'read') : _this._updateNotificationItem(item.itemKey, 'old', 'unread'); } } ] } })), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Stack"], { className: _classNames.additionalContent }, item.eventTimeBlock && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { nowrap: true }, item.eventTimeBlock)), item.eventLocation && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { nowrap: true }, item.eventLocation)), item.summaryBodyText ? (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { className: _classNames.messageBody }, this._trimMessageBodyText(item.summaryBodyText))) : item.messageBodyText ? (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Text"], { className: _classNames.messageBody }, this._trimMessageBodyText(item.messageBodyText))) : null, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", null, item.messageBodyText && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], { "aria-label": ((_g = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.readMore) !== null && _g !== void 0 ? _g : 'Read More') + " - " + item.subjectHeader, className: _classNames.readMoreText, onClick: this.props.showNotificationList }, (_h = itemActionsText === null || itemActionsText === void 0 ? void 0 : itemActionsText.readMore) !== null && _h !== void 0 ? _h : 'Read More')), item.actionRequiredLink && item.actionRequiredText && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_2__["Link"], { "aria-label": (((_j = item.senderName) === null || _j === void 0 ? void 0 : _j.concat(' ')) || '') + item.subjectHeader + ' ' + item.actionRequiredText, className: _classNames.attentionText, href: item.actionRequiredLink, onClick: this._actionTextClicked }, item.actionRequiredText)))))))); }; return CoherenceNotificationItemBase; }(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component)); //# sourceMappingURL=CoherenceNotificationItem.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.js ***! \****************************************************************************************************/ /*! exports provided: CoherenceNotificationItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceNotificationItem", function() { return CoherenceNotificationItem; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherenceNotificationItem_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceNotificationItem.base */ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.base.js"); /* harmony import */ var _CoherenceNotificationItem_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceNotificationItem.styles */ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.styles.js"); var CoherenceNotificationItem = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherenceNotificationItem_base__WEBPACK_IMPORTED_MODULE_1__["CoherenceNotificationItemBase"], _CoherenceNotificationItem_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherenceNotificationItem.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.styles.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.styles.js ***! \***********************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var getStyles = function (props) { var theme = props.theme; return { itemDismissUndo: { padding: '12px 32px 12px 32px' }, attentionText: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { paddingTop: '4px', lineHeight: '24px' } ], readMoreText: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { paddingTop: '4px', marginRight: '20px', lineHeight: '24px' } ], subjectTextRead: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { whiteSpace: 'normal', marginTop: '0px', marginBottom: '0px' } ], subjectTextUnread: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Bold), { whiteSpace: 'nowrap', marginTop: '0px', marginBottom: '0px' } ], senderNameRead: [Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Regular)], senderNameUnread: [Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold)], timeDeliveredRead: [Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size12Regular)], timeDeliveredUnread: [Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size12Semibold)], root: { position: 'relative', selectors: { '&:hover .contextButton, &:focus-within .contextButton': { opacity: 1 }, '&:hover .timeHook, &:focus-within .timeHook': { opacity: 0 } } }, rootButtonDiv: { alignSelf: 'stretch', border: '0px', height: 'auto', padding: '12px 32px 12px 12px', textAlign: 'left', selectors: { ':hover, :focus': { backgroundColor: theme.palette.neutralLighter }, ':active': { backgroundColor: theme.palette.neutralLight }, ':focus': { outlineColor: theme.palette.neutralSecondary } } }, messageBody: { overflow: 'hidden', wordWrap: 'break-word' }, leftColumn: { width: '20px' }, unreadIcon: { color: theme.palette.themePrimary, fontSize: '8px', marginTop: '6px' }, timestampRow: { flexGrow: 1, justifyContent: 'space-between', position: 'relative' }, senderImage: { marginTop: '4px', maxWidth: '40px' }, subjectContainer: { flex: 1 }, icon: { alignSelf: 'flex-top', fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_0__["FontSizes"].size16, margin: '0px 6px 0px 0px', paddingTop: '3px' }, timeHook: [ 'timeHook', { opacity: 1 } ], contextMenuContainer: { position: 'absolute', right: '32px', top: '3px' }, contextButton: [ 'contextButton', { opacity: 0 } ], additionalContent: { marginLeft: '20px' } }; }; //# sourceMappingURL=CoherenceNotificationItem.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.types.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.types.js ***! \**********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=CoherenceNotificationItem.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationItem/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationItem/index.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherenceNotificationItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherenceNotificationItem */ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceNotificationItem", function() { return _CoherenceNotificationItem__WEBPACK_IMPORTED_MODULE_0__["CoherenceNotificationItem"]; }); /* harmony import */ var _CoherenceNotificationItem_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceNotificationItem.types */ "./node_modules/@cseo/controls/lib/notification/notificationItem/CoherenceNotificationItem.types.js"); /* harmony import */ var _CoherenceNotificationItem_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CoherenceNotificationItem_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherenceNotificationItem_types__WEBPACK_IMPORTED_MODULE_1__) if(["default","CoherenceNotificationItem"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherenceNotificationItem_types__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.base.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.base.js ***! \***********************************************************************************************************/ /*! exports provided: CoherenceNotificationPanelBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceNotificationPanelBase", function() { return CoherenceNotificationPanelBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_coherence_panel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/coherence-panel */ "./node_modules/@cseo/coherence-panel/lib/index.js"); /* harmony import */ var _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @cseo/coherence-utilities */ "./node_modules/@cseo/coherence-utilities/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); /* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../index */ "./node_modules/@cseo/controls/lib/notification/index.js"); var CoherenceNotificationPanelBase = (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CoherenceNotificationPanelBase, _super); function CoherenceNotificationPanelBase(props) { var _this = _super.call(this, props) || this; _this._getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["classNamesFunction"])(); _this.handleResize = function () { if (!_this.state.isShort && !Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_2__["isPanelHeightSufficient"])()) { _this.setState({ isShort: true }); } else if (_this.state.isShort && Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_2__["isPanelHeightSufficient"])()) { _this.setState({ isShort: false }); } }; _this.showNotificationData = function () { _this.setState({ isRenderNotificationContent: false }); }; _this.showNotificationList = function () { _this.setState({ isRenderNotificationContent: true }); }; _this.onSetCurrentNotificationItem = function (item) { _this.setState({ currentNotificationItem: item }); }; _this.displayNotificationItemData = function () { var _a, _b; return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _this._classNames.subjectHeaderOnOpen }, (_a = _this.state.currentNotificationItem) === null || _a === void 0 ? void 0 : _a.subjectHeader), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _this._classNames.messageBodyOnOpen }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _this._classNames.messageBodyContentOnOpen, dangerouslySetInnerHTML: { __html: (_b = _this.state.currentNotificationItem) === null || _b === void 0 ? void 0 : _b.messageBodyText } })))); }; _this.displayNotificationData = function () { var _a, _b, _c; var sortedItems = processNotifications(_this.props.items); var groups = getGroups(sortedItems, _this.props.timeGroupLabels); if (!sortedItems || !sortedItems.length) { return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _this._classNames.rootNoNotifications }, (_a = _this.props.noNotificationsMessage) !== null && _a !== void 0 ? _a : 'No notifications')); } else if (_this.props.onUndoDismissAll && _this.props.isUndoDismissAllVisible) { return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["Stack"], { className: _this._classNames.rootNoNotifications }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _this._classNames.undoView }, (_b = _this.props.allNotificationsDismissedMessage) !== null && _b !== void 0 ? _b : 'All notifications have been dismissed'), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["Link"], { className: _this._classNames.undoView, id: 'coher-notificationPanel-undo-id', href: 'javascript:void(0)', onClick: _this._onUndoDismissAllClicked }, (_c = _this.props.undoDismissNotificationsText) !== null && _c !== void 0 ? _c : 'Undo'))); } else { return groups.map(function (g) { return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_6___default.a.Fragment, null, _this._onRenderHeader(g), react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("ul", { style: { margin: 0, padding: 0 }, "aria-labelledby": g.key, key: g.key }, _this._onRenderGroupedItems(g, sortedItems)), _this._onRenderFooter(g))); }); } }; _this._onRenderGroupedItems = function (group, allItems) { var renderedItems = []; for (var i = group.startIndex; i < group.startIndex + group.count; i++) { renderedItems.push(react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("li", { style: { listStyle: 'none' } }, _this._onRenderCell(0, allItems[i]))); } return renderedItems; }; _this._onUndoDismissAllClicked = function () { if (_this.props.onUndoDismissAll) { _this.props.onUndoDismissAll(); } }; _this._onRenderCell = function (_nestingDepth, item) { return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_7__["CoherenceNotificationItem"], { item: item, openItem: _this.props.openItem, showNotificationList: _this.showNotificationList, updateItem: _this.props.updateItem, onSetCurrentNotificationItem: _this.onSetCurrentNotificationItem, notificationDismissedMessage: _this.props.singleNotificationDismissedMessage, timeGroupLabels: _this.props.timeGroupLabels, itemActionsText: _this.props.notificationItemActionsText, dateFormatter: _this.props.dateFormatter, timeFormatter: _this.props.timeFormatter })); }; _this._onRenderHeader = function (group) { return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["Stack"], { className: _this._classNames.groupHeaderRow, horizontal: true, id: group.key }, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("h2", { className: _this._classNames.groupHeaderText }, group.name))); }; _this._onRenderFooter = function (group) { if (group && _this.props.items) { if (_this.props.items.length > group.startIndex + group.count) { return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: _this._classNames.groupFooterRow }); } else { return null; } } else { return null; } }; _this._onRenderFooterContent = function () { var _a; var _b = _this.props, onDismissMultiple = _b.onDismissMultiple, isUndoDismissAllVisible = _b.isUndoDismissAllVisible, footerActionText = _b.footerActionText, footerActionProps = _b.footerActionProps, dismissAllText = _b.dismissAllText, dismissAllAriaLabel = _b.dismissAllAriaLabel; var _c = _this.state, currentNotificationItem = _c.currentNotificationItem, isRenderNotificationContent = _c.isRenderNotificationContent; return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", null, onDismissMultiple && !isUndoDismissAllVisible && !isRenderNotificationContent && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["Link"], { className: _this._classNames.dismissAllText, "aria-label": dismissAllAriaLabel !== null && dismissAllAriaLabel !== void 0 ? dismissAllAriaLabel : 'Dismiss all notifications', href: 'javascript:void(0)', onClick: _this._onDismissAll }, dismissAllText !== null && dismissAllText !== void 0 ? dismissAllText : 'Dismiss all')), (!isRenderNotificationContent && footerActionText && footerActionProps) && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["Link"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: _this._classNames.footerAction }, footerActionProps), footerActionText)), (isRenderNotificationContent && currentNotificationItem && currentNotificationItem.actionRequiredLink && currentNotificationItem.actionRequiredText) && react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["Link"], { "aria-label": (((_a = currentNotificationItem.senderName) === null || _a === void 0 ? void 0 : _a.concat(' ')) || '') + currentNotificationItem.subjectHeader + ' ' + currentNotificationItem.actionRequiredText, href: currentNotificationItem.actionRequiredLink, onClick: _this._actionTextClicked }, currentNotificationItem.actionRequiredText))); }; _this._actionTextClicked = function (event) { event.stopPropagation(); }; _this._onDismissAll = function () { var onDismissMultiple = _this.props.onDismissMultiple; if (onDismissMultiple && _this.props.items) { var keys = _this.props.items && _this.props.items.map(function (x) { return x.itemKey; }); onDismissMultiple(keys); } }; _this.state = { isShort: !Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_2__["isPanelHeightSufficient"])(), isRenderNotificationContent: false, currentNotificationItem: undefined }; return _this; } CoherenceNotificationPanelBase.prototype.render = function () { var _this = this; var _a = this.props, styles = _a.styles, theme = _a.theme, panelSize = _a.panelSize, titleText = _a.titleText, backButton = _a.backButton, remainingProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["styles", "theme", "panelSize", "titleText", "backButton"]); this._classNames = this._getClassNames(styles, { theme: theme, isFooterInBody: this.state.isShort, panelSize: panelSize }); return (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_cseo_coherence_panel__WEBPACK_IMPORTED_MODULE_1__["CoherencePanel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ panelBodyResponsiveMargin: false, panelSize: panelSize }, remainingProps, { titleText: titleText || 'Notifications', isOpen: this.props.isOpen, onDismiss: function (e) { var _a, _b; return (_b = (_a = _this.props).onDismissPanel) === null || _b === void 0 ? void 0 : _b.call(_a, e); }, onRenderFooter: this._onRenderFooterContent, backButton: this.state.isRenderNotificationContent ? { text: (backButton === null || backButton === void 0 ? void 0 : backButton.text) || 'back', ariaLabel: (backButton === null || backButton === void 0 ? void 0 : backButton.ariaLabel) || 'back', onClick: function () { _this.showNotificationData(); } } : undefined }), !this.state.isRenderNotificationContent && (react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_6___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: this._classNames.headerBody }, this.props.headerBody) || null, react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", { className: this._classNames.rootNotifications }, this.displayNotificationData()))), this.state.isRenderNotificationContent && this.displayNotificationItemData())); }; CoherenceNotificationPanelBase.prototype.componentDidMount = function () { window.addEventListener('resize', this.handleResize); }; CoherenceNotificationPanelBase.prototype.componentDidUpdate = function (_) { if (this.props.onUndoDismissAll && this.props.isUndoDismissAllVisible) { var undoLink = (document.getElementById('coher-notificationPanel-undo-id')); if (undoLink) { undoLink.focus(); } } }; CoherenceNotificationPanelBase.prototype.componentWillUnmount = function () { var _this = this; window.removeEventListener('resize', function () { return _this.handleResize; }); }; return CoherenceNotificationPanelBase; }(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component)); function getGroups(items, timeGroupLabels) { var _a, _b, _c; var dateToday = dayjs__WEBPACK_IMPORTED_MODULE_4___default()(); var dateYesterday = dayjs__WEBPACK_IMPORTED_MODULE_4___default()().add(-1, 'days'); var groupedItems = items.reduce(function (list, item) { var date = item.timeDelivered; if (date instanceof moment__WEBPACK_IMPORTED_MODULE_5___default.a) { if (moment__WEBPACK_IMPORTED_MODULE_5___default()(date.format()).isSame(dateToday.format(), 'day')) { list.Today.push(item); } else if (moment__WEBPACK_IMPORTED_MODULE_5___default()(date.format()).isSame(dateYesterday.format(), 'day')) { list.Yesterday.push(item); } else { list.Older.push(item); } } if (date instanceof dayjs__WEBPACK_IMPORTED_MODULE_4___default.a) { if (dayjs__WEBPACK_IMPORTED_MODULE_4___default()(date.format()).isSame(dateToday, 'day')) { list.Today.push(item); } else if (dayjs__WEBPACK_IMPORTED_MODULE_4___default()(date.format()).isSame(dateYesterday, 'day')) { list.Yesterday.push(item); } else { list.Older.push(item); } } return list; }, { Today: [], Yesterday: [], Older: [] }); var listGroups = []; if (groupedItems.Today.length > 0) { listGroups.push({ key: 'Today', name: (_a = timeGroupLabels === null || timeGroupLabels === void 0 ? void 0 : timeGroupLabels.today) !== null && _a !== void 0 ? _a : 'Today', startIndex: 0, count: groupedItems.Today.length }); } if (groupedItems.Yesterday.length > 0) { listGroups.push({ key: 'Yesterday', name: (_b = timeGroupLabels === null || timeGroupLabels === void 0 ? void 0 : timeGroupLabels.yesterday) !== null && _b !== void 0 ? _b : 'Yesterday', startIndex: groupedItems.Today.length === 0 ? 0 : groupedItems.Today.length, count: groupedItems.Yesterday.length }); } if (groupedItems.Older.length > 0) { listGroups.push({ key: 'Earlier', name: (_c = timeGroupLabels === null || timeGroupLabels === void 0 ? void 0 : timeGroupLabels.earlier) !== null && _c !== void 0 ? _c : 'Earlier', startIndex: ((groupedItems.Today.length === 0 ? 0 : groupedItems.Today.length) + (groupedItems.Yesterday.length === 0 ? 0 : groupedItems.Yesterday.length)), count: groupedItems.Older.length }); } return listGroups; } function processNotifications(items) { if (!items) { return []; } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(items).sort(function (a, b) { return SortByDate(a.timeDelivered, b.timeDelivered, true); }); } var SortByDate = function (a, b, descending) { var aDayjs = a; var bDayjs = b; if (descending) { var c = aDayjs; aDayjs = bDayjs; bDayjs = c; } return aDayjs.diff(bDayjs); }; //# sourceMappingURL=CoherenceNotificationPanel.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.js ***! \******************************************************************************************************/ /*! exports provided: CoherenceNotificationPanel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceNotificationPanel", function() { return CoherenceNotificationPanel; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherenceNotificationPanel_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceNotificationPanel.base */ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.base.js"); /* harmony import */ var _CoherenceNotificationPanel_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceNotificationPanel.styles */ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.styles.js"); var CoherenceNotificationPanel = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherenceNotificationPanel_base__WEBPACK_IMPORTED_MODULE_1__["CoherenceNotificationPanelBase"], _CoherenceNotificationPanel_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherenceNotificationPanel.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.styles.js": /*!*************************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.styles.js ***! \*************************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/coherence-utilities */ "./node_modules/@cseo/coherence-utilities/lib/index.js"); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var getStyles = function (props) { var _a; var theme = props.theme, isFooterInBody = props.isFooterInBody, panelSize = props.panelSize; return { rootNotifications: { marginTop: '-12px' }, rootNoNotifications: { fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_2__["FontSizes"].size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_3__["FontWeights"].semibold, marginBottom: '4px', padding: '12px 32px 12px 32px' }, undoView: { minWidth: '240px' }, groupHeaderRow: { flexGrow: 1, justifyContent: 'space-between', margin: '12px 32px 4px 32px', selectors: (_a = {}, _a["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_3__["ScreenWidthMinMedium"] + "px)"] = { marginLeft: '32px', marginRight: '32px' }, _a["@media (min-width: " + _fluentui_react__WEBPACK_IMPORTED_MODULE_3__["ScreenWidthMinSmall"] + "px) and (max-width: " + (_fluentui_react__WEBPACK_IMPORTED_MODULE_3__["ScreenWidthMinMedium"] - 1) + "px)"] = { marginLeft: '16px', marginRight: '16px' }, _a) }, groupHeaderText: { fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_2__["FontSizes"].size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_3__["FontWeights"].semibold, marginTop: '0px', marginBottom: '0px' }, groupFooterRow: { flexGrow: 1, backgroundColor: theme.palette.neutralQuaternaryAlt, height: '1px', margin: '12px 32px 12px 32px' }, dismissAllText: { fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_2__["FontSizes"].size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_3__["FontWeights"].semibold, selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["getResponsivePanelMargin"])(panelSize, !isFooterInBody)) }, footerAction: { fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_2__["FontSizes"].size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_3__["FontWeights"].semibold, marginLeft: '20px' }, messageBodyOnOpen: { margin: '15px 26px 15px 48px', border: '1px solid #D9D9D9', paddingLeft: 10, paddingRight: 4, wordBreak: 'break-word', overflowX: 'auto' }, messageBodyContentOnOpen: { fontSize: _cseo_styles__WEBPACK_IMPORTED_MODULE_2__["FontSizes"].size14, lineHeight: 20 }, subjectHeaderOnOpen: { fontSize: 20, marginLeft: 48, fontWeight: 600 }, headerBody: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_cseo_coherence_utilities__WEBPACK_IMPORTED_MODULE_1__["getResponsivePanelMargin"])(panelSize, undefined)), { marginTop: '1px' }) }; }; //# sourceMappingURL=CoherenceNotificationPanel.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.types.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.types.js ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=CoherenceNotificationPanel.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/notification/notificationPanel/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/notification/notificationPanel/index.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherenceNotificationPanel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherenceNotificationPanel */ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceNotificationPanel", function() { return _CoherenceNotificationPanel__WEBPACK_IMPORTED_MODULE_0__["CoherenceNotificationPanel"]; }); /* harmony import */ var _CoherenceNotificationPanel_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceNotificationPanel.types */ "./node_modules/@cseo/controls/lib/notification/notificationPanel/CoherenceNotificationPanel.types.js"); /* harmony import */ var _CoherenceNotificationPanel_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CoherenceNotificationPanel_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherenceNotificationPanel_types__WEBPACK_IMPORTED_MODULE_1__) if(["default","CoherenceNotificationPanel"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherenceNotificationPanel_types__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.base.js": /*!************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.base.js ***! \************************************************************************************************/ /*! exports provided: CoherencePageSizeBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePageSizeBase", function() { return coherencePageSizeBase; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); var getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["classNamesFunction"])(); var coherencePageSizeBase = function (props) { var styles = props.styles, theme = props.theme, pageSize = props.pageSize, pageSizeList = props.pageSizeList, onPageSizeChange = props.onPageSizeChange, comboBoxWidth = props.comboBoxWidth, comboBoxAriaLabel = props.comboBoxAriaLabel, initialPageSizeLabelText = props.initialPageSizeLabelText, endingPageSizeLabelText = props.endingPageSizeLabelText, contextMenuView = props.contextMenuView; var classNames = getClassNames(styles, { theme: theme, comboBoxWidth: comboBoxWidth }); var _a = react__WEBPACK_IMPORTED_MODULE_1___default.a.useState(pageSize), selectedPageSize = _a[0], setSelectedPageSize = _a[1]; var onChange = function (_, option, index, value) { if (option) { onPageSizeChange(option.key); setSelectedPageSize(option.key); } }; var createMenuItems = function (sizeList) { var options = []; var _loop_1 = function (i) { options[i] = { key: sizeList[i].text, text: (initialPageSizeLabelText !== null && initialPageSizeLabelText !== void 0 ? initialPageSizeLabelText : 'Display') + ((initialPageSizeLabelText !== '') ? ' ' : '') + sizeList[i].text + ((endingPageSizeLabelText !== '') ? ' ' : '') + (endingPageSizeLabelText !== null && endingPageSizeLabelText !== void 0 ? endingPageSizeLabelText : 'items per page'), canCheck: true, isChecked: selectedPageSize === parseInt(sizeList[i].text), onClick: function () { onPageSizeChange(sizeList[i].key); setSelectedPageSize(sizeList[i].key); } }; }; for (var i = 0; i < sizeList.length; i++) { _loop_1(i); } return options; }; if (!contextMenuView) { return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Stack"], { horizontal: true, verticalAlign: "center", styles: classNames.subComponentStyles.container, tokens: { childrenGap: 5 } }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Text"], { theme: theme }, initialPageSizeLabelText !== null && initialPageSizeLabelText !== void 0 ? initialPageSizeLabelText : 'Display'), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["ComboBox"], { theme: theme, selectedKey: selectedPageSize, styles: classNames.subComponentStyles.comboBox(), options: pageSizeList, onChange: onChange, ariaLabel: comboBoxAriaLabel !== null && comboBoxAriaLabel !== void 0 ? comboBoxAriaLabel : "Display " + selectedPageSize + " items per page" }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Text"], { theme: theme }, endingPageSizeLabelText !== null && endingPageSizeLabelText !== void 0 ? endingPageSizeLabelText : 'items per page'))); } else { return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["IconButton"], { className: classNames.contextMenu, ariaLabel: comboBoxAriaLabel !== null && comboBoxAriaLabel !== void 0 ? comboBoxAriaLabel : "Display " + selectedPageSize + " items per page", menuIconProps: { iconName: 'More', style: { fontSize: 16, color: theme.palette.neutralPrimary } }, menuProps: { items: createMenuItems(pageSizeList) } })); } }; //# sourceMappingURL=CoherencePageSize.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.js ***! \*******************************************************************************************/ /*! exports provided: CoherencePageSize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePageSize", function() { return CoherencePageSize; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherencePageSize_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePageSize.base */ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.base.js"); /* harmony import */ var _CoherencePageSize_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherencePageSize.styles */ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.styles.js"); var CoherencePageSize = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherencePageSize_base__WEBPACK_IMPORTED_MODULE_1__["CoherencePageSizeBase"], _CoherencePageSize_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherencePageSize.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.styles.js ***! \**************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _cseo_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @cseo/styles */ "./node_modules/@cseo/styles/lib/index.js"); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var getStyles = function (props) { var _a = props.comboBoxWidth, comboBoxWidth = _a === void 0 ? 65 : _a, theme = props.theme; return { subComponentStyles: { container: { root: { paddingRight: 12, paddingLeft: 12, height: 40, marginRight: 16 } }, comboBox: { container: { width: comboBoxWidth } } }, contextMenu: [ Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(_cseo_styles__WEBPACK_IMPORTED_MODULE_0__["ExtendedTypography"].size14Semibold), { border: 'none', height: '40px', width: '40px', color: theme.palette.neutralPrimary } ] }; }; //# sourceMappingURL=CoherencePageSize.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.types.js ***! \*************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=CoherencePageSize.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/index.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherencePageSize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherencePageSize */ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherencePageSize", function() { return _CoherencePageSize__WEBPACK_IMPORTED_MODULE_0__["CoherencePageSize"]; }); /* harmony import */ var _CoherencePageSize_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePageSize.types */ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/CoherencePageSize.types.js"); /* harmony import */ var _CoherencePageSize_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CoherencePageSize_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherencePageSize_types__WEBPACK_IMPORTED_MODULE_1__) if(["default","CoherencePageSize"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherencePageSize_types__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.base.js ***! \****************************************************************************************************/ /*! exports provided: CoherencePaginationBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePaginationBase", function() { return coherencePaginationBase; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); var getClassNames = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["classNamesFunction"])(); var coherencePaginationBase = function (props) { var styles = props.styles, theme = props.theme, pageCount = props.pageCount, selectedPage = props.selectedPage, isIndexed = props.isIndexed, _a = props.pageSize, pageSize = _a === void 0 ? 1 : _a, pageInputWidth = props.pageInputWidth, onPageChange = props.onPageChange, previousPageAriaLabel = props.previousPageAriaLabel, nextPageAriaLabel = props.nextPageAriaLabel, inputFieldAriaLabel = props.inputFieldAriaLabel, _b = props.canJumpToPage, canJumpToPage = _b === void 0 ? true : _b, previousPageLabelText = props.previousPageLabelText, nextPageLabelText = props.nextPageLabelText, initialPagingLabelText = props.initialPagingLabelText, initialIndexedPagingLabelText = props.initialIndexedPagingLabelText, endingPagingLabelText = props.endingPagingLabelText, validationErrorMessageText = props.validationErrorMessageText; var _c = react__WEBPACK_IMPORTED_MODULE_1___default.a.useState("" + selectedPage), selectedPageString = _c[0], setSelectedPageString = _c[1]; var _d = react__WEBPACK_IMPORTED_MODULE_1___default.a.useState(undefined), errorMessage = _d[0], setErrorMessage = _d[1]; var classNames = getClassNames(styles, { theme: theme, pageInputWidth: pageInputWidth, isError: !!errorMessage }); var onChange = function (_, newValue) { if ((newValue && parseInt(newValue) <= Number.MAX_SAFE_INTEGER) || newValue === '') { setSelectedPageString(newValue); } }; var isValid = function (newPage) { var isnum = /^\d+$/.test(newPage); if (isnum) { var index = parseInt(newPage); if (index === 0 || index > pageCount) { setErrorMessage(validationErrorMessageText ? "" + validationErrorMessageText : "Enter a number between 1 and " + pageCount); return 0; } else { setErrorMessage(undefined); return index; } } else { setErrorMessage(validationErrorMessageText ? "" + validationErrorMessageText : "Enter a number between 1 and " + pageCount); return 0; } }; var onKeyPress = function (event) { if (event.which === _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["KeyCodes"].enter) { var index = isValid(selectedPageString); if (index) { onPageChange(index); } } }; var onBlur = function (event) { var value = event.target.value; var index = isValid(value); if (index) { onPageChange(index); } }; var handlePreviousPage = function () { setSelectedPageString("" + (selectedPageIndex - pageSize)); onPageChange(selectedPage - pageSize); }; var handleNextPage = function () { setSelectedPageString("" + (selectedPageIndex + pageSize)); onPageChange(selectedPage + pageSize); }; var onGetErrorMessage = function (value) { isValid(value); return ''; }; var getInitialPagingText = function () { return isIndexed ? initialIndexedPagingLabelText !== null && initialIndexedPagingLabelText !== void 0 ? initialIndexedPagingLabelText : 'Displaying' : initialPagingLabelText !== null && initialPagingLabelText !== void 0 ? initialPagingLabelText : 'Page'; }; var getEndingPagingText = function (endIndex, thePageCount) { return isIndexed && pageSize ? "- " + endIndex + " / " + thePageCount : "/ " + thePageCount; }; var concatPagingText = function (endIndex, thePageCount) { return initialPagingText + " " + selectedPage + " " + getEndingPagingText(endIndex, thePageCount); }; var selectedPageIndex = parseInt(selectedPageString); var canPrevious = selectedPageIndex - pageSize >= 1 && selectedPageIndex <= pageCount; var canNext = selectedPageIndex + pageSize <= pageCount && selectedPageIndex >= 1; var rangeEndIndex = canNext ? selectedPage + pageSize - 1 : pageCount; var initialPagingText = getInitialPagingText(); var pagingText = inputFieldAriaLabel !== null && inputFieldAriaLabel !== void 0 ? inputFieldAriaLabel : concatPagingText(rangeEndIndex, pageCount); react__WEBPACK_IMPORTED_MODULE_1___default.a.useEffect(function () { setSelectedPageString("" + selectedPage); setErrorMessage(undefined); }, [selectedPage, pageCount]); return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { role: "region", "aria-label": "Pagination" }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Stack"], { styles: classNames.subComponentStyles.container, verticalAlign: "center" }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Stack"], { horizontal: true, horizontalAlign: "center", verticalAlign: "center", tokens: { childrenGap: 5 } }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Stack"], { horizontal: true, verticalAlign: "center" }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["CommandBarButton"], { theme: theme, styles: classNames.subComponentStyles.prevButtonStyles(), iconProps: { iconName: 'ChevronLeft' }, onClick: handlePreviousPage, disabled: !canPrevious, "aria-label": previousPageAriaLabel !== null && previousPageAriaLabel !== void 0 ? previousPageAriaLabel : 'Previous page', text: previousPageLabelText !== null && previousPageLabelText !== void 0 ? previousPageLabelText : 'Prev' })), !canJumpToPage && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Text"], null, concatPagingText(rangeEndIndex, pageCount))), canJumpToPage && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Text"], null, initialPagingText), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["TextField"], { theme: theme, styles: classNames.subComponentStyles.textFieldStyles, value: selectedPageString, onKeyPress: onKeyPress, onChange: onChange, onBlur: onBlur, onGetErrorMessage: onGetErrorMessage, ariaLabel: errorMessage ? "alert error " + errorMessage : pagingText }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Text"], null, endingPagingLabelText !== null && endingPagingLabelText !== void 0 ? endingPagingLabelText : getEndingPagingText(rangeEndIndex, pageCount)))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Stack"], { horizontal: true, verticalAlign: "center" }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["CommandBarButton"], { theme: theme, styles: classNames.subComponentStyles.nextButtonStyles(), iconProps: { iconName: 'ChevronRight' }, disabled: !canNext, onClick: handleNextPage, text: nextPageLabelText !== null && nextPageLabelText !== void 0 ? nextPageLabelText : 'Next', "aria-label": nextPageAriaLabel !== null && nextPageAriaLabel !== void 0 ? nextPageAriaLabel : 'Next page' }))), errorMessage && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Stack"], { horizontalAlign: "center" }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Text"], { variant: "smallPlus", styles: classNames.subComponentStyles.errorMessageStyles }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["Icon"], { iconName: "Warning" }), " ", errorMessage)))))); }; //# sourceMappingURL=CoherencePagination.base.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.js ***! \***********************************************************************************************/ /*! exports provided: CoherencePagination */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherencePagination", function() { return CoherencePagination; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _CoherencePagination_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePagination.base */ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.base.js"); /* harmony import */ var _CoherencePagination_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherencePagination.styles */ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.styles.js"); var CoherencePagination = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CoherencePagination_base__WEBPACK_IMPORTED_MODULE_1__["CoherencePaginationBase"], _CoherencePagination_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=CoherencePagination.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.styles.js ***! \******************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); var getStyles = function (props) { var theme = props.theme, _a = props.pageInputWidth, pageInputWidth = _a === void 0 ? 42 : _a, isError = props.isError; return { subComponentStyles: { container: { root: { paddingRight: 12, paddingLeft: 12, height: 48, whiteSpace: 'nowrap' } }, textFieldStyles: { fieldGroup: [ { width: pageInputWidth }, isError && { borderColor: theme.semanticColors.errorText } ] }, errorMessageStyles: { root: { color: theme.semanticColors.errorText } }, prevButtonStyles: { root: { height: 32 }, icon: { color: theme.palette.black + ' !important' } }, nextButtonStyles: { root: { height: 32, transform: 'scaleX(-1)' }, textContainer: { transform: 'scaleX(-1)' }, icon: { transform: 'scaleX(-1)', color: theme.palette.black + ' !important' } } } }; }; //# sourceMappingURL=CoherencePagination.styles.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.types.js ***! \*****************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { //# sourceMappingURL=CoherencePagination.types.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/CoherencePagination/index.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherencePagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherencePagination */ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherencePagination", function() { return _CoherencePagination__WEBPACK_IMPORTED_MODULE_0__["CoherencePagination"]; }); /* harmony import */ var _CoherencePagination_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePagination.types */ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/CoherencePagination.types.js"); /* harmony import */ var _CoherencePagination_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CoherencePagination_types__WEBPACK_IMPORTED_MODULE_1__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherencePagination_types__WEBPACK_IMPORTED_MODULE_1__) if(["default","CoherencePagination"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherencePagination_types__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/controls/lib/pagination/index.js": /*!*************************************************************!*\ !*** ./node_modules/@cseo/controls/lib/pagination/index.js ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherencePagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherencePagination */ "./node_modules/@cseo/controls/lib/pagination/CoherencePagination/index.js"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherencePagination__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherencePagination__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _CoherencePageSize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherencePageSize */ "./node_modules/@cseo/controls/lib/pagination/CoherencePageSize/index.js"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _CoherencePageSize__WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _CoherencePageSize__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/CoherenceCustomizations.js": /*!******************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/CoherenceCustomizations.js ***! \******************************************************************/ /*! exports provided: CoherenceCustomizations */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceCustomizations", function() { return CoherenceCustomizations; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _uifabric_fluent_theme_lib_fluent_FluentStyles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uifabric/fluent-theme/lib/fluent/FluentStyles */ "./node_modules/@uifabric/fluent-theme/lib/fluent/FluentStyles.js"); /* harmony import */ var _uifabric_variants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uifabric/variants */ "./node_modules/@uifabric/variants/lib/index.js"); /* harmony import */ var _coherence__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./coherence */ "./node_modules/@cseo/styles/lib/coherence/index.js"); /* harmony import */ var _coherence_CoherenceTheme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./coherence/CoherenceTheme */ "./node_modules/@cseo/styles/lib/coherence/CoherenceTheme.js"); var CoherenceCustomizations = { settings: { theme: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _coherence_CoherenceTheme__WEBPACK_IMPORTED_MODULE_4__["CoherenceTheme"]) }, scopedSettings: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _uifabric_fluent_theme_lib_fluent_FluentStyles__WEBPACK_IMPORTED_MODULE_1__["FluentStyles"]), _coherence__WEBPACK_IMPORTED_MODULE_3__["CoherenceStyles"]) }; Object(_uifabric_variants__WEBPACK_IMPORTED_MODULE_2__["addVariants"])(CoherenceCustomizations.settings.theme); //# sourceMappingURL=CoherenceCustomizations.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/CoherenceColors.js": /*!********************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/CoherenceColors.js ***! \********************************************************************/ /*! exports provided: NeutralColors, DefaultThemeColors, TextColors, HyperlinkColors, SurfaceColors, MessagingColors */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NeutralColors", function() { return NeutralColors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultThemeColors", function() { return DefaultThemeColors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextColors", function() { return TextColors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HyperlinkColors", function() { return HyperlinkColors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurfaceColors", function() { return SurfaceColors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessagingColors", function() { return MessagingColors; }); var NeutralColors; (function (NeutralColors) { NeutralColors.black = '#000000'; NeutralColors.gray220 = '#101010'; NeutralColors.gray210 = '#151515'; NeutralColors.gray200 = '#171717'; NeutralColors.gray190 = '#1f1f1f'; NeutralColors.gray180 = '#242424'; NeutralColors.gray170 = '#282828'; NeutralColors.gray160 = '#313131'; NeutralColors.gray150 = '#3a3a3a'; NeutralColors.gray140 = '#464646'; NeutralColors.gray130 = '#646464'; NeutralColors.gray120 = '#777777'; NeutralColors.gray110 = '#888888'; NeutralColors.gray100 = '#959595'; NeutralColors.gray90 = '#9f9f9f'; NeutralColors.gray80 = '#b1b1b1'; NeutralColors.gray70 = '#bcbcbc'; NeutralColors.gray60 = '#c6c6c6'; NeutralColors.gray50 = '#d0d0d0'; NeutralColors.gray40 = '#e5e5e5'; NeutralColors.gray30 = '#ebebeb'; NeutralColors.gray20 = '#f2f2f2'; NeutralColors.gray10 = '#fafafa'; NeutralColors.white = '#ffffff'; })(NeutralColors || (NeutralColors = {})); var DefaultThemeColors; (function (DefaultThemeColors) { DefaultThemeColors.blue110 = '#00287F'; DefaultThemeColors.blue100 = '#003C94'; DefaultThemeColors.blue90 = '#0050A9'; DefaultThemeColors.blue80 = '#0064BF'; DefaultThemeColors.blue70 = '#0078D4'; DefaultThemeColors.blue60 = '#258EDE'; DefaultThemeColors.blue50 = '#49A3E7'; DefaultThemeColors.blue40 = '#6EB9F1'; DefaultThemeColors.blue30 = '#92CFFA'; DefaultThemeColors.blue20 = '#D0E7F8'; DefaultThemeColors.blue10 = '#F3F9FD'; })(DefaultThemeColors || (DefaultThemeColors = {})); var TextColors; (function (TextColors) { TextColors.darkPrimary = NeutralColors.white; TextColors.lightPrimary = NeutralColors.gray200; TextColors.secondary = NeutralColors.gray130; TextColors.disabled = NeutralColors.gray60; })(TextColors || (TextColors = {})); var HyperlinkColors; (function (HyperlinkColors) { HyperlinkColors.hyperlink = DefaultThemeColors.blue80; HyperlinkColors.hyperlinkHoverPressed = DefaultThemeColors.blue100; })(HyperlinkColors || (HyperlinkColors = {})); var SurfaceColors; (function (SurfaceColors) { SurfaceColors.primary = NeutralColors.white; SurfaceColors.secondary = NeutralColors.gray10; SurfaceColors.tertiary = NeutralColors.gray20; SurfaceColors.quaternary = NeutralColors.gray30; SurfaceColors.navigation = NeutralColors.gray40; })(SurfaceColors || (SurfaceColors = {})); var MessagingColors; (function (MessagingColors) { MessagingColors.warning = '#fff4ce'; MessagingColors.warningIcon = NeutralColors.gray130; MessagingColors.severeWarning = '#fed9cc'; MessagingColors.severeWarningIcon = '#d73b02'; MessagingColors.errorBlock = '#fde7e9'; MessagingColors.errorBlockIcon = '#c5262c'; MessagingColors.success = '#dff6dd'; MessagingColors.successIcon = '#107c10'; MessagingColors.defaultBackground = NeutralColors.gray20; MessagingColors.defaultIcon = NeutralColors.gray130; })(MessagingColors || (MessagingColors = {})); //# sourceMappingURL=CoherenceColors.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/CoherenceStyles.js": /*!********************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/CoherenceStyles.js ***! \********************************************************************/ /*! exports provided: CoherenceStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceStyles", function() { return CoherenceStyles; }); /* harmony import */ var _styles_Dropdown_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./styles/Dropdown.styles */ "./node_modules/@cseo/styles/lib/coherence/styles/Dropdown.styles.js"); /* harmony import */ var _styles_SearchBox_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./styles/SearchBox.styles */ "./node_modules/@cseo/styles/lib/coherence/styles/SearchBox.styles.js"); /* harmony import */ var _styles_TextField_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styles/TextField.styles */ "./node_modules/@cseo/styles/lib/coherence/styles/TextField.styles.js"); /* harmony import */ var _styles_Breadcrumb_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./styles/Breadcrumb.styles */ "./node_modules/@cseo/styles/lib/coherence/styles/Breadcrumb.styles.js"); /* harmony import */ var _styles_IconButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./styles/IconButton.styles */ "./node_modules/@cseo/styles/lib/coherence/styles/IconButton.styles.js"); var CoherenceStyles = { Dropdown: { styles: _styles_Dropdown_styles__WEBPACK_IMPORTED_MODULE_0__["DropdownStyles"] }, SearchBox: { styles: _styles_SearchBox_styles__WEBPACK_IMPORTED_MODULE_1__["SearchBoxStyles"] }, TextField: { styles: _styles_TextField_styles__WEBPACK_IMPORTED_MODULE_2__["TextFieldStyles"] }, Breadcrumb: { styles: _styles_Breadcrumb_styles__WEBPACK_IMPORTED_MODULE_3__["BreadcrumbStyles"] }, IconButton: { styles: _styles_IconButton_styles__WEBPACK_IMPORTED_MODULE_4__["IconButtonStyles"] } }; //# sourceMappingURL=CoherenceStyles.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/CoherenceTheme.js": /*!*******************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/CoherenceTheme.js ***! \*******************************************************************/ /*! exports provided: CoherenceTheme, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoherenceTheme", function() { return CoherenceTheme; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _uifabric_fluent_theme_lib_fluent_FluentColors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uifabric/fluent-theme/lib/fluent/FluentColors */ "./node_modules/@uifabric/fluent-theme/lib/fluent/FluentColors.js"); /* harmony import */ var _uifabric_fluent_theme_lib_fluent_FluentDepths__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uifabric/fluent-theme/lib/fluent/FluentDepths */ "./node_modules/@uifabric/fluent-theme/lib/fluent/FluentDepths.js"); /* harmony import */ var _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CoherenceColors */ "./node_modules/@cseo/styles/lib/coherence/CoherenceColors.js"); var CoherenceColorPalette; (function (CoherenceColorPalette) { CoherenceColorPalette.black = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray200; CoherenceColorPalette.neutralDark = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray200; CoherenceColorPalette.neutralPrimary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray200; CoherenceColorPalette.neutralPrimaryAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray90; CoherenceColorPalette.neutralSecondary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray130; CoherenceColorPalette.neutralSecondaryAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray80; CoherenceColorPalette.neutralTertiary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray70; CoherenceColorPalette.neutralTertiaryAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray60; CoherenceColorPalette.neutralQuaternary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray50; CoherenceColorPalette.neutralQuaternaryAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray40; CoherenceColorPalette.neutralLight = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray30; CoherenceColorPalette.neutralLighter = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray20; CoherenceColorPalette.neutralLighterAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].gray10; CoherenceColorPalette.white = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["NeutralColors"].white; CoherenceColorPalette.themeDarker = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue100; CoherenceColorPalette.themeDark = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue80; CoherenceColorPalette.themeDarkAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue90; CoherenceColorPalette.themePrimary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue70; CoherenceColorPalette.themeSecondary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue60; CoherenceColorPalette.themeTertiary = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue50; CoherenceColorPalette.themeLight = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue30; CoherenceColorPalette.themeLighter = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue20; CoherenceColorPalette.themeLighterAlt = _CoherenceColors__WEBPACK_IMPORTED_MODULE_3__["DefaultThemeColors"].blue10; CoherenceColorPalette.red = _uifabric_fluent_theme_lib_fluent_FluentColors__WEBPACK_IMPORTED_MODULE_1__["SharedColors"].red10; CoherenceColorPalette.redDark = _uifabric_fluent_theme_lib_fluent_FluentColors__WEBPACK_IMPORTED_MODULE_1__["SharedColors"].red20; })(CoherenceColorPalette || (CoherenceColorPalette = {})); var p = CoherenceColorPalette; var extendedSemanticColors = { headerText: p.neutralPrimary, navBackground: p.neutralQuaternaryAlt, navItemBackgroundHovered: p.neutralQuaternary, navItemBackgroundPressed: p.neutralTertiaryAlt, bodyStandoutBackground: p.neutralLighter, bodyTextChecked: p.neutralLighter, disabledBodyText: p.neutralTertiaryAlt, variantBorder: p.neutralSecondary, variantBorderHovered: p.neutralSecondary, defaultStateBackground: p.white, link: p.themeDark, linkHovered: p.themeDarker, buttonBackgroundChecked: p.neutralLight, buttonBackgroundCheckedHovered: p.neutralQuaternary, buttonBorder: p.neutralSecondary, buttonTextHovered: p.neutralPrimary, buttonTextChecked: p.neutralPrimary, buttonTextCheckedHovered: p.neutralPrimary, buttonTextPressed: p.neutralPrimary, buttonTextDisabled: p.neutralTertiaryAlt, primaryButtonTextDisabled: p.neutralTertiaryAlt, accentButtonBackground: p.themePrimary, inputBorder: p.neutralSecondary, inputFocusBorderAlt: p.themeDarkAlt, inputTextHovered: p.neutralPrimary, disabledText: p.neutralTertiaryAlt, disabledSubtext: p.neutralTertiaryAlt, listItemBackgroundCheckedHovered: p.neutralQuaternary, menuDivider: p.neutralQuaternaryAlt, menuIcon: p.neutralPrimary, menuHeader: p.neutralPrimary, menuItemTextHovered: p.neutralPrimary }; var CoherenceTheme = Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["createTheme"])({ palette: { black: p.black, neutralDark: p.neutralDark, neutralPrimary: p.neutralPrimary, neutralPrimaryAlt: p.neutralPrimaryAlt, neutralSecondary: p.neutralSecondary, neutralSecondaryAlt: p.neutralSecondaryAlt, neutralTertiary: p.neutralTertiary, neutralTertiaryAlt: p.neutralTertiaryAlt, neutralQuaternary: p.neutralQuaternary, neutralQuaternaryAlt: p.neutralQuaternaryAlt, neutralLight: p.neutralLight, neutralLighter: p.neutralLighter, neutralLighterAlt: p.neutralLighterAlt, themeDarker: p.themeDarker, themeDark: p.themeDark, themeDarkAlt: p.themeDarkAlt, themePrimary: p.themePrimary, themeSecondary: p.themeSecondary, themeTertiary: p.themeTertiary, themeLight: p.themeLight, themeLighter: p.themeLighter, themeLighterAlt: p.themeLighterAlt, white: p.white, red: p.red, redDark: p.redDark }, semanticColors: extendedSemanticColors, effects: { roundedCorner2: '2px', elevation4: _uifabric_fluent_theme_lib_fluent_FluentDepths__WEBPACK_IMPORTED_MODULE_2__["Depths"].depth4, elevation8: _uifabric_fluent_theme_lib_fluent_FluentDepths__WEBPACK_IMPORTED_MODULE_2__["Depths"].depth8, elevation16: _uifabric_fluent_theme_lib_fluent_FluentDepths__WEBPACK_IMPORTED_MODULE_2__["Depths"].depth16, elevation64: _uifabric_fluent_theme_lib_fluent_FluentDepths__WEBPACK_IMPORTED_MODULE_2__["Depths"].depth64 } }); /* harmony default export */ __webpack_exports__["default"] = (CoherenceTheme); //# sourceMappingURL=CoherenceTheme.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/CoherenceTypography.js": /*!************************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/CoherenceTypography.js ***! \************************************************************************/ /*! exports provided: FontSizes, DefaultTypography, ExtendedTypography */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontSizes", function() { return FontSizes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultTypography", function() { return DefaultTypography; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedTypography", function() { return ExtendedTypography; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); /* harmony import */ var _uifabric_fluent_theme_lib_fluent_FluentType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uifabric/fluent-theme/lib/fluent/FluentType */ "./node_modules/@uifabric/fluent-theme/lib/fluent/FluentType.js"); var FontSizes; (function (FontSizes) { FontSizes.size74 = '74px'; FontSizes.size58 = '58px'; FontSizes.size42 = _uifabric_fluent_theme_lib_fluent_FluentType__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size42; FontSizes.size34 = '34px'; FontSizes.size26 = '26px'; FontSizes.size22 = '22px'; FontSizes.size18 = _uifabric_fluent_theme_lib_fluent_FluentType__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size18; FontSizes.size16 = _uifabric_fluent_theme_lib_fluent_FluentType__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size16; FontSizes.size14 = _uifabric_fluent_theme_lib_fluent_FluentType__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size14; FontSizes.size12 = _uifabric_fluent_theme_lib_fluent_FluentType__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].size12; })(FontSizes || (FontSizes = {})); var DefaultTypography; (function (DefaultTypography) { DefaultTypography.hero = { fontSize: FontSizes.size42, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; DefaultTypography.header = { fontSize: FontSizes.size26, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; DefaultTypography.subheader = { fontSize: FontSizes.size18, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; DefaultTypography.base = { fontSize: FontSizes.size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; DefaultTypography.body = { fontSize: FontSizes.size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; DefaultTypography.caption = { fontSize: FontSizes.size12, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; })(DefaultTypography || (DefaultTypography = {})); var ExtendedTypography; (function (ExtendedTypography) { ExtendedTypography.size74Regular = { fontSize: FontSizes.size74, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size74Semibold = { fontSize: FontSizes.size74, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size74Bold = { fontSize: FontSizes.size74, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size58Regular = { fontSize: FontSizes.size58, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size58Semibold = { fontSize: FontSizes.size58, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size58Bold = { fontSize: FontSizes.size58, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size42Regular = { fontSize: FontSizes.size42, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size42Semibold = { fontSize: FontSizes.size42, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size42Bold = { fontSize: FontSizes.size42, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size34Regular = { fontSize: FontSizes.size34, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size34Semibold = { fontSize: FontSizes.size34, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size34Bold = { fontSize: FontSizes.size34, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size26Regular = { fontSize: FontSizes.size26, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size26Semibold = { fontSize: FontSizes.size26, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size26Bold = { fontSize: FontSizes.size26, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size22Regular = { fontSize: FontSizes.size22, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size22Semibold = { fontSize: FontSizes.size22, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size22Bold = { fontSize: FontSizes.size22, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size18Regular = { fontSize: FontSizes.size18, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size18Semibold = { fontSize: FontSizes.size18, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size18Bold = { fontSize: FontSizes.size18, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size16Regular = { fontSize: FontSizes.size16, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size16Semibold = { fontSize: FontSizes.size16, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size16Bold = { fontSize: FontSizes.size16, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size14Regular = { fontSize: FontSizes.size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size14Semibold = { fontSize: FontSizes.size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size14Bold = { fontSize: FontSizes.size14, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; ExtendedTypography.size12Regular = { fontSize: FontSizes.size12, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular }; ExtendedTypography.size12Semibold = { fontSize: FontSizes.size12, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold }; ExtendedTypography.size12Bold = { fontSize: FontSizes.size12, fontWeight: _fluentui_react__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].bold }; })(ExtendedTypography || (ExtendedTypography = {})); //# sourceMappingURL=CoherenceTypography.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/index.js": /*!**********************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/index.js ***! \**********************************************************/ /*! exports provided: NeutralColors, DefaultThemeColors, TextColors, HyperlinkColors, SurfaceColors, MessagingColors, CoherenceTheme, FontSizes, DefaultTypography, ExtendedTypography, CoherenceStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherenceColors */ "./node_modules/@cseo/styles/lib/coherence/CoherenceColors.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NeutralColors", function() { return _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__["NeutralColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultThemeColors", function() { return _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__["DefaultThemeColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextColors", function() { return _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__["TextColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HyperlinkColors", function() { return _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__["HyperlinkColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurfaceColors", function() { return _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__["SurfaceColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessagingColors", function() { return _CoherenceColors__WEBPACK_IMPORTED_MODULE_0__["MessagingColors"]; }); /* harmony import */ var _CoherenceTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoherenceTheme */ "./node_modules/@cseo/styles/lib/coherence/CoherenceTheme.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceTheme", function() { return _CoherenceTheme__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"]; }); /* harmony import */ var _CoherenceTypography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CoherenceTypography */ "./node_modules/@cseo/styles/lib/coherence/CoherenceTypography.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FontSizes", function() { return _CoherenceTypography__WEBPACK_IMPORTED_MODULE_2__["FontSizes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultTypography", function() { return _CoherenceTypography__WEBPACK_IMPORTED_MODULE_2__["DefaultTypography"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedTypography", function() { return _CoherenceTypography__WEBPACK_IMPORTED_MODULE_2__["ExtendedTypography"]; }); /* harmony import */ var _CoherenceStyles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CoherenceStyles */ "./node_modules/@cseo/styles/lib/coherence/CoherenceStyles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceStyles", function() { return _CoherenceStyles__WEBPACK_IMPORTED_MODULE_3__["CoherenceStyles"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/styles/Breadcrumb.styles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/styles/Breadcrumb.styles.js ***! \*****************************************************************************/ /*! exports provided: BreadcrumbStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbStyles", function() { return BreadcrumbStyles; }); var BreadcrumbStyles = function (props) { var theme = props.theme; if (!theme) { throw new Error('theme is undefined or null in base Breadcrumb getStyles function.'); } var lastChildItem = { color: theme.palette.neutralPrimary, backgroundColor: 'transparent' }; return { listItem: { selectors: { '&:last-child .ms-Breadcrumb-itemLink': lastChildItem, '&:last-child .ms-Breadcrumb-item': lastChildItem } } }; }; //# sourceMappingURL=Breadcrumb.styles.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/styles/Dropdown.styles.js": /*!***************************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/styles/Dropdown.styles.js ***! \***************************************************************************/ /*! exports provided: DropdownStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownStyles", function() { return DropdownStyles; }); var DropdownStyles = function (props) { var theme = props.theme; if (!theme) { throw new Error('theme is undefined or null in base Dropdown getStyles function.'); } return { title: [ { borderColor: theme.palette.neutralSecondary } ] }; }; //# sourceMappingURL=Dropdown.styles.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/styles/IconButton.styles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/styles/IconButton.styles.js ***! \*****************************************************************************/ /*! exports provided: IconButtonStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconButtonStyles", function() { return IconButtonStyles; }); var IconButtonStyles = function (props) { var theme = props.theme; if (!theme) { throw new Error('Theme is undefined or null.'); } var palette = theme.palette; return { root: { backgroundColor: 'transparent', color: palette.themePrimary }, rootHovered: { backgroundColor: palette.neutralLighter, color: palette.themeDarkAlt }, rootPressed: { backgroundColor: palette.neutralLight, color: palette.themeDark }, rootChecked: { backgroundColor: palette.neutralLight, color: palette.themeDark }, rootDisabled: { selectors: { '@media(forced-colors: active)': { backgroundColor: 'ButtonFace' } }, backgroundColor: 'transparent', color: palette.neutralTertiary } }; }; //# sourceMappingURL=IconButton.styles.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/styles/SearchBox.styles.js": /*!****************************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/styles/SearchBox.styles.js ***! \****************************************************************************/ /*! exports provided: SearchBoxStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SearchBoxStyles", function() { return SearchBoxStyles; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var SearchBoxStyles = function (props) { var theme = props.theme, hasFocus = props.hasFocus, underlined = props.underlined; if (!theme) { throw new Error('theme is undefined or null in base SearchBox getStyles function.'); } return { root: [ hasFocus && [ 'is-active', { position: 'relative' }, Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["getInputFocusStyle"])(theme.palette.themePrimary, underlined ? 0 : theme.effects.roundedCorner2, underlined ? 'borderBottom' : 'border') ] ] }; }; //# sourceMappingURL=SearchBox.styles.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/coherence/styles/TextField.styles.js": /*!****************************************************************************!*\ !*** ./node_modules/@cseo/styles/lib/coherence/styles/TextField.styles.js ***! \****************************************************************************/ /*! exports provided: TextFieldStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextFieldStyles", function() { return TextFieldStyles; }); /* harmony import */ var _fluentui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react */ "./node_modules/@fluentui/react/lib/index.js"); var TextFieldStyles = function (props) { var theme = props.theme, focused = props.focused, underlined = props.underlined, hasErrorMessage = props.hasErrorMessage; if (!theme) { throw new Error('theme is undefined or null in base TextField getStyles function.'); } return { fieldGroup: [ focused && !underlined && Object(_fluentui_react__WEBPACK_IMPORTED_MODULE_0__["getInputFocusStyle"])(!hasErrorMessage ? theme.palette.themePrimary : theme.semanticColors.errorText, theme.effects.roundedCorner2) ] }; }; //# sourceMappingURL=TextField.styles.js.map /***/ }), /***/ "./node_modules/@cseo/styles/lib/index.js": /*!************************************************!*\ !*** ./node_modules/@cseo/styles/lib/index.js ***! \************************************************/ /*! exports provided: CoherenceCustomizations, NeutralColors, DefaultThemeColors, TextColors, HyperlinkColors, SurfaceColors, MessagingColors, CoherenceTheme, FontSizes, DefaultTypography, ExtendedTypography, CoherenceStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CoherenceCustomizations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CoherenceCustomizations */ "./node_modules/@cseo/styles/lib/CoherenceCustomizations.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceCustomizations", function() { return _CoherenceCustomizations__WEBPACK_IMPORTED_MODULE_0__["CoherenceCustomizations"]; }); /* harmony import */ var _coherence_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./coherence/index */ "./node_modules/@cseo/styles/lib/coherence/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NeutralColors", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["NeutralColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultThemeColors", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["DefaultThemeColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextColors", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["TextColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HyperlinkColors", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["HyperlinkColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurfaceColors", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["SurfaceColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessagingColors", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["MessagingColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceTheme", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["CoherenceTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FontSizes", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["FontSizes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultTypography", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["DefaultTypography"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedTypography", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["ExtendedTypography"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoherenceStyles", function() { return _coherence_index__WEBPACK_IMPORTED_MODULE_1__["CoherenceStyles"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js": /*!*******************************************************************************!*\ !*** ./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 var isPropValid = /* #__PURE__ */Object(_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__["default"])(function (prop) { return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 /* o */ && prop.charCodeAt(1) === 110 /* n */ && prop.charCodeAt(2) < 91; } /* Z+1 */ ); /* harmony default export */ __webpack_exports__["default"] = (isPropValid); /***/ }), /***/ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js": /*!*******************************************************************!*\ !*** ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function memoize(fn) { var cache = Object.create(null); return function (arg) { if (cache[arg] === undefined) cache[arg] = fn(arg); return cache[arg]; }; } /* harmony default export */ __webpack_exports__["default"] = (memoize); /***/ }), /***/ "./node_modules/@emotion/stylis/dist/stylis.browser.esm.js": /*!*****************************************************************!*\ !*** ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function stylis_min (W) { function M(d, c, e, h, a) { for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) { g = e.charCodeAt(l); l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++); if (0 === b + n + v + m) { if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) { switch (g) { case 32: case 9: case 59: case 13: case 10: break; default: f += e.charAt(l); } g = 59; } switch (g) { case 123: f = f.trim(); q = f.charCodeAt(0); k = 1; for (t = ++l; l < B;) { switch (g = e.charCodeAt(l)) { case 123: k++; break; case 125: k--; break; case 47: switch (g = e.charCodeAt(l + 1)) { case 42: case 47: a: { for (u = l + 1; u < J; ++u) { switch (e.charCodeAt(u)) { case 47: if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) { l = u + 1; break a; } break; case 10: if (47 === g) { l = u + 1; break a; } } } l = u; } } break; case 91: g++; case 40: g++; case 34: case 39: for (; l++ < J && e.charCodeAt(l) !== g;) { } } if (0 === k) break; l++; } k = e.substring(t, l); 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0)); switch (q) { case 64: 0 < r && (f = f.replace(N, '')); g = f.charCodeAt(1); switch (g) { case 100: case 109: case 115: case 45: r = c; break; default: r = O; } k = M(c, r, k, g, a + 1); t = k.length; 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = '')); if (0 < t) switch (g) { case 115: f = f.replace(da, ea); case 100: case 109: case 45: k = f + '{' + k + '}'; break; case 107: f = f.replace(fa, '$1 $2'); k = f + '{' + k + '}'; k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k; break; default: k = f + k, 112 === h && (k = (p += k, '')); } else k = ''; break; default: k = M(c, X(c, f, I), k, h, a + 1); } F += k; k = I = r = u = q = 0; f = ''; g = e.charCodeAt(++l); break; case 125: case 59: f = (0 < r ? f.replace(N, '') : f).trim(); if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) { case 0: break; case 64: if (105 === g || 99 === g) { G += f + e.charAt(l); break; } default: 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2))); } I = r = u = q = 0; f = ''; g = e.charCodeAt(++l); } } switch (g) { case 13: case 10: 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00'); 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h); z = 1; D++; break; case 59: case 125: if (0 === b + n + v + m) { z++; break; } default: z++; y = e.charAt(l); switch (g) { case 9: case 32: if (0 === n + m + b) switch (x) { case 44: case 58: case 9: case 32: y = ''; break; default: 32 !== g && (y = ' '); } break; case 0: y = '\\0'; break; case 12: y = '\\f'; break; case 11: y = '\\v'; break; case 38: 0 === n + b + m && (r = I = 1, y = '\f' + y); break; case 108: if (0 === n + b + m + E && 0 < u) switch (l - u) { case 2: 112 === x && 58 === e.charCodeAt(l - 3) && (E = x); case 8: 111 === K && (E = K); } break; case 58: 0 === n + b + m && (u = l); break; case 44: 0 === b + v + n + m && (r = 1, y += '\r'); break; case 34: case 39: 0 === b && (n = n === g ? 0 : 0 === n ? g : n); break; case 91: 0 === n + b + v && m++; break; case 93: 0 === n + b + v && m--; break; case 41: 0 === n + b + m && v--; break; case 40: if (0 === n + b + m) { if (0 === q) switch (2 * x + 3 * K) { case 533: break; default: q = 1; } v++; } break; case 64: 0 === b + v + n + m + u + k && (k = 1); break; case 42: case 47: if (!(0 < n + m + v)) switch (b) { case 0: switch (2 * g + 3 * e.charCodeAt(l + 1)) { case 235: b = 47; break; case 220: t = l, b = 42; } break; case 42: 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0); } } 0 === b && (f += y); } K = x; x = g; l++; } t = p.length; if (0 < t) { r = c; if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F; p = r.join(',') + '{' + p + '}'; if (0 !== w * E) { 2 !== w || L(p, 2) || (E = 0); switch (E) { case 111: p = p.replace(ha, ':-moz-$1') + p; break; case 112: p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p; } E = 0; } } return G + p + F; } function X(d, c, e) { var h = c.trim().split(ia); c = h; var a = h.length, m = d.length; switch (m) { case 0: case 1: var b = 0; for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) { c[b] = Z(d, c[b], e).trim(); } break; default: var v = b = 0; for (c = []; b < a; ++b) { for (var n = 0; n < m; ++n) { c[v++] = Z(d[n] + ' ', h[b], e).trim(); } } } return c; } function Z(d, c, e) { var h = c.charCodeAt(0); 33 > h && (h = (c = c.trim()).charCodeAt(0)); switch (h) { case 38: return c.replace(F, '$1' + d.trim()); case 58: return d.trim() + c.replace(F, '$1' + d.trim()); default: if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim()); } return d + c; } function P(d, c, e, h) { var a = d + ';', m = 2 * c + 3 * e + 4 * h; if (944 === m) { d = a.indexOf(':', 9) + 1; var b = a.substring(d, a.length - 1).trim(); b = a.substring(0, d).trim() + b + ';'; return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b; } if (0 === w || 2 === w && !L(a, 1)) return a; switch (m) { case 1015: return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; case 951: return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; case 963: return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; case 1009: if (100 !== a.charCodeAt(4)) break; case 969: case 942: return '-webkit-' + a + a; case 978: return '-webkit-' + a + '-moz-' + a + a; case 1019: case 983: return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; case 883: if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a; break; case 932: if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) { case 103: return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a; case 115: return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a; case 98: return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a; } return '-webkit-' + a + '-ms-' + a + a; case 964: return '-webkit-' + a + '-ms-flex-' + a + a; case 1023: if (99 !== a.charCodeAt(8)) break; b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify'); return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a; case 1005: return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a; case 1e3: b = a.substring(13).trim(); c = b.indexOf('-') + 1; switch (b.charCodeAt(0) + b.charCodeAt(c)) { case 226: b = a.replace(G, 'tb'); break; case 232: b = a.replace(G, 'tb-rl'); break; case 220: b = a.replace(G, 'lr'); break; default: return a; } return '-webkit-' + a + '-ms-' + b + a; case 1017: if (-1 === a.indexOf('sticky', 9)) break; case 975: c = (a = d).length - 10; b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim(); switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) { case 203: if (111 > b.charCodeAt(8)) break; case 115: a = a.replace(b, '-webkit-' + b) + ';' + a; break; case 207: case 102: a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a; } return a + ';'; case 938: if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) { case 105: return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a; case 115: return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a; default: return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a; } break; case 973: case 989: if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; case 931: case 953: if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a; break; case 962: if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a; } return a; } function L(d, c) { var e = d.indexOf(1 === c ? ':' : '{'), h = d.substring(0, 3 !== c ? e : 10); e = d.substring(e + 1, d.length - 1); return R(2 !== c ? h : h.replace(na, '$1'), e, c); } function ea(d, c) { var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2)); return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')'; } function H(d, c, e, h, a, m, b, v, n, q) { for (var g = 0, x = c, w; g < A; ++g) { switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) { case void 0: case !1: case !0: case null: break; default: x = w; } } if (x !== c) return x; } function T(d) { switch (d) { case void 0: case null: A = S.length = 0; break; default: if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) { T(d[c]); } else Y = !!d | 0; } return T; } function U(d) { d = d.prefix; void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0); return U; } function B(d, c) { var e = d; 33 > e.charCodeAt(0) && (e = e.trim()); V = e; e = [V]; if (0 < A) { var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); void 0 !== h && 'string' === typeof h && (c = h); } var a = M(O, e, c, 0, 0); 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h)); V = ''; E = 0; z = D = 1; return a; } var ca = /^\0+/g, N = /[\0\r\f]/g, aa = /: */g, ka = /zoo|gra/, ma = /([,: ])(transform)/g, ia = /,\r+?/g, F = /([\t\r\n ])*\f?&/g, fa = /@(k\w+)\s*(\S*)\s*/, Q = /::(place)/g, ha = /:(read-only)/g, G = /[svh]\w+-[tblr]{2}/, da = /\(\s*(.*)\s*\)/g, oa = /([\s\S]*?);/g, ba = /-self|flex-/g, na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, la = /stretch|:\s*\w+\-(?:conte|avail)/, ja = /([^-])(image-set\()/, z = 1, D = 1, E = 0, w = 1, O = [], S = [], A = 0, R = null, Y = 0, V = ''; B.use = T; B.set = U; void 0 !== W && U(W); return B; } /* harmony default export */ __webpack_exports__["default"] = (stylis_min); /***/ }), /***/ "./node_modules/@emotion/unitless/dist/unitless.browser.esm.js": /*!*********************************************************************!*\ !*** ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var unitlessKeys = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }; /* harmony default export */ __webpack_exports__["default"] = (unitlessKeys); /***/ }), /***/ "./node_modules/@employee-experience/common/lib/ActionButton.js": /*!**********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/ActionButton.js ***! \**********************************************************************/ /*! exports provided: ActionButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Button_ActionButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Button/ActionButton */ "./node_modules/@employee-experience/common/lib/Components/Button/ActionButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return _Components_Button_ActionButton__WEBPACK_IMPORTED_MODULE_0__["ActionButton"]; }); //# sourceMappingURL=ActionButton.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/BreakPoints.js": /*!*********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/BreakPoints.js ***! \*********************************************************************/ /*! exports provided: BreakPoints */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Resources_BreakPoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Resources/BreakPoints */ "./node_modules/@employee-experience/common/lib/Resources/BreakPoints.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreakPoints", function() { return _Resources_BreakPoints__WEBPACK_IMPORTED_MODULE_0__["BreakPoints"]; }); //# sourceMappingURL=BreakPoints.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Card.js": /*!**************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Card.js ***! \**************************************************************/ /*! exports provided: Card, cardHeadingStyles, CardHeading, CardContent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Card_Card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Card/Card */ "./node_modules/@employee-experience/common/lib/Components/Card/Card.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _Components_Card_Card__WEBPACK_IMPORTED_MODULE_0__["Card"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cardHeadingStyles", function() { return _Components_Card_Card__WEBPACK_IMPORTED_MODULE_0__["cardHeadingStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return _Components_Card_Card__WEBPACK_IMPORTED_MODULE_0__["CardHeading"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardContent", function() { return _Components_Card_Card__WEBPACK_IMPORTED_MODULE_0__["CardContent"]; }); //# sourceMappingURL=Card.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Checkbox.js": /*!******************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Checkbox.js ***! \******************************************************************/ /*! exports provided: Checkbox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Form_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Form/Checkbox/Checkbox */ "./node_modules/@employee-experience/common/lib/Components/Form/Checkbox/Checkbox.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _Components_Form_Checkbox_Checkbox__WEBPACK_IMPORTED_MODULE_0__["Checkbox"]; }); //# sourceMappingURL=Checkbox.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Colors.js": /*!****************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Colors.js ***! \****************************************************************/ /*! exports provided: Colors */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Resources_Colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Resources/Colors */ "./node_modules/@employee-experience/common/lib/Resources/Colors.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Colors", function() { return _Resources_Colors__WEBPACK_IMPORTED_MODULE_0__["Colors"]; }); //# sourceMappingURL=Colors.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/ComponentContext.js": /*!**************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/ComponentContext.js ***! \**************************************************************************/ /*! exports provided: ComponentContext, withContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentContext", function() { return _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_0__["ComponentContext"]; }); /* harmony import */ var _HOCs_withContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HOCs/withContext */ "./node_modules/@employee-experience/common/lib/HOCs/withContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return _HOCs_withContext__WEBPACK_IMPORTED_MODULE_1__["withContext"]; }); //# sourceMappingURL=ComponentContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/ComponentProvider.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/ComponentProvider.js ***! \***************************************************************************/ /*! exports provided: ComponentProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_ComponentProvider_ComponentProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/ComponentProvider/ComponentProvider */ "./node_modules/@employee-experience/common/lib/Components/ComponentProvider/ComponentProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentProvider", function() { return _Components_ComponentProvider_ComponentProvider__WEBPACK_IMPORTED_MODULE_0__["ComponentProvider"]; }); //# sourceMappingURL=ComponentProvider.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Button/ActionButton.js": /*!****************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Button/ActionButton.js ***! \****************************************************************************************/ /*! exports provided: ActionButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return ActionButton; }); /* harmony import */ var _fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react/lib/Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _withButtonClickLogging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./withButtonClickLogging */ "./node_modules/@employee-experience/common/lib/Components/Button/withButtonClickLogging.js"); const ActionButton = Object(_withButtonClickLogging__WEBPACK_IMPORTED_MODULE_1__["withButtonClickLogging"])(_fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_0__["ActionButton"]); //# sourceMappingURL=ActionButton.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Button/DefaultButton.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Button/DefaultButton.js ***! \*****************************************************************************************/ /*! exports provided: DefaultButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultButton", function() { return DefaultButton; }); /* harmony import */ var _fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react/lib/Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _withButtonClickLogging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./withButtonClickLogging */ "./node_modules/@employee-experience/common/lib/Components/Button/withButtonClickLogging.js"); const DefaultButton = Object(_withButtonClickLogging__WEBPACK_IMPORTED_MODULE_1__["withButtonClickLogging"])(_fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_0__["DefaultButton"]); //# sourceMappingURL=DefaultButton.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Button/PrimaryButton.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Button/PrimaryButton.js ***! \*****************************************************************************************/ /*! exports provided: PrimaryButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrimaryButton", function() { return PrimaryButton; }); /* harmony import */ var _fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react/lib/Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _withButtonClickLogging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./withButtonClickLogging */ "./node_modules/@employee-experience/common/lib/Components/Button/withButtonClickLogging.js"); const PrimaryButton = Object(_withButtonClickLogging__WEBPACK_IMPORTED_MODULE_1__["withButtonClickLogging"])(_fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_0__["PrimaryButton"]); //# sourceMappingURL=PrimaryButton.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Button/withButtonClickLogging.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Button/withButtonClickLogging.js ***! \**************************************************************************************************/ /*! exports provided: withButtonClickLogging */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withButtonClickLogging", function() { return withButtonClickLogging; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // eslint-disable-next-line @typescript-eslint/ban-types function withButtonClickLogging(WrappedComponent) { const displayName = WrappedComponent.displayName || WrappedComponent.name; function ComponentWithClickLogging(props) { const { aiEventName } = props, restProps = __rest(props, ["aiEventName"]); const { telemetryClient, telemetryContext } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]); const handleClicked = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"]((e) => { var _a; const buttonEvent = { type: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["EventType"].User, eventName: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageEventName"].ButtonClicked, subFeature: props.usageEvent.subFeature, feature: props.usageEvent.feature, subFeatureLevel2: props.usageEvent.subFeatureLevel2, featureLocation: props.usageEvent.featureLocation, }; telemetryClient.trackEvent(buttonEvent, Object.assign(Object.assign(Object.assign({}, telemetryContext), { aiEventName, buttonTitle: restProps.title, buttonText: restProps.text }), (((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}))); if (restProps.onClick) restProps.onClick(e); }, // eslint-disable-next-line react-hooks/exhaustive-deps [telemetryClient, telemetryContext, aiEventName, restProps]); const rest = restProps; return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrappedComponent, Object.assign({}, rest, { onClick: handleClicked })); } ComponentWithClickLogging.displayName = displayName; return ComponentWithClickLogging; } //# sourceMappingURL=withButtonClickLogging.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Card/Card.js": /*!******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Card/Card.js ***! \******************************************************************************/ /*! exports provided: Card, cardHeadingStyles, CardHeading, CardContent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return Card; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardHeadingStyles", function() { return cardHeadingStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return CardHeading; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardContent", function() { return CardContent; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); const Card = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` width: 100%; height: 100%; background-color: white; box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.108), 0px 1.6px 3.6px rgba(0, 0, 0, 0.132); border-radius: 2px; transition: box-shadow 0.2s ease-in-out; &:hover { box-shadow: 0px 1.2px 3.6px rgba(0, 0, 0, 0.108), 0px 6.4px 14.4px rgba(0, 0, 0, 0.132); } `; const cardHeadingStyles = styled_components__WEBPACK_IMPORTED_MODULE_0__["css"] ` font-weight: 600; font-size: 14px; line-height: 40px; color: #171717; padding-left: 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); margin: 0; `; const CardHeading = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].h3 ` ${cardHeadingStyles} `; const CardContent = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` height: calc(100% - 41px); position: relative; padding: 16px; `; //# sourceMappingURL=Card.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/ComponentProvider/ComponentProvider.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/ComponentProvider/ComponentProvider.js ***! \********************************************************************************************************/ /*! exports provided: ComponentProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentProvider", function() { return ComponentProvider; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Context_ReduxContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Context/ReduxContext */ "./node_modules/@employee-experience/common/lib/Context/ReduxContext.js"); /* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; class ComponentProvider extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] { constructor() { super(...arguments); this.state = { Component: null, hasError: false, }; } componentDidMount() { return __awaiter(this, void 0, void 0, function* () { if (this.props.config.common) { this.context.componentLoader .loadCommon(this.props.config.common) .then(() => { setTimeout(() => { this.loadComponent().catch(); }, Math.random() * 1000); }); } else { this.loadComponent().catch(); } }); } componentDidUpdate(prevProps) { return __awaiter(this, void 0, void 0, function* () { const { config } = prevProps; if (this.shouldReload(config)) yield this.loadComponent(); }); } componentDidCatch(error, errorInfo) { this.context.telemetryClient.trackException({ exception: error, properties: Object.assign({}, errorInfo), }); console.error(error, errorInfo); this.setState({ hasError: true }); } render() { const _a = this.props, { renderError, renderPlaceholder, config } = _a, otherProps = __rest(_a, ["renderError", "renderPlaceholder", "config"]); const { Component, hasError } = this.state; const newTelemetryContext = this.getChildTelemetryContext(config); const newTelemetryClient = this.context.telemetryClient.getChildInstance(); const newHttpClient = this.context.httpClient.getChildInstance(newTelemetryClient, this.context.authClient); newTelemetryClient.setContext(newTelemetryContext); const newContext = Object.assign(Object.assign({}, this.context), { id: config.id || config.name, telemetryContext: newTelemetryContext, telemetryClient: newTelemetryClient, httpClient: newHttpClient }); if (hasError) return renderError ? renderError() : null; if (!Component) return renderPlaceholder ? renderPlaceholder() : null; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Context_ReduxContext__WEBPACK_IMPORTED_MODULE_2__["ReduxContext"].Consumer, null, (reduxContext) => (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Component, Object.assign({ context: newContext, reduxContext: reduxContext, config: config }, otherProps))))); } getChildTelemetryContext(config) { var _a, _b, _c; if (this.context.telemetryContext) { return (_a = this.context.telemetryContext) === null || _a === void 0 ? void 0 : _a.getChildContext((_b = config.usageFeatureName) !== null && _b !== void 0 ? _b : config.name, config.script); } else { // Fallback to the default UsageHelper and fork a childContext instance const newUsageHelper = _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["UsageHelper"].Fork((_c = config.usageFeatureName) !== null && _c !== void 0 ? _c : config.name); return { sourceComponent: config.name, sourceScript: config.script, setUsageEvent: newUsageHelper.MassageEvent, setUsageUser: (usageUser) => { newUsageHelper.SetUser(usageUser); return usageUser; }, usageUser: newUsageHelper.GetUser, setUsageConfig: newUsageHelper.SetUsageConfig, getChildContext: newUsageHelper.ForkTelemetryContext, }; } } shouldReload(prevConfig) { const { config } = this.props; return (prevConfig.name !== config.name || prevConfig.script !== config.script); } loadComponent() { return __awaiter(this, void 0, void 0, function* () { const { config, resource, scopes } = this.props; const { componentLoader } = this.context; try { let Component = null; if (resource || scopes) { Component = yield componentLoader.loadSecured(config, (resource || scopes)); } else { Component = yield componentLoader.load(config); } this.setState({ Component, hasError: false }); } catch (e) { console.error(e); this.context.telemetryClient.trackException({ exception: e, }); this.setState({ hasError: true }); } }); } } ComponentProvider.contextType = _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]; //# sourceMappingURL=ComponentProvider.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js ***! \**********************************************************************************************/ /*! exports provided: defaultColumnWidth, cloneComponentConfigs, getDashboardLayoutHeight, getDashboardLayoutWidth, isOutOfRange, getCollidingElementIds, findAvailableLocation, fillLayoutWithComponent, getMaxColumnCount, componentLocationComparator, generateFluidDashboardLayout, generateFixedDashboardLayout, generateDashboardLayout, debounce, getDashboardComponentTop, getDashboardComponentHeight, getDashboardComponentLeft, getDashboardComponentWidth */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultColumnWidth", function() { return defaultColumnWidth; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneComponentConfigs", function() { return cloneComponentConfigs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDashboardLayoutHeight", function() { return getDashboardLayoutHeight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDashboardLayoutWidth", function() { return getDashboardLayoutWidth; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOutOfRange", function() { return isOutOfRange; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCollidingElementIds", function() { return getCollidingElementIds; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findAvailableLocation", function() { return findAvailableLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fillLayoutWithComponent", function() { return fillLayoutWithComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMaxColumnCount", function() { return getMaxColumnCount; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentLocationComparator", function() { return componentLocationComparator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateFluidDashboardLayout", function() { return generateFluidDashboardLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateFixedDashboardLayout", function() { return generateFixedDashboardLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateDashboardLayout", function() { return generateDashboardLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDashboardComponentTop", function() { return getDashboardComponentTop; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDashboardComponentHeight", function() { return getDashboardComponentHeight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDashboardComponentLeft", function() { return getDashboardComponentLeft; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDashboardComponentWidth", function() { return getDashboardComponentWidth; }); const defaultColumnWidth = 384; function cloneComponentConfigs(configs) { const cloned = []; configs.forEach((c) => { cloned.push(Object.assign({}, c)); }); return cloned; } function getDashboardLayoutHeight(layoutHeight, rowHeight, gutter) { if (layoutHeight === 0) return 0; return layoutHeight * rowHeight + (layoutHeight - 1) * gutter; } function getDashboardLayoutWidth(columnCount, columnWidth, gutter) { const width = columnWidth || defaultColumnWidth; if (columnCount === 0) return width; const totalColumnWidth = width * columnCount; const totalGutterWidth = (columnCount - 1) * gutter; return totalColumnWidth + totalGutterWidth; } function isOutOfRange(columnCount, top, left, width) { if (top < 0) return true; if (left < 0) return true; if (left + width > columnCount) return true; return false; } function getCollidingElementIds(layout, columnCount, componentConfig) { const ids = {}; while (layout.length < componentConfig.top + componentConfig.height) { layout.push(new Array(columnCount).fill('')); } for (let i = componentConfig.top; i < componentConfig.top + componentConfig.height; i++) { for (let j = componentConfig.left; j < componentConfig.left + componentConfig.width; j++) { if (layout[i][j] !== '' && layout[i][j] !== componentConfig.id) { ids[layout[i][j]] = true; } } } return Object.keys(ids); } function findAvailableLocation(layout, columnCount, componentConfig) { for (let i = 0; i < layout.length; i++) { for (let j = 0; j < columnCount; j++) { if (!isOutOfRange(columnCount, i, j, componentConfig.width) && getCollidingElementIds(layout, columnCount, Object.assign(Object.assign({}, componentConfig), { top: i, left: j })).length === 0) { return { top: i, left: j, }; } } } return { top: layout.length, left: 0, }; } function fillLayoutWithComponent(layout, columnCount, component) { while (layout.length < component.top + component.height) { layout.push(new Array(columnCount).fill('')); } for (let i = component.top; i < component.top + component.height; i++) { for (let j = component.left; j < component.left + component.width; j++) { layout[i][j] = component.id; } } } function getMaxColumnCount(columnWidth, initialColumnCount, gutter, dashboardWidth) { let columnCount = initialColumnCount; for (; columnCount > 0; columnCount--) { const width = getDashboardLayoutWidth(columnCount, columnWidth, gutter); if (width <= dashboardWidth) return columnCount; } return 1; } function componentLocationComparator(a, b) { if (a.top > b.top) { return 1; } else if (a.top < b.top) { return -1; } if (a.left > b.left) { return 1; } else if (a.left < b.left) { return -1; } else { return 0; } } function generateFluidDashboardLayout(dashboard, dashboardWidth) { const { config, components } = dashboard; config.columnCount = getMaxColumnCount(config.columnWidth, config.columnCount, config.gutter, dashboardWidth); components.sort(componentLocationComparator); const layout = []; const nextComponents = []; const maxWidth = config.columnCount; components.forEach((component) => { const nextComponent = Object.assign(Object.assign({}, component), { width: component.width > maxWidth ? maxWidth : component.width }); const newLocation = findAvailableLocation(layout, config.columnCount, nextComponent); nextComponent.top = newLocation.top; nextComponent.left = newLocation.left; fillLayoutWithComponent(layout, config.columnCount, nextComponent); nextComponents.push(nextComponent); return Object.assign({}, component); }); return { layout, components: nextComponents, config, width: getDashboardLayoutWidth(config.columnCount, config.columnWidth, config.gutter), height: getDashboardLayoutHeight(layout.length, config.rowHeight, config.gutter), }; } function generateFixedDashboardLayout(dashboard, dashboardWidth) { const layout = []; const { config, components } = dashboard; if (components.length === 0) { layout.push(new Array(config.columnCount).fill('')); } components.map((componentConfig) => { if (componentConfig.top === -1 || componentConfig.left === -1) return; while (layout.length < componentConfig.top + componentConfig.height) { layout.push(new Array(config.columnCount).fill('')); } for (let i = componentConfig.top; i < componentConfig.top + componentConfig.height; i++) { for (let j = componentConfig.left; j < componentConfig.left + componentConfig.width; j++) { layout[i][j] = componentConfig.id; } } }); return { layout, components, width: dashboardWidth, config, height: getDashboardLayoutHeight(layout.length, config.rowHeight, config.gutter), }; } function generateDashboardLayout(dashboard, dashboardWidth) { const cloned = JSON.parse(JSON.stringify(dashboard)); const { config } = cloned; const width = getDashboardLayoutWidth(config.columnCount, config.columnWidth, config.gutter); const isLayoutLargerThanDashboard = width > Math.ceil(dashboardWidth); return isLayoutLargerThanDashboard ? generateFluidDashboardLayout(cloned, dashboardWidth) : generateFixedDashboardLayout(cloned, dashboardWidth); } function debounce(func, wait) { // eslint-disable-next-line @typescript-eslint/no-explicit-any let h; return () => { clearTimeout(h); h = setTimeout(() => func(), wait); }; } function getDashboardComponentTop(top, rowHeight, gutter) { if (top === 0) return 0; let result = 0; result += top * rowHeight; result += top * gutter; return result; } function getDashboardComponentHeight(height, rowHeight, gutter) { if (height === 0) return 0; let result = 0; result += height * rowHeight; result += (height - 1) * gutter; return result; } function getDashboardComponentLeft(left, columnCount, gutter) { if (left === 0) return 0; const totalGutterWidth = (columnCount - 1) * gutter; return `calc(((100% - ${totalGutterWidth}px) / ${columnCount}) * ${left} + ${gutter * left}px)`; } function getDashboardComponentWidth(width, columnCount, gutter) { if (width === 0) return 0; const totalGutterWidth = (columnCount - 1) * gutter; const includedGutterWidth = (width - 1) * gutter; return `calc(((100% - ${totalGutterWidth}px) / ${columnCount}) * ${width} + ${includedGutterWidth}px)`; } //# sourceMappingURL=Dashboard.utils.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.js ***! \**************************************************************************************************/ /*! exports provided: Dashboard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dashboard", function() { return Dashboard; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Dashboard_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dashboard.styled */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.styled.js"); /* harmony import */ var _ComponentProvider_ComponentProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../ComponentProvider/ComponentProvider */ "./node_modules/@employee-experience/common/lib/Components/ComponentProvider/ComponentProvider.js"); /* harmony import */ var _DashboardError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DashboardError */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.js"); /* harmony import */ var _Dashboard_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Dashboard.utils */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js"); function Dashboard(props) { const { config, forceFluid, renderPlaceholder, renderError } = props; const [dashboardWidth, setDashboardWidth] = react__WEBPACK_IMPORTED_MODULE_0__["useState"](0); const dashboardRoot = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null); const updateDashboardWidth = () => { if (!dashboardRoot.current) return; const width = dashboardRoot.current.getBoundingClientRect().width; setDashboardWidth(width); }; const debouncedUpdateDashboardWidth = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_4__["debounce"])(() => { if (!dashboardRoot.current) return; const width = dashboardRoot.current.getBoundingClientRect().width; setDashboardWidth(width); }, 200); react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"](() => { updateDashboardWidth(); }, []); react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](() => { window.addEventListener('resize', debouncedUpdateDashboardWidth); return () => { window.removeEventListener('resize', debouncedUpdateDashboardWidth); }; }, []); const { components, height, config: newConfig } = forceFluid ? Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_4__["generateFluidDashboardLayout"])(config, dashboardWidth) : Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_4__["generateDashboardLayout"])(config, dashboardWidth); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Dashboard_styled__WEBPACK_IMPORTED_MODULE_1__["DashboardRoot"], { height: height, ref: dashboardRoot }, dashboardWidth && components.map((componentConfig) => (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Dashboard_styled__WEBPACK_IMPORTED_MODULE_1__["DashboardComponent"], Object.assign({ key: componentConfig.id }, newConfig, componentConfig), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_ComponentProvider_ComponentProvider__WEBPACK_IMPORTED_MODULE_2__["ComponentProvider"], { config: componentConfig, data: componentConfig.data, renderPlaceholder: () => (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Dashboard_styled__WEBPACK_IMPORTED_MODULE_1__["DashboardComponentPlaceholder"], null)), renderError: () => (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardError__WEBPACK_IMPORTED_MODULE_3__["DashboardError"], null)) })))))); } //# sourceMappingURL=Dashboard.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.styled.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.styled.js ***! \*********************************************************************************************************/ /*! exports provided: DashboardRoot, DashboardComponent, DashboardComponentPlaceholder */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardRoot", function() { return DashboardRoot; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardComponent", function() { return DashboardComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardComponentPlaceholder", function() { return DashboardComponentPlaceholder; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); /* harmony import */ var _Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Dashboard.utils */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js"); /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Placeholder/Placeholder */ "./node_modules/@employee-experience/common/lib/Components/Placeholder/Placeholder.js"); /* harmony import */ var _Resources_BreakPoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Resources/BreakPoints */ "./node_modules/@employee-experience/common/lib/Resources/BreakPoints.js"); const DashboardRoot = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` @media (min-width: ${_Resources_BreakPoints__WEBPACK_IMPORTED_MODULE_3__["BreakPoints"].minSmall}) { position: relative; height: ${(props) => props.height}px; } `; const DashboardComponent = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` margin-bottom: 24px; transition: top 0.1s ease-in-out, left 0.1s ease-in-out, width 0.1s ease-in-out; @media (min-width: ${_Resources_BreakPoints__WEBPACK_IMPORTED_MODULE_3__["BreakPoints"].minSmall}) { margin-bottom: 0; position: absolute; top: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentTop"])(props.top, props.rowHeight, props.gutter)}px; height: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentHeight"])(props.height, props.rowHeight, props.gutter)}px; left: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentLeft"])(props.left, props.columnCount, props.gutter)}; width: ${(props) => { if (props.columnCount === 1) return '100%'; return Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentWidth"])(props.width, props.columnCount, props.gutter); }}; } `; const DashboardComponentPlaceholder = Object(styled_components__WEBPACK_IMPORTED_MODULE_0__["default"])(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_2__["Placeholder"]) ` width: 100%; height: 100%; box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.108), 0px 1.6px 3.6px rgba(0, 0, 0, 0.132); `; //# sourceMappingURL=Dashboard.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.js ***! \*******************************************************************************************************/ /*! exports provided: DashboardError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardError", function() { return DashboardError; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Card_Card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Card/Card */ "./node_modules/@employee-experience/common/lib/Components/Card/Card.js"); /* harmony import */ var _DashboardError_styled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DashboardError.styled */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.styled.js"); const DashboardError = () => { return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Card_Card__WEBPACK_IMPORTED_MODULE_1__["Card"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Card_Card__WEBPACK_IMPORTED_MODULE_1__["CardHeading"], null, "Error!"), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Card_Card__WEBPACK_IMPORTED_MODULE_1__["CardContent"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardError_styled__WEBPACK_IMPORTED_MODULE_2__["ErrorImage"], { src: "/assets/error.png" })))); }; //# sourceMappingURL=DashboardError.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.styled.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.styled.js ***! \**************************************************************************************************************/ /*! exports provided: ErrorImage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorImage", function() { return ErrorImage; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); const ErrorImage = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].img ` width: 50%; position: absolute; top: 50%; transform: translateY(-50%) translateX(-50%); left: 50%; `; //# sourceMappingURL=DashboardError.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEdit.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEdit.js ***! \**********************************************************************************************************/ /*! exports provided: DashboardEdit */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardEdit", function() { return DashboardEdit; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _DashboardEdit_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DashboardEdit.styled */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEdit.styled.js"); /* harmony import */ var _Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dashboard.utils */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js"); /* harmony import */ var _DashboardEditGuide_DashboardEditGuide__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DashboardEditGuide/DashboardEditGuide */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditGuide/DashboardEditGuide.js"); /* harmony import */ var _DashboardEditComponent_DashboardEditComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DashboardEditComponent/DashboardEditComponent */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditComponent/DashboardEditComponent.js"); const DashboardEdit = (props) => { const { name, value, onChange } = props; const { config, components = [] } = value; const { layout, height } = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["generateFixedDashboardLayout"])(value, 1608); const root = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null); const [columnWidth, setColumnWidth] = react__WEBPACK_IMPORTED_MODULE_0__["useState"](0); const [offsetLeft, setOffsetLeft] = react__WEBPACK_IMPORTED_MODULE_0__["useState"](0); const [offsetTop, setOffsetTop] = react__WEBPACK_IMPORTED_MODULE_0__["useState"](0); react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](() => { if (!root.current) return; const { current } = root; const colWidth = (current.clientWidth - config.gutter * (config.columnCount - 1)) / config.columnCount; const boundingRect = current.getBoundingClientRect(); setColumnWidth(colWidth); setOffsetLeft(boundingRect.left); setOffsetTop(boundingRect.top); }, [config.columnCount, config.gutter]); const handleUpdated = (index, top, left) => { if (components[index].top === top && components[index].left === left) return; if (Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["isOutOfRange"])(config.columnCount, top, left, components[index].width)) return; const temp = Object.assign(Object.assign({}, components[index]), { top, left }); // Keeps track of changes due to collision const cloned = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["cloneComponentConfigs"])(components); cloned[index] = temp; const collidingElementIds = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["getCollidingElementIds"])(layout, config.columnCount, temp); while (collidingElementIds.length > 0) { const collidingElementId = collidingElementIds[0]; const collidingElement = value.components.find((val) => val.id === collidingElementId); const colIndex = cloned.findIndex((val) => val.id === collidingElementId); // Temporarily remove the colliding element from dashboard cloned[colIndex].top = -1; cloned[colIndex].left = -1; // Find a new location for the colliding element const { layout: updatedLayout } = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["generateFixedDashboardLayout"])({ config, components: cloned, }, 1608); const newLocation = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["findAvailableLocation"])(updatedLayout, config.columnCount, collidingElement); cloned[colIndex].top = newLocation.top; cloned[colIndex].left = newLocation.left; collidingElementIds.shift(); } onChange(name, { config, components: cloned, }); }; const handleDeleted = (index) => { const cloned = Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_2__["cloneComponentConfigs"])(components); cloned.splice(index, 1); onChange(name, { config, components: cloned, }); }; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardEdit_styled__WEBPACK_IMPORTED_MODULE_1__["Root"], { style: { height }, ref: root, onDragOver: (e) => { e.preventDefault(); } }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardEditGuide_DashboardEditGuide__WEBPACK_IMPORTED_MODULE_3__["DashboardEditGuide"], { config: config, height: layout.length }), components.map((componentConfig, index) => (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardEditComponent_DashboardEditComponent__WEBPACK_IMPORTED_MODULE_4__["DashboardEditComponent"], { key: componentConfig.id, index: index, columnWidth: columnWidth, offsetLeft: offsetLeft, offsetTop: offsetTop, onUpdate: handleUpdated, onDelete: handleDeleted, dashboardConfig: config, componentConfig: componentConfig }))))); }; //# sourceMappingURL=DashboardEdit.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEdit.styled.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEdit.styled.js ***! \*****************************************************************************************************************/ /*! exports provided: Root */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Root", function() { return Root; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); const Root = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` position: relative; `; //# sourceMappingURL=DashboardEdit.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditComponent/DashboardEditComponent.js": /*!******************************************************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditComponent/DashboardEditComponent.js ***! \******************************************************************************************************************************************/ /*! exports provided: DashboardEditComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardEditComponent", function() { return DashboardEditComponent; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Dashboard_Dashboard_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Dashboard/Dashboard.styled */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.styled.js"); /* harmony import */ var _Dashboard_DashboardError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Dashboard/DashboardError */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/DashboardError.js"); /* harmony import */ var _DashboardEditComponent_styled__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DashboardEditComponent.styled */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditComponent/DashboardEditComponent.styled.js"); /* harmony import */ var _ComponentProvider_ComponentProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../ComponentProvider/ComponentProvider */ "./node_modules/@employee-experience/common/lib/Components/ComponentProvider/ComponentProvider.js"); /* harmony import */ var _fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fluentui/react/lib/Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); const DashboardEditComponent = (props) => { const { onUpdate, index, componentConfig, dashboardConfig, columnWidth, offsetLeft, offsetTop, onDelete } = props; const { telemetryClient } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_7__["ComponentContext"]); const { current } = react__WEBPACK_IMPORTED_MODULE_0__["useRef"]({ offsetTop: -1, offsetLeft: -1, }); // Calculates the offset position when the mouse is clicked on a component initially const handleComponentSelected = (e) => { const clientRect = e.currentTarget.getBoundingClientRect(); current.offsetTop = e.clientY - clientRect.top; current.offsetLeft = e.clientX - clientRect.left; }; const handleComponentDragged = (e) => { const top = Math.floor((e.pageY - current.offsetTop - offsetTop) / (dashboardConfig.rowHeight + dashboardConfig.gutter)); const left = Math.floor((e.pageX - current.offsetLeft - offsetLeft) / (columnWidth + dashboardConfig.gutter)); onUpdate(index, top, left); }; const handleRemoveButtonClicked = () => { const removeCardEvent = { feature: 'DemoApp', subFeature: `Dashboard.Remove.${props.componentConfig.name.toString()}`, type: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_6__["EventType"].User, eventName: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_6__["UsageEventName"].ButtonClicked, businessTransactionId: props.componentConfig.name.toString(), }; telemetryClient.trackEvent(removeCardEvent); onDelete(index); }; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardEditComponent_styled__WEBPACK_IMPORTED_MODULE_3__["Root"], Object.assign({}, dashboardConfig, componentConfig, { onMouseDown: handleComponentSelected, onDrag: handleComponentDragged, draggable: true }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardEditComponent_styled__WEBPACK_IMPORTED_MODULE_3__["DeleteButton"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_Button__WEBPACK_IMPORTED_MODULE_5__["PrimaryButton"], { text: "Remove", onClick: handleRemoveButtonClicked }), ' '), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_ComponentProvider_ComponentProvider__WEBPACK_IMPORTED_MODULE_4__["ComponentProvider"], { config: componentConfig, data: componentConfig.data, renderPlaceholder: () => react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Dashboard_Dashboard_styled__WEBPACK_IMPORTED_MODULE_1__["DashboardComponentPlaceholder"], null), renderError: () => react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Dashboard_DashboardError__WEBPACK_IMPORTED_MODULE_2__["DashboardError"], null) }))); }; //# sourceMappingURL=DashboardEditComponent.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditComponent/DashboardEditComponent.styled.js": /*!*************************************************************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditComponent/DashboardEditComponent.styled.js ***! \*************************************************************************************************************************************************/ /*! exports provided: Root, ComponentPlaceholder, DeleteButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Root", function() { return Root; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentPlaceholder", function() { return ComponentPlaceholder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteButton", function() { return DeleteButton; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); /* harmony import */ var _Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Dashboard.utils */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js"); const Root = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` position: absolute; z-index: 1; top: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentTop"])(props.top, props.rowHeight, props.gutter)}px; height: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentHeight"])(props.height, props.rowHeight, props.gutter)}px; left: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentLeft"])(props.left, props.columnCount, props.gutter)}; width: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentWidth"])(props.width, props.columnCount, props.gutter)}; transition: top 0.1s ease-in, left 0.1s ease-in; `; const ComponentPlaceholder = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` background-color: white; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1); padding: 16px; height: 100%; `; const DeleteButton = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` position: absolute; z-index: 2; top: 4px; right: 4px; `; //# sourceMappingURL=DashboardEditComponent.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditGuide/DashboardEditGuide.js": /*!**********************************************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditGuide/DashboardEditGuide.js ***! \**********************************************************************************************************************************/ /*! exports provided: DashboardEditGuide */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardEditGuide", function() { return DashboardEditGuide; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _DashboardEditGuide_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DashboardEditGuide.styled */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditGuide/DashboardEditGuide.styled.js"); const DashboardEditGuide = (props) => { const { height, config } = props; const guide = []; for (let i = 0; i < height; i++) { for (let j = 0; j < config.columnCount; j++) { guide.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_DashboardEditGuide_styled__WEBPACK_IMPORTED_MODULE_1__["Guide"], Object.assign({ key: i + j }, config, { top: i, left: j }))); } } return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, guide); }; //# sourceMappingURL=DashboardEditGuide.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditGuide/DashboardEditGuide.styled.js": /*!*****************************************************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEditGuide/DashboardEditGuide.styled.js ***! \*****************************************************************************************************************************************/ /*! exports provided: Guide */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Guide", function() { return Guide; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); /* harmony import */ var _Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Dashboard.utils */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js"); const Guide = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` position: absolute; background-color: rgb(229, 229, 229); top: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentTop"])(props.top, props.rowHeight, props.gutter)}px; height: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentHeight"])(1, props.rowHeight, props.gutter)}px; left: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentLeft"])(props.left, props.columnCount, props.gutter)}; width: ${(props) => Object(_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["getDashboardComponentWidth"])(1, props.columnCount, props.gutter)}; `; //# sourceMappingURL=DashboardEditGuide.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Form/Checkbox/Checkbox.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Form/Checkbox/Checkbox.js ***! \*******************************************************************************************/ /*! exports provided: Checkbox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return Checkbox; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_react_lib_Checkbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react/lib/Checkbox */ "./node_modules/@fluentui/react/lib/Checkbox.js"); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Models__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Models */ "./node_modules/@employee-experience/common/lib/Models.js"); function Checkbox(props) { const { onChange, name, usageEvent } = props; const { telemetryClient } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_2__["ComponentContext"]); const handleChanged = (e, value) => { var _a; const checkedEvent = Object.assign({ eventName: _Models__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].CheckBoxChanged, type: _Models__WEBPACK_IMPORTED_MODULE_3__["EventType"].User, businessTransactionId: (value === null || value === void 0 ? void 0 : value.toString()) || 'null' }, usageEvent); const customProps = ((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}; telemetryClient.trackEvent(checkedEvent, customProps); onChange(name, value); }; return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_Checkbox__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], Object.assign({}, props, { onChange: handleChanged })); } //# sourceMappingURL=Checkbox.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Form/DatePicker/DatePicker.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Form/DatePicker/DatePicker.js ***! \***********************************************************************************************/ /*! exports provided: DatePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return DatePicker; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_react_lib_DatePicker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react/lib/DatePicker */ "./node_modules/@fluentui/react/lib/DatePicker.js"); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Models__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Models */ "./node_modules/@employee-experience/common/lib/Models.js"); function DatePicker(props) { const { onChange, name, label, onClick, usageEvent } = props; const { telemetryClient, telemetryContext } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_2__["ComponentContext"]); const handleDateSelected = (date) => { var _a; const datePickerEvent = Object.assign({ eventName: _Models__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].DatePickerDateSelected, type: _Models__WEBPACK_IMPORTED_MODULE_3__["EventType"].User, businessTransactionId: (date === null || date === void 0 ? void 0 : date.toDateString()) || 'null' }, usageEvent); const customProps = ((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}; telemetryClient.trackEvent(datePickerEvent, customProps); onChange(name, date || null); }; const handleClicked = (e) => { var _a; const datePickerEvent = Object.assign({ eventName: _Models__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].DatePickerClicked, type: _Models__WEBPACK_IMPORTED_MODULE_3__["EventType"].User }, usageEvent); telemetryClient.trackEvent(datePickerEvent, Object.assign(Object.assign(Object.assign({}, telemetryContext), { type: 'DatePicker', label, name }), (((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}))); onClick && onClick(e); }; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_DatePicker__WEBPACK_IMPORTED_MODULE_1__["DatePicker"], Object.assign({}, props, { onChange: undefined, onSelectDate: handleDateSelected, onClick: handleClicked }))); } //# sourceMappingURL=DatePicker.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Form/Dropdown/Dropdown.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Form/Dropdown/Dropdown.js ***! \*******************************************************************************************/ /*! exports provided: Dropdown */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return Dropdown; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_react_lib_Dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react/lib/Dropdown */ "./node_modules/@fluentui/react/lib/Dropdown.js"); /* harmony import */ var _ComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); function Dropdown(props) { const { onChange, name, label, onFocus, usageEvent } = props; const { telemetryClient, telemetryContext } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_ComponentContext__WEBPACK_IMPORTED_MODULE_2__["ComponentContext"]); const handleChanged = (e, option) => { var _a; const dropDownEvent = Object.assign({ eventName: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].DropdownSelected, type: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["EventType"].User, businessTransactionId: option === null || option === void 0 ? void 0 : option.key.toString() }, usageEvent); telemetryClient.trackEvent(dropDownEvent, Object.assign(Object.assign(Object.assign({}, telemetryContext), { type: 'Dropdown', label, name, key: option === null || option === void 0 ? void 0 : option.key.toString() }), (((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}))); if (option) onChange(name, option.key); }; const handleFocused = (e) => { var _a; const dropDownEvent = Object.assign({ eventName: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].DropdownFocused, type: _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["EventType"].User }, usageEvent); telemetryClient.trackEvent(dropDownEvent, Object.assign(Object.assign(Object.assign({}, telemetryContext), { type: 'Dropdown', label, name }), (((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}))); onFocus && onFocus(e); }; return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_Dropdown__WEBPACK_IMPORTED_MODULE_1__["Dropdown"], Object.assign({}, props, { onChange: handleChanged, onFocus: handleFocused })); } //# sourceMappingURL=Dropdown.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Form/InputGroup.js": /*!************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Form/InputGroup.js ***! \************************************************************************************/ /*! exports provided: InputGroup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return InputGroup; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); const InputGroup = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` margin-bottom: 24px; `; //# sourceMappingURL=InputGroup.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Form/TextField/TextField.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Form/TextField/TextField.js ***! \*********************************************************************************************/ /*! exports provided: TextField */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextField", function() { return TextField; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_react_lib_TextField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react/lib/TextField */ "./node_modules/@fluentui/react/lib/TextField.js"); /* harmony import */ var _ComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony import */ var _Models__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Models */ "./node_modules/@employee-experience/common/lib/Models.js"); function TextField(props) { const { onChange, name, label, onFocus, usageEvent } = props; const { telemetryClient, telemetryContext } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_ComponentContext__WEBPACK_IMPORTED_MODULE_2__["ComponentContext"]); const handleChanged = (e, value) => { var _a; const textEvent = Object.assign({ eventName: _Models__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].TextChanged, type: _Models__WEBPACK_IMPORTED_MODULE_3__["EventType"].User, businessTransactionId: value || 'null' }, usageEvent); const customProps = ((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}; telemetryClient.trackEvent(textEvent, customProps); //TODO: Review with Won => Too many change events. Sould use with debounce onChange(name, value); }; const handleFocused = (e) => { var _a; const textEvent = Object.assign({ eventName: _Models__WEBPACK_IMPORTED_MODULE_3__["UsageEventName"].TextboxFocused, type: _Models__WEBPACK_IMPORTED_MODULE_3__["EventType"].User }, usageEvent); telemetryClient.trackEvent(textEvent, Object.assign(Object.assign(Object.assign({}, telemetryContext), { type: 'TextField', label, name }), (((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}))); onFocus && onFocus(e); }; return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_TextField__WEBPACK_IMPORTED_MODULE_1__["TextField"], Object.assign({}, props, { onChange: handleChanged, onFocus: handleFocused })); } //# sourceMappingURL=TextField.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Link/Link.js": /*!******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Link/Link.js ***! \******************************************************************************/ /*! exports provided: Link */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return Link; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router-dom/esm/react-router-dom.js"); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Link_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Link.utils */ "./node_modules/@employee-experience/common/lib/Components/Link/Link.utils.js"); /* harmony import */ var _fluentui_react_lib_Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fluentui/react/lib/Link */ "./node_modules/@fluentui/react/lib/Link.js"); /* harmony import */ var _Models__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Models */ "./node_modules/@employee-experience/common/lib/Models.js"); function Link(props) { const { to, children, activeStyle, exact, title, className, target, activeClassName, disabled, refresh } = props; const { telemetryClient } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_2__["ComponentContext"]); const href = to || '/'; const handleClicked = () => { var _a; const linkEvent = { feature: props.usageEvent.feature, subFeature: props.usageEvent.subFeature, subFeatureLevel2: props.usageEvent.subFeatureLevel2, featureLocation: props.usageEvent.featureLocation, eventName: _Models__WEBPACK_IMPORTED_MODULE_5__["UsageEventName"].LinkClicked, type: _Models__WEBPACK_IMPORTED_MODULE_5__["EventType"].User, }; telemetryClient.trackEvent(linkEvent, Object.assign({ properties: { to, title } }, (((_a = props.logCustomProperties) === null || _a === void 0 ? void 0 : _a.call(props)) || {}))); }; if (Object(_Link_utils__WEBPACK_IMPORTED_MODULE_3__["shouldUseAnchorTag"])(href, refresh)) return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_Link__WEBPACK_IMPORTED_MODULE_4__["Link"], { href: href, target: target, rel: "noopener noreferrer", onClick: handleClicked, title: title, className: className, disabled: disabled }, children)); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_Link__WEBPACK_IMPORTED_MODULE_4__["Link"] // Work around from OF team: // https://teams.microsoft.com/l/message/19:86b094239256467da9dfa96ba0897ca2@thread.skype/1583170159871?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=ffe264f2-14d0-48b5-9384-64f808b81294&parentMessageId=1582822787612&teamName=Microsoft%20UI%20Fabric&channelName=Fabric%20React&createdTime=1583170159871 // eslint-disable-next-line @typescript-eslint/no-explicit-any , { // Work around from OF team: // https://teams.microsoft.com/l/message/19:86b094239256467da9dfa96ba0897ca2@thread.skype/1583170159871?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=ffe264f2-14d0-48b5-9384-64f808b81294&parentMessageId=1582822787612&teamName=Microsoft%20UI%20Fabric&channelName=Fabric%20React&createdTime=1583170159871 // eslint-disable-next-line @typescript-eslint/no-explicit-any as: react_router_dom__WEBPACK_IMPORTED_MODULE_1__["NavLink"], to: href, activeStyle: activeStyle, exact: exact, onClick: handleClicked, title: title, className: className, activeClassName: activeClassName, disabled: disabled }, children)); } //# sourceMappingURL=Link.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Link/Link.utils.js": /*!************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Link/Link.utils.js ***! \************************************************************************************/ /*! exports provided: shouldUseAnchorTag */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldUseAnchorTag", function() { return shouldUseAnchorTag; }); function shouldUseAnchorTag(to, forceRefresh) { const lowerCasedTo = to.toLowerCase(); if (forceRefresh) return true; if (lowerCasedTo.startsWith('http')) return true; if (lowerCasedTo.startsWith('mailto')) return true; if (lowerCasedTo.startsWith('tel')) return true; if (lowerCasedTo.startsWith('\\')) return true; return false; } //# sourceMappingURL=Link.utils.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Persona/Persona.js": /*!************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Persona/Persona.js ***! \************************************************************************************/ /*! exports provided: Persona */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Persona", function() { return Persona; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_react_lib_components_Persona_Persona__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react/lib/components/Persona/Persona */ "./node_modules/@fluentui/react/lib/components/Persona/Persona.js"); /* harmony import */ var _Persona_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Persona.types */ "./node_modules/@employee-experience/common/lib/Components/Persona/Persona.types.js"); /* harmony import */ var _Hooks_useGraphPhoto__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Hooks/useGraphPhoto */ "./node_modules/@employee-experience/common/lib/Hooks/useGraphPhoto.js"); const Persona = (props) => { const { emailAlias } = props; const photo = Object(_Hooks_useGraphPhoto__WEBPACK_IMPORTED_MODULE_3__["useGraphPhoto"])(emailAlias, getPixelSize(props.size)); if (!photo) return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_components_Persona_Persona__WEBPACK_IMPORTED_MODULE_1__["Persona"], Object.assign({}, props)); return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_fluentui_react_lib_components_Persona_Persona__WEBPACK_IMPORTED_MODULE_1__["Persona"], Object.assign({}, props, { imageUrl: photo })); }; const getPixelSize = (size) => { switch (size) { case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size8: case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size24: case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size32: case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size40: case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size48: return 48; case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size56: return 64; case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size72: return 96; case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size100: case _Persona_types__WEBPACK_IMPORTED_MODULE_2__["PersonaSize"].size120: return 120; default: return undefined; } }; //# sourceMappingURL=Persona.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Persona/Persona.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Persona/Persona.types.js ***! \******************************************************************************************/ /*! exports provided: PersonaInitialsColor, PersonaSize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_react_lib_components_Persona_Persona_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react/lib/components/Persona/Persona.types */ "./node_modules/@fluentui/react/lib/components/Persona/Persona.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaInitialsColor", function() { return _fluentui_react_lib_components_Persona_Persona_types__WEBPACK_IMPORTED_MODULE_0__["PersonaInitialsColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaSize", function() { return _fluentui_react_lib_components_Persona_Persona_types__WEBPACK_IMPORTED_MODULE_0__["PersonaSize"]; }); //# sourceMappingURL=Persona.types.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Components/Placeholder/Placeholder.js": /*!********************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Components/Placeholder/Placeholder.js ***! \********************************************************************************************/ /*! exports provided: Placeholder */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Placeholder", function() { return Placeholder; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); const Placeholder = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div.attrs({ 'aria-hidden': true }) ` background-color: #e5e5e5; color: #e5e5e5; text-align: center; animation: placeholderBlinks 1s infinite; `; //# sourceMappingURL=Placeholder.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js": /*!**********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Context/ComponentContext.js ***! \**********************************************************************************/ /*! exports provided: ComponentContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentContext", function() { return ComponentContext; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); const ComponentContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({}); //# sourceMappingURL=ComponentContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Context/ReduxContext.js": /*!******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Context/ReduxContext.js ***! \******************************************************************************/ /*! exports provided: ReduxContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReduxContext", function() { return ReduxContext; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); const ReduxContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({}); //# sourceMappingURL=ReduxContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Dashboard.js": /*!*******************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Dashboard.js ***! \*******************************************************************/ /*! exports provided: Dashboard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Dashboard_Dashboard_Dashboard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Dashboard/Dashboard/Dashboard */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard/Dashboard.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dashboard", function() { return _Components_Dashboard_Dashboard_Dashboard__WEBPACK_IMPORTED_MODULE_0__["Dashboard"]; }); //# sourceMappingURL=Dashboard.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/DashboardEdit.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/DashboardEdit.js ***! \***********************************************************************/ /*! exports provided: DashboardEdit, findAvailableLocation */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Dashboard_DashboardEdit_DashboardEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Dashboard/DashboardEdit/DashboardEdit */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/DashboardEdit/DashboardEdit.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DashboardEdit", function() { return _Components_Dashboard_DashboardEdit_DashboardEdit__WEBPACK_IMPORTED_MODULE_0__["DashboardEdit"]; }); /* harmony import */ var _Components_Dashboard_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components/Dashboard/Dashboard.utils */ "./node_modules/@employee-experience/common/lib/Components/Dashboard/Dashboard.utils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findAvailableLocation", function() { return _Components_Dashboard_Dashboard_utils__WEBPACK_IMPORTED_MODULE_1__["findAvailableLocation"]; }); //# sourceMappingURL=DashboardEdit.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/DatePicker.js": /*!********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/DatePicker.js ***! \********************************************************************/ /*! exports provided: DatePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Form_DatePicker_DatePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Form/DatePicker/DatePicker */ "./node_modules/@employee-experience/common/lib/Components/Form/DatePicker/DatePicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _Components_Form_DatePicker_DatePicker__WEBPACK_IMPORTED_MODULE_0__["DatePicker"]; }); //# sourceMappingURL=DatePicker.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/DefaultButton.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/DefaultButton.js ***! \***********************************************************************/ /*! exports provided: DefaultButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Button_DefaultButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Button/DefaultButton */ "./node_modules/@employee-experience/common/lib/Components/Button/DefaultButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultButton", function() { return _Components_Button_DefaultButton__WEBPACK_IMPORTED_MODULE_0__["DefaultButton"]; }); //# sourceMappingURL=DefaultButton.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Dropdown.js": /*!******************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Dropdown.js ***! \******************************************************************/ /*! exports provided: Dropdown */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Form_Dropdown_Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Form/Dropdown/Dropdown */ "./node_modules/@employee-experience/common/lib/Components/Form/Dropdown/Dropdown.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _Components_Form_Dropdown_Dropdown__WEBPACK_IMPORTED_MODULE_0__["Dropdown"]; }); //# sourceMappingURL=Dropdown.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/HOCs/withContext.js": /*!**************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/HOCs/withContext.js ***! \**************************************************************************/ /*! exports provided: withContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return withContext; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Context_ReduxContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Context/ReduxContext */ "./node_modules/@employee-experience/common/lib/Context/ReduxContext.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; function withContext(WrappedComponent) { const ComponentWithContext = (props) => { const { context, data, config, reduxContext } = props, otherProps = __rest(props, ["context", "data", "config", "reduxContext"]); if (!config) return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrappedComponent, Object.assign({}, otherProps)); ComponentWithContext.displayName = config.name; let reactReduxContext = undefined; if (reduxContext) reactReduxContext = reduxContext.__redux_context__; if (!reactReduxContext) { return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"].Provider, { value: context }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrappedComponent, Object.assign({ data: data }, otherProps)))); } return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"].Provider, { value: context }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Context_ReduxContext__WEBPACK_IMPORTED_MODULE_2__["ReduxContext"].Provider, { value: reduxContext }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrappedComponent, Object.assign({ context: reactReduxContext, data: data }, otherProps))))); }; return ComponentWithContext; } //# sourceMappingURL=withContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/useDynamicReducer.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/useDynamicReducer.js ***! \*********************************************************************************/ /*! exports provided: useDynamicReducer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useDynamicReducer", function() { return useDynamicReducer; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ReduxContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ReduxContext */ "./node_modules/@employee-experience/common/lib/Context/ReduxContext.js"); function useDynamicReducer(reducerName, reducer, sagas = [], shouldPersist = true) { const { reducerRegistry, runSaga } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_Context_ReduxContext__WEBPACK_IMPORTED_MODULE_1__["ReduxContext"]); Object(react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"])(() => { if (!reducerRegistry.exists(reducerName)) { const skipIfExists = true; reducerRegistry.registerDynamic(reducerName, reducer, skipIfExists, shouldPersist); sagas.map((saga) => runSaga(saga)); } }, [reducer, reducerName, reducerRegistry, runSaga, sagas, shouldPersist]); } //# sourceMappingURL=useDynamicReducer.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/useGraphPhoto.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/useGraphPhoto.js ***! \*****************************************************************************/ /*! exports provided: useGraphPhoto */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useGraphPhoto", function() { return useGraphPhoto; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); function useGraphPhoto(upn, size) { const { graphClient, authClient } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]); const [photo, setPhoto] = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { if (upn) { graphClient.getPhoto(upn, size).then(setPhoto); return; } authClient .getUserId() .then((userId) => { if (userId) graphClient.getPhoto(userId).then(setPhoto); else setPhoto(null); }) .catch(() => { setPhoto(null); }); }, [authClient, graphClient, upn]); return photo; } //# sourceMappingURL=useGraphPhoto.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/useLoginOnStartup.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/useLoginOnStartup.js ***! \*********************************************************************************/ /*! exports provided: useLoginOnStartup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useLoginOnStartup", function() { return useLoginOnStartup; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Resources_TelemetryEvents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Resources/TelemetryEvents */ "./node_modules/@employee-experience/common/lib/Resources/TelemetryEvents.js"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; function useLoginOnStartup(shouldLogin, options = {}) { const { authClient, telemetryClient } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]); const [user, setUser] = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { telemetryClient.trackTrace({ message: _Resources_TelemetryEvents__WEBPACK_IMPORTED_MODULE_2__["TelemetryEvents"].SessionStarted }); if (user) return telemetryClient.setAuthenticatedUserContext(user.id); }, []); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { if (shouldLogin === false) return; if (user) return telemetryClient.setAuthenticatedUserContext(user.id); authClient .isLoggedIn() .then((isLoggedIn) => __awaiter(this, void 0, void 0, function* () { if (isLoggedIn) { const loggedInUser = yield authClient.getUser(); setUser(loggedInUser); return; } authClient.login(options).catch(); })) .catch(() => { authClient.login(options).catch(); }); }, [authClient, shouldLogin, telemetryClient, user]); return [user]; } //# sourceMappingURL=useLoginOnStartup.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/usePageTitle.js": /*!****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/usePageTitle.js ***! \****************************************************************************/ /*! exports provided: usePageTitle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "usePageTitle", function() { return usePageTitle; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); function usePageTitle(title) { Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { window.document.title = title; }, [title]); } //# sourceMappingURL=usePageTitle.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/usePageTracking.js": /*!*******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/usePageTracking.js ***! \*******************************************************************************/ /*! exports provided: usePageTracking */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "usePageTracking", function() { return usePageTracking; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); function usePageTracking(pageEvent, loadComplete) { const { telemetryClient, telemetryContext } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]); pageEvent.eventName = pageEvent.eventName || _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageEventName"].PageLoad; if (pageEvent.eventName !== _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageEventName"].PageLoad) { telemetryClient.trackException({ exception: new Error(`Unexpected eventName: ${pageEvent.eventName}. Expected ${_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageEventName"].PageLoad}`), }); } const pageName = pageEvent.feature ? pageEvent.feature + '-' : pageEvent.subFeature; Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { telemetryClient.startTrackPage(pageName); return () => { telemetryClient.stopTrackPage(pageName); }; }, [pageName, telemetryClient]); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { if (pageEvent) { if (loadComplete) { if (loadComplete()) { if (telemetryContext) telemetryClient.stopTrackEvent(pageEvent); } else { if (telemetryContext) telemetryClient.startTrackEvent(pageEvent); } } else { if (telemetryContext) telemetryClient.trackEvent(pageEvent); } } // eslint-disable-next-line react-hooks/exhaustive-deps }, [loadComplete ? loadComplete() : false]); } //# sourceMappingURL=usePageTracking.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/useUsageTelemetry.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/useUsageTelemetry.js ***! \*********************************************************************************/ /*! exports provided: useUsageTelemetry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useUsageTelemetry", function() { return useUsageTelemetry; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); /* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); /* harmony import */ var _useUser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useUser */ "./node_modules/@employee-experience/common/lib/Hooks/useUser.js"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; function useUsageTelemetry() { const { usageClient, telemetryContext } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]); const user = Object(_useUser__WEBPACK_IMPORTED_MODULE_3__["useUser"])(); const initializeUsage = () => __awaiter(this, void 0, void 0, function* () { const userParams = (telemetryContext === null || telemetryContext === void 0 ? void 0 : telemetryContext.usageUser) || {}; if (usageClient) { telemetryContext === null || telemetryContext === void 0 ? void 0 : telemetryContext.setUsageConfig(usageClient === null || usageClient === void 0 ? void 0 : usageClient.getUsageConfig()); } if (user && usageClient) { //After the user object is initialized, we can request the usage apis const usageUserId = yield (usageClient === null || usageClient === void 0 ? void 0 : usageClient.getUsageUserId()); const usageUser = Object(_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["pickUserAttribute"])(Object.assign(Object.assign({}, userParams), { usageUserId })); telemetryContext === null || telemetryContext === void 0 ? void 0 : telemetryContext.setUsageUser(usageUser); } }); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { initializeUsage(); // eslint-disable-next-line }, [user, usageClient]); // Prettier introduces the local initializeUsage which re-renders always } //# sourceMappingURL=useUsageTelemetry.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Hooks/useUser.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Hooks/useUser.js ***! \***********************************************************************/ /*! exports provided: useUser */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useUser", function() { return useUser; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Context/ComponentContext */ "./node_modules/@employee-experience/common/lib/Context/ComponentContext.js"); function useUser() { const { authClient } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_Context_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"]); const [user, setUser] = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { authClient.getUser().then(setUser); }, [authClient]); return user; } //# sourceMappingURL=useUser.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/InputGroup.js": /*!********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/InputGroup.js ***! \********************************************************************/ /*! exports provided: InputGroup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Form_InputGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Form/InputGroup */ "./node_modules/@employee-experience/common/lib/Components/Form/InputGroup.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _Components_Form_InputGroup__WEBPACK_IMPORTED_MODULE_0__["InputGroup"]; }); //# sourceMappingURL=InputGroup.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Link.js": /*!**************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Link.js ***! \**************************************************************/ /*! exports provided: Link, shouldUseAnchorTag */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Link_Link__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Link/Link */ "./node_modules/@employee-experience/common/lib/Components/Link/Link.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return _Components_Link_Link__WEBPACK_IMPORTED_MODULE_0__["Link"]; }); /* harmony import */ var _Components_Link_Link_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components/Link/Link.utils */ "./node_modules/@employee-experience/common/lib/Components/Link/Link.utils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shouldUseAnchorTag", function() { return _Components_Link_Link_utils__WEBPACK_IMPORTED_MODULE_1__["shouldUseAnchorTag"]; }); //# sourceMappingURL=Link.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models.js": /*!****************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models.js ***! \****************************************************************/ /*! exports provided: pickSystemEvent, pickUserEvent, pickAwareEvent, pickUsageTracker, pickUserAttribute, EventType, UsageHelper, UsageEventName, asCuppSchema */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Models_IAuthClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Models/IAuthClient */ "./node_modules/@employee-experience/common/lib/Models/IAuthClient.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IComponentConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Models/IComponentConfig */ "./node_modules/@employee-experience/common/lib/Models/IComponentConfig.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Models/IComponentContext */ "./node_modules/@employee-experience/common/lib/Models/IComponentContext.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IComponentLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Models/IComponentLoader */ "./node_modules/@employee-experience/common/lib/Models/IComponentLoader.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IComponentProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Models/IComponentProps */ "./node_modules/@employee-experience/common/lib/Models/IComponentProps.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IHttpClient__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Models/IHttpClient */ "./node_modules/@employee-experience/common/lib/Models/IHttpClient.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IReducerRegistry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Models/IReducerRegistry */ "./node_modules/@employee-experience/common/lib/Models/IReducerRegistry.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IReduxContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Models/IReduxContext */ "./node_modules/@employee-experience/common/lib/Models/IReduxContext.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_ITelemetryClient__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Models/ITelemetryClient */ "./node_modules/@employee-experience/common/lib/Models/ITelemetryClient.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IGraphClient__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Models/IGraphClient */ "./node_modules/@employee-experience/common/lib/Models/IGraphClient.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IUser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Models/IUser */ "./node_modules/@employee-experience/common/lib/Models/IUser.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IDefaultState__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Models/IDefaultState */ "./node_modules/@employee-experience/common/lib/Models/IDefaultState.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_ITelemetryContext__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Models/ITelemetryContext */ "./node_modules/@employee-experience/common/lib/Models/ITelemetryContext.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_CustomProperties__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Models/CustomProperties */ "./node_modules/@employee-experience/common/lib/Models/CustomProperties.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IUTPConfig__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Models/IUTPConfig */ "./node_modules/@employee-experience/common/lib/Models/IUTPConfig.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_IUsageClient__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Models/IUsageClient */ "./node_modules/@employee-experience/common/lib/Models/IUsageClient.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickSystemEvent", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["pickSystemEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUserEvent", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["pickUserEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickAwareEvent", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["pickAwareEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUsageTracker", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["pickUsageTracker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUserAttribute", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["pickUserAttribute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventType", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["EventType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsageHelper", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["UsageHelper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsageEventName", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["UsageEventName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asCuppSchema", function() { return _Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_16__["asCuppSchema"]; }); /* harmony import */ var _Models_Measurements__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Models/Measurements */ "./node_modules/@employee-experience/common/lib/Models/Measurements.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=Models.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/CustomProperties.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/CustomProperties.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CustomProperties.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IAuthClient.js": /*!****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IAuthClient.js ***! \****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IAuthClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IComponentConfig.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IComponentConfig.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IComponentConfig.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IComponentContext.js": /*!**********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IComponentContext.js ***! \**********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IComponentContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IComponentLoader.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IComponentLoader.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IComponentLoader.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IComponentProps.js": /*!********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IComponentProps.js ***! \********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IComponentProps.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IDefaultState.js": /*!******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IDefaultState.js ***! \******************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IDefaultState.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IGraphClient.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IGraphClient.js ***! \*****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IGraphClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IHttpClient.js": /*!****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IHttpClient.js ***! \****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IHttpClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IReducerRegistry.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IReducerRegistry.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IReducerRegistry.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IReduxContext.js": /*!******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IReduxContext.js ***! \******************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IReduxContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/ITelemetryClient.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/ITelemetryClient.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ITelemetryClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/ITelemetryContext.js": /*!**********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/ITelemetryContext.js ***! \**********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ITelemetryContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IUTPConfig.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IUTPConfig.js ***! \***************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IUTPConfig.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IUsageClient.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IUsageClient.js ***! \*****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IUsageClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/IUser.js": /*!**********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/IUser.js ***! \**********************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IUser.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/Measurements.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/Measurements.js ***! \*****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Measurements.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Config/UsageTelemetryConfig.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Config/UsageTelemetryConfig.js ***! \***********************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=UsageTelemetryConfig.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/CuppSchemaMapper.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/CuppSchemaMapper.js ***! \********************************************************************************************************/ /*! exports provided: asCuppSchema */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asCuppSchema", function() { return asCuppSchema; }); const CuppSchema = { type: 'UsageEventType', timeTaken: 'UsageTimeTaken', eventName: 'UsageEventName', feature: 'UsageCapabilityName', subFeature: 'UsageSubCapabilityName', subFeatureLevel2: 'UsageSubCapabilityLevel2', featureLocation: 'UsageLocation', businessTransactionId: 'UsageBusinessTransactionId', experienceResult: 'UsageExperienceResult', usageUserId: 'UsageUserId', sessionId: 'UsageSessionId', actionTrackingId: 'UsageActionTrackingId', correlationTrackingId: 'UsagecCorrelationTrackingId', pageTrackingId: 'UsagePageTrackingId', eventDate: 'UsageEventDate', flightId: 'UsageFlightId', flightName: 'UsageFlightName', moduleName: 'UsageModuleName', usageVersion: 'UsageVersion', }; const asCuppSchema = (props) => Object.keys(props).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [CuppSchema[key] || key]: props[key] instanceof Date ? props[key].toISOString() : props[key] !== undefined ? props[key] : '', })), {}); //# sourceMappingURL=CuppSchemaMapper.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/Usage.helper.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/Usage.helper.js ***! \****************************************************************************************************/ /*! exports provided: UsageHelper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsageHelper", function() { return UsageHelper; }); /* harmony import */ var _UserAttribute__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../UserAttribute */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UserAttribute.js"); /* harmony import */ var _UsageEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../UsageEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! .. */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); class UsageHelperImpl { constructor(feature) { this.usageUser = {}; this.feature = ''; this.latestEvents = {}; this.lastActiveTimeKey = '__Core.UserAttribute.lastActiveTime__'; this.sessionKey = '__Core.UserAttribute.sessionId__'; this.userIdKey = '__Core.UserAttribute.UsageUserId__'; // eslint-disable-next-line @typescript-eslint/no-use-before-define this.Fork = (feature) => { const newUsageHelper = new UsageHelperImpl(feature); // Fix for micro-fe not aligning to the previous page-tracking from parent newUsageHelper.latestEvents = Object.assign({}, this.latestEvents); newUsageHelper.SetUserRef(this.usageUser); if (this.usageConfig) newUsageHelper.SetUsageConfig(this.usageConfig); return newUsageHelper; }; this.ForkTelemetryContext = (feature, source) => { const newUsageHelper = new UsageHelperImpl(feature); // Fix for micro-fe not aligning to the previous page-tracking from parent newUsageHelper.latestEvents = Object.assign({}, this.latestEvents); newUsageHelper.SetUserRef(this.usageUser); if (this.usageConfig) newUsageHelper.SetUsageConfig(this.usageConfig); const newContext = { sourceComponent: feature, sourceScript: source, setUsageEvent: newUsageHelper.MassageEvent, setUsageUser: (usageUser) => { UsageHelper.SetUser(usageUser); return usageUser; }, usageUser: newUsageHelper.GetUser, setUsageConfig: newUsageHelper.SetUsageConfig, getChildContext: newUsageHelper.ForkTelemetryContext, }; return newContext; }; this.SetUserRef = (userAttribute) => { //Do not spread or clone the user attribute. The forked helpers point to the same reference. this.usageUser = userAttribute; this.checkSession(); }; this.SetUser = (userAttribute) => { var _a; //Do not spread or clone the user attribute. The forked helpers point to the same reference. this.usageUser.lastActiveTime = userAttribute.lastActiveTime; this.usageUser.sessionId = userAttribute.sessionId; this.usageUser.usageUserId = userAttribute.usageUserId; if (this.usageUser.usageUserId === 'Error') this.usageUser.usageUserId = (_a = localStorage.getItem(this.userIdKey)) !== null && _a !== void 0 ? _a : 'Error'; this.checkSession(); }; this.SetUsageConfig = (config) => { this.usageConfig = config; this.checkSession(); }; this.GetUser = () => { return Object.assign({}, this.usageUser); }; // eslint-disable-next-line @typescript-eslint/no-explicit-any this.parseName = (e) => { const value = `${e.feature || this.feature}-${e.subFeature || '$inherited$'}-${e.type}-${e.eventName || '$inherited$'}`; const featureKey = e.feature || this.feature; const subFeatureKey = e.subFeature ? featureKey + '-' + e.subFeature : ''; const eventNameKey = e.eventName ? featureKey + '-' + (e.subFeature || 'NA') + '-' + e.eventName : ''; return { key: eventNameKey || subFeatureKey || featureKey, value, featureKey, subFeatureKey, eventNameKey, }; }; this.getLatestEvent = (e) => { const { key, subFeatureKey, featureKey, eventNameKey } = this.parseName(e); //Page load key if (e.eventName == 'PageLoad') { return Object.assign({}, this.latestEvents[key.replace('PageLoad', 'PageLoadStart')]); } // Climb the hierarchy to fetch key const past = new Date('0001-01-01T00:00:00Z'); const closestMatchKey = Object.keys(this.latestEvents) .filter((a) => a.startsWith(key + '-')) .reduce((prev, curr) => { var _a, _b; const previous = ((_a = this.latestEvents[prev]) === null || _a === void 0 ? void 0 : _a.eventDate) || past; const current = ((_b = this.latestEvents[curr]) === null || _b === void 0 ? void 0 : _b.eventDate) || past; return current > previous ? curr : prev; }, ''); const caseIgnorantFeature = Object.keys(this.latestEvents).find((key) => key.toLowerCase() === featureKey.toLowerCase()) || ''; const latest = this.latestEvents[key] || // If there is a head-on match to key this.latestEvents[eventNameKey] || // If there is a closest event based key this.latestEvents[subFeatureKey] || // If there is a closest subfeature based key this.latestEvents[featureKey] || // If there is a closest feature based key this.latestEvents[closestMatchKey] || // IF there is a closes match by hierarchy travel this.latestEvents[this.feature] || // If there is no match at all, then send the latest helper event this.latestEvents[caseIgnorantFeature]; // Fallback to feature name searched by case-insensitive search return Object.assign({}, latest); }; this.MassageEvent = (event) => { var _a; const eventCopy = Object.assign({}, event); const name = this.parseName(event); this.checkSession(); if (!eventCopy.type) return eventCopy; let usageLog = {}; // Let's prepare the usageLog one step at a time. usageLog.name = name.value; usageLog.eventDate = event.eventDate || new Date(); switch (eventCopy.type) { case _UsageEvent__WEBPACK_IMPORTED_MODULE_1__["EventType"].Aware: const awareEvent = Object.assign({}, Object(___WEBPACK_IMPORTED_MODULE_2__["pickAwareEvent"])(eventCopy)); this.latestEvents[_UsageEvent__WEBPACK_IMPORTED_MODULE_1__["EventType"].Aware] = awareEvent; this.usageUser = Object(_UserAttribute__WEBPACK_IMPORTED_MODULE_0__["pickUserAttribute"])(Object.assign(Object.assign({}, this.usageUser), awareEvent)); if ('sessionId' in eventCopy) this.usageUser.sessionId = eventCopy.sessionId; //Retain the input session-id usageLog = awareEvent; break; case _UsageEvent__WEBPACK_IMPORTED_MODULE_1__["EventType"].User: //Lets build a new UsageLog from the user's event const latestEvent = this.getLatestEvent(eventCopy); const currentFeature = eventCopy.feature || (latestEvent === null || latestEvent === void 0 ? void 0 : latestEvent.feature) || this.feature; // Deduce current feature usageLog = Object.assign(Object.assign({}, usageLog), Object(_UserAttribute__WEBPACK_IMPORTED_MODULE_0__["pickUserAttribute"])(this.usageUser || eventCopy)); // Start with User Attributes usageLog = Object.assign(Object.assign(Object.assign({}, usageLog), Object(___WEBPACK_IMPORTED_MODULE_2__["pickUserEvent"])(eventCopy)), { feature: currentFeature }); if (eventCopy.eventName === 'PageLoadStart') { usageLog.pageTrackingId = this.Guid(); usageLog.startTime = new Date(); } else if (eventCopy.eventName === 'PageLoad') { // TODO: ras1 => remove hard-coding usageLog.pageTrackingId = (latestEvent === null || latestEvent === void 0 ? void 0 : latestEvent.startTime) ? latestEvent.pageTrackingId : this.Guid(); usageLog.timeTaken = eventCopy.timeTaken ? eventCopy.timeTaken : +new Date() - +((latestEvent === null || latestEvent === void 0 ? void 0 : latestEvent.startTime) || new Date()); } else { const latestUserEvent = this.getLatestEvent(eventCopy); if (latestUserEvent) { const tracker = Object.assign({}, Object(___WEBPACK_IMPORTED_MODULE_2__["pickUsageTracker"])(latestUserEvent)); usageLog.pageTrackingId = tracker.pageTrackingId; } } usageLog.actionTrackingId = this.Guid(); //Attach a uniqueGuid for the action. const newKey = this.parseName(Object.assign(Object.assign({}, eventCopy), { feature: currentFeature })); this.latestEvents[newKey.key] = usageLog; this.latestEvents[this.feature] = usageLog; // Store a copy of the latest event to the shell object break; case _UsageEvent__WEBPACK_IMPORTED_MODULE_1__["EventType"].System: const latestUserEvent = this.getLatestEvent(eventCopy); //Lets build a new UsageLog from the system event usageLog = Object.assign(Object.assign(Object.assign({}, usageLog), Object(_UserAttribute__WEBPACK_IMPORTED_MODULE_0__["pickUserAttribute"])((this.usageUser || eventCopy))), Object(___WEBPACK_IMPORTED_MODULE_2__["pickSystemEvent"])(eventCopy)); //TODO: How to handle a new page load event ? // if (!this.getLatestEvent(eventCopy)) { //} const userEvent = Object(___WEBPACK_IMPORTED_MODULE_2__["pickUserEvent"])(latestUserEvent); const tracker = Object(___WEBPACK_IMPORTED_MODULE_2__["pickUsageTracker"])(latestUserEvent); usageLog.pageTrackingId = tracker.pageTrackingId; usageLog.correlationTrackingId = tracker.actionTrackingId; if (!usageLog.feature) { usageLog.feature = userEvent.feature || 'NA'; //TODO: Test case input shouldnt be modified } if (!usageLog.subFeature) { usageLog.subFeature = userEvent.subFeature || 'NA'; //TODO: Test case input shouldnt be modified } if (!usageLog.eventName) { usageLog.eventName = userEvent.eventName; } break; } const newKey = this.parseName(usageLog); usageLog.name = newKey.value; usageLog.inheritedName = name.value; /* istanbul ignore next */ if (true) { this.consoleUsageLog(newKey.value, usageLog); } if ('sessionId' in eventCopy) usageLog.sessionId = eventCopy.sessionId; //Retain the input session-id usageLog.usageVersion = ((_a = eventCopy) === null || _a === void 0 ? void 0 : _a.usageVersion) || '1.0'; return usageLog; }; this.diffInMinutes = (date1, date2) => { let diff = (date1.getTime() - date2.getTime()) / 1000; diff /= 60; return Math.abs(Math.round(diff)); }; this.feature = feature; } /* istanbul ignore next */ consoleUsageLog(name, usageLogData) { const userEventStyle = 'color: #FFA500; padding: 2px 5px;'; const systemEventStyle = 'color: #c46210; padding: 2px 5px'; const boldFont = 'font-weight: bold;'; const eventStyle = usageLogData.type === _UsageEvent__WEBPACK_IMPORTED_MODULE_1__["EventType"].User ? userEventStyle : systemEventStyle; console.group('%cusage event %c %s', eventStyle, boldFont, name); console.dir(usageLogData); console.groupEnd(); } checkSession() { var _a; //Do not manage session until usageConfig is materialized if (this.usageConfig) { const lastActive = new Date(localStorage.getItem(this.lastActiveTimeKey) || new Date()); const sessionId = localStorage.getItem(this.sessionKey); const duration = this.diffInMinutes(lastActive, new Date()); if (duration < (((_a = this.usageConfig) === null || _a === void 0 ? void 0 : _a.sessionDurationMinutes) || -1) && sessionId) { this.usageUser.sessionId = sessionId; } else { this.usageUser.sessionId = this.Guid(); localStorage.setItem(this.sessionKey, this.usageUser.sessionId); } localStorage.setItem(this.lastActiveTimeKey, new Date().toString()); } } Guid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { const r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8; return v.toString(16); }); } } const UsageHelper = new UsageHelperImpl('Shell'); //# sourceMappingURL=Usage.helper.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/UsageEventName.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/UsageEventName.js ***! \******************************************************************************************************/ /*! exports provided: UsageEventName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsageEventName", function() { return UsageEventName; }); var UsageEventName; (function (UsageEventName) { UsageEventName["ButtonClicked"] = "ButtonClicked"; UsageEventName["BackEndAPICall"] = "BackEndAPICall"; UsageEventName["PageLoad"] = "PageLoad"; UsageEventName["PanelOpened"] = "PanelOpened"; UsageEventName["PanelClosed"] = "PanelClosed"; UsageEventName["CardAdded"] = "CardAdded"; UsageEventName["CardDeleted"] = "CardDeleted"; UsageEventName["CardResized"] = "CardResized"; UsageEventName["DatePickerDismissed"] = "DatePickerDismissed"; UsageEventName["CalendarMonthViewClicked"] = "CalendarMonthViewClicked"; UsageEventName["CalendarDayViewClicked"] = "CalendarDayViewClicked"; UsageEventName["CalendarClearButtonClicked"] = "CalendarClearButtonClicked"; UsageEventName["CalendarGoToTodayButtonClicked"] = "CalendarGoToTodayButtonClicked"; UsageEventName["CalendarDateClicked"] = "CalendarDateClicked"; UsageEventName["CalendarMonthClicked"] = "CalendarMonthClicked"; UsageEventName["CalendarNextButtonClicked"] = "CalendarNextButtonClicked"; UsageEventName["CalendarPrevButtonClicked"] = "CalendarPrevButtonClicked"; UsageEventName["ViewActivated"] = "ViewActivated"; UsageEventName["ViewDeactivated"] = "ViewDeactivated"; UsageEventName["MarkerSelected"] = "MarkerSelected"; UsageEventName["ListSelected"] = "ListSelected"; UsageEventName["LinkClicked"] = "LinkClicked"; UsageEventName["DatePickerClicked"] = "DatePickerClicked"; UsageEventName["DatePickerDateSelected"] = "DatePickerDateSelected"; UsageEventName["DatePickerFocused"] = "DatePickerDateSelected"; UsageEventName["ViewPhoto"] = "ViewPhoto"; UsageEventName["TabSelected"] = "TabSelected"; UsageEventName["DropdownSelected"] = "DropdownSelected"; UsageEventName["DropdownFocused"] = "DropdownFocused"; UsageEventName["CheckBoxChanged"] = "CheckBoxChanged"; UsageEventName["CheckBoxFocused"] = "CheckBoxFocused"; UsageEventName["RadioButtonChanged"] = "RadioButtonChanged"; UsageEventName["RadioButtonFocused"] = "RadioButtonFocused"; UsageEventName["TextChanged"] = "TextChanged"; UsageEventName["TextboxFocused"] = "TextboxFocused"; UsageEventName["OnFocus"] = "OnFocus"; UsageEventName["OnBlur"] = "OnBlur"; UsageEventName["TileLoaded"] = "TileLoaded"; UsageEventName["MobileRefresh"] = "MobileRefresh"; })(UsageEventName || (UsageEventName = {})); //# sourceMappingURL=UsageEventName.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent.js": /*!******************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent.js ***! \******************************************************************************************/ /*! exports provided: EventType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventType", function() { return EventType; }); var EventType; (function (EventType) { EventType["User"] = "UserAction"; EventType["System"] = "SystemAction"; EventType["Aware"] = "AwareAction"; })(EventType || (EventType = {})); //# sourceMappingURL=UsageEvent.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/AwareEvent.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/AwareEvent.js ***! \*****************************************************************************************************/ /*! exports provided: pickAwareEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickAwareEvent", function() { return pickAwareEvent; }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! .. */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); const pickAwareEvent = (props) => { return (({ timeTaken, usageUserId }) => ({ type: ___WEBPACK_IMPORTED_MODULE_0__["EventType"].Aware, timeTaken: timeTaken || 0, usageUserId: usageUserId || 'Error', }))(props || {}); }; //# sourceMappingURL=AwareEvent.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/SytemEvent.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/SytemEvent.js ***! \*****************************************************************************************************/ /*! exports provided: pickSystemEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickSystemEvent", function() { return pickSystemEvent; }); /* harmony import */ var _UsageEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../UsageEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent.js"); const pickSystemEvent = (props) => { return (({ eventName, feature, subFeature, subFeatureLevel2, featureLocation, timeTaken, businessTransactionId, experienceResult, }) => ({ type: _UsageEvent__WEBPACK_IMPORTED_MODULE_0__["EventType"].System, eventName, feature, subFeature, subFeatureLevel2, featureLocation, timeTaken: timeTaken || 0, experienceResult: experienceResult || true, businessTransactionId, }))(props || {}); }; //# sourceMappingURL=SytemEvent.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/UserEvent.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/UserEvent.js ***! \****************************************************************************************************/ /*! exports provided: pickUserEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickUserEvent", function() { return pickUserEvent; }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! .. */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); const pickUserEvent = (props) => { return (({ businessTransactionId, eventName, experienceResult, feature, subFeature, subFeatureLevel2, featureLocation, timeTaken, }) => ({ type: ___WEBPACK_IMPORTED_MODULE_0__["EventType"].User, businessTransactionId, eventName: eventName, experienceResult: experienceResult || true, feature, subFeature, subFeatureLevel2, featureLocation, timeTaken: timeTaken || 0, }))(props || {}); }; //# sourceMappingURL=UserEvent.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageFeatureProps.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageFeatureProps.js ***! \*************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=UsageFeatureProps.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageLog.js": /*!****************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageLog.js ***! \****************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=UsageLog.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageTracker.js": /*!********************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageTracker.js ***! \********************************************************************************************/ /*! exports provided: pickUsageTracker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickUsageTracker", function() { return pickUsageTracker; }); /* harmony import */ var _UsageEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UsageEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent.js"); const pickUsageTracker = (props) => { return (({ name, actionTrackingId, correlationTrackingId, pageTrackingId, startTime, eventDate, type, flightId, flightName, moduleName, usageUserId, }) => ({ name, actionTrackingId, correlationTrackingId, pageTrackingId, startTime: startTime || new Date(), eventDate: eventDate || new Date(), type: type || _UsageEvent__WEBPACK_IMPORTED_MODULE_0__["EventType"].User, flightId, flightName, moduleName, usageUserId, }))(props || {}); }; //# sourceMappingURL=UsageTracker.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UserAttribute.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UserAttribute.js ***! \*********************************************************************************************/ /*! exports provided: pickUserAttribute */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickUserAttribute", function() { return pickUserAttribute; }); /* harmony import */ var _Helpers_Usage_helper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Helpers/Usage.helper */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/Usage.helper.js"); const pickUserAttribute = (props) => { return (({ lastActiveTime, usageUserId, sessionId }) => ({ lastActiveTime: lastActiveTime || new Date(), usageUserId: usageUserId || 'Error', sessionId: sessionId || _Helpers_Usage_helper__WEBPACK_IMPORTED_MODULE_0__["UsageHelper"].Guid(), // TODO: guid }))(props || {}); }; //# sourceMappingURL=UserAttribute.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js": /*!*************************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js ***! \*************************************************************************************/ /*! exports provided: pickSystemEvent, pickUserEvent, pickAwareEvent, pickUsageTracker, pickUserAttribute, EventType, UsageHelper, UsageEventName, asCuppSchema */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _UsageFeatureProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UsageFeatureProps */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageFeatureProps.js"); /* empty/unused harmony star reexport *//* harmony import */ var _UsageEvent_SytemEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./UsageEvent/SytemEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/SytemEvent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickSystemEvent", function() { return _UsageEvent_SytemEvent__WEBPACK_IMPORTED_MODULE_1__["pickSystemEvent"]; }); /* harmony import */ var _UsageEvent_UserEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./UsageEvent/UserEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/UserEvent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUserEvent", function() { return _UsageEvent_UserEvent__WEBPACK_IMPORTED_MODULE_2__["pickUserEvent"]; }); /* harmony import */ var _UsageEvent_AwareEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./UsageEvent/AwareEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent/AwareEvent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickAwareEvent", function() { return _UsageEvent_AwareEvent__WEBPACK_IMPORTED_MODULE_3__["pickAwareEvent"]; }); /* harmony import */ var _Config_UsageTelemetryConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Config/UsageTelemetryConfig */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Config/UsageTelemetryConfig.js"); /* empty/unused harmony star reexport *//* harmony import */ var _UsageTracker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./UsageTracker */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageTracker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUsageTracker", function() { return _UsageTracker__WEBPACK_IMPORTED_MODULE_5__["pickUsageTracker"]; }); /* harmony import */ var _UserAttribute__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./UserAttribute */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UserAttribute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUserAttribute", function() { return _UserAttribute__WEBPACK_IMPORTED_MODULE_6__["pickUserAttribute"]; }); /* harmony import */ var _UsageEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./UsageEvent */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageEvent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventType", function() { return _UsageEvent__WEBPACK_IMPORTED_MODULE_7__["EventType"]; }); /* harmony import */ var _UsageLog__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./UsageLog */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/UsageLog.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Helpers_Usage_helper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Helpers/Usage.helper */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/Usage.helper.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsageHelper", function() { return _Helpers_Usage_helper__WEBPACK_IMPORTED_MODULE_9__["UsageHelper"]; }); /* harmony import */ var _Helpers_UsageEventName__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Helpers/UsageEventName */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/UsageEventName.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsageEventName", function() { return _Helpers_UsageEventName__WEBPACK_IMPORTED_MODULE_10__["UsageEventName"]; }); /* harmony import */ var _Helpers_CuppSchemaMapper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Helpers/CuppSchemaMapper */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/Helpers/CuppSchemaMapper.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asCuppSchema", function() { return _Helpers_CuppSchemaMapper__WEBPACK_IMPORTED_MODULE_11__["asCuppSchema"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Persona.js": /*!*****************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Persona.js ***! \*****************************************************************/ /*! exports provided: Persona, PersonaInitialsColor, PersonaSize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Persona_Persona__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Persona/Persona */ "./node_modules/@employee-experience/common/lib/Components/Persona/Persona.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Persona", function() { return _Components_Persona_Persona__WEBPACK_IMPORTED_MODULE_0__["Persona"]; }); /* harmony import */ var _fluentui_react_lib_components_Persona_Persona_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react/lib/components/Persona/Persona.types */ "./node_modules/@fluentui/react/lib/components/Persona/Persona.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaInitialsColor", function() { return _fluentui_react_lib_components_Persona_Persona_types__WEBPACK_IMPORTED_MODULE_1__["PersonaInitialsColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaSize", function() { return _fluentui_react_lib_components_Persona_Persona_types__WEBPACK_IMPORTED_MODULE_1__["PersonaSize"]; }); //# sourceMappingURL=Persona.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Placeholder.js": /*!*********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Placeholder.js ***! \*********************************************************************/ /*! exports provided: Placeholder */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Placeholder/Placeholder */ "./node_modules/@employee-experience/common/lib/Components/Placeholder/Placeholder.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Placeholder", function() { return _Components_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_0__["Placeholder"]; }); //# sourceMappingURL=Placeholder.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/PrimaryButton.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/PrimaryButton.js ***! \***********************************************************************/ /*! exports provided: PrimaryButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Button_PrimaryButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Button/PrimaryButton */ "./node_modules/@employee-experience/common/lib/Components/Button/PrimaryButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PrimaryButton", function() { return _Components_Button_PrimaryButton__WEBPACK_IMPORTED_MODULE_0__["PrimaryButton"]; }); //# sourceMappingURL=PrimaryButton.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/ReduxContext.js": /*!**********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/ReduxContext.js ***! \**********************************************************************/ /*! exports provided: ReduxContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Context_ReduxContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Context/ReduxContext */ "./node_modules/@employee-experience/common/lib/Context/ReduxContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReduxContext", function() { return _Context_ReduxContext__WEBPACK_IMPORTED_MODULE_0__["ReduxContext"]; }); //# sourceMappingURL=ReduxContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Resources/BreakPoints.js": /*!*******************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Resources/BreakPoints.js ***! \*******************************************************************************/ /*! exports provided: BreakPoints */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreakPoints", function() { return BreakPoints; }); var BreakPoints; (function (BreakPoints) { BreakPoints["minSmall"] = "480px"; })(BreakPoints || (BreakPoints = {})); //# sourceMappingURL=BreakPoints.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Resources/Colors.js": /*!**************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Resources/Colors.js ***! \**************************************************************************/ /*! exports provided: Colors */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Colors", function() { return Colors; }); var Colors; (function (Colors) { Colors["Primary"] = "#0064C1"; })(Colors || (Colors = {})); //# sourceMappingURL=Colors.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/Resources/TelemetryEvents.js": /*!***********************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/Resources/TelemetryEvents.js ***! \***********************************************************************************/ /*! exports provided: TelemetryEvents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TelemetryEvents", function() { return TelemetryEvents; }); var TelemetryEvents; (function (TelemetryEvents) { // App TelemetryEvents["SessionStarted"] = "SessionStarted"; // User TelemetryEvents["UserLogInRequested"] = "UserLogInRequested"; TelemetryEvents["UserLoginFailed"] = "UserLoginFailed"; TelemetryEvents["UserLogOutRequested"] = "UserLogOutRequested"; TelemetryEvents["UserLogOutFailed"] = "UserLogOutFailed"; TelemetryEvents["AcquireTokenFailed"] = "AcquireTokenFailed"; // Routes TelemetryEvents["PageEnter"] = "PageEnter"; TelemetryEvents["PageLeave"] = "PageLeave"; // Side nav TelemetryEvents["NavLinkClicked"] = "NavLinkClicked"; // Header TelemetryEvents["HeaderAppNameLinkClicked"] = "HeaderAppNameLinkClicked"; TelemetryEvents["HeaderSearchRequested"] = "HeaderSearchRequested"; TelemetryEvents["HeaderPanelOpened"] = "HeaderPanelOpened"; TelemetryEvents["HeaderPanelClosed"] = "HeaderPanelClosed"; TelemetryEvents["InvalidComponentConfig"] = "InvalidComponentConfig"; // HTTP TelemetryEvents["APIRequestStarted"] = "APIRequestStarted"; TelemetryEvents["APIResponseReceived"] = "APIResponseReceived"; TelemetryEvents["APIFailedWithoutResponse"] = "APIFailedWithoutResponse"; TelemetryEvents["APIFailedResponseReceived"] = "APIFailedResponseReceived"; // Components TelemetryEvents["ButtonClicked"] = "ButtonClicked"; TelemetryEvents["LinkClicked"] = "LinkCliked"; TelemetryEvents["FormElementClicked"] = "FormElementClicked"; })(TelemetryEvents || (TelemetryEvents = {})); //# sourceMappingURL=TelemetryEvents.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/TelemetryEvents.js": /*!*************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/TelemetryEvents.js ***! \*************************************************************************/ /*! exports provided: TelemetryEvents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Resources_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Resources/TelemetryEvents */ "./node_modules/@employee-experience/common/lib/Resources/TelemetryEvents.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TelemetryEvents", function() { return _Resources_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"]; }); //# sourceMappingURL=TelemetryEvents.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/TextField.js": /*!*******************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/TextField.js ***! \*******************************************************************/ /*! exports provided: TextField */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Form_TextField_TextField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Form/TextField/TextField */ "./node_modules/@employee-experience/common/lib/Components/Form/TextField/TextField.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextField", function() { return _Components_Form_TextField_TextField__WEBPACK_IMPORTED_MODULE_0__["TextField"]; }); //# sourceMappingURL=TextField.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/index.js": /*!***************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/index.js ***! \***************************************************************/ /*! exports provided: pickSystemEvent, pickUserEvent, pickAwareEvent, pickUsageTracker, pickUserAttribute, EventType, UsageHelper, UsageEventName, asCuppSchema, withContext, TelemetryEvents, ReduxContext, ComponentContext, ComponentProvider, useLoginOnStartup, usePageTracking, useGraphPhoto, useUser, useDynamicReducer, DefaultButton, PrimaryButton, ActionButton, Card, cardHeadingStyles, CardHeading, CardContent, Dashboard, DashboardEdit, findAvailableLocation, Link, shouldUseAnchorTag, Dropdown, Checkbox, InputGroup, DatePicker, TextField, BreakPoints, Colors, Placeholder, Persona, PersonaInitialsColor, PersonaSize, useUsageTelemetry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Models__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Models */ "./node_modules/@employee-experience/common/lib/Models.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickSystemEvent", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["pickSystemEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUserEvent", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["pickUserEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickAwareEvent", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["pickAwareEvent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUsageTracker", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["pickUsageTracker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pickUserAttribute", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["pickUserAttribute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventType", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["EventType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsageHelper", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["UsageHelper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UsageEventName", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["UsageEventName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asCuppSchema", function() { return _Models__WEBPACK_IMPORTED_MODULE_0__["asCuppSchema"]; }); /* harmony import */ var _withContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./withContext */ "./node_modules/@employee-experience/common/lib/withContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return _withContext__WEBPACK_IMPORTED_MODULE_1__["withContext"]; }); /* harmony import */ var _TelemetryEvents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TelemetryEvents */ "./node_modules/@employee-experience/common/lib/TelemetryEvents.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TelemetryEvents", function() { return _TelemetryEvents__WEBPACK_IMPORTED_MODULE_2__["TelemetryEvents"]; }); /* harmony import */ var _ReduxContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ReduxContext */ "./node_modules/@employee-experience/common/lib/ReduxContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReduxContext", function() { return _ReduxContext__WEBPACK_IMPORTED_MODULE_3__["ReduxContext"]; }); /* harmony import */ var _ComponentContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentContext", function() { return _ComponentContext__WEBPACK_IMPORTED_MODULE_4__["ComponentContext"]; }); /* harmony import */ var _ComponentProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ComponentProvider */ "./node_modules/@employee-experience/common/lib/ComponentProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentProvider", function() { return _ComponentProvider__WEBPACK_IMPORTED_MODULE_5__["ComponentProvider"]; }); /* harmony import */ var _useLoginOnStartup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useLoginOnStartup */ "./node_modules/@employee-experience/common/lib/useLoginOnStartup.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useLoginOnStartup", function() { return _useLoginOnStartup__WEBPACK_IMPORTED_MODULE_6__["useLoginOnStartup"]; }); /* harmony import */ var _usePageTracking__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./usePageTracking */ "./node_modules/@employee-experience/common/lib/usePageTracking.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "usePageTracking", function() { return _usePageTracking__WEBPACK_IMPORTED_MODULE_7__["usePageTracking"]; }); /* harmony import */ var _useGraphPhoto__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useGraphPhoto */ "./node_modules/@employee-experience/common/lib/useGraphPhoto.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useGraphPhoto", function() { return _useGraphPhoto__WEBPACK_IMPORTED_MODULE_8__["useGraphPhoto"]; }); /* harmony import */ var _useUser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useUser */ "./node_modules/@employee-experience/common/lib/useUser.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUser", function() { return _useUser__WEBPACK_IMPORTED_MODULE_9__["useUser"]; }); /* harmony import */ var _useDynamicReducer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useDynamicReducer */ "./node_modules/@employee-experience/common/lib/useDynamicReducer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useDynamicReducer", function() { return _useDynamicReducer__WEBPACK_IMPORTED_MODULE_10__["useDynamicReducer"]; }); /* harmony import */ var _DefaultButton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DefaultButton */ "./node_modules/@employee-experience/common/lib/DefaultButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultButton", function() { return _DefaultButton__WEBPACK_IMPORTED_MODULE_11__["DefaultButton"]; }); /* harmony import */ var _PrimaryButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./PrimaryButton */ "./node_modules/@employee-experience/common/lib/PrimaryButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PrimaryButton", function() { return _PrimaryButton__WEBPACK_IMPORTED_MODULE_12__["PrimaryButton"]; }); /* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ActionButton */ "./node_modules/@employee-experience/common/lib/ActionButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return _ActionButton__WEBPACK_IMPORTED_MODULE_13__["ActionButton"]; }); /* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Card */ "./node_modules/@employee-experience/common/lib/Card.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _Card__WEBPACK_IMPORTED_MODULE_14__["Card"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cardHeadingStyles", function() { return _Card__WEBPACK_IMPORTED_MODULE_14__["cardHeadingStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return _Card__WEBPACK_IMPORTED_MODULE_14__["CardHeading"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardContent", function() { return _Card__WEBPACK_IMPORTED_MODULE_14__["CardContent"]; }); /* harmony import */ var _Dashboard__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Dashboard */ "./node_modules/@employee-experience/common/lib/Dashboard.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dashboard", function() { return _Dashboard__WEBPACK_IMPORTED_MODULE_15__["Dashboard"]; }); /* harmony import */ var _DashboardEdit__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./DashboardEdit */ "./node_modules/@employee-experience/common/lib/DashboardEdit.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DashboardEdit", function() { return _DashboardEdit__WEBPACK_IMPORTED_MODULE_16__["DashboardEdit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findAvailableLocation", function() { return _DashboardEdit__WEBPACK_IMPORTED_MODULE_16__["findAvailableLocation"]; }); /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Link */ "./node_modules/@employee-experience/common/lib/Link.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return _Link__WEBPACK_IMPORTED_MODULE_17__["Link"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shouldUseAnchorTag", function() { return _Link__WEBPACK_IMPORTED_MODULE_17__["shouldUseAnchorTag"]; }); /* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/@employee-experience/common/lib/Dropdown.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_18__["Dropdown"]; }); /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Checkbox */ "./node_modules/@employee-experience/common/lib/Checkbox.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _Checkbox__WEBPACK_IMPORTED_MODULE_19__["Checkbox"]; }); /* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./InputGroup */ "./node_modules/@employee-experience/common/lib/InputGroup.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _InputGroup__WEBPACK_IMPORTED_MODULE_20__["InputGroup"]; }); /* harmony import */ var _DatePicker__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./DatePicker */ "./node_modules/@employee-experience/common/lib/DatePicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _DatePicker__WEBPACK_IMPORTED_MODULE_21__["DatePicker"]; }); /* harmony import */ var _TextField__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./TextField */ "./node_modules/@employee-experience/common/lib/TextField.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextField", function() { return _TextField__WEBPACK_IMPORTED_MODULE_22__["TextField"]; }); /* empty/unused harmony star reexport *//* empty/unused harmony star reexport *//* harmony import */ var _BreakPoints__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./BreakPoints */ "./node_modules/@employee-experience/common/lib/BreakPoints.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreakPoints", function() { return _BreakPoints__WEBPACK_IMPORTED_MODULE_23__["BreakPoints"]; }); /* harmony import */ var _Colors__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Colors */ "./node_modules/@employee-experience/common/lib/Colors.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Colors", function() { return _Colors__WEBPACK_IMPORTED_MODULE_24__["Colors"]; }); /* harmony import */ var _Placeholder__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Placeholder */ "./node_modules/@employee-experience/common/lib/Placeholder.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Placeholder", function() { return _Placeholder__WEBPACK_IMPORTED_MODULE_25__["Placeholder"]; }); /* harmony import */ var _Persona__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Persona */ "./node_modules/@employee-experience/common/lib/Persona.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Persona", function() { return _Persona__WEBPACK_IMPORTED_MODULE_26__["Persona"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaInitialsColor", function() { return _Persona__WEBPACK_IMPORTED_MODULE_26__["PersonaInitialsColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaSize", function() { return _Persona__WEBPACK_IMPORTED_MODULE_26__["PersonaSize"]; }); /* harmony import */ var _useUsageTelemetry__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./useUsageTelemetry */ "./node_modules/@employee-experience/common/lib/useUsageTelemetry.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUsageTelemetry", function() { return _useUsageTelemetry__WEBPACK_IMPORTED_MODULE_27__["useUsageTelemetry"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/useDynamicReducer.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/useDynamicReducer.js ***! \***************************************************************************/ /*! exports provided: useDynamicReducer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_useDynamicReducer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/useDynamicReducer */ "./node_modules/@employee-experience/common/lib/Hooks/useDynamicReducer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useDynamicReducer", function() { return _Hooks_useDynamicReducer__WEBPACK_IMPORTED_MODULE_0__["useDynamicReducer"]; }); //# sourceMappingURL=useDynamicReducer.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/useGraphPhoto.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/useGraphPhoto.js ***! \***********************************************************************/ /*! exports provided: useGraphPhoto */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_useGraphPhoto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/useGraphPhoto */ "./node_modules/@employee-experience/common/lib/Hooks/useGraphPhoto.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useGraphPhoto", function() { return _Hooks_useGraphPhoto__WEBPACK_IMPORTED_MODULE_0__["useGraphPhoto"]; }); //# sourceMappingURL=useGraphPhoto.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/useLoginOnStartup.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/useLoginOnStartup.js ***! \***************************************************************************/ /*! exports provided: useLoginOnStartup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_useLoginOnStartup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/useLoginOnStartup */ "./node_modules/@employee-experience/common/lib/Hooks/useLoginOnStartup.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useLoginOnStartup", function() { return _Hooks_useLoginOnStartup__WEBPACK_IMPORTED_MODULE_0__["useLoginOnStartup"]; }); //# sourceMappingURL=useLoginOnStartup.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/usePageTitle.js": /*!**********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/usePageTitle.js ***! \**********************************************************************/ /*! exports provided: usePageTitle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_usePageTitle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/usePageTitle */ "./node_modules/@employee-experience/common/lib/Hooks/usePageTitle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "usePageTitle", function() { return _Hooks_usePageTitle__WEBPACK_IMPORTED_MODULE_0__["usePageTitle"]; }); //# sourceMappingURL=usePageTitle.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/usePageTracking.js": /*!*************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/usePageTracking.js ***! \*************************************************************************/ /*! exports provided: usePageTracking */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_usePageTracking__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/usePageTracking */ "./node_modules/@employee-experience/common/lib/Hooks/usePageTracking.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "usePageTracking", function() { return _Hooks_usePageTracking__WEBPACK_IMPORTED_MODULE_0__["usePageTracking"]; }); //# sourceMappingURL=usePageTracking.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/useUsageTelemetry.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/useUsageTelemetry.js ***! \***************************************************************************/ /*! exports provided: useUsageTelemetry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_useUsageTelemetry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/useUsageTelemetry */ "./node_modules/@employee-experience/common/lib/Hooks/useUsageTelemetry.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUsageTelemetry", function() { return _Hooks_useUsageTelemetry__WEBPACK_IMPORTED_MODULE_0__["useUsageTelemetry"]; }); //# sourceMappingURL=useUsageTelemetry.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/useUser.js": /*!*****************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/useUser.js ***! \*****************************************************************/ /*! exports provided: useUser */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Hooks_useUser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hooks/useUser */ "./node_modules/@employee-experience/common/lib/Hooks/useUser.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUser", function() { return _Hooks_useUser__WEBPACK_IMPORTED_MODULE_0__["useUser"]; }); //# sourceMappingURL=useUser.js.map /***/ }), /***/ "./node_modules/@employee-experience/common/lib/withContext.js": /*!*********************************************************************!*\ !*** ./node_modules/@employee-experience/common/lib/withContext.js ***! \*********************************************************************/ /*! exports provided: withContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _HOCs_withContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HOCs/withContext */ "./node_modules/@employee-experience/common/lib/HOCs/withContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return _HOCs_withContext__WEBPACK_IMPORTED_MODULE_0__["withContext"]; }); //# sourceMappingURL=withContext.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/ComponentLoader.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/ComponentLoader.js ***! \***********************************************************************/ /*! exports provided: ComponentLoader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Services_ComponentLoader_ComponentLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Services/ComponentLoader/ComponentLoader */ "./node_modules/@employee-experience/core/lib/Services/ComponentLoader/ComponentLoader.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentLoader", function() { return _Services_ComponentLoader_ComponentLoader__WEBPACK_IMPORTED_MODULE_0__["ComponentLoader"]; }); //# sourceMappingURL=ComponentLoader.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/GraphClient.js": /*!*******************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/GraphClient.js ***! \*******************************************************************/ /*! exports provided: GraphClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Services_GraphClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Services/GraphClient */ "./node_modules/@employee-experience/core/lib/Services/GraphClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphClient", function() { return _Services_GraphClient__WEBPACK_IMPORTED_MODULE_0__["GraphClient"]; }); //# sourceMappingURL=GraphClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/HttpClient.js": /*!******************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/HttpClient.js ***! \******************************************************************/ /*! exports provided: HttpClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Services_HttpClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Services/HttpClient */ "./node_modules/@employee-experience/core/lib/Services/HttpClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpClient", function() { return _Services_HttpClient__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]; }); //# sourceMappingURL=HttpClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/MSALV2Client.js": /*!********************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/MSALV2Client.js ***! \********************************************************************/ /*! exports provided: MSALV2Client */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Services_MSALV2Client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Services/MSALV2Client */ "./node_modules/@employee-experience/core/lib/Services/MSALV2Client/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MSALV2Client", function() { return _Services_MSALV2Client__WEBPACK_IMPORTED_MODULE_0__["MSALV2Client"]; }); //# sourceMappingURL=MSALV2Client.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Services/ComponentLoader/ComponentLoader.js": /*!************************************************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Services/ComponentLoader/ComponentLoader.js ***! \************************************************************************************************/ /*! exports provided: ComponentLoader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentLoader", function() { return ComponentLoader; }); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; class ComponentLoader { constructor(telemetryClient, httpClient) { // Keeps track of same script being requested multiple times at once this.duplicateRequestHandlers = {}; this.telemetryClient = telemetryClient; this.httpClient = httpClient; window.__WIDGETS__ = window.__WIDGETS__ || {}; } loadCommon(scriptLocation) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => { const script = document.createElement('script'); script.onload = () => { resolve(); }; script.onerror = reject; script.src = scriptLocation; document.body.appendChild(script); }); }); } load(config) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => { if (!this.isValidComponentConfig(config)) return; const fileName = !config.fileName || config.fileName.length == 0 ? this.getFileName(config.script) : config.fileName; if (this.isComponentLoaded(fileName, config.name)) { return resolve(this.getComponentTemplate(fileName, config.name)); } if (this.duplicateRequestHandlers.hasOwnProperty(fileName)) { this.duplicateRequestHandlers[fileName].push({ resolve, reject, }); return; } this.duplicateRequestHandlers[fileName] = this.duplicateRequestHandlers[fileName] || []; const script = document.createElement('script'); script.onload = () => { if (this.isComponentLoaded(fileName, config.name)) { const template = this.getComponentTemplate(fileName, config.name); resolve(template); this.duplicateRequestHandlers[fileName].forEach(({ resolve: success }) => success(template)); } else { const error = new Error('Script was loaded, but component was not found.'); reject(error); this.duplicateRequestHandlers[fileName].forEach(({ reject: fail }) => fail(error)); } delete this.duplicateRequestHandlers[fileName]; }; script.async = true; script.onerror = () => reject(new Error('Failed to load script')); script.src = config.script; document.body.appendChild(script); }); }); } loadSecured(config, resourceOrScopes) { return __awaiter(this, void 0, void 0, function* () { if (!this.httpClient) throw new Error('HttpClient is not available for ComponentLoader'); return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { var _a; if (!this.isValidComponentConfig(config)) return; const fileName = !config.fileName || config.fileName.length == 0 ? this.getFileName(config.script) : config.fileName; if (this.isComponentLoaded(fileName, config.name)) { return resolve(this.getComponentTemplate(fileName, config.name)); } if (this.duplicateRequestHandlers.hasOwnProperty(fileName)) { this.duplicateRequestHandlers[fileName].push({ resolve, reject, }); return; } this.duplicateRequestHandlers[fileName] = this.duplicateRequestHandlers[fileName] || []; try { const result = yield ((_a = this.httpClient) === null || _a === void 0 ? void 0 : _a.request({ url: config.script, responseType: 'text', resource: resourceOrScopes, })); if (result === null || result === void 0 ? void 0 : result.data) { eval(result === null || result === void 0 ? void 0 : result.data); if (this.isComponentLoaded(fileName, config.name)) { const template = this.getComponentTemplate(fileName, config.name); resolve(template); this.duplicateRequestHandlers[fileName].forEach(({ resolve: success }) => success(template)); } else { const error = new Error('Script was loaded, but component was not found.'); reject(error); this.duplicateRequestHandlers[fileName].forEach(({ reject: fail }) => fail(error)); } delete this.duplicateRequestHandlers[fileName]; } } catch (e) { reject(e); } })); }); } getFileName(bundleLocation) { const routes = bundleLocation.split('/'); let fileName = routes.pop(); if (!fileName) return ''; if (fileName.indexOf('?') > -1) fileName = fileName.split('?')[0]; return fileName.replace('.js', ''); } isComponentLoaded(fileName, componentName) { return this.isScriptLoaded(fileName) && !!window.__WIDGETS__[fileName][componentName]; } isScriptLoaded(fileName) { return !!window.__WIDGETS__[fileName]; } getComponentTemplate(fileName, componentName) { return window.__WIDGETS__[fileName][componentName]; } isValidComponentConfig(componentConfig) { if (!componentConfig.script) return false; if (!componentConfig.name) return false; return true; } } //# sourceMappingURL=ComponentLoader.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Services/GraphClient.js": /*!****************************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Services/GraphClient.js ***! \****************************************************************************/ /*! exports provided: GraphClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphClient", function() { return GraphClient; }); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; class GraphClient { constructor(httpClient) { this.graphBaseUrl = 'https://graph.microsoft.com/v1.0'; this.graphResourceUri = 'https://graph.microsoft.com'; this.httpClient = httpClient; } getPhoto(upn, size = undefined) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { try { let url = `${this.graphBaseUrl}/users/${upn}`; url = `${url}/${size ? `photos/${size}x${size}/$value` : 'photo/$value'}`; const { data } = yield this.httpClient.request({ url, resource: this.graphResourceUri, responseType: 'blob', }, { silentError: true }); const reader = new FileReader(); reader.onload = () => { if (reader.result) { resolve(reader.result.toString()); } else { reject(); } }; reader.readAsDataURL(data); } catch (_a) { resolve(null); } })); }); } } //# sourceMappingURL=GraphClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Services/HttpClient.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Services/HttpClient.js ***! \***************************************************************************/ /*! exports provided: HttpClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpClient", function() { return HttpClient; }); /* harmony import */ var _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @employee-experience/common/lib/TelemetryEvents */ "./node_modules/@employee-experience/common/lib/TelemetryEvents.js"); /* harmony import */ var _Shared_guid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Shared/guid */ "./node_modules/@employee-experience/core/lib/Shared/guid.js"); /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @employee-experience/common/lib/Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; class HttpClient { constructor(telemetryClient, authClient = null, options = null) { this.options = { logPayload: false, correlationIdHeaderName: 'x-correlation-id', disableCorrelationId: false, }; this.getChildInstance = (telemetryClient, authClient) => { return new HttpClient(telemetryClient, authClient, this.options); }; this.telemetryClient = telemetryClient; this.authClient = authClient; this.options = Object.assign({}, this.options, options); } request(request, options, event) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { var _a; const correlationId = this.telemetryClient.getCorrelationId(); const correlationHeader = {}; if (!this.options.disableCorrelationId && !(options === null || options === void 0 ? void 0 : options.disableCorrelationId)) { correlationHeader[request.correlationIdHeaderName || this.options.correlationIdHeaderName || 'CorrelationId'] = correlationId; } const customTelemetryProperty = (_a = options === null || options === void 0 ? void 0 : options.customTelemetryProperties) !== null && _a !== void 0 ? _a : {}; const requestTelemetryProperties = Object.assign({ method: request.method || 'get', url: request.url, requestId: Object(_Shared_guid__WEBPACK_IMPORTED_MODULE_1__["guid"])(), resource: request.resource }, customTelemetryProperty); const requestOptions = Object.assign(Object.assign({}, request), { method: request.method || 'get', headers: Object.assign({ 'Content-Type': 'application/json', }, correlationHeader, request.headers, request.header) }); try { let token = request.accessToken; if (!request.accessToken && request.resource && this.authClient) { token = yield this.authClient.acquireToken(request.resource); } if (token) { requestOptions.headers = Object.assign({}, requestOptions.headers, { Authorization: `Bearer ${token}`, }); } } catch (ex) { reject({ status: -1, statusText: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"].AcquireTokenFailed, data: ex, }); } const startTime = new Date(); try { this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"].APIRequestStarted, properties: Object.assign(Object.assign({}, requestTelemetryProperties), this.getPayloadTelemetryProperty(this.options.logPayload, request.data)), }); const response = yield axios__WEBPACK_IMPORTED_MODULE_2___default.a.request(requestOptions); const endTime = new Date(); const elapsed = endTime.getTime() - startTime.getTime(); const responseTelemetryProperties = Object.assign(Object.assign({}, requestTelemetryProperties), { status: response.status, statusText: response.statusText, elapsed }); this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"].APIResponseReceived, properties: Object.assign(Object.assign({}, responseTelemetryProperties), this.getPayloadTelemetryProperty(this.options.logPayload, response.data)), }); const usageEvent = Object.assign(Object.assign({}, event), { type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["EventType"].System, timeTaken: elapsed, experienceResult: true, // Do not log the response data. businessTransactionId: JSON.stringify(Object.assign({ status: response.status, correlationId }, requestTelemetryProperties)) }); this.telemetryClient.trackEvent(usageEvent); resolve({ status: response.status, statusText: response.statusText, data: response.data, headers: response.headers, }); } catch (e) { const ex = e; if (ex.response) { const errorTelemetryProperty = Object.assign(Object.assign({}, requestTelemetryProperties), { status: ex.response.status, statusText: ex.response.statusText, error: ex.response.data }); this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"].APIFailedResponseReceived, properties: errorTelemetryProperty, }); const usageEvent = Object.assign(Object.assign({}, event), { type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["EventType"].System, timeTaken: +new Date() - +startTime, experienceResult: false, businessTransactionId: JSON.stringify(Object.assign({ status: ex.response.status, correlationId }, requestTelemetryProperties)) }); this.telemetryClient.trackEvent(usageEvent); if (!options || !options.silentError) { this.telemetryClient.trackException({ exception: new Error(ex.response.statusText), properties: errorTelemetryProperty, }); } reject({ status: ex.response.status, statusText: ex.response.statusText, data: ex.response.data, }); } else { this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"].APIFailedWithoutResponse, properties: requestTelemetryProperties, }); const usageEvent = Object.assign(Object.assign({}, event), { type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_3__["EventType"].System, timeTaken: +new Date() - +startTime, experienceResult: false, //Do not log the response data. businessTransactionId: JSON.stringify(Object.assign({ status: 'Unknown', correlationId }, requestTelemetryProperties)) }); this.telemetryClient.trackEvent(usageEvent); this.telemetryClient.trackException({ exception: ex, properties: requestTelemetryProperties, }); reject({ status: -1, statusText: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_0__["TelemetryEvents"].APIFailedWithoutResponse, data: ex, }); } } })); }); } get(url, request, option, event) { return this.request(Object.assign({}, request, { url, method: 'get' }), option, event); } post(url, request, option, event) { return this.request(Object.assign({}, request, { url, method: 'post' }), option, event); } delete(url, request, option, event) { return this.request(Object.assign({}, request, { url, method: 'delete' }), option, event); } put(url, request, option, event) { return this.request(Object.assign({}, request, { url, method: 'put' }), option, event); } patch(url, request, option, event) { return this.request(Object.assign({}, request, { url, method: 'patch' }), option, event); } getPayloadTelemetryProperty(shouldLogPayload = false, payload) { return shouldLogPayload ? { payload } : {}; } } //# sourceMappingURL=HttpClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Services/MSALV2Client/MSALV2Client.js": /*!******************************************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Services/MSALV2Client/MSALV2Client.js ***! \******************************************************************************************/ /*! exports provided: MSALV2Client */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MSALV2Client", function() { return MSALV2Client; }); /* harmony import */ var _azure_msal_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @azure/msal-browser */ "./node_modules/@azure/msal-browser/dist/index.js"); /* harmony import */ var _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @employee-experience/common/lib/TelemetryEvents */ "./node_modules/@employee-experience/common/lib/TelemetryEvents.js"); var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; class MSALV2Client { constructor(config, telemetryClient, options = {}) { this.account = null; // Tracks whether there has been another login request during login redirect // If another login is called before login redirect is completed, // MSAL will throw interaction_in_progress exception this.isLoginRequested = false; // Tracks whether the login redirect has been completed this.isRedirectComplete = false; // Tracks all acquireTokens requests made during login redirection this.acquireTokenRequests = {}; // Tracks all getUser requests made during login redirection this.getUserRequests = []; this.telemetryClient = telemetryClient; this.config = config; this.authContext = new _azure_msal_browser__WEBPACK_IMPORTED_MODULE_0__["PublicClientApplication"]({ auth: config.auth, cache: Object.assign({ cacheLocation: 'sessionStorage' }, config.cache), }); this.options = options; this.authContext.handleRedirectPromise().then(this.handleRedirectCompleted.bind(this)); } login(loginOptions = {}) { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { var _a, _b; this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_1__["TelemetryEvents"].UserLogInRequested, }); try { if (this.isRedirectComplete) { yield this.authContext.loginRedirect({ scopes: (_a = loginOptions === null || loginOptions === void 0 ? void 0 : loginOptions.scopes) !== null && _a !== void 0 ? _a : [], }); } else { this.isLoginRequested = true; } resolve(); } catch (ex) { this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_1__["TelemetryEvents"].UserLoginFailed, }); if (ex instanceof _azure_msal_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserAuthError"]) { sessionStorage.clear(); yield this.authContext.loginRedirect({ scopes: (_b = loginOptions === null || loginOptions === void 0 ? void 0 : loginOptions.scopes) !== null && _b !== void 0 ? _b : [], }); } else { reject(ex); } } })); } logOut() { return new Promise((resolve, reject) => { this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_1__["TelemetryEvents"].UserLogOutRequested, }); try { this.authContext.logout(); resolve(); } catch (ex) { this.telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_1__["TelemetryEvents"].UserLogOutFailed, }); reject(ex); } }); } getUser() { return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { if (this.isRedirectComplete) { const user = yield this.getUserInner(); resolve(user); } else { this.addGetUserRequest(resolve); } })); } getUserId() { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { try { const user = yield this.getUser(); resolve(user ? user.id : null); } catch (ex) { reject(ex); } })); } isLoggedIn() { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { try { const user = yield this.getUser(); resolve(!!user); } catch (ex) { reject(ex); } })); } acquireToken(scopes) { return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { if (this.isRedirectComplete && this.account) { const accessToken = yield this.acquireTokenSilent(scopes); resolve(accessToken); } else { this.addAcquireTokenRequest(scopes, resolve); } })); } handleRedirectCompleted(response) { this.account = (response === null || response === void 0 ? void 0 : response.account) || this.getCachedUser(); this.isRedirectComplete = true; // Trigger login only if login redirection completed without the account info // This means there was no login request perviously if (this.isLoginRequested && !this.account) { this.login().catch(); return; } if (this.account) { this.flushAcquireTokenRequests(); } this.flushGetUserRequests(); } getUserInner() { return new Promise((resolve, reject) => { try { const user = this.getCachedUser(); if (!user) { resolve(null); return; } resolve({ id: user.username, email: user.username, name: user.name || this.getNameFromIdToken(user.idTokenClaims) || '', oid: user.homeAccountId, }); } catch (ex) { reject(ex); } }); } getCachedUser() { const activeAccount = this.authContext.getActiveAccount(); if (activeAccount) return activeAccount; const users = this.authContext.getAllAccounts(); if (!users || users.length === 0) return null; if (users.length === 1) { const selectedUser = users[0]; this.authContext.setActiveAccount(selectedUser); return selectedUser; } if (users.length > 1) { if (this.options.onMultipleAccountFound) { const selectedUser = this.options.onMultipleAccountFound(users); if (selectedUser) { this.authContext.setActiveAccount(selectedUser); return selectedUser; } } throw new Error('MultipleAccountFound'); } } normalizeScopes(scopes) { let normalizedScopes = []; if (typeof scopes === 'string') normalizedScopes.push(scopes + '/.default'); else normalizedScopes = [...scopes]; return normalizedScopes; } addGetUserRequest(callback) { this.getUserRequests.push(callback); } flushGetUserRequests() { this.getUserRequests.forEach((cb) => { this.getUserInner().then(cb); }); } addAcquireTokenRequest(scopes, callback) { const normalizedScopes = this.normalizeScopes(scopes); const key = normalizedScopes.join(','); this.acquireTokenRequests[key] = this.acquireTokenRequests[key] || []; this.acquireTokenRequests[key].push(callback); } flushAcquireTokenRequests() { for (const key in this.acquireTokenRequests) { const scopes = key.split(','); this.acquireTokenSilent(scopes).then((accessToken) => { this.acquireTokenRequests[key].forEach((cb) => { cb(accessToken); }); }); } } acquireTokenSilent(scopes) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve) => { var _a, _b; const normalizedScopes = this.normalizeScopes(scopes); this.authContext .acquireTokenSilent({ authority: (_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.authority, scopes: normalizedScopes, account: this.account, correlationId: this.telemetryClient.getCorrelationId(), redirectUri: ((_b = this.config.auth) === null || _b === void 0 ? void 0 : _b.redirectUri) || window.location.origin, }) .then(({ accessToken }) => { if (accessToken) { resolve(accessToken); return; } // Azure B2C does not return access token if login did not return access token for the scope requested. // Throw exception to trigger acquireTokenRedirect throw new Error('NoAccessTokenReceived'); }) .catch((e) => { var _a, _b; if (this.options.onAcquireTokenError) { this.options.onAcquireTokenError(e, scopes); } else { if (e instanceof _azure_msal_browser__WEBPACK_IMPORTED_MODULE_0__["InteractionRequiredAuthError"]) { // fallback to interaction when silent call fails this.authContext.acquireTokenRedirect({ authority: (_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.authority, scopes: normalizedScopes, correlationId: this.telemetryClient.getCorrelationId(), redirectUri: ((_b = this.config.auth) === null || _b === void 0 ? void 0 : _b.redirectUri) || window.location.origin, }); } } }); }); }); } getNameFromIdToken(idTokenClaim) { if (!idTokenClaim) return ''; if (idTokenClaim.family_name && idTokenClaim.given_name) { return `${idTokenClaim.given_name} ${idTokenClaim.family_name}`; } return ''; } } //# sourceMappingURL=MSALV2Client.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Services/MSALV2Client/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Services/MSALV2Client/index.js ***! \***********************************************************************************/ /*! exports provided: MSALV2Client */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _MSALV2Client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MSALV2Client */ "./node_modules/@employee-experience/core/lib/Services/MSALV2Client/MSALV2Client.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MSALV2Client", function() { return _MSALV2Client__WEBPACK_IMPORTED_MODULE_0__["MSALV2Client"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Services/TelemetryClient.js": /*!********************************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Services/TelemetryClient.js ***! \********************************************************************************/ /*! exports provided: TelemetryClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TelemetryClient", function() { return TelemetryClient; }); /* harmony import */ var _microsoft_applicationinsights_web__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/applicationinsights-web */ "./node_modules/@microsoft/applicationinsights-web/dist-esm/applicationinsights-web.js"); /* harmony import */ var _Shared_guid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Shared/guid */ "./node_modules/@employee-experience/core/lib/Shared/guid.js"); /* harmony import */ var _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @employee-experience/common/lib/Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); /* harmony import */ var react_device_detect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-device-detect */ "./node_modules/react-device-detect/dist/lib.js"); /* harmony import */ var react_device_detect__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_device_detect__WEBPACK_IMPORTED_MODULE_3__); class TelemetryClient { constructor(config, correlationId, appInsights) { this.correlationId = correlationId || Object(_Shared_guid__WEBPACK_IMPORTED_MODULE_1__["guid"])(); if (!appInsights) { appInsights = new _microsoft_applicationinsights_web__WEBPACK_IMPORTED_MODULE_0__["ApplicationInsights"]({ config: config, }); const deviceInfo = Object(react_device_detect__WEBPACK_IMPORTED_MODULE_3__["deviceDetect"])(window.navigator.userAgent); appInsights.loadAppInsights(); appInsights.addTelemetryInitializer((item) => { var _a; item.data = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, item.data), { correlationId: this.correlationId, location: window.location.href.split('#')[0], telemetrySource: 'UI' }), config.UTPConfig), config.defaultProperties), deviceInfo); if (item.data) { item.data = Object(_employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["asCuppSchema"])(item.data); } if ((_a = item.baseData) === null || _a === void 0 ? void 0 : _a.properties) { item.baseData.properties = Object(_employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["asCuppSchema"])(item.baseData.properties); } }); } this.appInsights = appInsights; this.config = config; } trackPageView(pageView) { this.appInsights.trackPageView(pageView); } startTrackPage(name) { this.appInsights.startTrackPage(name); } trackPageViewPerformance(pageViewPerformance) { this.appInsights.trackPageViewPerformance(pageViewPerformance); } trackEvent(event, customProperties) { var _a; const usageEvent = (_a = this.telemetryContext) === null || _a === void 0 ? void 0 : _a.setUsageEvent(event); this.appInsights.trackEvent(Object.assign(Object.assign({}, event), usageEvent), Object.assign(Object.assign({}, usageEvent), customProperties)); } trackCustomEvent(event, customProperties) { this.appInsights.trackEvent(Object.assign({}, event), customProperties); } setAuthenticatedUserContext(authenticatedUserId, accountId, storeInCookie) { this.appInsights.setAuthenticatedUserContext(authenticatedUserId, accountId, storeInCookie); } trackException(exception) { var _a; try { const emptyEvent = { type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["EventType"].System, experienceResult: false, }; exception.properties = (_a = this.telemetryContext) === null || _a === void 0 ? void 0 : _a.setUsageEvent(emptyEvent); } catch (error) { // Ignore error and log the exception as is. } this.appInsights.trackException(exception); } _onerror(exception) { this.appInsights._onerror(exception); } trackTrace(trace, customProperties) { this.appInsights.trackTrace(trace, customProperties); } trackMetric(metric, customProperties) { this.appInsights.trackMetric(metric, customProperties); } stopTrackPage(name, url, customProperties) { this.appInsights.stopTrackPage(name, url, customProperties); } startTrackEvent(name) { var _a; if (typeof name === 'string') { this.appInsights.startTrackEvent(name); } if (typeof name !== 'string') { const eventName = 'eventName' in name ? (name.eventName || 'PageLoad') + 'Start' : 'PageLoadStart'; const startEvent = Object.assign(Object.assign({}, name), { eventName }); const event = (_a = this.telemetryContext) === null || _a === void 0 ? void 0 : _a.setUsageEvent(startEvent); this.appInsights.startTrackEvent(event.name); return event; } } // eslint-disable-next-line prettier/prettier stopTrackEvent(name, properties, measurements) { var _a; if (typeof name === 'string') { this.appInsights.stopTrackEvent(name, properties, measurements); } else { const telemetryProps = Object.assign(Object.assign({}, (name || {})), (properties || {})); const e = (_a = this.telemetryContext) === null || _a === void 0 ? void 0 : _a.setUsageEvent(Object.assign({}, name)); const event = Object.assign(Object.assign({}, telemetryProps), e); this.appInsights.stopTrackEvent(event.name, event, measurements); return event; } } trackDependencyData(dependency) { this.appInsights.trackDependencyData(dependency); } addTelemetryInitializer(telemetryInitializer) { this.appInsights.addTelemetryInitializer(telemetryInitializer); } getChildInstance(config, correlationId, telemetryContext) { const childClient = new TelemetryClient(config || this.config, correlationId || this.correlationId, this.appInsights); if (telemetryContext) { childClient.setContext(telemetryContext); } return childClient; } setContext(telemetryContext) { this.telemetryContext = telemetryContext; } getCorrelationId() { return this.correlationId; } } //# sourceMappingURL=TelemetryClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/Shared/guid.js": /*!*******************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/Shared/guid.js ***! \*******************************************************************/ /*! exports provided: guid */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "guid", function() { return guid; }); function guid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { const r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8; return v.toString(16); }); } //# sourceMappingURL=guid.js.map /***/ }), /***/ "./node_modules/@employee-experience/core/lib/TelemetryClient.js": /*!***********************************************************************!*\ !*** ./node_modules/@employee-experience/core/lib/TelemetryClient.js ***! \***********************************************************************/ /*! exports provided: TelemetryClient */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Services_TelemetryClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Services/TelemetryClient */ "./node_modules/@employee-experience/core/lib/Services/TelemetryClient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TelemetryClient", function() { return _Services_TelemetryClient__WEBPACK_IMPORTED_MODULE_0__["TelemetryClient"]; }); //# sourceMappingURL=TelemetryClient.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Footer/Footer.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Footer/Footer.js ***! \*********************************************************************************/ /*! exports provided: Footer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Footer", function() { return Footer; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Footer_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Footer.styled */ "./node_modules/@employee-experience/shell/lib/Components/Footer/Footer.styled.js"); function Footer( // eslint-disable-next-line @typescript-eslint/ban-types props) { return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Footer_styled__WEBPACK_IMPORTED_MODULE_1__["FooterRoot"], null, props.children); } //# sourceMappingURL=Footer.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Footer/Footer.styled.js": /*!****************************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Footer/Footer.styled.js ***! \****************************************************************************************/ /*! exports provided: FooterRoot */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FooterRoot", function() { return FooterRoot; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); // Adds space for nav // flex-shrink for stick footer const FooterRoot = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].footer ` flex-shrink: 0; width: 100%; @media (min-width: 1025px) { width: calc(100% - 48px); margin-left: 48px; } `; //# sourceMappingURL=Footer.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Header/Header.js ***! \*********************************************************************************/ /*! exports provided: Header */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return Header; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Header_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Header.styled */ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.styled.js"); /* harmony import */ var _cseo_controls_lib_header_CoherenceHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @cseo/controls/lib/header/CoherenceHeader */ "./node_modules/@cseo/controls/lib/header/CoherenceHeader.js"); /* harmony import */ var _employee_experience_common_lib_useUser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @employee-experience/common/lib/useUser */ "./node_modules/@employee-experience/common/lib/useUser.js"); /* harmony import */ var _employee_experience_common_lib_useGraphPhoto__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @employee-experience/common/lib/useGraphPhoto */ "./node_modules/@employee-experience/common/lib/useGraphPhoto.js"); /* harmony import */ var _Header_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Header.types */ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.types.js"); /* harmony import */ var _employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @employee-experience/common/lib/ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony import */ var _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @employee-experience/common/lib/Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; function Header(props) { var _a, _b, _c, _d; const { farRightSettings, searchSettings } = props, otherProps = __rest(props, ["farRightSettings", "searchSettings"]); const { telemetryClient, authClient } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_6__["ComponentContext"]); const user = Object(_employee_experience_common_lib_useUser__WEBPACK_IMPORTED_MODULE_3__["useUser"])(); const photo = Object(_employee_experience_common_lib_useGraphPhoto__WEBPACK_IMPORTED_MODULE_4__["useGraphPhoto"])(); const searchConfig = searchSettings; if (searchConfig) { const originalOnSearch = searchConfig.onSearch; searchConfig.onSearch = (searchTerm) => { if (!originalOnSearch) return; const searchEvent = { subFeature: 'Header.Search', businessTransactionId: searchTerm, type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["EventType"].User, eventName: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["UsageEventName"].TextChanged, }; telemetryClient.trackEvent(searchEvent); originalOnSearch(searchTerm); }; } const handleLogOutClicked = () => { const logout = { subFeature: 'Header.Logout', type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["EventType"].User, eventName: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["UsageEventName"].ButtonClicked, }; telemetryClient.trackEvent(logout); authClient.logOut().catch(); }; const getPanelOpenHandler = (panel) => { return () => { const panelEvent = { subFeature: `Header.${panel.toString()}`, type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["EventType"].User, eventName: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["UsageEventName"].PanelOpened, businessTransactionId: panel.toString(), }; telemetryClient.trackEvent(panelEvent); telemetryClient.startTrackPage(panel); }; }; const getPanelDismissHandler = (panel) => { return () => { const panelEvent = { subFeature: `Header.${panel.toString()}`, type: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["EventType"].User, eventName: _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_7__["UsageEventName"].PanelClosed, businessTransactionId: panel.toString(), }; telemetryClient.trackEvent(panelEvent); telemetryClient.stopTrackPage(panel); }; }; const notificationConfig = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.notificationsSettings; if (notificationConfig) { notificationConfig.panelSettings.onOpened = getPanelOpenHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].NotificationPanel); notificationConfig.panelSettings.onDismissed = getPanelDismissHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].NotificationPanel); } const settingsConfig = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.settingsSettings; if (settingsConfig) { settingsConfig.panelSettings.onOpened = getPanelOpenHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].SettingsPanel); settingsConfig.panelSettings.onDismissed = getPanelDismissHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].SettingsPanel); } const helpConfig = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.helpSettings; if (helpConfig) { helpConfig.panelSettings.onOpened = getPanelOpenHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].HelpPanel); helpConfig.panelSettings.onDismissed = getPanelDismissHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].HelpPanel); } const feedbackConfig = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.feedbackSettings; if (feedbackConfig) { const prevOnClick = (_a = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.feedbackSettings) === null || _a === void 0 ? void 0 : _a.panelSettings.onClick; feedbackConfig.panelSettings.onClick = () => { if (!prevOnClick) return false; getPanelOpenHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].FeedbackPanel); return prevOnClick(); }; } const profileConfig = Object.assign(Object.assign({}, farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.profileSettings), { panelSettings: Object.assign(Object.assign({}, (_b = farRightSettings === null || farRightSettings === void 0 ? void 0 : farRightSettings.profileSettings) === null || _b === void 0 ? void 0 : _b.panelSettings), { logOutLink: 'javascript:void(0);', fullName: (_c = user === null || user === void 0 ? void 0 : user.name) !== null && _c !== void 0 ? _c : '', emailAddress: (_d = user === null || user === void 0 ? void 0 : user.email) !== null && _d !== void 0 ? _d : '', imageUrl: photo || undefined, onLogOut: handleLogOutClicked, onOpened: getPanelOpenHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].ProfilePanel), onDismissed: getPanelDismissHandler(_Header_types__WEBPACK_IMPORTED_MODULE_5__["HeaderPanel"].ProfilePanel) }) }); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Header_styled__WEBPACK_IMPORTED_MODULE_1__["HeaderRoot"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_cseo_controls_lib_header_CoherenceHeader__WEBPACK_IMPORTED_MODULE_2__["CoherenceHeader"], Object.assign({}, otherProps, { searchSettings: searchConfig, farRightSettings: Object.assign(Object.assign({}, farRightSettings), { notificationsSettings: notificationConfig, settingsSettings: settingsConfig, helpSettings: helpConfig, feedbackSettings: feedbackConfig, profileSettings: profileConfig }), telemetryHook: telemetryClient })))); } //# sourceMappingURL=Header.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.styled.js": /*!****************************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Header/Header.styled.js ***! \****************************************************************************************/ /*! exports provided: HeaderRoot */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderRoot", function() { return HeaderRoot; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); const HeaderRoot = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].div ` position: fixed; top: 0; width: 100%; z-index: 10000; `; //# sourceMappingURL=Header.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Header/Header.types.js ***! \***************************************************************************************/ /*! exports provided: HeaderPanel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderPanel", function() { return HeaderPanel; }); var HeaderPanel; (function (HeaderPanel) { HeaderPanel["ProfilePanel"] = "ProfilePanel"; HeaderPanel["SettingsPanel"] = "SettingsPanel"; HeaderPanel["HelpPanel"] = "HelpPanel"; HeaderPanel["NotificationPanel"] = "NotificationPanel"; HeaderPanel["FeedbackPanel"] = "FeedbackPanel"; })(HeaderPanel || (HeaderPanel = {})); //# sourceMappingURL=Header.types.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Main/Main.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Main/Main.js ***! \*****************************************************************************/ /*! exports provided: Main */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Main", function() { return Main; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); // Adds space for nav and header // flex for stick footer const Main = styled_components__WEBPACK_IMPORTED_MODULE_0__["default"].main ` width: 100%; flex: 1 0 auto; @media (min-width: 1025px) { width: calc(100% - 48px); margin-left: 48px; } `; //# sourceMappingURL=Main.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Nav/Nav.js": /*!***************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Nav/Nav.js ***! \***************************************************************************/ /*! exports provided: Nav */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return Nav; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _cseo_controls_lib_nav__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @cseo/controls/lib/nav */ "./node_modules/@cseo/controls/lib/nav/index.js"); /* harmony import */ var _useCoherenceNavGroups__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useCoherenceNavGroups */ "./node_modules/@employee-experience/shell/lib/Components/Nav/useCoherenceNavGroups.js"); /* harmony import */ var _employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @employee-experience/common/lib/ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony import */ var _employee_experience_common_lib_Models__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @employee-experience/common/lib/Models */ "./node_modules/@employee-experience/common/lib/Models.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; function Nav(props) { const { groups, defaultIsNavCollapsed, appName } = props, otherProps = __rest(props, ["groups", "defaultIsNavCollapsed", "appName"]); const { telemetryClient } = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_3__["ComponentContext"]); const coherenceNavGroups = Object(_useCoherenceNavGroups__WEBPACK_IMPORTED_MODULE_2__["useCoherenceNavGroups"])(groups); const onToggle = (isOpen) => { const navigationEvent = { subFeature: `Navigation.SideNav.${isOpen ? 'Open' : 'Close'}`, type: _employee_experience_common_lib_Models__WEBPACK_IMPORTED_MODULE_4__["EventType"].User, eventName: _employee_experience_common_lib_Models__WEBPACK_IMPORTED_MODULE_4__["UsageEventName"].LinkClicked, }; telemetryClient.trackEvent(navigationEvent, Object.assign({}, props)); if (props.onNavCollapsed) props.onNavCollapsed(isOpen); }; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_cseo_controls_lib_nav__WEBPACK_IMPORTED_MODULE_1__["CoherenceNav"], Object.assign({}, otherProps, { appName: appName || '', groups: coherenceNavGroups, onNavCollapsed: (isOpen) => onToggle(isOpen), defaultIsNavCollapsed: defaultIsNavCollapsed === undefined ? true : defaultIsNavCollapsed, telemetryHook: telemetryClient }))); } //# sourceMappingURL=Nav.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Nav/Nav.types.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Nav/Nav.types.js ***! \*********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Nav.types.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Nav/useCoherenceNavGroups.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Nav/useCoherenceNavGroups.js ***! \*********************************************************************************************/ /*! exports provided: useCoherenceNavGroups */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useCoherenceNavGroups", function() { return useCoherenceNavGroups; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router-dom/esm/react-router-dom.js"); /* harmony import */ var _employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @employee-experience/common/lib/ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony import */ var _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @employee-experience/common/lib/TelemetryEvents */ "./node_modules/@employee-experience/common/lib/TelemetryEvents.js"); /* harmony import */ var _employee_experience_common_lib_Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @employee-experience/common/lib/Link */ "./node_modules/@employee-experience/common/lib/Link.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; const rootHref = '/'; function isLinkSelected(href) { const { pathname } = window.location; if (href === rootHref) return pathname === href; return pathname.startsWith(href); } function useCoherenceNavGroups(groups) { const { telemetryClient } = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_2__["ComponentContext"]); const history = Object(react_router_dom__WEBPACK_IMPORTED_MODULE_1__["useHistory"])(); const [navGroups, setNavGroups] = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])([]); const createLinkGroup = (groups) => { return groups.map((_a) => { var { links: groupLinks } = _a, otherGroupProps = __rest(_a, ["links"]); return Object.assign(Object.assign({}, otherGroupProps), { links: createChildLinks(groupLinks) || [] }); }); }; const createLink = (name, href) => { return { name, onClick: () => { telemetryClient.trackTrace({ message: _employee_experience_common_lib_TelemetryEvents__WEBPACK_IMPORTED_MODULE_3__["TelemetryEvents"].NavLinkClicked, properties: { linkName: name, href, }, }); if (Object(_employee_experience_common_lib_Link__WEBPACK_IMPORTED_MODULE_4__["shouldUseAnchorTag"])(href, false)) { window.open(href); } else { history.push(href); setNavGroups(createLinkGroup(groups)); } }, isSelected: isLinkSelected(href), }; }; const createChildLinks = (childLinks) => { if (!childLinks) return; return childLinks.map((_a) => { var { links, href, name } = _a, otherLinkProps = __rest(_a, ["links", "href", "name"]); return Object.assign(Object.assign(Object.assign({}, otherLinkProps), createLink(name, href)), { links: createChildLinks(links) }); }); }; Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(() => { setNavGroups(createLinkGroup(groups)); }, [groups]); return navGroups; } //# sourceMappingURL=useCoherenceNavGroups.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Shell/Shell.js": /*!*******************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Shell/Shell.js ***! \*******************************************************************************/ /*! exports provided: Shell */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Shell", function() { return Shell; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @employee-experience/common/lib/ComponentContext */ "./node_modules/@employee-experience/common/lib/ComponentContext.js"); /* harmony import */ var _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @employee-experience/common/lib/Models/UsageTelemetry */ "./node_modules/@employee-experience/common/lib/Models/UsageTelemetry/index.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; function Shell(props) { var _a; const { children, appName } = props, context = __rest(props, ["children", "appName"]); const usageHelper = appName && appName.trim() != '' ? _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageHelper"].Fork(appName) : _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageHelper"]; const telemetryContext = { sourceComponent: 'Shell', sourceScript: 'main', setUsageEvent: usageHelper.MassageEvent, setUsageUser: (usageUser) => { _employee_experience_common_lib_Models_UsageTelemetry__WEBPACK_IMPORTED_MODULE_2__["UsageHelper"].SetUser(usageUser); usageHelper.SetUser(usageUser); return usageUser; }, usageUser: usageHelper.GetUser, setUsageConfig: usageHelper.SetUsageConfig, getChildContext: usageHelper.ForkTelemetryContext, }; (_a = context.telemetryClient) === null || _a === void 0 ? void 0 : _a.setContext(telemetryContext); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_employee_experience_common_lib_ComponentContext__WEBPACK_IMPORTED_MODULE_1__["ComponentContext"].Provider, { value: Object.assign(Object.assign({}, context), { telemetryContext }) }, children)); } //# sourceMappingURL=Shell.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Components/Shell/Shell.styled.js": /*!**************************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Components/Shell/Shell.styled.js ***! \**************************************************************************************/ /*! exports provided: ShellStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShellStyles", function() { return ShellStyles; }); /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js"); /* harmony import */ var _employee_experience_common_lib_Colors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @employee-experience/common/lib/Colors */ "./node_modules/@employee-experience/common/lib/Colors.js"); const ShellStyles = styled_components__WEBPACK_IMPORTED_MODULE_0__["createGlobalStyle"] ` *, *:before, *:after { box-sizing: border-box; } html { height: 100%; } body { position: relative; height: 100%; margin: 0; color: #333; background-color: #F2F2F2; overflow-x: hidden; padding: 48px 0 0; } h1, h2, h3, h4, p, ul { margin: 0; } button { cursor: pointer; } a { cursor: pointer; color: ${_employee_experience_common_lib_Colors__WEBPACK_IMPORTED_MODULE_1__["Colors"].Primary}; text-decoration: none; } ul { list-style: none; } body > iframe { display: none; } #app { height: 100%; display: flex; flex-direction: column; } @keyframes placeholderBlinks { 0% { opacity: 1; } 50% { opacity: 0.7; } } `; //# sourceMappingURL=Shell.styled.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Footer.js": /*!***************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Footer.js ***! \***************************************************************/ /*! exports provided: Footer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Footer_Footer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Footer/Footer */ "./node_modules/@employee-experience/shell/lib/Components/Footer/Footer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Footer", function() { return _Components_Footer_Footer__WEBPACK_IMPORTED_MODULE_0__["Footer"]; }); //# sourceMappingURL=Footer.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/HOCs/withStore/withStore.js": /*!*********************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/HOCs/withStore/withStore.js ***! \*********************************************************************************/ /*! exports provided: withStore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withStore", function() { return withStore; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-redux */ "./node_modules/react-redux/es/index.js"); /* harmony import */ var _employee_experience_common_lib_ReduxContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @employee-experience/common/lib/ReduxContext */ "./node_modules/@employee-experience/common/lib/ReduxContext.js"); var __rest = (undefined && undefined.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; function withStore(storeBuilderResult) { const { store, context } = storeBuilderResult, otherResults = __rest(storeBuilderResult, ["store", "context"]); return (WrappedComponent) => { const ComponentWithStore = ( // eslint-disable-next-line @typescript-eslint/ban-types props) => { const { children } = props; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react_redux__WEBPACK_IMPORTED_MODULE_1__["Provider"], { store: store }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_employee_experience_common_lib_ReduxContext__WEBPACK_IMPORTED_MODULE_2__["ReduxContext"].Provider, { value: Object.assign({ dispatch: store.dispatch, useSelector: react_redux__WEBPACK_IMPORTED_MODULE_1__["useSelector"], __redux_context__: react_redux__WEBPACK_IMPORTED_MODULE_1__["ReactReduxContext"] }, otherResults) }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrappedComponent, Object.assign({}, context), children)))); }; return ComponentWithStore; }; } //# sourceMappingURL=withStore.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Header.js": /*!***************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Header.js ***! \***************************************************************/ /*! exports provided: Header, HeaderPanel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Header_Header__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Header/Header */ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return _Components_Header_Header__WEBPACK_IMPORTED_MODULE_0__["Header"]; }); /* harmony import */ var _Components_Header_Header_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components/Header/Header.types */ "./node_modules/@employee-experience/shell/lib/Components/Header/Header.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderPanel", function() { return _Components_Header_Header_types__WEBPACK_IMPORTED_MODULE_1__["HeaderPanel"]; }); //# sourceMappingURL=Header.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Helpers/ReducerRegistry.js": /*!********************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Helpers/ReducerRegistry.js ***! \********************************************************************************/ /*! exports provided: ReducerRegistry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReducerRegistry", function() { return ReducerRegistry; }); class ReducerRegistry { constructor() { this.persistBlacklistedDynamicReducers = []; this.changeListeners = {}; this.reducers = {}; this.dynamicReducers = {}; } getReducers() { return Object.assign({}, this.reducers); } getDynamicReducers() { return Object.assign({}, this.dynamicReducers); } register(name, reducer, skipIfExists = false) { if (skipIfExists && this.reducers.hasOwnProperty(name)) return this; this.reducers = Object.assign(Object.assign({}, this.reducers), { [name]: reducer }); Object.keys(this.changeListeners).forEach((key) => { this.changeListeners[key](this.getReducers(), this.getDynamicReducers(), this.persistBlacklistedDynamicReducers); }); return this; } registerDynamic(name, reducer, skipIfExists = false, shouldPersist = true) { if (skipIfExists && this.dynamicReducers.hasOwnProperty(name)) return this; this.dynamicReducers[name] = reducer; if (!shouldPersist) this.persistBlacklistedDynamicReducers.push(name); Object.keys(this.changeListeners).forEach((key) => { this.changeListeners[key](this.getReducers(), this.getDynamicReducers(), this.persistBlacklistedDynamicReducers); }); return this; } exists(reducerName) { return (this.reducers.hasOwnProperty(reducerName) || this.dynamicReducers.hasOwnProperty(reducerName)); } addChangeListener(name, fn) { this.changeListeners[name] = fn; return this; } removeChangeListener(name) { delete this.changeListeners[name]; return this; } } //# sourceMappingURL=ReducerRegistry.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Helpers/StoreBuilder.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Helpers/StoreBuilder.js ***! \*****************************************************************************/ /*! exports provided: StoreBuilder */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StoreBuilder", function() { return StoreBuilder; }); /* harmony import */ var redux_saga__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux-saga */ "./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js"); /* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js"); /* harmony import */ var redux_persist__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! redux-persist */ "./node_modules/redux-persist/es/index.js"); /* harmony import */ var redux_persist_es_storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-persist/es/storage */ "./node_modules/redux-persist/es/storage/index.js"); /* harmony import */ var redux_persist_es_stateReconciler_autoMergeLevel2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! redux-persist/es/stateReconciler/autoMergeLevel2 */ "./node_modules/redux-persist/es/stateReconciler/autoMergeLevel2.js"); /* harmony import */ var redux_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! redux-logger */ "./node_modules/redux-logger/dist/redux-logger.js"); /* harmony import */ var redux_logger__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(redux_logger__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var redux_devtools_extension__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! redux-devtools-extension */ "./node_modules/redux-devtools-extension/index.js"); /* harmony import */ var redux_devtools_extension__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(redux_devtools_extension__WEBPACK_IMPORTED_MODULE_6__); class StoreBuilder { constructor(reducerRegistery, initialState = { dynamic: {} }) { this.middlewares = []; this.persistConfig = { key: 'root', storage: redux_persist_es_storage__WEBPACK_IMPORTED_MODULE_3__["default"], stateReconciler: redux_persist_es_stateReconciler_autoMergeLevel2__WEBPACK_IMPORTED_MODULE_4__["default"], // https://github.com/rt2zz/redux-persist/issues/786 // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore timeout: null, }; this.loggerConfig = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any this.rootSagas = []; this.reducerRegistery = reducerRegistery; this.initialState = Object.assign({ dynamic: Object.assign({}, initialState.dynamic) }, initialState); } configureSaga(context) { this.context = context; this.sagaMiddleware = Object(redux_saga__WEBPACK_IMPORTED_MODULE_0__["default"])({ context, }); this.middlewares.push(this.sagaMiddleware); return this; } configureLogger(enableOrOption) { if (enableOrOption !== false) { const opt = Object.assign(Object.assign({}, this.loggerConfig), (typeof enableOrOption !== 'boolean' ? enableOrOption : {})); this.middlewares.push(Object(redux_logger__WEBPACK_IMPORTED_MODULE_5__["createLogger"])(opt)); } return this; } configurePersistor(config) { this.persistConfig = Object.assign(Object.assign({}, this.persistConfig), config); return this; } addMiddleware(middleware) { this.middlewares.push(middleware); return this; } // eslint-disable-next-line @typescript-eslint/no-explicit-any addRootSagas(sagas) { this.rootSagas = sagas; return this; } build() { if (!this.sagaMiddleware) throw new Error('Saga middleware was not configured.'); if (!this.context) throw new Error('Context must be configured using configureContext method'); const reducers = this.combine(this.reducerRegistery.getReducers(), this.reducerRegistery.getDynamicReducers(), [], this.initialState); const persistedReducer = Object(redux_persist__WEBPACK_IMPORTED_MODULE_2__["persistReducer"])(this.persistConfig, reducers); const ifDev = false || "development" === 'development'; const store = Object(redux__WEBPACK_IMPORTED_MODULE_1__["createStore"])(persistedReducer, this.initialState, !ifDev ? Object(redux__WEBPACK_IMPORTED_MODULE_1__["applyMiddleware"])(...this.middlewares) : Object(redux_devtools_extension__WEBPACK_IMPORTED_MODULE_6__["composeWithDevTools"])(Object(redux__WEBPACK_IMPORTED_MODULE_1__["applyMiddleware"])(...this.middlewares))); const persistor = Object(redux_persist__WEBPACK_IMPORTED_MODULE_2__["persistStore"])(store); this.reducerRegistery.addChangeListener('default', (newReducers, newDynamicReducers, persistBlacklistedDynamicReducers) => { store.replaceReducer(Object(redux_persist__WEBPACK_IMPORTED_MODULE_2__["persistReducer"])(this.persistConfig, this.combine(newReducers, newDynamicReducers, persistBlacklistedDynamicReducers, store.getState()))); persistor.persist(); }); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion this.rootSagas.map((saga) => this.sagaMiddleware.run(saga)); return { store, reducerRegistry: this.reducerRegistery, runSaga: this.sagaMiddleware.run, context: this.context, }; } combine(reducers, dynamicReducers, persistBlacklistedDynamicReducers, currentState = null) { const reducerNames = Object.keys(reducers); const dynamicReducerNames = Object.keys(dynamicReducers); Object.keys(currentState || this.initialState).forEach((item) => { if (reducerNames.indexOf(item) === -1) { // eslint-disable-next-line @typescript-eslint/ban-types reducers[item] = (state = null) => state; } }); Object.keys((currentState && currentState.dynamic) || {}).forEach((item) => { if (dynamicReducerNames.indexOf(item) === -1) { // eslint-disable-next-line @typescript-eslint/ban-types dynamicReducers[item] = (state = null) => state; } }); if (dynamicReducerNames.length > 0) { reducers.dynamic = Object(redux_persist__WEBPACK_IMPORTED_MODULE_2__["persistReducer"])(Object.assign(Object.assign({}, this.persistConfig), { key: `${this.persistConfig.key}.dynamic`, whitelist: undefined, blacklist: persistBlacklistedDynamicReducers }), Object(redux__WEBPACK_IMPORTED_MODULE_1__["combineReducers"])(dynamicReducers)); } return Object(redux__WEBPACK_IMPORTED_MODULE_1__["combineReducers"])(reducers); } } //# sourceMappingURL=StoreBuilder.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Main.js": /*!*************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Main.js ***! \*************************************************************/ /*! exports provided: Main */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Main_Main__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Main/Main */ "./node_modules/@employee-experience/shell/lib/Components/Main/Main.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Main", function() { return _Components_Main_Main__WEBPACK_IMPORTED_MODULE_0__["Main"]; }); //# sourceMappingURL=Main.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Models/IStoreBuilder.js": /*!*****************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Models/IStoreBuilder.js ***! \*****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IStoreBuilder.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Models/IStoreBuilderResult.js": /*!***********************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Models/IStoreBuilderResult.js ***! \***********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IStoreBuilderResult.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Models/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Models/index.js ***! \*********************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _IStoreBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IStoreBuilder */ "./node_modules/@employee-experience/shell/lib/Models/IStoreBuilder.js"); /* empty/unused harmony star reexport *//* harmony import */ var _IStoreBuilderResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IStoreBuilderResult */ "./node_modules/@employee-experience/shell/lib/Models/IStoreBuilderResult.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Nav.js": /*!************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Nav.js ***! \************************************************************/ /*! exports provided: Nav */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Nav_Nav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Nav/Nav */ "./node_modules/@employee-experience/shell/lib/Components/Nav/Nav.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _Components_Nav_Nav__WEBPACK_IMPORTED_MODULE_0__["Nav"]; }); /* harmony import */ var _Components_Nav_Nav_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components/Nav/Nav.types */ "./node_modules/@employee-experience/shell/lib/Components/Nav/Nav.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=Nav.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/ReducerRegistry.js": /*!************************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/ReducerRegistry.js ***! \************************************************************************/ /*! exports provided: ReducerRegistry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Helpers_ReducerRegistry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Helpers/ReducerRegistry */ "./node_modules/@employee-experience/shell/lib/Helpers/ReducerRegistry.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReducerRegistry", function() { return _Helpers_ReducerRegistry__WEBPACK_IMPORTED_MODULE_0__["ReducerRegistry"]; }); //# sourceMappingURL=ReducerRegistry.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/Shell.js": /*!**************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/Shell.js ***! \**************************************************************/ /*! exports provided: Shell, ShellStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_Shell_Shell__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Components/Shell/Shell */ "./node_modules/@employee-experience/shell/lib/Components/Shell/Shell.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shell", function() { return _Components_Shell_Shell__WEBPACK_IMPORTED_MODULE_0__["Shell"]; }); /* harmony import */ var _Components_Shell_Shell_styled__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Components/Shell/Shell.styled */ "./node_modules/@employee-experience/shell/lib/Components/Shell/Shell.styled.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShellStyles", function() { return _Components_Shell_Shell_styled__WEBPACK_IMPORTED_MODULE_1__["ShellStyles"]; }); //# sourceMappingURL=Shell.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/StoreBuilder.js": /*!*********************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/StoreBuilder.js ***! \*********************************************************************/ /*! exports provided: StoreBuilder */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Helpers_StoreBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Helpers/StoreBuilder */ "./node_modules/@employee-experience/shell/lib/Helpers/StoreBuilder.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StoreBuilder", function() { return _Helpers_StoreBuilder__WEBPACK_IMPORTED_MODULE_0__["StoreBuilder"]; }); //# sourceMappingURL=StoreBuilder.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/index.js": /*!**************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/index.js ***! \**************************************************************/ /*! exports provided: Shell, ShellStyles, Header, HeaderPanel, Nav, Main, Footer, StoreBuilder, withStore, ReducerRegistry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Shell__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Shell */ "./node_modules/@employee-experience/shell/lib/Shell.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shell", function() { return _Shell__WEBPACK_IMPORTED_MODULE_0__["Shell"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShellStyles", function() { return _Shell__WEBPACK_IMPORTED_MODULE_0__["ShellStyles"]; }); /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Header */ "./node_modules/@employee-experience/shell/lib/Header.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return _Header__WEBPACK_IMPORTED_MODULE_1__["Header"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderPanel", function() { return _Header__WEBPACK_IMPORTED_MODULE_1__["HeaderPanel"]; }); /* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Nav */ "./node_modules/@employee-experience/shell/lib/Nav.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _Nav__WEBPACK_IMPORTED_MODULE_2__["Nav"]; }); /* harmony import */ var _Main__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Main */ "./node_modules/@employee-experience/shell/lib/Main.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Main", function() { return _Main__WEBPACK_IMPORTED_MODULE_3__["Main"]; }); /* harmony import */ var _Footer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Footer */ "./node_modules/@employee-experience/shell/lib/Footer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Footer", function() { return _Footer__WEBPACK_IMPORTED_MODULE_4__["Footer"]; }); /* harmony import */ var _StoreBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./StoreBuilder */ "./node_modules/@employee-experience/shell/lib/StoreBuilder.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StoreBuilder", function() { return _StoreBuilder__WEBPACK_IMPORTED_MODULE_5__["StoreBuilder"]; }); /* harmony import */ var _withStore__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./withStore */ "./node_modules/@employee-experience/shell/lib/withStore.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withStore", function() { return _withStore__WEBPACK_IMPORTED_MODULE_6__["withStore"]; }); /* harmony import */ var _ReducerRegistry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ReducerRegistry */ "./node_modules/@employee-experience/shell/lib/ReducerRegistry.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReducerRegistry", function() { return _ReducerRegistry__WEBPACK_IMPORTED_MODULE_7__["ReducerRegistry"]; }); /* harmony import */ var _Models_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Models/index */ "./node_modules/@employee-experience/shell/lib/Models/index.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@employee-experience/shell/lib/withStore.js": /*!******************************************************************!*\ !*** ./node_modules/@employee-experience/shell/lib/withStore.js ***! \******************************************************************/ /*! exports provided: withStore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _HOCs_withStore_withStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HOCs/withStore/withStore */ "./node_modules/@employee-experience/shell/lib/HOCs/withStore/withStore.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withStore", function() { return _HOCs_withStore_withStore__WEBPACK_IMPORTED_MODULE_0__["withStore"]; }); //# sourceMappingURL=withStore.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/dateFormatting.defaults.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/dateFormatting.defaults.js ***! \**************************************************************************************************/ /*! exports provided: DEFAULT_LOCALIZED_STRINGS, DEFAULT_DATE_FORMATTING, DEFAULT_CALENDAR_STRINGS */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_LOCALIZED_STRINGS", function() { return DEFAULT_LOCALIZED_STRINGS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_DATE_FORMATTING", function() { return DEFAULT_DATE_FORMATTING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CALENDAR_STRINGS", function() { return DEFAULT_CALENDAR_STRINGS; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _formatDay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatDay */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatDay.js"); /* harmony import */ var _formatYear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatYear */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatYear.js"); /* harmony import */ var _formatMonthDayYear__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatMonthDayYear */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthDayYear.js"); /* harmony import */ var _formatMonthYear__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatMonthYear */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthYear.js"); var DEFAULT_LOCALIZED_STRINGS = { months: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', ], shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], shortDays: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], }; var DEFAULT_DATE_FORMATTING = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ formatDay: _formatDay__WEBPACK_IMPORTED_MODULE_1__["formatDay"], formatYear: _formatYear__WEBPACK_IMPORTED_MODULE_2__["formatYear"], formatMonthDayYear: _formatMonthDayYear__WEBPACK_IMPORTED_MODULE_3__["formatMonthDayYear"], formatMonthYear: _formatMonthYear__WEBPACK_IMPORTED_MODULE_4__["formatMonthYear"], parseDate: function (dateStr) { var date = Date.parse(dateStr); if (date) { return new Date(date); } return null; } }, DEFAULT_LOCALIZED_STRINGS); var DEFAULT_CALENDAR_STRINGS = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_DATE_FORMATTING), { goToToday: 'Go to today', openCalendarTitle: 'Open calendar', inputPlaceholder: 'Select a date...', weekNumberFormatString: 'Week number {0}', prevMonthAriaLabel: 'Previous month', nextMonthAriaLabel: 'Next month', prevYearAriaLabel: 'Previous year', nextYearAriaLabel: 'Next year', prevYearRangeAriaLabel: 'Previous year range', nextYearRangeAriaLabel: 'Next year range', closeButtonAriaLabel: 'Close', selectedDateFormatString: 'Selected date {0}', todayDateFormatString: "Today's date {0}", monthPickerHeaderAriaLabel: '{0}, select to change the year', yearPickerHeaderAriaLabel: '{0}, select to change the month', isRequiredErrorMessage: 'A date selection is required', invalidInputErrorMessage: 'Manually entered date is not in correct format.', isOutOfBoundsErrorMessage: 'The selected date is from the restricted range.', inputAriaLabel: 'Select a date.', inputBoundedFormatString: 'Input a date between {0} and {1}.', inputMinBoundedFormatString: 'Input a date starting from {0}.', inputMaxBoundedFormatString: 'Input a date ending at {0}.' }); //# sourceMappingURL=dateFormatting.defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatDay.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatDay.js ***! \************************************************************************************/ /*! exports provided: formatDay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDay", function() { return formatDay; }); /** * Format date to a day string representation * @param date - input date to format */ var formatDay = function (date) { return date.getDate().toString(); }; //# sourceMappingURL=formatDay.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthDayYear.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthDayYear.js ***! \*********************************************************************************************/ /*! exports provided: formatMonthDayYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatMonthDayYear", function() { return formatMonthDayYear; }); /** * Format date to a month-day-year string * @param date - input date to format * @param strings - localized strings */ var formatMonthDayYear = function (date, strings) { return strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear(); }; //# sourceMappingURL=formatMonthDayYear.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthYear.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthYear.js ***! \******************************************************************************************/ /*! exports provided: formatMonthYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatMonthYear", function() { return formatMonthYear; }); /** * Format date to a month-year string * @param date - input date to format * @param strings - localized strings */ var formatMonthYear = function (date, strings) { return strings.months[date.getMonth()] + ' ' + date.getFullYear(); }; //# sourceMappingURL=formatMonthYear.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatYear.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatYear.js ***! \*************************************************************************************/ /*! exports provided: formatYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatYear", function() { return formatYear; }); /** * Format date to a year string representation * @param date - input date to format */ var formatYear = function (date) { return date.getFullYear().toString(); }; //# sourceMappingURL=formatYear.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/index.js ***! \********************************************************************************/ /*! exports provided: DEFAULT_LOCALIZED_STRINGS, DEFAULT_DATE_FORMATTING, DEFAULT_CALENDAR_STRINGS, formatDay, formatMonthDayYear, formatMonthYear, formatYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _dateFormatting_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dateFormatting.defaults */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/dateFormatting.defaults.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_LOCALIZED_STRINGS", function() { return _dateFormatting_defaults__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_LOCALIZED_STRINGS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_DATE_FORMATTING", function() { return _dateFormatting_defaults__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_DATE_FORMATTING"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CALENDAR_STRINGS", function() { return _dateFormatting_defaults__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CALENDAR_STRINGS"]; }); /* harmony import */ var _formatDay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatDay */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatDay.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDay", function() { return _formatDay__WEBPACK_IMPORTED_MODULE_1__["formatDay"]; }); /* harmony import */ var _formatMonthDayYear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatMonthDayYear */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthDayYear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatMonthDayYear", function() { return _formatMonthDayYear__WEBPACK_IMPORTED_MODULE_2__["formatMonthDayYear"]; }); /* harmony import */ var _formatMonthYear__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatMonthYear */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatMonthYear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatMonthYear", function() { return _formatMonthYear__WEBPACK_IMPORTED_MODULE_3__["formatMonthYear"]; }); /* harmony import */ var _formatYear__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatYear */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/formatYear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatYear", function() { return _formatYear__WEBPACK_IMPORTED_MODULE_4__["formatYear"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/findAvailableDate.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/findAvailableDate.js ***! \**************************************************************************************/ /*! exports provided: findAvailableDate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findAvailableDate", function() { return findAvailableDate; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _isRestrictedDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isRestrictedDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isRestrictedDate.js"); /* harmony import */ var _isAfterMaxDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isAfterMaxDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isAfterMaxDate.js"); /* harmony import */ var _isBeforeMinDate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isBeforeMinDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isBeforeMinDate.js"); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /** * Returns closest available date given the restriction `options`, or undefined otherwise * @param options - list of search options */ var findAvailableDate = function (options) { var targetDate = options.targetDate, initialDate = options.initialDate, direction = options.direction, restrictedDateOptions = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(options, ["targetDate", "initialDate", "direction"]); var availableDate = targetDate; // if the target date is available, return it immediately if (!Object(_isRestrictedDate__WEBPACK_IMPORTED_MODULE_1__["isRestrictedDate"])(targetDate, restrictedDateOptions)) { return targetDate; } while (Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_4__["compareDatePart"])(initialDate, availableDate) !== 0 && Object(_isRestrictedDate__WEBPACK_IMPORTED_MODULE_1__["isRestrictedDate"])(availableDate, restrictedDateOptions) && !Object(_isAfterMaxDate__WEBPACK_IMPORTED_MODULE_2__["isAfterMaxDate"])(availableDate, restrictedDateOptions) && !Object(_isBeforeMinDate__WEBPACK_IMPORTED_MODULE_3__["isBeforeMinDate"])(availableDate, restrictedDateOptions)) { availableDate = Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_4__["addDays"])(availableDate, direction); } if (Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_4__["compareDatePart"])(initialDate, availableDate) !== 0 && !Object(_isRestrictedDate__WEBPACK_IMPORTED_MODULE_1__["isRestrictedDate"])(availableDate, restrictedDateOptions)) { return availableDate; } return undefined; }; //# sourceMappingURL=findAvailableDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getBoundedDateRange.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getBoundedDateRange.js ***! \****************************************************************************************/ /*! exports provided: getBoundedDateRange */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBoundedDateRange", function() { return getBoundedDateRange; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /** * Generates a list of dates, bounded by min and max dates * @param dateRange - input date range * @param minDate - min date to limit the range * @param maxDate - max date to limit the range */ var getBoundedDateRange = function (dateRange, minDate, maxDate) { var boundedDateRange = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(dateRange); if (minDate) { boundedDateRange = boundedDateRange.filter(function (date) { return Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_1__["compareDatePart"])(date, minDate) >= 0; }); } if (maxDate) { boundedDateRange = boundedDateRange.filter(function (date) { return Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_1__["compareDatePart"])(date, maxDate) <= 0; }); } return boundedDateRange; }; //# sourceMappingURL=getBoundedDateRange.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDateRangeTypeToUse.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDateRangeTypeToUse.js ***! \******************************************************************************************/ /*! exports provided: getDateRangeTypeToUse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDateRangeTypeToUse", function() { return getDateRangeTypeToUse; }); /* harmony import */ var _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/dateValues.js"); /* harmony import */ var _isContiguous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isContiguous */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isContiguous.js"); /** * Return corrected date range type, given `dateRangeType` and list of working days. * For non-contiguous working days and working week range type, returns general week range type. * For other cases returns input date range type. * @param dateRangeType - input type of range * @param workWeekDays - list of working days in a week */ var getDateRangeTypeToUse = function (dateRangeType, workWeekDays, firstDayOfWeek) { if (workWeekDays && dateRangeType === _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].WorkWeek) { if (!Object(_isContiguous__WEBPACK_IMPORTED_MODULE_1__["isContiguous"])(workWeekDays, true, firstDayOfWeek) || workWeekDays.length === 0) { return _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].Week; } } return dateRangeType; }; //# sourceMappingURL=getDateRangeTypeToUse.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDayGrid.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDayGrid.js ***! \*******************************************************************************/ /*! exports provided: getDayGrid */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDayGrid", function() { return getDayGrid; }); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /* harmony import */ var _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/dateValues.js"); /* harmony import */ var _getDateRangeTypeToUse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDateRangeTypeToUse */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDateRangeTypeToUse.js"); /* harmony import */ var _getBoundedDateRange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getBoundedDateRange */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getBoundedDateRange.js"); /* harmony import */ var _isRestrictedDate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isRestrictedDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isRestrictedDate.js"); /** * Generates a grid of days, given the `options`. * Returns one additional week at the begining from the previous range * and one at the end from the future range * @param options - parameters to specify date related restrictions for the resulting grid */ var getDayGrid = function (options) { var _a; var selectedDate = options.selectedDate, dateRangeType = options.dateRangeType, firstDayOfWeek = options.firstDayOfWeek, today = options.today, minDate = options.minDate, maxDate = options.maxDate, weeksToShow = options.weeksToShow, workWeekDays = options.workWeekDays, daysToSelectInDayView = options.daysToSelectInDayView, restrictedDates = options.restrictedDates, markedDays = options.markedDays; var restrictedDateOptions = { minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates }; var todaysDate = today || new Date(); var navigatedDate = options.navigatedDate ? options.navigatedDate : todaysDate; var date; if (weeksToShow && weeksToShow <= 4) { // if showing less than a full month, just use date == navigatedDate date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), navigatedDate.getDate()); } else { date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), 1); } var weeks = []; // Cycle the date backwards to get to the first day of the week. while (date.getDay() !== firstDayOfWeek) { date.setDate(date.getDate() - 1); } // add the transition week as last week of previous range date = Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["addDays"])(date, -_dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["DAYS_IN_WEEK"]); // a flag to indicate whether all days of the week are outside the month var isAllDaysOfWeekOutOfMonth = false; // in work week view if the days aren't contiguous we use week view instead var selectedDateRangeType = Object(_getDateRangeTypeToUse__WEBPACK_IMPORTED_MODULE_2__["getDateRangeTypeToUse"])(dateRangeType, workWeekDays, firstDayOfWeek); var selectedDates = []; if (!!selectedDate) { selectedDates = Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getDateRangeArray"])(selectedDate, selectedDateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView); selectedDates = Object(_getBoundedDateRange__WEBPACK_IMPORTED_MODULE_3__["getBoundedDateRange"])(selectedDates, minDate, maxDate); } var shouldGetWeeks = true; for (var weekIndex = 0; shouldGetWeeks; weekIndex++) { var week = []; isAllDaysOfWeekOutOfMonth = true; var _loop_1 = function (dayIndex) { var originalDate = new Date(date.getTime()); var dayInfo = { key: date.toString(), date: date.getDate().toString(), originalDate: originalDate, isInMonth: date.getMonth() === navigatedDate.getMonth(), isToday: Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDates"])(todaysDate, date), isSelected: Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["isInDateRangeArray"])(date, selectedDates), isInBounds: !Object(_isRestrictedDate__WEBPACK_IMPORTED_MODULE_4__["isRestrictedDate"])(date, restrictedDateOptions), isMarked: ((_a = markedDays) === null || _a === void 0 ? void 0 : _a.some(function (markedDay) { return Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDates"])(originalDate, markedDay); })) || false, }; week.push(dayInfo); if (dayInfo.isInMonth) { isAllDaysOfWeekOutOfMonth = false; } date.setDate(date.getDate() + 1); }; for (var dayIndex = 0; dayIndex < _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["DAYS_IN_WEEK"]; dayIndex++) { _loop_1(dayIndex); } // We append the condition of the loop depending upon the showSixWeeksByDefault prop. shouldGetWeeks = weeksToShow ? weekIndex < weeksToShow + 1 : !isAllDaysOfWeekOutOfMonth || weekIndex === 0; // we don't check shouldGetWeeks before pushing because we want to add one extra week for transition state weeks.push(week); } return weeks; }; //# sourceMappingURL=getDayGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/index.js ***! \**************************************************************************/ /*! exports provided: findAvailableDate, getBoundedDateRange, getDateRangeTypeToUse, getDayGrid, isAfterMaxDate, isBeforeMinDate, isRestrictedDate, isContiguous */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _findAvailableDate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./findAvailableDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/findAvailableDate.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findAvailableDate", function() { return _findAvailableDate__WEBPACK_IMPORTED_MODULE_0__["findAvailableDate"]; }); /* harmony import */ var _getBoundedDateRange__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getBoundedDateRange */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getBoundedDateRange.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBoundedDateRange", function() { return _getBoundedDateRange__WEBPACK_IMPORTED_MODULE_1__["getBoundedDateRange"]; }); /* harmony import */ var _getDateRangeTypeToUse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDateRangeTypeToUse */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDateRangeTypeToUse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDateRangeTypeToUse", function() { return _getDateRangeTypeToUse__WEBPACK_IMPORTED_MODULE_2__["getDateRangeTypeToUse"]; }); /* harmony import */ var _getDayGrid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getDayGrid */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/getDayGrid.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDayGrid", function() { return _getDayGrid__WEBPACK_IMPORTED_MODULE_3__["getDayGrid"]; }); /* harmony import */ var _isAfterMaxDate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isAfterMaxDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isAfterMaxDate.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAfterMaxDate", function() { return _isAfterMaxDate__WEBPACK_IMPORTED_MODULE_4__["isAfterMaxDate"]; }); /* harmony import */ var _isBeforeMinDate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isBeforeMinDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isBeforeMinDate.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBeforeMinDate", function() { return _isBeforeMinDate__WEBPACK_IMPORTED_MODULE_5__["isBeforeMinDate"]; }); /* harmony import */ var _isRestrictedDate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isRestrictedDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isRestrictedDate.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRestrictedDate", function() { return _isRestrictedDate__WEBPACK_IMPORTED_MODULE_6__["isRestrictedDate"]; }); /* harmony import */ var _isContiguous__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./isContiguous */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isContiguous.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isContiguous", function() { return _isContiguous__WEBPACK_IMPORTED_MODULE_7__["isContiguous"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isAfterMaxDate.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isAfterMaxDate.js ***! \***********************************************************************************/ /*! exports provided: isAfterMaxDate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAfterMaxDate", function() { return isAfterMaxDate; }); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /** * Checks if `date` happens later than max date * @param date - date to check * @param options - object with max date to check against */ var isAfterMaxDate = function (date, options) { var maxDate = options.maxDate; return maxDate ? Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDatePart"])(date, maxDate) >= 1 : false; }; //# sourceMappingURL=isAfterMaxDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isBeforeMinDate.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isBeforeMinDate.js ***! \************************************************************************************/ /*! exports provided: isBeforeMinDate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBeforeMinDate", function() { return isBeforeMinDate; }); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /** * Checks if `date` happens earlier than min date * @param date - date to check * @param options - object with min date to check against */ var isBeforeMinDate = function (date, options) { var minDate = options.minDate; return minDate ? Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDatePart"])(minDate, date) >= 1 : false; }; //# sourceMappingURL=isBeforeMinDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isContiguous.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isContiguous.js ***! \*********************************************************************************/ /*! exports provided: isContiguous */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isContiguous", function() { return isContiguous; }); /** * Returns whether provided week days are contiguous. * @param days - list of days in a week * @param isSingleWeek - decides whether the contiguous logic applies across week boundaries or not * @param firstDayOfWeek - decides which day of week is the first one in the order. */ var isContiguous = function (days, isSingleWeek, firstDayOfWeek) { var daySet = new Set(days); var amountOfNoNeighbors = 0; for (var _i = 0, days_1 = days; _i < days_1.length; _i++) { var day = days_1[_i]; var nextDay = (day + 1) % 7; if (!(daySet.has(nextDay) && (!isSingleWeek || firstDayOfWeek !== nextDay))) { amountOfNoNeighbors++; } } // In case the full week is provided, then each day has a neighbor //, otherwise the last day does not have a neighbor. return amountOfNoNeighbors < 2; }; //# sourceMappingURL=isContiguous.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isRestrictedDate.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isRestrictedDate.js ***! \*************************************************************************************/ /*! exports provided: isRestrictedDate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRestrictedDate", function() { return isRestrictedDate; }); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /* harmony import */ var _isBeforeMinDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isBeforeMinDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isBeforeMinDate.js"); /* harmony import */ var _isAfterMaxDate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isAfterMaxDate */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/isAfterMaxDate.js"); /** * Checks if `date` falls into the restricted `options` * @param date - date to check * @param options - restriction options (min date, max date and list of restricted dates) */ var isRestrictedDate = function (date, options) { var restrictedDates = options.restrictedDates, minDate = options.minDate, maxDate = options.maxDate; if (!restrictedDates && !minDate && !maxDate) { return false; } var inRestrictedDates = restrictedDates && restrictedDates.some(function (rd) { return Object(_dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDates"])(rd, date); }); return inRestrictedDates || Object(_isBeforeMinDate__WEBPACK_IMPORTED_MODULE_1__["isBeforeMinDate"])(date, options) || Object(_isAfterMaxDate__WEBPACK_IMPORTED_MODULE_2__["isAfterMaxDate"])(date, options); }; //# sourceMappingURL=isRestrictedDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js ***! \*****************************************************************************/ /*! exports provided: addDays, addWeeks, addMonths, addYears, getMonthStart, getMonthEnd, getYearStart, getYearEnd, setMonth, compareDates, compareDatePart, getDateRangeArray, isInDateRangeArray, getWeekNumbersInMonth, getWeekNumber, getStartDateOfWeek, getEndDateOfWeek, getDatePartHashValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addDays", function() { return addDays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addWeeks", function() { return addWeeks; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMonths", function() { return addMonths; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addYears", function() { return addYears; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthStart", function() { return getMonthStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthEnd", function() { return getMonthEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getYearStart", function() { return getYearStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getYearEnd", function() { return getYearEnd; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setMonth", function() { return setMonth; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compareDates", function() { return compareDates; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compareDatePart", function() { return compareDatePart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDateRangeArray", function() { return getDateRangeArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInDateRangeArray", function() { return isInDateRangeArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeekNumbersInMonth", function() { return getWeekNumbersInMonth; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeekNumber", function() { return getWeekNumber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStartDateOfWeek", function() { return getStartDateOfWeek; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEndDateOfWeek", function() { return getEndDateOfWeek; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDatePartHashValue", function() { return getDatePartHashValue; }); /* harmony import */ var _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/dateValues.js"); /* harmony import */ var _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dateValues/timeConstants */ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/timeConstants.js"); /** * Returns a date offset from the given date by the specified number of days. * @param date - The origin date * @param days - The number of days to offset. 'days' can be negative. * @returns A new Date object offset from the origin date by the given number of days */ function addDays(date, days) { var result = new Date(date.getTime()); result.setDate(result.getDate() + days); return result; } /** * Returns a date offset from the given date by the specified number of weeks. * @param date - The origin date * @param weeks - The number of weeks to offset. 'weeks' can be negative. * @returns A new Date object offset from the origin date by the given number of weeks */ function addWeeks(date, weeks) { return addDays(date, weeks * _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek); } /** * Returns a date offset from the given date by the specified number of months. * The method tries to preserve the day-of-month; however, if the new month does not have enough days * to contain the original day-of-month, we'll use the last day of the new month. * @param date - The origin date * @param months - The number of months to offset. 'months' can be negative. * @returns A new Date object offset from the origin date by the given number of months */ function addMonths(date, months) { var result = new Date(date.getTime()); var newMonth = result.getMonth() + months; result.setMonth(newMonth); // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days. // Loop until we back up to a day the new month has. // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo) if (result.getMonth() !== ((newMonth % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].MonthInOneYear) + _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].MonthInOneYear) % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].MonthInOneYear) { result = addDays(result, -result.getDate()); } return result; } /** * Returns a date offset from the given date by the specified number of years. * The method tries to preserve the day-of-month; however, if the new month does not have enough days * to contain the original day-of-month, we'll use the last day of the new month. * @param date - The origin date * @param years - The number of years to offset. 'years' can be negative. * @returns A new Date object offset from the origin date by the given number of years */ function addYears(date, years) { var result = new Date(date.getTime()); result.setFullYear(date.getFullYear() + years); // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days. // Loop until we back up to a day the new month has. // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo) if (result.getMonth() !== ((date.getMonth() % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].MonthInOneYear) + _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].MonthInOneYear) % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].MonthInOneYear) { result = addDays(result, -result.getDate()); } return result; } /** * Returns a date that is the first day of the month of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the first day of the month. */ function getMonthStart(date) { return new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0); } /** * Returns a date that is the last day of the month of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the last day of the month. */ function getMonthEnd(date) { return new Date(date.getFullYear(), date.getMonth() + 1, 0, 0, 0, 0, 0); } /** * Returns a date that is the first day of the year of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the first day of the year. */ function getYearStart(date) { return new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0); } /** * Returns a date that is the last day of the year of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the last day of the year. */ function getYearEnd(date) { return new Date(date.getFullYear() + 1, 0, 0, 0, 0, 0, 0); } /** * Returns a date that is a copy of the given date, aside from the month changing to the given month. * The method tries to preserve the day-of-month; however, if the new month does not have enough days * to contain the original day-of-month, we'll use the last day of the new month. * @param date - The origin date * @param month - The 0-based index of the month to set on the date. * @returns A new Date object with the given month set. */ function setMonth(date, month) { return addMonths(date, month - date.getMonth()); } /** * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal. * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise. */ function compareDates(date1, date2) { if (!date1 && !date2) { return true; } else if (!date1 || !date2) { return false; } else { return (date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate()); } } /** * Compare the date parts of two dates * @param date1 - The first date to compare * @param date2 - The second date to compare * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value * if date1 is later than date2. */ function compareDatePart(date1, date2) { return getDatePartHashValue(date1) - getDatePartHashValue(date2); } /** * Gets the date range array including the specified date. The date range array is calculated as the list * of dates accounting for the specified first day of the week and date range type. * @param date - The input date * @param dateRangeType - The desired date range type, i.e., day, week, month, etc. * @param firstDayOfWeek - The first day of the week. * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed. * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day * for multiday view. Defaults to 1 * @returns An array of dates representing the date range containing the specified date. */ function getDateRangeArray(date, dateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView) { if (daysToSelectInDayView === void 0) { daysToSelectInDayView = 1; } var datesArray = new Array(); var startDate; var endDate = null; if (!workWeekDays) { workWeekDays = [_dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"].Monday, _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"].Tuesday, _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"].Wednesday, _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"].Thursday, _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"].Friday]; } daysToSelectInDayView = Math.max(daysToSelectInDayView, 1); switch (dateRangeType) { case _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].Day: startDate = getDatePart(date); endDate = addDays(startDate, daysToSelectInDayView); break; case _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].Week: case _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].WorkWeek: startDate = getStartDateOfWeek(getDatePart(date), firstDayOfWeek); endDate = addDays(startDate, _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek); break; case _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].Month: startDate = new Date(date.getFullYear(), date.getMonth(), 1); endDate = addMonths(startDate, 1); break; default: throw new Error('Unexpected object: ' + dateRangeType); } // Populate the dates array with the dates in range var nextDate = startDate; do { if (dateRangeType !== _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"].WorkWeek) { // push all days not in work week view datesArray.push(nextDate); } else if (workWeekDays.indexOf(nextDate.getDay()) !== -1) { datesArray.push(nextDate); } nextDate = addDays(nextDate, 1); } while (!compareDates(nextDate, endDate)); return datesArray; } /** * Checks whether the specified date is in the given date range. * @param date - The origin date * @param dateRange - An array of dates to do the lookup on * @returns True if the date matches one of the dates in the specified array, false otherwise. */ function isInDateRangeArray(date, dateRange) { for (var _i = 0, dateRange_1 = dateRange; _i < dateRange_1.length; _i++) { var dateInRange = dateRange_1[_i]; if (compareDates(date, dateInRange)) { return true; } } return false; } /** * Returns the week number for a date. * Week numbers are 1 - 52 (53) in a year * @param navigatedDate - A date to find the week number for. * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0) * @param firstWeekOfYear - The first week of the year (1-2) * @returns The weeks number array for the current month. */ function getWeekNumbersInMonth(weeksInMonth, firstDayOfWeek, firstWeekOfYear, navigatedDate) { var selectedYear = navigatedDate.getFullYear(); var selectedMonth = navigatedDate.getMonth(); var dayOfMonth = 1; var fistDayOfMonth = new Date(selectedYear, selectedMonth, dayOfMonth); var endOfFirstWeek = dayOfMonth + (firstDayOfWeek + _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek - 1) - adjustWeekDay(firstDayOfWeek, fistDayOfMonth.getDay()); var endOfWeekRange = new Date(selectedYear, selectedMonth, endOfFirstWeek); dayOfMonth = endOfWeekRange.getDate(); var weeksArray = []; for (var i = 0; i < weeksInMonth; i++) { // Get week number for end of week weeksArray.push(getWeekNumber(endOfWeekRange, firstDayOfWeek, firstWeekOfYear)); dayOfMonth += _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; endOfWeekRange = new Date(selectedYear, selectedMonth, dayOfMonth); } return weeksArray; } /** * Returns the week number for a date. * Week numbers are 1 - 52 (53) in a year * @param date - A date to find the week number for. * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0) * @param firstWeekOfYear - The first week of the year (1-2) * @returns The week's number in the year. */ function getWeekNumber(date, firstDayOfWeek, firstWeekOfYear) { // First four-day week of the year - minumum days count var fourDayWeek = 4; switch (firstWeekOfYear) { case _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["FirstWeekOfYear"].FirstFullWeek: return getWeekOfYearFullDays(date, firstDayOfWeek, _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek); case _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["FirstWeekOfYear"].FirstFourDayWeek: return getWeekOfYearFullDays(date, firstDayOfWeek, fourDayWeek); default: return getFirstDayWeekOfYear(date, firstDayOfWeek); } } /** * Gets the date for the first day of the week based on the given date assuming * the specified first day of the week. * @param date - The date to find the beginning of the week date for. * @returns A new date object representing the first day of the week containing the input date. */ function getStartDateOfWeek(date, firstDayOfWeek) { var daysOffset = firstDayOfWeek - date.getDay(); if (daysOffset > 0) { // If first day of week is > date, go 1 week back, to ensure resulting date is in the past. daysOffset -= _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; } return addDays(date, daysOffset); } /** * Gets the date for the last day of the week based on the given date assuming * the specified first day of the week. * @param date - The date to find the beginning of the week date for. * @returns A new date object representing the first day of the week containing the input date. */ function getEndDateOfWeek(date, firstDayOfWeek) { var lastDayOfWeek = firstDayOfWeek - 1 >= 0 ? firstDayOfWeek - 1 : _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek - 1; var daysOffset = lastDayOfWeek - date.getDay(); if (daysOffset < 0) { // If last day of week is < date, go 1 week forward, to ensure resulting date is in the future. daysOffset += _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; } return addDays(date, daysOffset); } /** * Gets a new date with the time portion zeroed out, i.e., set to midnight * @param date - The origin date * @returns A new date with the time set to midnight */ function getDatePart(date) { return new Date(date.getFullYear(), date.getMonth(), date.getDate()); } /** * Helper function to assist in date comparisons */ function getDatePartHashValue(date) { // Generate date hash value created as sum of Date (up to 31 = 5 bits), Month (up to 11 = 4 bits) and Year. return date.getDate() + (date.getMonth() << 5) + (date.getFullYear() << 9); } /** * Helper function for getWeekNumber. * Returns week number for a date * @param date - current selected date. * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0) * @param numberOfFullDays - week settings. * @returns The week's number in the year. */ function getWeekOfYearFullDays(date, firstDayOfWeek, numberOfFullDays) { var dayOfYear = getDayOfYear(date) - 1; var num = date.getDay() - (dayOfYear % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek); var lastDayOfPrevYear = new Date(date.getFullYear() - 1, _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["MonthOfYear"].December, 31); var daysInYear = getDayOfYear(lastDayOfPrevYear) - 1; var num2 = (firstDayOfWeek - num + 2 * _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek) % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; if (num2 !== 0 && num2 >= numberOfFullDays) { num2 -= _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; } var num3 = dayOfYear - num2; if (num3 < 0) { num -= daysInYear % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; num2 = (firstDayOfWeek - num + 2 * _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek) % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; if (num2 !== 0 && num2 + 1 >= numberOfFullDays) { num2 -= _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; } num3 = daysInYear - num2; } return Math.floor(num3 / _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek + 1); } /** * Helper function for getWeekNumber. * Returns week number for a date * @param date - current selected date. * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0) * @returns The week's number in the year. */ function getFirstDayWeekOfYear(date, firstDayOfWeek) { var num = getDayOfYear(date) - 1; var num2 = date.getDay() - (num % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek); var num3 = (num2 - firstDayOfWeek + 2 * _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek) % _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek; return Math.floor((num + num3) / _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek + 1); } /** * Helper function for getWeekNumber. * Returns adjusted week day number when firstDayOfWeek is other than Sunday * For Week Day Number comparison checks * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0) * @param dateWeekDay - shifts number forward to 1 week in case passed as true * @returns The day of week adjusted to `firstDayOfWeek`; e.g. when `firstDayOfWeek` is Monday (1), * Sunday becomes 7. */ function adjustWeekDay(firstDayOfWeek, dateWeekDay) { return firstDayOfWeek !== _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"].Sunday && dateWeekDay < firstDayOfWeek ? dateWeekDay + _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_1__["default"].DaysInOneWeek : dateWeekDay; } /** * Returns the day number for a date in a year * The number of days since January 1st in the particular year. * @param date - A date to find the day number for. * @returns The day's number in the year. */ function getDayOfYear(date) { var month = date.getMonth(); var year = date.getFullYear(); var daysUntilDate = 0; for (var i = 0; i < month; i++) { daysUntilDate += daysInMonth(i + 1, year); } daysUntilDate += date.getDate(); return daysUntilDate; } /** * Returns the number of days in the month * @param month - The month number to target (months 1-12). * @param year - The year to target. * @returns The number of days in the month. */ function daysInMonth(month, year) { return new Date(year, month, 0).getDate(); } //# sourceMappingURL=dateMath.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/dateValues.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateValues/dateValues.js ***! \*********************************************************************************/ /*! exports provided: DayOfWeek, MonthOfYear, FirstWeekOfYear, DateRangeType, DAYS_IN_WEEK */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DayOfWeek", function() { return DayOfWeek; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonthOfYear", function() { return MonthOfYear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FirstWeekOfYear", function() { return FirstWeekOfYear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateRangeType", function() { return DateRangeType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_WEEK", function() { return DAYS_IN_WEEK; }); /** * The days of the week * {@docCategory DayOfWeek} */ var DayOfWeek; (function (DayOfWeek) { DayOfWeek[DayOfWeek["Sunday"] = 0] = "Sunday"; DayOfWeek[DayOfWeek["Monday"] = 1] = "Monday"; DayOfWeek[DayOfWeek["Tuesday"] = 2] = "Tuesday"; DayOfWeek[DayOfWeek["Wednesday"] = 3] = "Wednesday"; DayOfWeek[DayOfWeek["Thursday"] = 4] = "Thursday"; DayOfWeek[DayOfWeek["Friday"] = 5] = "Friday"; DayOfWeek[DayOfWeek["Saturday"] = 6] = "Saturday"; })(DayOfWeek || (DayOfWeek = {})); /** * The months * {@docCategory MonthOfYear} */ var MonthOfYear; (function (MonthOfYear) { MonthOfYear[MonthOfYear["January"] = 0] = "January"; MonthOfYear[MonthOfYear["February"] = 1] = "February"; MonthOfYear[MonthOfYear["March"] = 2] = "March"; MonthOfYear[MonthOfYear["April"] = 3] = "April"; MonthOfYear[MonthOfYear["May"] = 4] = "May"; MonthOfYear[MonthOfYear["June"] = 5] = "June"; MonthOfYear[MonthOfYear["July"] = 6] = "July"; MonthOfYear[MonthOfYear["August"] = 7] = "August"; MonthOfYear[MonthOfYear["September"] = 8] = "September"; MonthOfYear[MonthOfYear["October"] = 9] = "October"; MonthOfYear[MonthOfYear["November"] = 10] = "November"; MonthOfYear[MonthOfYear["December"] = 11] = "December"; })(MonthOfYear || (MonthOfYear = {})); /** * First week of the year settings types * {@docCategory FirstWeekOfYear} */ var FirstWeekOfYear; (function (FirstWeekOfYear) { FirstWeekOfYear[FirstWeekOfYear["FirstDay"] = 0] = "FirstDay"; FirstWeekOfYear[FirstWeekOfYear["FirstFullWeek"] = 1] = "FirstFullWeek"; FirstWeekOfYear[FirstWeekOfYear["FirstFourDayWeek"] = 2] = "FirstFourDayWeek"; })(FirstWeekOfYear || (FirstWeekOfYear = {})); /** * The supported date range types * {@docCategory DateRangeType} */ var DateRangeType; (function (DateRangeType) { DateRangeType[DateRangeType["Day"] = 0] = "Day"; DateRangeType[DateRangeType["Week"] = 1] = "Week"; DateRangeType[DateRangeType["Month"] = 2] = "Month"; DateRangeType[DateRangeType["WorkWeek"] = 3] = "WorkWeek"; })(DateRangeType || (DateRangeType = {})); var DAYS_IN_WEEK = 7; //# sourceMappingURL=dateValues.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/timeConstants.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/dateValues/timeConstants.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /** * Common constants and methods */ var TimeConstants = { MillisecondsInOneDay: 86400000, MillisecondsIn1Sec: 1000, MillisecondsIn1Min: 60000, MillisecondsIn30Mins: 1800000, MillisecondsIn1Hour: 3600000, MinutesInOneDay: 1440, MinutesInOneHour: 60, DaysInOneWeek: 7, MonthInOneYear: 12, }; /* harmony default export */ __webpack_exports__["default"] = (TimeConstants); //# sourceMappingURL=timeConstants.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib/index.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib/index.js ***! \*****************************************************************/ /*! exports provided: addDays, addWeeks, addMonths, addYears, getMonthStart, getMonthEnd, getYearStart, getYearEnd, setMonth, compareDates, compareDatePart, getDateRangeArray, isInDateRangeArray, getWeekNumbersInMonth, getWeekNumber, getStartDateOfWeek, getEndDateOfWeek, getDatePartHashValue, DayOfWeek, MonthOfYear, FirstWeekOfYear, DateRangeType, DAYS_IN_WEEK, DEFAULT_LOCALIZED_STRINGS, DEFAULT_DATE_FORMATTING, DEFAULT_CALENDAR_STRINGS, formatDay, formatMonthDayYear, formatMonthYear, formatYear, findAvailableDate, getBoundedDateRange, getDateRangeTypeToUse, getDayGrid, isAfterMaxDate, isBeforeMinDate, isRestrictedDate, isContiguous */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib/dateMath/dateMath.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addDays", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["addDays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addWeeks", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["addWeeks"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addMonths", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["addMonths"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addYears", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["addYears"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMonthStart", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getMonthStart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMonthEnd", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getMonthEnd"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getYearStart", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getYearStart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getYearEnd", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getYearEnd"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setMonth", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["setMonth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "compareDates", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDates"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "compareDatePart", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["compareDatePart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDateRangeArray", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getDateRangeArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInDateRangeArray", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["isInDateRangeArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getWeekNumbersInMonth", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getWeekNumbersInMonth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getWeekNumber", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getWeekNumber"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getStartDateOfWeek", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getStartDateOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getEndDateOfWeek", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getEndDateOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDatePartHashValue", function() { return _dateMath_dateMath__WEBPACK_IMPORTED_MODULE_0__["getDatePartHashValue"]; }); /* harmony import */ var _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/dateValues.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DayOfWeek", function() { return _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["DayOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MonthOfYear", function() { return _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["MonthOfYear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FirstWeekOfYear", function() { return _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["FirstWeekOfYear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateRangeType", function() { return _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["DateRangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_WEEK", function() { return _dateValues_dateValues__WEBPACK_IMPORTED_MODULE_1__["DAYS_IN_WEEK"]; }); /* harmony import */ var _dateValues_timeConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dateValues/timeConstants */ "./node_modules/@fluentui/date-time-utilities/lib/dateValues/timeConstants.js"); /* empty/unused harmony star reexport *//* harmony import */ var _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dateFormatting/index */ "./node_modules/@fluentui/date-time-utilities/lib/dateFormatting/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_LOCALIZED_STRINGS", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["DEFAULT_LOCALIZED_STRINGS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_DATE_FORMATTING", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["DEFAULT_DATE_FORMATTING"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CALENDAR_STRINGS", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["DEFAULT_CALENDAR_STRINGS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDay", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["formatDay"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatMonthDayYear", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["formatMonthDayYear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatMonthYear", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["formatMonthYear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatYear", function() { return _dateFormatting_index__WEBPACK_IMPORTED_MODULE_3__["formatYear"]; }); /* harmony import */ var _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dateGrid/index */ "./node_modules/@fluentui/date-time-utilities/lib/dateGrid/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findAvailableDate", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["findAvailableDate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBoundedDateRange", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["getBoundedDateRange"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDateRangeTypeToUse", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["getDateRangeTypeToUse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDayGrid", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["getDayGrid"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAfterMaxDate", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["isAfterMaxDate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isBeforeMinDate", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["isBeforeMinDate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRestrictedDate", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["isRestrictedDate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isContiguous", function() { return _dateGrid_index__WEBPACK_IMPORTED_MODULE_4__["isContiguous"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/elementContains.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/elementContains.js ***! \*********************************************************************/ /*! exports provided: elementContains */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementContains", function() { return elementContains; }); /* harmony import */ var _getParent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getParent */ "./node_modules/@fluentui/dom-utilities/lib/getParent.js"); /** * Determines whether or not a parent element contains a given child element. * If `allowVirtualParents` is true, this method may return `true` if the child * has the parent in its virtual element hierarchy. * * @public */ function elementContains(parent, child, allowVirtualParents) { if (allowVirtualParents === void 0) { allowVirtualParents = true; } var isContained = false; if (parent && child) { if (allowVirtualParents) { if (parent === child) { isContained = true; } else { isContained = false; while (child) { var nextParent = Object(_getParent__WEBPACK_IMPORTED_MODULE_0__["getParent"])(child); if (nextParent === parent) { isContained = true; break; } child = nextParent; } } } else if (parent.contains) { isContained = parent.contains(child); } } return isContained; } //# sourceMappingURL=elementContains.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/elementContainsAttribute.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/elementContainsAttribute.js ***! \******************************************************************************/ /*! exports provided: elementContainsAttribute */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementContainsAttribute", function() { return elementContainsAttribute; }); /* harmony import */ var _findElementRecursive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./findElementRecursive */ "./node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js"); /** * Determines if an element, or any of its ancestors, contain the given attribute * @param element - element to start searching at * @param attribute - the attribute to search for * @returns the value of the first instance found */ function elementContainsAttribute(element, attribute) { var elementMatch = Object(_findElementRecursive__WEBPACK_IMPORTED_MODULE_0__["findElementRecursive"])(element, function (testElement) { return testElement.hasAttribute(attribute); }); return elementMatch && elementMatch.getAttribute(attribute); } //# sourceMappingURL=elementContainsAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js ***! \**************************************************************************/ /*! exports provided: findElementRecursive */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findElementRecursive", function() { return findElementRecursive; }); /* harmony import */ var _getParent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getParent */ "./node_modules/@fluentui/dom-utilities/lib/getParent.js"); /** * Finds the first parent element where the matchFunction returns true * @param element - element to start searching at * @param matchFunction - the function that determines if the element is a match * @returns the matched element or null no match was found */ function findElementRecursive(element, matchFunction) { if (!element || element === document.body) { return null; } return matchFunction(element) ? element : findElementRecursive(Object(_getParent__WEBPACK_IMPORTED_MODULE_0__["getParent"])(element), matchFunction); } //# sourceMappingURL=findElementRecursive.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/getChildren.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/getChildren.js ***! \*****************************************************************/ /*! exports provided: getChildren */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChildren", function() { return getChildren; }); /* harmony import */ var _isVirtualElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js"); /** * Gets the elements which are child elements of the given element. * If `allowVirtualChildren` is `true`, this method enumerates virtual child elements * after the original children. * @param parent - The element to get the children of. * @param allowVirtualChildren - true if the method should enumerate virtual child elements. */ function getChildren(parent, allowVirtualChildren) { if (allowVirtualChildren === void 0) { allowVirtualChildren = true; } var children = []; if (parent) { for (var i = 0; i < parent.children.length; i++) { children.push(parent.children.item(i)); } if (allowVirtualChildren && Object(_isVirtualElement__WEBPACK_IMPORTED_MODULE_0__["isVirtualElement"])(parent)) { children.push.apply(children, parent._virtual.children); } } return children; } //# sourceMappingURL=getChildren.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/getParent.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/getParent.js ***! \***************************************************************/ /*! exports provided: getParent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getParent", function() { return getParent; }); /* harmony import */ var _getVirtualParent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getVirtualParent */ "./node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js"); /** * Gets the element which is the parent of a given element. * If `allowVirtuaParents` is `true`, this method prefers the virtual parent over * real DOM parent when present. * * @public */ function getParent(child, allowVirtualParents) { if (allowVirtualParents === void 0) { allowVirtualParents = true; } return (child && ((allowVirtualParents && Object(_getVirtualParent__WEBPACK_IMPORTED_MODULE_0__["getVirtualParent"])(child)) || (child.parentNode && child.parentNode))); } //# sourceMappingURL=getParent.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js ***! \**********************************************************************/ /*! exports provided: getVirtualParent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVirtualParent", function() { return getVirtualParent; }); /* harmony import */ var _isVirtualElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js"); /** * Gets the virtual parent given the child element, if it exists. * * @public */ function getVirtualParent(child) { var parent; if (child && Object(_isVirtualElement__WEBPACK_IMPORTED_MODULE_0__["isVirtualElement"])(child)) { parent = child._virtual.parent; } return parent; } //# sourceMappingURL=getVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/index.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/index.js ***! \***********************************************************/ /*! exports provided: elementContains, elementContainsAttribute, findElementRecursive, getChildren, getParent, getVirtualParent, isVirtualElement, portalContainsElement, DATA_PORTAL_ATTRIBUTE, setPortalAttribute, setVirtualParent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _elementContains__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./elementContains */ "./node_modules/@fluentui/dom-utilities/lib/elementContains.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementContains", function() { return _elementContains__WEBPACK_IMPORTED_MODULE_0__["elementContains"]; }); /* harmony import */ var _elementContainsAttribute__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elementContainsAttribute */ "./node_modules/@fluentui/dom-utilities/lib/elementContainsAttribute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementContainsAttribute", function() { return _elementContainsAttribute__WEBPACK_IMPORTED_MODULE_1__["elementContainsAttribute"]; }); /* harmony import */ var _findElementRecursive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./findElementRecursive */ "./node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findElementRecursive", function() { return _findElementRecursive__WEBPACK_IMPORTED_MODULE_2__["findElementRecursive"]; }); /* harmony import */ var _getChildren__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getChildren */ "./node_modules/@fluentui/dom-utilities/lib/getChildren.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getChildren", function() { return _getChildren__WEBPACK_IMPORTED_MODULE_3__["getChildren"]; }); /* harmony import */ var _getParent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getParent */ "./node_modules/@fluentui/dom-utilities/lib/getParent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getParent", function() { return _getParent__WEBPACK_IMPORTED_MODULE_4__["getParent"]; }); /* harmony import */ var _getVirtualParent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getVirtualParent */ "./node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getVirtualParent", function() { return _getVirtualParent__WEBPACK_IMPORTED_MODULE_5__["getVirtualParent"]; }); /* harmony import */ var _isVirtualElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isVirtualElement", function() { return _isVirtualElement__WEBPACK_IMPORTED_MODULE_6__["isVirtualElement"]; }); /* harmony import */ var _portalContainsElement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portalContainsElement */ "./node_modules/@fluentui/dom-utilities/lib/portalContainsElement.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "portalContainsElement", function() { return _portalContainsElement__WEBPACK_IMPORTED_MODULE_7__["portalContainsElement"]; }); /* harmony import */ var _setPortalAttribute__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./setPortalAttribute */ "./node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATA_PORTAL_ATTRIBUTE", function() { return _setPortalAttribute__WEBPACK_IMPORTED_MODULE_8__["DATA_PORTAL_ATTRIBUTE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPortalAttribute", function() { return _setPortalAttribute__WEBPACK_IMPORTED_MODULE_8__["setPortalAttribute"]; }); /* harmony import */ var _setVirtualParent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./setVirtualParent */ "./node_modules/@fluentui/dom-utilities/lib/setVirtualParent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setVirtualParent", function() { return _setVirtualParent__WEBPACK_IMPORTED_MODULE_9__["setVirtualParent"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js ***! \**********************************************************************/ /*! exports provided: isVirtualElement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isVirtualElement", function() { return isVirtualElement; }); /** * Determines whether or not an element has the virtual hierarchy extension. * * @public */ function isVirtualElement(element) { return element && !!element._virtual; } //# sourceMappingURL=isVirtualElement.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/portalContainsElement.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/portalContainsElement.js ***! \***************************************************************************/ /*! exports provided: portalContainsElement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "portalContainsElement", function() { return portalContainsElement; }); /* harmony import */ var _findElementRecursive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./findElementRecursive */ "./node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js"); /* harmony import */ var _setPortalAttribute__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./setPortalAttribute */ "./node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js"); /** * Determine whether a target is within a portal from perspective of root or optional parent. * This function only works against portal components that use the setPortalAttribute function. * If both parent and child are within the same portal this function will return false. * @param target - Element to query portal containment status of. * @param parent - Optional parent perspective. Search for containing portal stops at parent * (or root if parent is undefined or invalid.) */ function portalContainsElement(target, parent) { var elementMatch = Object(_findElementRecursive__WEBPACK_IMPORTED_MODULE_0__["findElementRecursive"])(target, function (testElement) { return parent === testElement || testElement.hasAttribute(_setPortalAttribute__WEBPACK_IMPORTED_MODULE_1__["DATA_PORTAL_ATTRIBUTE"]); }); return elementMatch !== null && elementMatch.hasAttribute(_setPortalAttribute__WEBPACK_IMPORTED_MODULE_1__["DATA_PORTAL_ATTRIBUTE"]); } //# sourceMappingURL=portalContainsElement.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js ***! \************************************************************************/ /*! exports provided: DATA_PORTAL_ATTRIBUTE, setPortalAttribute */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATA_PORTAL_ATTRIBUTE", function() { return DATA_PORTAL_ATTRIBUTE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPortalAttribute", function() { return setPortalAttribute; }); var DATA_PORTAL_ATTRIBUTE = 'data-portal-element'; /** * Identify element as a portal by setting an attribute. * @param element - Element to mark as a portal. */ function setPortalAttribute(element) { element.setAttribute(DATA_PORTAL_ATTRIBUTE, 'true'); } //# sourceMappingURL=setPortalAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib/setVirtualParent.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib/setVirtualParent.js ***! \**********************************************************************/ /*! exports provided: setVirtualParent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setVirtualParent", function() { return setVirtualParent; }); /** * Sets the virtual parent of an element. * Pass `undefined` as the `parent` to clear the virtual parent. * * @public */ function setVirtualParent(child, parent) { var virtualChild = child; var virtualParent = parent; if (!virtualChild._virtual) { virtualChild._virtual = { children: [], }; } var oldParent = virtualChild._virtual.parent; if (oldParent && oldParent !== parent) { // Remove the child from its old parent. var index = oldParent._virtual.children.indexOf(virtualChild); if (index > -1) { oldParent._virtual.children.splice(index, 1); } } virtualChild._virtual.parent = virtualParent || undefined; if (virtualParent) { if (!virtualParent._virtual) { virtualParent._virtual = { children: [], }; } virtualParent._virtual.children.push(virtualChild); } } //# sourceMappingURL=setVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-0.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-0.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-0\"", src: "url('" + baseUrl + "fabric-icons-0-467ee27f.woff') format('woff')" }, icons: { 'PageLink': '\uE302', 'CommentSolid': '\uE30E', 'ChangeEntitlements': '\uE310', 'Installation': '\uE311', 'WebAppBuilderModule': '\uE313', 'WebAppBuilderFragment': '\uE314', 'WebAppBuilderSlot': '\uE315', 'BullseyeTargetEdit': '\uE319', 'WebAppBuilderFragmentCreate': '\uE31B', 'PageData': '\uE31C', 'PageHeaderEdit': '\uE31D', 'ProductList': '\uE31E', 'UnpublishContent': '\uE31F', 'DependencyAdd': '\uE344', 'DependencyRemove': '\uE345', 'EntitlementPolicy': '\uE346', 'EntitlementRedemption': '\uE347', 'SchoolDataSyncLogo': '\uE34C', 'PinSolid12': '\uE352', 'PinSolidOff12': '\uE353', 'AddLink': '\uE35E', 'SharepointAppIcon16': '\uE365', 'DataflowsLink': '\uE366', 'TimePicker': '\uE367', 'UserWarning': '\uE368', 'ComplianceAudit': '\uE369', 'InternetSharing': '\uE704', 'Brightness': '\uE706', 'MapPin': '\uE707', 'Airplane': '\uE709', 'Tablet': '\uE70A', 'QuickNote': '\uE70B', 'Video': '\uE714', 'People': '\uE716', 'Phone': '\uE717', 'Pin': '\uE718', 'Shop': '\uE719', 'Stop': '\uE71A', 'Link': '\uE71B', 'AllApps': '\uE71D', 'Zoom': '\uE71E', 'ZoomOut': '\uE71F', 'Microphone': '\uE720', 'Camera': '\uE722', 'Attach': '\uE723', 'Send': '\uE724', 'FavoriteList': '\uE728', 'PageSolid': '\uE729', 'Forward': '\uE72A', 'Back': '\uE72B', 'Refresh': '\uE72C', 'Lock': '\uE72E', 'ReportHacked': '\uE730', 'EMI': '\uE731', 'MiniLink': '\uE732', 'Blocked': '\uE733', 'ReadingMode': '\uE736', 'Favicon': '\uE737', 'Remove': '\uE738', 'Checkbox': '\uE739', 'CheckboxComposite': '\uE73A', 'CheckboxFill': '\uE73B', 'CheckboxIndeterminate': '\uE73C', 'CheckboxCompositeReversed': '\uE73D', 'BackToWindow': '\uE73F', 'FullScreen': '\uE740', 'Print': '\uE749', 'Up': '\uE74A', 'Down': '\uE74B', 'OEM': '\uE74C', 'Save': '\uE74E', 'ReturnKey': '\uE751', 'Cloud': '\uE753', 'Flashlight': '\uE754', 'CommandPrompt': '\uE756', 'Sad': '\uE757', 'RealEstate': '\uE758', 'SIPMove': '\uE759', 'EraseTool': '\uE75C', 'GripperTool': '\uE75E', 'Dialpad': '\uE75F', 'PageLeft': '\uE760', 'PageRight': '\uE761', 'MultiSelect': '\uE762', 'KeyboardClassic': '\uE765', 'Play': '\uE768', 'Pause': '\uE769', 'InkingTool': '\uE76D', 'Emoji2': '\uE76E', 'GripperBarHorizontal': '\uE76F', 'System': '\uE770', 'Personalize': '\uE771', 'SearchAndApps': '\uE773', 'Globe': '\uE774', 'EaseOfAccess': '\uE776', 'ContactInfo': '\uE779', 'Unpin': '\uE77A', 'Contact': '\uE77B', 'Memo': '\uE77C', 'IncomingCall': '\uE77E' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-0.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-1.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-1.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-1\"", src: "url('" + baseUrl + "fabric-icons-1-4d521695.woff') format('woff')" }, icons: { 'Paste': '\uE77F', 'WindowsLogo': '\uE782', 'Error': '\uE783', 'GripperBarVertical': '\uE784', 'Unlock': '\uE785', 'Slideshow': '\uE786', 'Trim': '\uE78A', 'AutoEnhanceOn': '\uE78D', 'AutoEnhanceOff': '\uE78E', 'Color': '\uE790', 'SaveAs': '\uE792', 'Light': '\uE793', 'Filters': '\uE795', 'AspectRatio': '\uE799', 'Contrast': '\uE7A1', 'Redo': '\uE7A6', 'Crop': '\uE7A8', 'PhotoCollection': '\uE7AA', 'Album': '\uE7AB', 'Rotate': '\uE7AD', 'PanoIndicator': '\uE7B0', 'Translate': '\uE7B2', 'RedEye': '\uE7B3', 'ViewOriginal': '\uE7B4', 'ThumbnailView': '\uE7B6', 'Package': '\uE7B8', 'Telemarketer': '\uE7B9', 'Warning': '\uE7BA', 'Financial': '\uE7BB', 'Education': '\uE7BE', 'ShoppingCart': '\uE7BF', 'Train': '\uE7C0', 'Move': '\uE7C2', 'TouchPointer': '\uE7C9', 'Merge': '\uE7D5', 'TurnRight': '\uE7DB', 'Ferry': '\uE7E3', 'Highlight': '\uE7E6', 'PowerButton': '\uE7E8', 'Tab': '\uE7E9', 'Admin': '\uE7EF', 'TVMonitor': '\uE7F4', 'Speakers': '\uE7F5', 'Game': '\uE7FC', 'HorizontalTabKey': '\uE7FD', 'UnstackSelected': '\uE7FE', 'StackIndicator': '\uE7FF', 'Nav2DMapView': '\uE800', 'StreetsideSplitMinimize': '\uE802', 'Car': '\uE804', 'Bus': '\uE806', 'EatDrink': '\uE807', 'SeeDo': '\uE808', 'LocationCircle': '\uE80E', 'Home': '\uE80F', 'SwitcherStartEnd': '\uE810', 'ParkingLocation': '\uE811', 'IncidentTriangle': '\uE814', 'Touch': '\uE815', 'MapDirections': '\uE816', 'CaretHollow': '\uE817', 'CaretSolid': '\uE818', 'History': '\uE81C', 'Location': '\uE81D', 'MapLayers': '\uE81E', 'SearchNearby': '\uE820', 'Work': '\uE821', 'Recent': '\uE823', 'Hotel': '\uE824', 'Bank': '\uE825', 'LocationDot': '\uE827', 'Dictionary': '\uE82D', 'ChromeBack': '\uE830', 'FolderOpen': '\uE838', 'PinnedFill': '\uE842', 'RevToggleKey': '\uE845', 'USB': '\uE88E', 'Previous': '\uE892', 'Next': '\uE893', 'Sync': '\uE895', 'Help': '\uE897', 'Emoji': '\uE899', 'MailForward': '\uE89C', 'ClosePane': '\uE89F', 'OpenPane': '\uE8A0', 'PreviewLink': '\uE8A1', 'ZoomIn': '\uE8A3', 'Bookmarks': '\uE8A4', 'Document': '\uE8A5', 'ProtectedDocument': '\uE8A6', 'OpenInNewWindow': '\uE8A7', 'MailFill': '\uE8A8', 'ViewAll': '\uE8A9', 'Switch': '\uE8AB', 'Rename': '\uE8AC', 'Go': '\uE8AD', 'Remote': '\uE8AF', 'SelectAll': '\uE8B3', 'Orientation': '\uE8B4', 'Import': '\uE8B5' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-1.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-10.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-10.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-10\"", src: "url('" + baseUrl + "fabric-icons-10-c4ded8e4.woff') format('woff')" }, icons: { 'ViewListGroup': '\uF248', 'ViewListTree': '\uF249', 'TriggerAuto': '\uF24A', 'TriggerUser': '\uF24B', 'PivotChart': '\uF24C', 'StackedBarChart': '\uF24D', 'StackedLineChart': '\uF24E', 'BuildQueue': '\uF24F', 'BuildQueueNew': '\uF250', 'UserFollowed': '\uF25C', 'ContactLink': '\uF25F', 'Stack': '\uF26F', 'Bullseye': '\uF272', 'VennDiagram': '\uF273', 'FiveTileGrid': '\uF274', 'FocalPoint': '\uF277', 'Insert': '\uF278', 'RingerRemove': '\uF279', 'TeamsLogoInverse': '\uF27A', 'TeamsLogo': '\uF27B', 'TeamsLogoFill': '\uF27C', 'SkypeForBusinessLogoFill': '\uF27D', 'SharepointLogo': '\uF27E', 'SharepointLogoFill': '\uF27F', 'DelveLogo': '\uF280', 'DelveLogoFill': '\uF281', 'OfficeVideoLogo': '\uF282', 'OfficeVideoLogoFill': '\uF283', 'ExchangeLogo': '\uF284', 'ExchangeLogoFill': '\uF285', 'Signin': '\uF286', 'DocumentApproval': '\uF28B', 'CloneToDesktop': '\uF28C', 'InstallToDrive': '\uF28D', 'Blur': '\uF28E', 'Build': '\uF28F', 'ProcessMetaTask': '\uF290', 'BranchFork2': '\uF291', 'BranchLocked': '\uF292', 'BranchCommit': '\uF293', 'BranchCompare': '\uF294', 'BranchMerge': '\uF295', 'BranchPullRequest': '\uF296', 'BranchSearch': '\uF297', 'BranchShelveset': '\uF298', 'RawSource': '\uF299', 'MergeDuplicate': '\uF29A', 'RowsGroup': '\uF29B', 'RowsChild': '\uF29C', 'Deploy': '\uF29D', 'Redeploy': '\uF29E', 'ServerEnviroment': '\uF29F', 'VisioDiagram': '\uF2A0', 'HighlightMappedShapes': '\uF2A1', 'TextCallout': '\uF2A2', 'IconSetsFlag': '\uF2A4', 'VisioLogo': '\uF2A7', 'VisioLogoFill': '\uF2A8', 'VisioDocument': '\uF2A9', 'TimelineProgress': '\uF2AA', 'TimelineDelivery': '\uF2AB', 'Backlog': '\uF2AC', 'TeamFavorite': '\uF2AD', 'TaskGroup': '\uF2AE', 'TaskGroupMirrored': '\uF2AF', 'ScopeTemplate': '\uF2B0', 'AssessmentGroupTemplate': '\uF2B1', 'NewTeamProject': '\uF2B2', 'CommentAdd': '\uF2B3', 'CommentNext': '\uF2B4', 'CommentPrevious': '\uF2B5', 'ShopServer': '\uF2B6', 'LocaleLanguage': '\uF2B7', 'QueryList': '\uF2B8', 'UserSync': '\uF2B9', 'UserPause': '\uF2BA', 'StreamingOff': '\uF2BB', 'ArrowTallUpLeft': '\uF2BD', 'ArrowTallUpRight': '\uF2BE', 'ArrowTallDownLeft': '\uF2BF', 'ArrowTallDownRight': '\uF2C0', 'FieldEmpty': '\uF2C1', 'FieldFilled': '\uF2C2', 'FieldChanged': '\uF2C3', 'FieldNotChanged': '\uF2C4', 'RingerOff': '\uF2C5', 'PlayResume': '\uF2C6', 'BulletedList2': '\uF2C7', 'BulletedList2Mirrored': '\uF2C8', 'ImageCrosshair': '\uF2C9', 'GitGraph': '\uF2CA', 'Repo': '\uF2CB', 'RepoSolid': '\uF2CC', 'FolderQuery': '\uF2CD', 'FolderList': '\uF2CE', 'FolderListMirrored': '\uF2CF', 'LocationOutline': '\uF2D0', 'POISolid': '\uF2D1', 'CalculatorNotEqualTo': '\uF2D2', 'BoxSubtractSolid': '\uF2D3' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-10.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-11.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-11.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-11\"", src: "url('" + baseUrl + "fabric-icons-11-2a8393d6.woff') format('woff')" }, icons: { 'BoxAdditionSolid': '\uF2D4', 'BoxMultiplySolid': '\uF2D5', 'BoxPlaySolid': '\uF2D6', 'BoxCheckmarkSolid': '\uF2D7', 'CirclePauseSolid': '\uF2D8', 'CirclePause': '\uF2D9', 'MSNVideosSolid': '\uF2DA', 'CircleStopSolid': '\uF2DB', 'CircleStop': '\uF2DC', 'NavigateBack': '\uF2DD', 'NavigateBackMirrored': '\uF2DE', 'NavigateForward': '\uF2DF', 'NavigateForwardMirrored': '\uF2E0', 'UnknownSolid': '\uF2E1', 'UnknownMirroredSolid': '\uF2E2', 'CircleAddition': '\uF2E3', 'CircleAdditionSolid': '\uF2E4', 'FilePDB': '\uF2E5', 'FileTemplate': '\uF2E6', 'FileSQL': '\uF2E7', 'FileJAVA': '\uF2E8', 'FileASPX': '\uF2E9', 'FileCSS': '\uF2EA', 'FileSass': '\uF2EB', 'FileLess': '\uF2EC', 'FileHTML': '\uF2ED', 'JavaScriptLanguage': '\uF2EE', 'CSharpLanguage': '\uF2EF', 'CSharp': '\uF2F0', 'VisualBasicLanguage': '\uF2F1', 'VB': '\uF2F2', 'CPlusPlusLanguage': '\uF2F3', 'CPlusPlus': '\uF2F4', 'FSharpLanguage': '\uF2F5', 'FSharp': '\uF2F6', 'TypeScriptLanguage': '\uF2F7', 'PythonLanguage': '\uF2F8', 'PY': '\uF2F9', 'CoffeeScript': '\uF2FA', 'MarkDownLanguage': '\uF2FB', 'FullWidth': '\uF2FE', 'FullWidthEdit': '\uF2FF', 'Plug': '\uF300', 'PlugSolid': '\uF301', 'PlugConnected': '\uF302', 'PlugDisconnected': '\uF303', 'UnlockSolid': '\uF304', 'Variable': '\uF305', 'Parameter': '\uF306', 'CommentUrgent': '\uF307', 'Storyboard': '\uF308', 'DiffInline': '\uF309', 'DiffSideBySide': '\uF30A', 'ImageDiff': '\uF30B', 'ImagePixel': '\uF30C', 'FileBug': '\uF30D', 'FileCode': '\uF30E', 'FileComment': '\uF30F', 'BusinessHoursSign': '\uF310', 'FileImage': '\uF311', 'FileSymlink': '\uF312', 'AutoFillTemplate': '\uF313', 'WorkItem': '\uF314', 'WorkItemBug': '\uF315', 'LogRemove': '\uF316', 'ColumnOptions': '\uF317', 'Packages': '\uF318', 'BuildIssue': '\uF319', 'AssessmentGroup': '\uF31A', 'VariableGroup': '\uF31B', 'FullHistory': '\uF31C', 'Wheelchair': '\uF31F', 'SingleColumnEdit': '\uF321', 'DoubleColumnEdit': '\uF322', 'TripleColumnEdit': '\uF323', 'ColumnLeftTwoThirdsEdit': '\uF324', 'ColumnRightTwoThirdsEdit': '\uF325', 'StreamLogo': '\uF329', 'PassiveAuthentication': '\uF32A', 'AlertSolid': '\uF331', 'MegaphoneSolid': '\uF332', 'TaskSolid': '\uF333', 'ConfigurationSolid': '\uF334', 'BugSolid': '\uF335', 'CrownSolid': '\uF336', 'Trophy2Solid': '\uF337', 'QuickNoteSolid': '\uF338', 'ConstructionConeSolid': '\uF339', 'PageListSolid': '\uF33A', 'PageListMirroredSolid': '\uF33B', 'StarburstSolid': '\uF33C', 'ReadingModeSolid': '\uF33D', 'SadSolid': '\uF33E', 'HealthSolid': '\uF33F', 'ShieldSolid': '\uF340', 'GiftBoxSolid': '\uF341', 'ShoppingCartSolid': '\uF342', 'MailSolid': '\uF343', 'ChatSolid': '\uF344', 'RibbonSolid': '\uF345' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-11.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-12.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-12.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-12\"", src: "url('" + baseUrl + "fabric-icons-12-7e945a1e.woff') format('woff')" }, icons: { 'FinancialSolid': '\uF346', 'FinancialMirroredSolid': '\uF347', 'HeadsetSolid': '\uF348', 'PermissionsSolid': '\uF349', 'ParkingSolid': '\uF34A', 'ParkingMirroredSolid': '\uF34B', 'DiamondSolid': '\uF34C', 'AsteriskSolid': '\uF34D', 'OfflineStorageSolid': '\uF34E', 'BankSolid': '\uF34F', 'DecisionSolid': '\uF350', 'Parachute': '\uF351', 'ParachuteSolid': '\uF352', 'FiltersSolid': '\uF353', 'ColorSolid': '\uF354', 'ReviewSolid': '\uF355', 'ReviewRequestSolid': '\uF356', 'ReviewRequestMirroredSolid': '\uF357', 'ReviewResponseSolid': '\uF358', 'FeedbackRequestSolid': '\uF359', 'FeedbackRequestMirroredSolid': '\uF35A', 'FeedbackResponseSolid': '\uF35B', 'WorkItemBar': '\uF35C', 'WorkItemBarSolid': '\uF35D', 'Separator': '\uF35E', 'NavigateExternalInline': '\uF35F', 'PlanView': '\uF360', 'TimelineMatrixView': '\uF361', 'EngineeringGroup': '\uF362', 'ProjectCollection': '\uF363', 'CaretBottomRightCenter8': '\uF364', 'CaretBottomLeftCenter8': '\uF365', 'CaretTopRightCenter8': '\uF366', 'CaretTopLeftCenter8': '\uF367', 'DonutChart': '\uF368', 'ChevronUnfold10': '\uF369', 'ChevronFold10': '\uF36A', 'DoubleChevronDown8': '\uF36B', 'DoubleChevronUp8': '\uF36C', 'DoubleChevronLeft8': '\uF36D', 'DoubleChevronRight8': '\uF36E', 'ChevronDownEnd6': '\uF36F', 'ChevronUpEnd6': '\uF370', 'ChevronLeftEnd6': '\uF371', 'ChevronRightEnd6': '\uF372', 'ContextMenu': '\uF37C', 'AzureAPIManagement': '\uF37F', 'AzureServiceEndpoint': '\uF380', 'VSTSLogo': '\uF381', 'VSTSAltLogo1': '\uF382', 'VSTSAltLogo2': '\uF383', 'FileTypeSolution': '\uF387', 'WordLogoInverse16': '\uF390', 'WordLogo16': '\uF391', 'WordLogoFill16': '\uF392', 'PowerPointLogoInverse16': '\uF393', 'PowerPointLogo16': '\uF394', 'PowerPointLogoFill16': '\uF395', 'ExcelLogoInverse16': '\uF396', 'ExcelLogo16': '\uF397', 'ExcelLogoFill16': '\uF398', 'OneNoteLogoInverse16': '\uF399', 'OneNoteLogo16': '\uF39A', 'OneNoteLogoFill16': '\uF39B', 'OutlookLogoInverse16': '\uF39C', 'OutlookLogo16': '\uF39D', 'OutlookLogoFill16': '\uF39E', 'PublisherLogoInverse16': '\uF39F', 'PublisherLogo16': '\uF3A0', 'PublisherLogoFill16': '\uF3A1', 'VisioLogoInverse16': '\uF3A2', 'VisioLogo16': '\uF3A3', 'VisioLogoFill16': '\uF3A4', 'TestBeaker': '\uF3A5', 'TestBeakerSolid': '\uF3A6', 'TestExploreSolid': '\uF3A7', 'TestAutoSolid': '\uF3A8', 'TestUserSolid': '\uF3A9', 'TestImpactSolid': '\uF3AA', 'TestPlan': '\uF3AB', 'TestStep': '\uF3AC', 'TestParameter': '\uF3AD', 'TestSuite': '\uF3AE', 'TestCase': '\uF3AF', 'Sprint': '\uF3B0', 'SignOut': '\uF3B1', 'TriggerApproval': '\uF3B2', 'Rocket': '\uF3B3', 'AzureKeyVault': '\uF3B4', 'Onboarding': '\uF3BA', 'Transition': '\uF3BC', 'LikeSolid': '\uF3BF', 'DislikeSolid': '\uF3C0', 'CRMCustomerInsightsApp': '\uF3C8', 'EditCreate': '\uF3C9', 'PlayReverseResume': '\uF3E4', 'PlayReverse': '\uF3E5', 'SearchData': '\uF3F1', 'UnSetColor': '\uF3F9', 'DeclineCall': '\uF405' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-12.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-13.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-13.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-13\"", src: "url('" + baseUrl + "fabric-icons-13-c3989a02.woff') format('woff')" }, icons: { 'RectangularClipping': '\uF407', 'TeamsLogo16': '\uF40A', 'TeamsLogoFill16': '\uF40B', 'Spacer': '\uF40D', 'SkypeLogo16': '\uF40E', 'SkypeForBusinessLogo16': '\uF40F', 'SkypeForBusinessLogoFill16': '\uF410', 'FilterSolid': '\uF412', 'MailUndelivered': '\uF415', 'MailTentative': '\uF416', 'MailTentativeMirrored': '\uF417', 'MailReminder': '\uF418', 'ReceiptUndelivered': '\uF419', 'ReceiptTentative': '\uF41A', 'ReceiptTentativeMirrored': '\uF41B', 'Inbox': '\uF41C', 'IRMReply': '\uF41D', 'IRMReplyMirrored': '\uF41E', 'IRMForward': '\uF41F', 'IRMForwardMirrored': '\uF420', 'VoicemailIRM': '\uF421', 'EventAccepted': '\uF422', 'EventTentative': '\uF423', 'EventTentativeMirrored': '\uF424', 'EventDeclined': '\uF425', 'IDBadge': '\uF427', 'BackgroundColor': '\uF42B', 'OfficeFormsLogoInverse16': '\uF433', 'OfficeFormsLogo': '\uF434', 'OfficeFormsLogoFill': '\uF435', 'OfficeFormsLogo16': '\uF436', 'OfficeFormsLogoFill16': '\uF437', 'OfficeFormsLogoInverse24': '\uF43A', 'OfficeFormsLogo24': '\uF43B', 'OfficeFormsLogoFill24': '\uF43C', 'PageLock': '\uF43F', 'NotExecuted': '\uF440', 'NotImpactedSolid': '\uF441', 'FieldReadOnly': '\uF442', 'FieldRequired': '\uF443', 'BacklogBoard': '\uF444', 'ExternalBuild': '\uF445', 'ExternalTFVC': '\uF446', 'ExternalXAML': '\uF447', 'IssueSolid': '\uF448', 'DefectSolid': '\uF449', 'LadybugSolid': '\uF44A', 'NugetLogo': '\uF44C', 'TFVCLogo': '\uF44D', 'ProjectLogo32': '\uF47E', 'ProjectLogoFill32': '\uF47F', 'ProjectLogo16': '\uF480', 'ProjectLogoFill16': '\uF481', 'SwayLogo32': '\uF482', 'SwayLogoFill32': '\uF483', 'SwayLogo16': '\uF484', 'SwayLogoFill16': '\uF485', 'ClassNotebookLogo32': '\uF486', 'ClassNotebookLogoFill32': '\uF487', 'ClassNotebookLogo16': '\uF488', 'ClassNotebookLogoFill16': '\uF489', 'ClassNotebookLogoInverse32': '\uF48A', 'ClassNotebookLogoInverse16': '\uF48B', 'StaffNotebookLogo32': '\uF48C', 'StaffNotebookLogoFill32': '\uF48D', 'StaffNotebookLogo16': '\uF48E', 'StaffNotebookLogoFill16': '\uF48F', 'StaffNotebookLogoInverted32': '\uF490', 'StaffNotebookLogoInverted16': '\uF491', 'KaizalaLogo': '\uF492', 'TaskLogo': '\uF493', 'ProtectionCenterLogo32': '\uF494', 'GallatinLogo': '\uF496', 'Globe2': '\uF49A', 'Guitar': '\uF49B', 'Breakfast': '\uF49C', 'Brunch': '\uF49D', 'BeerMug': '\uF49E', 'Vacation': '\uF49F', 'Teeth': '\uF4A0', 'Taxi': '\uF4A1', 'Chopsticks': '\uF4A2', 'SyncOccurence': '\uF4A3', 'UnsyncOccurence': '\uF4A4', 'GIF': '\uF4A9', 'PrimaryCalendar': '\uF4AE', 'SearchCalendar': '\uF4AF', 'VideoOff': '\uF4B0', 'MicrosoftFlowLogo': '\uF4B1', 'BusinessCenterLogo': '\uF4B2', 'ToDoLogoBottom': '\uF4B3', 'ToDoLogoTop': '\uF4B4', 'EditSolid12': '\uF4B5', 'EditSolidMirrored12': '\uF4B6', 'UneditableSolid12': '\uF4B7', 'UneditableSolidMirrored12': '\uF4B8', 'UneditableMirrored': '\uF4B9', 'AdminALogo32': '\uF4BA', 'AdminALogoFill32': '\uF4BB', 'ToDoLogoInverse': '\uF4BC' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-13.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-14.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-14.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-14\"", src: "url('" + baseUrl + "fabric-icons-14-5cf58db8.woff') format('woff')" }, icons: { 'Snooze': '\uF4BD', 'WaffleOffice365': '\uF4E0', 'ImageSearch': '\uF4E8', 'NewsSearch': '\uF4E9', 'VideoSearch': '\uF4EA', 'R': '\uF4EB', 'FontColorA': '\uF4EC', 'FontColorSwatch': '\uF4ED', 'LightWeight': '\uF4EE', 'NormalWeight': '\uF4EF', 'SemiboldWeight': '\uF4F0', 'GroupObject': '\uF4F1', 'UngroupObject': '\uF4F2', 'AlignHorizontalLeft': '\uF4F3', 'AlignHorizontalCenter': '\uF4F4', 'AlignHorizontalRight': '\uF4F5', 'AlignVerticalTop': '\uF4F6', 'AlignVerticalCenter': '\uF4F7', 'AlignVerticalBottom': '\uF4F8', 'HorizontalDistributeCenter': '\uF4F9', 'VerticalDistributeCenter': '\uF4FA', 'Ellipse': '\uF4FB', 'Line': '\uF4FC', 'Octagon': '\uF4FD', 'Hexagon': '\uF4FE', 'Pentagon': '\uF4FF', 'RightTriangle': '\uF500', 'HalfCircle': '\uF501', 'QuarterCircle': '\uF502', 'ThreeQuarterCircle': '\uF503', '6PointStar': '\uF504', '12PointStar': '\uF505', 'ArrangeBringToFront': '\uF506', 'ArrangeSendToBack': '\uF507', 'ArrangeSendBackward': '\uF508', 'ArrangeBringForward': '\uF509', 'BorderDash': '\uF50A', 'BorderDot': '\uF50B', 'LineStyle': '\uF50C', 'LineThickness': '\uF50D', 'WindowEdit': '\uF50E', 'HintText': '\uF50F', 'MediaAdd': '\uF510', 'AnchorLock': '\uF511', 'AutoHeight': '\uF512', 'ChartSeries': '\uF513', 'ChartXAngle': '\uF514', 'ChartYAngle': '\uF515', 'Combobox': '\uF516', 'LineSpacing': '\uF517', 'Padding': '\uF518', 'PaddingTop': '\uF519', 'PaddingBottom': '\uF51A', 'PaddingLeft': '\uF51B', 'PaddingRight': '\uF51C', 'NavigationFlipper': '\uF51D', 'AlignJustify': '\uF51E', 'TextOverflow': '\uF51F', 'VisualsFolder': '\uF520', 'VisualsStore': '\uF521', 'PictureCenter': '\uF522', 'PictureFill': '\uF523', 'PicturePosition': '\uF524', 'PictureStretch': '\uF525', 'PictureTile': '\uF526', 'Slider': '\uF527', 'SliderHandleSize': '\uF528', 'DefaultRatio': '\uF529', 'NumberSequence': '\uF52A', 'GUID': '\uF52B', 'ReportAdd': '\uF52C', 'DashboardAdd': '\uF52D', 'MapPinSolid': '\uF52E', 'WebPublish': '\uF52F', 'PieSingleSolid': '\uF530', 'BlockedSolid': '\uF531', 'DrillDown': '\uF532', 'DrillDownSolid': '\uF533', 'DrillExpand': '\uF534', 'DrillShow': '\uF535', 'SpecialEvent': '\uF536', 'OneDriveFolder16': '\uF53B', 'FunctionalManagerDashboard': '\uF542', 'BIDashboard': '\uF543', 'CodeEdit': '\uF544', 'RenewalCurrent': '\uF545', 'RenewalFuture': '\uF546', 'SplitObject': '\uF547', 'BulkUpload': '\uF548', 'DownloadDocument': '\uF549', 'GreetingCard': '\uF54B', 'Flower': '\uF54E', 'WaitlistConfirm': '\uF550', 'WaitlistConfirmMirrored': '\uF551', 'LaptopSecure': '\uF552', 'DragObject': '\uF553', 'EntryView': '\uF554', 'EntryDecline': '\uF555', 'ContactCardSettings': '\uF556', 'ContactCardSettingsMirrored': '\uF557' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-14.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-15.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-15.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-15\"", src: "url('" + baseUrl + "fabric-icons-15-3807251b.woff') format('woff')" }, icons: { 'CalendarSettings': '\uF558', 'CalendarSettingsMirrored': '\uF559', 'HardDriveLock': '\uF55A', 'HardDriveUnlock': '\uF55B', 'AccountManagement': '\uF55C', 'ReportWarning': '\uF569', 'TransitionPop': '\uF5B2', 'TransitionPush': '\uF5B3', 'TransitionEffect': '\uF5B4', 'LookupEntities': '\uF5B5', 'ExploreData': '\uF5B6', 'AddBookmark': '\uF5B7', 'SearchBookmark': '\uF5B8', 'DrillThrough': '\uF5B9', 'MasterDatabase': '\uF5BA', 'CertifiedDatabase': '\uF5BB', 'MaximumValue': '\uF5BC', 'MinimumValue': '\uF5BD', 'VisualStudioIDELogo32': '\uF5D0', 'PasteAsText': '\uF5D5', 'PasteAsCode': '\uF5D6', 'BrowserTab': '\uF5D7', 'BrowserTabScreenshot': '\uF5D8', 'DesktopScreenshot': '\uF5D9', 'FileYML': '\uF5DA', 'ClipboardSolid': '\uF5DC', 'FabricUserFolder': '\uF5E5', 'FabricNetworkFolder': '\uF5E6', 'BullseyeTarget': '\uF5F0', 'AnalyticsView': '\uF5F1', 'Video360Generic': '\uF609', 'Untag': '\uF60B', 'Leave': '\uF627', 'Trending12': '\uF62D', 'Blocked12': '\uF62E', 'Warning12': '\uF62F', 'CheckedOutByOther12': '\uF630', 'CheckedOutByYou12': '\uF631', 'CircleShapeSolid': '\uF63C', 'SquareShapeSolid': '\uF63D', 'TriangleShapeSolid': '\uF63E', 'DropShapeSolid': '\uF63F', 'RectangleShapeSolid': '\uF640', 'ZoomToFit': '\uF649', 'InsertColumnsLeft': '\uF64A', 'InsertColumnsRight': '\uF64B', 'InsertRowsAbove': '\uF64C', 'InsertRowsBelow': '\uF64D', 'DeleteColumns': '\uF64E', 'DeleteRows': '\uF64F', 'DeleteRowsMirrored': '\uF650', 'DeleteTable': '\uF651', 'AccountBrowser': '\uF652', 'VersionControlPush': '\uF664', 'StackedColumnChart2': '\uF666', 'TripleColumnWide': '\uF66E', 'QuadColumn': '\uF66F', 'WhiteBoardApp16': '\uF673', 'WhiteBoardApp32': '\uF674', 'PinnedSolid': '\uF676', 'InsertSignatureLine': '\uF677', 'ArrangeByFrom': '\uF678', 'Phishing': '\uF679', 'CreateMailRule': '\uF67A', 'PublishCourse': '\uF699', 'DictionaryRemove': '\uF69A', 'UserRemove': '\uF69B', 'UserEvent': '\uF69C', 'Encryption': '\uF69D', 'PasswordField': '\uF6AA', 'OpenInNewTab': '\uF6AB', 'Hide3': '\uF6AC', 'VerifiedBrandSolid': '\uF6AD', 'MarkAsProtected': '\uF6AE', 'AuthenticatorApp': '\uF6B1', 'WebTemplate': '\uF6B2', 'DefenderTVM': '\uF6B3', 'MedalSolid': '\uF6B9', 'D365TalentLearn': '\uF6BB', 'D365TalentInsight': '\uF6BC', 'D365TalentHRCore': '\uF6BD', 'BacklogList': '\uF6BF', 'ButtonControl': '\uF6C0', 'TableGroup': '\uF6D9', 'MountainClimbing': '\uF6DB', 'TagUnknown': '\uF6DF', 'TagUnknownMirror': '\uF6E0', 'TagUnknown12': '\uF6E1', 'TagUnknown12Mirror': '\uF6E2', 'Link12': '\uF6E3', 'Presentation': '\uF6E4', 'Presentation12': '\uF6E5', 'Lock12': '\uF6E6', 'BuildDefinition': '\uF6E9', 'ReleaseDefinition': '\uF6EA', 'SaveTemplate': '\uF6EC', 'UserGauge': '\uF6ED', 'BlockedSiteSolid12': '\uF70A', 'TagSolid': '\uF70E', 'OfficeChat': '\uF70F' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-15.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-16.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-16.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-16\"", src: "url('" + baseUrl + "fabric-icons-16-9cf93f3b.woff') format('woff')" }, icons: { 'OfficeChatSolid': '\uF710', 'MailSchedule': '\uF72E', 'WarningSolid': '\uF736', 'Blocked2Solid': '\uF737', 'SkypeCircleArrow': '\uF747', 'SkypeArrow': '\uF748', 'SyncStatus': '\uF751', 'SyncStatusSolid': '\uF752', 'ProjectDocument': '\uF759', 'ToDoLogoOutline': '\uF75B', 'VisioOnlineLogoFill32': '\uF75F', 'VisioOnlineLogo32': '\uF760', 'VisioOnlineLogoCloud32': '\uF761', 'VisioDiagramSync': '\uF762', 'Event12': '\uF763', 'EventDateMissed12': '\uF764', 'UserOptional': '\uF767', 'ResponsesMenu': '\uF768', 'DoubleDownArrow': '\uF769', 'DistributeDown': '\uF76A', 'BookmarkReport': '\uF76B', 'FilterSettings': '\uF76C', 'GripperDotsVertical': '\uF772', 'MailAttached': '\uF774', 'AddIn': '\uF775', 'LinkedDatabase': '\uF779', 'TableLink': '\uF77A', 'PromotedDatabase': '\uF77D', 'BarChartVerticalFilter': '\uF77E', 'BarChartVerticalFilterSolid': '\uF77F', 'MicOff2': '\uF781', 'MicrosoftTranslatorLogo': '\uF782', 'ShowTimeAs': '\uF787', 'FileRequest': '\uF789', 'WorkItemAlert': '\uF78F', 'PowerBILogo16': '\uF790', 'PowerBILogoBackplate16': '\uF791', 'BulletedListText': '\uF792', 'BulletedListBullet': '\uF793', 'BulletedListTextMirrored': '\uF794', 'BulletedListBulletMirrored': '\uF795', 'NumberedListText': '\uF796', 'NumberedListNumber': '\uF797', 'NumberedListTextMirrored': '\uF798', 'NumberedListNumberMirrored': '\uF799', 'RemoveLinkChain': '\uF79A', 'RemoveLinkX': '\uF79B', 'FabricTextHighlight': '\uF79C', 'ClearFormattingA': '\uF79D', 'ClearFormattingEraser': '\uF79E', 'Photo2Fill': '\uF79F', 'IncreaseIndentText': '\uF7A0', 'IncreaseIndentArrow': '\uF7A1', 'DecreaseIndentText': '\uF7A2', 'DecreaseIndentArrow': '\uF7A3', 'IncreaseIndentTextMirrored': '\uF7A4', 'IncreaseIndentArrowMirrored': '\uF7A5', 'DecreaseIndentTextMirrored': '\uF7A6', 'DecreaseIndentArrowMirrored': '\uF7A7', 'CheckListText': '\uF7A8', 'CheckListCheck': '\uF7A9', 'CheckListTextMirrored': '\uF7AA', 'CheckListCheckMirrored': '\uF7AB', 'NumberSymbol': '\uF7AC', 'Coupon': '\uF7BC', 'VerifiedBrand': '\uF7BD', 'ReleaseGate': '\uF7BE', 'ReleaseGateCheck': '\uF7BF', 'ReleaseGateError': '\uF7C0', 'M365InvoicingLogo': '\uF7C1', 'RemoveFromShoppingList': '\uF7D5', 'ShieldAlert': '\uF7D7', 'FabricTextHighlightComposite': '\uF7DA', 'Dataflows': '\uF7DD', 'GenericScanFilled': '\uF7DE', 'DiagnosticDataBarTooltip': '\uF7DF', 'SaveToMobile': '\uF7E0', 'Orientation2': '\uF7E1', 'ScreenCast': '\uF7E2', 'ShowGrid': '\uF7E3', 'SnapToGrid': '\uF7E4', 'ContactList': '\uF7E5', 'NewMail': '\uF7EA', 'EyeShadow': '\uF7EB', 'FabricFolderConfirm': '\uF7FF', 'InformationBarriers': '\uF803', 'CommentActive': '\uF804', 'ColumnVerticalSectionEdit': '\uF806', 'WavingHand': '\uF807', 'ShakeDevice': '\uF80A', 'SmartGlassRemote': '\uF80B', 'Rotate90Clockwise': '\uF80D', 'Rotate90CounterClockwise': '\uF80E', 'CampaignTemplate': '\uF811', 'ChartTemplate': '\uF812', 'PageListFilter': '\uF813', 'SecondaryNav': '\uF814', 'ColumnVerticalSection': '\uF81E', 'SkypeCircleSlash': '\uF825', 'SkypeSlash': '\uF826' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-16.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-17.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-17.js ***! \***********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-17\"", src: "url('" + baseUrl + "fabric-icons-17-0c4ed701.woff') format('woff')" }, icons: { 'CustomizeToolbar': '\uF828', 'DuplicateRow': '\uF82A', 'RemoveFromTrash': '\uF82B', 'MailOptions': '\uF82C', 'Childof': '\uF82D', 'Footer': '\uF82E', 'Header': '\uF82F', 'BarChartVerticalFill': '\uF830', 'StackedColumnChart2Fill': '\uF831', 'PlainText': '\uF834', 'AccessibiltyChecker': '\uF835', 'DatabaseSync': '\uF842', 'ReservationOrders': '\uF845', 'TabOneColumn': '\uF849', 'TabTwoColumn': '\uF84A', 'TabThreeColumn': '\uF84B', 'BulletedTreeList': '\uF84C', 'MicrosoftTranslatorLogoGreen': '\uF852', 'MicrosoftTranslatorLogoBlue': '\uF853', 'InternalInvestigation': '\uF854', 'AddReaction': '\uF85D', 'ContactHeart': '\uF862', 'VisuallyImpaired': '\uF866', 'EventToDoLogo': '\uF869', 'Variable2': '\uF86D', 'ModelingView': '\uF871', 'DisconnectVirtualMachine': '\uF873', 'ReportLock': '\uF875', 'Uneditable2': '\uF876', 'Uneditable2Mirrored': '\uF877', 'BarChartVerticalEdit': '\uF89D', 'GlobalNavButtonActive': '\uF89F', 'PollResults': '\uF8A0', 'Rerun': '\uF8A1', 'QandA': '\uF8A2', 'QandAMirror': '\uF8A3', 'BookAnswers': '\uF8A4', 'AlertSettings': '\uF8B6', 'TrimStart': '\uF8BB', 'TrimEnd': '\uF8BC', 'TableComputed': '\uF8F5', 'DecreaseIndentLegacy': '\uE290', 'IncreaseIndentLegacy': '\uE291', 'SizeLegacy': '\uE2B2' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-17.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-2.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-2.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-2\"", src: "url('" + baseUrl + "fabric-icons-2-63c99abf.woff') format('woff')" }, icons: { 'Picture': '\uE8B9', 'ChromeClose': '\uE8BB', 'ShowResults': '\uE8BC', 'Message': '\uE8BD', 'CalendarDay': '\uE8BF', 'CalendarWeek': '\uE8C0', 'MailReplyAll': '\uE8C2', 'Read': '\uE8C3', 'Cut': '\uE8C6', 'PaymentCard': '\uE8C7', 'Copy': '\uE8C8', 'Important': '\uE8C9', 'MailReply': '\uE8CA', 'GotoToday': '\uE8D1', 'Font': '\uE8D2', 'FontColor': '\uE8D3', 'FolderFill': '\uE8D5', 'Permissions': '\uE8D7', 'DisableUpdates': '\uE8D8', 'Unfavorite': '\uE8D9', 'Italic': '\uE8DB', 'Underline': '\uE8DC', 'Bold': '\uE8DD', 'MoveToFolder': '\uE8DE', 'Dislike': '\uE8E0', 'Like': '\uE8E1', 'AlignCenter': '\uE8E3', 'OpenFile': '\uE8E5', 'ClearSelection': '\uE8E6', 'FontDecrease': '\uE8E7', 'FontIncrease': '\uE8E8', 'FontSize': '\uE8E9', 'CellPhone': '\uE8EA', 'RepeatOne': '\uE8ED', 'RepeatAll': '\uE8EE', 'Calculator': '\uE8EF', 'Library': '\uE8F1', 'PostUpdate': '\uE8F3', 'NewFolder': '\uE8F4', 'CalendarReply': '\uE8F5', 'UnsyncFolder': '\uE8F6', 'SyncFolder': '\uE8F7', 'BlockContact': '\uE8F8', 'Accept': '\uE8FB', 'BulletedList': '\uE8FD', 'Preview': '\uE8FF', 'News': '\uE900', 'Chat': '\uE901', 'Group': '\uE902', 'World': '\uE909', 'Comment': '\uE90A', 'DockLeft': '\uE90C', 'DockRight': '\uE90D', 'Repair': '\uE90F', 'Accounts': '\uE910', 'Street': '\uE913', 'RadioBullet': '\uE915', 'Stopwatch': '\uE916', 'Clock': '\uE917', 'WorldClock': '\uE918', 'AlarmClock': '\uE919', 'Photo': '\uE91B', 'ActionCenter': '\uE91C', 'Hospital': '\uE91D', 'Timer': '\uE91E', 'FullCircleMask': '\uE91F', 'LocationFill': '\uE920', 'ChromeMinimize': '\uE921', 'ChromeRestore': '\uE923', 'Annotation': '\uE924', 'Fingerprint': '\uE928', 'Handwriting': '\uE929', 'ChromeFullScreen': '\uE92D', 'Completed': '\uE930', 'Label': '\uE932', 'FlickDown': '\uE935', 'FlickUp': '\uE936', 'FlickLeft': '\uE937', 'FlickRight': '\uE938', 'MiniExpand': '\uE93A', 'MiniContract': '\uE93B', 'Streaming': '\uE93E', 'MusicInCollection': '\uE940', 'OneDriveLogo': '\uE941', 'CompassNW': '\uE942', 'Code': '\uE943', 'LightningBolt': '\uE945', 'CalculatorMultiply': '\uE947', 'CalculatorAddition': '\uE948', 'CalculatorSubtract': '\uE949', 'CalculatorPercentage': '\uE94C', 'CalculatorEqualTo': '\uE94E', 'PrintfaxPrinterFile': '\uE956', 'StorageOptical': '\uE958', 'Communications': '\uE95A', 'Headset': '\uE95B', 'Health': '\uE95E', 'Webcam2': '\uE960', 'FrontCamera': '\uE96B', 'ChevronUpSmall': '\uE96D' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-2.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-3.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-3.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-3\"", src: "url('" + baseUrl + "fabric-icons-3-089e217a.woff') format('woff')" }, icons: { 'ChevronDownSmall': '\uE96E', 'ChevronLeftSmall': '\uE96F', 'ChevronRightSmall': '\uE970', 'ChevronUpMed': '\uE971', 'ChevronDownMed': '\uE972', 'ChevronLeftMed': '\uE973', 'ChevronRightMed': '\uE974', 'Devices2': '\uE975', 'PC1': '\uE977', 'PresenceChickletVideo': '\uE979', 'Reply': '\uE97A', 'HalfAlpha': '\uE97E', 'ConstructionCone': '\uE98F', 'DoubleChevronLeftMed': '\uE991', 'Volume0': '\uE992', 'Volume1': '\uE993', 'Volume2': '\uE994', 'Volume3': '\uE995', 'Chart': '\uE999', 'Robot': '\uE99A', 'Manufacturing': '\uE99C', 'LockSolid': '\uE9A2', 'FitPage': '\uE9A6', 'FitWidth': '\uE9A7', 'BidiLtr': '\uE9AA', 'BidiRtl': '\uE9AB', 'RightDoubleQuote': '\uE9B1', 'Sunny': '\uE9BD', 'CloudWeather': '\uE9BE', 'Cloudy': '\uE9BF', 'PartlyCloudyDay': '\uE9C0', 'PartlyCloudyNight': '\uE9C1', 'ClearNight': '\uE9C2', 'RainShowersDay': '\uE9C3', 'Rain': '\uE9C4', 'Thunderstorms': '\uE9C6', 'RainSnow': '\uE9C7', 'Snow': '\uE9C8', 'BlowingSnow': '\uE9C9', 'Frigid': '\uE9CA', 'Fog': '\uE9CB', 'Squalls': '\uE9CC', 'Duststorm': '\uE9CD', 'Unknown': '\uE9CE', 'Precipitation': '\uE9CF', 'Ribbon': '\uE9D1', 'AreaChart': '\uE9D2', 'Assign': '\uE9D3', 'FlowChart': '\uE9D4', 'CheckList': '\uE9D5', 'Diagnostic': '\uE9D9', 'Generate': '\uE9DA', 'LineChart': '\uE9E6', 'Equalizer': '\uE9E9', 'BarChartHorizontal': '\uE9EB', 'BarChartVertical': '\uE9EC', 'Freezing': '\uE9EF', 'FunnelChart': '\uE9F1', 'Processing': '\uE9F5', 'Quantity': '\uE9F8', 'ReportDocument': '\uE9F9', 'StackColumnChart': '\uE9FC', 'SnowShowerDay': '\uE9FD', 'HailDay': '\uEA00', 'WorkFlow': '\uEA01', 'HourGlass': '\uEA03', 'StoreLogoMed20': '\uEA04', 'TimeSheet': '\uEA05', 'TriangleSolid': '\uEA08', 'UpgradeAnalysis': '\uEA0B', 'VideoSolid': '\uEA0C', 'RainShowersNight': '\uEA0F', 'SnowShowerNight': '\uEA11', 'Teamwork': '\uEA12', 'HailNight': '\uEA13', 'PeopleAdd': '\uEA15', 'Glasses': '\uEA16', 'DateTime2': '\uEA17', 'Shield': '\uEA18', 'Header1': '\uEA19', 'PageAdd': '\uEA1A', 'NumberedList': '\uEA1C', 'PowerBILogo': '\uEA1E', 'Info2': '\uEA1F', 'MusicInCollectionFill': '\uEA36', 'Asterisk': '\uEA38', 'ErrorBadge': '\uEA39', 'CircleFill': '\uEA3B', 'Record2': '\uEA3F', 'AllAppsMirrored': '\uEA40', 'BookmarksMirrored': '\uEA41', 'BulletedListMirrored': '\uEA42', 'CaretHollowMirrored': '\uEA45', 'CaretSolidMirrored': '\uEA46', 'ChromeBackMirrored': '\uEA47', 'ClearSelectionMirrored': '\uEA48', 'ClosePaneMirrored': '\uEA49', 'DockLeftMirrored': '\uEA4C', 'DoubleChevronLeftMedMirrored': '\uEA4D', 'GoMirrored': '\uEA4F' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-3.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-4.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-4.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-4\"", src: "url('" + baseUrl + "fabric-icons-4-a656cc0a.woff') format('woff')" }, icons: { 'HelpMirrored': '\uEA51', 'ImportMirrored': '\uEA52', 'ImportAllMirrored': '\uEA53', 'ListMirrored': '\uEA55', 'MailForwardMirrored': '\uEA56', 'MailReplyMirrored': '\uEA57', 'MailReplyAllMirrored': '\uEA58', 'MiniContractMirrored': '\uEA59', 'MiniExpandMirrored': '\uEA5A', 'OpenPaneMirrored': '\uEA5B', 'ParkingLocationMirrored': '\uEA5E', 'SendMirrored': '\uEA63', 'ShowResultsMirrored': '\uEA65', 'ThumbnailViewMirrored': '\uEA67', 'Media': '\uEA69', 'Devices3': '\uEA6C', 'Focus': '\uEA6F', 'VideoLightOff': '\uEA74', 'Lightbulb': '\uEA80', 'StatusTriangle': '\uEA82', 'VolumeDisabled': '\uEA85', 'Puzzle': '\uEA86', 'EmojiNeutral': '\uEA87', 'EmojiDisappointed': '\uEA88', 'HomeSolid': '\uEA8A', 'Ringer': '\uEA8F', 'PDF': '\uEA90', 'HeartBroken': '\uEA92', 'StoreLogo16': '\uEA96', 'MultiSelectMirrored': '\uEA98', 'Broom': '\uEA99', 'AddToShoppingList': '\uEA9A', 'Cocktails': '\uEA9D', 'Wines': '\uEABF', 'Articles': '\uEAC1', 'Cycling': '\uEAC7', 'DietPlanNotebook': '\uEAC8', 'Pill': '\uEACB', 'ExerciseTracker': '\uEACC', 'HandsFree': '\uEAD0', 'Medical': '\uEAD4', 'Running': '\uEADA', 'Weights': '\uEADB', 'Trackers': '\uEADF', 'AddNotes': '\uEAE3', 'AllCurrency': '\uEAE4', 'BarChart4': '\uEAE7', 'CirclePlus': '\uEAEE', 'Coffee': '\uEAEF', 'Cotton': '\uEAF3', 'Market': '\uEAFC', 'Money': '\uEAFD', 'PieDouble': '\uEB04', 'PieSingle': '\uEB05', 'RemoveFilter': '\uEB08', 'Savings': '\uEB0B', 'Sell': '\uEB0C', 'StockDown': '\uEB0F', 'StockUp': '\uEB11', 'Lamp': '\uEB19', 'Source': '\uEB1B', 'MSNVideos': '\uEB1C', 'Cricket': '\uEB1E', 'Golf': '\uEB1F', 'Baseball': '\uEB20', 'Soccer': '\uEB21', 'MoreSports': '\uEB22', 'AutoRacing': '\uEB24', 'CollegeHoops': '\uEB25', 'CollegeFootball': '\uEB26', 'ProFootball': '\uEB27', 'ProHockey': '\uEB28', 'Rugby': '\uEB2D', 'SubstitutionsIn': '\uEB31', 'Tennis': '\uEB33', 'Arrivals': '\uEB34', 'Design': '\uEB3C', 'Website': '\uEB41', 'Drop': '\uEB42', 'HistoricalWeather': '\uEB43', 'SkiResorts': '\uEB45', 'Snowflake': '\uEB46', 'BusSolid': '\uEB47', 'FerrySolid': '\uEB48', 'AirplaneSolid': '\uEB4C', 'TrainSolid': '\uEB4D', 'Ticket': '\uEB54', 'WifiWarning4': '\uEB63', 'Devices4': '\uEB66', 'AzureLogo': '\uEB6A', 'BingLogo': '\uEB6B', 'MSNLogo': '\uEB6C', 'OutlookLogoInverse': '\uEB6D', 'OfficeLogo': '\uEB6E', 'SkypeLogo': '\uEB6F', 'Door': '\uEB75', 'EditMirrored': '\uEB7E', 'GiftCard': '\uEB8E', 'DoubleBookmark': '\uEB8F', 'StatusErrorFull': '\uEB90' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-4.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-5.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-5.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-5\"", src: "url('" + baseUrl + "fabric-icons-5-f95ba260.woff') format('woff')" }, icons: { 'Certificate': '\uEB95', 'FastForward': '\uEB9D', 'Rewind': '\uEB9E', 'Photo2': '\uEB9F', 'OpenSource': '\uEBC2', 'Movers': '\uEBCD', 'CloudDownload': '\uEBD3', 'Family': '\uEBDA', 'WindDirection': '\uEBE6', 'Bug': '\uEBE8', 'SiteScan': '\uEBEC', 'BrowserScreenShot': '\uEBED', 'F12DevTools': '\uEBEE', 'CSS': '\uEBEF', 'JS': '\uEBF0', 'DeliveryTruck': '\uEBF4', 'ReminderPerson': '\uEBF7', 'ReminderGroup': '\uEBF8', 'ReminderTime': '\uEBF9', 'TabletMode': '\uEBFC', 'Umbrella': '\uEC04', 'NetworkTower': '\uEC05', 'CityNext': '\uEC06', 'CityNext2': '\uEC07', 'Section': '\uEC0C', 'OneNoteLogoInverse': '\uEC0D', 'ToggleFilled': '\uEC11', 'ToggleBorder': '\uEC12', 'SliderThumb': '\uEC13', 'ToggleThumb': '\uEC14', 'Documentation': '\uEC17', 'Badge': '\uEC1B', 'Giftbox': '\uEC1F', 'VisualStudioLogo': '\uEC22', 'HomeGroup': '\uEC26', 'ExcelLogoInverse': '\uEC28', 'WordLogoInverse': '\uEC29', 'PowerPointLogoInverse': '\uEC2A', 'Cafe': '\uEC32', 'SpeedHigh': '\uEC4A', 'Commitments': '\uEC4D', 'ThisPC': '\uEC4E', 'MusicNote': '\uEC4F', 'MicOff': '\uEC54', 'PlaybackRate1x': '\uEC57', 'EdgeLogo': '\uEC60', 'CompletedSolid': '\uEC61', 'AlbumRemove': '\uEC62', 'MessageFill': '\uEC70', 'TabletSelected': '\uEC74', 'MobileSelected': '\uEC75', 'LaptopSelected': '\uEC76', 'TVMonitorSelected': '\uEC77', 'DeveloperTools': '\uEC7A', 'Shapes': '\uEC7C', 'InsertTextBox': '\uEC7D', 'LowerBrightness': '\uEC8A', 'WebComponents': '\uEC8B', 'OfflineStorage': '\uEC8C', 'DOM': '\uEC8D', 'CloudUpload': '\uEC8E', 'ScrollUpDown': '\uEC8F', 'DateTime': '\uEC92', 'Event': '\uECA3', 'Cake': '\uECA4', 'Org': '\uECA6', 'PartyLeader': '\uECA7', 'DRM': '\uECA8', 'CloudAdd': '\uECA9', 'AppIconDefault': '\uECAA', 'Photo2Add': '\uECAB', 'Photo2Remove': '\uECAC', 'Calories': '\uECAD', 'POI': '\uECAF', 'AddTo': '\uECC8', 'RadioBtnOff': '\uECCA', 'RadioBtnOn': '\uECCB', 'ExploreContent': '\uECCD', 'Product': '\uECDC', 'ProgressLoopInner': '\uECDE', 'ProgressLoopOuter': '\uECDF', 'Blocked2': '\uECE4', 'FangBody': '\uECEB', 'Toolbox': '\uECED', 'PageHeader': '\uECEE', 'ChatInviteFriend': '\uECFE', 'Brush': '\uECFF', 'Shirt': '\uED00', 'Crown': '\uED01', 'Diamond': '\uED02', 'ScaleUp': '\uED09', 'QRCode': '\uED14', 'Feedback': '\uED15', 'SharepointLogoInverse': '\uED18', 'YammerLogo': '\uED19', 'Hide': '\uED1A', 'Uneditable': '\uED1D', 'ReturnToSession': '\uED24', 'OpenFolderHorizontal': '\uED25', 'CalendarMirrored': '\uED28' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-5.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-6.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-6.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-6\"", src: "url('" + baseUrl + "fabric-icons-6-ef6fd590.woff') format('woff')" }, icons: { 'SwayLogoInverse': '\uED29', 'OutOfOffice': '\uED34', 'Trophy': '\uED3F', 'ReopenPages': '\uED50', 'EmojiTabSymbols': '\uED58', 'AADLogo': '\uED68', 'AccessLogo': '\uED69', 'AdminALogoInverse32': '\uED6A', 'AdminCLogoInverse32': '\uED6B', 'AdminDLogoInverse32': '\uED6C', 'AdminELogoInverse32': '\uED6D', 'AdminLLogoInverse32': '\uED6E', 'AdminMLogoInverse32': '\uED6F', 'AdminOLogoInverse32': '\uED70', 'AdminPLogoInverse32': '\uED71', 'AdminSLogoInverse32': '\uED72', 'AdminYLogoInverse32': '\uED73', 'DelveLogoInverse': '\uED76', 'ExchangeLogoInverse': '\uED78', 'LyncLogo': '\uED79', 'OfficeVideoLogoInverse': '\uED7A', 'SocialListeningLogo': '\uED7C', 'VisioLogoInverse': '\uED7D', 'Balloons': '\uED7E', 'Cat': '\uED7F', 'MailAlert': '\uED80', 'MailCheck': '\uED81', 'MailLowImportance': '\uED82', 'MailPause': '\uED83', 'MailRepeat': '\uED84', 'SecurityGroup': '\uED85', 'Table': '\uED86', 'VoicemailForward': '\uED87', 'VoicemailReply': '\uED88', 'Waffle': '\uED89', 'RemoveEvent': '\uED8A', 'EventInfo': '\uED8B', 'ForwardEvent': '\uED8C', 'WipePhone': '\uED8D', 'AddOnlineMeeting': '\uED8E', 'JoinOnlineMeeting': '\uED8F', 'RemoveLink': '\uED90', 'PeopleBlock': '\uED91', 'PeopleRepeat': '\uED92', 'PeopleAlert': '\uED93', 'PeoplePause': '\uED94', 'TransferCall': '\uED95', 'AddPhone': '\uED96', 'UnknownCall': '\uED97', 'NoteReply': '\uED98', 'NoteForward': '\uED99', 'NotePinned': '\uED9A', 'RemoveOccurrence': '\uED9B', 'Timeline': '\uED9C', 'EditNote': '\uED9D', 'CircleHalfFull': '\uED9E', 'Room': '\uED9F', 'Unsubscribe': '\uEDA0', 'Subscribe': '\uEDA1', 'HardDrive': '\uEDA2', 'RecurringTask': '\uEDB2', 'TaskManager': '\uEDB7', 'TaskManagerMirrored': '\uEDB8', 'Combine': '\uEDBB', 'Split': '\uEDBC', 'DoubleChevronUp': '\uEDBD', 'DoubleChevronLeft': '\uEDBE', 'DoubleChevronRight': '\uEDBF', 'TextBox': '\uEDC2', 'TextField': '\uEDC3', 'NumberField': '\uEDC4', 'Dropdown': '\uEDC5', 'PenWorkspace': '\uEDC6', 'BookingsLogo': '\uEDC7', 'ClassNotebookLogoInverse': '\uEDC8', 'DelveAnalyticsLogo': '\uEDCA', 'DocsLogoInverse': '\uEDCB', 'Dynamics365Logo': '\uEDCC', 'DynamicSMBLogo': '\uEDCD', 'OfficeAssistantLogo': '\uEDCE', 'OfficeStoreLogo': '\uEDCF', 'OneNoteEduLogoInverse': '\uEDD0', 'PlannerLogo': '\uEDD1', 'PowerApps': '\uEDD2', 'Suitcase': '\uEDD3', 'ProjectLogoInverse': '\uEDD4', 'CaretLeft8': '\uEDD5', 'CaretRight8': '\uEDD6', 'CaretUp8': '\uEDD7', 'CaretDown8': '\uEDD8', 'CaretLeftSolid8': '\uEDD9', 'CaretRightSolid8': '\uEDDA', 'CaretUpSolid8': '\uEDDB', 'CaretDownSolid8': '\uEDDC', 'ClearFormatting': '\uEDDD', 'Superscript': '\uEDDE', 'Subscript': '\uEDDF', 'Strikethrough': '\uEDE0', 'Export': '\uEDE1', 'ExportMirrored': '\uEDE2' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-6.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-7.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-7.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-7\"", src: "url('" + baseUrl + "fabric-icons-7-2b97bb99.woff') format('woff')" }, icons: { 'SingleBookmark': '\uEDFF', 'SingleBookmarkSolid': '\uEE00', 'DoubleChevronDown': '\uEE04', 'FollowUser': '\uEE05', 'ReplyAll': '\uEE0A', 'WorkforceManagement': '\uEE0F', 'RecruitmentManagement': '\uEE12', 'Questionnaire': '\uEE19', 'ManagerSelfService': '\uEE23', 'ProductionFloorManagement': '\uEE29', 'ProductRelease': '\uEE2E', 'ProductVariant': '\uEE30', 'ReplyMirrored': '\uEE35', 'ReplyAllMirrored': '\uEE36', 'Medal': '\uEE38', 'AddGroup': '\uEE3D', 'QuestionnaireMirrored': '\uEE4B', 'CloudImportExport': '\uEE55', 'TemporaryUser': '\uEE58', 'CaretSolid16': '\uEE62', 'GroupedDescending': '\uEE66', 'GroupedAscending': '\uEE67', 'AwayStatus': '\uEE6A', 'MyMoviesTV': '\uEE6C', 'GenericScan': '\uEE6F', 'AustralianRules': '\uEE70', 'WifiEthernet': '\uEE77', 'TrackersMirrored': '\uEE92', 'DateTimeMirrored': '\uEE93', 'StopSolid': '\uEE95', 'DoubleChevronUp12': '\uEE96', 'DoubleChevronDown12': '\uEE97', 'DoubleChevronLeft12': '\uEE98', 'DoubleChevronRight12': '\uEE99', 'CalendarAgenda': '\uEE9A', 'ConnectVirtualMachine': '\uEE9D', 'AddEvent': '\uEEB5', 'AssetLibrary': '\uEEB6', 'DataConnectionLibrary': '\uEEB7', 'DocLibrary': '\uEEB8', 'FormLibrary': '\uEEB9', 'FormLibraryMirrored': '\uEEBA', 'ReportLibrary': '\uEEBB', 'ReportLibraryMirrored': '\uEEBC', 'ContactCard': '\uEEBD', 'CustomList': '\uEEBE', 'CustomListMirrored': '\uEEBF', 'IssueTracking': '\uEEC0', 'IssueTrackingMirrored': '\uEEC1', 'PictureLibrary': '\uEEC2', 'OfficeAddinsLogo': '\uEEC7', 'OfflineOneDriveParachute': '\uEEC8', 'OfflineOneDriveParachuteDisabled': '\uEEC9', 'TriangleSolidUp12': '\uEECC', 'TriangleSolidDown12': '\uEECD', 'TriangleSolidLeft12': '\uEECE', 'TriangleSolidRight12': '\uEECF', 'TriangleUp12': '\uEED0', 'TriangleDown12': '\uEED1', 'TriangleLeft12': '\uEED2', 'TriangleRight12': '\uEED3', 'ArrowUpRight8': '\uEED4', 'ArrowDownRight8': '\uEED5', 'DocumentSet': '\uEED6', 'GoToDashboard': '\uEEED', 'DelveAnalytics': '\uEEEE', 'ArrowUpRightMirrored8': '\uEEEF', 'ArrowDownRightMirrored8': '\uEEF0', 'CompanyDirectory': '\uEF0D', 'OpenEnrollment': '\uEF1C', 'CompanyDirectoryMirrored': '\uEF2B', 'OneDriveAdd': '\uEF32', 'ProfileSearch': '\uEF35', 'Header2': '\uEF36', 'Header3': '\uEF37', 'Header4': '\uEF38', 'RingerSolid': '\uEF3A', 'Eyedropper': '\uEF3C', 'MarketDown': '\uEF42', 'CalendarWorkWeek': '\uEF51', 'SidePanel': '\uEF52', 'GlobeFavorite': '\uEF53', 'CaretTopLeftSolid8': '\uEF54', 'CaretTopRightSolid8': '\uEF55', 'ViewAll2': '\uEF56', 'DocumentReply': '\uEF57', 'PlayerSettings': '\uEF58', 'ReceiptForward': '\uEF59', 'ReceiptReply': '\uEF5A', 'ReceiptCheck': '\uEF5B', 'Fax': '\uEF5C', 'RecurringEvent': '\uEF5D', 'ReplyAlt': '\uEF5E', 'ReplyAllAlt': '\uEF5F', 'EditStyle': '\uEF60', 'EditMail': '\uEF61', 'Lifesaver': '\uEF62', 'LifesaverLock': '\uEF63', 'InboxCheck': '\uEF64', 'FolderSearch': '\uEF65' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-7.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-8.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-8.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-8\"", src: "url('" + baseUrl + "fabric-icons-8-6fdf1528.woff') format('woff')" }, icons: { 'CollapseMenu': '\uEF66', 'ExpandMenu': '\uEF67', 'Boards': '\uEF68', 'SunAdd': '\uEF69', 'SunQuestionMark': '\uEF6A', 'LandscapeOrientation': '\uEF6B', 'DocumentSearch': '\uEF6C', 'PublicCalendar': '\uEF6D', 'PublicContactCard': '\uEF6E', 'PublicEmail': '\uEF6F', 'PublicFolder': '\uEF70', 'WordDocument': '\uEF71', 'PowerPointDocument': '\uEF72', 'ExcelDocument': '\uEF73', 'GroupedList': '\uEF74', 'ClassroomLogo': '\uEF75', 'Sections': '\uEF76', 'EditPhoto': '\uEF77', 'Starburst': '\uEF78', 'ShareiOS': '\uEF79', 'AirTickets': '\uEF7A', 'PencilReply': '\uEF7B', 'Tiles2': '\uEF7C', 'SkypeCircleCheck': '\uEF7D', 'SkypeCircleClock': '\uEF7E', 'SkypeCircleMinus': '\uEF7F', 'SkypeMessage': '\uEF83', 'ClosedCaption': '\uEF84', 'ATPLogo': '\uEF85', 'OfficeFormsLogoInverse': '\uEF86', 'RecycleBin': '\uEF87', 'EmptyRecycleBin': '\uEF88', 'Hide2': '\uEF89', 'Breadcrumb': '\uEF8C', 'BirthdayCake': '\uEF8D', 'TimeEntry': '\uEF95', 'CRMProcesses': '\uEFB1', 'PageEdit': '\uEFB6', 'PageArrowRight': '\uEFB8', 'PageRemove': '\uEFBA', 'Database': '\uEFC7', 'DataManagementSettings': '\uEFC8', 'CRMServices': '\uEFD2', 'EditContact': '\uEFD3', 'ConnectContacts': '\uEFD4', 'AppIconDefaultAdd': '\uEFDA', 'AppIconDefaultList': '\uEFDE', 'ActivateOrders': '\uEFE0', 'DeactivateOrders': '\uEFE1', 'ProductCatalog': '\uEFE8', 'ScatterChart': '\uEFEB', 'AccountActivity': '\uEFF4', 'DocumentManagement': '\uEFFC', 'CRMReport': '\uEFFE', 'KnowledgeArticle': '\uF000', 'Relationship': '\uF003', 'HomeVerify': '\uF00E', 'ZipFolder': '\uF012', 'SurveyQuestions': '\uF01B', 'TextDocument': '\uF029', 'TextDocumentShared': '\uF02B', 'PageCheckedOut': '\uF02C', 'PageShared': '\uF02D', 'SaveAndClose': '\uF038', 'Script': '\uF03A', 'Archive': '\uF03F', 'ActivityFeed': '\uF056', 'Compare': '\uF057', 'EventDate': '\uF059', 'ArrowUpRight': '\uF069', 'CaretRight': '\uF06B', 'SetAction': '\uF071', 'ChatBot': '\uF08B', 'CaretSolidLeft': '\uF08D', 'CaretSolidDown': '\uF08E', 'CaretSolidRight': '\uF08F', 'CaretSolidUp': '\uF090', 'PowerAppsLogo': '\uF091', 'PowerApps2Logo': '\uF092', 'SearchIssue': '\uF09A', 'SearchIssueMirrored': '\uF09B', 'FabricAssetLibrary': '\uF09C', 'FabricDataConnectionLibrary': '\uF09D', 'FabricDocLibrary': '\uF09E', 'FabricFormLibrary': '\uF09F', 'FabricFormLibraryMirrored': '\uF0A0', 'FabricReportLibrary': '\uF0A1', 'FabricReportLibraryMirrored': '\uF0A2', 'FabricPublicFolder': '\uF0A3', 'FabricFolderSearch': '\uF0A4', 'FabricMovetoFolder': '\uF0A5', 'FabricUnsyncFolder': '\uF0A6', 'FabricSyncFolder': '\uF0A7', 'FabricOpenFolderHorizontal': '\uF0A8', 'FabricFolder': '\uF0A9', 'FabricFolderFill': '\uF0AA', 'FabricNewFolder': '\uF0AB', 'FabricPictureLibrary': '\uF0AC', 'PhotoVideoMedia': '\uF0B1', 'AddFavorite': '\uF0C8' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-8.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-9.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-9.js ***! \**********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-9\"", src: "url('" + baseUrl + "fabric-icons-9-c6162b42.woff') format('woff')" }, icons: { 'AddFavoriteFill': '\uF0C9', 'BufferTimeBefore': '\uF0CF', 'BufferTimeAfter': '\uF0D0', 'BufferTimeBoth': '\uF0D1', 'PublishContent': '\uF0D4', 'ClipboardList': '\uF0E3', 'ClipboardListMirrored': '\uF0E4', 'CannedChat': '\uF0F2', 'SkypeForBusinessLogo': '\uF0FC', 'TabCenter': '\uF100', 'PageCheckedin': '\uF104', 'PageList': '\uF106', 'ReadOutLoud': '\uF112', 'CaretBottomLeftSolid8': '\uF121', 'CaretBottomRightSolid8': '\uF122', 'FolderHorizontal': '\uF12B', 'MicrosoftStaffhubLogo': '\uF130', 'GiftboxOpen': '\uF133', 'StatusCircleOuter': '\uF136', 'StatusCircleInner': '\uF137', 'StatusCircleRing': '\uF138', 'StatusTriangleOuter': '\uF139', 'StatusTriangleInner': '\uF13A', 'StatusTriangleExclamation': '\uF13B', 'StatusCircleExclamation': '\uF13C', 'StatusCircleErrorX': '\uF13D', 'StatusCircleInfo': '\uF13F', 'StatusCircleBlock': '\uF140', 'StatusCircleBlock2': '\uF141', 'StatusCircleQuestionMark': '\uF142', 'StatusCircleSync': '\uF143', 'Toll': '\uF160', 'ExploreContentSingle': '\uF164', 'CollapseContent': '\uF165', 'CollapseContentSingle': '\uF166', 'InfoSolid': '\uF167', 'GroupList': '\uF168', 'ProgressRingDots': '\uF16A', 'CaloriesAdd': '\uF172', 'BranchFork': '\uF173', 'MuteChat': '\uF17A', 'AddHome': '\uF17B', 'AddWork': '\uF17C', 'MobileReport': '\uF18A', 'ScaleVolume': '\uF18C', 'HardDriveGroup': '\uF18F', 'FastMode': '\uF19A', 'ToggleLeft': '\uF19E', 'ToggleRight': '\uF19F', 'TriangleShape': '\uF1A7', 'RectangleShape': '\uF1A9', 'CubeShape': '\uF1AA', 'Trophy2': '\uF1AE', 'BucketColor': '\uF1B6', 'BucketColorFill': '\uF1B7', 'Taskboard': '\uF1C2', 'SingleColumn': '\uF1D3', 'DoubleColumn': '\uF1D4', 'TripleColumn': '\uF1D5', 'ColumnLeftTwoThirds': '\uF1D6', 'ColumnRightTwoThirds': '\uF1D7', 'AccessLogoFill': '\uF1DB', 'AnalyticsLogo': '\uF1DE', 'AnalyticsQuery': '\uF1DF', 'NewAnalyticsQuery': '\uF1E0', 'AnalyticsReport': '\uF1E1', 'WordLogo': '\uF1E3', 'WordLogoFill': '\uF1E4', 'ExcelLogo': '\uF1E5', 'ExcelLogoFill': '\uF1E6', 'OneNoteLogo': '\uF1E7', 'OneNoteLogoFill': '\uF1E8', 'OutlookLogo': '\uF1E9', 'OutlookLogoFill': '\uF1EA', 'PowerPointLogo': '\uF1EB', 'PowerPointLogoFill': '\uF1EC', 'PublisherLogo': '\uF1ED', 'PublisherLogoFill': '\uF1EE', 'ScheduleEventAction': '\uF1EF', 'FlameSolid': '\uF1F3', 'ServerProcesses': '\uF1FE', 'Server': '\uF201', 'SaveAll': '\uF203', 'LinkedInLogo': '\uF20A', 'Decimals': '\uF218', 'SidePanelMirrored': '\uF221', 'ProtectRestrict': '\uF22A', 'Blog': '\uF22B', 'UnknownMirrored': '\uF22E', 'PublicContactCardMirrored': '\uF230', 'GridViewSmall': '\uF232', 'GridViewMedium': '\uF233', 'GridViewLarge': '\uF234', 'Step': '\uF241', 'StepInsert': '\uF242', 'StepShared': '\uF243', 'StepSharedAdd': '\uF244', 'StepSharedInsert': '\uF245', 'ViewDashboard': '\uF246', 'ViewList': '\uF247' } }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons-9.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons.js ***! \********************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none', }, fontFace: { fontFamily: "\"FabricMDL2Icons\"", src: "url('" + baseUrl + "fabric-icons-a13498cf.woff') format('woff')", }, icons: { GlobalNavButton: '\uE700', ChevronDown: '\uE70D', ChevronUp: '\uE70E', Edit: '\uE70F', Add: '\uE710', Cancel: '\uE711', More: '\uE712', Settings: '\uE713', Mail: '\uE715', Filter: '\uE71C', Search: '\uE721', Share: '\uE72D', BlockedSite: '\uE72F', FavoriteStar: '\uE734', FavoriteStarFill: '\uE735', CheckMark: '\uE73E', Delete: '\uE74D', ChevronLeft: '\uE76B', ChevronRight: '\uE76C', Calendar: '\uE787', Megaphone: '\uE789', Undo: '\uE7A7', Flag: '\uE7C1', Page: '\uE7C3', Pinned: '\uE840', View: '\uE890', Clear: '\uE894', Download: '\uE896', Upload: '\uE898', Folder: '\uE8B7', Sort: '\uE8CB', AlignRight: '\uE8E2', AlignLeft: '\uE8E4', Tag: '\uE8EC', AddFriend: '\uE8FA', Info: '\uE946', SortLines: '\uE9D0', List: '\uEA37', CircleRing: '\uEA3A', Heart: '\uEB51', HeartFill: '\uEB52', Tiles: '\uECA5', Embed: '\uECCE', Glimmer: '\uECF4', Ascending: '\uEDC0', Descending: '\uEDC1', SortUp: '\uEE68', SortDown: '\uEE69', SyncToPC: '\uEE6E', LargeGrid: '\uEECB', SkypeCheck: '\uEF80', SkypeClock: '\uEF81', SkypeMinus: '\uEF82', ClearFilter: '\uEF8F', Flow: '\uEF90', StatusCircleCheckmark: '\uF13E', MoreVertical: '\uF2BC', }, }; Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIcons"])(subset, options); } //# sourceMappingURL=fabric-icons.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/iconAliases.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/iconAliases.js ***! \*******************************************************************/ /*! exports provided: registerIconAliases, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerIconAliases", function() { return registerIconAliases; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); var registerIconAliases = function () { Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('trash', 'delete'); Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('onedrive', 'onedrivelogo'); Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('alertsolid12', 'eventdatemissed12'); Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('sixpointstar', '6pointstar'); Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('twelvepointstar', '12pointstar'); Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('toggleon', 'toggleleft'); Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["registerIconAlias"])('toggleoff', 'toggleright'); }; /* harmony default export */ __webpack_exports__["default"] = (registerIconAliases); //# sourceMappingURL=iconAliases.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/index.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/index.js ***! \*************************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return initializeIcons; }); /* harmony import */ var _fabric_icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fabric-icons */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons.js"); /* harmony import */ var _fabric_icons_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fabric-icons-0 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-0.js"); /* harmony import */ var _fabric_icons_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fabric-icons-1 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-1.js"); /* harmony import */ var _fabric_icons_2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fabric-icons-2 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-2.js"); /* harmony import */ var _fabric_icons_3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fabric-icons-3 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-3.js"); /* harmony import */ var _fabric_icons_4__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fabric-icons-4 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-4.js"); /* harmony import */ var _fabric_icons_5__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fabric-icons-5 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-5.js"); /* harmony import */ var _fabric_icons_6__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fabric-icons-6 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-6.js"); /* harmony import */ var _fabric_icons_7__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fabric-icons-7 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-7.js"); /* harmony import */ var _fabric_icons_8__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./fabric-icons-8 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-8.js"); /* harmony import */ var _fabric_icons_9__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./fabric-icons-9 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-9.js"); /* harmony import */ var _fabric_icons_10__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./fabric-icons-10 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-10.js"); /* harmony import */ var _fabric_icons_11__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./fabric-icons-11 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-11.js"); /* harmony import */ var _fabric_icons_12__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./fabric-icons-12 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-12.js"); /* harmony import */ var _fabric_icons_13__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./fabric-icons-13 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-13.js"); /* harmony import */ var _fabric_icons_14__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./fabric-icons-14 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-14.js"); /* harmony import */ var _fabric_icons_15__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./fabric-icons-15 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-15.js"); /* harmony import */ var _fabric_icons_16__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./fabric-icons-16 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-16.js"); /* harmony import */ var _fabric_icons_17__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./fabric-icons-17 */ "./node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-17.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony import */ var _iconAliases__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./iconAliases */ "./node_modules/@fluentui/font-icons-mdl2/lib/iconAliases.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/font-icons-mdl2/lib/version.js"); var DEFAULT_BASE_URL = _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_19__["FLUENT_CDN_BASE_URL"] + "/assets/icons/"; var win = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_21__["getWindow"])(); function initializeIcons(baseUrl, options) { var _a, _b; if (baseUrl === void 0) { baseUrl = ((_a = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _a === void 0 ? void 0 : _a.iconBaseUrl) || ((_b = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _b === void 0 ? void 0 : _b.fontBaseUrl) || DEFAULT_BASE_URL; } [_fabric_icons__WEBPACK_IMPORTED_MODULE_0__["initializeIcons"], _fabric_icons_0__WEBPACK_IMPORTED_MODULE_1__["initializeIcons"], _fabric_icons_1__WEBPACK_IMPORTED_MODULE_2__["initializeIcons"], _fabric_icons_2__WEBPACK_IMPORTED_MODULE_3__["initializeIcons"], _fabric_icons_3__WEBPACK_IMPORTED_MODULE_4__["initializeIcons"], _fabric_icons_4__WEBPACK_IMPORTED_MODULE_5__["initializeIcons"], _fabric_icons_5__WEBPACK_IMPORTED_MODULE_6__["initializeIcons"], _fabric_icons_6__WEBPACK_IMPORTED_MODULE_7__["initializeIcons"], _fabric_icons_7__WEBPACK_IMPORTED_MODULE_8__["initializeIcons"], _fabric_icons_8__WEBPACK_IMPORTED_MODULE_9__["initializeIcons"], _fabric_icons_9__WEBPACK_IMPORTED_MODULE_10__["initializeIcons"], _fabric_icons_10__WEBPACK_IMPORTED_MODULE_11__["initializeIcons"], _fabric_icons_11__WEBPACK_IMPORTED_MODULE_12__["initializeIcons"], _fabric_icons_12__WEBPACK_IMPORTED_MODULE_13__["initializeIcons"], _fabric_icons_13__WEBPACK_IMPORTED_MODULE_14__["initializeIcons"], _fabric_icons_14__WEBPACK_IMPORTED_MODULE_15__["initializeIcons"], _fabric_icons_15__WEBPACK_IMPORTED_MODULE_16__["initializeIcons"], _fabric_icons_16__WEBPACK_IMPORTED_MODULE_17__["initializeIcons"], _fabric_icons_17__WEBPACK_IMPORTED_MODULE_18__["initializeIcons"]].forEach(function (initialize) { return initialize(baseUrl, options); }); Object(_iconAliases__WEBPACK_IMPORTED_MODULE_20__["registerIconAliases"])(); } /* eslint-enable deprecation/deprecation */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib/version.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib/version.js ***! \***************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/font-icons-mdl2', '8.5.12'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/IComponent.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/IComponent.js ***! \********************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/IHTMLSlots.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/IHTMLSlots.js ***! \********************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=IHTMLSlots.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/ISlots.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/ISlots.js ***! \****************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ISlots.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/ThemeProvider.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/ThemeProvider.js ***! \***********************************************************************/ /*! exports provided: ThemeProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return ThemeProvider; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /** * Theme provider is a simplified version of Customizer that activates the appropriate theme data * for a given scheme name. * * @param providers - Injected providers for accessing theme data and providing it via a Customizer component. * @deprecated This is an old ThemeProvider implementation. New code should use the ThemeProvider exported from * `@fluentui/react` (or `@fluentui/react/lib/Theme`) instead. */ var ThemeProvider = function (props) { var scheme = props.scheme, theme = props.theme, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(props, ["scheme", "theme"]); // TODO: consider merging implementation with theme-proto, which only stores a reference / scheme name to theme // in context and uses quick global store accessor to trigger change by passing in theme object as child and // triggering re-render. (perf benefits need verification) var contextTransform = function (context) { return Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_2__["getThemedContext"])(context, scheme, theme); }; // eslint-disable-next-line react/jsx-no-bind, deprecation/deprecation return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["Customizer"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rest, { contextTransform: contextTransform })); }; //# sourceMappingURL=ThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/createComponent.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/createComponent.js ***! \*************************************************************************/ /*! exports provided: createComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createComponent", function() { return createComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _slots__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./slots */ "./node_modules/@fluentui/foundation-legacy/lib/slots.js"); /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utilities */ "./node_modules/@fluentui/foundation-legacy/lib/utilities.js"); /** * Assembles a higher order component based on the following: styles, theme, view, and state. * Imposes a separation of concern and centralizes styling processing to increase ease of use and robustness * in how components use and apply styling and theming. * * Automatically merges and applies themes and styles with theme / styleprops having the highest priority. * State component, if provided, is passed in props for processing. Props from state / user are automatically processed * and styled before finally being passed to view. * * State components should contain all stateful behavior and should not generate any JSX, but rather simply call * the view prop. * * Views should simply be stateless pure functions that receive all props needed for rendering their output. * * State component is optional. If state is not provided, created component is essentially a functional * stateless component. * * @param options - component Component options. See IComponentOptions for more detail. */ function createComponent(view, options) { if (options === void 0) { options = {}; } var _a = options.factoryOptions, factoryOptions = _a === void 0 ? {} : _a; var defaultProp = factoryOptions.defaultProp; var ResultComponent = function (componentProps) { var settings = _getCustomizations(options.displayName, react__WEBPACK_IMPORTED_MODULE_1__["useContext"](_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["CustomizerContext"]), options.fields); var stateReducer = options.state; if (stateReducer) { // Don't assume state will return all props, so spread useState result over component props. componentProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, componentProps), stateReducer(componentProps)); } var theme = componentProps.theme || settings.theme; var tokens = _resolveTokens(componentProps, theme, options.tokens, settings.tokens, componentProps.tokens); var styles = _resolveStyles(componentProps, theme, tokens, options.styles, settings.styles, componentProps.styles); var viewProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, componentProps), { styles: styles, tokens: tokens, _defaultStyles: styles, theme: theme }); return view(viewProps); }; ResultComponent.displayName = options.displayName || view.name; // If a shorthand prop is defined, create a factory for the component. // TODO: This shouldn't be a concern of createComponent.. factoryOptions should just be forwarded. // Need to weigh creating default factories on component creation vs. memoizing them on use in slots.tsx. if (defaultProp) { ResultComponent.create = Object(_slots__WEBPACK_IMPORTED_MODULE_4__["createFactory"])(ResultComponent, { defaultProp: defaultProp }); } Object(_utilities__WEBPACK_IMPORTED_MODULE_5__["assign"])(ResultComponent, options.statics); // Later versions of TypeSript should allow us to merge objects in a type safe way and avoid this cast. return ResultComponent; } /** * Resolve all styles functions with both props and tokens and flatten results along with all styles objects. */ function _resolveStyles(props, theme, tokens) { var allStyles = []; for (var _i = 3; _i < arguments.length; _i++) { allStyles[_i - 3] = arguments[_i]; } return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_2__["concatStyleSets"].apply(void 0, allStyles.map(function (styles) { return typeof styles === 'function' ? styles(props, theme, tokens) : styles; })); } /** * Resolve all tokens functions with props flatten results along with all tokens objects. */ function _resolveTokens(props, theme) { var allTokens = []; for (var _i = 2; _i < arguments.length; _i++) { allTokens[_i - 2] = arguments[_i]; } var tokens = {}; for (var _a = 0, allTokens_1 = allTokens; _a < allTokens_1.length; _a++) { var currentTokens = allTokens_1[_a]; if (currentTokens) { // TODO: why is this cast needed? TS seems to think there is a (TToken | Function) union from somewhere. currentTokens = typeof currentTokens === 'function' ? currentTokens(props, theme) : currentTokens; if (Array.isArray(currentTokens)) { currentTokens = _resolveTokens.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([props, theme], currentTokens)); } Object(_utilities__WEBPACK_IMPORTED_MODULE_5__["assign"])(tokens, currentTokens); } } return tokens; } /** * Helper function for calling Customizations.getSettings falling back to default fields. * * @param displayName Displayable name for component. * @param context React context passed to component containing contextual settings. * @param fields Optional list of properties to grab from global store and context. */ function _getCustomizations(displayName, context, fields) { // TODO: do we want field props? should fields be part of IComponent and used here? // TODO: should we centrally define DefaultFields? (not exported from styling) // TODO: tie this array to ICustomizationProps, such that each array element is keyof ICustomizationProps var DefaultFields = ['theme', 'styles', 'tokens']; return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["Customizations"].getSettings(fields || DefaultFields, displayName, context.customizations); } //# sourceMappingURL=createComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/hooks/controlled.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/hooks/controlled.js ***! \**************************************************************************/ /*! exports provided: useControlledState, getControlledDerivedProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useControlledState", function() { return useControlledState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getControlledDerivedProps", function() { return getControlledDerivedProps; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Controlled state helper that gives priority to props value. Useful for components that have props with both * controlled and uncontrolled modes. Any props values will override state, but will not update internal state. * If prop is defined and then later undefined, state will revert to its previous value. * * @param props - The props object containing controlled prop values. * @param propName - The controlled prop name. * @param options - Options. defaultPropValue is only used if defaultPropName (or its value) is undefined. */ function useControlledState(props, propName, options) { var defaultValue; if (options) { if (options.defaultPropName && props[options.defaultPropName] !== undefined) { // No easy way to coerce TProps[TDefaultProp] to match TProps[TProp] in generic typings, so cast it here. defaultValue = props[options.defaultPropName]; } else { defaultValue = options && options.defaultPropValue; } } var _a = react__WEBPACK_IMPORTED_MODULE_0__["useState"](defaultValue), state = _a[0], setState = _a[1]; if (props[propName] !== undefined) { return [props[propName], setState]; } else { return [state, setState]; } } /** * Simple controlled helper that gives priority to props value and falls back to derived value. * * @param props - The props object containing controlled prop values. * @param propName - The controlled prop name. * @param derivedValue - Derived value. Returned when controlled value is not present. */ function getControlledDerivedProps(props, propName, derivedValue) { if (props[propName] !== undefined) { return props[propName]; } else { return derivedValue; } } //# sourceMappingURL=controlled.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/hooks/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/hooks/index.js ***! \*********************************************************************/ /*! exports provided: useControlledState, getControlledDerivedProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _controlled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./controlled */ "./node_modules/@fluentui/foundation-legacy/lib/hooks/controlled.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useControlledState", function() { return _controlled__WEBPACK_IMPORTED_MODULE_0__["useControlledState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getControlledDerivedProps", function() { return _controlled__WEBPACK_IMPORTED_MODULE_0__["getControlledDerivedProps"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/index.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/index.js ***! \***************************************************************/ /*! exports provided: createComponent, withSlots, createFactory, getSlots, ThemeProvider, useControlledState, getControlledDerivedProps, legacyStyled */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _createComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createComponent */ "./node_modules/@fluentui/foundation-legacy/lib/createComponent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createComponent", function() { return _createComponent__WEBPACK_IMPORTED_MODULE_0__["createComponent"]; }); /* harmony import */ var _IComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IComponent */ "./node_modules/@fluentui/foundation-legacy/lib/IComponent.js"); /* empty/unused harmony star reexport *//* harmony import */ var _IHTMLSlots__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IHTMLSlots */ "./node_modules/@fluentui/foundation-legacy/lib/IHTMLSlots.js"); /* empty/unused harmony star reexport *//* harmony import */ var _ISlots__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ISlots */ "./node_modules/@fluentui/foundation-legacy/lib/ISlots.js"); /* empty/unused harmony star reexport *//* harmony import */ var _slots__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./slots */ "./node_modules/@fluentui/foundation-legacy/lib/slots.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withSlots", function() { return _slots__WEBPACK_IMPORTED_MODULE_4__["withSlots"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createFactory", function() { return _slots__WEBPACK_IMPORTED_MODULE_4__["createFactory"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return _slots__WEBPACK_IMPORTED_MODULE_4__["getSlots"]; }); /* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/@fluentui/foundation-legacy/lib/ThemeProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["ThemeProvider"]; }); /* harmony import */ var _hooks_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hooks/index */ "./node_modules/@fluentui/foundation-legacy/lib/hooks/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useControlledState", function() { return _hooks_index__WEBPACK_IMPORTED_MODULE_6__["useControlledState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getControlledDerivedProps", function() { return _hooks_index__WEBPACK_IMPORTED_MODULE_6__["getControlledDerivedProps"]; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "legacyStyled", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_7__["styled"]; }); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/foundation-legacy/lib/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/slots.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/slots.js ***! \***************************************************************/ /*! exports provided: withSlots, createFactory, getSlots */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withSlots", function() { return withSlots; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFactory", function() { return createFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return getSlots; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_merge_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib/index.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utilities */ "./node_modules/@fluentui/foundation-legacy/lib/utilities.js"); /** * This function is required for any module that uses slots. * * This function is a slot resolver that automatically evaluates slot functions to generate React elements. * A byproduct of this resolver is that it removes slots from the React hierarchy by bypassing React.createElement. * * To use this function on a per-file basis, use the jsx directive targeting withSlots. * This directive must be the FIRST LINE in the file to work correctly. * Usage of this pragma also requires withSlots import statement. * * See React.createElement */ // Can't use typeof on React.createElement since it's overloaded. Approximate createElement's signature for now // and widen as needed. function withSlots(type, props) { var children = []; for (var _i = 2; _i < arguments.length; _i++) { children[_i - 2] = arguments[_i]; } var slotType = type; if (slotType.isSlot) { // Since we are bypassing createElement, use React.Children.toArray to make sure children are // properly assigned keys. // TODO: should this be mutating? does React mutate children subprop with createElement? // TODO: will toArray clobber existing keys? // TODO: React generates warnings because it doesn't detect hidden member _store that is set in createElement. // Even children passed to createElement without keys don't generate this warning. // Is there a better way to prevent slots from appearing in hierarchy? toArray doesn't address root issue. children = react__WEBPACK_IMPORTED_MODULE_1__["Children"].toArray(children); // TODO: There is something weird going on here with children embedded in props vs. rest args. // Comment out these lines to see. Make sure this function is doing the right things. if (children.length === 0) { return slotType(props); } return slotType(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { children: children })); } else { // TODO: Are there some cases where children should NOT be spread? Also, spreading reraises perf question. // Children had to be spread to avoid breaking KeytipData in Toggle.view: // react-dom.development.js:18931 Uncaught TypeError: children is not a function // Without spread, function child is a child array of one element // TODO: is there a reason this can't be: // return React.createElement.apply(this, arguments); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"].apply(react__WEBPACK_IMPORTED_MODULE_1__, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([type, props], children)); } } /** * This function creates factories that render ouput depending on the user ISlotProp props passed in. * @param DefaultComponent - Base component to render when not overridden by user props. * @param options - Factory options, including defaultProp value for shorthand prop mapping. * @returns ISlotFactory function used for rendering slots. */ function createFactory(DefaultComponent, options) { if (options === void 0) { options = {}; } var _a = options.defaultProp, defaultProp = _a === void 0 ? 'children' : _a; var result = function (componentProps, userProps, userSlotOptions, defaultStyles, theme) { // If they passed in raw JSX, just return that. if (react__WEBPACK_IMPORTED_MODULE_1__["isValidElement"](userProps)) { return userProps; } var flattenedUserProps = _translateShorthand(defaultProp, userProps); var finalProps = _constructFinalProps(defaultStyles, theme, componentProps, flattenedUserProps); if (userSlotOptions) { if (userSlotOptions.component) { // TODO: Remove cast if possible. This cast is needed because TS errors on the intrinsic portion of ReactType. // return ; var UserComponent = userSlotOptions.component; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](UserComponent, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, finalProps)); } if (userSlotOptions.render) { return userSlotOptions.render(finalProps, DefaultComponent); } } return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](DefaultComponent, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, finalProps)); }; return result; } /** * Default factory for components without explicit factories. */ var defaultFactory = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["memoizeFunction"])(function (type) { return createFactory(type); }); /** * This function generates slots that can be used in JSX given a definition of slots and their corresponding types. * @param userProps - Props as pass to component. * @param slots - Slot definition object defining the default slot component for each slot. * @returns A set of created slots that components can render in JSX. */ function getSlots(userProps, slots) { var result = {}; // userProps already has default props mixed in by createComponent. Recast here to gain typing for this function. var mixedProps = userProps; var _loop_1 = function (name_1) { if (slots.hasOwnProperty(name_1)) { // This closure method requires the use of withSlots to prevent unnecessary rerenders. This is because React // detects each closure as a different component (since it is a new instance) from the previous one and then // forces a rerender of the entire slot subtree. For now, the only way to avoid this is to use withSlots, which // bypasses the call to React.createElement. var slot = function (componentProps) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } if (args.length > 0) { // If React.createElement is being incorrectly used with slots, there will be additional arguments. // We can detect these additional arguments and error on their presence. throw new Error('Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.'); } // TODO: having TS infer types here seems to cause infinite loop. // use explicit types or casting to preserve typing if possible. // TODO: this should be a lookup on TProps property instead of being TProps directly, which is probably // causing the infinite loop return _renderSlot(slots[name_1], // TODO: this cast to any is hiding a relationship issue between the first two args componentProps, mixedProps[name_1], mixedProps.slots && mixedProps.slots[name_1], // _defaultStyles should always be present, but a check for existence is added to make view tests // easier to use. mixedProps._defaultStyles && mixedProps._defaultStyles[name_1], mixedProps.theme); }; slot.isSlot = true; result[name_1] = slot; } }; for (var name_1 in slots) { _loop_1(name_1); } return result; } /** * Helper function that translates shorthand as needed. * @param defaultProp * @param slotProps */ function _translateShorthand(defaultProp, slotProps) { var _a; var transformedProps; if (typeof slotProps === 'string' || typeof slotProps === 'number' || typeof slotProps === 'boolean') { transformedProps = (_a = {}, _a[defaultProp] = slotProps, _a); } else { transformedProps = slotProps; } return transformedProps; } /** * Helper function that constructs final styles and props given a series of props ordered by increasing priority. */ function _constructFinalProps(defaultStyles, theme) { var allProps = []; for (var _i = 2; _i < arguments.length; _i++) { allProps[_i - 2] = arguments[_i]; } var finalProps = {}; var classNames = []; for (var _a = 0, allProps_1 = allProps; _a < allProps_1.length; _a++) { var props = allProps_1[_a]; classNames.push(props && props.className); Object(_utilities__WEBPACK_IMPORTED_MODULE_4__["assign"])(finalProps, props); } finalProps.className = Object(_fluentui_merge_styles__WEBPACK_IMPORTED_MODULE_2__["mergeCss"])([defaultStyles, classNames], { rtl: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["getRTL"])(theme) }); return finalProps; } /** * Render a slot given component and user props. Uses component factory if available, otherwise falls back * to default factory. * @param ComponentType Factory component type. * @param componentProps The properties passed into slot from within the component. * @param userProps The user properties passed in from outside of the component. */ function _renderSlot(ComponentType, componentProps, userProps, slotOptions, defaultStyles, theme) { if (ComponentType.create !== undefined) { return ComponentType.create(componentProps, userProps, slotOptions, defaultStyles); } else { // TODO: need to resolve typing / generic issues passing through memoizeFunction. for now, cast to 'unknown' return defaultFactory(ComponentType)(componentProps, userProps, slotOptions, defaultStyles, theme); } } //# sourceMappingURL=slots.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/utilities.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/utilities.js ***! \*******************************************************************/ /*! exports provided: assign */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assign", function() { return assign; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); var assign = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]; //# sourceMappingURL=utilities.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib/version.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib/version.js ***! \*****************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/foundation-legacy', '8.2.32'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js ***! \**********************************************************************/ /*! exports provided: setRTL, getRTL, getStyleOptions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setRTL", function() { return setRTL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRTL", function() { return getRTL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyleOptions", function() { return getStyleOptions; }); /** * Sets the current RTL value. */ function setRTL(isRTL) { if (_rtl !== isRTL) { _rtl = isRTL; } } /** * Gets the current RTL value. */ function getRTL() { if (_rtl === undefined) { _rtl = typeof document !== 'undefined' && !!document.documentElement && document.documentElement.getAttribute('dir') === 'rtl'; } return _rtl; } // This has been split into 2 lines because it was working in Fabric due to the code being transpiled to es5, so this // was converted to var while not working in Fluent that uses babel to transpile the code to be es6-like. Splitting the // logic into two lines, however, allows it to work in both scenarios. var _rtl; _rtl = getRTL(); function getStyleOptions() { return { rtl: getRTL(), }; } //# sourceMappingURL=StyleOptionsState.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/Stylesheet.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/Stylesheet.js ***! \***************************************************************/ /*! exports provided: InjectionMode, Stylesheet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectionMode", function() { return InjectionMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Stylesheet", function() { return Stylesheet; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); var InjectionMode = { /** * Avoids style injection, use getRules() to read the styles. */ none: 0, /** * Inserts rules using the insertRule api. */ insertNode: 1, /** * Appends rules using appendChild. */ appendChild: 2, }; var STYLESHEET_SETTING = '__stylesheet__'; /** * MSIE 11 doesn't cascade styles based on DOM ordering, but rather on the order that each style node * is created. As such, to maintain consistent priority, IE11 should reuse a single style node. */ var REUSE_STYLE_NODE = typeof navigator !== 'undefined' && /rv:11.0/.test(navigator.userAgent); var _global = {}; // Grab window. try { // Why the cast? // if compiled/type checked in same program with `@fluentui/font-icons-mdl2` which extends `Window` on global // ( check packages/font-icons-mdl2/src/index.ts ) the definitions don't match! Thus the need of this extra assertion _global = (window || {}); } catch (_a) { /* leave as blank object */ } var _stylesheet; /** * Represents the state of styles registered in the page. Abstracts * the surface for adding styles to the stylesheet, exposes helpers * for reading the styles registered in server rendered scenarios. * * @public */ var Stylesheet = /** @class */ (function () { function Stylesheet(config, serializedStylesheet) { var _a, _b, _c, _d, _e, _f; this._rules = []; this._preservedRules = []; this._counter = 0; this._keyToClassName = {}; this._onInsertRuleCallbacks = []; this._onResetCallbacks = []; this._classNameToArgs = {}; this._config = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ // If there is no document we won't have an element to inject into. injectionMode: typeof document === 'undefined' ? InjectionMode.none : InjectionMode.insertNode, defaultPrefix: 'css', namespace: undefined, cspSettings: undefined }, config); this._classNameToArgs = (_a = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.classNameToArgs) !== null && _a !== void 0 ? _a : this._classNameToArgs; this._counter = (_b = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.counter) !== null && _b !== void 0 ? _b : this._counter; this._keyToClassName = (_d = (_c = this._config.classNameCache) !== null && _c !== void 0 ? _c : serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.keyToClassName) !== null && _d !== void 0 ? _d : this._keyToClassName; this._preservedRules = (_e = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.preservedRules) !== null && _e !== void 0 ? _e : this._preservedRules; this._rules = (_f = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.rules) !== null && _f !== void 0 ? _f : this._rules; } /** * Gets the singleton instance. */ Stylesheet.getInstance = function () { _stylesheet = _global[STYLESHEET_SETTING]; if (!_stylesheet || (_stylesheet._lastStyleElement && _stylesheet._lastStyleElement.ownerDocument !== document)) { var fabricConfig = (_global === null || _global === void 0 ? void 0 : _global.FabricConfig) || {}; var stylesheet = new Stylesheet(fabricConfig.mergeStyles, fabricConfig.serializedStylesheet); _stylesheet = stylesheet; _global[STYLESHEET_SETTING] = stylesheet; } return _stylesheet; }; /** * Serializes the Stylesheet instance into a format which allows rehydration on creation. * @returns string representation of `ISerializedStylesheet` interface. */ Stylesheet.prototype.serialize = function () { return JSON.stringify({ classNameToArgs: this._classNameToArgs, counter: this._counter, keyToClassName: this._keyToClassName, preservedRules: this._preservedRules, rules: this._rules, }); }; /** * Configures the stylesheet. */ Stylesheet.prototype.setConfig = function (config) { this._config = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this._config), config); }; /** * Configures a reset callback. * * @param callback - A callback which will be called when the Stylesheet is reset. * @returns function which when called un-registers provided callback. */ Stylesheet.prototype.onReset = function (callback) { var _this = this; this._onResetCallbacks.push(callback); return function () { _this._onResetCallbacks = _this._onResetCallbacks.filter(function (cb) { return cb !== callback; }); }; }; /** * Configures an insert rule callback. * * @param callback - A callback which will be called when a rule is inserted. * @returns function which when called un-registers provided callback. */ Stylesheet.prototype.onInsertRule = function (callback) { var _this = this; this._onInsertRuleCallbacks.push(callback); return function () { _this._onInsertRuleCallbacks = _this._onInsertRuleCallbacks.filter(function (cb) { return cb !== callback; }); }; }; /** * Generates a unique classname. * * @param displayName - Optional value to use as a prefix. */ Stylesheet.prototype.getClassName = function (displayName) { var namespace = this._config.namespace; var prefix = displayName || this._config.defaultPrefix; return "" + (namespace ? namespace + '-' : '') + prefix + "-" + this._counter++; }; /** * Used internally to cache information about a class which was * registered with the stylesheet. */ Stylesheet.prototype.cacheClassName = function (className, key, args, rules) { this._keyToClassName[key] = className; this._classNameToArgs[className] = { args: args, rules: rules, }; }; /** * Gets the appropriate classname given a key which was previously * registered using cacheClassName. */ Stylesheet.prototype.classNameFromKey = function (key) { return this._keyToClassName[key]; }; /** * Gets all classnames cache with the stylesheet. */ Stylesheet.prototype.getClassNameCache = function () { return this._keyToClassName; }; /** * Gets the arguments associated with a given classname which was * previously registered using cacheClassName. */ Stylesheet.prototype.argsFromClassName = function (className) { var entry = this._classNameToArgs[className]; return entry && entry.args; }; /** * Gets the rules associated with a given classname which was * previously registered using cacheClassName. */ Stylesheet.prototype.insertedRulesFromClassName = function (className) { var entry = this._classNameToArgs[className]; return entry && entry.rules; }; /** * Inserts a css rule into the stylesheet. * @param preserve - Preserves the rule beyond a reset boundary. */ Stylesheet.prototype.insertRule = function (rule, preserve) { var injectionMode = this._config.injectionMode; var element = injectionMode !== InjectionMode.none ? this._getStyleElement() : undefined; if (preserve) { this._preservedRules.push(rule); } if (element) { switch (injectionMode) { case InjectionMode.insertNode: var sheet = element.sheet; try { sheet.insertRule(rule, sheet.cssRules.length); } catch (e) { // The browser will throw exceptions on unsupported rules (such as a moz prefix in webkit.) // We need to swallow the exceptions for this scenario, otherwise we'd need to filter // which could be slower and bulkier. } break; case InjectionMode.appendChild: element.appendChild(document.createTextNode(rule)); break; } } else { this._rules.push(rule); } // eslint-disable-next-line deprecation/deprecation if (this._config.onInsertRule) { // eslint-disable-next-line deprecation/deprecation this._config.onInsertRule(rule); } this._onInsertRuleCallbacks.forEach(function (callback) { return callback(); }); }; /** * Gets all rules registered with the stylesheet; only valid when * using InsertionMode.none. */ Stylesheet.prototype.getRules = function (includePreservedRules) { return (includePreservedRules ? this._preservedRules.join('') : '') + this._rules.join(''); }; /** * Resets the internal state of the stylesheet. Only used in server * rendered scenarios where we're using InsertionMode.none. */ Stylesheet.prototype.reset = function () { this._rules = []; this._counter = 0; this._classNameToArgs = {}; this._keyToClassName = {}; this._onResetCallbacks.forEach(function (callback) { return callback(); }); }; // Forces the regeneration of incoming styles without totally resetting the stylesheet. Stylesheet.prototype.resetKeys = function () { this._keyToClassName = {}; }; Stylesheet.prototype._getStyleElement = function () { var _this = this; if (!this._styleElement && typeof document !== 'undefined') { this._styleElement = this._createStyleElement(); if (!REUSE_STYLE_NODE) { // Reset the style element on the next frame. window.requestAnimationFrame(function () { _this._styleElement = undefined; }); } } return this._styleElement; }; Stylesheet.prototype._createStyleElement = function () { var head = document.head; var styleElement = document.createElement('style'); var nodeToInsertBefore = null; styleElement.setAttribute('data-merge-styles', 'true'); var cspSettings = this._config.cspSettings; if (cspSettings) { if (cspSettings.nonce) { styleElement.setAttribute('nonce', cspSettings.nonce); } } if (this._lastStyleElement) { // If the `nextElementSibling` is null, then the insertBefore will act as a regular append. // https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore#Syntax nodeToInsertBefore = this._lastStyleElement.nextElementSibling; } else { var placeholderStyleTag = this._findPlaceholderStyleTag(); if (placeholderStyleTag) { nodeToInsertBefore = placeholderStyleTag.nextElementSibling; } else { nodeToInsertBefore = head.childNodes[0]; } } head.insertBefore(styleElement, head.contains(nodeToInsertBefore) ? nodeToInsertBefore : null); this._lastStyleElement = styleElement; return styleElement; }; Stylesheet.prototype._findPlaceholderStyleTag = function () { var head = document.head; if (head) { return head.querySelector('style[data-merge-styles]'); } return null; }; return Stylesheet; }()); //# sourceMappingURL=Stylesheet.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/concatStyleSets.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/concatStyleSets.js ***! \********************************************************************/ /*! exports provided: concatStyleSets */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatStyleSets", function() { return concatStyleSets; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /** * Combine a set of styles together (but does not register css classes). * @param styleSets - One or more stylesets to be merged (each param can also be falsy). */ function concatStyleSets() { var styleSets = []; for (var _i = 0; _i < arguments.length; _i++) { styleSets[_i] = arguments[_i]; } if (styleSets && styleSets.length === 1 && styleSets[0] && !styleSets[0].subComponentStyles) { return styleSets[0]; } var mergedSet = {}; // We process sub component styles in two phases. First we collect them, then we combine them into 1 style function. var workingSubcomponentStyles = {}; for (var _a = 0, styleSets_1 = styleSets; _a < styleSets_1.length; _a++) { var currentSet = styleSets_1[_a]; if (currentSet) { for (var prop in currentSet) { if (currentSet.hasOwnProperty(prop)) { if (prop === 'subComponentStyles' && currentSet.subComponentStyles !== undefined) { // subcomponent styles - style functions or objects var currentComponentStyles = currentSet.subComponentStyles; for (var subCompProp in currentComponentStyles) { if (currentComponentStyles.hasOwnProperty(subCompProp)) { if (workingSubcomponentStyles.hasOwnProperty(subCompProp)) { workingSubcomponentStyles[subCompProp].push(currentComponentStyles[subCompProp]); } else { workingSubcomponentStyles[subCompProp] = [currentComponentStyles[subCompProp]]; } } } continue; } // the as any casts below is a workaround for ts 2.8. // todo: remove cast to any in ts 2.9. var mergedValue = mergedSet[prop]; var currentValue = currentSet[prop]; if (mergedValue === undefined) { mergedSet[prop] = currentValue; } else { mergedSet[prop] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], (Array.isArray(mergedValue) ? mergedValue : [mergedValue])), (Array.isArray(currentValue) ? currentValue : [currentValue])); } } } } } if (Object.keys(workingSubcomponentStyles).length > 0) { mergedSet.subComponentStyles = {}; var mergedSubStyles = mergedSet.subComponentStyles; var _loop_1 = function (subCompProp) { if (workingSubcomponentStyles.hasOwnProperty(subCompProp)) { var workingSet_1 = workingSubcomponentStyles[subCompProp]; mergedSubStyles[subCompProp] = function (styleProps) { return concatStyleSets.apply(void 0, workingSet_1.map(function (styleFunctionOrObject) { return typeof styleFunctionOrObject === 'function' ? styleFunctionOrObject(styleProps) : styleFunctionOrObject; })); }; } }; // now we process the subcomponent styles if there are any for (var subCompProp in workingSubcomponentStyles) { _loop_1(subCompProp); } } return mergedSet; } //# sourceMappingURL=concatStyleSets.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/concatStyleSetsWithProps.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/concatStyleSetsWithProps.js ***! \*****************************************************************************/ /*! exports provided: concatStyleSetsWithProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatStyleSetsWithProps", function() { return concatStyleSetsWithProps; }); /* harmony import */ var _concatStyleSets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./concatStyleSets */ "./node_modules/@fluentui/merge-styles/lib/concatStyleSets.js"); /** * Concatenates style sets into one, but resolves functional sets using the given props. * @param styleProps - Props used to resolve functional sets. * @param allStyles - Style sets, which can be functions or objects. */ function concatStyleSetsWithProps(styleProps) { var allStyles = []; for (var _i = 1; _i < arguments.length; _i++) { allStyles[_i - 1] = arguments[_i]; } var result = []; for (var _a = 0, allStyles_1 = allStyles; _a < allStyles_1.length; _a++) { var styles = allStyles_1[_a]; if (styles) { result.push(typeof styles === 'function' ? styles(styleProps) : styles); } } if (result.length === 1) { return result[0]; } else if (result.length) { // cliffkoh: I cannot figure out how to avoid the cast to any here. // It is something to do with the use of Omit in IStyleSet. // It might not be necessary once Omit becomes part of lib.d.ts (when we remove our own Omit and rely on // the official version). return _concatStyleSets__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"].apply(void 0, result); } return {}; } //# sourceMappingURL=concatStyleSetsWithProps.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/extractStyleParts.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/extractStyleParts.js ***! \**********************************************************************/ /*! exports provided: extractStyleParts */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractStyleParts", function() { return extractStyleParts; }); /* harmony import */ var _Stylesheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib/Stylesheet.js"); /** * Separates the classes and style objects. Any classes that are pre-registered * args are auto expanded into objects. */ function extractStyleParts() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var classes = []; var objects = []; var stylesheet = _Stylesheet__WEBPACK_IMPORTED_MODULE_0__["Stylesheet"].getInstance(); function _processArgs(argsList) { for (var _i = 0, argsList_1 = argsList; _i < argsList_1.length; _i++) { var arg = argsList_1[_i]; if (arg) { if (typeof arg === 'string') { if (arg.indexOf(' ') >= 0) { _processArgs(arg.split(' ')); } else { var translatedArgs = stylesheet.argsFromClassName(arg); if (translatedArgs) { _processArgs(translatedArgs); } else { // Avoid adding the same class twice. if (classes.indexOf(arg) === -1) { classes.push(arg); } } } } else if (Array.isArray(arg)) { _processArgs(arg); } else if (typeof arg === 'object') { objects.push(arg); } } } } _processArgs(args); return { classes: classes, objects: objects, }; } //# sourceMappingURL=extractStyleParts.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/fontFace.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/fontFace.js ***! \*************************************************************/ /*! exports provided: fontFace */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fontFace", function() { return fontFace; }); /* harmony import */ var _StyleOptionsState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js"); /* harmony import */ var _Stylesheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib/Stylesheet.js"); /* harmony import */ var _styleToClassName__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib/styleToClassName.js"); /** * Registers a font face. * @public */ function fontFace(font) { var stylesheet = _Stylesheet__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"].getInstance(); var rule = Object(_styleToClassName__WEBPACK_IMPORTED_MODULE_2__["serializeRuleEntries"])(Object(_StyleOptionsState__WEBPACK_IMPORTED_MODULE_0__["getStyleOptions"])(), font); var className = stylesheet.classNameFromKey(rule); if (className) { return; } var name = stylesheet.getClassName(); stylesheet.insertRule("@font-face{" + rule + "}", true); stylesheet.cacheClassName(name, rule, [], ['font-face', rule]); } //# sourceMappingURL=fontFace.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/getVendorSettings.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/getVendorSettings.js ***! \**********************************************************************/ /*! exports provided: getVendorSettings, setVendorSettings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVendorSettings", function() { return getVendorSettings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setVendorSettings", function() { return setVendorSettings; }); var _vendorSettings; function getVendorSettings() { var _a; if (!_vendorSettings) { var doc = typeof document !== 'undefined' ? document : undefined; var nav = typeof navigator !== 'undefined' ? navigator : undefined; var userAgent = (_a = nav === null || nav === void 0 ? void 0 : nav.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase(); if (!doc) { _vendorSettings = { isWebkit: true, isMoz: true, isOpera: true, isMs: true, }; } else { _vendorSettings = { isWebkit: !!(doc && 'WebkitAppearance' in doc.documentElement.style), isMoz: !!(userAgent && userAgent.indexOf('firefox') > -1), isOpera: !!(userAgent && userAgent.indexOf('opera') > -1), isMs: !!(nav && (/rv:11.0/i.test(nav.userAgent) || /Edge\/\d./i.test(navigator.userAgent))), }; } } return _vendorSettings; } /** * Sets the vendor settings for prefixing and vendor specific operations. */ function setVendorSettings(vendorSettings) { _vendorSettings = vendorSettings; } //# sourceMappingURL=getVendorSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/index.js": /*!**********************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/index.js ***! \**********************************************************/ /*! exports provided: mergeStyles, mergeCss, mergeStyleSets, mergeCssSets, concatStyleSets, concatStyleSetsWithProps, fontFace, keyframes, InjectionMode, Stylesheet, setRTL */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _mergeStyles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeStyles */ "./node_modules/@fluentui/merge-styles/lib/mergeStyles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return _mergeStyles__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeCss", function() { return _mergeStyles__WEBPACK_IMPORTED_MODULE_0__["mergeCss"]; }); /* harmony import */ var _mergeStyleSets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mergeStyleSets */ "./node_modules/@fluentui/merge-styles/lib/mergeStyleSets.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeStyleSets", function() { return _mergeStyleSets__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeCssSets", function() { return _mergeStyleSets__WEBPACK_IMPORTED_MODULE_1__["mergeCssSets"]; }); /* harmony import */ var _concatStyleSets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./concatStyleSets */ "./node_modules/@fluentui/merge-styles/lib/concatStyleSets.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatStyleSets", function() { return _concatStyleSets__WEBPACK_IMPORTED_MODULE_2__["concatStyleSets"]; }); /* harmony import */ var _concatStyleSetsWithProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./concatStyleSetsWithProps */ "./node_modules/@fluentui/merge-styles/lib/concatStyleSetsWithProps.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatStyleSetsWithProps", function() { return _concatStyleSetsWithProps__WEBPACK_IMPORTED_MODULE_3__["concatStyleSetsWithProps"]; }); /* harmony import */ var _fontFace__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fontFace */ "./node_modules/@fluentui/merge-styles/lib/fontFace.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fontFace", function() { return _fontFace__WEBPACK_IMPORTED_MODULE_4__["fontFace"]; }); /* harmony import */ var _keyframes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./keyframes */ "./node_modules/@fluentui/merge-styles/lib/keyframes.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return _keyframes__WEBPACK_IMPORTED_MODULE_5__["keyframes"]; }); /* harmony import */ var _Stylesheet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib/Stylesheet.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InjectionMode", function() { return _Stylesheet__WEBPACK_IMPORTED_MODULE_6__["InjectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stylesheet", function() { return _Stylesheet__WEBPACK_IMPORTED_MODULE_6__["Stylesheet"]; }); /* harmony import */ var _StyleOptionsState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setRTL", function() { return _StyleOptionsState__WEBPACK_IMPORTED_MODULE_7__["setRTL"]; }); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/merge-styles/lib/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/keyframes.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/keyframes.js ***! \**************************************************************/ /*! exports provided: keyframes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return keyframes; }); /* harmony import */ var _StyleOptionsState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js"); /* harmony import */ var _Stylesheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib/Stylesheet.js"); /* harmony import */ var _styleToClassName__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib/styleToClassName.js"); /** * Registers keyframe definitions. * * @public */ function keyframes(timeline) { var stylesheet = _Stylesheet__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"].getInstance(); var rulesArray = []; for (var prop in timeline) { if (timeline.hasOwnProperty(prop)) { rulesArray.push(prop, '{', Object(_styleToClassName__WEBPACK_IMPORTED_MODULE_2__["serializeRuleEntries"])(Object(_StyleOptionsState__WEBPACK_IMPORTED_MODULE_0__["getStyleOptions"])(), timeline[prop]), '}'); } } var rules = rulesArray.join(''); var className = stylesheet.classNameFromKey(rules); if (className) { return className; } var name = stylesheet.getClassName(); stylesheet.insertRule("@keyframes " + name + "{" + rules + "}", true); stylesheet.cacheClassName(name, rules, [], ['keyframes', rules]); return name; } //# sourceMappingURL=keyframes.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/mergeStyleSets.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/mergeStyleSets.js ***! \*******************************************************************/ /*! exports provided: mergeStyleSets, mergeCssSets */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyleSets", function() { return mergeStyleSets; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeCssSets", function() { return mergeCssSets; }); /* harmony import */ var _concatStyleSets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./concatStyleSets */ "./node_modules/@fluentui/merge-styles/lib/concatStyleSets.js"); /* harmony import */ var _extractStyleParts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./extractStyleParts */ "./node_modules/@fluentui/merge-styles/lib/extractStyleParts.js"); /* harmony import */ var _StyleOptionsState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js"); /* harmony import */ var _styleToClassName__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib/styleToClassName.js"); /** * Takes in one or more style set objects, each consisting of a set of areas, * each which will produce a class name. Using this is analogous to calling * `mergeStyles` for each property in the object, but ensures we maintain the * set ordering when multiple style sets are merged. * * @param styleSets - One or more style sets to be merged. */ function mergeStyleSets() { var styleSets = []; for (var _i = 0; _i < arguments.length; _i++) { styleSets[_i] = arguments[_i]; } return mergeCssSets(styleSets, Object(_StyleOptionsState__WEBPACK_IMPORTED_MODULE_2__["getStyleOptions"])()); } /** * Takes in one or more style set objects, each1consisting of a set of areas, * each which will produce a class name. Using this is analogous to calling * `mergeCss` for each property in the object, but ensures the * set ordering when multiple style sets are merged. * * @param styleSets - One or more style sets to be merged. * @param options - (optional) Options to use when creating rules. */ function mergeCssSets(styleSets, options) { var classNameSet = { subComponentStyles: {} }; var styleSet = styleSets[0]; if (!styleSet && styleSets.length <= 1) { return { subComponentStyles: {} }; } var concatenatedStyleSet = _concatStyleSets__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"].apply(void 0, styleSets); var registrations = []; for (var styleSetArea in concatenatedStyleSet) { if (concatenatedStyleSet.hasOwnProperty(styleSetArea)) { if (styleSetArea === 'subComponentStyles') { classNameSet.subComponentStyles = concatenatedStyleSet.subComponentStyles || {}; continue; } var styles = concatenatedStyleSet[styleSetArea]; var _a = Object(_extractStyleParts__WEBPACK_IMPORTED_MODULE_1__["extractStyleParts"])(styles), classes = _a.classes, objects = _a.objects; if (objects === null || objects === void 0 ? void 0 : objects.length) { var registration = Object(_styleToClassName__WEBPACK_IMPORTED_MODULE_3__["styleToRegistration"])(options || {}, { displayName: styleSetArea }, objects); if (registration) { registrations.push(registration); classNameSet[styleSetArea] = classes.concat([registration.className]).join(' '); } } else { classNameSet[styleSetArea] = classes.join(' '); } } } for (var _i = 0, registrations_1 = registrations; _i < registrations_1.length; _i++) { var registration = registrations_1[_i]; if (registration) { Object(_styleToClassName__WEBPACK_IMPORTED_MODULE_3__["applyRegistration"])(registration, options === null || options === void 0 ? void 0 : options.specificityMultiplier); } } return classNameSet; } //# sourceMappingURL=mergeStyleSets.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/mergeStyles.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/mergeStyles.js ***! \****************************************************************/ /*! exports provided: mergeStyles, mergeCss */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return mergeStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeCss", function() { return mergeCss; }); /* harmony import */ var _extractStyleParts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extractStyleParts */ "./node_modules/@fluentui/merge-styles/lib/extractStyleParts.js"); /* harmony import */ var _StyleOptionsState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js"); /* harmony import */ var _styleToClassName__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib/styleToClassName.js"); /** * Concatenation helper, which can merge class names together. Skips over falsey values. * * @public */ function mergeStyles() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return mergeCss(args, Object(_StyleOptionsState__WEBPACK_IMPORTED_MODULE_1__["getStyleOptions"])()); } /** * Concatenation helper, which can merge class names together. Skips over falsey values. * Accepts a set of options that will be used when calculating styles. * * @public */ function mergeCss(args, options) { var styleArgs = args instanceof Array ? args : [args]; var _a = Object(_extractStyleParts__WEBPACK_IMPORTED_MODULE_0__["extractStyleParts"])(styleArgs), classes = _a.classes, objects = _a.objects; if (objects.length) { classes.push(Object(_styleToClassName__WEBPACK_IMPORTED_MODULE_2__["styleToClassName"])(options || {}, objects)); } return classes.join(' '); } //# sourceMappingURL=mergeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/styleToClassName.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/styleToClassName.js ***! \*********************************************************************/ /*! exports provided: serializeRuleEntries, styleToRegistration, applyRegistration, styleToClassName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeRuleEntries", function() { return serializeRuleEntries; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styleToRegistration", function() { return styleToRegistration; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyRegistration", function() { return applyRegistration; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styleToClassName", function() { return styleToClassName; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Stylesheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib/Stylesheet.js"); /* harmony import */ var _transforms_kebabRules__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transforms/kebabRules */ "./node_modules/@fluentui/merge-styles/lib/transforms/kebabRules.js"); /* harmony import */ var _transforms_prefixRules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transforms/prefixRules */ "./node_modules/@fluentui/merge-styles/lib/transforms/prefixRules.js"); /* harmony import */ var _transforms_provideUnits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transforms/provideUnits */ "./node_modules/@fluentui/merge-styles/lib/transforms/provideUnits.js"); /* harmony import */ var _transforms_rtlifyRules__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./transforms/rtlifyRules */ "./node_modules/@fluentui/merge-styles/lib/transforms/rtlifyRules.js"); /* harmony import */ var _tokenizeWithParentheses__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tokenizeWithParentheses */ "./node_modules/@fluentui/merge-styles/lib/tokenizeWithParentheses.js"); var DISPLAY_NAME = 'displayName'; function getDisplayName(rules) { var rootStyle = rules && rules['&']; return rootStyle ? rootStyle.displayName : undefined; } var globalSelectorRegExp = /\:global\((.+?)\)/g; /** * Finds comma separated selectors in a :global() e.g. ":global(.class1, .class2, .class3)" * and wraps them each in their own global ":global(.class1), :global(.class2), :global(.class3)" * * @param selectorWithGlobals The selector to process * @returns The updated selector */ function expandCommaSeparatedGlobals(selectorWithGlobals) { // We the selector does not have a :global() we can shortcut if (!globalSelectorRegExp.test(selectorWithGlobals)) { return selectorWithGlobals; } var replacementInfo = []; var findGlobal = /\:global\((.+?)\)/g; var match = null; // Create a result list for global selectors so we can replace them. while ((match = findGlobal.exec(selectorWithGlobals))) { // Only if the found selector is a comma separated list we'll process it. if (match[1].indexOf(',') > -1) { replacementInfo.push([ match.index, match.index + match[0].length, // Wrap each of the found selectors in :global() match[1] .split(',') .map(function (v) { return ":global(" + v.trim() + ")"; }) .join(', '), ]); } } // Replace the found selectors with their wrapped variants in reverse order return replacementInfo .reverse() .reduce(function (selector, _a) { var matchIndex = _a[0], matchEndIndex = _a[1], replacement = _a[2]; var prefix = selector.slice(0, matchIndex); var suffix = selector.slice(matchEndIndex); return prefix + replacement + suffix; }, selectorWithGlobals); } function expandSelector(newSelector, currentSelector) { if (newSelector.indexOf(':global(') >= 0) { return newSelector.replace(globalSelectorRegExp, '$1'); } else if (newSelector.indexOf(':') === 0) { return currentSelector + newSelector; } else if (newSelector.indexOf('&') < 0) { return currentSelector + ' ' + newSelector; } return newSelector; } function extractSelector(currentSelector, rules, selector, value) { if (rules === void 0) { rules = { __order: [] }; } if (selector.indexOf('@') === 0) { selector = selector + '{' + currentSelector; extractRules([value], rules, selector); } else if (selector.indexOf(',') > -1) { expandCommaSeparatedGlobals(selector) .split(',') .map(function (s) { return s.trim(); }) .forEach(function (separatedSelector) { return extractRules([value], rules, expandSelector(separatedSelector, currentSelector)); }); } else { extractRules([value], rules, expandSelector(selector, currentSelector)); } } function extractRules(args, rules, currentSelector) { if (rules === void 0) { rules = { __order: [] }; } if (currentSelector === void 0) { currentSelector = '&'; } var stylesheet = _Stylesheet__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"].getInstance(); var currentRules = rules[currentSelector]; if (!currentRules) { currentRules = {}; rules[currentSelector] = currentRules; rules.__order.push(currentSelector); } for (var _i = 0, args_1 = args; _i < args_1.length; _i++) { var arg = args_1[_i]; // If the arg is a string, we need to look up the class map and merge. if (typeof arg === 'string') { var expandedRules = stylesheet.argsFromClassName(arg); if (expandedRules) { extractRules(expandedRules, rules, currentSelector); } // Else if the arg is an array, we need to recurse in. } else if (Array.isArray(arg)) { extractRules(arg, rules, currentSelector); } else { for (var prop in arg) { if (arg.hasOwnProperty(prop)) { var propValue = arg[prop]; if (prop === 'selectors') { // every child is a selector. var selectors = arg.selectors; for (var newSelector in selectors) { if (selectors.hasOwnProperty(newSelector)) { extractSelector(currentSelector, rules, newSelector, selectors[newSelector]); } } } else if (typeof propValue === 'object') { // prop is a selector. if (propValue !== null) { extractSelector(currentSelector, rules, prop, propValue); } } else { if (propValue !== undefined) { // Else, add the rule to the currentSelector. if (prop === 'margin' || prop === 'padding') { expandQuads(currentRules, prop, propValue); } else { currentRules[prop] = propValue; } } } } } } } return rules; } function expandQuads(currentRules, name, value) { var parts = typeof value === 'string' ? Object(_tokenizeWithParentheses__WEBPACK_IMPORTED_MODULE_6__["tokenizeWithParentheses"])(value) : [value]; if (parts.length === 0) { parts.push(value); } if (parts[parts.length - 1] === '!important') { // Remove !important from parts, and append it to each part individually parts = parts.slice(0, -1).map(function (p) { return p + ' !important'; }); } currentRules[name + 'Top'] = parts[0]; currentRules[name + 'Right'] = parts[1] || parts[0]; currentRules[name + 'Bottom'] = parts[2] || parts[0]; currentRules[name + 'Left'] = parts[3] || parts[1] || parts[0]; } function getKeyForRules(options, rules) { var serialized = [options.rtl ? 'rtl' : 'ltr']; var hasProps = false; for (var _i = 0, _a = rules.__order; _i < _a.length; _i++) { var selector = _a[_i]; serialized.push(selector); var rulesForSelector = rules[selector]; for (var propName in rulesForSelector) { if (rulesForSelector.hasOwnProperty(propName) && rulesForSelector[propName] !== undefined) { hasProps = true; serialized.push(propName, rulesForSelector[propName]); } } } return hasProps ? serialized.join('') : undefined; } function repeatString(target, count) { if (count <= 0) { return ''; } if (count === 1) { return target; } return target + repeatString(target, count - 1); } function serializeRuleEntries(options, ruleEntries) { if (!ruleEntries) { return ''; } var allEntries = []; for (var entry in ruleEntries) { if (ruleEntries.hasOwnProperty(entry) && entry !== DISPLAY_NAME && ruleEntries[entry] !== undefined) { allEntries.push(entry, ruleEntries[entry]); } } // Apply transforms. for (var i = 0; i < allEntries.length; i += 2) { Object(_transforms_kebabRules__WEBPACK_IMPORTED_MODULE_2__["kebabRules"])(allEntries, i); Object(_transforms_provideUnits__WEBPACK_IMPORTED_MODULE_4__["provideUnits"])(allEntries, i); Object(_transforms_rtlifyRules__WEBPACK_IMPORTED_MODULE_5__["rtlifyRules"])(options, allEntries, i); Object(_transforms_prefixRules__WEBPACK_IMPORTED_MODULE_3__["prefixRules"])(allEntries, i); } // Apply punctuation. for (var i = 1; i < allEntries.length; i += 4) { allEntries.splice(i, 1, ':', allEntries[i], ';'); } return allEntries.join(''); } function styleToRegistration(options) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var rules = extractRules(args); var key = getKeyForRules(options, rules); if (key) { var stylesheet = _Stylesheet__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"].getInstance(); var registration = { className: stylesheet.classNameFromKey(key), key: key, args: args, }; if (!registration.className) { registration.className = stylesheet.getClassName(getDisplayName(rules)); var rulesToInsert = []; for (var _a = 0, _b = rules.__order; _a < _b.length; _a++) { var selector = _b[_a]; rulesToInsert.push(selector, serializeRuleEntries(options, rules[selector])); } registration.rulesToInsert = rulesToInsert; } return registration; } return undefined; } /** * Insert style to stylesheet. * @param registration Style registration. * @param specificityMultiplier Number of times classname selector is repeated in the css rule. * This is to increase css specificity in case it's needed. Default to 1. */ function applyRegistration(registration, specificityMultiplier) { if (specificityMultiplier === void 0) { specificityMultiplier = 1; } var stylesheet = _Stylesheet__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"].getInstance(); var className = registration.className, key = registration.key, args = registration.args, rulesToInsert = registration.rulesToInsert; if (rulesToInsert) { // rulesToInsert is an ordered array of selector/rule pairs. for (var i = 0; i < rulesToInsert.length; i += 2) { var rules = rulesToInsert[i + 1]; if (rules) { var selector = rulesToInsert[i]; selector = selector.replace(/&/g, repeatString("." + registration.className, specificityMultiplier)); // Insert. Note if a media query, we must close the query with a final bracket. var processedRule = selector + "{" + rules + "}" + (selector.indexOf('@') === 0 ? '}' : ''); stylesheet.insertRule(processedRule); } } stylesheet.cacheClassName(className, key, args, rulesToInsert); } } function styleToClassName(options) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var registration = styleToRegistration.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([options], args)); if (registration) { applyRegistration(registration, options.specificityMultiplier); return registration.className; } return ''; } //# sourceMappingURL=styleToClassName.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/tokenizeWithParentheses.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/tokenizeWithParentheses.js ***! \****************************************************************************/ /*! exports provided: tokenizeWithParentheses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tokenizeWithParentheses", function() { return tokenizeWithParentheses; }); /** * Split a string into tokens separated by whitespace, except all text within parentheses * is treated as a single token (whitespace is ignored within parentheses). * * Unlike String.split(' '), multiple consecutive space characters are collapsed and * removed from the returned array (including leading and trailing spaces). * * For example: * `tokenizeWithParentheses("3px calc(var(--x) / 2) 9px 0 ")` * => `["3px", "calc(var(--x) / 2)", "9px", "0"]` * * @returns The array of tokens. Returns an empty array if the string was empty or contained only whitespace. */ function tokenizeWithParentheses(value) { var parts = []; var partStart = 0; var parens = 0; for (var i = 0; i < value.length; i++) { switch (value[i]) { case '(': parens++; break; case ')': if (parens) { parens--; } break; case '\t': case ' ': if (!parens) { // Add the new part if it's not an empty string if (i > partStart) { parts.push(value.substring(partStart, i)); } partStart = i + 1; } break; } } // Add the last part if (partStart < value.length) { parts.push(value.substring(partStart)); } return parts; } //# sourceMappingURL=tokenizeWithParentheses.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/transforms/kebabRules.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/transforms/kebabRules.js ***! \**************************************************************************/ /*! exports provided: kebabRules */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kebabRules", function() { return kebabRules; }); var rules = {}; function kebabRules(rulePairs, index) { var rule = rulePairs[index]; if (rule.charAt(0) !== '-') { rulePairs[index] = rules[rule] = rules[rule] || rule.replace(/([A-Z])/g, '-$1').toLowerCase(); } } //# sourceMappingURL=kebabRules.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/transforms/prefixRules.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/transforms/prefixRules.js ***! \***************************************************************************/ /*! exports provided: prefixRules */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefixRules", function() { return prefixRules; }); /* harmony import */ var _getVendorSettings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getVendorSettings */ "./node_modules/@fluentui/merge-styles/lib/getVendorSettings.js"); var autoPrefixNames = { 'user-select': 1, }; function prefixRules(rulePairs, index) { var vendorSettings = Object(_getVendorSettings__WEBPACK_IMPORTED_MODULE_0__["getVendorSettings"])(); var name = rulePairs[index]; if (autoPrefixNames[name]) { var value = rulePairs[index + 1]; if (autoPrefixNames[name]) { if (vendorSettings.isWebkit) { rulePairs.push('-webkit-' + name, value); } if (vendorSettings.isMoz) { rulePairs.push('-moz-' + name, value); } if (vendorSettings.isMs) { rulePairs.push('-ms-' + name, value); } if (vendorSettings.isOpera) { rulePairs.push('-o-' + name, value); } } } } //# sourceMappingURL=prefixRules.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/transforms/provideUnits.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/transforms/provideUnits.js ***! \****************************************************************************/ /*! exports provided: provideUnits */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "provideUnits", function() { return provideUnits; }); var NON_PIXEL_NUMBER_PROPS = [ 'column-count', 'font-weight', 'flex', 'flex-grow', 'flex-shrink', 'fill-opacity', 'opacity', 'order', 'z-index', 'zoom', ]; function provideUnits(rulePairs, index) { var name = rulePairs[index]; var value = rulePairs[index + 1]; if (typeof value === 'number') { var isNonPixelProp = NON_PIXEL_NUMBER_PROPS.indexOf(name) > -1; var isVariableOrPrefixed = name.indexOf('--') > -1; var unit = isNonPixelProp || isVariableOrPrefixed ? '' : 'px'; rulePairs[index + 1] = "" + value + unit; } } //# sourceMappingURL=provideUnits.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/transforms/rtlifyRules.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/transforms/rtlifyRules.js ***! \***************************************************************************/ /*! exports provided: rtlifyRules */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rtlifyRules", function() { return rtlifyRules; }); var _a; var LEFT = 'left'; var RIGHT = 'right'; var NO_FLIP = '@noflip'; var NAME_REPLACEMENTS = (_a = {}, _a[LEFT] = RIGHT, _a[RIGHT] = LEFT, _a); var VALUE_REPLACEMENTS = { 'w-resize': 'e-resize', 'sw-resize': 'se-resize', 'nw-resize': 'ne-resize', }; /** * RTLifies the rulePair in the array at the current index. This mutates the array for performance * reasons. */ function rtlifyRules(options, rulePairs, index) { if (options.rtl) { var name_1 = rulePairs[index]; if (!name_1) { return; } var value = rulePairs[index + 1]; if (typeof value === 'string' && value.indexOf(NO_FLIP) >= 0) { rulePairs[index + 1] = value.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g, ''); } else if (name_1.indexOf(LEFT) >= 0) { rulePairs[index] = name_1.replace(LEFT, RIGHT); } else if (name_1.indexOf(RIGHT) >= 0) { rulePairs[index] = name_1.replace(RIGHT, LEFT); } else if (String(value).indexOf(LEFT) >= 0) { rulePairs[index + 1] = value.replace(LEFT, RIGHT); } else if (String(value).indexOf(RIGHT) >= 0) { rulePairs[index + 1] = value.replace(RIGHT, LEFT); } else if (NAME_REPLACEMENTS[name_1]) { rulePairs[index] = NAME_REPLACEMENTS[name_1]; } else if (VALUE_REPLACEMENTS[value]) { rulePairs[index + 1] = VALUE_REPLACEMENTS[value]; } else { switch (name_1) { case 'margin': case 'padding': rulePairs[index + 1] = flipQuad(value); break; case 'box-shadow': rulePairs[index + 1] = negateNum(value, 0); break; } } } } /** * Given a string value in a space delimited format (e.g. "1 2 3 4"), negates a particular value. */ function negateNum(value, partIndex) { var parts = value.split(' '); var numberVal = parseInt(parts[partIndex], 10); parts[0] = parts[0].replace(String(numberVal), String(numberVal * -1)); return parts.join(' '); } /** * Given a string quad, flips the left and right values. */ function flipQuad(value) { if (typeof value === 'string') { var parts = value.split(' '); if (parts.length === 4) { return parts[0] + " " + parts[3] + " " + parts[2] + " " + parts[1]; } } return value; } //# sourceMappingURL=rtlifyRules.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib/version.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib/version.js ***! \************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/merge-styles', '8.5.6'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/appendClasses.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/appendClasses.js ***! \*******************************************************************/ /*! exports provided: appendClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "appendClasses", function() { return appendClasses; }); function appendClasses() { var classes = []; for (var _i = 0; _i < arguments.length; _i++) { classes[_i] = arguments[_i]; } var result = ''; for (var _a = 0, classes_1 = classes; _a < classes_1.length; _a++) { var className = classes_1[_a]; if (className) { result = (result ? result + " " : '') + className; } } return result; } //# sourceMappingURL=appendClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/createClassResolver.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/createClassResolver.js ***! \*************************************************************************/ /*! exports provided: createClassResolver, createResolvedMap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createClassResolver", function() { return createClassResolver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createResolvedMap", function() { return createResolvedMap; }); /* harmony import */ var _appendClasses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./appendClasses */ "./node_modules/@fluentui/react-compose/lib/appendClasses.js"); /** * `createClassResolver` is a factory function which creates a state to classmap resolver for * slot specific class names. It can be used in conjunction with the `compose` option `classes` to * inject css modules without writing cx(...) logic manually distributing classnames. * * Class names which map to slots are automatically distributed to correct slot props. * * Class names with an underscore are interpretted as enum matchable classes. For example, * the class "size_large" would be applied to the `root` slot when the component's state contains * a prop `size` with a value `large`. * * Remaining class names would be interpretted as modifiers, applied to the `root` slot when * the component `state` contains a truthy matching prop name. */ var createClassResolver = function (classes) { // This is in creation time, so this will happen once per css file. var _a = createResolvedMap(classes), slots = _a.slots, modifiers = _a.modifiers, enums = _a.enums; // Everything in the function below will happen at runtime, so it's very critical that this // code is as minimal as possible. return function classResolver(state) { var resolvedClasses = {}; var modifierClasses = ''; for (var _i = 0, _a = Object.keys(modifiers); _i < _a.length; _i++) { var modifierName = _a[_i]; if (state[modifierName]) { modifierClasses = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])(modifierClasses, modifiers[modifierName]); } } var enumClasses = ''; for (var _b = 0, _c = Object.keys(enums); _b < _c.length; _b++) { var enumName = _c[_b]; var enumValues = enums[enumName]; // if we have a class which matches the enumName and current state value, add it. if (enumValues[state[enumName]]) { enumClasses = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])(enumClasses, enumValues[state[enumName]]); } } for (var _d = 0, _e = Object.keys(slots); _d < _e.length; _d++) { var slotName = _e[_d]; resolvedClasses[slotName] = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])(slots[slotName], modifierClasses, enumClasses); } return resolvedClasses; }; }; /** * Helper to take a css module map and translate it into { slots, modifiers, enums } where * slots are a matched name in the slotNames array, enums have underscores splitting the matched * name/value, and modifiers are everything else. Creating this split definition keeps runtime * resolution work to a minimum. */ function createResolvedMap(classes) { var resolvedMap = { slots: {}, modifiers: {}, enums: {}, }; var slots = resolvedMap.slots, modifiers = resolvedMap.modifiers, enums = resolvedMap.enums; // Iterate through classes Object.keys(classes).forEach(function (key) { var classValue = classes[key]; if (classValue) { var classParts = key.split('_'); // If the class is named the same as a slot, add it to the slot. switch (classParts.length) { case 2: // modifier (_modifierName) modifiers[classParts[1]] = classValue; break; case 3: // enum (_enumName_enumValue) var enumName = classParts[1]; var enumValue = classParts[2]; var enumValues = (enums[enumName] = enums[enumName] || {}); enumValues[enumValue] = classValue; break; default: // slot (root) slots[key] = classValue; } } }); return resolvedMap; } //# sourceMappingURL=createClassResolver.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/next/getSlots.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/next/getSlots.js ***! \*******************************************************************/ /*! exports provided: getSlots */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return getSlots; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /* harmony import */ var _nullRender__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nullRender */ "./node_modules/@fluentui/react-compose/lib/next/nullRender.js"); /** * Given the state and an array of slot names, will break out `slots` and `slotProps` * collections. * * The root is always derived from the `as` prop. * * Slots will render as null if they are rendered as primitives with undefined children. * * The slotProps will always omit the `as` prop within them, and for slots that are string * primitives, the props will be filtered according the the slot type. For example, if the * slot is rendered `as: 'a'`, the props will be filtered for acceptable anchor props. * * @param state - State including slot definitions * @param slotNames - Name of which props are slots * @returns An object containing the `slots` map and `slotProps` map. */ var getSlots = function (state, slotNames) { var slots = { root: state.as || 'div', }; var slotProps = { root: typeof state.as === 'string' ? Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["getNativeElementProps"])(state.as, state) : Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["omit"])(state, ['as']), }; if (slotNames) { for (var _i = 0, slotNames_1 = slotNames; _i < slotNames_1.length; _i++) { var name_1 = slotNames_1[_i]; var slotDefinition = state[name_1] || {}; var _a = slotDefinition.as, slotAs = _a === void 0 ? 'span' : _a, children = slotDefinition.children; var isSlotPrimitive = typeof slotAs === 'string'; var isSlotEmpty = isSlotPrimitive && slotDefinition.children === undefined; slots[name_1] = isSlotEmpty ? _nullRender__WEBPACK_IMPORTED_MODULE_2__["nullRender"] : slotAs; if (typeof children === 'function') { slotProps[name_1] = { children: children(slots[name_1], Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["omit"])(slotDefinition, ['as', 'children'])), }; slots[name_1] = react__WEBPACK_IMPORTED_MODULE_0__["Fragment"]; } else if (slots[name_1] !== _nullRender__WEBPACK_IMPORTED_MODULE_2__["nullRender"]) { slotProps[name_1] = isSlotPrimitive ? Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["getNativeElementProps"])(slotAs, slotDefinition) : Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["omit"])(slotDefinition, ['as']); } } } return { slots: slots, slotProps: slotProps }; }; //# sourceMappingURL=getSlots.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/next/index.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/next/index.js ***! \****************************************************************/ /*! exports provided: getSlots, makeMergeProps, resolveShorthandProps, makeClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _getSlots__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getSlots */ "./node_modules/@fluentui/react-compose/lib/next/getSlots.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return _getSlots__WEBPACK_IMPORTED_MODULE_0__["getSlots"]; }); /* harmony import */ var _makeMergeProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./makeMergeProps */ "./node_modules/@fluentui/react-compose/lib/next/makeMergeProps.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeMergeProps", function() { return _makeMergeProps__WEBPACK_IMPORTED_MODULE_1__["makeMergeProps"]; }); /* harmony import */ var _resolveShorthandProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resolveShorthandProps */ "./node_modules/@fluentui/react-compose/lib/next/resolveShorthandProps.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveShorthandProps", function() { return _resolveShorthandProps__WEBPACK_IMPORTED_MODULE_2__["resolveShorthandProps"]; }); /* harmony import */ var _makeClasses__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./makeClasses */ "./node_modules/@fluentui/react-compose/lib/next/makeClasses.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeClasses", function() { return _makeClasses__WEBPACK_IMPORTED_MODULE_3__["makeClasses"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/next/makeClasses.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/next/makeClasses.js ***! \**********************************************************************/ /*! exports provided: makeClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeClasses", function() { return makeClasses; }); /* harmony import */ var _appendClasses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../appendClasses */ "./node_modules/@fluentui/react-compose/lib/appendClasses.js"); /* harmony import */ var _createClassResolver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../createClassResolver */ "./node_modules/@fluentui/react-compose/lib/createClassResolver.js"); var makeClasses = function (classes) { // This is in creation time, so this will happen once per css file. var _a = Object(_createClassResolver__WEBPACK_IMPORTED_MODULE_1__["createResolvedMap"])(classes), slots = _a.slots, modifiers = _a.modifiers, enums = _a.enums; return function useClasses(state) { var _a; var modifierClasses = ''; var enumClasses = ''; for (var _i = 0, _b = Object.keys(modifiers); _i < _b.length; _i++) { var modifierName = _b[_i]; if (state[modifierName]) { modifierClasses = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])(modifierClasses, modifiers[modifierName]); } } for (var _c = 0, _d = Object.keys(enums); _c < _d.length; _c++) { var enumName = _d[_c]; var enumValues = enums[enumName]; // if we have a class which matches the enumName and current state value, add it. if (enumValues[state[enumName]] !== undefined) { enumClasses = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])(enumClasses, enumValues[state[enumName]]); } } state.className = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])(state.className, slots.root, modifierClasses, enumClasses); for (var _e = 0, _f = Object.keys(slots); _e < _f.length; _e++) { var slotName = _f[_e]; if (slotName !== 'root') { state[slotName] = state[slotName] || {}; state[slotName].className = Object(_appendClasses__WEBPACK_IMPORTED_MODULE_0__["appendClasses"])((_a = state[slotName]) === null || _a === void 0 ? void 0 : _a.className, slots[slotName]); } } }; }; //# sourceMappingURL=makeClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/next/makeMergeProps.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/next/makeMergeProps.js ***! \*************************************************************************/ /*! exports provided: makeMergeProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeMergeProps", function() { return makeMergeProps; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /** * Helper which deep clones props, but respectively assigns JSX, object refs, and class names * appropriately. * * @param target - the target object to merge onto. * @param propSets - one or more prop sets to deep merge onto the target. */ var makeMergeProps = function (options) { if (options === void 0) { options = {}; } var deepMerge = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])((options.deepMerge || []), ['style']); var mergeProps = function (target) { var propSets = []; for (var _i = 1; _i < arguments.length; _i++) { propSets[_i - 1] = arguments[_i]; } for (var _a = 0, propSets_1 = propSets; _a < propSets_1.length; _a++) { var props = propSets_1[_a]; if (props) { for (var _b = 0, _c = Object.keys(props); _b < _c.length; _b++) { var propName = _c[_b]; var propValue = props[propName]; var propValueType = typeof propValue; if (propValue !== undefined) { if (propValue && propValueType === 'object') { if (Array.isArray(propValue)) { // for arrays, replace. target[propName] = propValue; } else { target[propName] = target[propName] || {}; if (typeof target[propName] !== 'object' || react__WEBPACK_IMPORTED_MODULE_1__["isValidElement"](propValue) || (propValue && typeof propValue === 'object' && propValue.hasOwnProperty('current')) || deepMerge.indexOf(propName) === -1) { // if target is not an object, or value is JSX, or a ref object, replace target[propName] = propValue; } else { // else deep merge. mergeProps(target[propName], propValue); } } } else if (propName === 'className') { if (propValue) { // for classnames, append target[propName] = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(target[propName], propValue); } } else { target[propName] = propValue; } } } } } return target; }; return mergeProps; }; //# sourceMappingURL=makeMergeProps.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/next/nullRender.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/next/nullRender.js ***! \*********************************************************************/ /*! exports provided: nullRender */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nullRender", function() { return nullRender; }); var nullRender = function () { return null; }; //# sourceMappingURL=nullRender.js.map /***/ }), /***/ "./node_modules/@fluentui/react-compose/lib/next/resolveShorthandProps.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react-compose/lib/next/resolveShorthandProps.js ***! \********************************************************************************/ /*! exports provided: resolveShorthandProps */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveShorthandProps", function() { return resolveShorthandProps; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /** * Ensures that the given slots are represented using object syntax. This ensures that * the object can be merged along with other objects. * @param props - The incoming props * @param shorthandPropNames - An array of prop names to apply simplification to */ var resolveShorthandProps = function (props, shorthandPropNames) { var newProps = props; if (shorthandPropNames && shorthandPropNames.length) { newProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props); for (var _i = 0, shorthandPropNames_1 = shorthandPropNames; _i < shorthandPropNames_1.length; _i++) { var propName = shorthandPropNames_1[_i]; var propValue = props[propName]; if (propValue !== undefined && (typeof propValue !== 'object' || react__WEBPACK_IMPORTED_MODULE_1__["isValidElement"](propValue))) { // eslint-disable-next-line @typescript-eslint/no-explicit-any newProps[propName] = { children: propValue }; } } } return newProps; }; //# sourceMappingURL=resolveShorthandProps.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js ***! \**********************************************************************************/ /*! exports provided: FocusZone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FocusZone", function() { return FocusZone; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uifabric/merge-styles */ "./node_modules/@uifabric/merge-styles/lib/index.js"); /* harmony import */ var _uifabric_styling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @uifabric/styling */ "./node_modules/@uifabric/styling/lib/index.js"); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /* harmony import */ var _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FocusZone.types */ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js"); var IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable'; var IS_ENTER_DISABLED_ATTRIBUTE = 'data-disable-click-on-enter'; var FOCUSZONE_ID_ATTRIBUTE = 'data-focuszone-id'; var TABINDEX = 'tabindex'; var NO_VERTICAL_WRAP = 'data-no-vertical-wrap'; var NO_HORIZONTAL_WRAP = 'data-no-horizontal-wrap'; var LARGE_DISTANCE_FROM_CENTER = 999999999; var LARGE_NEGATIVE_DISTANCE_FROM_CENTER = -999999999; var focusZoneStyles; var focusZoneClass = 'ms-FocusZone'; /** * Raises a click on a target element based on a keyboard event. */ function raiseClickFromKeyboardEvent(target, ev) { var _a, _b, _c, _d, _e, _f; var event; if (typeof MouseEvent === 'function') { event = new MouseEvent('click', { ctrlKey: (_a = ev) === null || _a === void 0 ? void 0 : _a.ctrlKey, metaKey: (_b = ev) === null || _b === void 0 ? void 0 : _b.metaKey, shiftKey: (_c = ev) === null || _c === void 0 ? void 0 : _c.shiftKey, altKey: (_d = ev) === null || _d === void 0 ? void 0 : _d.altKey, bubbles: (_e = ev) === null || _e === void 0 ? void 0 : _e.bubbles, cancelable: (_f = ev) === null || _f === void 0 ? void 0 : _f.cancelable, }); } else { event = document.createEvent('MouseEvents'); event.initMouseEvent('click', ev ? ev.bubbles : false, ev ? ev.cancelable : false, window, // not using getWindow() since this can only be run client side 0, // detail 0, // screen x 0, // screen y 0, // client x 0, // client y ev ? ev.ctrlKey : false, ev ? ev.altKey : false, ev ? ev.shiftKey : false, ev ? ev.metaKey : false, 0, // button null); } target.dispatchEvent(event); } // Helper function that will return a class for when the root is focused function getRootClass() { if (!focusZoneStyles) { focusZoneStyles = Object(_uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__["mergeStyles"])({ selectors: { ':focus': { outline: 'none', }, }, }, focusZoneClass); } return focusZoneStyles; } var _allInstances = {}; var _outerZones = new Set(); var ALLOWED_INPUT_TYPES = ['text', 'number', 'password', 'email', 'tel', 'url', 'search']; var ALLOW_VIRTUAL_ELEMENTS = false; var FocusZone = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FocusZone, _super); function FocusZone(props) { var _this = _super.call(this, props) || this; _this._root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._mergedRef = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["createMergedRef"])(); _this._onFocus = function (ev) { if (_this._portalContainsElement(ev.target)) { // If the event target is inside a portal do not process the event. return; } var _a = _this.props, onActiveElementChanged = _a.onActiveElementChanged, // eslint-disable-next-line deprecation/deprecation doNotAllowFocusEventToPropagate = _a.doNotAllowFocusEventToPropagate, stopFocusPropagation = _a.stopFocusPropagation, // eslint-disable-next-line deprecation/deprecation onFocusNotification = _a.onFocusNotification, onFocus = _a.onFocus, shouldFocusInnerElementWhenReceivedFocus = _a.shouldFocusInnerElementWhenReceivedFocus, defaultTabbableElement = _a.defaultTabbableElement; var isImmediateDescendant = _this._isImmediateDescendantOfZone(ev.target); var newActiveElement; if (isImmediateDescendant) { newActiveElement = ev.target; } else { var parentElement = ev.target; while (parentElement && parentElement !== _this._root.current) { if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementTabbable"])(parentElement) && _this._isImmediateDescendantOfZone(parentElement)) { newActiveElement = parentElement; break; } parentElement = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(parentElement, ALLOW_VIRTUAL_ELEMENTS); } } // If an inner focusable element should be focused when FocusZone container receives focus if (shouldFocusInnerElementWhenReceivedFocus && ev.target === _this._root.current) { var maybeElementToFocus = defaultTabbableElement && typeof defaultTabbableElement === 'function' && defaultTabbableElement(_this._root.current); // try to focus defaultTabbable element if (maybeElementToFocus && Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementTabbable"])(maybeElementToFocus)) { newActiveElement = maybeElementToFocus; maybeElementToFocus.focus(); } else { // force focus on first focusable element _this.focus(true); if (_this._activeElement) { // set to null as new active element was handled in method above newActiveElement = null; } } } var initialElementFocused = !_this._activeElement; // If the new active element is a child of this zone and received focus, // update alignment an immediate descendant if (newActiveElement && newActiveElement !== _this._activeElement) { if (isImmediateDescendant || initialElementFocused) { _this._setFocusAlignment(newActiveElement, true, true); } _this._activeElement = newActiveElement; if (initialElementFocused) { _this._updateTabIndexes(); } } if (onActiveElementChanged) { onActiveElementChanged(_this._activeElement, ev); } if (stopFocusPropagation || doNotAllowFocusEventToPropagate) { ev.stopPropagation(); } if (onFocus) { onFocus(ev); } else if (onFocusNotification) { onFocusNotification(); } }; _this._onBlur = function () { _this._setParkedFocus(false); }; _this._onMouseDown = function (ev) { if (_this._portalContainsElement(ev.target)) { // If the event target is inside a portal do not process the event. return; } var disabled = _this.props.disabled; if (disabled) { return; } var target = ev.target; var path = []; while (target && target !== _this._root.current) { path.push(target); target = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(target, ALLOW_VIRTUAL_ELEMENTS); } while (path.length) { target = path.pop(); if (target && Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementTabbable"])(target)) { _this._setActiveElement(target, true); } if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(target)) { // Stop here since the focus zone will take care of its own children. break; } } }; /** * Handle the keystrokes. */ _this._onKeyDown = function (ev, theme) { if (_this._portalContainsElement(ev.target)) { // If the event target is inside a portal do not process the event. return; } // eslint-disable-next-line deprecation/deprecation var _a = _this.props, direction = _a.direction, disabled = _a.disabled, isInnerZoneKeystroke = _a.isInnerZoneKeystroke, pagingSupportDisabled = _a.pagingSupportDisabled, shouldEnterInnerZone = _a.shouldEnterInnerZone; if (disabled) { return; } if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); } // If the default has been prevented, do not process keyboard events. if (ev.isDefaultPrevented()) { return; } if (_this._getDocument().activeElement === _this._root.current && _this._isInnerZone) { // If this element has focus, it is being controlled by a parent. // Ignore the keystroke. return; } if (((shouldEnterInnerZone && shouldEnterInnerZone(ev)) || (isInnerZoneKeystroke && isInnerZoneKeystroke(ev))) && _this._isImmediateDescendantOfZone(ev.target)) { // Try to focus var innerZone = _this._getFirstInnerZone(); if (innerZone) { if (!innerZone.focus(true)) { return; } } else if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusSubZone"])(ev.target)) { if (!_this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(ev.target, ev.target.firstChild, true))) { return; } } else { return; } } else if (ev.altKey) { return; } else { // eslint-disable-next-line @fluentui/deprecated-keyboard-event-props switch (ev.which) { case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].space: if (_this._tryInvokeClickForFocusable(ev.target, ev)) { break; } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].left: if (direction !== _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].vertical) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusLeft(theme)) { break; } } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].right: if (direction !== _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].vertical) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusRight(theme)) { break; } } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].up: if (direction !== _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].horizontal) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusUp()) { break; } } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].down: if (direction !== _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].horizontal) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusDown()) { break; } } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].pageDown: if (!pagingSupportDisabled && _this._moveFocusPaging(true)) { break; } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].pageUp: if (!pagingSupportDisabled && _this._moveFocusPaging(false)) { break; } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].tab: if ( // eslint-disable-next-line deprecation/deprecation _this.props.allowTabKey || _this.props.handleTabKey === _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneTabbableElements"].all || (_this.props.handleTabKey === _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneTabbableElements"].inputOnly && _this._isElementInput(ev.target))) { var focusChanged = false; _this._processingTabKey = true; if (direction === _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].vertical || !_this._shouldWrapFocus(_this._activeElement, NO_HORIZONTAL_WRAP)) { focusChanged = ev.shiftKey ? _this._moveFocusUp() : _this._moveFocusDown(); } else { var tabWithDirection = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getRTL"])(theme) ? !ev.shiftKey : ev.shiftKey; focusChanged = tabWithDirection ? _this._moveFocusLeft(theme) : _this._moveFocusRight(theme); } _this._processingTabKey = false; if (focusChanged) { break; } else if (_this.props.shouldResetActiveElementWhenTabFromZone) { _this._activeElement = null; } } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].home: if (_this._isContentEditableElement(ev.target) || (_this._isElementInput(ev.target) && !_this._shouldInputLoseFocus(ev.target, false))) { return false; } var firstChild = _this._root.current && _this._root.current.firstChild; if (_this._root.current && firstChild && _this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(_this._root.current, firstChild, true))) { break; } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].end: if (_this._isContentEditableElement(ev.target) || (_this._isElementInput(ev.target) && !_this._shouldInputLoseFocus(ev.target, true))) { return false; } var lastChild = _this._root.current && _this._root.current.lastChild; if (_this._root.current && _this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getPreviousElement"])(_this._root.current, lastChild, true, true, true))) { break; } return; case _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].enter: if (_this._tryInvokeClickForFocusable(ev.target, ev)) { break; } return; default: return; } } ev.preventDefault(); ev.stopPropagation(); }; _this._getHorizontalDistanceFromCenter = function (isForward, activeRect, targetRect) { // eslint-disable-next-line deprecation/deprecation var leftAlignment = _this._focusAlignment.left || _this._focusAlignment.x || 0; // ClientRect values can be floats that differ by very small fractions of a decimal. // If the difference between top and bottom are within a pixel then we should treat // them as equivalent by using Math.floor. For instance 5.2222 and 5.222221 should be equivalent, // but without Math.Floor they will be handled incorrectly. var targetRectTop = Math.floor(targetRect.top); var activeRectBottom = Math.floor(activeRect.bottom); var targetRectBottom = Math.floor(targetRect.bottom); var activeRectTop = Math.floor(activeRect.top); var isValidCandidateOnpagingDown = isForward && targetRectTop > activeRectBottom; var isValidCandidateOnpagingUp = !isForward && targetRectBottom < activeRectTop; if (isValidCandidateOnpagingDown || isValidCandidateOnpagingUp) { if (leftAlignment >= targetRect.left && leftAlignment <= targetRect.left + targetRect.width) { return 0; } return Math.abs(targetRect.left + targetRect.width / 2 - leftAlignment); } if (!_this._shouldWrapFocus(_this._activeElement, NO_VERTICAL_WRAP)) { return LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return LARGE_DISTANCE_FROM_CENTER; }; // Manage componentRef resolution. Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["initializeComponentRef"])(_this); if (true) { Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["warnDeprecations"])('FocusZone', props, { rootProps: undefined, allowTabKey: 'handleTabKey', elementType: 'as', ariaDescribedBy: 'aria-describedby', ariaLabelledBy: 'aria-labelledby', }); } _this._id = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getId"])('FocusZone'); _this._focusAlignment = { left: 0, top: 0, }; _this._processingTabKey = false; return _this; } /** Used for testing purposes only. */ FocusZone.getOuterZones = function () { return _outerZones.size; }; /** * Handle global tab presses so that we can patch tabindexes on the fly. * HEADS UP: This must not be an arrow function in order to be referentially equal among instances * for ref counting to work correctly! */ FocusZone._onKeyDownCapture = function (ev) { // eslint-disable-next-line deprecation/deprecation, @fluentui/deprecated-keyboard-event-props if (ev.which === _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["KeyCodes"].tab) { _outerZones.forEach(function (zone) { return zone._updateTabIndexes(); }); } }; FocusZone.prototype.componentDidMount = function () { var root = this._root.current; _allInstances[this._id] = this; if (root) { this._windowElement = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getWindow"])(root); var parentElement = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(root, ALLOW_VIRTUAL_ELEMENTS); while (parentElement && parentElement !== this._getDocument().body && parentElement.nodeType === 1) { if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(parentElement)) { this._isInnerZone = true; break; } parentElement = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(parentElement, ALLOW_VIRTUAL_ELEMENTS); } if (!this._isInnerZone) { _outerZones.add(this); if (this._windowElement && _outerZones.size === 1) { this._windowElement.addEventListener('keydown', FocusZone._onKeyDownCapture, true); } } this._root.current && this._root.current.addEventListener('blur', this._onBlur, true); // Assign initial tab indexes so that we can set initial focus as appropriate. this._updateTabIndexes(); if (this.props.defaultTabbableElement && typeof this.props.defaultTabbableElement === 'string') { this._activeElement = this._getDocument().querySelector(this.props.defaultTabbableElement); // eslint-disable-next-line deprecation/deprecation } else if (this.props.defaultActiveElement) { // eslint-disable-next-line deprecation/deprecation this._activeElement = this._getDocument().querySelector(this.props.defaultActiveElement); } if (this.props.shouldFocusOnMount) { this.focus(); } } }; FocusZone.prototype.componentDidUpdate = function () { var root = this._root.current; var doc = this._getDocument(); if (doc && this._lastIndexPath && (doc.activeElement === doc.body || doc.activeElement === null || (!this.props.preventFocusRestoration && doc.activeElement === root))) { // The element has been removed after the render, attempt to restore focus. var elementToFocus = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getFocusableByIndexPath"])(root, this._lastIndexPath); if (elementToFocus) { this._setActiveElement(elementToFocus, true); elementToFocus.focus(); this._setParkedFocus(false); } else { // We had a focus path to restore, but now that path is unresolvable. Park focus // on the container until we can try again. this._setParkedFocus(true); } } }; FocusZone.prototype.componentWillUnmount = function () { delete _allInstances[this._id]; if (!this._isInnerZone) { _outerZones.delete(this); // If this is the last outer zone, remove the keydown listener. if (this._windowElement && _outerZones.size === 0) { this._windowElement.removeEventListener('keydown', FocusZone._onKeyDownCapture, true); } } if (this._root.current) { this._root.current.removeEventListener('blur', this._onBlur, true); } this._activeElement = null; this._defaultFocusElement = null; }; FocusZone.prototype.render = function () { var _this = this; // eslint-disable-next-line deprecation/deprecation var _a = this.props, tag = _a.as, elementType = _a.elementType, rootProps = _a.rootProps, ariaDescribedBy = _a.ariaDescribedBy, ariaLabelledBy = _a.ariaLabelledBy, className = _a.className; var divProps = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNativeProps"])(this.props, _uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["htmlElementProperties"]); var Tag = tag || elementType || 'div'; // Note, right before rendering/reconciling proceeds, we need to record if focus // was in the zone before the update. This helper will track this and, if focus // was actually in the zone, what the index path to the element is at this time. // Then, later in componentDidUpdate, we can evaluate if we need to restore it in // the case the element was removed. this._evaluateFocusBeforeRender(); // Only support RTL defined in global theme, not contextual theme/RTL. var theme = Object(_uifabric_styling__WEBPACK_IMPORTED_MODULE_3__["getTheme"])(); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Tag, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }, divProps, rootProps, { // Once the getClassName correctly memoizes inputs this should // be replaced so that className is passed to getRootClass and is included there so // the class names will always be in the same order. className: Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["css"])(getRootClass(), className), // eslint-disable-next-line deprecation/deprecation ref: this._mergedRef(this.props.elementRef, this._root), "data-focuszone-id": this._id, // eslint-disable-next-line react/jsx-no-bind onKeyDown: function (ev) { return _this._onKeyDown(ev, theme); }, onFocus: this._onFocus, onMouseDownCapture: this._onMouseDown }), this.props.children)); }; /** * Sets focus to the first tabbable item in the zone. * @param forceIntoFirstElement - If true, focus will be forced into the first element, even * if focus is already in the focus zone. * @returns True if focus could be set to an active element, false if no operation was taken. */ FocusZone.prototype.focus = function (forceIntoFirstElement) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } if (this._root.current) { if (!forceIntoFirstElement && this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true' && this._isInnerZone) { var ownerZoneElement = this._getOwnerZone(this._root.current); if (ownerZoneElement !== this._root.current) { var ownerZone = _allInstances[ownerZoneElement.getAttribute(FOCUSZONE_ID_ATTRIBUTE)]; return !!ownerZone && ownerZone.focusElement(this._root.current); } return false; } else if (!forceIntoFirstElement && this._activeElement && Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["elementContains"])(this._root.current, this._activeElement) && Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementTabbable"])(this._activeElement)) { this._activeElement.focus(); return true; } else { var firstChild = this._root.current.firstChild; return this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(this._root.current, firstChild, true)); } } return false; }; /** * Sets focus to the last tabbable item in the zone. * @returns True if focus could be set to an active element, false if no operation was taken. */ FocusZone.prototype.focusLast = function () { if (this._root.current) { var lastChild = this._root.current && this._root.current.lastChild; return this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getPreviousElement"])(this._root.current, lastChild, true, true, true)); } return false; }; /** * Sets focus to a specific child element within the zone. This can be used in conjunction with * shouldReceiveFocus to create delayed focus scenarios (like animate the scroll position to the correct * location and then focus.) * @param element - The child element within the zone to focus. * @param forceAlignment - If true, focus alignment will be set according to the element provided. * @returns True if focus could be set to an active element, false if no operation was taken. */ FocusZone.prototype.focusElement = function (element, forceAlignment) { // eslint-disable-next-line deprecation/deprecation var _a = this.props, onBeforeFocus = _a.onBeforeFocus, shouldReceiveFocus = _a.shouldReceiveFocus; if ((shouldReceiveFocus && !shouldReceiveFocus(element)) || (onBeforeFocus && !onBeforeFocus(element))) { return false; } if (element) { // when we set focus to a specific child, we should recalculate the alignment depending on its position. this._setActiveElement(element, forceAlignment); if (this._activeElement) { this._activeElement.focus(); } return true; } return false; }; /** * Forces horizontal alignment in the context of vertical arrowing to use specific point as the reference, * rather than a center based on the last horizontal motion. * @param point - the new reference point. */ FocusZone.prototype.setFocusAlignment = function (point) { this._focusAlignment = point; }; FocusZone.prototype._evaluateFocusBeforeRender = function () { var root = this._root.current; var doc = this._getDocument(); if (doc) { var focusedElement = doc.activeElement; // Only update the index path if we are not parked on the root. if (focusedElement !== root) { var shouldRestoreFocus = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["elementContains"])(root, focusedElement, false); this._lastIndexPath = shouldRestoreFocus ? Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getElementIndexPath"])(root, focusedElement) : undefined; } } }; /** * When focus is in the zone at render time but then all focusable elements are removed, * we "park" focus temporarily on the root. Once we update with focusable children, we restore * focus to the closest path from previous. If the user tabs away from the parked container, * we restore focusability to the pre-parked state. */ FocusZone.prototype._setParkedFocus = function (isParked) { var root = this._root.current; if (root && this._isParked !== isParked) { this._isParked = isParked; if (isParked) { if (!this.props.allowFocusRoot) { this._parkedTabIndex = root.getAttribute('tabindex'); root.setAttribute('tabindex', '-1'); } root.focus(); } else if (!this.props.allowFocusRoot) { if (this._parkedTabIndex) { root.setAttribute('tabindex', this._parkedTabIndex); this._parkedTabIndex = undefined; } else { root.removeAttribute('tabindex'); } } } }; FocusZone.prototype._setActiveElement = function (element, forceAlignment) { var previousActiveElement = this._activeElement; this._activeElement = element; if (previousActiveElement) { if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(previousActiveElement)) { this._updateTabIndexes(previousActiveElement); } previousActiveElement.tabIndex = -1; } if (this._activeElement) { if (!this._focusAlignment || forceAlignment) { this._setFocusAlignment(element, true, true); } this._activeElement.tabIndex = 0; } }; FocusZone.prototype._preventDefaultWhenHandled = function (ev) { this.props.preventDefaultWhenHandled && ev.preventDefault(); }; /** * Walk up the dom try to find a focusable element. */ FocusZone.prototype._tryInvokeClickForFocusable = function (targetElement, ev) { var target = targetElement; if (target === this._root.current || !this.props.shouldRaiseClicks) { return false; } do { if (target.tagName === 'BUTTON' || target.tagName === 'A' || target.tagName === 'INPUT' || target.tagName === 'TEXTAREA') { return false; } if (this._isImmediateDescendantOfZone(target) && target.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true' && target.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE) !== 'true') { raiseClickFromKeyboardEvent(target, ev); return true; } target = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(target, ALLOW_VIRTUAL_ELEMENTS); } while (target !== this._root.current); return false; }; /** * Traverse to find first child zone. */ FocusZone.prototype._getFirstInnerZone = function (rootElement) { rootElement = rootElement || this._activeElement || this._root.current; if (!rootElement) { return null; } if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(rootElement)) { return _allInstances[rootElement.getAttribute(FOCUSZONE_ID_ATTRIBUTE)]; } var child = rootElement.firstElementChild; while (child) { if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(child)) { return _allInstances[child.getAttribute(FOCUSZONE_ID_ATTRIBUTE)]; } var match = this._getFirstInnerZone(child); if (match) { return match; } child = child.nextElementSibling; } return null; }; FocusZone.prototype._moveFocus = function (isForward, getDistanceFromCenter, ev, useDefaultWrap) { if (useDefaultWrap === void 0) { useDefaultWrap = true; } var element = this._activeElement; var candidateDistance = -1; var candidateElement = undefined; var changedFocus = false; var isBidirectional = this.props.direction === _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].bidirectional; if (!element || !this._root.current) { return false; } if (this._isElementInput(element)) { if (!this._shouldInputLoseFocus(element, isForward)) { return false; } } var activeRect = isBidirectional ? element.getBoundingClientRect() : null; do { element = (isForward ? Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(this._root.current, element) : Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getPreviousElement"])(this._root.current, element)); if (isBidirectional) { if (element) { var targetRect = element.getBoundingClientRect(); var elementDistance = getDistanceFromCenter(activeRect, targetRect); if (elementDistance === -1 && candidateDistance === -1) { candidateElement = element; break; } if (elementDistance > -1 && (candidateDistance === -1 || elementDistance < candidateDistance)) { candidateDistance = elementDistance; candidateElement = element; } if (candidateDistance >= 0 && elementDistance < 0) { break; } } } else { candidateElement = element; break; } } while (element); // Focus the closest candidate if (candidateElement && candidateElement !== this._activeElement) { changedFocus = true; this.focusElement(candidateElement); } else if (this.props.isCircularNavigation && useDefaultWrap) { if (isForward) { return this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(this._root.current, this._root.current.firstElementChild, true)); } else { return this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getPreviousElement"])(this._root.current, this._root.current.lastElementChild, true, true, true)); } } return changedFocus; }; FocusZone.prototype._moveFocusDown = function () { var _this = this; var targetTop = -1; // eslint-disable-next-line deprecation/deprecation var leftAlignment = this._focusAlignment.left || this._focusAlignment.x || 0; if (this._moveFocus(true, function (activeRect, targetRect) { var distance = -1; // ClientRect values can be floats that differ by very small fractions of a decimal. // If the difference between top and bottom are within a pixel then we should treat // them as equivalent by using Math.floor. For instance 5.2222 and 5.222221 should be equivalent, // but without Math.Floor they will be handled incorrectly. var targetRectTop = Math.floor(targetRect.top); var activeRectBottom = Math.floor(activeRect.bottom); if (targetRectTop < activeRectBottom) { if (!_this._shouldWrapFocus(_this._activeElement, NO_VERTICAL_WRAP)) { return LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return LARGE_DISTANCE_FROM_CENTER; } if ((targetTop === -1 && targetRectTop >= activeRectBottom) || targetRectTop === targetTop) { targetTop = targetRectTop; if (leftAlignment >= targetRect.left && leftAlignment <= targetRect.left + targetRect.width) { distance = 0; } else { distance = Math.abs(targetRect.left + targetRect.width / 2 - leftAlignment); } } return distance; })) { this._setFocusAlignment(this._activeElement, false, true); return true; } return false; }; FocusZone.prototype._moveFocusUp = function () { var _this = this; var targetTop = -1; // eslint-disable-next-line deprecation/deprecation var leftAlignment = this._focusAlignment.left || this._focusAlignment.x || 0; if (this._moveFocus(false, function (activeRect, targetRect) { var distance = -1; // ClientRect values can be floats that differ by very small fractions of a decimal. // If the difference between top and bottom are within a pixel then we should treat // them as equivalent by using Math.floor. For instance 5.2222 and 5.222221 should be equivalent, // but without Math.Floor they will be handled incorrectly. var targetRectBottom = Math.floor(targetRect.bottom); var targetRectTop = Math.floor(targetRect.top); var activeRectTop = Math.floor(activeRect.top); if (targetRectBottom > activeRectTop) { if (!_this._shouldWrapFocus(_this._activeElement, NO_VERTICAL_WRAP)) { return LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return LARGE_DISTANCE_FROM_CENTER; } if ((targetTop === -1 && targetRectBottom <= activeRectTop) || targetRectTop === targetTop) { targetTop = targetRectTop; if (leftAlignment >= targetRect.left && leftAlignment <= targetRect.left + targetRect.width) { distance = 0; } else { distance = Math.abs(targetRect.left + targetRect.width / 2 - leftAlignment); } } return distance; })) { this._setFocusAlignment(this._activeElement, false, true); return true; } return false; }; FocusZone.prototype._moveFocusLeft = function (theme) { var _this = this; var shouldWrap = this._shouldWrapFocus(this._activeElement, NO_HORIZONTAL_WRAP); if (this._moveFocus(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getRTL"])(theme), function (activeRect, targetRect) { var distance = -1; var topBottomComparison; if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getRTL"])(theme)) { // When in RTL, this comparison should be the same as the one in _moveFocusRight for LTR. // Going left at a leftmost rectangle will go down a line instead of up a line like in LTR. // This is important, because we want to be comparing the top of the target rect // with the bottom of the active rect. topBottomComparison = parseFloat(targetRect.top.toFixed(3)) < parseFloat(activeRect.bottom.toFixed(3)); } else { topBottomComparison = parseFloat(targetRect.bottom.toFixed(3)) > parseFloat(activeRect.top.toFixed(3)); } if (topBottomComparison && targetRect.right <= activeRect.right && _this.props.direction !== _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].vertical) { distance = activeRect.right - targetRect.right; } else if (!shouldWrap) { distance = LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return distance; }, undefined /*ev*/, shouldWrap)) { this._setFocusAlignment(this._activeElement, true, false); return true; } return false; }; FocusZone.prototype._moveFocusRight = function (theme) { var _this = this; var shouldWrap = this._shouldWrapFocus(this._activeElement, NO_HORIZONTAL_WRAP); if (this._moveFocus(!Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getRTL"])(theme), function (activeRect, targetRect) { var distance = -1; var topBottomComparison; if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getRTL"])(theme)) { // When in RTL, this comparison should be the same as the one in _moveFocusLeft for LTR. // Going right at a rightmost rectangle will go up a line instead of down a line like in LTR. // This is important, because we want to be comparing the bottom of the target rect // with the top of the active rect. topBottomComparison = parseFloat(targetRect.bottom.toFixed(3)) > parseFloat(activeRect.top.toFixed(3)); } else { topBottomComparison = parseFloat(targetRect.top.toFixed(3)) < parseFloat(activeRect.bottom.toFixed(3)); } if (topBottomComparison && targetRect.left >= activeRect.left && _this.props.direction !== _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].vertical) { distance = targetRect.left - activeRect.left; } else if (!shouldWrap) { distance = LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return distance; }, undefined /*ev*/, shouldWrap)) { this._setFocusAlignment(this._activeElement, true, false); return true; } return false; }; FocusZone.prototype._moveFocusPaging = function (isForward, useDefaultWrap) { if (useDefaultWrap === void 0) { useDefaultWrap = true; } var element = this._activeElement; if (!element || !this._root.current) { return false; } if (this._isElementInput(element)) { if (!this._shouldInputLoseFocus(element, isForward)) { return false; } } var scrollableParent = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["findScrollableParent"])(element); if (!scrollableParent) { return false; } var candidateDistance = -1; var candidateElement = undefined; var targetTop = -1; var targetBottom = -1; var pagesize = scrollableParent.clientHeight; var activeRect = element.getBoundingClientRect(); do { element = isForward ? Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(this._root.current, element) : Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getPreviousElement"])(this._root.current, element); if (element) { var targetRect = element.getBoundingClientRect(); var targetRectTop = Math.floor(targetRect.top); var activeRectBottom = Math.floor(activeRect.bottom); var targetRectBottom = Math.floor(targetRect.bottom); var activeRectTop = Math.floor(activeRect.top); var elementDistance = this._getHorizontalDistanceFromCenter(isForward, activeRect, targetRect); var isElementPassedPageSizeOnPagingDown = isForward && targetRectTop > activeRectBottom + pagesize; var isElementPassedPageSizeOnPagingUp = !isForward && targetRectBottom < activeRectTop - pagesize; if (isElementPassedPageSizeOnPagingDown || isElementPassedPageSizeOnPagingUp) { break; } if (elementDistance > -1) { // for paging down if (isForward && targetRectTop > targetTop) { targetTop = targetRectTop; candidateDistance = elementDistance; candidateElement = element; } else if (!isForward && targetRectBottom < targetBottom) { // for paging up targetBottom = targetRectBottom; candidateDistance = elementDistance; candidateElement = element; } else if (candidateDistance === -1 || elementDistance <= candidateDistance) { candidateDistance = elementDistance; candidateElement = element; } } } } while (element); var changedFocus = false; // Focus the closest candidate if (candidateElement && candidateElement !== this._activeElement) { changedFocus = true; this.focusElement(candidateElement); this._setFocusAlignment(candidateElement, false, true); } else if (this.props.isCircularNavigation && useDefaultWrap) { if (isForward) { return this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getNextElement"])(this._root.current, this._root.current.firstElementChild, true)); } return this.focusElement(Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getPreviousElement"])(this._root.current, this._root.current.lastElementChild, true, true, true)); } return changedFocus; }; FocusZone.prototype._setFocusAlignment = function (element, isHorizontal, isVertical) { if (this.props.direction === _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].bidirectional && (!this._focusAlignment || isHorizontal || isVertical)) { var rect = element.getBoundingClientRect(); var left = rect.left + rect.width / 2; var top_1 = rect.top + rect.height / 2; if (!this._focusAlignment) { this._focusAlignment = { left: left, top: top_1 }; } if (isHorizontal) { this._focusAlignment.left = left; } if (isVertical) { this._focusAlignment.top = top_1; } } }; FocusZone.prototype._isImmediateDescendantOfZone = function (element) { return this._getOwnerZone(element) === this._root.current; }; FocusZone.prototype._getOwnerZone = function (element) { var parentElement = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(element, ALLOW_VIRTUAL_ELEMENTS); while (parentElement && parentElement !== this._root.current && parentElement !== this._getDocument().body) { if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(parentElement)) { return parentElement; } parentElement = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getParent"])(parentElement, ALLOW_VIRTUAL_ELEMENTS); } return parentElement; }; FocusZone.prototype._updateTabIndexes = function (element) { if (!this._activeElement && this.props.defaultTabbableElement && typeof this.props.defaultTabbableElement === 'function') { this._activeElement = this.props.defaultTabbableElement(this._root.current); } if (!element && this._root.current) { this._defaultFocusElement = null; element = this._root.current; if (this._activeElement && !Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["elementContains"])(element, this._activeElement)) { this._activeElement = null; } } // If active element changes state to disabled, set it to null. // Otherwise, we lose keyboard accessibility to other elements in focus zone. if (this._activeElement && !Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementTabbable"])(this._activeElement)) { this._activeElement = null; } var childNodes = element && element.children; for (var childIndex = 0; childNodes && childIndex < childNodes.length; childIndex++) { var child = childNodes[childIndex]; if (!Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementFocusZone"])(child)) { // If the item is explicitly set to not be focusable then TABINDEX needs to be set to -1. if (child.getAttribute && child.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'false') { child.setAttribute(TABINDEX, '-1'); } if (Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["isElementTabbable"])(child)) { if (this.props.disabled) { child.setAttribute(TABINDEX, '-1'); } else if (!this._isInnerZone && ((!this._activeElement && !this._defaultFocusElement) || this._activeElement === child)) { this._defaultFocusElement = child; if (child.getAttribute(TABINDEX) !== '0') { child.setAttribute(TABINDEX, '0'); } } else if (child.getAttribute(TABINDEX) !== '-1') { child.setAttribute(TABINDEX, '-1'); } } else if (child.tagName === 'svg' && child.getAttribute('focusable') !== 'false') { // Disgusting IE hack. Sad face. child.setAttribute('focusable', 'false'); } } else if (child.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true') { if (!this._isInnerZone && ((!this._activeElement && !this._defaultFocusElement) || this._activeElement === child)) { this._defaultFocusElement = child; if (child.getAttribute(TABINDEX) !== '0') { child.setAttribute(TABINDEX, '0'); } } else if (child.getAttribute(TABINDEX) !== '-1') { child.setAttribute(TABINDEX, '-1'); } } this._updateTabIndexes(child); } }; FocusZone.prototype._isContentEditableElement = function (element) { return element && element.getAttribute('contenteditable') === 'true'; }; FocusZone.prototype._isElementInput = function (element) { if (element && element.tagName && (element.tagName.toLowerCase() === 'input' || element.tagName.toLowerCase() === 'textarea')) { return true; } return false; }; FocusZone.prototype._shouldInputLoseFocus = function (element, isForward) { // If a tab was used, we want to focus on the next element. if (!this._processingTabKey && element && element.type && ALLOWED_INPUT_TYPES.indexOf(element.type.toLowerCase()) > -1) { var selectionStart = element.selectionStart; var selectionEnd = element.selectionEnd; var isRangeSelected = selectionStart !== selectionEnd; var inputValue = element.value; var isReadonly = element.readOnly; // We shouldn't lose focus in the following cases: // 1. There is range selected. // 2. When selection start is larger than 0 and it is backward and not readOnly. // 3. when selection start is not the end of length, it is forward and not readOnly. // 4. We press any of the arrow keys when our handleTabKey isn't none or undefined (only losing focus if we hit // tab) and if shouldInputLoseFocusOnArrowKey is defined, if scenario prefers to not loose the focus which is // determined by calling the callback shouldInputLoseFocusOnArrowKey if (isRangeSelected || (selectionStart > 0 && !isForward && !isReadonly) || (selectionStart !== inputValue.length && isForward && !isReadonly) || (!!this.props.handleTabKey && !(this.props.shouldInputLoseFocusOnArrowKey && this.props.shouldInputLoseFocusOnArrowKey(element)))) { return false; } } return true; }; FocusZone.prototype._shouldWrapFocus = function (element, noWrapDataAttribute) { return this.props.checkForNoWrap ? Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["shouldWrapFocus"])(element, noWrapDataAttribute) : true; }; /** * Returns true if the element is a descendant of the FocusZone through a React portal. */ FocusZone.prototype._portalContainsElement = function (element) { return element && !!this._root.current && Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["portalContainsElement"])(element, this._root.current); }; FocusZone.prototype._getDocument = function () { return Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_4__["getDocument"])(this._root.current); }; FocusZone.defaultProps = { isCircularNavigation: false, direction: _FocusZone_types__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].bidirectional, shouldRaiseClicks: true, }; return FocusZone; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=FocusZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js ***! \****************************************************************************************/ /*! exports provided: FocusZoneTabbableElements, FocusZoneDirection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FocusZoneTabbableElements", function() { return FocusZoneTabbableElements; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FocusZoneDirection", function() { return FocusZoneDirection; }); /** * {@docCategory FocusZone} */ var FocusZoneTabbableElements = { /** Tabbing is not allowed */ none: 0, /** All tabbing action is allowed */ all: 1, /** Tabbing is allowed only on input elements */ inputOnly: 2, }; /** * {@docCategory FocusZone} */ var FocusZoneDirection; (function (FocusZoneDirection) { /** Only react to up/down arrows. */ FocusZoneDirection[FocusZoneDirection["vertical"] = 0] = "vertical"; /** Only react to left/right arrows. */ FocusZoneDirection[FocusZoneDirection["horizontal"] = 1] = "horizontal"; /** React to all arrows. */ FocusZoneDirection[FocusZoneDirection["bidirectional"] = 2] = "bidirectional"; /** * React to all arrows. Navigate next item in DOM on right/down arrow keys and previous - left/up arrow keys. * Right and Left arrow keys are swapped in RTL mode. */ FocusZoneDirection[FocusZoneDirection["domOrder"] = 3] = "domOrder"; })(FocusZoneDirection || (FocusZoneDirection = {})); //# sourceMappingURL=FocusZone.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib/components/FocusZone/index.js ***! \******************************************************************************/ /*! exports provided: FocusZone, FocusZoneTabbableElements, FocusZoneDirection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FocusZone */ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZone", function() { return _FocusZone__WEBPACK_IMPORTED_MODULE_0__["FocusZone"]; }); /* harmony import */ var _FocusZone_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FocusZone.types */ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZoneTabbableElements", function() { return _FocusZone_types__WEBPACK_IMPORTED_MODULE_1__["FocusZoneTabbableElements"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZoneDirection", function() { return _FocusZone_types__WEBPACK_IMPORTED_MODULE_1__["FocusZoneDirection"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib/index.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib/index.js ***! \*********************************************************/ /*! exports provided: FocusZone, FocusZoneTabbableElements, FocusZoneDirection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-focus/lib/version.js"); /* harmony import */ var _components_FocusZone_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/FocusZone/index */ "./node_modules/@fluentui/react-focus/lib/components/FocusZone/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZone", function() { return _components_FocusZone_index__WEBPACK_IMPORTED_MODULE_1__["FocusZone"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZoneTabbableElements", function() { return _components_FocusZone_index__WEBPACK_IMPORTED_MODULE_1__["FocusZoneTabbableElements"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZoneDirection", function() { return _components_FocusZone_index__WEBPACK_IMPORTED_MODULE_1__["FocusZoneDirection"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib/version.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib/version.js ***! \***********************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @uifabric/set-version */ "./node_modules/@uifabric/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-focus', '7.18.16'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/index.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/index.js ***! \*********************************************************/ /*! exports provided: useAsync, useBoolean, useConst, useConstCallback, useControllableValue, useEventCallback, useForceUpdate, useId, useMergedRefs, useMount, useMountSync, useOnEvent, usePrevious, useRefEffect, useSetInterval, useSetTimeout, useTarget, useUnmount, useWarnings, useIsomorphicLayoutEffect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-hooks/lib/version.js"); /* harmony import */ var _useAsync__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useAsync */ "./node_modules/@fluentui/react-hooks/lib/useAsync.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useAsync", function() { return _useAsync__WEBPACK_IMPORTED_MODULE_1__["useAsync"]; }); /* harmony import */ var _useBoolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useBoolean */ "./node_modules/@fluentui/react-hooks/lib/useBoolean.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useBoolean", function() { return _useBoolean__WEBPACK_IMPORTED_MODULE_2__["useBoolean"]; }); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useConst", function() { return _useConst__WEBPACK_IMPORTED_MODULE_3__["useConst"]; }); /* harmony import */ var _useConstCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useConstCallback */ "./node_modules/@fluentui/react-hooks/lib/useConstCallback.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useConstCallback", function() { return _useConstCallback__WEBPACK_IMPORTED_MODULE_4__["useConstCallback"]; }); /* harmony import */ var _useControllableValue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useControllableValue */ "./node_modules/@fluentui/react-hooks/lib/useControllableValue.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useControllableValue", function() { return _useControllableValue__WEBPACK_IMPORTED_MODULE_5__["useControllableValue"]; }); /* harmony import */ var _useEventCallback__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useEventCallback */ "./node_modules/@fluentui/react-hooks/lib/useEventCallback.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useEventCallback", function() { return _useEventCallback__WEBPACK_IMPORTED_MODULE_6__["useEventCallback"]; }); /* harmony import */ var _useForceUpdate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useForceUpdate */ "./node_modules/@fluentui/react-hooks/lib/useForceUpdate.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useForceUpdate", function() { return _useForceUpdate__WEBPACK_IMPORTED_MODULE_7__["useForceUpdate"]; }); /* harmony import */ var _useId__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useId */ "./node_modules/@fluentui/react-hooks/lib/useId.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useId", function() { return _useId__WEBPACK_IMPORTED_MODULE_8__["useId"]; }); /* harmony import */ var _useMergedRefs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useMergedRefs */ "./node_modules/@fluentui/react-hooks/lib/useMergedRefs.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useMergedRefs", function() { return _useMergedRefs__WEBPACK_IMPORTED_MODULE_9__["useMergedRefs"]; }); /* harmony import */ var _useMount__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useMount */ "./node_modules/@fluentui/react-hooks/lib/useMount.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useMount", function() { return _useMount__WEBPACK_IMPORTED_MODULE_10__["useMount"]; }); /* harmony import */ var _useMountSync__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./useMountSync */ "./node_modules/@fluentui/react-hooks/lib/useMountSync.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useMountSync", function() { return _useMountSync__WEBPACK_IMPORTED_MODULE_11__["useMountSync"]; }); /* harmony import */ var _useOnEvent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./useOnEvent */ "./node_modules/@fluentui/react-hooks/lib/useOnEvent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useOnEvent", function() { return _useOnEvent__WEBPACK_IMPORTED_MODULE_12__["useOnEvent"]; }); /* harmony import */ var _usePrevious__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./usePrevious */ "./node_modules/@fluentui/react-hooks/lib/usePrevious.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "usePrevious", function() { return _usePrevious__WEBPACK_IMPORTED_MODULE_13__["usePrevious"]; }); /* harmony import */ var _useRefEffect__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useRefEffect */ "./node_modules/@fluentui/react-hooks/lib/useRefEffect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useRefEffect", function() { return _useRefEffect__WEBPACK_IMPORTED_MODULE_14__["useRefEffect"]; }); /* harmony import */ var _useSetInterval__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./useSetInterval */ "./node_modules/@fluentui/react-hooks/lib/useSetInterval.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useSetInterval", function() { return _useSetInterval__WEBPACK_IMPORTED_MODULE_15__["useSetInterval"]; }); /* harmony import */ var _useSetTimeout__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./useSetTimeout */ "./node_modules/@fluentui/react-hooks/lib/useSetTimeout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useSetTimeout", function() { return _useSetTimeout__WEBPACK_IMPORTED_MODULE_16__["useSetTimeout"]; }); /* harmony import */ var _useTarget__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./useTarget */ "./node_modules/@fluentui/react-hooks/lib/useTarget.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useTarget", function() { return _useTarget__WEBPACK_IMPORTED_MODULE_17__["useTarget"]; }); /* harmony import */ var _useUnmount__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./useUnmount */ "./node_modules/@fluentui/react-hooks/lib/useUnmount.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUnmount", function() { return _useUnmount__WEBPACK_IMPORTED_MODULE_18__["useUnmount"]; }); /* harmony import */ var _useWarnings__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./useWarnings */ "./node_modules/@fluentui/react-hooks/lib/useWarnings.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useWarnings", function() { return _useWarnings__WEBPACK_IMPORTED_MODULE_19__["useWarnings"]; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useIsomorphicLayoutEffect", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_20__["useIsomorphicLayoutEffect"]; }); // re-export since this is a hook, which people would reasonably expect to import from react-hooks //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useAsync.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useAsync.js ***! \************************************************************/ /*! exports provided: useAsync */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useAsync", function() { return useAsync; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /** * Hook to provide an Async instance that is automatically cleaned up on dismount. */ function useAsync() { var asyncRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); if (!asyncRef.current) { asyncRef.current = new _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__["Async"](); } react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { return function () { var _a; (_a = asyncRef.current) === null || _a === void 0 ? void 0 : _a.dispose(); asyncRef.current = undefined; }; }, []); return asyncRef.current; } //# sourceMappingURL=useAsync.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useBoolean.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useBoolean.js ***! \**************************************************************/ /*! exports provided: useBoolean */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useBoolean", function() { return useBoolean; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); /** * Hook to store a value and generate callbacks for setting the value to true or false. * The identity of the callbacks will always stay the same. * * @param initialState - Initial value * @returns Array with the current value and an object containing the updater callbacks. */ function useBoolean(initialState) { var _a = react__WEBPACK_IMPORTED_MODULE_0__["useState"](initialState), value = _a[0], setValue = _a[1]; var setTrue = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(function () { return function () { setValue(true); }; }); var setFalse = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(function () { return function () { setValue(false); }; }); var toggle = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(function () { return function () { setValue(function (currentValue) { return !currentValue; }); }; }); return [value, { setTrue: setTrue, setFalse: setFalse, toggle: toggle }]; } //# sourceMappingURL=useBoolean.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useConst.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useConst.js ***! \************************************************************/ /*! exports provided: useConst */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useConst", function() { return useConst; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Hook to initialize and return a constant value. Unlike `React.useMemo`, this is guaranteed to * always return the same value (and if the initializer is a function, only call it once). * This is similar to setting a private member in a class constructor. * * If the value should ever change based on dependencies, use `React.useMemo` instead. * * @param initialValue - Initial value, or function to get the initial value. Similar to `useState`, * only the value/function passed in the first time this is called is respected. * @returns The value. The identity of this value will always be the same. */ function useConst(initialValue) { // Use useRef to store the value because it's the least expensive built-in hook that works here // (we could also use `const [value] = React.useState(initialValue)` but that's more expensive // internally due to reducer handling which we don't need) var ref = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](); if (ref.current === undefined) { // Box the value in an object so we can tell if it's initialized even if the initializer // returns/is undefined ref.current = { value: typeof initialValue === 'function' ? initialValue() : initialValue, }; } return ref.current.value; } //# sourceMappingURL=useConst.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useConstCallback.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useConstCallback.js ***! \********************************************************************/ /*! exports provided: useConstCallback */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useConstCallback", function() { return useConstCallback; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * @deprecated Deprecated due to potential for misuse. Generally, use `React.useCallback` instead. * If you need a callback reference that never changes, consider `useEventCallback`. * * This hook was intended for creating callbacks which have no dependencies, and therefore never * need to change. It works fine if everyone using it is extremely mindful of how closures work, * but that's not a safe assumption--so in practice, usage of this hook tends to result in bugs * like unintentionally capturing the first value of a prop and not respecting updates (when * updates should be respected). */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function useConstCallback(callback) { var ref = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](); if (!ref.current) { ref.current = callback; } return ref.current; } //# sourceMappingURL=useConstCallback.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useControllableValue.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useControllableValue.js ***! \************************************************************************/ /*! exports provided: useControllableValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useControllableValue", function() { return useControllableValue; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); function useControllableValue(controlledValue, defaultUncontrolledValue, onChange) { var _a = react__WEBPACK_IMPORTED_MODULE_0__["useState"](defaultUncontrolledValue), value = _a[0], setValue = _a[1]; var isControlled = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(controlledValue !== undefined); var currentValue = isControlled ? controlledValue : value; // Duplicate the current value and onChange in refs so they're accessible from // setValueOrCallOnChange without creating a new callback every time var valueRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](currentValue); var onChangeRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](onChange); react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { valueRef.current = currentValue; onChangeRef.current = onChange; }); // To match the behavior of the setter returned by React.useState, this callback's identity // should never change. This means it MUST NOT directly reference variables that can change. var setValueOrCallOnChange = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(function () { return function (update, ev) { // Assuming here that TValue is not a function, because a controllable value will typically // be something a user can enter as input var newValue = typeof update === 'function' ? update(valueRef.current) : update; if (onChangeRef.current) { onChangeRef.current(ev, newValue); } if (!isControlled) { setValue(newValue); } }; }); return [currentValue, setValueOrCallOnChange]; } //# sourceMappingURL=useControllableValue.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useEventCallback.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useEventCallback.js ***! \********************************************************************/ /*! exports provided: useEventCallback */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useEventCallback", function() { return useEventCallback; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /** * Modified `useCallback` that returns the same function reference every time, but internally calls * the most-recently passed callback implementation. Can be useful in situations such as: * - Event handler dependencies change too frequently, such as user props which might change on * every render, or volatile values such as useState/useDispatch * - Callback must be referenced in a captured context (such as a window event handler or unmount * handler that's registered once) but needs access to the latest props * * In general, prefer `useCallback` unless you've encountered one of the problems above. * * https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback * * @param fn - The callback function that will be used * @returns A function which is referentially stable but internally calls the most recently passed callback */ function useEventCallback(fn) { var callbackRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](function () { throw new Error('Cannot call an event handler while rendering'); }); Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["useIsomorphicLayoutEffect"])(function () { callbackRef.current = fn; }, [fn]); // useConst rather than useCallback to ensure the reference is always stable // (useCallback's deps list is an optimization, not a guarantee) return Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(function () { return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var callback = callbackRef.current; return callback.apply(void 0, args); }; }); } //# sourceMappingURL=useEventCallback.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useForceUpdate.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useForceUpdate.js ***! \******************************************************************/ /*! exports provided: useForceUpdate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useForceUpdate", function() { return useForceUpdate; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); /** * Hook to force update a function component by updating a dummy state. */ function useForceUpdate() { var _a = react__WEBPACK_IMPORTED_MODULE_0__["useState"](0), setValue = _a[1]; var forceUpdate = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])(function () { return function () { return setValue(function (value) { return ++value; }); }; }); return forceUpdate; } //# sourceMappingURL=useForceUpdate.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useId.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useId.js ***! \*********************************************************/ /*! exports provided: useId */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useId", function() { return useId; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /** * Hook to generate a unique ID in the global scope (spanning across duplicate copies of the same library). * * @param prefix - Optional prefix for the ID * @param providedId - Optional id provided by a parent component. Defaults to the provided value if present, * without conditioning the hook call * @returns The ID */ function useId(prefix, providedId) { // getId should only be called once since it updates the global constant for the next ID value. // (While an extra update isn't likely to cause problems in practice, it's better to avoid it.) var ref = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](providedId); if (!ref.current) { ref.current = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getId"])(prefix); } return ref.current; } //# sourceMappingURL=useId.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useMergedRefs.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useMergedRefs.js ***! \*****************************************************************/ /*! exports provided: useMergedRefs */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useMergedRefs", function() { return useMergedRefs; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /** * React hook to merge multiple React refs (either MutableRefObjects or ref callbacks) into a single ref callback that * updates all provided refs * @param refs - Refs to collectively update with one ref value. * @returns A function with an attached "current" prop, so that it can be treated like a RefObject. */ function useMergedRefs() { var refs = []; for (var _i = 0; _i < arguments.length; _i++) { refs[_i] = arguments[_i]; } var mergedCallback = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (value) { // Update the "current" prop hanging on the function. mergedCallback.current = value; for (var _i = 0, refs_1 = refs; _i < refs_1.length; _i++) { var ref = refs_1[_i]; if (typeof ref === 'function') { ref(value); } else if (ref) { // work around the immutability of the React.Ref type ref.current = value; } } }, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], refs)); return mergedCallback; } //# sourceMappingURL=useMergedRefs.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useMount.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useMount.js ***! \************************************************************/ /*! exports provided: useMount */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useMount", function() { return useMount; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Hook which asynchronously executes a callback once the component has been mounted. * * @param callback - Function to call before mount. */ var useMount = function (callback) { var mountRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](callback); mountRef.current = callback; react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { var _a; (_a = mountRef.current) === null || _a === void 0 ? void 0 : _a.call(mountRef); }, []); }; //# sourceMappingURL=useMount.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useMountSync.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useMountSync.js ***! \****************************************************************/ /*! exports provided: useMountSync */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useMountSync", function() { return useMountSync; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Hook which synchronously executes a callback once the component has been mounted. * * `WARNING` This should only be used if you need to perform an action after the component has been mounted and * before the browser paints. useMountSync will trigger debug warnings in server-rendered scenarios and should be used * sparingly. * * @deprecated Consider to use React.useEffect() or React.useLayoutEffect() directly based on a use case * * @param callback - Function to call once the component has been mounted. */ var useMountSync = function (callback) { var mountRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](callback); mountRef.current = callback; // eslint-disable-next-line no-restricted-properties react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"](function () { var _a; (_a = mountRef.current) === null || _a === void 0 ? void 0 : _a.call(mountRef); }, []); }; //# sourceMappingURL=useMountSync.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useOnEvent.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useOnEvent.js ***! \**************************************************************/ /*! exports provided: useOnEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useOnEvent", function() { return useOnEvent; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /** * Hook to attach an event handler on mount and handle cleanup. * @param element - Element (or ref to an element) to attach the event handler to * @param eventName - The event to attach a handler for * @param callback - The handler for the event * @param useCapture - Whether or not to attach the handler for the capture phase */ function useOnEvent(element, eventName, callback, useCapture) { // Use a ref for the callback to prevent repeatedly attaching/unattaching callbacks that are unstable across renders var callbackRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](callback); callbackRef.current = callback; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var actualElement = element && 'current' in element ? element.current : element; if (!actualElement) { return; } var dispose = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__["on"])(actualElement, eventName, function (ev) { return callbackRef.current(ev); }, useCapture); return dispose; }, [element, eventName, useCapture]); } //# sourceMappingURL=useOnEvent.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/usePrevious.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/usePrevious.js ***! \***************************************************************/ /*! exports provided: usePrevious */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "usePrevious", function() { return usePrevious; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Hook keeping track of a given value from a previous execution of the component the Hook is used in. * * See [React Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state) */ function usePrevious(value) { var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () { ref.current = value; }); return ref.current; } //# sourceMappingURL=usePrevious.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useRefEffect.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useRefEffect.js ***! \****************************************************************/ /*! exports provided: useRefEffect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useRefEffect", function() { return useRefEffect; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Creates a ref, and calls a callback whenever the ref changes to a non-null value. The callback can optionally return * a cleanup function that'll be called before the value changes, and when the ref is unmounted. * * This can be used to work around a limitation that useEffect cannot depend on `ref.current` (see * https://github.com/facebook/react/issues/14387#issuecomment-503616820). * * Usage example: * ```ts * const myRef = useRefEffect(element => { * ... * return () => { ... cleanup ... }; * }); * ``` * ```jsx *
* ``` * * @param callback - Called whenever the ref's value changes to non-null. Can optionally return a cleanup function. * @param initial - (Optional) The initial value for the ref. * * @returns A function that should be called to set the ref's value. The object also has a `.current` member that can be * used to access the ref's value (like a normal RefObject). It can be hooked up to an element's `ref` property. */ function useRefEffect(callback, initial) { if (initial === void 0) { initial = null; } var createRefCallback = function () { var refCallback = function (value) { if (data.ref.current !== value) { if (data.cleanup) { data.cleanup(); data.cleanup = undefined; } data.ref.current = value; if (value !== null) { data.cleanup = data.callback(value); } } }; refCallback.current = initial; return refCallback; }; var data = react__WEBPACK_IMPORTED_MODULE_0__["useRef"]({ ref: createRefCallback(), callback: callback, }).current; data.callback = callback; return data.ref; } //# sourceMappingURL=useRefEffect.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useSetInterval.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useSetInterval.js ***! \******************************************************************/ /*! exports provided: useSetInterval */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useSetInterval", function() { return useSetInterval; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); /** * Returns a wrapper function for `setInterval` which automatically handles disposal. */ var useSetInterval = function () { var intervalIds = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])({}); react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { return function () { for (var _i = 0, _a = Object.keys(intervalIds); _i < _a.length; _i++) { var id = _a[_i]; // eslint-disable-next-line @typescript-eslint/no-explicit-any clearInterval(id); } }; }, // useConst ensures this will never change, but react-hooks/exhaustive-deps doesn't know that [intervalIds]); return Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])({ setInterval: function (func, duration) { var id = setInterval(func, duration); intervalIds[id] = 1; return id; }, clearInterval: function (id) { delete intervalIds[id]; clearInterval(id); }, }); }; //# sourceMappingURL=useSetInterval.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useSetTimeout.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useSetTimeout.js ***! \*****************************************************************/ /*! exports provided: useSetTimeout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useSetTimeout", function() { return useSetTimeout; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); /** * Returns a wrapper function for `setTimeout` which automatically handles disposal. */ var useSetTimeout = function () { var timeoutIds = Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])({}); // Cleanup function. react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { return function () { for (var _i = 0, _a = Object.keys(timeoutIds); _i < _a.length; _i++) { var id = _a[_i]; // eslint-disable-next-line @typescript-eslint/no-explicit-any clearTimeout(id); } }; }, // useConst ensures this will never change, but react-hooks/exhaustive-deps doesn't know that [timeoutIds]); // Return wrapper which will auto cleanup. return Object(_useConst__WEBPACK_IMPORTED_MODULE_1__["useConst"])({ setTimeout: function (func, duration) { var id = setTimeout(func, duration); timeoutIds[id] = 1; return id; }, clearTimeout: function (id) { delete timeoutIds[id]; clearTimeout(id); }, }); }; //# sourceMappingURL=useSetTimeout.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useTarget.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useTarget.js ***! \*************************************************************/ /*! exports provided: useTarget */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTarget", function() { return useTarget; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib/index.js"); /** * Hook to calculate and cache the target element specified by the given target attribute, * as well as the target element's (or host element's) parent window * @param target- Target selector passed to the component as a property, describing the element that * the callout should target * @param hostElement- The callout's host element, used for determining the parent window. */ function useTarget(target, hostElement) { var previousTargetProp = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); var targetRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); /** * Stores an instance of Window, used to check * for server side rendering and if focus was lost. */ var targetWindow = Object(_fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_2__["useWindow"])(); // If the target element changed, find the new one. If we are tracking // target with class name, always find element because we do not know if // fabric has rendered a new element and disposed the old element. if (!target || target !== previousTargetProp.current || typeof target === 'string') { var currentElement = hostElement === null || hostElement === void 0 ? void 0 : hostElement.current; if (target) { if (typeof target === 'string') { var currentDoc = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__["getDocument"])(currentElement); targetRef.current = currentDoc ? currentDoc.querySelector(target) : null; } else if ('stopPropagation' in target) { targetRef.current = target; } else if ('getBoundingClientRect' in target) { targetRef.current = target; } else if ('current' in target) { targetRef.current = target.current; } else { targetRef.current = target; } } previousTargetProp.current = target; } return [targetRef, targetWindow]; } //# sourceMappingURL=useTarget.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useUnmount.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useUnmount.js ***! \**************************************************************/ /*! exports provided: useUnmount */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useUnmount", function() { return useUnmount; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Hook which synchronously executes a callback when the component is about to unmount. * * @param callback - Function to call during unmount. */ var useUnmount = function (callback) { var unmountRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](callback); unmountRef.current = callback; react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { return function () { var _a; (_a = unmountRef.current) === null || _a === void 0 ? void 0 : _a.call(unmountRef); }; }, []); }; //# sourceMappingURL=useUnmount.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/useWarnings.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/useWarnings.js ***! \***************************************************************/ /*! exports provided: useWarnings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useWarnings", function() { return useWarnings; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _usePrevious__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./usePrevious */ "./node_modules/@fluentui/react-hooks/lib/usePrevious.js"); /* harmony import */ var _useConst__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib/useConst.js"); var warningId = 0; /** * Only in development mode, display console warnings when certain conditions are met. * Note that all warnings except `controlledUsage` will only be shown on first render * (new `controlledUsage` warnings may be shown later due to prop changes). */ function useWarnings(options) { if (true) { var name_1 = options.name, props = options.props, _a = options.other, other = _a === void 0 ? [] : _a, conditionallyRequired = options.conditionallyRequired, deprecations = options.deprecations, mutuallyExclusive = options.mutuallyExclusive, controlledUsage = options.controlledUsage; /* eslint-disable react-hooks/rules-of-hooks -- build-time conditional */ var hasWarnedRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); var componentId = Object(_useConst__WEBPACK_IMPORTED_MODULE_4__["useConst"])(function () { return "useWarnings_" + warningId++; }); var oldProps = Object(_usePrevious__WEBPACK_IMPORTED_MODULE_3__["usePrevious"])(props); /* eslint-enable react-hooks/rules-of-hooks */ // Warn synchronously (not in useEffect) on first render to make debugging easier. if (!hasWarnedRef.current) { hasWarnedRef.current = true; for (var _i = 0, other_1 = other; _i < other_1.length; _i++) { var warning = other_1[_i]; Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["warn"])(warning); } if (conditionallyRequired) { for (var _b = 0, conditionallyRequired_1 = conditionallyRequired; _b < conditionallyRequired_1.length; _b++) { var req = conditionallyRequired_1[_b]; Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["warnConditionallyRequiredProps"])(name_1, props, req.requiredProps, req.conditionalPropName, req.condition); } } deprecations && Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])(name_1, props, deprecations); mutuallyExclusive && Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["warnMutuallyExclusive"])(name_1, props, mutuallyExclusive); } // Controlled usage warnings may be displayed on either first or subsequent renders due to // prop changes. Note that it's safe to run this synchronously (not in useEffect) even in // concurrent mode because `warnControlledUsage` internally tracks which warnings have been // displayed for each component instance (so nothing will be displayed twice). controlledUsage && Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["warnControlledUsage"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, controlledUsage), { componentId: componentId, props: props, componentName: name_1, oldProps: oldProps })); } } //# sourceMappingURL=useWarnings.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib/version.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib/version.js ***! \***********************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-hooks', '8.6.18'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-portal-compat-context/lib/PortalCompatContext.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react-portal-compat-context/lib/PortalCompatContext.js ***! \***************************************************************************************/ /*! exports provided: PortalCompatContextProvider, usePortalCompat */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortalCompatContextProvider", function() { return PortalCompatContextProvider; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "usePortalCompat", function() { return usePortalCompat; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); var PortalCompatContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createContext"](undefined); var portalCompatContextDefaultValue = function () { return function () { return undefined; }; }; var PortalCompatContextProvider = PortalCompatContext.Provider; function usePortalCompat() { var _a; return (_a = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](PortalCompatContext)) !== null && _a !== void 0 ? _a : portalCompatContextDefaultValue; } //# sourceMappingURL=PortalCompatContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react-portal-compat-context/lib/index.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-portal-compat-context/lib/index.js ***! \*************************************************************************/ /*! exports provided: PortalCompatContextProvider, usePortalCompat */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _PortalCompatContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PortalCompatContext */ "./node_modules/@fluentui/react-portal-compat-context/lib/PortalCompatContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PortalCompatContextProvider", function() { return _PortalCompatContext__WEBPACK_IMPORTED_MODULE_0__["PortalCompatContextProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "usePortalCompat", function() { return _PortalCompatContext__WEBPACK_IMPORTED_MODULE_0__["usePortalCompat"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-stylesheets/lib/StylesheetContext.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react-stylesheets/lib/StylesheetContext.js ***! \***************************************************************************/ /*! exports provided: registerStyles, StylesheetContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerStyles", function() { return registerStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StylesheetContext", function() { return StylesheetContext; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); var defaultDocument = { document: 'document' }; /** * Register styles can be called with a single or multiple stylesheets. Each will be evaluated * if they've been registered already, and then passed along to `renderStyles` if they're new * to the given context. */ var registerStyles = function (sheets, context) { var styleCache = context.styleCache, target = context.target; if (!sheets || sheets.length < 1) { return; } if (!Array.isArray(sheets)) { sheets = [sheets]; } // Grab the style cache for the target document. var sheetsToRender = []; var cacheKey = target || defaultDocument; var targetStylesheets = styleCache.get(cacheKey); if (!targetStylesheets) { targetStylesheets = new Map(); styleCache.set(cacheKey, targetStylesheets); } for (var _i = 0, sheets_1 = sheets; _i < sheets_1.length; _i++) { var sheet = sheets_1[_i]; if (!targetStylesheets.has(sheet)) { sheetsToRender.push(sheet); targetStylesheets.set(sheet, true); } } if (sheetsToRender.length) { context.renderStyles(sheetsToRender, context); } }; /** * Default renderStyles implementation, which will render the give sheets to the contextual * target. */ var renderStyles = function (sheets, context) { var target = context.target; if (sheets.length && target) { var styleElement = target.createElement('style'); styleElement.textContent = sheets.join(''); target.head.appendChild(styleElement); } }; // Shared stylesheet context, providing the registration function and target document. var StylesheetContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"]({ registerStyles: registerStyles, renderStyles: renderStyles, target: typeof window === 'object' ? window.document : undefined, styleCache: new WeakMap(), }); //# sourceMappingURL=StylesheetContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react-stylesheets/lib/StylesheetProvider.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react-stylesheets/lib/StylesheetProvider.js ***! \****************************************************************************/ /*! exports provided: StylesheetProvider, StylesheetConsumer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StylesheetProvider", function() { return StylesheetProvider; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StylesheetConsumer", function() { return StylesheetConsumer; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _StylesheetContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StylesheetContext */ "./node_modules/@fluentui/react-stylesheets/lib/StylesheetContext.js"); /** * Provider for registering stylesheets in a given target document. * The `register` method can be called many times and will only register once * per unique target document. */ var StylesheetProvider = function (props) { var context = react__WEBPACK_IMPORTED_MODULE_1__["useContext"](_StylesheetContext__WEBPACK_IMPORTED_MODULE_2__["StylesheetContext"]); var mergedContext = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, context), props)); }, // Only recompute the context to pass down if the parent passes a new one. Props should not // be mutating dynamically for a provider, or may be doing so accidentally. Avoid recomputations. // eslint-disable-next-line react-hooks/exhaustive-deps [context]); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_StylesheetContext__WEBPACK_IMPORTED_MODULE_2__["StylesheetContext"].Provider, { value: mergedContext }, props.children); }; var StylesheetConsumer = _StylesheetContext__WEBPACK_IMPORTED_MODULE_2__["StylesheetContext"].Consumer; //# sourceMappingURL=StylesheetProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-stylesheets/lib/index.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react-stylesheets/lib/index.js ***! \***************************************************************/ /*! exports provided: StylesheetContext, StylesheetProvider, useStylesheet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-stylesheets/lib/version.js"); /* harmony import */ var _StylesheetContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StylesheetContext */ "./node_modules/@fluentui/react-stylesheets/lib/StylesheetContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesheetContext", function() { return _StylesheetContext__WEBPACK_IMPORTED_MODULE_1__["StylesheetContext"]; }); /* harmony import */ var _StylesheetProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StylesheetProvider */ "./node_modules/@fluentui/react-stylesheets/lib/StylesheetProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesheetProvider", function() { return _StylesheetProvider__WEBPACK_IMPORTED_MODULE_2__["StylesheetProvider"]; }); /* harmony import */ var _useStylesheet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useStylesheet */ "./node_modules/@fluentui/react-stylesheets/lib/useStylesheet.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useStylesheet", function() { return _useStylesheet__WEBPACK_IMPORTED_MODULE_3__["useStylesheet"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-stylesheets/lib/useStylesheet.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react-stylesheets/lib/useStylesheet.js ***! \***********************************************************************/ /*! exports provided: useStylesheet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useStylesheet", function() { return useStylesheet; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _StylesheetContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StylesheetContext */ "./node_modules/@fluentui/react-stylesheets/lib/StylesheetContext.js"); /** * A hook for providing a stylesheet or array of stylesheets. Can be used standalone * or with the `StylesheetProvider` component to direct styles to be registered to a * different target such as a child window or as a string in SSR scenarios. */ var useStylesheet = function (sheets) { var context = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_StylesheetContext__WEBPACK_IMPORTED_MODULE_1__["StylesheetContext"]); context.registerStyles(sheets, context); }; //# sourceMappingURL=useStylesheet.js.map /***/ }), /***/ "./node_modules/@fluentui/react-stylesheets/lib/version.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react-stylesheets/lib/version.js ***! \*****************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @uifabric/set-version */ "./node_modules/@uifabric/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-stylesheets', '0.2.8'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/ThemeContext.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/ThemeContext.js ***! \*************************************************************************/ /*! exports provided: ThemeContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeContext", function() { return ThemeContext; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); var ThemeContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"](undefined); //# sourceMappingURL=ThemeContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/ThemeProvider.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/ThemeProvider.js ***! \**************************************************************************/ /*! exports provided: ThemeProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return ThemeProvider; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useThemeProviderClasses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useThemeProviderClasses */ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderClasses.js"); /* harmony import */ var _useThemeProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useThemeProvider */ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProvider.js"); /* harmony import */ var _styleRenderers_mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./styleRenderers/mergeStylesRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/mergeStylesRenderer.js"); /* harmony import */ var _fluentui_react_stylesheets__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fluentui/react-stylesheets */ "./node_modules/@fluentui/react-stylesheets/lib/index.js"); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /** * ThemeProvider, used for providing css variables and registering stylesheets. */ var ThemeProvider = react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](function (props, ref) { var _a = Object(_useThemeProvider__WEBPACK_IMPORTED_MODULE_2__["useThemeProvider"])(props, ref, { // The renderer default value is required to be defined, so if you're recomposing // this component, be sure to do so. renderer: _styleRenderers_mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_3__["mergeStylesRenderer"], applyTo: 'element', }), render = _a.render, state = _a.state; // Register stylesheets as needed. Object(_fluentui_react_stylesheets__WEBPACK_IMPORTED_MODULE_4__["useStylesheet"])(state.theme.stylesheets); // Render styles. Object(_useThemeProviderClasses__WEBPACK_IMPORTED_MODULE_1__["useThemeProviderClasses"])(state); // Apply focus rect class on key presses. Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_5__["useFocusRects"])(state.ref); // Return the rendered content. return render(state); }); ThemeProvider.displayName = 'ThemeProvider'; //# sourceMappingURL=ThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/applyClasses.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/applyClasses.js ***! \*************************************************************************/ /*! exports provided: applyClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyClasses", function() { return applyClasses; }); /** * The `applyClasses` takes in a mutable state and a class map and, given the class map * follows the a naming convention described below, auto-applies classes to the appropriate places * in the state. * * Usage: * * ```tsx * const useButtonClasses = makeClasses(theme => { * root: { ... }, * _primary: { ... }, * _size_small: { ... } * }); * ``` * * The class naming convention is broken down as follows: * * * No underscores - a slot class name. (E.g. "root", "icon", etc) * * Prefixed with underscore - a modifier. (E.g. "_primary", "_fluid") * * Contains 2 underscores - a name/value matcher. (E.g. "_size_small") * * Modifier classnames are added to the root className when the state contains a truthy value * of the same name. For example, when the primary flag is present, the "_primary" modifier * class will be appended to the root className prop. * * Enum classnames are also added to the root className when teh state contains an enum value * which matches the value in the className. for example, when the `size` enum value is `small`, * the "_size_small" enum class will be appended to the root className prop. */ var applyClasses = function (state, classMap) { for (var _i = 0, _a = Object.keys(classMap); _i < _a.length; _i++) { var key = _a[_i]; var value = classMap[key]; var parts = key.split('_'); switch (parts.length) { case 1: if (key === 'root') { _setClass(state, value); } else if (key !== 'subComponentStyles') { // The subComponentStyles check is an unfortunate workaround to avoid breaking partners. _setClass(state, value, key); } break; case 2: var modifierName = parts[1]; // eslint-disable-next-line @typescript-eslint/no-explicit-any if (state[modifierName] || state.variant === modifierName) { _setClass(state, value); } break; case 3: var enumName = parts[1]; var enumValue = parts[2]; // eslint-disable-next-line @typescript-eslint/no-explicit-any if (state[enumName] === enumValue) { _setClass(state, value); } break; } } }; // eslint-disable-next-line @typescript-eslint/no-explicit-any function _setClass(state, className, slot) { var currentSlot = slot ? (state[slot] = state[slot] || {}) : state; if (currentSlot.className) { currentSlot.className += ' ' + className; } else { currentSlot.className = className; } } //# sourceMappingURL=applyClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/getStyleFromPropsAndOptions.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/getStyleFromPropsAndOptions.js ***! \****************************************************************************************/ /*! exports provided: getStyleFromPropsAndOptions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyleFromPropsAndOptions", function() { return getStyleFromPropsAndOptions; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _tokensToStyleObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tokensToStyleObject */ "./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js"); var getStyleFromPropsAndOptions = function (props, options, prefix) { var rootSlotStyle = {}; options.slotProps.forEach(function (definition) { var _a; var nextSlotProps = definition(props); rootSlotStyle = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rootSlotStyle), (_a = nextSlotProps.root) === null || _a === void 0 ? void 0 : _a.style); }); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.style), rootSlotStyle), Object(_tokensToStyleObject__WEBPACK_IMPORTED_MODULE_1__["tokensToStyleObject"])(props.tokens, prefix)); }; //# sourceMappingURL=getStyleFromPropsAndOptions.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/getTokens.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/getTokens.js ***! \**********************************************************************/ /*! exports provided: getTokens */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTokens", function() { return getTokens; }); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /** * Get tokens from theme object. */ function getTokens(theme, userTokens) { var fonts = theme.fonts; var palette = theme.palette, semanticColors = theme.semanticColors; var preparedTokens = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_0__["merge"])({ color: { body: { background: semanticColors.bodyBackground, contentColor: semanticColors.bodyText, }, // accent is currently only mapped for primary button to use. brand: { background: semanticColors.primaryButtonBackground, borderColor: semanticColors.primaryButtonBorder, contentColor: semanticColors.primaryButtonText, iconColor: palette.white, dividerColor: palette.white, secondaryContentColor: palette.white, hovered: { background: semanticColors.primaryButtonBackgroundHovered, contentColor: semanticColors.primaryButtonTextHovered, secondaryContentColor: palette.white, borderColor: 'var(--color-brand-borderColor)', }, pressed: { background: semanticColors.primaryButtonBackgroundPressed, contentColor: semanticColors.primaryButtonTextPressed, secondaryContentColor: semanticColors.primaryButtonTextPressed, borderColor: 'var(--color-brand-borderColor)', iconColor: 'var(--color-brand-iconColor)', }, focused: { background: 'var(--color-brand-background)', borderColor: 'var(--color-brand-borderColor)', contentColor: 'var(--color-brand-contentColor)', iconColor: 'var(--color-brand-iconColor)', secondaryContentColor: 'var(--color-brand-focused-contentColor)', }, disabled: { background: semanticColors.primaryButtonBackgroundDisabled, contentColor: semanticColors.buttonTextDisabled, dividerColor: palette.neutralTertiaryAlt, secondaryContentColor: 'var(--color-brand-disabled-contentColor)', borderColor: 'var(--color-brand-disabled-background)', iconColor: 'var(--color-brand-disabled-contentColor)', }, checked: { background: semanticColors.primaryButtonBackgroundPressed, contentColor: semanticColors.primaryButtonTextPressed, iconColor: semanticColors.primaryButtonTextPressed, }, checkedHovered: { background: semanticColors.primaryButtonBackgroundPressed, contentColor: semanticColors.primaryButtonTextPressed, iconColor: semanticColors.primaryButtonTextPressed, }, }, }, body: { fontFamily: fonts.medium.fontFamily, fontWeight: fonts.medium.fontWeight, fontSize: fonts.medium.fontSize, mozOsxFontSmoothing: fonts.medium.MozOsxFontSmoothing, webkitFontSmoothing: fonts.medium.WebkitFontSmoothing, }, // TODO: This will be moved out as a text variant. text: { variant: { caption: { fontSize: '12px', fontWeight: '400', lineHeight: '14px', }, body: { fontSize: '14px', fontWeight: '400', lineHeight: '20px', }, subHeadline: { fontSize: '16px', fontWeight: '600', lineHeight: '22px', }, headline: { fontSize: '20px', fontWeight: '600', lineHeight: '28px', }, title3: { fontSize: '24px', fontWeight: '600', lineHeight: '32px', }, title2: { fontSize: '28px', fontWeight: '600', lineHeight: '36px', }, title1: { fontSize: '32px', fontWeight: '600', lineHeight: '40px', }, largeTitle: { fontSize: '40px', fontWeight: '600', lineHeight: '52px', }, display: { fontSize: '68px', fontWeight: '600', lineHeight: '92px', }, }, }, }, userTokens); return preparedTokens; } //# sourceMappingURL=getTokens.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/index.js ***! \******************************************************************/ /*! exports provided: ThemeProvider, useThemeProviderClasses, useThemeProvider, useThemeProviderState, withThemeProvider, applyClasses, useTheme, ThemeContext, getStyleFromPropsAndOptions, tokensToStyleObject, useInlineTokens, makeVariantClasses, makeStyles, makeClasses, mergeStylesRenderer, MergeStylesProvider, StyleRendererContext, useStyleRenderer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-theme-provider/lib/version.js"); /* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/@fluentui/react-theme-provider/lib/ThemeProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return _ThemeProvider__WEBPACK_IMPORTED_MODULE_1__["ThemeProvider"]; }); /* harmony import */ var _useThemeProviderClasses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useThemeProviderClasses */ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderClasses.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useThemeProviderClasses", function() { return _useThemeProviderClasses__WEBPACK_IMPORTED_MODULE_2__["useThemeProviderClasses"]; }); /* harmony import */ var _useThemeProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useThemeProvider */ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useThemeProvider", function() { return _useThemeProvider__WEBPACK_IMPORTED_MODULE_3__["useThemeProvider"]; }); /* harmony import */ var _useThemeProviderState__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useThemeProviderState */ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderState.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useThemeProviderState", function() { return _useThemeProviderState__WEBPACK_IMPORTED_MODULE_4__["useThemeProviderState"]; }); /* harmony import */ var _withThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./withThemeProvider */ "./node_modules/@fluentui/react-theme-provider/lib/withThemeProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withThemeProvider", function() { return _withThemeProvider__WEBPACK_IMPORTED_MODULE_5__["withThemeProvider"]; }); /* harmony import */ var _applyClasses__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./applyClasses */ "./node_modules/@fluentui/react-theme-provider/lib/applyClasses.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "applyClasses", function() { return _applyClasses__WEBPACK_IMPORTED_MODULE_6__["applyClasses"]; }); /* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react-theme-provider/lib/useTheme.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useTheme", function() { return _useTheme__WEBPACK_IMPORTED_MODULE_7__["useTheme"]; }); /* harmony import */ var _ThemeContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react-theme-provider/lib/ThemeContext.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeContext", function() { return _ThemeContext__WEBPACK_IMPORTED_MODULE_8__["ThemeContext"]; }); /* harmony import */ var _getStyleFromPropsAndOptions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getStyleFromPropsAndOptions */ "./node_modules/@fluentui/react-theme-provider/lib/getStyleFromPropsAndOptions.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getStyleFromPropsAndOptions", function() { return _getStyleFromPropsAndOptions__WEBPACK_IMPORTED_MODULE_9__["getStyleFromPropsAndOptions"]; }); /* harmony import */ var _tokensToStyleObject__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tokensToStyleObject */ "./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tokensToStyleObject", function() { return _tokensToStyleObject__WEBPACK_IMPORTED_MODULE_10__["tokensToStyleObject"]; }); /* harmony import */ var _useInlineTokens__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./useInlineTokens */ "./node_modules/@fluentui/react-theme-provider/lib/useInlineTokens.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useInlineTokens", function() { return _useInlineTokens__WEBPACK_IMPORTED_MODULE_11__["useInlineTokens"]; }); /* harmony import */ var _makeVariantClasses__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./makeVariantClasses */ "./node_modules/@fluentui/react-theme-provider/lib/makeVariantClasses.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeVariantClasses", function() { return _makeVariantClasses__WEBPACK_IMPORTED_MODULE_12__["makeVariantClasses"]; }); /* harmony import */ var _makeStyles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react-theme-provider/lib/makeStyles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeStyles", function() { return _makeStyles__WEBPACK_IMPORTED_MODULE_13__["makeStyles"]; }); /* harmony import */ var _makeClasses__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./makeClasses */ "./node_modules/@fluentui/react-theme-provider/lib/makeClasses.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeClasses", function() { return _makeClasses__WEBPACK_IMPORTED_MODULE_14__["makeClasses"]; }); /* harmony import */ var _styleRenderers_mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./styleRenderers/mergeStylesRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/mergeStylesRenderer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeStylesRenderer", function() { return _styleRenderers_mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_15__["mergeStylesRenderer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeStylesProvider", function() { return _styleRenderers_mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_15__["MergeStylesProvider"]; }); /* harmony import */ var _styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./styleRenderers/useStyleRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/useStyleRenderer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StyleRendererContext", function() { return _styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_16__["StyleRendererContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useStyleRenderer", function() { return _styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_16__["useStyleRenderer"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/makeClasses.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/makeClasses.js ***! \************************************************************************/ /*! exports provided: makeClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeClasses", function() { return makeClasses; }); /* harmony import */ var _applyClasses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./applyClasses */ "./node_modules/@fluentui/react-theme-provider/lib/applyClasses.js"); /* harmony import */ var _makeStyles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react-theme-provider/lib/makeStyles.js"); /** * The `makeClasses` helper encapsulates `makeStyles`, and given a style map which follows * a specific naming convention, produces a hook function which takes in the component * draft state and auto distributes classes into the draft state. This removes a lot of * boilerplate code using `classnames` helpers to manage distributing classnames manually. * * Usage: * * ```tsx * const useButtonClasses makeClasses(theme => { * root: { ... }, * _primary: { ... }, * _size_small: { ... } * }); * ``` * * The class naming convention is broken down as follows: * * * No underscores - a slot class name. (E.g. "root", "icon", etc) * * Prefixed with underscore - a modifier. (E.g. "_primary", "_fluid") * * Contains 2 underscores - a name/value matcher. (E.g. "_size_small") * * Modifier classnames are added to the root className when the state contains a truthy value * of the same name. For example, when the primary flag is present, the "_primary" modifier * class will be appended to the root className prop. * * Enum classnames are also added to the root className when teh state contains an enum value * which matches the value in the className. for example, when the `size` enum value is `small`, * the "_size_small" enum class will be appended to the root className prop. */ var makeClasses = function (styleOrFunction) { var useStyles = Object(_makeStyles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styleOrFunction); return function (state, options) { var classes = useStyles(options); Object(_applyClasses__WEBPACK_IMPORTED_MODULE_0__["applyClasses"])(state, classes); }; }; //# sourceMappingURL=makeClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/makeStyles.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/makeStyles.js ***! \***********************************************************************/ /*! exports provided: makeStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeStyles", function() { return makeStyles; }); /* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react-theme-provider/lib/useTheme.js"); /* harmony import */ var _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib/index.js"); /* harmony import */ var _styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styleRenderers/useStyleRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/useStyleRenderer.js"); // eslint-disable-next-line @typescript-eslint/no-explicit-any var graphGet = function (graphNode, path) { for (var _i = 0, path_1 = path; _i < path_1.length; _i++) { var key = path_1[_i]; graphNode = graphNode.get(key); if (!graphNode) { return; } } return graphNode; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any var graphSet = function (graphNode, path, value) { for (var i = 0; i < path.length - 1; i++) { var key = path[i]; var current = graphNode.get(key); if (!current) { current = new Map(); graphNode.set(key, current); } graphNode = current; } graphNode.set(path[path.length - 1], value); }; /** * Registers a css object, optionally as a function of the theme. * * @param styleOrFunction - Either a css javascript object, or a function which takes in `ITheme` * and returns a css javascript object. */ function makeStyles(styleOrFunction) { // Create graph of inputs to map to output. var graph = new Map(); return function (options) { if (options === void 0) { options = {}; } var theme = options.theme, renderer = options.renderer; var win = Object(_fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__["useWindow"])(); var contextualTheme = Object(_useTheme__WEBPACK_IMPORTED_MODULE_0__["useTheme"])(); var contextualRenderer = Object(_styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_2__["useStyleRenderer"])(); theme = theme || contextualTheme || {}; renderer = (renderer || contextualRenderer); var id = renderer.getId(); var isStyleFunction = typeof styleOrFunction === 'function'; var path = isStyleFunction ? [id, win, theme] : [id, win]; var value = graphGet(graph, path); if (!value) { var styles = isStyleFunction ? styleOrFunction(theme) : styleOrFunction; value = renderer.renderStyles(styles, { targetWindow: win, rtl: !!theme.rtl }); graphSet(graph, path, value); } return value; }; } //# sourceMappingURL=makeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/makeVariantClasses.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/makeVariantClasses.js ***! \*******************************************************************************/ /*! exports provided: makeVariantClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeVariantClasses", function() { return makeVariantClasses; }); /* harmony import */ var _tokensToStyleObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tokensToStyleObject */ "./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js"); /* harmony import */ var _makeClasses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./makeClasses */ "./node_modules/@fluentui/react-theme-provider/lib/makeClasses.js"); /* eslint-disable @typescript-eslint/no-explicit-any */ /** * Calls a function with the argument, or returns the given object. * @param objOrFunc - Function or object. * @param argument - Argument to pass if a function is provided. */ var callOrReturn = function (objOrFunc, argument) { return typeof objOrFunc === 'function' ? objOrFunc(argument) : objOrFunc; }; var processVariants = function (variants, theme, name, prefix) { var result = {}; if (variants) { variants = callOrReturn(variants, theme); for (var _i = 0, _a = Object.keys(variants); _i < _a.length; _i++) { var variantName = _a[_i]; var modifierName = variantName === 'root' ? variantName : '_' + variantName; var rule = (result[modifierName] = Object(_tokensToStyleObject__WEBPACK_IMPORTED_MODULE_0__["tokensToStyleObject"])(variants[variantName], prefix)); // The display name should be tied to the unique theme object, causing the // renderer to treat scoped themes as sandboxed css scopes. if (name) { rule.displayName = "" + name + (theme.id || ''); if (variantName !== 'root') { rule.displayName += "--" + variantName; } } } } return result; }; /** * Hook factory for creating a `use*Variants` helper. Variants represent a configuration of * token values mapped to modifiers on the component. A variant can also be referenced using * a variant string. Variants can be overridden through the theme of the component. */ var makeVariantClasses = function (options) { var styles = options.styles, variants = options.variants, name = options.name, prefix = options.prefix; // This function will only be called when styles have not been evaluated for this set for // the particular theme/window/direction combo. var styleFunction = function (theme) { var _a, _b, _c; var themeVariants = name ? (_c = (_b = (_a = theme) === null || _a === void 0 ? void 0 : _a.components) === null || _b === void 0 ? void 0 : _b[name]) === null || _c === void 0 ? void 0 : _c.variants : undefined; return [ callOrReturn(styles, theme), processVariants(variants, theme, name, prefix), processVariants(themeVariants, theme, name, prefix), ]; }; return Object(_makeClasses__WEBPACK_IMPORTED_MODULE_1__["makeClasses"])(styleFunction); }; //# sourceMappingURL=makeVariantClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/renderThemeProvider.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/renderThemeProvider.js ***! \********************************************************************************/ /*! exports provided: renderThemeProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderThemeProvider", function() { return renderThemeProvider; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_react_compose_lib_next_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react-compose/lib/next/index */ "./node_modules/@fluentui/react-compose/lib/next/index.js"); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /* harmony import */ var _ThemeContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react-theme-provider/lib/ThemeContext.js"); /* harmony import */ var _styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./styleRenderers/useStyleRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/useStyleRenderer.js"); var renderThemeProvider = function (state) { var _a = Object(_fluentui_react_compose_lib_next_index__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(state), slots = _a.slots, slotProps = _a.slotProps; var theme = state.theme, customizerContext = state.customizerContext; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ThemeContext__WEBPACK_IMPORTED_MODULE_4__["ThemeContext"].Provider, { value: theme }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_styleRenderers_useStyleRenderer__WEBPACK_IMPORTED_MODULE_5__["StyleRendererContext"].Provider, { value: state.renderer }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_uifabric_utilities__WEBPACK_IMPORTED_MODULE_3__["CustomizerContext"].Provider, { value: customizerContext }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](slots.root, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, slotProps.root)))))); }; //# sourceMappingURL=renderThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/mergeStylesRenderer.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/mergeStylesRenderer.js ***! \***********************************************************************************************/ /*! exports provided: mergeStylesRenderer, MergeStylesProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStylesRenderer", function() { return mergeStylesRenderer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeStylesProvider", function() { return MergeStylesProvider; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useStyleRenderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useStyleRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/useStyleRenderer.js"); /* harmony import */ var _uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @uifabric/merge-styles */ "./node_modules/@uifabric/merge-styles/lib/index.js"); var _seed = 0; var mergeStylesRenderer = { reset: function () { // If the stylesheet reset call is made, invalidate the cache keys. _uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__["Stylesheet"].getInstance().onReset(function () { return _seed++; }); }, getId: function () { return _seed; }, renderStyles: function (styleSet, options) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return Object(_uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__["mergeCssSets"])((Array.isArray(styleSet) ? styleSet : [styleSet]), options); }, renderFontFace: function (fontFace, options) { return Object(_uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__["fontFace"])(fontFace); }, renderKeyframes: function (keyframes) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return Object(_uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__["keyframes"])(keyframes); }, }; var MergeStylesProvider = function (_a) { var children = _a.children; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_useStyleRenderer__WEBPACK_IMPORTED_MODULE_1__["StyleRendererContext"].Provider, { value: mergeStylesRenderer }, children)); }; //# sourceMappingURL=mergeStylesRenderer.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/useStyleRenderer.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/useStyleRenderer.js ***! \********************************************************************************************/ /*! exports provided: StyleRendererContext, useStyleRenderer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleRendererContext", function() { return StyleRendererContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useStyleRenderer", function() { return useStyleRenderer; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mergeStylesRenderer */ "./node_modules/@fluentui/react-theme-provider/lib/styleRenderers/mergeStylesRenderer.js"); var StyleRendererContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"](_mergeStylesRenderer__WEBPACK_IMPORTED_MODULE_1__["mergeStylesRenderer"]); var useStyleRenderer = function () { return react__WEBPACK_IMPORTED_MODULE_0__["useContext"](StyleRendererContext); }; //# sourceMappingURL=useStyleRenderer.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js ***! \********************************************************************************/ /*! exports provided: tokensToStyleObject */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tokensToStyleObject", function() { return tokensToStyleObject; }); var tokensToStyleObject = function (tokens, prefix, style) { if (style === void 0) { style = {}; } var hasCheckedObject = false; if (tokens) { for (var _i = 0, _a = Object.keys(tokens); _i < _a.length; _i++) { var name_1 = _a[_i]; // On the first token property, check if this object has already been tokenized. if (!hasCheckedObject) { if (name_1.indexOf('--') === 0) { return tokens; } hasCheckedObject = true; } var varName = prefix ? "" + prefix + (name_1 === 'default' ? '' : '-' + name_1) : "--" + name_1; var varValue = tokens[name_1]; if (varValue && typeof varValue === 'object') { tokensToStyleObject(varValue, varName, style); } else { // eslint-disable-next-line @typescript-eslint/no-explicit-any style[varName] = varValue; } } } return style; }; //# sourceMappingURL=tokensToStyleObject.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/useInlineTokens.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/useInlineTokens.js ***! \****************************************************************************/ /*! exports provided: useInlineTokens */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useInlineTokens", function() { return useInlineTokens; }); /* harmony import */ var _tokensToStyleObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tokensToStyleObject */ "./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js"); /** * Hook which given draftState, will ensure that tokens are spit out to inline styles. * @param draftState - state to read and manipulate. Expected to have `tokens` prop, will * transform into inline * @param prefix - prefix to prepend to variables (e.g. "--button") */ var useInlineTokens = function (draftState, prefix) { var tokens = draftState.tokens, style = draftState.style; if (tokens) { draftState.style = style || {}; Object(_tokensToStyleObject__WEBPACK_IMPORTED_MODULE_0__["tokensToStyleObject"])(tokens, prefix, draftState.style); } }; //# sourceMappingURL=useInlineTokens.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/useTheme.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/useTheme.js ***! \*********************************************************************/ /*! exports provided: useTheme */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTheme", function() { return useTheme; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /* harmony import */ var _fluentui_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib/index.js"); /* harmony import */ var _ThemeContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react-theme-provider/lib/ThemeContext.js"); /** * Get theme from CustomizerContext or Customizations singleton. */ function useCompatTheme() { return Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["useCustomizationSettings"])(['theme']).theme; } /** * React hook for programmatically accessing the theme. */ var useTheme = function () { var theme = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_ThemeContext__WEBPACK_IMPORTED_MODULE_3__["ThemeContext"]); var legacyTheme = useCompatTheme(); return theme || legacyTheme || Object(_fluentui_theme__WEBPACK_IMPORTED_MODULE_2__["createTheme"])({}); }; //# sourceMappingURL=useTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProvider.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/useThemeProvider.js ***! \*****************************************************************************/ /*! exports provided: useThemeProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useThemeProvider", function() { return useThemeProvider; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _renderThemeProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./renderThemeProvider */ "./node_modules/@fluentui/react-theme-provider/lib/renderThemeProvider.js"); /* harmony import */ var _fluentui_react_compose_lib_next_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react-compose/lib/next/index */ "./node_modules/@fluentui/react-compose/lib/next/index.js"); /* harmony import */ var _useThemeProviderState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useThemeProviderState */ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderState.js"); /* harmony import */ var _uifabric_react_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @uifabric/react-hooks */ "./node_modules/@uifabric/react-hooks/lib/index.js"); var mergeProps = Object(_fluentui_react_compose_lib_next_index__WEBPACK_IMPORTED_MODULE_2__["makeMergeProps"])(); /** * Returns the ThemeProvider render function and calculated state, given user input, ref, and * a set of default prop values. */ var useThemeProvider = function (props, ref, defaultProps) { var rootRef = Object(_uifabric_react_hooks__WEBPACK_IMPORTED_MODULE_4__["useMergedRefs"])(ref, react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null)); var state = mergeProps({ ref: rootRef, as: 'div', }, defaultProps, props); // Apply changes to state. Object(_useThemeProviderState__WEBPACK_IMPORTED_MODULE_3__["useThemeProviderState"])(state); return { state: state, render: _renderThemeProvider__WEBPACK_IMPORTED_MODULE_1__["renderThemeProvider"], }; }; //# sourceMappingURL=useThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderClasses.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderClasses.js ***! \************************************************************************************/ /*! exports provided: useThemeProviderClasses */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useThemeProviderClasses", function() { return useThemeProviderClasses; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /* harmony import */ var _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib/index.js"); /* harmony import */ var _makeStyles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react-theme-provider/lib/makeStyles.js"); /* harmony import */ var _tokensToStyleObject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tokensToStyleObject */ "./node_modules/@fluentui/react-theme-provider/lib/tokensToStyleObject.js"); var useThemeProviderStyles = Object(_makeStyles__WEBPACK_IMPORTED_MODULE_3__["makeStyles"])(function (theme) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; var tokens = theme.tokens; var tokenStyles = Object(_tokensToStyleObject__WEBPACK_IMPORTED_MODULE_4__["tokensToStyleObject"])(tokens); return { root: tokenStyles, body: [ { color: (_c = (_b = (_a = tokens) === null || _a === void 0 ? void 0 : _a.color) === null || _b === void 0 ? void 0 : _b.body) === null || _c === void 0 ? void 0 : _c.contentColor, background: (_f = (_e = (_d = tokens) === null || _d === void 0 ? void 0 : _d.color) === null || _e === void 0 ? void 0 : _e.body) === null || _f === void 0 ? void 0 : _f.background, fontFamily: (_h = (_g = tokens) === null || _g === void 0 ? void 0 : _g.body) === null || _h === void 0 ? void 0 : _h.fontFamily, fontWeight: (_k = (_j = tokens) === null || _j === void 0 ? void 0 : _j.body) === null || _k === void 0 ? void 0 : _k.fontWeight, fontSize: (_m = (_l = tokens) === null || _l === void 0 ? void 0 : _l.body) === null || _m === void 0 ? void 0 : _m.fontSize, MozOsxFontSmoothing: (_p = (_o = tokens) === null || _o === void 0 ? void 0 : _o.body) === null || _p === void 0 ? void 0 : _p.mozOsxFontSmoothing, WebkitFontSmoothing: (_r = (_q = tokens) === null || _q === void 0 ? void 0 : _q.body) === null || _r === void 0 ? void 0 : _r.webkitFontSmoothing, }, ], }; }); /** * Hook to add class to body element. */ function useApplyClassToBody(state, classesToApply) { var _a; var applyTo = state.applyTo; var applyToBody = applyTo === 'body'; var body = (_a = Object(_fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_2__["useDocument"])()) === null || _a === void 0 ? void 0 : _a.body; react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { if (!applyToBody || !body) { return; } for (var _i = 0, classesToApply_1 = classesToApply; _i < classesToApply_1.length; _i++) { var classToApply = classesToApply_1[_i]; if (classToApply) { body.classList.add(classToApply); } } return function () { if (!applyToBody || !body) { return; } for (var _i = 0, classesToApply_2 = classesToApply; _i < classesToApply_2.length; _i++) { var classToApply = classesToApply_2[_i]; if (classToApply) { body.classList.remove(classToApply); } } }; }, [applyToBody, body, classesToApply]); } function useThemeProviderClasses(state) { var classes = useThemeProviderStyles(state); var className = state.className, applyTo = state.applyTo; useApplyClassToBody(state, [classes.root, classes.body]); state.className = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__["css"])(className, classes.root, applyTo === 'element' && classes.body); } //# sourceMappingURL=useThemeProviderClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderState.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/useThemeProviderState.js ***! \**********************************************************************************/ /*! exports provided: useThemeProviderState */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useThemeProviderState", function() { return useThemeProviderState; }); /* harmony import */ var _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react-theme-provider/lib/useTheme.js"); /* harmony import */ var _uifabric_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @uifabric/utilities */ "./node_modules/@uifabric/utilities/lib/index.js"); /* harmony import */ var _getTokens__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getTokens */ "./node_modules/@fluentui/react-theme-provider/lib/getTokens.js"); var themeToIdMap = new Map(); var getThemeId = function () { var themes = []; for (var _i = 0; _i < arguments.length; _i++) { themes[_i] = arguments[_i]; } var ids = []; for (var _a = 0, themes_1 = themes; _a < themes_1.length; _a++) { var theme = themes_1[_a]; if (theme) { var id = theme.id || themeToIdMap.get(theme); if (!id) { id = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_3__["getId"])(''); themeToIdMap.set(theme, id); } ids.push(id); } } return ids.join('-'); }; var useThemeProviderState = function (draftState) { var userTheme = draftState.theme; // Pull contextual theme. var parentTheme = Object(_useTheme__WEBPACK_IMPORTED_MODULE_2__["useTheme"])(); // Update the incoming theme with a memoized version of the merged theme. var theme = (draftState.theme = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { var _a; var mergedTheme = Object(_fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["mergeThemes"])(parentTheme, userTheme); mergedTheme.tokens = Object(_getTokens__WEBPACK_IMPORTED_MODULE_4__["getTokens"])(mergedTheme, (_a = userTheme) === null || _a === void 0 ? void 0 : _a.tokens); mergedTheme.id = getThemeId(parentTheme, userTheme); return mergedTheme; }, [parentTheme, userTheme])); draftState.customizerContext = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return ({ customizations: { inCustomizerContext: true, settings: { theme: theme }, scopedSettings: theme.components || {}, }, }); }, [theme]); if (draftState.theme.rtl !== parentTheme.rtl) { draftState.dir = draftState.theme.rtl ? 'rtl' : 'ltr'; } }; //# sourceMappingURL=useThemeProviderState.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/version.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/version.js ***! \********************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @uifabric/set-version */ "./node_modules/@uifabric/set-version/lib/index.js"); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-theme-provider', '0.19.15'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-theme-provider/lib/withThemeProvider.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react-theme-provider/lib/withThemeProvider.js ***! \******************************************************************************/ /*! exports provided: withThemeProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withThemeProvider", function() { return withThemeProvider; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/@fluentui/react-theme-provider/lib/ThemeProvider.js"); var withThemeProvider = function (Component) { return react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (props, ref) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ThemeProvider__WEBPACK_IMPORTED_MODULE_2__["ThemeProvider"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Component, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { ref: ref })))); }); }; //# sourceMappingURL=withThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-window-provider/lib/WindowProvider.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react-window-provider/lib/WindowProvider.js ***! \****************************************************************************/ /*! exports provided: WindowContext, useWindow, useDocument, WindowProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WindowContext", function() { return WindowContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useWindow", function() { return useWindow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useDocument", function() { return useDocument; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WindowProvider", function() { return WindowProvider; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /** * Context for providing the window. */ var WindowContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"]({ window: typeof window === 'object' ? window : undefined, }); /** * Hook to access the window object. This can be overridden contextually using the `WindowProvider`. */ var useWindow = function () { return react__WEBPACK_IMPORTED_MODULE_0__["useContext"](WindowContext).window; }; /** * Hook to access the document object. This can be overridden contextually using the `WindowProvider`. */ var useDocument = function () { var _a; return (_a = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](WindowContext).window) === null || _a === void 0 ? void 0 : _a.document; }; /** * Component to provide the window object contextually. This is useful when rendering content to an element * contained within a child window or iframe element, where event handlers and styling must be projected * to an alternative window or document. */ var WindowProvider = function (props) { return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WindowContext.Provider, { value: props }, props.children); }; //# sourceMappingURL=WindowProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-window-provider/lib/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/react-window-provider/lib/index.js ***! \*******************************************************************/ /*! exports provided: WindowContext, useWindow, useDocument, WindowProvider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _WindowProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./WindowProvider */ "./node_modules/@fluentui/react-window-provider/lib/WindowProvider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WindowContext", function() { return _WindowProvider__WEBPACK_IMPORTED_MODULE_0__["WindowContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useWindow", function() { return _WindowProvider__WEBPACK_IMPORTED_MODULE_0__["useWindow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useDocument", function() { return _WindowProvider__WEBPACK_IMPORTED_MODULE_0__["useDocument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WindowProvider", function() { return _WindowProvider__WEBPACK_IMPORTED_MODULE_0__["WindowProvider"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ActivityItem.js": /*!**********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ActivityItem.js ***! \**********************************************************/ /*! exports provided: getActivityItemStyles, getActivityItemClassNames, ActivityItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ActivityItem_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ActivityItem/index */ "./node_modules/@fluentui/react/lib/components/ActivityItem/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getActivityItemStyles", function() { return _components_ActivityItem_index__WEBPACK_IMPORTED_MODULE_0__["getActivityItemStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getActivityItemClassNames", function() { return _components_ActivityItem_index__WEBPACK_IMPORTED_MODULE_0__["getActivityItemClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityItem", function() { return _components_ActivityItem_index__WEBPACK_IMPORTED_MODULE_0__["ActivityItem"]; }); //# sourceMappingURL=ActivityItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Announced.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Announced.js ***! \*******************************************************/ /*! exports provided: Announced, AnnouncedBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Announced_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Announced/index */ "./node_modules/@fluentui/react/lib/components/Announced/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Announced", function() { return _components_Announced_index__WEBPACK_IMPORTED_MODULE_0__["Announced"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnnouncedBase", function() { return _components_Announced_index__WEBPACK_IMPORTED_MODULE_0__["AnnouncedBase"]; }); //# sourceMappingURL=Announced.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Autofill.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Autofill.js ***! \******************************************************/ /*! exports provided: Autofill */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Autofill_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Autofill/index */ "./node_modules/@fluentui/react/lib/components/Autofill/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Autofill", function() { return _components_Autofill_index__WEBPACK_IMPORTED_MODULE_0__["Autofill"]; }); //# sourceMappingURL=Autofill.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Breadcrumb.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Breadcrumb.js ***! \********************************************************/ /*! exports provided: Breadcrumb, BreadcrumbBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Breadcrumb_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Breadcrumb/index */ "./node_modules/@fluentui/react/lib/components/Breadcrumb/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _components_Breadcrumb_index__WEBPACK_IMPORTED_MODULE_0__["Breadcrumb"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbBase", function() { return _components_Breadcrumb_index__WEBPACK_IMPORTED_MODULE_0__["BreadcrumbBase"]; }); //# sourceMappingURL=Breadcrumb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Button.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Button.js ***! \****************************************************/ /*! exports provided: BaseButton, ElementType, ButtonType, Button, ActionButton, CommandBarButton, CommandButton, CompoundButton, DefaultButton, MessageBarButton, PrimaryButton, IconButton, getSplitButtonClassNames, ButtonGlobalClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Button_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Button/index */ "./node_modules/@fluentui/react/lib/components/Button/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["BaseButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElementType", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["ElementType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonType", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["ButtonType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["Button"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["ActionButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandBarButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["CommandBarButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["CommandButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["CompoundButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["DefaultButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBarButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["MessageBarButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PrimaryButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["PrimaryButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconButton", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["IconButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSplitButtonClassNames", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["getSplitButtonClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGlobalClassNames", function() { return _components_Button_index__WEBPACK_IMPORTED_MODULE_0__["ButtonGlobalClassNames"]; }); //# sourceMappingURL=Button.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ButtonGrid.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ButtonGrid.js ***! \********************************************************/ /*! exports provided: ButtonGrid, ButtonGridCell */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_ButtonGrid_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/ButtonGrid/index */ "./node_modules/@fluentui/react/lib/utilities/ButtonGrid/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGrid", function() { return _utilities_ButtonGrid_index__WEBPACK_IMPORTED_MODULE_0__["ButtonGrid"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGridCell", function() { return _utilities_ButtonGrid_index__WEBPACK_IMPORTED_MODULE_0__["ButtonGridCell"]; }); //# sourceMappingURL=ButtonGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Calendar.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Calendar.js ***! \******************************************************/ /*! exports provided: Calendar, AnimationDirection, defaultCalendarStrings, defaultDayPickerStrings, defaultCalendarNavigationIcons, DayOfWeek, DateRangeType, FirstWeekOfYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Calendar/index */ "./node_modules/@fluentui/react/lib/components/Calendar/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Calendar", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["Calendar"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationDirection", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["AnimationDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultCalendarStrings", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["defaultCalendarStrings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDayPickerStrings", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["defaultDayPickerStrings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultCalendarNavigationIcons", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["defaultCalendarNavigationIcons"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DayOfWeek", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateRangeType", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FirstWeekOfYear", function() { return _components_Calendar_index__WEBPACK_IMPORTED_MODULE_0__["FirstWeekOfYear"]; }); //# sourceMappingURL=Calendar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Callout.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Callout.js ***! \*****************************************************/ /*! exports provided: Callout, CalloutContent, CalloutContentBase, FocusTrapCallout, DirectionalHint */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Callout_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Callout/index */ "./node_modules/@fluentui/react/lib/components/Callout/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Callout", function() { return _components_Callout_index__WEBPACK_IMPORTED_MODULE_0__["Callout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CalloutContent", function() { return _components_Callout_index__WEBPACK_IMPORTED_MODULE_0__["CalloutContent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CalloutContentBase", function() { return _components_Callout_index__WEBPACK_IMPORTED_MODULE_0__["CalloutContentBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusTrapCallout", function() { return _components_Callout_index__WEBPACK_IMPORTED_MODULE_0__["FocusTrapCallout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectionalHint", function() { return _components_Callout_index__WEBPACK_IMPORTED_MODULE_0__["DirectionalHint"]; }); //# sourceMappingURL=Callout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Check.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Check.js ***! \***************************************************/ /*! exports provided: Check, CheckBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Check_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Check/index */ "./node_modules/@fluentui/react/lib/components/Check/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Check", function() { return _components_Check_index__WEBPACK_IMPORTED_MODULE_0__["Check"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CheckBase", function() { return _components_Check_index__WEBPACK_IMPORTED_MODULE_0__["CheckBase"]; }); //# sourceMappingURL=Check.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Checkbox.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Checkbox.js ***! \******************************************************/ /*! exports provided: Checkbox, CheckboxBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Checkbox_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Checkbox/index */ "./node_modules/@fluentui/react/lib/components/Checkbox/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _components_Checkbox_index__WEBPACK_IMPORTED_MODULE_0__["Checkbox"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CheckboxBase", function() { return _components_Checkbox_index__WEBPACK_IMPORTED_MODULE_0__["CheckboxBase"]; }); //# sourceMappingURL=Checkbox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ChoiceGroup.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ChoiceGroup.js ***! \*********************************************************/ /*! exports provided: ChoiceGroup, ChoiceGroupBase, ChoiceGroupOption */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ChoiceGroup_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ChoiceGroup/index */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroup", function() { return _components_ChoiceGroup_index__WEBPACK_IMPORTED_MODULE_0__["ChoiceGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupBase", function() { return _components_ChoiceGroup_index__WEBPACK_IMPORTED_MODULE_0__["ChoiceGroupBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupOption", function() { return _components_ChoiceGroup_index__WEBPACK_IMPORTED_MODULE_0__["ChoiceGroupOption"]; }); //# sourceMappingURL=ChoiceGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Coachmark.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Coachmark.js ***! \*******************************************************/ /*! exports provided: Coachmark, COACHMARK_ATTRIBUTE_NAME, CoachmarkBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Coachmark_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Coachmark/index */ "./node_modules/@fluentui/react/lib/components/Coachmark/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Coachmark", function() { return _components_Coachmark_index__WEBPACK_IMPORTED_MODULE_0__["Coachmark"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "COACHMARK_ATTRIBUTE_NAME", function() { return _components_Coachmark_index__WEBPACK_IMPORTED_MODULE_0__["COACHMARK_ATTRIBUTE_NAME"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoachmarkBase", function() { return _components_Coachmark_index__WEBPACK_IMPORTED_MODULE_0__["CoachmarkBase"]; }); //# sourceMappingURL=Coachmark.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Color.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Color.js ***! \***************************************************/ /*! exports provided: MAX_COLOR_SATURATION, MAX_COLOR_HUE, MAX_COLOR_VALUE, MAX_COLOR_RGB, MAX_COLOR_RGBA, MAX_COLOR_ALPHA, MIN_HEX_LENGTH, MAX_HEX_LENGTH, MIN_RGBA_LENGTH, MAX_RGBA_LENGTH, HEX_REGEX, RGBA_REGEX, cssColor, rgb2hex, clamp, hsl2rgb, hsl2hsv, hsv2rgb, hsv2hex, rgb2hsv, hsv2hsl, getColorFromString, getColorFromRGBA, getColorFromHSV, getFullColorString, updateSV, updateH, updateRGB, updateA, correctRGB, correctHSV, correctHex, Shade, isValidShade, isDark, getShade, getBackgroundShade, getContrastRatio, updateT */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/color/index */ "./node_modules/@fluentui/react/lib/utilities/color/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_COLOR_SATURATION", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_COLOR_SATURATION"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_COLOR_HUE", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_COLOR_HUE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_COLOR_VALUE", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_COLOR_VALUE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_COLOR_RGB", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_COLOR_RGB"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_COLOR_RGBA", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_COLOR_RGBA"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_COLOR_ALPHA", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_COLOR_ALPHA"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MIN_HEX_LENGTH", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MIN_HEX_LENGTH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_HEX_LENGTH", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_HEX_LENGTH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MIN_RGBA_LENGTH", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MIN_RGBA_LENGTH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_RGBA_LENGTH", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["MAX_RGBA_LENGTH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HEX_REGEX", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["HEX_REGEX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RGBA_REGEX", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["RGBA_REGEX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cssColor", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["cssColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb2hex", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["rgb2hex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clamp", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["clamp"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl2rgb", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["hsl2rgb"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl2hsv", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["hsl2hsv"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsv2rgb", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["hsv2rgb"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsv2hex", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["hsv2hex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb2hsv", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["rgb2hsv"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsv2hsl", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["hsv2hsl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getColorFromString", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getColorFromString"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getColorFromRGBA", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getColorFromRGBA"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getColorFromHSV", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getColorFromHSV"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFullColorString", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getFullColorString"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateSV", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["updateSV"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateH", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["updateH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateRGB", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["updateRGB"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateA", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["updateA"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "correctRGB", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["correctRGB"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "correctHSV", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["correctHSV"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "correctHex", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["correctHex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shade", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["Shade"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidShade", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["isValidShade"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDark", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["isDark"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getShade", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getShade"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBackgroundShade", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getBackgroundShade"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getContrastRatio", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["getContrastRatio"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateT", function() { return _utilities_color_index__WEBPACK_IMPORTED_MODULE_0__["updateT"]; }); //# sourceMappingURL=Color.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ColorPicker.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ColorPicker.js ***! \*********************************************************/ /*! exports provided: ColorPicker, ColorPickerBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ColorPicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ColorPicker/index */ "./node_modules/@fluentui/react/lib/components/ColorPicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return _components_ColorPicker_index__WEBPACK_IMPORTED_MODULE_0__["ColorPicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPickerBase", function() { return _components_ColorPicker_index__WEBPACK_IMPORTED_MODULE_0__["ColorPickerBase"]; }); //# sourceMappingURL=ColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ComboBox.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ComboBox.js ***! \******************************************************/ /*! exports provided: ComboBox, VirtualizedComboBox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ComboBox_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ComboBox/index */ "./node_modules/@fluentui/react/lib/components/ComboBox/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComboBox", function() { return _components_ComboBox_index__WEBPACK_IMPORTED_MODULE_0__["ComboBox"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VirtualizedComboBox", function() { return _components_ComboBox_index__WEBPACK_IMPORTED_MODULE_0__["VirtualizedComboBox"]; }); //# sourceMappingURL=ComboBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/CommandBar.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/CommandBar.js ***! \********************************************************/ /*! exports provided: getCommandBarStyles, getCommandButtonStyles, CommandBar, CommandBarBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_CommandBar_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/CommandBar/index */ "./node_modules/@fluentui/react/lib/components/CommandBar/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCommandBarStyles", function() { return _components_CommandBar_index__WEBPACK_IMPORTED_MODULE_0__["getCommandBarStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCommandButtonStyles", function() { return _components_CommandBar_index__WEBPACK_IMPORTED_MODULE_0__["getCommandButtonStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandBar", function() { return _components_CommandBar_index__WEBPACK_IMPORTED_MODULE_0__["CommandBar"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandBarBase", function() { return _components_CommandBar_index__WEBPACK_IMPORTED_MODULE_0__["CommandBarBase"]; }); //# sourceMappingURL=CommandBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ContextualMenu.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ContextualMenu.js ***! \************************************************************/ /*! exports provided: ContextualMenu, getSubmenuItems, canAnyMenuItemsCheck, ContextualMenuBase, DirectionalHint, ContextualMenuItemType, ContextualMenuItem, ContextualMenuItemBase, getMenuItemStyles, getContextualMenuItemClassNames, getContextualMenuItemStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ContextualMenu/index */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenu", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["ContextualMenu"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSubmenuItems", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["getSubmenuItems"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "canAnyMenuItemsCheck", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["canAnyMenuItemsCheck"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuBase", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["ContextualMenuBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectionalHint", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["DirectionalHint"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemType", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["ContextualMenuItemType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItem", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["ContextualMenuItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemBase", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["ContextualMenuItemBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMenuItemStyles", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["getMenuItemStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getContextualMenuItemClassNames", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["getContextualMenuItemClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getContextualMenuItemStyles", function() { return _components_ContextualMenu_index__WEBPACK_IMPORTED_MODULE_0__["getContextualMenuItemStyles"]; }); //# sourceMappingURL=ContextualMenu.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/DatePicker.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/DatePicker.js ***! \********************************************************/ /*! exports provided: DatePicker, DatePickerBase, AnimationDirection, defaultDatePickerStrings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_DatePicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DatePicker/index */ "./node_modules/@fluentui/react/lib/components/DatePicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _components_DatePicker_index__WEBPACK_IMPORTED_MODULE_0__["DatePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePickerBase", function() { return _components_DatePicker_index__WEBPACK_IMPORTED_MODULE_0__["DatePickerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationDirection", function() { return _components_DatePicker_index__WEBPACK_IMPORTED_MODULE_0__["AnimationDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDatePickerStrings", function() { return _components_DatePicker_index__WEBPACK_IMPORTED_MODULE_0__["defaultDatePickerStrings"]; }); //# sourceMappingURL=DatePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/DateTimeUtilities.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/DateTimeUtilities.js ***! \***************************************************************/ /*! exports provided: addDays, addMonths, addWeeks, addYears, compareDatePart, compareDates, getDatePartHashValue, getDateRangeArray, getEndDateOfWeek, getMonthEnd, getMonthStart, getStartDateOfWeek, getWeekNumber, getWeekNumbersInMonth, getYearEnd, getYearStart, isInDateRangeArray, setMonth, DAYS_IN_WEEK, DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addDays", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["addDays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addMonths", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["addMonths"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addWeeks", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["addWeeks"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addYears", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["addYears"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "compareDatePart", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["compareDatePart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "compareDates", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["compareDates"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDatePartHashValue", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getDatePartHashValue"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDateRangeArray", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getDateRangeArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getEndDateOfWeek", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getEndDateOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMonthEnd", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getMonthEnd"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMonthStart", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getMonthStart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getStartDateOfWeek", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getStartDateOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getWeekNumber", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getWeekNumber"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getWeekNumbersInMonth", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getWeekNumbersInMonth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getYearEnd", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getYearEnd"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getYearStart", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["getYearStart"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isInDateRangeArray", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["isInDateRangeArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setMonth", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["setMonth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DAYS_IN_WEEK", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["DAYS_IN_WEEK"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateRangeType", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["DateRangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DayOfWeek", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["DayOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FirstWeekOfYear", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["FirstWeekOfYear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MonthOfYear", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["MonthOfYear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeConstants", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["TimeConstants"]; }); // NOTE: This is not a full re-export because date-time-utilities includes some additional stuff // which is exported elsewhere, causes conflicts, or isn't needed. //# sourceMappingURL=DateTimeUtilities.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/DetailsList.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/DetailsList.js ***! \*********************************************************/ /*! exports provided: SELECTION_CHANGE, SelectionDirection, SelectionMode, Selection, SelectionZone, CollapseAllVisibility, DetailsHeader, DetailsHeaderBase, HEADER_HEIGHT, getCellStyles, getDetailsHeaderStyles, SelectAllVisibility, DetailsList, DetailsListBase, buildColumns, getDetailsListStyles, ColumnActionsMode, ConstrainMode, ColumnDragEndLocation, DetailsListLayoutMode, CheckboxVisibility, DetailsRow, DetailsRowBase, DetailsRowGlobalClassNames, DEFAULT_CELL_STYLE_PROPS, DEFAULT_ROW_HEIGHTS, getDetailsRowStyles, DetailsRowCheck, CHECK_CELL_WIDTH, getDetailsRowCheckStyles, DetailsRowFields, DetailsColumn, DetailsColumnBase, getDetailsColumnStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DetailsList/index */ "./node_modules/@fluentui/react/lib/components/DetailsList/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SELECTION_CHANGE", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["SELECTION_CHANGE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionDirection", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["SelectionDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionMode", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["SelectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionZone", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["SelectionZone"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CollapseAllVisibility", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["CollapseAllVisibility"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsHeader", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsHeader"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsHeaderBase", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsHeaderBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HEADER_HEIGHT", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["HEADER_HEIGHT"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCellStyles", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["getCellStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsHeaderStyles", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["getDetailsHeaderStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectAllVisibility", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["SelectAllVisibility"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsList", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsListBase", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsListBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildColumns", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["buildColumns"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsListStyles", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["getDetailsListStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnActionsMode", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["ColumnActionsMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConstrainMode", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["ConstrainMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnDragEndLocation", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["ColumnDragEndLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsListLayoutMode", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsListLayoutMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CheckboxVisibility", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["CheckboxVisibility"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRow", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsRow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowBase", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsRowBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowGlobalClassNames", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsRowGlobalClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CELL_STYLE_PROPS", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CELL_STYLE_PROPS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_ROW_HEIGHTS", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_ROW_HEIGHTS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsRowStyles", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["getDetailsRowStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowCheck", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsRowCheck"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CHECK_CELL_WIDTH", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["CHECK_CELL_WIDTH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsRowCheckStyles", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["getDetailsRowCheckStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowFields", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsRowFields"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsColumn", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsColumn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsColumnBase", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["DetailsColumnBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsColumnStyles", function() { return _components_DetailsList_index__WEBPACK_IMPORTED_MODULE_0__["getDetailsColumnStyles"]; }); //# sourceMappingURL=DetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Dialog.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Dialog.js ***! \****************************************************/ /*! exports provided: Dialog, DialogBase, DialogContent, DialogContentBase, DialogFooter, DialogFooterBase, DialogType, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Dialog/index */ "./node_modules/@fluentui/react/lib/components/Dialog/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dialog", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["Dialog"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogBase", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["DialogBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogContent", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["DialogContent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogContentBase", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["DialogContentBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogFooter", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["DialogFooter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogFooterBase", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["DialogFooterBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogType", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["DialogType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _components_Dialog_index__WEBPACK_IMPORTED_MODULE_0__["Dialog"]; }); //# sourceMappingURL=Dialog.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Divider.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Divider.js ***! \*****************************************************/ /*! exports provided: VerticalDivider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Divider_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Divider/index */ "./node_modules/@fluentui/react/lib/components/Divider/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalDivider", function() { return _components_Divider_index__WEBPACK_IMPORTED_MODULE_0__["VerticalDivider"]; }); //# sourceMappingURL=Divider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/DocumentCard.js": /*!**********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/DocumentCard.js ***! \**********************************************************/ /*! exports provided: DocumentCard, DocumentCardType, DocumentCardActions, DocumentCardActivity, DocumentCardDetails, DocumentCardLocation, DocumentCardPreview, DocumentCardImage, DocumentCardTitle, DocumentCardLogo, DocumentCardStatus */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DocumentCard/index */ "./node_modules/@fluentui/react/lib/components/DocumentCard/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCard", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardType", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActions", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardActions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActivity", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardActivity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardDetails", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardDetails"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLocation", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardPreview", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardPreview"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardImage", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardImage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardTitle", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardTitle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLogo", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardLogo"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardStatus", function() { return _components_DocumentCard_index__WEBPACK_IMPORTED_MODULE_0__["DocumentCardStatus"]; }); //# sourceMappingURL=DocumentCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/DragDrop.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/DragDrop.js ***! \******************************************************/ /*! exports provided: DragDropHelper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_dragdrop_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/dragdrop/index */ "./node_modules/@fluentui/react/lib/utilities/dragdrop/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DragDropHelper", function() { return _utilities_dragdrop_index__WEBPACK_IMPORTED_MODULE_0__["DragDropHelper"]; }); //# sourceMappingURL=DragDrop.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Dropdown.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Dropdown.js ***! \******************************************************/ /*! exports provided: Dropdown, DropdownBase, DropdownMenuItemType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Dropdown_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Dropdown/index */ "./node_modules/@fluentui/react/lib/components/Dropdown/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _components_Dropdown_index__WEBPACK_IMPORTED_MODULE_0__["Dropdown"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownBase", function() { return _components_Dropdown_index__WEBPACK_IMPORTED_MODULE_0__["DropdownBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMenuItemType", function() { return _components_Dropdown_index__WEBPACK_IMPORTED_MODULE_0__["DropdownMenuItemType"]; }); //# sourceMappingURL=Dropdown.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ExtendedPicker.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ExtendedPicker.js ***! \************************************************************/ /*! exports provided: BaseExtendedPicker, BaseExtendedPeoplePicker, ExtendedPeoplePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ExtendedPicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ExtendedPicker/index */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseExtendedPicker", function() { return _components_ExtendedPicker_index__WEBPACK_IMPORTED_MODULE_0__["BaseExtendedPicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseExtendedPeoplePicker", function() { return _components_ExtendedPicker_index__WEBPACK_IMPORTED_MODULE_0__["BaseExtendedPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedPeoplePicker", function() { return _components_ExtendedPicker_index__WEBPACK_IMPORTED_MODULE_0__["ExtendedPeoplePicker"]; }); //# sourceMappingURL=ExtendedPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Fabric.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Fabric.js ***! \****************************************************/ /*! exports provided: Fabric, FabricBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Fabric_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Fabric/index */ "./node_modules/@fluentui/react/lib/components/Fabric/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Fabric", function() { return _components_Fabric_index__WEBPACK_IMPORTED_MODULE_0__["Fabric"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FabricBase", function() { return _components_Fabric_index__WEBPACK_IMPORTED_MODULE_0__["FabricBase"]; }); //# sourceMappingURL=Fabric.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Facepile.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Facepile.js ***! \******************************************************/ /*! exports provided: OverflowButtonType, FacepileBase, Facepile */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Facepile_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Facepile/index */ "./node_modules/@fluentui/react/lib/components/Facepile/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverflowButtonType", function() { return _components_Facepile_index__WEBPACK_IMPORTED_MODULE_0__["OverflowButtonType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FacepileBase", function() { return _components_Facepile_index__WEBPACK_IMPORTED_MODULE_0__["FacepileBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Facepile", function() { return _components_Facepile_index__WEBPACK_IMPORTED_MODULE_0__["Facepile"]; }); //# sourceMappingURL=Facepile.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/FloatingPicker.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/FloatingPicker.js ***! \************************************************************/ /*! exports provided: BaseFloatingPicker, BaseFloatingPeoplePicker, FloatingPeoplePicker, createItem, SuggestionsStore, SuggestionItemType, SuggestionsHeaderFooterItem, SuggestionsControl, SuggestionsCore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/FloatingPicker/index */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseFloatingPicker", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["BaseFloatingPicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseFloatingPeoplePicker", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["BaseFloatingPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FloatingPeoplePicker", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["FloatingPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createItem", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["createItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsStore", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionsStore"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionItemType", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionItemType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsHeaderFooterItem", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionsHeaderFooterItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsControl", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionsControl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsCore", function() { return _components_FloatingPicker_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionsCore"]; }); //# sourceMappingURL=FloatingPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/FocusTrapZone.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/FocusTrapZone.js ***! \***********************************************************/ /*! exports provided: FocusTrapZone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_FocusTrapZone_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/FocusTrapZone/index */ "./node_modules/@fluentui/react/lib/components/FocusTrapZone/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusTrapZone", function() { return _components_FocusTrapZone_index__WEBPACK_IMPORTED_MODULE_0__["FocusTrapZone"]; }); //# sourceMappingURL=FocusTrapZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/FocusZone.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/FocusZone.js ***! \*******************************************************/ /*! exports provided: FocusZone, FocusZoneDirection, FocusZoneTabbableElements */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_react_focus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/react-focus */ "./node_modules/@fluentui/react-focus/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZone", function() { return _fluentui_react_focus__WEBPACK_IMPORTED_MODULE_0__["FocusZone"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZoneDirection", function() { return _fluentui_react_focus__WEBPACK_IMPORTED_MODULE_0__["FocusZoneDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusZoneTabbableElements", function() { return _fluentui_react_focus__WEBPACK_IMPORTED_MODULE_0__["FocusZoneTabbableElements"]; }); //# sourceMappingURL=FocusZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/GroupedList.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/GroupedList.js ***! \*********************************************************/ /*! exports provided: GroupedList, GroupedListBase, CollapseAllVisibility, GroupHeader, GroupFooter, GroupShowAll, GroupSpacer, GroupedListSection, GroupedListV2_unstable, GroupedListV2FC, GroupedListV2Wrapper, GetGroupCount */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/GroupedList/index */ "./node_modules/@fluentui/react/lib/components/GroupedList/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedList", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupedList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedListBase", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupedListBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CollapseAllVisibility", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["CollapseAllVisibility"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupHeader", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupHeader"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupFooter", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupFooter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupShowAll", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupShowAll"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupSpacer", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupSpacer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedListSection", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupedListSection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedListV2_unstable", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupedListV2_unstable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedListV2FC", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupedListV2FC"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedListV2Wrapper", function() { return _components_GroupedList_index__WEBPACK_IMPORTED_MODULE_0__["GroupedListV2Wrapper"]; }); /* harmony import */ var _utilities_groupedList_GroupedListUtility__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utilities/groupedList/GroupedListUtility */ "./node_modules/@fluentui/react/lib/utilities/groupedList/GroupedListUtility.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGroupCount", function() { return _utilities_groupedList_GroupedListUtility__WEBPACK_IMPORTED_MODULE_1__["GetGroupCount"]; }); //# sourceMappingURL=GroupedList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/HoverCard.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/HoverCard.js ***! \*******************************************************/ /*! exports provided: HoverCard, HoverCardBase, OpenCardMode, HoverCardType, ExpandingCard, ExpandingCardBase, ExpandingCardMode, PlainCard, PlainCardBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/HoverCard/index */ "./node_modules/@fluentui/react/lib/components/HoverCard/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoverCard", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["HoverCard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoverCardBase", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["HoverCardBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OpenCardMode", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["OpenCardMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoverCardType", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["HoverCardType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandingCard", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["ExpandingCard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandingCardBase", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["ExpandingCardBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandingCardMode", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["ExpandingCardMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlainCard", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["PlainCard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlainCardBase", function() { return _components_HoverCard_index__WEBPACK_IMPORTED_MODULE_0__["PlainCardBase"]; }); //# sourceMappingURL=HoverCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Icon.js": /*!**************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Icon.js ***! \**************************************************/ /*! exports provided: Icon, IconBase, IconType, getIconContent, FontIcon, getFontIcon, ImageIcon */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Icon/index */ "./node_modules/@fluentui/react/lib/components/Icon/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["Icon"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconBase", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["IconBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconType", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["IconType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getIconContent", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["getIconContent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FontIcon", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["FontIcon"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFontIcon", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["getFontIcon"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageIcon", function() { return _components_Icon_index__WEBPACK_IMPORTED_MODULE_0__["ImageIcon"]; }); //# sourceMappingURL=Icon.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Icons.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Icons.js ***! \***************************************************/ /*! exports provided: initializeIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_font_icons_mdl2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/font-icons-mdl2 */ "./node_modules/@fluentui/font-icons-mdl2/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initializeIcons", function() { return _fluentui_font_icons_mdl2__WEBPACK_IMPORTED_MODULE_0__["initializeIcons"]; }); //# sourceMappingURL=Icons.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Image.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Image.js ***! \***************************************************/ /*! exports provided: Image, ImageBase, ImageFit, ImageCoverStyle, ImageLoadState */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Image_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Image/index */ "./node_modules/@fluentui/react/lib/components/Image/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return _components_Image_index__WEBPACK_IMPORTED_MODULE_0__["Image"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageBase", function() { return _components_Image_index__WEBPACK_IMPORTED_MODULE_0__["ImageBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageFit", function() { return _components_Image_index__WEBPACK_IMPORTED_MODULE_0__["ImageFit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageCoverStyle", function() { return _components_Image_index__WEBPACK_IMPORTED_MODULE_0__["ImageCoverStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageLoadState", function() { return _components_Image_index__WEBPACK_IMPORTED_MODULE_0__["ImageLoadState"]; }); //# sourceMappingURL=Image.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Keytip.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Keytip.js ***! \****************************************************/ /*! exports provided: Keytip */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Keytip_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Keytip/index */ "./node_modules/@fluentui/react/lib/components/Keytip/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Keytip", function() { return _components_Keytip_index__WEBPACK_IMPORTED_MODULE_0__["Keytip"]; }); //# sourceMappingURL=Keytip.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/KeytipData.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/KeytipData.js ***! \********************************************************/ /*! exports provided: KeytipData, useKeytipRef */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_KeytipData_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/KeytipData/index */ "./node_modules/@fluentui/react/lib/components/KeytipData/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeytipData", function() { return _components_KeytipData_index__WEBPACK_IMPORTED_MODULE_0__["KeytipData"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useKeytipRef", function() { return _components_KeytipData_index__WEBPACK_IMPORTED_MODULE_0__["useKeytipRef"]; }); //# sourceMappingURL=KeytipData.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Keytips.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Keytips.js ***! \*****************************************************/ /*! exports provided: Keytip, KeytipData, useKeytipRef, KeytipLayer, KeytipLayerBase, transitionKeysAreEqual, transitionKeysContain, buildKeytipConfigMap, constructKeytip, KTP_PREFIX, KTP_SEPARATOR, KTP_FULL_PREFIX, DATAKTP_TARGET, DATAKTP_EXECUTE_TARGET, DATAKTP_ARIA_TARGET, KTP_LAYER_ID, KTP_ARIA_SEPARATOR, KeytipEvents, KeytipManager, sequencesToID, mergeOverflows, ktpTargetFromSequences, ktpTargetFromId, getAriaDescribedBy */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Keytip_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Keytip/index */ "./node_modules/@fluentui/react/lib/components/Keytip/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Keytip", function() { return _components_Keytip_index__WEBPACK_IMPORTED_MODULE_0__["Keytip"]; }); /* harmony import */ var _components_KeytipData_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/KeytipData/index */ "./node_modules/@fluentui/react/lib/components/KeytipData/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeytipData", function() { return _components_KeytipData_index__WEBPACK_IMPORTED_MODULE_1__["KeytipData"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useKeytipRef", function() { return _components_KeytipData_index__WEBPACK_IMPORTED_MODULE_1__["useKeytipRef"]; }); /* harmony import */ var _components_KeytipLayer_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/KeytipLayer/index */ "./node_modules/@fluentui/react/lib/components/KeytipLayer/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeytipLayer", function() { return _components_KeytipLayer_index__WEBPACK_IMPORTED_MODULE_2__["KeytipLayer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeytipLayerBase", function() { return _components_KeytipLayer_index__WEBPACK_IMPORTED_MODULE_2__["KeytipLayerBase"]; }); /* harmony import */ var _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utilities/keytips/index */ "./node_modules/@fluentui/react/lib/utilities/keytips/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transitionKeysAreEqual", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["transitionKeysAreEqual"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transitionKeysContain", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["transitionKeysContain"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildKeytipConfigMap", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["buildKeytipConfigMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "constructKeytip", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["constructKeytip"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KTP_PREFIX", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KTP_PREFIX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KTP_SEPARATOR", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KTP_SEPARATOR"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KTP_FULL_PREFIX", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KTP_FULL_PREFIX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATAKTP_TARGET", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["DATAKTP_TARGET"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATAKTP_EXECUTE_TARGET", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["DATAKTP_EXECUTE_TARGET"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATAKTP_ARIA_TARGET", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["DATAKTP_ARIA_TARGET"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KTP_LAYER_ID", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KTP_LAYER_ID"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KTP_ARIA_SEPARATOR", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KTP_ARIA_SEPARATOR"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeytipEvents", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KeytipEvents"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeytipManager", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["KeytipManager"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sequencesToID", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["sequencesToID"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeOverflows", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["mergeOverflows"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ktpTargetFromSequences", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["ktpTargetFromSequences"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ktpTargetFromId", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["ktpTargetFromId"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAriaDescribedBy", function() { return _utilities_keytips_index__WEBPACK_IMPORTED_MODULE_3__["getAriaDescribedBy"]; }); //# sourceMappingURL=Keytips.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Label.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Label.js ***! \***************************************************/ /*! exports provided: LabelBase, Label */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Label_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Label/index */ "./node_modules/@fluentui/react/lib/components/Label/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelBase", function() { return _components_Label_index__WEBPACK_IMPORTED_MODULE_0__["LabelBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return _components_Label_index__WEBPACK_IMPORTED_MODULE_0__["Label"]; }); //# sourceMappingURL=Label.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Layer.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Layer.js ***! \***************************************************/ /*! exports provided: Layer, LayerBase, LayerHost, createDefaultLayerHost, cleanupDefaultLayerHost, getLayerHostSelector, getLayerCount, getLayerHost, notifyHostChanged, registerLayer, registerLayerHost, setLayerHostSelector, unregisterLayer, unregisterLayerHost, getLayerStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib/version.js"); /* harmony import */ var _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/Layer/index */ "./node_modules/@fluentui/react/lib/components/Layer/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Layer", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["Layer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LayerBase", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["LayerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LayerHost", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["LayerHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createDefaultLayerHost", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["createDefaultLayerHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cleanupDefaultLayerHost", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["cleanupDefaultLayerHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLayerHostSelector", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["getLayerHostSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLayerCount", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["getLayerCount"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLayerHost", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["getLayerHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notifyHostChanged", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["notifyHostChanged"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLayer", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["registerLayer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLayerHost", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["registerLayerHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLayerHostSelector", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["setLayerHostSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unregisterLayer", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["unregisterLayer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unregisterLayerHost", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["unregisterLayerHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLayerStyles", function() { return _components_Layer_index__WEBPACK_IMPORTED_MODULE_1__["getLayerStyles"]; }); //# sourceMappingURL=Layer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Link.js": /*!**************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Link.js ***! \**************************************************/ /*! exports provided: Link, LinkBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib/version.js"); /* harmony import */ var _components_Link_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/Link/index */ "./node_modules/@fluentui/react/lib/components/Link/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return _components_Link_index__WEBPACK_IMPORTED_MODULE_1__["Link"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinkBase", function() { return _components_Link_index__WEBPACK_IMPORTED_MODULE_1__["LinkBase"]; }); //# sourceMappingURL=Link.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/List.js": /*!**************************************************!*\ !*** ./node_modules/@fluentui/react/lib/List.js ***! \**************************************************/ /*! exports provided: List, ScrollToMode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_List_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/List/index */ "./node_modules/@fluentui/react/lib/components/List/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _components_List_index__WEBPACK_IMPORTED_MODULE_0__["List"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScrollToMode", function() { return _components_List_index__WEBPACK_IMPORTED_MODULE_0__["ScrollToMode"]; }); //# sourceMappingURL=List.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/MarqueeSelection.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/MarqueeSelection.js ***! \**************************************************************/ /*! exports provided: MarqueeSelection, SELECTION_CHANGE, SelectionDirection, SelectionMode, Selection, SelectionZone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_MarqueeSelection_MarqueeSelection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/MarqueeSelection/MarqueeSelection */ "./node_modules/@fluentui/react/lib/components/MarqueeSelection/MarqueeSelection.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarqueeSelection", function() { return _components_MarqueeSelection_MarqueeSelection__WEBPACK_IMPORTED_MODULE_0__["MarqueeSelection"]; }); /* harmony import */ var _components_MarqueeSelection_MarqueeSelection_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/MarqueeSelection/MarqueeSelection.types */ "./node_modules/@fluentui/react/lib/components/MarqueeSelection/MarqueeSelection.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _utilities_selection_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utilities/selection/index */ "./node_modules/@fluentui/react/lib/utilities/selection/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SELECTION_CHANGE", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_2__["SELECTION_CHANGE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionDirection", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_2__["SelectionDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionMode", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_2__["SelectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_2__["Selection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionZone", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_2__["SelectionZone"]; }); //# sourceMappingURL=MarqueeSelection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/MessageBar.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/MessageBar.js ***! \********************************************************/ /*! exports provided: MessageBar, MessageBarBase, MessageBarType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_MessageBar_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/MessageBar/index */ "./node_modules/@fluentui/react/lib/components/MessageBar/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBar", function() { return _components_MessageBar_index__WEBPACK_IMPORTED_MODULE_0__["MessageBar"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBarBase", function() { return _components_MessageBar_index__WEBPACK_IMPORTED_MODULE_0__["MessageBarBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBarType", function() { return _components_MessageBar_index__WEBPACK_IMPORTED_MODULE_0__["MessageBarType"]; }); //# sourceMappingURL=MessageBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Modal.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Modal.js ***! \***************************************************/ /*! exports provided: Modal, ModalBase, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Modal_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Modal/index */ "./node_modules/@fluentui/react/lib/components/Modal/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _components_Modal_index__WEBPACK_IMPORTED_MODULE_0__["Modal"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalBase", function() { return _components_Modal_index__WEBPACK_IMPORTED_MODULE_0__["ModalBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _components_Modal_index__WEBPACK_IMPORTED_MODULE_0__["Modal"]; }); //# sourceMappingURL=Modal.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Nav.js": /*!*************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Nav.js ***! \*************************************************/ /*! exports provided: Nav, isRelativeUrl, NavBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Nav_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Nav/index */ "./node_modules/@fluentui/react/lib/components/Nav/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["Nav"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRelativeUrl", function() { return _components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["isRelativeUrl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavBase", function() { return _components_Nav_index__WEBPACK_IMPORTED_MODULE_0__["NavBase"]; }); //# sourceMappingURL=Nav.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/OverflowSet.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/OverflowSet.js ***! \*********************************************************/ /*! exports provided: OverflowSet, OverflowSetBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_OverflowSet_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/OverflowSet/index */ "./node_modules/@fluentui/react/lib/components/OverflowSet/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverflowSet", function() { return _components_OverflowSet_index__WEBPACK_IMPORTED_MODULE_0__["OverflowSet"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverflowSetBase", function() { return _components_OverflowSet_index__WEBPACK_IMPORTED_MODULE_0__["OverflowSetBase"]; }); //# sourceMappingURL=OverflowSet.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Overlay.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Overlay.js ***! \*****************************************************/ /*! exports provided: Overlay, OverlayBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Overlay_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Overlay/index */ "./node_modules/@fluentui/react/lib/components/Overlay/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return _components_Overlay_index__WEBPACK_IMPORTED_MODULE_0__["Overlay"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayBase", function() { return _components_Overlay_index__WEBPACK_IMPORTED_MODULE_0__["OverlayBase"]; }); //# sourceMappingURL=Overlay.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Panel.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Panel.js ***! \***************************************************/ /*! exports provided: Panel, PanelBase, PanelType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Panel_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Panel/index */ "./node_modules/@fluentui/react/lib/components/Panel/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Panel", function() { return _components_Panel_index__WEBPACK_IMPORTED_MODULE_0__["Panel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PanelBase", function() { return _components_Panel_index__WEBPACK_IMPORTED_MODULE_0__["PanelBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PanelType", function() { return _components_Panel_index__WEBPACK_IMPORTED_MODULE_0__["PanelType"]; }); //# sourceMappingURL=Panel.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Persona.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Persona.js ***! \*****************************************************/ /*! exports provided: Persona, PersonaBase, PersonaSize, PersonaPresence, PersonaInitialsColor, PersonaCoin, PersonaCoinBase, personaSize, personaPresenceSize, sizeBoolean, sizeToPixels, presenceBoolean, getPersonaInitialsColor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Persona/index */ "./node_modules/@fluentui/react/lib/components/Persona/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Persona", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["Persona"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaBase", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaSize", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaPresence", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaPresence"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaInitialsColor", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaInitialsColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaCoin", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaCoin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaCoinBase", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaCoinBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "personaSize", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["personaSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "personaPresenceSize", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["personaPresenceSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sizeBoolean", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["sizeBoolean"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sizeToPixels", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["sizeToPixels"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "presenceBoolean", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["presenceBoolean"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPersonaInitialsColor", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["getPersonaInitialsColor"]; }); //# sourceMappingURL=Persona.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/PersonaCoin.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/PersonaCoin.js ***! \*********************************************************/ /*! exports provided: Persona, PersonaBase, PersonaSize, PersonaPresence, PersonaInitialsColor, PersonaCoin, PersonaCoinBase, personaSize, personaPresenceSize, sizeBoolean, sizeToPixels, presenceBoolean, getPersonaInitialsColor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Persona/index */ "./node_modules/@fluentui/react/lib/components/Persona/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Persona", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["Persona"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaBase", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaSize", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaPresence", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaPresence"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaInitialsColor", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaInitialsColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaCoin", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaCoin"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonaCoinBase", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["PersonaCoinBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "personaSize", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["personaSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "personaPresenceSize", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["personaPresenceSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sizeBoolean", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["sizeBoolean"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sizeToPixels", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["sizeToPixels"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "presenceBoolean", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["presenceBoolean"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPersonaInitialsColor", function() { return _components_Persona_index__WEBPACK_IMPORTED_MODULE_0__["getPersonaInitialsColor"]; }); //# sourceMappingURL=PersonaCoin.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Pickers.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Pickers.js ***! \*****************************************************/ /*! exports provided: Suggestions, getSuggestionsStyles, SuggestionActionType, SuggestionsItem, getSuggestionsItemStyles, SuggestionsController, Autofill, BasePicker, BasePickerListBelow, getBasePickerStyles, ValidationState, BasePeoplePicker, MemberListPeoplePicker, NormalPeoplePickerBase, CompactPeoplePickerBase, ListPeoplePickerBase, createGenericItem, NormalPeoplePicker, CompactPeoplePicker, ListPeoplePicker, getPeoplePickerItemStyles, PeoplePickerItemBase, PeoplePickerItem, PeoplePickerItemSuggestionBase, PeoplePickerItemSuggestion, getPeoplePickerItemSuggestionStyles, TagPickerBase, TagPicker, TagItemBase, TagItem, getTagItemStyles, TagItemSuggestionBase, TagItemSuggestion, getTagItemSuggestionStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/pickers/index */ "./node_modules/@fluentui/react/lib/components/pickers/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Suggestions", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["Suggestions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSuggestionsStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getSuggestionsStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionActionType", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionActionType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsItem", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionsItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSuggestionsItemStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getSuggestionsItemStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsController", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["SuggestionsController"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Autofill", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["Autofill"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasePicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["BasePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasePickerListBelow", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["BasePickerListBelow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBasePickerStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getBasePickerStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationState", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["ValidationState"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasePeoplePicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["BasePeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MemberListPeoplePicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["MemberListPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NormalPeoplePickerBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["NormalPeoplePickerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompactPeoplePickerBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["CompactPeoplePickerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListPeoplePickerBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["ListPeoplePickerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createGenericItem", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["createGenericItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NormalPeoplePicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["NormalPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompactPeoplePicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["CompactPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListPeoplePicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["ListPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPeoplePickerItemStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getPeoplePickerItemStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PeoplePickerItemBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["PeoplePickerItemBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PeoplePickerItem", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["PeoplePickerItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PeoplePickerItemSuggestionBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["PeoplePickerItemSuggestionBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PeoplePickerItemSuggestion", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["PeoplePickerItemSuggestion"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPeoplePickerItemSuggestionStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getPeoplePickerItemSuggestionStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagPickerBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["TagPickerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagPicker", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["TagPicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagItemBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["TagItemBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagItem", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["TagItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTagItemStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getTagItemStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagItemSuggestionBase", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["TagItemSuggestionBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagItemSuggestion", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["TagItemSuggestion"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTagItemSuggestionStyles", function() { return _components_pickers_index__WEBPACK_IMPORTED_MODULE_0__["getTagItemSuggestionStyles"]; }); //# sourceMappingURL=Pickers.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Pivot.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Pivot.js ***! \***************************************************/ /*! exports provided: Pivot, PivotBase, PivotItem, PivotLinkFormat, PivotLinkSize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Pivot_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Pivot/index */ "./node_modules/@fluentui/react/lib/components/Pivot/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pivot", function() { return _components_Pivot_index__WEBPACK_IMPORTED_MODULE_0__["Pivot"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PivotBase", function() { return _components_Pivot_index__WEBPACK_IMPORTED_MODULE_0__["PivotBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PivotItem", function() { return _components_Pivot_index__WEBPACK_IMPORTED_MODULE_0__["PivotItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PivotLinkFormat", function() { return _components_Pivot_index__WEBPACK_IMPORTED_MODULE_0__["PivotLinkFormat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PivotLinkSize", function() { return _components_Pivot_index__WEBPACK_IMPORTED_MODULE_0__["PivotLinkSize"]; }); //# sourceMappingURL=Pivot.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Popup.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Popup.js ***! \***************************************************/ /*! exports provided: Popup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Popup_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Popup/index */ "./node_modules/@fluentui/react/lib/components/Popup/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return _components_Popup_index__WEBPACK_IMPORTED_MODULE_0__["Popup"]; }); //# sourceMappingURL=Popup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Positioning.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Positioning.js ***! \*********************************************************/ /*! exports provided: getBoundsFromTargetWindow, getMaxHeight, getOppositeEdge, positionCallout, positionCard, positionElement, RectangleEdge, Position */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/positioning/index */ "./node_modules/@fluentui/react/lib/utilities/positioning/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getBoundsFromTargetWindow", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["getBoundsFromTargetWindow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMaxHeight", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["getMaxHeight"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOppositeEdge", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["getOppositeEdge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "positionCallout", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["positionCallout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "positionCard", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["positionCard"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "positionElement", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["positionElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RectangleEdge", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["RectangleEdge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Position", function() { return _utilities_positioning_index__WEBPACK_IMPORTED_MODULE_0__["Position"]; }); //# sourceMappingURL=Positioning.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/PositioningContainer.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/PositioningContainer.js ***! \******************************************************************/ /*! exports provided: useHeightOffset, PositioningContainer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Coachmark_PositioningContainer_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Coachmark/PositioningContainer/index */ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useHeightOffset", function() { return _components_Coachmark_PositioningContainer_index__WEBPACK_IMPORTED_MODULE_0__["useHeightOffset"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PositioningContainer", function() { return _components_Coachmark_PositioningContainer_index__WEBPACK_IMPORTED_MODULE_0__["PositioningContainer"]; }); //# sourceMappingURL=PositioningContainer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ProgressIndicator.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ProgressIndicator.js ***! \***************************************************************/ /*! exports provided: ProgressIndicator, ProgressIndicatorBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ProgressIndicator_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ProgressIndicator/index */ "./node_modules/@fluentui/react/lib/components/ProgressIndicator/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressIndicator", function() { return _components_ProgressIndicator_index__WEBPACK_IMPORTED_MODULE_0__["ProgressIndicator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressIndicatorBase", function() { return _components_ProgressIndicator_index__WEBPACK_IMPORTED_MODULE_0__["ProgressIndicatorBase"]; }); //# sourceMappingURL=ProgressIndicator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Rating.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Rating.js ***! \****************************************************/ /*! exports provided: Rating, RatingBase, RatingSize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Rating_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Rating/index */ "./node_modules/@fluentui/react/lib/components/Rating/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rating", function() { return _components_Rating_index__WEBPACK_IMPORTED_MODULE_0__["Rating"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingBase", function() { return _components_Rating_index__WEBPACK_IMPORTED_MODULE_0__["RatingBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingSize", function() { return _components_Rating_index__WEBPACK_IMPORTED_MODULE_0__["RatingSize"]; }); //# sourceMappingURL=Rating.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ResizeGroup.js": /*!*********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ResizeGroup.js ***! \*********************************************************/ /*! exports provided: ResizeGroup, getMeasurementCache, getNextResizeGroupStateProvider, MeasuredContext, ResizeGroupBase, ResizeGroupDirection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ResizeGroup/index */ "./node_modules/@fluentui/react/lib/components/ResizeGroup/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeGroup", function() { return _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__["ResizeGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMeasurementCache", function() { return _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__["getMeasurementCache"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextResizeGroupStateProvider", function() { return _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__["getNextResizeGroupStateProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MeasuredContext", function() { return _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__["MeasuredContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeGroupBase", function() { return _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__["ResizeGroupBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeGroupDirection", function() { return _components_ResizeGroup_index__WEBPACK_IMPORTED_MODULE_0__["ResizeGroupDirection"]; }); //# sourceMappingURL=ResizeGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ResponsiveMode.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ResponsiveMode.js ***! \************************************************************/ /*! exports provided: useResponsiveMode, ResponsiveMode, setResponsiveMode, initializeResponsiveMode, getInitialResponsiveMode, withResponsiveMode, getResponsiveMode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_hooks_useResponsiveMode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/hooks/useResponsiveMode */ "./node_modules/@fluentui/react/lib/utilities/hooks/useResponsiveMode.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useResponsiveMode", function() { return _utilities_hooks_useResponsiveMode__WEBPACK_IMPORTED_MODULE_0__["useResponsiveMode"]; }); /* harmony import */ var _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utilities/decorators/withResponsiveMode */ "./node_modules/@fluentui/react/lib/utilities/decorators/withResponsiveMode.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResponsiveMode", function() { return _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__["ResponsiveMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setResponsiveMode", function() { return _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__["setResponsiveMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initializeResponsiveMode", function() { return _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__["initializeResponsiveMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInitialResponsiveMode", function() { return _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__["getInitialResponsiveMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withResponsiveMode", function() { return _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__["withResponsiveMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getResponsiveMode", function() { return _utilities_decorators_withResponsiveMode__WEBPACK_IMPORTED_MODULE_1__["getResponsiveMode"]; }); //# sourceMappingURL=ResponsiveMode.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ScrollablePane.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ScrollablePane.js ***! \************************************************************/ /*! exports provided: ScrollablePane, ScrollablePaneBase, ScrollbarVisibility, ScrollablePaneContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ScrollablePane_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ScrollablePane/index */ "./node_modules/@fluentui/react/lib/components/ScrollablePane/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScrollablePane", function() { return _components_ScrollablePane_index__WEBPACK_IMPORTED_MODULE_0__["ScrollablePane"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScrollablePaneBase", function() { return _components_ScrollablePane_index__WEBPACK_IMPORTED_MODULE_0__["ScrollablePaneBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScrollbarVisibility", function() { return _components_ScrollablePane_index__WEBPACK_IMPORTED_MODULE_0__["ScrollbarVisibility"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScrollablePaneContext", function() { return _components_ScrollablePane_index__WEBPACK_IMPORTED_MODULE_0__["ScrollablePaneContext"]; }); //# sourceMappingURL=ScrollablePane.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/SearchBox.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/SearchBox.js ***! \*******************************************************/ /*! exports provided: SearchBox, SearchBoxBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_SearchBox_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/SearchBox/index */ "./node_modules/@fluentui/react/lib/components/SearchBox/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchBox", function() { return _components_SearchBox_index__WEBPACK_IMPORTED_MODULE_0__["SearchBox"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchBoxBase", function() { return _components_SearchBox_index__WEBPACK_IMPORTED_MODULE_0__["SearchBoxBase"]; }); //# sourceMappingURL=SearchBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/SelectableOption.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/SelectableOption.js ***! \**************************************************************/ /*! exports provided: getAllSelectedOptions, SelectableOptionMenuItemType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_selectableOption_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/selectableOption/index */ "./node_modules/@fluentui/react/lib/utilities/selectableOption/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAllSelectedOptions", function() { return _utilities_selectableOption_index__WEBPACK_IMPORTED_MODULE_0__["getAllSelectedOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectableOptionMenuItemType", function() { return _utilities_selectableOption_index__WEBPACK_IMPORTED_MODULE_0__["SelectableOptionMenuItemType"]; }); //# sourceMappingURL=SelectableOption.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/SelectedItemsList.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/SelectedItemsList.js ***! \***************************************************************/ /*! exports provided: BaseSelectedItemsList, BasePeopleSelectedItemsList, SelectedPeopleList, ExtendedSelectedItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_SelectedItemsList_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/SelectedItemsList/index */ "./node_modules/@fluentui/react/lib/components/SelectedItemsList/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseSelectedItemsList", function() { return _components_SelectedItemsList_index__WEBPACK_IMPORTED_MODULE_0__["BaseSelectedItemsList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasePeopleSelectedItemsList", function() { return _components_SelectedItemsList_index__WEBPACK_IMPORTED_MODULE_0__["BasePeopleSelectedItemsList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectedPeopleList", function() { return _components_SelectedItemsList_index__WEBPACK_IMPORTED_MODULE_0__["SelectedPeopleList"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedSelectedItem", function() { return _components_SelectedItemsList_index__WEBPACK_IMPORTED_MODULE_0__["ExtendedSelectedItem"]; }); //# sourceMappingURL=SelectedItemsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Selection.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Selection.js ***! \*******************************************************/ /*! exports provided: SELECTION_CHANGE, SelectionDirection, SelectionMode, Selection, SelectionZone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/selection/index */ "./node_modules/@fluentui/react/lib/utilities/selection/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SELECTION_CHANGE", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_0__["SELECTION_CHANGE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionDirection", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_0__["SelectionDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionMode", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_0__["SelectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionZone", function() { return _utilities_selection_index__WEBPACK_IMPORTED_MODULE_0__["SelectionZone"]; }); //# sourceMappingURL=Selection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Separator.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Separator.js ***! \*******************************************************/ /*! exports provided: SeparatorBase, Separator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Separator_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Separator/index */ "./node_modules/@fluentui/react/lib/components/Separator/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SeparatorBase", function() { return _components_Separator_index__WEBPACK_IMPORTED_MODULE_0__["SeparatorBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Separator", function() { return _components_Separator_index__WEBPACK_IMPORTED_MODULE_0__["Separator"]; }); //# sourceMappingURL=Separator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Shimmer.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Shimmer.js ***! \*****************************************************/ /*! exports provided: Shimmer, ShimmerBase, ShimmerElementType, ShimmerElementsDefaultHeights, ShimmerLine, ShimmerLineBase, ShimmerCircle, ShimmerCircleBase, ShimmerGap, ShimmerGapBase, ShimmerElementsGroup, ShimmerElementsGroupBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Shimmer/index */ "./node_modules/@fluentui/react/lib/components/Shimmer/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shimmer", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["Shimmer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerBase", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerElementType", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerElementType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerElementsDefaultHeights", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerElementsDefaultHeights"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerLine", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerLine"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerLineBase", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerLineBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerCircle", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerCircle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerCircleBase", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerCircleBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerGap", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerGap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerGapBase", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerGapBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerElementsGroup", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerElementsGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmerElementsGroupBase", function() { return _components_Shimmer_index__WEBPACK_IMPORTED_MODULE_0__["ShimmerElementsGroupBase"]; }); //# sourceMappingURL=Shimmer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ShimmeredDetailsList.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ShimmeredDetailsList.js ***! \******************************************************************/ /*! exports provided: ShimmeredDetailsList, ShimmeredDetailsListBase, getShimmeredDetailsListStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_DetailsList_ShimmeredDetailsList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList */ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmeredDetailsList", function() { return _components_DetailsList_ShimmeredDetailsList__WEBPACK_IMPORTED_MODULE_0__["ShimmeredDetailsList"]; }); /* harmony import */ var _components_DetailsList_ShimmeredDetailsList_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShimmeredDetailsListBase", function() { return _components_DetailsList_ShimmeredDetailsList_base__WEBPACK_IMPORTED_MODULE_1__["ShimmeredDetailsListBase"]; }); /* harmony import */ var _components_DetailsList_ShimmeredDetailsList_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getShimmeredDetailsListStyles", function() { return _components_DetailsList_ShimmeredDetailsList_styles__WEBPACK_IMPORTED_MODULE_2__["getShimmeredDetailsListStyles"]; }); /* harmony import */ var _components_DetailsList_ShimmeredDetailsList_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=ShimmeredDetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Slider.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Slider.js ***! \****************************************************/ /*! exports provided: Slider, SliderBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Slider_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Slider/index */ "./node_modules/@fluentui/react/lib/components/Slider/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _components_Slider_index__WEBPACK_IMPORTED_MODULE_0__["Slider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SliderBase", function() { return _components_Slider_index__WEBPACK_IMPORTED_MODULE_0__["SliderBase"]; }); //# sourceMappingURL=Slider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/SpinButton.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/SpinButton.js ***! \********************************************************/ /*! exports provided: SpinButton, KeyboardSpinDirection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_SpinButton_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/SpinButton/index */ "./node_modules/@fluentui/react/lib/components/SpinButton/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinButton", function() { return _components_SpinButton_index__WEBPACK_IMPORTED_MODULE_0__["SpinButton"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyboardSpinDirection", function() { return _components_SpinButton_index__WEBPACK_IMPORTED_MODULE_0__["KeyboardSpinDirection"]; }); //# sourceMappingURL=SpinButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Spinner.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Spinner.js ***! \*****************************************************/ /*! exports provided: Spinner, SpinnerBase, SpinnerSize, SpinnerType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Spinner_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Spinner/index */ "./node_modules/@fluentui/react/lib/components/Spinner/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spinner", function() { return _components_Spinner_index__WEBPACK_IMPORTED_MODULE_0__["Spinner"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinnerBase", function() { return _components_Spinner_index__WEBPACK_IMPORTED_MODULE_0__["SpinnerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinnerSize", function() { return _components_Spinner_index__WEBPACK_IMPORTED_MODULE_0__["SpinnerSize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinnerType", function() { return _components_Spinner_index__WEBPACK_IMPORTED_MODULE_0__["SpinnerType"]; }); //# sourceMappingURL=Spinner.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Stack.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Stack.js ***! \***************************************************/ /*! exports provided: StackItem, Stack */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Stack_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Stack/index */ "./node_modules/@fluentui/react/lib/components/Stack/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StackItem", function() { return _components_Stack_index__WEBPACK_IMPORTED_MODULE_0__["StackItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stack", function() { return _components_Stack_index__WEBPACK_IMPORTED_MODULE_0__["Stack"]; }); //# sourceMappingURL=Stack.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Sticky.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Sticky.js ***! \****************************************************/ /*! exports provided: Sticky, StickyPositionType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Sticky_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Sticky/index */ "./node_modules/@fluentui/react/lib/components/Sticky/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sticky", function() { return _components_Sticky_index__WEBPACK_IMPORTED_MODULE_0__["Sticky"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StickyPositionType", function() { return _components_Sticky_index__WEBPACK_IMPORTED_MODULE_0__["StickyPositionType"]; }); //# sourceMappingURL=Sticky.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Styling.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Styling.js ***! \*****************************************************/ /*! exports provided: AnimationClassNames, AnimationStyles, AnimationVariables, ColorClassNames, DefaultEffects, DefaultFontStyles, DefaultPalette, EdgeChromiumHighContrastSelector, FontClassNames, FontSizes, FontWeights, HighContrastSelector, HighContrastSelectorBlack, HighContrastSelectorWhite, IconFontSizes, InjectionMode, PulsingBeaconAnimationStyles, ScreenWidthMaxLarge, ScreenWidthMaxMedium, ScreenWidthMaxSmall, ScreenWidthMaxXLarge, ScreenWidthMaxXXLarge, ScreenWidthMinLarge, ScreenWidthMinMedium, ScreenWidthMinSmall, ScreenWidthMinUhfMobile, ScreenWidthMinXLarge, ScreenWidthMinXXLarge, ScreenWidthMinXXXLarge, Stylesheet, ThemeSettingName, ZIndexes, buildClassMap, concatStyleSets, concatStyleSetsWithProps, createFontStyles, focusClear, fontFace, getEdgeChromiumNoHighContrastAdjustSelector, getFadedOverflowStyle, getFocusOutlineStyle, getFocusStyle, getGlobalClassNames, getHighContrastNoAdjustStyle, getIcon, getIconClassName, getInputFocusStyle, getPlaceholderStyles, getScreenSelector, getTheme, getThemedContext, hiddenContentStyle, keyframes, loadTheme, mergeStyleSets, mergeStyles, noWrap, normalize, registerIconAlias, registerIcons, registerOnThemeChangeCallback, removeOnThemeChangeCallback, setIconOptions, unregisterIcons, createTheme, registerDefaultFontFaces */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib/version.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationClassNames", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationStyles", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationVariables", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationVariables"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorClassNames", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ColorClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultEffects", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["DefaultEffects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultFontStyles", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["DefaultFontStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPalette", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["DefaultPalette"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EdgeChromiumHighContrastSelector", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["EdgeChromiumHighContrastSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FontClassNames", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FontSizes", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FontWeights", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HighContrastSelector", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HighContrastSelectorBlack", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelectorBlack"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HighContrastSelectorWhite", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelectorWhite"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconFontSizes", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InjectionMode", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["InjectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PulsingBeaconAnimationStyles", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["PulsingBeaconAnimationStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMaxLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMaxMedium", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxMedium"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMaxSmall", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxSmall"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMaxXLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxXLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMaxXXLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxXXLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinMedium", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinMedium"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinSmall", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinSmall"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinUhfMobile", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinUhfMobile"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinXLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinXXLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXXLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScreenWidthMinXXXLarge", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinXXXLarge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stylesheet", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["Stylesheet"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeSettingName", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ThemeSettingName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ZIndexes", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["ZIndexes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildClassMap", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["buildClassMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatStyleSets", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatStyleSetsWithProps", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["concatStyleSetsWithProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createFontStyles", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["createFontStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusClear", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["focusClear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fontFace", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["fontFace"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getEdgeChromiumNoHighContrastAdjustSelector", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getEdgeChromiumNoHighContrastAdjustSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFadedOverflowStyle", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFadedOverflowStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFocusOutlineStyle", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusOutlineStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFocusStyle", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getGlobalClassNames", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getHighContrastNoAdjustStyle", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getIcon", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getIcon"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getIconClassName", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getIconClassName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInputFocusStyle", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getInputFocusStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPlaceholderStyles", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getPlaceholderStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getScreenSelector", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getScreenSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTheme", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getThemedContext", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getThemedContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hiddenContentStyle", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["hiddenContentStyle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["keyframes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loadTheme", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["loadTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeStyleSets", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "noWrap", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["noWrap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "normalize", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["normalize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerIconAlias", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["registerIconAlias"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerIcons", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["registerIcons"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerOnThemeChangeCallback", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["registerOnThemeChangeCallback"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeOnThemeChangeCallback", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["removeOnThemeChangeCallback"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setIconOptions", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["setIconOptions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unregisterIcons", function() { return _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["unregisterIcons"]; }); /* harmony import */ var _fluentui_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTheme", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_2__["createTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerDefaultFontFaces", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_2__["registerDefaultFontFaces"]; }); //# sourceMappingURL=Styling.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/SwatchColorPicker.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/SwatchColorPicker.js ***! \***************************************************************/ /*! exports provided: SwatchColorPicker, SwatchColorPickerBase, ColorPickerGridCell, ColorPickerGridCellBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_SwatchColorPicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/SwatchColorPicker/index */ "./node_modules/@fluentui/react/lib/components/SwatchColorPicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SwatchColorPicker", function() { return _components_SwatchColorPicker_index__WEBPACK_IMPORTED_MODULE_0__["SwatchColorPicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SwatchColorPickerBase", function() { return _components_SwatchColorPicker_index__WEBPACK_IMPORTED_MODULE_0__["SwatchColorPickerBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPickerGridCell", function() { return _components_SwatchColorPicker_index__WEBPACK_IMPORTED_MODULE_0__["ColorPickerGridCell"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPickerGridCellBase", function() { return _components_SwatchColorPicker_index__WEBPACK_IMPORTED_MODULE_0__["ColorPickerGridCellBase"]; }); //# sourceMappingURL=SwatchColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/TeachingBubble.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/TeachingBubble.js ***! \************************************************************/ /*! exports provided: TeachingBubble, TeachingBubbleBase, TeachingBubbleContent, TeachingBubbleContentBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_TeachingBubble_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/TeachingBubble/index */ "./node_modules/@fluentui/react/lib/components/TeachingBubble/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TeachingBubble", function() { return _components_TeachingBubble_index__WEBPACK_IMPORTED_MODULE_0__["TeachingBubble"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TeachingBubbleBase", function() { return _components_TeachingBubble_index__WEBPACK_IMPORTED_MODULE_0__["TeachingBubbleBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TeachingBubbleContent", function() { return _components_TeachingBubble_index__WEBPACK_IMPORTED_MODULE_0__["TeachingBubbleContent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TeachingBubbleContentBase", function() { return _components_TeachingBubble_index__WEBPACK_IMPORTED_MODULE_0__["TeachingBubbleContentBase"]; }); //# sourceMappingURL=TeachingBubble.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Text.js": /*!**************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Text.js ***! \**************************************************/ /*! exports provided: Text, TextView, TextStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Text_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Text/index */ "./node_modules/@fluentui/react/lib/components/Text/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Text", function() { return _components_Text_index__WEBPACK_IMPORTED_MODULE_0__["Text"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextView", function() { return _components_Text_index__WEBPACK_IMPORTED_MODULE_0__["TextView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextStyles", function() { return _components_Text_index__WEBPACK_IMPORTED_MODULE_0__["TextStyles"]; }); //# sourceMappingURL=Text.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/TextField.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/TextField.js ***! \*******************************************************/ /*! exports provided: TextField, TextFieldBase, getTextFieldStyles, DEFAULT_MASK_CHAR, MaskedTextField */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_TextField_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/TextField/index */ "./node_modules/@fluentui/react/lib/components/TextField/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextField", function() { return _components_TextField_index__WEBPACK_IMPORTED_MODULE_0__["TextField"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextFieldBase", function() { return _components_TextField_index__WEBPACK_IMPORTED_MODULE_0__["TextFieldBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTextFieldStyles", function() { return _components_TextField_index__WEBPACK_IMPORTED_MODULE_0__["getTextFieldStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MASK_CHAR", function() { return _components_TextField_index__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_MASK_CHAR"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MaskedTextField", function() { return _components_TextField_index__WEBPACK_IMPORTED_MODULE_0__["MaskedTextField"]; }); //# sourceMappingURL=TextField.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Theme.js": /*!***************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Theme.js ***! \***************************************************/ /*! exports provided: AnimationStyles, AnimationVariables, CommunicationColors, DefaultEffects, DefaultFontStyles, DefaultPalette, DefaultSpacing, Depths, FluentTheme, createFontStyles, createTheme, LocalizedFontFamilies, LocalizedFontNames, mergeThemes, MotionDurations, MotionTimings, MotionAnimations, NeutralColors, SharedColors, registerDefaultFontFaces, ThemeProvider, useTheme, ThemeContext, makeStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationStyles", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["AnimationStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationVariables", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["AnimationVariables"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommunicationColors", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["CommunicationColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultEffects", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["DefaultEffects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultFontStyles", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["DefaultFontStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPalette", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["DefaultPalette"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultSpacing", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["DefaultSpacing"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Depths", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["Depths"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FluentTheme", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["FluentTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createFontStyles", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["createFontStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTheme", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["createTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocalizedFontFamilies", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["LocalizedFontFamilies"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocalizedFontNames", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["LocalizedFontNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeThemes", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["mergeThemes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MotionDurations", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["MotionDurations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MotionTimings", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["MotionTimings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MotionAnimations", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["MotionAnimations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NeutralColors", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["NeutralColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SharedColors", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["SharedColors"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerDefaultFontFaces", function() { return _fluentui_theme__WEBPACK_IMPORTED_MODULE_0__["registerDefaultFontFaces"]; }); /* harmony import */ var _utilities_ThemeProvider_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utilities/ThemeProvider/index */ "./node_modules/@fluentui/react/lib/utilities/ThemeProvider/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return _utilities_ThemeProvider_index__WEBPACK_IMPORTED_MODULE_1__["ThemeProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useTheme", function() { return _utilities_ThemeProvider_index__WEBPACK_IMPORTED_MODULE_1__["useTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeContext", function() { return _utilities_ThemeProvider_index__WEBPACK_IMPORTED_MODULE_1__["ThemeContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeStyles", function() { return _utilities_ThemeProvider_index__WEBPACK_IMPORTED_MODULE_1__["makeStyles"]; }); //When adding new exports to this file, also add them to index.ts. //When adding new exports to this file, also add them to index.ts. //# sourceMappingURL=Theme.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/ThemeGenerator.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/ThemeGenerator.js ***! \************************************************************/ /*! exports provided: ThemeGenerator, BaseSlots, FabricSlots, SemanticColorSlots, themeRulesStandardCreator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_ThemeGenerator_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/ThemeGenerator/index */ "./node_modules/@fluentui/react/lib/components/ThemeGenerator/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeGenerator", function() { return _components_ThemeGenerator_index__WEBPACK_IMPORTED_MODULE_0__["ThemeGenerator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseSlots", function() { return _components_ThemeGenerator_index__WEBPACK_IMPORTED_MODULE_0__["BaseSlots"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FabricSlots", function() { return _components_ThemeGenerator_index__WEBPACK_IMPORTED_MODULE_0__["FabricSlots"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SemanticColorSlots", function() { return _components_ThemeGenerator_index__WEBPACK_IMPORTED_MODULE_0__["SemanticColorSlots"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "themeRulesStandardCreator", function() { return _components_ThemeGenerator_index__WEBPACK_IMPORTED_MODULE_0__["themeRulesStandardCreator"]; }); //# sourceMappingURL=ThemeGenerator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/TimePicker.js": /*!********************************************************!*\ !*** ./node_modules/@fluentui/react/lib/TimePicker.js ***! \********************************************************/ /*! exports provided: TimePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_TimePicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/TimePicker/index */ "./node_modules/@fluentui/react/lib/components/TimePicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimePicker", function() { return _components_TimePicker_index__WEBPACK_IMPORTED_MODULE_0__["TimePicker"]; }); //# sourceMappingURL=TimePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Toggle.js": /*!****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Toggle.js ***! \****************************************************/ /*! exports provided: Toggle, ToggleBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Toggle_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Toggle/index */ "./node_modules/@fluentui/react/lib/components/Toggle/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toggle", function() { return _components_Toggle_index__WEBPACK_IMPORTED_MODULE_0__["Toggle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToggleBase", function() { return _components_Toggle_index__WEBPACK_IMPORTED_MODULE_0__["ToggleBase"]; }); //# sourceMappingURL=Toggle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Tooltip.js": /*!*****************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Tooltip.js ***! \*****************************************************/ /*! exports provided: Tooltip, TooltipBase, TooltipDelay, TooltipHost, TooltipHostBase, TooltipOverflowMode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Tooltip/index */ "./node_modules/@fluentui/react/lib/components/Tooltip/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__["Tooltip"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipBase", function() { return _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__["TooltipBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipDelay", function() { return _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__["TooltipDelay"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipHost", function() { return _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__["TooltipHost"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipHostBase", function() { return _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__["TooltipHostBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipOverflowMode", function() { return _components_Tooltip_index__WEBPACK_IMPORTED_MODULE_0__["TooltipOverflowMode"]; }); //# sourceMappingURL=Tooltip.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Utilities.js": /*!*******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Utilities.js ***! \*******************************************************/ /*! exports provided: Async, AutoScroll, BaseComponent, Customizations, Customizer, CustomizerContext, DATA_IS_SCROLLABLE_ATTRIBUTE, DATA_PORTAL_ATTRIBUTE, DelayedRender, EventGroup, FabricPerformance, FocusRects, FocusRectsContext, FocusRectsProvider, GlobalSettings, IsFocusVisibleClassName, KeyCodes, Rectangle, SELECTION_CHANGE, Selection, SelectionDirection, SelectionMode, addDirectionalKeyCode, addElementAtIndex, allowOverscrollOnElement, allowScrollOnElement, anchorProperties, appendFunction, arraysEqual, asAsync, assertNever, assign, audioProperties, baseElementEvents, baseElementProperties, buttonProperties, calculatePrecision, canUseDOM, classNamesFunction, colGroupProperties, colProperties, composeComponentAs, composeRenderFunction, createArray, createMemoizer, createMergedRef, css, customizable, disableBodyScroll, divProperties, doesElementContainFocus, elementContains, elementContainsAttribute, enableBodyScroll, extendComponent, filteredAssign, find, findElementRecursive, findIndex, findScrollableParent, fitContentToBounds, flatten, focusAsync, focusFirstChild, formProperties, format, getChildren, getDistanceBetweenPoints, getDocument, getElementIndexPath, getFirstFocusable, getFirstTabbable, getFirstVisibleElementFromSelector, getFocusableByIndexPath, getId, getInitials, getLanguage, getLastFocusable, getLastTabbable, getNativeElementProps, getNativeProps, getNextElement, getParent, getPreviousElement, getPropsWithDefaults, getRTL, getRTLSafeKeyCode, getRect, getResourceUrl, getScrollbarWidth, getVirtualParent, getWindow, hasHorizontalOverflow, hasOverflow, hasVerticalOverflow, hoistMethods, hoistStatics, htmlElementProperties, iframeProperties, imageProperties, imgProperties, initializeComponentRef, initializeFocusRects, inputProperties, isControlled, isDirectionalKeyCode, isElementFocusSubZone, isElementFocusZone, isElementTabbable, isElementVisible, isElementVisibleAndNotHidden, isIE11, isIOS, isMac, isVirtualElement, labelProperties, liProperties, mapEnumByName, memoize, memoizeFunction, merge, mergeAriaAttributeValues, mergeCustomizations, mergeScopedSettings, mergeSettings, modalize, nullRender, olProperties, omit, on, optionProperties, portalContainsElement, precisionRound, raiseClick, removeDirectionalKeyCode, removeIndex, replaceElement, resetControlledWarnings, resetIds, resetMemoizations, safeRequestAnimationFrame, safeSetTimeout, selectProperties, setBaseUrl, setFocusVisibility, setLanguage, setMemoizeWeakMap, setPortalAttribute, setRTL, setSSR, setVirtualParent, setWarningCallback, shallowCompare, shouldWrapFocus, styled, tableProperties, tdProperties, textAreaProperties, thProperties, toMatrix, trProperties, unhoistMethods, useCustomizationSettings, useFocusRects, values, videoProperties, warn, warnConditionallyRequiredProps, warnControlledUsage, warnDeprecations, warnMutuallyExclusive */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib/version.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Async", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["Async"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AutoScroll", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["AutoScroll"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseComponent", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["BaseComponent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Customizations", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["Customizations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Customizer", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["Customizer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomizerContext", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["CustomizerContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATA_IS_SCROLLABLE_ATTRIBUTE", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["DATA_IS_SCROLLABLE_ATTRIBUTE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DATA_PORTAL_ATTRIBUTE", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["DATA_PORTAL_ATTRIBUTE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DelayedRender", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["DelayedRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventGroup", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["EventGroup"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FabricPerformance", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["FabricPerformance"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusRects", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["FocusRects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusRectsContext", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["FocusRectsContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusRectsProvider", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["FocusRectsProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GlobalSettings", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["GlobalSettings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IsFocusVisibleClassName", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyCodes", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rectangle", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["Rectangle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SELECTION_CHANGE", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["SELECTION_CHANGE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["Selection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionDirection", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["SelectionDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionMode", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["SelectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addDirectionalKeyCode", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["addDirectionalKeyCode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addElementAtIndex", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["addElementAtIndex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "allowOverscrollOnElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["allowOverscrollOnElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "allowScrollOnElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["allowScrollOnElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "anchorProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["anchorProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "appendFunction", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["appendFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arraysEqual", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["arraysEqual"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asAsync", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["asAsync"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assertNever", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["assertNever"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assign", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["assign"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "audioProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["audioProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "baseElementEvents", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["baseElementEvents"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "baseElementProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["baseElementProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buttonProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["buttonProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "calculatePrecision", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["calculatePrecision"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["canUseDOM"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "classNamesFunction", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["classNamesFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colGroupProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["colGroupProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["colProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "composeComponentAs", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["composeComponentAs"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "composeRenderFunction", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["composeRenderFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createArray", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["createArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createMemoizer", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["createMemoizer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createMergedRef", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["createMergedRef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "css", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["css"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customizable", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["customizable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "disableBodyScroll", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["disableBodyScroll"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "divProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["divProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "doesElementContainFocus", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["doesElementContainFocus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementContains", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["elementContains"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementContainsAttribute", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["elementContainsAttribute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "enableBodyScroll", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["enableBodyScroll"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendComponent", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["extendComponent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filteredAssign", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["filteredAssign"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "find", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["find"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findElementRecursive", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["findElementRecursive"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["findIndex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findScrollableParent", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["findScrollableParent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fitContentToBounds", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["fitContentToBounds"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flatten", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["flatten"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusAsync", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["focusAsync"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstChild", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["focusFirstChild"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["formProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["format"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getChildren", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getChildren"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDistanceBetweenPoints", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getDistanceBetweenPoints"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDocument", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getDocument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getElementIndexPath", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getElementIndexPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstFocusable", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getFirstFocusable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstTabbable", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getFirstTabbable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstVisibleElementFromSelector", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getFirstVisibleElementFromSelector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFocusableByIndexPath", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusableByIndexPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getId", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getId"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInitials", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getInitials"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLanguage", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getLanguage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLastFocusable", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getLastFocusable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLastTabbable", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getLastTabbable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNativeElementProps", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getNativeElementProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNativeProps", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getNativeProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getNextElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getParent", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getParent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPreviousElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getPreviousElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPropsWithDefaults", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getPropsWithDefaults"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getRTL", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getRTL"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getRTLSafeKeyCode", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getRTLSafeKeyCode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getRect", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getRect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getResourceUrl", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getResourceUrl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getScrollbarWidth", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getScrollbarWidth"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getVirtualParent", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getVirtualParent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getWindow", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getWindow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasHorizontalOverflow", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["hasHorizontalOverflow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasOverflow", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["hasOverflow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasVerticalOverflow", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["hasVerticalOverflow"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hoistMethods", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["hoistMethods"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hoistStatics", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["hoistStatics"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "htmlElementProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["htmlElementProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "iframeProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["iframeProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imageProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["imageProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imgProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["imgProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initializeComponentRef", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["initializeComponentRef"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initializeFocusRects", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["initializeFocusRects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inputProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["inputProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isControlled", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isControlled"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDirectionalKeyCode", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isDirectionalKeyCode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElementFocusSubZone", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isElementFocusSubZone"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElementFocusZone", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isElementFocusZone"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElementTabbable", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isElementTabbable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElementVisible", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isElementVisible"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElementVisibleAndNotHidden", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isElementVisibleAndNotHidden"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIE11", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isIE11"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIOS", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isIOS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isMac", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isMac"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isVirtualElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["isVirtualElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "labelProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["labelProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "liProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["liProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mapEnumByName", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["mapEnumByName"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "memoize", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["memoize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "memoizeFunction", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["merge"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeAriaAttributeValues", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["mergeAriaAttributeValues"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeCustomizations", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["mergeCustomizations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeScopedSettings", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["mergeScopedSettings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeSettings", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["mergeSettings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "modalize", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["modalize"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nullRender", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["nullRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "olProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["olProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "omit", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["omit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "on", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["on"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "optionProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["optionProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "portalContainsElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["portalContainsElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["precisionRound"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "raiseClick", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["raiseClick"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeDirectionalKeyCode", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["removeDirectionalKeyCode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeIndex", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["removeIndex"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "replaceElement", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["replaceElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resetControlledWarnings", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["resetControlledWarnings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resetIds", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["resetIds"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resetMemoizations", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["resetMemoizations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "safeRequestAnimationFrame", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["safeRequestAnimationFrame"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "safeSetTimeout", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["safeSetTimeout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["selectProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setBaseUrl", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setBaseUrl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setFocusVisibility", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setFocusVisibility"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLanguage", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setLanguage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setMemoizeWeakMap", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setMemoizeWeakMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPortalAttribute", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setPortalAttribute"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setRTL", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setRTL"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSSR", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setSSR"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setVirtualParent", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setVirtualParent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setWarningCallback", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["setWarningCallback"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shallowCompare", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["shallowCompare"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shouldWrapFocus", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["shouldWrapFocus"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "styled", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["styled"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tableProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["tableProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tdProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["tdProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "textAreaProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["textAreaProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["thProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toMatrix", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["toMatrix"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "trProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["trProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "unhoistMethods", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["unhoistMethods"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useCustomizationSettings", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["useCustomizationSettings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useFocusRects", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["useFocusRects"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["values"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "videoProperties", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["videoProperties"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "warn", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["warn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "warnConditionallyRequiredProps", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["warnConditionallyRequiredProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "warnControlledUsage", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["warnControlledUsage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "warnDeprecations", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["warnDeprecations"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "warnMutuallyExclusive", function() { return _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["warnMutuallyExclusive"]; }); //# sourceMappingURL=Utilities.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/Viewport.js": /*!******************************************************!*\ !*** ./node_modules/@fluentui/react/lib/Viewport.js ***! \******************************************************/ /*! exports provided: withViewport */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utilities_decorators_withViewport__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utilities/decorators/withViewport */ "./node_modules/@fluentui/react/lib/utilities/decorators/withViewport.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withViewport", function() { return _utilities_decorators_withViewport__WEBPACK_IMPORTED_MODULE_0__["withViewport"]; }); //# sourceMappingURL=Viewport.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/WeeklyDayPicker.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/WeeklyDayPicker.js ***! \*************************************************************/ /*! exports provided: WeeklyDayPicker, defaultWeeklyDayPickerStrings, defaultWeeklyDayPickerNavigationIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _components_WeeklyDayPicker_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/WeeklyDayPicker/index */ "./node_modules/@fluentui/react/lib/components/WeeklyDayPicker/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WeeklyDayPicker", function() { return _components_WeeklyDayPicker_index__WEBPACK_IMPORTED_MODULE_0__["WeeklyDayPicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultWeeklyDayPickerStrings", function() { return _components_WeeklyDayPicker_index__WEBPACK_IMPORTED_MODULE_0__["defaultWeeklyDayPickerStrings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultWeeklyDayPickerNavigationIcons", function() { return _components_WeeklyDayPicker_index__WEBPACK_IMPORTED_MODULE_0__["defaultWeeklyDayPickerNavigationIcons"]; }); //# sourceMappingURL=WeeklyDayPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/WindowProvider.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/WindowProvider.js ***! \************************************************************/ /*! exports provided: WindowContext, WindowProvider, useDocument, useWindow */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib/version.js"); /* harmony import */ var _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WindowContext", function() { return _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__["WindowContext"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WindowProvider", function() { return _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__["WindowProvider"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useDocument", function() { return _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__["useDocument"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useWindow", function() { return _fluentui_react_window_provider__WEBPACK_IMPORTED_MODULE_1__["useWindow"]; }); //# sourceMappingURL=WindowProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/common/DirectionalHint.js ***! \********************************************************************/ /*! exports provided: DirectionalHint */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionalHint", function() { return DirectionalHint; }); var DirectionalHint = { /** * Appear above the target element, with the left edges of the callout and target aligning. */ topLeftEdge: 0, /** * Appear above the target element, with the centers of the callout and target aligning. */ topCenter: 1, /** * Appear above the target element, with the right edges of the callout and target aligning. */ topRightEdge: 2, /** * Appear above the target element, aligning with the target element such that the callout tends toward * the center of the screen. */ topAutoEdge: 3, /** * Appear below the target element, with the left edges of the callout and target aligning. */ bottomLeftEdge: 4, /** * Appear below the target element, with the centers of the callout and target aligning. */ bottomCenter: 5, /** * Appear below the target element, with the right edges of the callout and target aligning. */ bottomRightEdge: 6, /** * Appear below the target element, aligning with the target element such that the callout tends toward * the center of the screen. */ bottomAutoEdge: 7, /** * Appear to the left of the target element, with the top edges of the callout and target aligning. */ leftTopEdge: 8, /** * Appear to the left of the target element, with the centers of the callout and target aligning. */ leftCenter: 9, /** * Appear to the left of the target element, with the bottom edges of the callout and target aligning. */ leftBottomEdge: 10, /** * Appear to the right of the target element, with the top edges of the callout and target aligning. */ rightTopEdge: 11, /** * Appear to the right of the target element, with the centers of the callout and target aligning. */ rightCenter: 12, /** * Appear to the right of the target element, with the bottom edges of the callout and target aligning. */ rightBottomEdge: 13, }; //# sourceMappingURL=DirectionalHint.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.classNames.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.classNames.js ***! \*********************************************************************************************/ /*! exports provided: getClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassNames", function() { return getClassNames; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (styles, className, activityPersonas, isCompact) { return { root: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem', className, styles.root, isCompact && styles.isCompactRoot), pulsingBeacon: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-pulsingBeacon', styles.pulsingBeacon), personaContainer: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-personaContainer', styles.personaContainer, isCompact && styles.isCompactPersonaContainer), activityPersona: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-activityPersona', styles.activityPersona, isCompact && styles.isCompactPersona, !isCompact && activityPersonas && activityPersonas.length === 2 && styles.doublePersona), activityTypeIcon: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-activityTypeIcon', styles.activityTypeIcon, isCompact && styles.isCompactIcon), activityContent: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-activityContent', styles.activityContent, isCompact && styles.isCompactContent), activityText: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-activityText', styles.activityText), commentText: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-commentText', styles.commentText), timeStamp: Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["mergeStyles"])('ms-ActivityItem-timeStamp', styles.timeStamp, isCompact && styles.isCompactTimeStamp), }; }); //# sourceMappingURL=ActivityItem.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.js ***! \**********************************************************************************/ /*! exports provided: ActivityItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivityItem", function() { return ActivityItem; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ActivityItem_classNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ActivityItem.classNames */ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.classNames.js"); /* harmony import */ var _ActivityItem_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivityItem.styles */ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.styles.js"); /* harmony import */ var _Persona__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Persona */ "./node_modules/@fluentui/react/lib/Persona.js"); /** * {@docCategory ActivityItem} */ var ActivityItem = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ActivityItem, _super); function ActivityItem(props) { var _this = _super.call(this, props) || this; _this._onRenderIcon = function (props) { if (props.activityPersonas) { return _this._onRenderPersonaArray(props); } else { return _this.props.activityIcon; } }; _this._onRenderActivityDescription = function (props) { var classNames = _this._getClassNames(props); // eslint-disable-next-line deprecation/deprecation var activityDescription = props.activityDescription || props.activityDescriptionText; if (activityDescription) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.activityText }, activityDescription); } return null; }; _this._onRenderComments = function (props) { var classNames = _this._getClassNames(props); // eslint-disable-next-line deprecation/deprecation var comments = props.comments || props.commentText; if (!props.isCompact && comments) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.commentText }, comments); } return null; }; _this._onRenderTimeStamp = function (props) { var classNames = _this._getClassNames(props); if (!props.isCompact && props.timeStamp) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.timeStamp }, props.timeStamp); } return null; }; // If activityPersonas is an array of persona props, build the persona cluster element. _this._onRenderPersonaArray = function (props) { var classNames = _this._getClassNames(props); var personaElement = null; var activityPersonas = props.activityPersonas; if (activityPersonas[0].imageUrl || activityPersonas[0].imageInitials) { var personaList_1 = []; var showSize16Personas_1 = activityPersonas.length > 1 || props.isCompact; var personaLimit_1 = props.isCompact ? 3 : 4; var style_1 = undefined; if (props.isCompact) { style_1 = { display: 'inline-block', width: '10px', minWidth: '10px', overflow: 'visible', }; } activityPersonas .filter(function (person, index) { return index < personaLimit_1; }) .forEach(function (person, index) { personaList_1.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Persona__WEBPACK_IMPORTED_MODULE_4__["PersonaCoin"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, person, { key: person.key || index, className: classNames.activityPersona, // eslint-disable-next-line deprecation/deprecation size: showSize16Personas_1 ? _Persona__WEBPACK_IMPORTED_MODULE_4__["PersonaSize"].size16 : _Persona__WEBPACK_IMPORTED_MODULE_4__["PersonaSize"].size32, style: style_1 }))); }); personaElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.personaContainer }, personaList_1); } return personaElement; }; return _this; } ActivityItem.prototype.render = function () { var _a = this.props, _b = _a.onRenderIcon, onRenderIcon = _b === void 0 ? this._onRenderIcon : _b, _c = _a.onRenderActivityDescription, onRenderActivityDescription = _c === void 0 ? this._onRenderActivityDescription : _c, _d = _a.onRenderComments, onRenderComments = _d === void 0 ? this._onRenderComments : _d, _e = _a.onRenderTimeStamp, onRenderTimeStamp = _e === void 0 ? this._onRenderTimeStamp : _e, animateBeaconSignal = _a.animateBeaconSignal, isCompact = _a.isCompact; var classNames = this._getClassNames(this.props); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root, style: this.props.style }, (this.props.activityPersonas || this.props.activityIcon || this.props.onRenderIcon) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.activityTypeIcon }, animateBeaconSignal && isCompact && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.pulsingBeacon }), onRenderIcon(this.props))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.activityContent }, onRenderActivityDescription(this.props, this._onRenderActivityDescription), onRenderComments(this.props, this._onRenderComments), onRenderTimeStamp(this.props, this._onRenderTimeStamp)))); }; ActivityItem.prototype._getClassNames = function (props) { return Object(_ActivityItem_classNames__WEBPACK_IMPORTED_MODULE_2__["getClassNames"])(Object(_ActivityItem_styles__WEBPACK_IMPORTED_MODULE_3__["getStyles"])(undefined, props.styles, props.animateBeaconSignal, props.beaconColorOne, props.beaconColorTwo, props.isCompact), props.className, props.activityPersonas, props.isCompact); }; return ActivityItem; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=ActivityItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.styles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.styles.js ***! \*****************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var DEFAULT_PERSONA_SIZE = '32px'; var COMPACT_PERSONA_SIZE = '16px'; var DEFAULT_ICON_SIZE = '16px'; var COMPACT_ICON_SIZE = '13px'; var ANIMATION_INNER_DIMENSION = '4px'; var ANIMATION_OUTER_DIMENSION = '28px'; var ANIMATION_BORDER_WIDTH = '4px'; var fadeIn = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function () { return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["keyframes"])({ from: { opacity: 0 }, to: { opacity: 1 }, }); }); var slideIn = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function () { return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["keyframes"])({ from: { transform: 'translateX(-10px)' }, to: { transform: 'translateX(0)' }, }); }); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (theme, customStyles, animateBeaconSignal, beaconColorOne, beaconColorTwo, isCompact) { var _a; if (theme === void 0) { theme = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getTheme"])(); } var continuousPulse = _Styling__WEBPACK_IMPORTED_MODULE_0__["PulsingBeaconAnimationStyles"].continuousPulseAnimationSingle(beaconColorOne ? beaconColorOne : theme.palette.themePrimary, beaconColorTwo ? beaconColorTwo : theme.palette.themeTertiary, ANIMATION_INNER_DIMENSION, ANIMATION_OUTER_DIMENSION, ANIMATION_BORDER_WIDTH); var continuousPulseAnimation = { animationName: continuousPulse, animationIterationCount: '1', animationDuration: '.8s', zIndex: 1, }; var slideInAnimation = { animationName: slideIn(), animationIterationCount: '1', animationDuration: '.5s', }; var fadeInAnimation = { animationName: fadeIn(), animationIterationCount: '1', animationDuration: '.5s', }; var ActivityItemStyles = { root: [ theme.fonts.small, { display: 'flex', justifyContent: 'flex-start', alignItems: 'flex-start', boxSizing: 'border-box', color: theme.palette.neutralSecondary, }, isCompact && animateBeaconSignal && fadeInAnimation, ], pulsingBeacon: [ { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: '0px', height: '0px', borderRadius: '225px', borderStyle: 'solid', opacity: 0, }, isCompact && animateBeaconSignal && continuousPulseAnimation, ], isCompactRoot: { alignItems: 'center', }, personaContainer: { display: 'flex', flexWrap: 'wrap', minWidth: DEFAULT_PERSONA_SIZE, width: DEFAULT_PERSONA_SIZE, height: DEFAULT_PERSONA_SIZE, }, isCompactPersonaContainer: { display: 'inline-flex', flexWrap: 'nowrap', flexBasis: 'auto', height: COMPACT_PERSONA_SIZE, width: 'auto', minWidth: '0', paddingRight: '6px', }, activityTypeIcon: { height: DEFAULT_PERSONA_SIZE, fontSize: DEFAULT_ICON_SIZE, lineHeight: DEFAULT_ICON_SIZE, marginTop: '3px', }, isCompactIcon: { height: COMPACT_PERSONA_SIZE, minWidth: COMPACT_PERSONA_SIZE, fontSize: COMPACT_ICON_SIZE, lineHeight: COMPACT_ICON_SIZE, color: theme.palette.themePrimary, marginTop: '1px', position: 'relative', display: 'flex', justifyContent: 'center', alignItems: 'center', selectors: { '.ms-Persona-imageArea': { margin: '-2px 0 0 -2px', border: '2px solid' + theme.palette.white, borderRadius: '50%', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { border: 'none', margin: '0', }, _a), }, }, }, activityPersona: { display: 'block', }, doublePersona: { selectors: { ':first-child': { alignSelf: 'flex-end', }, }, }, isCompactPersona: { display: 'inline-block', width: '8px', minWidth: '8px', overflow: 'visible', }, activityContent: [ { padding: '0 8px', }, isCompact && animateBeaconSignal && slideInAnimation, ], activityText: { display: 'inline', }, isCompactContent: { flex: '1', padding: '0 4px', whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflowX: 'hidden', }, commentText: { color: theme.palette.neutralPrimary, }, timeStamp: [ theme.fonts.tiny, { fontWeight: 400, color: theme.palette.neutralSecondary, }, ], isCompactTimeStamp: { display: 'inline-block', paddingLeft: '0.3em', fontSize: '1em', }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"])(ActivityItemStyles, customStyles); }); //# sourceMappingURL=ActivityItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.types.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.types.js ***! \****************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ActivityItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ActivityItem/index.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ActivityItem/index.js ***! \***************************************************************************/ /*! exports provided: getActivityItemStyles, getActivityItemClassNames, ActivityItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ActivityItem_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActivityItem.styles */ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getActivityItemStyles", function() { return _ActivityItem_styles__WEBPACK_IMPORTED_MODULE_0__["getStyles"]; }); /* harmony import */ var _ActivityItem_classNames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ActivityItem.classNames */ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.classNames.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getActivityItemClassNames", function() { return _ActivityItem_classNames__WEBPACK_IMPORTED_MODULE_1__["getClassNames"]; }); /* harmony import */ var _ActivityItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ActivityItem */ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityItem", function() { return _ActivityItem__WEBPACK_IMPORTED_MODULE_2__["ActivityItem"]; }); /* harmony import */ var _ActivityItem_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivityItem.types */ "./node_modules/@fluentui/react/lib/components/ActivityItem/ActivityItem.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Announced/Announced.base.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Announced/Announced.base.js ***! \*********************************************************************************/ /*! exports provided: AnnouncedBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnnouncedBase", function() { return AnnouncedBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory Announced} */ var AnnouncedBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnnouncedBase, _super); function AnnouncedBase() { return _super !== null && _super.apply(this, arguments) || this; } AnnouncedBase.prototype.render = function () { var _a = this.props, message = _a.message, styles = _a.styles, _b = _a.as, Root = _b === void 0 ? 'div' : _b, className = _a.className; var classNames = getClassNames(styles, { className: className }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Root, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ role: "status", className: classNames.root }, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(this.props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"], ['className'])), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Utilities__WEBPACK_IMPORTED_MODULE_2__["DelayedRender"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.screenReaderText }, message)))); }; AnnouncedBase.defaultProps = { 'aria-live': 'polite', }; return AnnouncedBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=Announced.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Announced/Announced.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Announced/Announced.js ***! \****************************************************************************/ /*! exports provided: Announced */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Announced", function() { return Announced; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Announced_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Announced.base */ "./node_modules/@fluentui/react/lib/components/Announced/Announced.base.js"); /* harmony import */ var _Announced_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Announced.styles */ "./node_modules/@fluentui/react/lib/components/Announced/Announced.styles.js"); var Announced = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Announced_base__WEBPACK_IMPORTED_MODULE_1__["AnnouncedBase"], _Announced_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"]); //# sourceMappingURL=Announced.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Announced/Announced.styles.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Announced/Announced.styles.js ***! \***********************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var getStyles = function (props) { return { root: props.className, screenReaderText: _Styling__WEBPACK_IMPORTED_MODULE_0__["hiddenContentStyle"], }; }; //# sourceMappingURL=Announced.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Announced/Announced.types.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Announced/Announced.types.js ***! \**********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Announced.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Announced/index.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Announced/index.js ***! \************************************************************************/ /*! exports provided: Announced, AnnouncedBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Announced__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Announced */ "./node_modules/@fluentui/react/lib/components/Announced/Announced.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Announced", function() { return _Announced__WEBPACK_IMPORTED_MODULE_0__["Announced"]; }); /* harmony import */ var _Announced_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Announced.base */ "./node_modules/@fluentui/react/lib/components/Announced/Announced.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnnouncedBase", function() { return _Announced_base__WEBPACK_IMPORTED_MODULE_1__["AnnouncedBase"]; }); /* harmony import */ var _Announced_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Announced.types */ "./node_modules/@fluentui/react/lib/components/Announced/Announced.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Autofill/Autofill.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Autofill/Autofill.js ***! \**************************************************************************/ /*! exports provided: Autofill */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Autofill", function() { return Autofill; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var SELECTION_FORWARD = 'forward'; var SELECTION_BACKWARD = 'backward'; /** * {@docCategory Autofill} */ var Autofill = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Autofill, _super); function Autofill(props) { var _this = _super.call(this, props) || this; _this._inputElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._autoFillEnabled = true; // Composition events are used when the character/text requires several keystrokes to be completed. // Some examples of this are mobile text input and languages like Japanese or Arabic. // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart _this._onCompositionStart = function (ev) { _this.setState({ isComposing: true }); _this._autoFillEnabled = false; }; // Composition events are used when the character/text requires several keystrokes to be completed. // Some examples of this are mobile text input and languages like Japanese or Arabic. // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart _this._onCompositionUpdate = function () { if (Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["isIE11"])()) { _this._updateValue(_this._getCurrentInputValue(), true); } }; // Composition events are used when the character/text requires several keystrokes to be completed. // Some examples of this are mobile text input and languages like Japanese or Arabic. // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart _this._onCompositionEnd = function (ev) { var inputValue = _this._getCurrentInputValue(); _this._tryEnableAutofill(inputValue, _this.value, false, true); _this.setState({ isComposing: false }); // Due to timing, this needs to be async, otherwise no text will be selected. _this._async.setTimeout(function () { // it's technically possible that the value of isComposing is reset during this timeout, // so explicitly trigger this with composing=true here, since it is supposed to be the // update for composition end _this._updateValue(_this._getCurrentInputValue(), false); }, 0); }; _this._onClick = function () { if (_this.value && _this.value !== '' && _this._autoFillEnabled) { _this._autoFillEnabled = false; } }; _this._onKeyDown = function (ev) { if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); } // If the event is actively being composed, then don't alert autofill. // Right now typing does not have isComposing, once that has been fixed any should be removed. if (!ev.nativeEvent.isComposing) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].backspace: _this._autoFillEnabled = false; break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].left: case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].right: if (_this._autoFillEnabled) { _this.setState({ inputValue: _this.props.suggestedDisplayValue || '' }); _this._autoFillEnabled = false; } break; default: if (!_this._autoFillEnabled) { // eslint-disable-next-line deprecation/deprecation if (_this.props.enableAutofillOnKeyPress.indexOf(ev.which) !== -1) { _this._autoFillEnabled = true; } } break; } } }; _this._onInputChanged = function (ev) { var value = _this._getCurrentInputValue(ev); if (!_this.state.isComposing) { _this._tryEnableAutofill(value, _this.value, ev.nativeEvent.isComposing); } // If it is not IE11 and currently composing, update the value if (!(Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["isIE11"])() && _this.state.isComposing)) { var nativeEventComposing = ev.nativeEvent.isComposing; var isComposing = nativeEventComposing === undefined ? _this.state.isComposing : nativeEventComposing; _this._updateValue(value, isComposing); } }; _this._onChanged = function () { // Swallow this event, we don't care about it // We must provide it because React PropTypes marks it as required, but onInput serves the correct purpose return; }; /** * Updates the current input value as well as getting a new display value. * @param newValue - The new value from the input */ _this._updateValue = function (newValue, composing) { // Only proceed if the value is nonempty and is different from the old value // This is to work around the fact that, in IE 11, inputs with a placeholder fire an onInput event on focus if (!newValue && newValue === _this.value) { return; } // eslint-disable-next-line deprecation/deprecation var _a = _this.props, onInputChange = _a.onInputChange, onInputValueChange = _a.onInputValueChange, updateValueInWillReceiveProps = _a.updateValueInWillReceiveProps; if (onInputChange) { newValue = (onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(newValue, composing)) || ''; } // if value is controlled in updateValueInWillReceiveProps, then we should not update the value in state now // https://github.com/microsoft/fluentui/issues/18499 updateValueInWillReceiveProps ? onInputValueChange === null || onInputValueChange === void 0 ? void 0 : onInputValueChange(newValue, composing) : _this.setState({ inputValue: newValue }, function () { return onInputValueChange === null || onInputValueChange === void 0 ? void 0 : onInputValueChange(newValue, composing); }); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["Async"](_this); _this.state = { inputValue: props.defaultVisibleValue || '', isComposing: false, }; return _this; } Autofill.getDerivedStateFromProps = function (props, state) { // eslint-disable-next-line deprecation/deprecation if (props.updateValueInWillReceiveProps) { // eslint-disable-next-line deprecation/deprecation var updatedInputValue = props.updateValueInWillReceiveProps(); // Don't update if we have a null value or the value isn't changing // the value should still update if an empty string is passed in if (updatedInputValue !== null && updatedInputValue !== state.inputValue && !state.isComposing) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, state), { inputValue: updatedInputValue }); } } return null; }; Object.defineProperty(Autofill.prototype, "cursorLocation", { get: function () { if (this._inputElement.current) { var inputElement = this._inputElement.current; if (inputElement.selectionDirection !== SELECTION_FORWARD) { return inputElement.selectionEnd; } else { return inputElement.selectionStart; } } else { return -1; } }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "isValueSelected", { get: function () { return Boolean(this.inputElement && this.inputElement.selectionStart !== this.inputElement.selectionEnd); }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "value", { get: function () { return this._getControlledValue() || this.state.inputValue || ''; }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "selectionStart", { get: function () { return this._inputElement.current ? this._inputElement.current.selectionStart : -1; }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "selectionEnd", { get: function () { return this._inputElement.current ? this._inputElement.current.selectionEnd : -1; }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "inputElement", { get: function () { return this._inputElement.current; }, enumerable: false, configurable: true }); Autofill.prototype.componentDidUpdate = function (_, _1, cursor) { var _a = this.props, suggestedDisplayValue = _a.suggestedDisplayValue, shouldSelectFullInputValueInComponentDidUpdate = _a.shouldSelectFullInputValueInComponentDidUpdate, preventValueSelection = _a.preventValueSelection; var differenceIndex = 0; if (preventValueSelection) { return; } var isFocused = this._inputElement.current && this._inputElement.current === document.activeElement; if (isFocused && this._autoFillEnabled && this.value && suggestedDisplayValue && _doesTextStartWith(suggestedDisplayValue, this.value)) { var shouldSelectFullRange = false; if (shouldSelectFullInputValueInComponentDidUpdate) { shouldSelectFullRange = shouldSelectFullInputValueInComponentDidUpdate(); } if (shouldSelectFullRange) { this._inputElement.current.setSelectionRange(0, suggestedDisplayValue.length, SELECTION_BACKWARD); } else { while (differenceIndex < this.value.length && this.value[differenceIndex].toLocaleLowerCase() === suggestedDisplayValue[differenceIndex].toLocaleLowerCase()) { differenceIndex++; } if (differenceIndex > 0) { this._inputElement.current.setSelectionRange(differenceIndex, suggestedDisplayValue.length, SELECTION_BACKWARD); } } } else if (this._inputElement.current) { if (cursor !== null && !this._autoFillEnabled && !this.state.isComposing) { this._inputElement.current.setSelectionRange(cursor.start, cursor.end, cursor.dir); } } }; Autofill.prototype.componentWillUnmount = function () { this._async.dispose(); }; Autofill.prototype.render = function () { var nativeProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(this.props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["inputProperties"]); var style = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props.style), { fontFamily: 'inherit' }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ autoCapitalize: "off", autoComplete: "off", "aria-autocomplete": 'both' }, nativeProps, { style: style, ref: this._inputElement, value: this._getDisplayValue(), onCompositionStart: this._onCompositionStart, onCompositionUpdate: this._onCompositionUpdate, onCompositionEnd: this._onCompositionEnd, // TODO (Fabric 8?) - switch to calling only onChange. See notes in TextField._onInputChange. onChange: this._onChanged, onInput: this._onInputChanged, onKeyDown: this._onKeyDown, onClick: this.props.onClick ? this.props.onClick : this._onClick, "data-lpignore": true }))); }; Autofill.prototype.focus = function () { this._inputElement.current && this._inputElement.current.focus(); }; Autofill.prototype.clear = function () { this._autoFillEnabled = true; this._updateValue('', false); this._inputElement.current && this._inputElement.current.setSelectionRange(0, 0); }; Autofill.prototype.getSnapshotBeforeUpdate = function () { var _a, _b; var inel = this._inputElement.current; if (inel && inel.selectionStart !== this.value.length) { return { start: (_a = inel.selectionStart) !== null && _a !== void 0 ? _a : inel.value.length, end: (_b = inel.selectionEnd) !== null && _b !== void 0 ? _b : inel.value.length, dir: inel.selectionDirection || 'backward' || 'none', }; } return null; }; Autofill.prototype._getCurrentInputValue = function (ev) { if (ev && ev.target && ev.target.value) { return ev.target.value; } else if (this.inputElement && this.inputElement.value) { return this.inputElement.value; } else { return ''; } }; /** * Attempts to enable autofill. Whether or not autofill is enabled depends on the input value, * whether or not any text is selected, and only if the new input value is longer than the old input value. * Autofill should never be set to true if the value is composing. Once compositionEnd is called, then * it should be completed. * See https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent for more information on composition. * @param newValue - new input value * @param oldValue - old input value * @param isComposing - if true then the text is actively being composed and it has not completed. * @param isComposed - if the text is a composed text value. */ Autofill.prototype._tryEnableAutofill = function (newValue, oldValue, isComposing, isComposed) { if (!isComposing && newValue && this._inputElement.current && this._inputElement.current.selectionStart === newValue.length && !this._autoFillEnabled && (newValue.length > oldValue.length || isComposed)) { this._autoFillEnabled = true; } }; Autofill.prototype._getDisplayValue = function () { if (this._autoFillEnabled) { return _getDisplayValue(this.value, this.props.suggestedDisplayValue); } return this.value; }; Autofill.prototype._getControlledValue = function () { var value = this.props.value; if (value === undefined || typeof value === 'string') { return value; } // eslint-disable-next-line no-console console.warn("props.value of Autofill should be a string, but it is " + value + " with type of " + typeof value); return value.toString(); }; Autofill.defaultProps = { enableAutofillOnKeyPress: [_Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down, _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up], }; return Autofill; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); /** * Returns a string that should be used as the display value. * It evaluates this based on whether or not the suggested value starts with the input value * and whether or not autofill is enabled. * @param inputValue - the value that the input currently has. * @param suggestedDisplayValue - the possible full value */ function _getDisplayValue(inputValue, suggestedDisplayValue) { var displayValue = inputValue; if (suggestedDisplayValue && inputValue && _doesTextStartWith(suggestedDisplayValue, displayValue)) { displayValue = suggestedDisplayValue; } return displayValue; } function _doesTextStartWith(text, startWith) { if (!text || !startWith) { return false; } if (true) { for (var _i = 0, _a = [text, startWith]; _i < _a.length; _i++) { var val = _a[_i]; if (typeof val !== 'string') { throw new Error(Autofill.name + " received non-string value \"" + val + "\" of type " + typeof val + " from either input's value or suggestedDisplayValue"); } } } return text.toLocaleLowerCase().indexOf(startWith.toLocaleLowerCase()) === 0; } //# sourceMappingURL=Autofill.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Autofill/Autofill.types.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Autofill/Autofill.types.js ***! \********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Autofill.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Autofill/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Autofill/index.js ***! \***********************************************************************/ /*! exports provided: Autofill */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Autofill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Autofill */ "./node_modules/@fluentui/react/lib/components/Autofill/Autofill.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Autofill", function() { return _Autofill__WEBPACK_IMPORTED_MODULE_0__["Autofill"]; }); /* harmony import */ var _Autofill_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Autofill.types */ "./node_modules/@fluentui/react/lib/components/Autofill/Autofill.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.base.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.base.js ***! \***********************************************************************************/ /*! exports provided: BreadcrumbBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbBase", function() { return BreadcrumbBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Link */ "./node_modules/@fluentui/react/lib/Link.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _ResizeGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../ResizeGroup */ "./node_modules/@fluentui/react/lib/ResizeGroup.js"); /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib/Tooltip.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var OVERFLOW_KEY = 'overflow'; var nullFunction = function () { return null; }; var nonActionableItemProps = { styles: function (props) { var theme = props.theme; return { root: { selectors: { '&.is-disabled': { color: theme.semanticColors.bodyText, }, }, }, }; }, }; /** * {@docCategory Breadcrumb} */ var BreadcrumbBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BreadcrumbBase, _super); function BreadcrumbBase(props) { var _this = _super.call(this, props) || this; _this._focusZone = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); /** * Remove the first rendered item past the overlow point and put it and the end the overflow set. */ _this._onReduceData = function (data) { var renderedItems = data.renderedItems, renderedOverflowItems = data.renderedOverflowItems; var overflowIndex = data.props.overflowIndex; var movedItem = renderedItems[overflowIndex]; if (!movedItem) { return undefined; } renderedItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], renderedItems); renderedItems.splice(overflowIndex, 1); renderedOverflowItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], renderedOverflowItems), [movedItem]); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems }); }; /** * Remove the last item of the overflow set and insert the item as the start of the rendered set past the overflow * point. */ _this._onGrowData = function (data) { var renderedItems = data.renderedItems, renderedOverflowItems = data.renderedOverflowItems; var _a = data.props, overflowIndex = _a.overflowIndex, maxDisplayedItems = _a.maxDisplayedItems; renderedOverflowItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], renderedOverflowItems); var movedItem = renderedOverflowItems.pop(); if (!movedItem || renderedItems.length >= maxDisplayedItems) { return undefined; } renderedItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], renderedItems); renderedItems.splice(overflowIndex, 0, movedItem); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems }); }; _this._onRenderBreadcrumb = function (data) { var _a = data.props, ariaLabel = _a.ariaLabel, _b = _a.dividerAs, DividerType = _b === void 0 ? _Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"] : _b, onRenderItem = _a.onRenderItem, overflowAriaLabel = _a.overflowAriaLabel, overflowIndex = _a.overflowIndex, onRenderOverflowIcon = _a.onRenderOverflowIcon, overflowButtonAs = _a.overflowButtonAs; var renderedOverflowItems = data.renderedOverflowItems, renderedItems = data.renderedItems; var contextualItems = renderedOverflowItems.map(function (item) { var isActionable = !!(item.onClick || item.href); return { text: item.text, name: item.text, key: item.key, onClick: item.onClick ? _this._onBreadcrumbClicked.bind(_this, item) : null, href: item.href, disabled: !isActionable, itemProps: isActionable ? undefined : nonActionableItemProps, }; }); // Find index of last rendered item so the divider icon // knows not to render on that item var lastItemIndex = renderedItems.length - 1; var hasOverflowItems = renderedOverflowItems && renderedOverflowItems.length !== 0; var itemElements = renderedItems.map(function (item, index) { var finalOnRenderItem = _this._onRenderItem; if (item.onRender) { finalOnRenderItem = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(item.onRender, finalOnRenderItem); } if (onRenderItem) { finalOnRenderItem = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(onRenderItem, finalOnRenderItem); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { className: _this._classNames.listItem, key: item.key || String(index) }, finalOnRenderItem(item), (index !== lastItemIndex || (hasOverflowItems && index === overflowIndex - 1)) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](DividerType, { className: _this._classNames.chevron, iconName: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(_this.props.theme) ? 'ChevronLeft' : 'ChevronRight', item: item })))); }); if (hasOverflowItems) { var iconProps = !onRenderOverflowIcon ? { iconName: 'More' } : {}; var onRenderMenuIcon = onRenderOverflowIcon ? onRenderOverflowIcon : nullFunction; var OverflowButton = overflowButtonAs ? overflowButtonAs : _Button__WEBPACK_IMPORTED_MODULE_6__["IconButton"]; itemElements.splice(overflowIndex, 0, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { className: _this._classNames.overflow, key: OVERFLOW_KEY }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](OverflowButton, { className: _this._classNames.overflowButton, iconProps: iconProps, role: "button", "aria-haspopup": "true", ariaLabel: overflowAriaLabel, onRenderMenuIcon: onRenderMenuIcon, menuProps: { items: contextualItems, directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_7__["DirectionalHint"].bottomLeftEdge, } }), overflowIndex !== lastItemIndex + 1 && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](DividerType, { className: _this._classNames.chevron, iconName: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(_this.props.theme) ? 'ChevronLeft' : 'ChevronRight', item: renderedOverflowItems[renderedOverflowItems.length - 1] })))); } var nativeProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(_this.props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["htmlElementProperties"], [ 'className', ]); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: _this._classNames.root, role: "navigation", "aria-label": ariaLabel }, nativeProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_3__["FocusZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ componentRef: _this._focusZone, direction: _FocusZone__WEBPACK_IMPORTED_MODULE_3__["FocusZoneDirection"].horizontal }, _this.props.focusZoneProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ol", { className: _this._classNames.list }, itemElements)))); }; _this._onRenderItem = function (item) { if (!item) { return null; } var as = item.as, href = item.href, onClick = item.onClick, isCurrentItem = item.isCurrentItem, text = item.text, onRenderContent = item.onRenderContent, additionalProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(item, ["as", "href", "onClick", "isCurrentItem", "text", "onRenderContent"]); var finalOnRenderContent = defaultOnRenderCrumbContent; if (onRenderContent) { finalOnRenderContent = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(onRenderContent, finalOnRenderContent); } if (_this.props.onRenderItemContent) { finalOnRenderContent = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(_this.props.onRenderItemContent, finalOnRenderContent); } if (onClick || href) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Link__WEBPACK_IMPORTED_MODULE_4__["Link"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, additionalProps, { as: as, className: _this._classNames.itemLink, href: href, "aria-current": isCurrentItem ? 'page' : undefined, // eslint-disable-next-line react/jsx-no-bind onClick: _this._onBreadcrumbClicked.bind(_this, item) }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipHost"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ content: text, overflowMode: _Tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipOverflowMode"].Parent }, _this.props.tooltipHostProps), finalOnRenderContent(item)))); } else { var Tag = as || 'span'; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Tag, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, additionalProps, { className: _this._classNames.item }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipHost"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ content: text, overflowMode: _Tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipOverflowMode"].Parent }, _this.props.tooltipHostProps), finalOnRenderContent(item)))); } }; _this._onBreadcrumbClicked = function (item, ev) { if (item.onClick) { item.onClick(ev, item); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._validateProps(props); return _this; } /** * Sets focus to the first breadcrumb link. */ BreadcrumbBase.prototype.focus = function () { if (this._focusZone.current) { this._focusZone.current.focus(); } }; BreadcrumbBase.prototype.render = function () { this._validateProps(this.props); var _a = this.props, _b = _a.onReduceData, onReduceData = _b === void 0 ? this._onReduceData : _b, _c = _a.onGrowData, onGrowData = _c === void 0 ? this._onGrowData : _c, overflowIndex = _a.overflowIndex, maxDisplayedItems = _a.maxDisplayedItems, items = _a.items, className = _a.className, theme = _a.theme, styles = _a.styles; var renderedItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], items); var renderedOverflowItems = renderedItems.splice(overflowIndex, renderedItems.length - maxDisplayedItems); var breadcrumbData = { props: this.props, renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems, }; this._classNames = getClassNames(styles, { className: className, theme: theme, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ResizeGroup__WEBPACK_IMPORTED_MODULE_8__["ResizeGroup"], { onRenderData: this._onRenderBreadcrumb, onReduceData: onReduceData, onGrowData: onGrowData, data: breadcrumbData })); }; /** * Validate incoming props * @param props - Props to validate */ BreadcrumbBase.prototype._validateProps = function (props) { var maxDisplayedItems = props.maxDisplayedItems, overflowIndex = props.overflowIndex, items = props.items; if (overflowIndex < 0 || (maxDisplayedItems > 1 && overflowIndex > maxDisplayedItems - 1) || (items.length > 0 && overflowIndex > items.length - 1)) { throw new Error('Breadcrumb: overflowIndex out of range'); } }; BreadcrumbBase.defaultProps = { items: [], maxDisplayedItems: 999, overflowIndex: 0, }; return BreadcrumbBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); function defaultOnRenderCrumbContent(item) { return item ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, item.text) : null; } //# sourceMappingURL=Breadcrumb.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.js ***! \******************************************************************************/ /*! exports provided: Breadcrumb */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return Breadcrumb; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Breadcrumb_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Breadcrumb.base */ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.base.js"); /* harmony import */ var _Breadcrumb_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Breadcrumb.styles */ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.styles.js"); var Breadcrumb = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Breadcrumb_base__WEBPACK_IMPORTED_MODULE_1__["BreadcrumbBase"], _Breadcrumb_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'Breadcrumb' }); //# sourceMappingURL=Breadcrumb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.styles.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.styles.js ***! \*************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var GlobalClassNames = { root: 'ms-Breadcrumb', list: 'ms-Breadcrumb-list', listItem: 'ms-Breadcrumb-listItem', chevron: 'ms-Breadcrumb-chevron', overflow: 'ms-Breadcrumb-overflow', overflowButton: 'ms-Breadcrumb-overflowButton', itemLink: 'ms-Breadcrumb-itemLink', item: 'ms-Breadcrumb-item', }; var SingleLineTextStyle = { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', }; var overflowButtonFontSize = 16; var chevronSmallFontSize = 8; var itemLineHeight = 36; var itemFontSize = 18; var MinimumScreenSelector = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getScreenSelector"])(0, _Styling__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxSmall"]); var MediumScreenSelector = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getScreenSelector"])(_Styling__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMinMedium"], _Styling__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxMedium"]); var getStyles = function (props) { var _a, _b, _c, _d, _e; var className = props.className, theme = props.theme; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); // Tokens var itemBackgroundHoveredColor = semanticColors.menuItemBackgroundHovered; var itemBackgroundPressedColor = semanticColors.menuItemBackgroundPressed; var itemTextColor = palette.neutralSecondary; var itemTextFontWeight = _Styling__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].regular; var itemTextHoveredOrPressedColor = palette.neutralPrimary; var itemLastChildTextColor = palette.neutralPrimary; var itemLastChildTextFontWeight = _Styling__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold; var chevronButtonColor = palette.neutralSecondary; var overflowButtonColor = palette.neutralSecondary; var lastChildItemStyles = { fontWeight: itemLastChildTextFontWeight, color: itemLastChildTextColor, }; var itemStateSelectors = { ':hover': { color: itemTextHoveredOrPressedColor, backgroundColor: itemBackgroundHoveredColor, cursor: 'pointer', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Highlight', backgroundColor: 'transparent', }, _a), }, ':active': { backgroundColor: itemBackgroundPressedColor, color: itemTextHoveredOrPressedColor, }, '&:active:hover': { color: itemTextHoveredOrPressedColor, backgroundColor: itemBackgroundPressedColor, }, '&:active, &:hover, &:active:hover': { textDecoration: 'none', }, }; var commonItemStyles = { color: itemTextColor, padding: '0 8px', lineHeight: itemLineHeight, fontSize: itemFontSize, fontWeight: itemTextFontWeight, }; var overflowButtonHighContrastFocus = { left: 1, right: 1, top: 1, bottom: 1, }; return { root: [ classNames.root, fonts.medium, { margin: '11px 0 1px', }, className, ], list: [ classNames.list, { whiteSpace: 'nowrap', padding: 0, margin: 0, display: 'flex', alignItems: 'stretch', }, ], listItem: [ classNames.listItem, { listStyleType: 'none', margin: '0', padding: '0', display: 'flex', position: 'relative', alignItems: 'center', selectors: { '&:last-child .ms-Breadcrumb-itemLink': Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, lastChildItemStyles), (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { MsHighContrastAdjust: 'auto', forcedColorAdjust: 'auto', }, _b)), '&:last-child .ms-Breadcrumb-item': lastChildItemStyles, }, }, ], chevron: [ classNames.chevron, { color: chevronButtonColor, fontSize: fonts.small.fontSize, selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _c[MediumScreenSelector] = { fontSize: chevronSmallFontSize, }, _c[MinimumScreenSelector] = { fontSize: chevronSmallFontSize, }, _c), }, ], overflow: [ classNames.overflow, { position: 'relative', display: 'flex', alignItems: 'center', }, ], overflowButton: [ classNames.overflowButton, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { highContrastStyle: overflowButtonHighContrastFocus }), SingleLineTextStyle, { fontSize: overflowButtonFontSize, color: overflowButtonColor, height: '100%', cursor: 'pointer', selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, itemStateSelectors), (_d = {}, _d[MinimumScreenSelector] = { padding: '4px 6px', }, _d[MediumScreenSelector] = { fontSize: fonts.mediumPlus.fontSize, }, _d)), }, ], itemLink: [ classNames.itemLink, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme), SingleLineTextStyle, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, commonItemStyles), { selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])((_e = { ':focus': { color: palette.neutralDark, } }, _e["." + _Utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &:focus"] = { outline: "none", }, _e), itemStateSelectors) }), ], item: [ classNames.item, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, commonItemStyles), { selectors: { ':hover': { cursor: 'default', }, } }), ], }; }; //# sourceMappingURL=Breadcrumb.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.types.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.types.js ***! \************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Breadcrumb.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Breadcrumb/index.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Breadcrumb/index.js ***! \*************************************************************************/ /*! exports provided: Breadcrumb, BreadcrumbBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb */ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["Breadcrumb"]; }); /* harmony import */ var _Breadcrumb_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Breadcrumb.base */ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbBase", function() { return _Breadcrumb_base__WEBPACK_IMPORTED_MODULE_1__["BreadcrumbBase"]; }); /* harmony import */ var _Breadcrumb_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Breadcrumb.types */ "./node_modules/@fluentui/react/lib/components/Breadcrumb/Breadcrumb.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.js ***! \*****************************************************************************************/ /*! exports provided: ActionButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return ActionButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _BaseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ActionButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ActionButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.styles.js"); /** * {@docCategory Button} */ var ActionButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ActionButton, _super); function ActionButton() { return _super !== null && _super.apply(this, arguments) || this; } ActionButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_BaseButton__WEBPACK_IMPORTED_MODULE_2__["BaseButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { variantClassName: "ms-Button--action ms-Button--command", styles: Object(_ActionButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme, styles), onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"] }))); }; ActionButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('ActionButton', ['theme', 'styles'], true) ], ActionButton); return ActionButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=ActionButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.styles.js ***! \************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _BaseButton_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"); var DEFAULT_BUTTON_HEIGHT = '40px'; var DEFAULT_PADDING = '0 4px'; var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (theme, customStyles) { var _a, _b, _c; var baseButtonStyles = Object(_BaseButton_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"])(theme); var actionButtonStyles = { root: { padding: DEFAULT_PADDING, height: DEFAULT_BUTTON_HEIGHT, color: theme.palette.neutralPrimary, backgroundColor: 'transparent', border: '1px solid transparent', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { borderColor: 'Window', }, _a), }, rootHovered: { color: theme.palette.themePrimary, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { color: 'Highlight', }, _b), }, iconHovered: { color: theme.palette.themePrimary, }, rootPressed: { color: theme.palette.black, }, rootExpanded: { color: theme.palette.themePrimary, }, iconPressed: { color: theme.palette.themeDarker, }, rootDisabled: { color: theme.palette.neutralTertiary, backgroundColor: 'transparent', borderColor: 'transparent', selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { color: 'GrayText', }, _c), }, rootChecked: { color: theme.palette.black, }, iconChecked: { color: theme.palette.themeDarker, }, flexContainer: { justifyContent: 'flex-start', }, icon: { color: theme.palette.themeDarkAlt, }, iconDisabled: { color: 'inherit', }, menuIcon: { color: theme.palette.neutralSecondary, }, textContainer: { flexGrow: 0, }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"])(baseButtonStyles, actionButtonStyles, customStyles); }); //# sourceMappingURL=ActionButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js ***! \*************************************************************************************/ /*! exports provided: ButtonGlobalClassNames, getBaseButtonClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonGlobalClassNames", function() { return ButtonGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBaseButtonClassNames", function() { return getBaseButtonClassNames; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var ButtonGlobalClassNames = { msButton: 'ms-Button', msButtonHasMenu: 'ms-Button--hasMenu', msButtonIcon: 'ms-Button-icon', msButtonMenuIcon: 'ms-Button-menuIcon', msButtonLabel: 'ms-Button-label', msButtonDescription: 'ms-Button-description', msButtonScreenReaderText: 'ms-Button-screenReaderText', msButtonFlexContainer: 'ms-Button-flexContainer', msButtonTextContainer: 'ms-Button-textContainer', }; var getBaseButtonClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])(function (theme, styles, className, variantClassName, iconClassName, menuIconClassName, disabled, hasMenu, checked, expanded, isSplit) { var _a, _b; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(ButtonGlobalClassNames, theme || {}); var isExpanded = expanded && !isSplit; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"])({ root: [ classNames.msButton, styles.root, variantClassName, checked && ['is-checked', styles.rootChecked], isExpanded && [ 'is-expanded', styles.rootExpanded, { selectors: (_a = {}, _a[":hover ." + classNames.msButtonIcon] = styles.iconExpandedHovered, // menuIcon falls back to rootExpandedHovered to support original behavior _a[":hover ." + classNames.msButtonMenuIcon] = styles.menuIconExpandedHovered || styles.rootExpandedHovered, _a[':hover'] = styles.rootExpandedHovered, _a), }, ], hasMenu && [ButtonGlobalClassNames.msButtonHasMenu, styles.rootHasMenu], disabled && ['is-disabled', styles.rootDisabled], !disabled && !isExpanded && !checked && { selectors: (_b = { ':hover': styles.rootHovered }, _b[":hover ." + classNames.msButtonLabel] = styles.labelHovered, _b[":hover ." + classNames.msButtonIcon] = styles.iconHovered, _b[":hover ." + classNames.msButtonDescription] = styles.descriptionHovered, _b[":hover ." + classNames.msButtonMenuIcon] = styles.menuIconHovered, _b[':focus'] = styles.rootFocused, _b[':active'] = styles.rootPressed, _b[":active ." + classNames.msButtonIcon] = styles.iconPressed, _b[":active ." + classNames.msButtonDescription] = styles.descriptionPressed, _b[":active ." + classNames.msButtonMenuIcon] = styles.menuIconPressed, _b), }, disabled && checked && [styles.rootCheckedDisabled], !disabled && checked && { selectors: { ':hover': styles.rootCheckedHovered, ':active': styles.rootCheckedPressed, }, }, className, ], flexContainer: [classNames.msButtonFlexContainer, styles.flexContainer], textContainer: [classNames.msButtonTextContainer, styles.textContainer], icon: [ classNames.msButtonIcon, iconClassName, styles.icon, isExpanded && styles.iconExpanded, checked && styles.iconChecked, disabled && styles.iconDisabled, ], label: [classNames.msButtonLabel, styles.label, checked && styles.labelChecked, disabled && styles.labelDisabled], menuIcon: [ classNames.msButtonMenuIcon, menuIconClassName, styles.menuIcon, checked && styles.menuIconChecked, disabled && !isSplit && styles.menuIconDisabled, !disabled && !isExpanded && !checked && { selectors: { ':hover': styles.menuIconHovered, ':active': styles.menuIconPressed, }, }, isExpanded && ['is-expanded', styles.menuIconExpanded], ], description: [ classNames.msButtonDescription, styles.description, checked && styles.descriptionChecked, disabled && styles.descriptionDisabled, ], screenReaderText: [classNames.msButtonScreenReaderText, styles.screenReaderText], }); }); //# sourceMappingURL=BaseButton.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/BaseButton.js ***! \**************************************************************************/ /*! exports provided: BaseButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseButton", function() { return BaseButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _ContextualMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../ContextualMenu */ "./node_modules/@fluentui/react/lib/ContextualMenu.js"); /* harmony import */ var _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BaseButton.classNames */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js"); /* harmony import */ var _SplitButton_SplitButton_classNames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SplitButton/SplitButton.classNames */ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js"); /* harmony import */ var _KeytipData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../KeytipData */ "./node_modules/@fluentui/react/lib/KeytipData.js"); var TouchIdleDelay = 500; /* ms */ var COMPONENT_NAME = 'BaseButton'; /** * {@docCategory Button} */ var BaseButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BaseButton, _super); function BaseButton(props) { var _this = _super.call(this, props) || this; _this._buttonElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._splitButtonContainer = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._mergedRef = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["createMergedRef"])(); _this._renderedVisibleMenu = false; _this._getMemoizedMenuButtonKeytipProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (keytipProps) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, keytipProps), { hasMenu: true }); }); _this._onRenderIcon = function (buttonProps, defaultRender) { var iconProps = _this.props.iconProps; if (iconProps && (iconProps.iconName !== undefined || iconProps.imageProps)) { var className = iconProps.className, imageProps = iconProps.imageProps, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(iconProps, ["className", "imageProps"]); // If the styles prop is specified as part of iconProps, fall back to regular Icon as FontIcon and ImageIcon // do not have this prop. if (iconProps.styles) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(_this._classNames.icon, className), imageProps: imageProps }, rest)); } if (iconProps.iconName) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["FontIcon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(_this._classNames.icon, className) }, rest)); } if (imageProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["ImageIcon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(_this._classNames.icon, className), imageProps: imageProps }, rest)); } } return null; }; _this._onRenderTextContents = function () { var _a = _this.props, text = _a.text, children = _a.children, // eslint-disable-next-line deprecation/deprecation _b = _a.secondaryText, // eslint-disable-next-line deprecation/deprecation secondaryText = _b === void 0 ? _this.props.description : _b, _c = _a.onRenderText, onRenderText = _c === void 0 ? _this._onRenderText : _c, _d = _a.onRenderDescription, onRenderDescription = _d === void 0 ? _this._onRenderDescription : _d; if (text || typeof children === 'string' || secondaryText) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.textContainer }, onRenderText(_this.props, _this._onRenderText), onRenderDescription(_this.props, _this._onRenderDescription))); } return [onRenderText(_this.props, _this._onRenderText), onRenderDescription(_this.props, _this._onRenderDescription)]; }; _this._onRenderText = function () { var text = _this.props.text; var children = _this.props.children; // For backwards compat, we should continue to take in the text content from children. if (text === undefined && typeof children === 'string') { text = children; } if (_this._hasText()) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { key: _this._labelId, className: _this._classNames.label, id: _this._labelId }, text)); } return null; }; _this._onRenderChildren = function () { var children = _this.props.children; // If children is just a string, either it or the text will be rendered via onRenderLabel // If children is another component, it will be rendered after text if (typeof children === 'string') { return null; } return children; }; _this._onRenderDescription = function (props) { // eslint-disable-next-line deprecation/deprecation var _a = props.secondaryText, secondaryText = _a === void 0 ? _this.props.description : _a; // ms-Button-description is only shown when the button type is compound. // In other cases it will not be displayed. return secondaryText ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { key: _this._descriptionId, className: _this._classNames.description, id: _this._descriptionId }, secondaryText)) : null; }; _this._onRenderAriaDescription = function () { var ariaDescription = _this.props.ariaDescription; // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan, // otherwise it will be assigned to descriptionSpan. return ariaDescription ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.screenReaderText, id: _this._ariaDescriptionId }, ariaDescription)) : null; }; _this._onRenderMenuIcon = function (props) { var menuIconProps = _this.props.menuIconProps; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["FontIcon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ iconName: "ChevronDown" }, menuIconProps, { className: _this._classNames.menuIcon })); }; _this._onRenderMenu = function (menuProps) { var MenuType = _this.props.menuAs ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeComponentAs"])(_this.props.menuAs, _ContextualMenu__WEBPACK_IMPORTED_MODULE_5__["ContextualMenu"]) : _ContextualMenu__WEBPACK_IMPORTED_MODULE_5__["ContextualMenu"]; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](MenuType, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, menuProps)); }; _this._onDismissMenu = function (ev) { var menuProps = _this.props.menuProps; if (menuProps && menuProps.onDismiss) { menuProps.onDismiss(ev); } if (!ev || !ev.defaultPrevented) { _this._dismissMenu(); } }; _this._dismissMenu = function () { _this._menuShouldFocusOnMount = undefined; _this._menuShouldFocusOnContainer = undefined; _this.setState({ menuHidden: true }); }; _this._openMenu = function (shouldFocusOnContainer, shouldFocusOnMount) { if (shouldFocusOnMount === void 0) { shouldFocusOnMount = true; } if (_this.props.menuProps) { _this._menuShouldFocusOnContainer = shouldFocusOnContainer; _this._menuShouldFocusOnMount = shouldFocusOnMount; _this._renderedVisibleMenu = true; _this.setState({ menuHidden: false }); } }; _this._onToggleMenu = function (shouldFocusOnContainer) { var shouldFocusOnMount = true; if (_this.props.menuProps && _this.props.menuProps.shouldFocusOnMount === false) { shouldFocusOnMount = false; } _this.state.menuHidden ? _this._openMenu(shouldFocusOnContainer, shouldFocusOnMount) : _this._dismissMenu(); }; _this._onSplitContainerFocusCapture = function (ev) { var container = _this._splitButtonContainer.current; // If the target is coming from the portal we do not need to set focus on the container. if (!container || (ev.target && Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["portalContainsElement"])(ev.target, container))) { return; } // We should never be able to focus the individual buttons in a split button. Focus // should always remain on the container. container.focus(); }; _this._onSplitButtonPrimaryClick = function (ev) { if (!_this.state.menuHidden) { _this._dismissMenu(); } if (!_this._processingTouch && _this.props.onClick) { _this.props.onClick(ev); } else if (_this._processingTouch) { _this._onMenuClick(ev); } }; _this._onKeyDown = function (ev) { // explicity cancelling event so click won't fire after this // eslint-disable-next-line deprecation/deprecation if (_this.props.disabled && (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter || ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space)) { ev.preventDefault(); ev.stopPropagation(); } else if (!_this.props.disabled) { if (_this.props.menuProps) { _this._onMenuKeyDown(ev); } else if (_this.props.onKeyDown !== undefined) { _this.props.onKeyDown(ev); // not cancelling event because it's not disabled } } }; _this._onKeyUp = function (ev) { if (!_this.props.disabled && _this.props.onKeyUp !== undefined) { _this.props.onKeyUp(ev); // not cancelling event because it's not disabled } }; _this._onKeyPress = function (ev) { // eslint-disable-next-line deprecation/deprecation if (!_this.props.disabled && _this.props.onKeyPress !== undefined) { // eslint-disable-next-line deprecation/deprecation _this.props.onKeyPress(ev); // not cancelling event because it's not disabled } }; _this._onMouseUp = function (ev) { if (!_this.props.disabled && _this.props.onMouseUp !== undefined) { _this.props.onMouseUp(ev); // not cancelling event because it's not disabled } }; _this._onMouseDown = function (ev) { if (!_this.props.disabled && _this.props.onMouseDown !== undefined) { _this.props.onMouseDown(ev); // not cancelling event because it's not disabled } }; _this._onClick = function (ev) { if (!_this.props.disabled) { if (_this.props.menuProps) { _this._onMenuClick(ev); } else if (_this.props.onClick !== undefined) { _this.props.onClick(ev); // not cancelling event because it's not disabled } } }; _this._onSplitButtonContainerKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter || ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space) { if (_this._buttonElement.current) { _this._buttonElement.current.click(); ev.preventDefault(); ev.stopPropagation(); } } else { _this._onMenuKeyDown(ev); } }; _this._onMenuKeyDown = function (ev) { var _a; if (_this.props.disabled) { return; } if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); } // eslint-disable-next-line deprecation/deprecation var isUp = ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up; // eslint-disable-next-line deprecation/deprecation var isDown = ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down; if (!ev.defaultPrevented && _this._isValidMenuOpenKey(ev)) { var onMenuClick = _this.props.onMenuClick; if (onMenuClick) { onMenuClick(ev, _this.props); } _this._onToggleMenu(false); ev.preventDefault(); ev.stopPropagation(); } // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter || ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space) { // We manually set the focus visibility to true if opening via Enter or Space to account for the scenario where // a user clicks on the button, closes the menu and then opens it via keyboard. In this scenario our default logic // for setting focus visibility is not triggered since there is no keyboard navigation present beforehand. Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["setFocusVisibility"])(true, ev.target, (_a = _this.context) === null || _a === void 0 ? void 0 : _a.registeredProviders); } if (!(ev.altKey || ev.metaKey) && (isUp || isDown)) { // Suppose a menu, with shouldFocusOnMount: false, is open, and user wants to keyboard to the menu items // We need to re-render the menu with shouldFocusOnMount as true. if (!_this.state.menuHidden && _this.props.menuProps) { var currentShouldFocusOnMount = _this._menuShouldFocusOnMount !== undefined ? _this._menuShouldFocusOnMount : _this.props.menuProps.shouldFocusOnMount; if (!currentShouldFocusOnMount) { ev.preventDefault(); ev.stopPropagation(); _this._menuShouldFocusOnMount = true; _this.forceUpdate(); } } } }; _this._onTouchStart = function () { if (_this._isSplitButton && _this._splitButtonContainer.current && !('onpointerdown' in _this._splitButtonContainer.current)) { _this._handleTouchAndPointerEvent(); } }; _this._onMenuClick = function (ev) { var _a = _this.props, onMenuClick = _a.onMenuClick, menuProps = _a.menuProps; if (onMenuClick) { onMenuClick(ev, _this.props); } // focus on the container by default when the menu is opened with a click event // this differentiates from a keyboard interaction triggering the click event var shouldFocusOnContainer = typeof (menuProps === null || menuProps === void 0 ? void 0 : menuProps.shouldFocusOnContainer) === 'boolean' ? menuProps.shouldFocusOnContainer : ev.nativeEvent.pointerType === 'mouse'; if (!ev.defaultPrevented) { _this._onToggleMenu(shouldFocusOnContainer); ev.preventDefault(); ev.stopPropagation(); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["Async"](_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["EventGroup"](_this); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnConditionallyRequiredProps"])(COMPONENT_NAME, props, ['menuProps', 'onClick'], 'split', _this.props.split); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])(COMPONENT_NAME, props, { rootProps: undefined, description: 'secondaryText', toggled: 'checked', }); _this._labelId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); _this._descriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); _this._ariaDescriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); _this.state = { menuHidden: true, }; return _this; } Object.defineProperty(BaseButton.prototype, "_isSplitButton", { get: function () { return !!this.props.menuProps && !!this.props.onClick && this.props.split === true; }, enumerable: false, configurable: true }); BaseButton.prototype.render = function () { var _a; var _b = this.props, ariaDescription = _b.ariaDescription, ariaLabel = _b.ariaLabel, ariaHidden = _b.ariaHidden, className = _b.className, disabled = _b.disabled, allowDisabledFocus = _b.allowDisabledFocus, primaryDisabled = _b.primaryDisabled, // eslint-disable-next-line deprecation/deprecation _c = _b.secondaryText, // eslint-disable-next-line deprecation/deprecation secondaryText = _c === void 0 ? this.props.description : _c, href = _b.href, iconProps = _b.iconProps, menuIconProps = _b.menuIconProps, styles = _b.styles, checked = _b.checked, variantClassName = _b.variantClassName, theme = _b.theme, toggle = _b.toggle, getClassNames = _b.getClassNames, role = _b.role; var menuHidden = this.state.menuHidden; // Button is disabled if the whole button (in case of splitButton is disabled) or if the primary action is disabled var isPrimaryButtonDisabled = disabled || primaryDisabled; this._classNames = getClassNames ? getClassNames(theme, className, variantClassName, iconProps && iconProps.className, menuIconProps && menuIconProps.className, isPrimaryButtonDisabled, checked, !menuHidden, !!this.props.menuProps, this.props.split, !!allowDisabledFocus) : Object(_BaseButton_classNames__WEBPACK_IMPORTED_MODULE_6__["getBaseButtonClassNames"])(theme, styles, className, variantClassName, iconProps && iconProps.className, menuIconProps && menuIconProps.className, isPrimaryButtonDisabled, !!this.props.menuProps, checked, !menuHidden, this.props.split); var _d = this, _ariaDescriptionId = _d._ariaDescriptionId, _labelId = _d._labelId, _descriptionId = _d._descriptionId; // Anchor tag cannot be disabled hence in disabled state rendering // anchor button as normal button var renderAsAnchor = !isPrimaryButtonDisabled && !!href; var tag = renderAsAnchor ? 'a' : 'button'; var nativeProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])( // eslint-disable-next-line deprecation/deprecation Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["assign"])(renderAsAnchor ? {} : { type: 'button' }, this.props.rootProps, this.props), renderAsAnchor ? _Utilities__WEBPACK_IMPORTED_MODULE_2__["anchorProperties"] : _Utilities__WEBPACK_IMPORTED_MODULE_2__["buttonProperties"], [ 'disabled', // let disabled buttons be focused and styled as disabled. ]); // Check for ariaLabel passed in via Button props, and fall back to aria-label passed in via native props var resolvedAriaLabel = ariaLabel || nativeProps['aria-label']; // Check for ariaDescription, secondaryText or aria-describedby in the native props to determine source of // aria-describedby. Otherwise default to undefined so property does not appear in output. var ariaDescribedBy = undefined; if (ariaDescription) { ariaDescribedBy = _ariaDescriptionId; } else if (secondaryText && this.props.onRenderDescription !== _Utilities__WEBPACK_IMPORTED_MODULE_2__["nullRender"]) { // for buttons like CompoundButton with a valid onRenderDescription, we need to set an ariaDescribedBy // for buttons that do not render anything (via nullRender), we should not set an ariaDescribedBy ariaDescribedBy = _descriptionId; } else if (nativeProps['aria-describedby']) { ariaDescribedBy = nativeProps['aria-describedby']; } // If an explicit aria-labelledby is given, use that and we're done. // If any kind of description is given (which will end up as an aria-describedby attribute) // and no ariaLabel is specified, set the labelledby element. // Otherwise, the button is labeled implicitly by the descendent text on the button (if it exists). var ariaLabelledBy = undefined; if (nativeProps['aria-labelledby']) { ariaLabelledBy = nativeProps['aria-labelledby']; } else if (ariaDescribedBy && !resolvedAriaLabel) { ariaLabelledBy = this._hasText() ? _labelId : undefined; } var dataIsFocusable = this.props['data-is-focusable'] === false || (disabled && !allowDisabledFocus) || this._isSplitButton ? false : true; var isCheckboxTypeRole = role === 'menuitemcheckbox' || role === 'checkbox'; // if isCheckboxTypeRole, always return a checked value. // Otherwise only return checked value if toggle is set to true. // This is because role="checkbox" always needs to have an aria-checked value // but our checked prop only sets aria-pressed if we mark the button as a toggle="true" var checkedOrPressedValue = isCheckboxTypeRole ? !!checked : toggle === true ? !!checked : undefined; var buttonProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["assign"])(nativeProps, (_a = { className: this._classNames.root, // eslint-disable-next-line deprecation/deprecation ref: this._mergedRef(this.props.elementRef, this._buttonElement), disabled: isPrimaryButtonDisabled && !allowDisabledFocus, onKeyDown: this._onKeyDown, onKeyPress: this._onKeyPress, onKeyUp: this._onKeyUp, onMouseDown: this._onMouseDown, onMouseUp: this._onMouseUp, onClick: this._onClick, 'aria-label': resolvedAriaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-disabled': isPrimaryButtonDisabled, 'data-is-focusable': dataIsFocusable }, // aria-pressed attribute should only be present for toggle buttons // aria-checked attribute should only be present for toggle buttons with checkbox type role _a[isCheckboxTypeRole ? 'aria-checked' : 'aria-pressed'] = checkedOrPressedValue, _a)); if (ariaHidden) { buttonProps['aria-hidden'] = true; } if (this._isSplitButton) { return this._onRenderSplitButtonContent(tag, buttonProps); } else if (this.props.menuProps) { var _e = this.props.menuProps.id, id = _e === void 0 ? this._labelId + "-menu" : _e; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["assign"])(buttonProps, { 'aria-expanded': !menuHidden, 'aria-controls': !menuHidden ? id : null, 'aria-haspopup': true, }); } return this._onRenderContent(tag, buttonProps); }; BaseButton.prototype.componentDidMount = function () { // For split buttons, touching anywhere in the button should drop the dropdown, which should contain the // primary action. This gives more hit target space for touch environments. We're setting the onpointerdown here, // because React does not support Pointer events yet. if (this._isSplitButton && this._splitButtonContainer.current) { if ('onpointerdown' in this._splitButtonContainer.current) { this._events.on(this._splitButtonContainer.current, 'pointerdown', this._onPointerDown, true); } if ('onpointerup' in this._splitButtonContainer.current && this.props.onPointerUp) { this._events.on(this._splitButtonContainer.current, 'pointerup', this.props.onPointerUp, true); } } }; BaseButton.prototype.componentDidUpdate = function (prevProps, prevState) { // If Button's menu was closed, run onAfterMenuDismiss. if (this.props.onAfterMenuDismiss && !prevState.menuHidden && this.state.menuHidden) { this.props.onAfterMenuDismiss(); } }; BaseButton.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; BaseButton.prototype.focus = function () { var _a, _b; if (this._isSplitButton && this._splitButtonContainer.current) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["setFocusVisibility"])(true, undefined, (_a = this.context) === null || _a === void 0 ? void 0 : _a.registeredProviders); this._splitButtonContainer.current.focus(); } else if (this._buttonElement.current) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["setFocusVisibility"])(true, undefined, (_b = this.context) === null || _b === void 0 ? void 0 : _b.registeredProviders); this._buttonElement.current.focus(); } }; BaseButton.prototype.dismissMenu = function () { this._dismissMenu(); }; BaseButton.prototype.openMenu = function (shouldFocusOnContainer, shouldFocusOnMount) { this._openMenu(shouldFocusOnContainer, shouldFocusOnMount); }; BaseButton.prototype._onRenderContent = function (tag, buttonProps) { var _this = this; var props = this.props; var Tag = tag; var menuIconProps = props.menuIconProps, menuProps = props.menuProps, _a = props.onRenderIcon, onRenderIcon = _a === void 0 ? this._onRenderIcon : _a, _b = props.onRenderAriaDescription, onRenderAriaDescription = _b === void 0 ? this._onRenderAriaDescription : _b, _c = props.onRenderChildren, onRenderChildren = _c === void 0 ? this._onRenderChildren : _c, // eslint-disable-next-line deprecation/deprecation _d = props.onRenderMenu, // eslint-disable-next-line deprecation/deprecation onRenderMenu = _d === void 0 ? this._onRenderMenu : _d, _e = props.onRenderMenuIcon, onRenderMenuIcon = _e === void 0 ? this._onRenderMenuIcon : _e, disabled = props.disabled; var keytipProps = props.keytipProps; if (keytipProps && menuProps) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } var Button = function (keytipAttributes) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Tag, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, buttonProps, keytipAttributes), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.flexContainer, "data-automationid": "splitbuttonprimary" }, onRenderIcon(props, _this._onRenderIcon), _this._onRenderTextContents(), onRenderAriaDescription(props, _this._onRenderAriaDescription), onRenderChildren(props, _this._onRenderChildren), !_this._isSplitButton && (menuProps || menuIconProps || _this.props.onRenderMenuIcon) && onRenderMenuIcon(_this.props, _this._onRenderMenuIcon), menuProps && !menuProps.doNotLayer && _this._shouldRenderMenu() && onRenderMenu(_this._getMenuProps(menuProps), _this._onRenderMenu)))); }; var Content = keytipProps ? ( // If we're making a split button, we won't put the keytip here react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_KeytipData__WEBPACK_IMPORTED_MODULE_8__["KeytipData"], { keytipProps: !this._isSplitButton ? keytipProps : undefined, ariaDescribedBy: buttonProps['aria-describedby'], disabled: disabled }, function (keytipAttributes) { return Button(keytipAttributes); })) : (Button()); if (menuProps && menuProps.doNotLayer) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Content, this._shouldRenderMenu() && onRenderMenu(this._getMenuProps(menuProps), this._onRenderMenu))); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, Content, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Utilities__WEBPACK_IMPORTED_MODULE_2__["FocusRects"], null))); }; /** * Method to help determine if the menu's component tree should * be rendered. It takes into account whether the menu is expanded, * whether it is a persisted menu and whether it has been shown to the user. */ BaseButton.prototype._shouldRenderMenu = function () { var menuHidden = this.state.menuHidden; // eslint-disable-next-line deprecation/deprecation var _a = this.props, persistMenu = _a.persistMenu, renderPersistedMenuHiddenOnMount = _a.renderPersistedMenuHiddenOnMount; if (!menuHidden) { // Always should render a menu when it is expanded return true; } else if (persistMenu && (this._renderedVisibleMenu || renderPersistedMenuHiddenOnMount)) { // _renderedVisibleMenu ensures that the first rendering of // the menu happens on-screen, as edge's scrollbar calculations are off if done while hidden. return true; } return false; }; BaseButton.prototype._hasText = function () { // _onRenderTextContents and _onRenderText do not perform the same checks. Below is parity with what _onRenderText // used to have before the refactor that introduced this function. _onRenderTextContents does not require props. // text to be undefined in order for props.children to be used as a fallback. // Purely a code maintainability/reuse issue, but logged as Issue #4979. return this.props.text !== null && (this.props.text !== undefined || typeof this.props.children === 'string'); }; BaseButton.prototype._getMenuProps = function (menuProps) { var persistMenu = this.props.persistMenu; var menuHidden = this.state.menuHidden; // the accessible menu label (accessible name) has a relationship to the button. // If the menu props do not specify an explicit value for aria-label or aria-labelledBy, // AND the button has text, we'll set the menu aria-labelledBy to the text element id. if (!menuProps.ariaLabel && !menuProps.labelElementId && this._hasText()) { menuProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, menuProps), { labelElementId: this._labelId }); } return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: this._labelId + '-menu', directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_4__["DirectionalHint"].bottomLeftEdge }, menuProps), { shouldFocusOnContainer: this._menuShouldFocusOnContainer, shouldFocusOnMount: this._menuShouldFocusOnMount, hidden: persistMenu ? menuHidden : undefined, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-BaseButton-menuhost', menuProps.className), target: this._isSplitButton ? this._splitButtonContainer.current : this._buttonElement.current, onDismiss: this._onDismissMenu }); }; BaseButton.prototype._onRenderSplitButtonContent = function (tag, buttonProps) { var _this = this; var _a = this.props, _b = _a.styles, styles = _b === void 0 ? {} : _b, disabled = _a.disabled, allowDisabledFocus = _a.allowDisabledFocus, checked = _a.checked, getSplitButtonClassNames = _a.getSplitButtonClassNames, primaryDisabled = _a.primaryDisabled, menuProps = _a.menuProps, toggle = _a.toggle, role = _a.role, primaryActionButtonProps = _a.primaryActionButtonProps; var keytipProps = this.props.keytipProps; var menuHidden = this.state.menuHidden; var classNames = getSplitButtonClassNames ? getSplitButtonClassNames(!!disabled, !menuHidden, !!checked, !!allowDisabledFocus) : styles && Object(_SplitButton_SplitButton_classNames__WEBPACK_IMPORTED_MODULE_7__["getSplitButtonClassNames"])(styles, !!disabled, !menuHidden, !!checked, !!primaryDisabled); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["assign"])(buttonProps, { onClick: undefined, onPointerDown: undefined, onPointerUp: undefined, tabIndex: -1, 'data-is-focusable': false, }); if (keytipProps && menuProps) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } var containerProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(buttonProps, [], ['disabled']); // Add additional props to apply on primary action button if (primaryActionButtonProps) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["assign"])(buttonProps, primaryActionButtonProps); } var SplitButton = function (keytipAttributes) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, containerProps, { "data-ktp-target": keytipAttributes ? keytipAttributes['data-ktp-target'] : undefined, role: role ? role : 'button', "aria-disabled": disabled, "aria-haspopup": true, "aria-expanded": !menuHidden, "aria-pressed": toggle ? !!checked : undefined, "aria-describedby": Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["mergeAriaAttributeValues"])(buttonProps['aria-describedby'], keytipAttributes ? keytipAttributes['aria-describedby'] : undefined), className: classNames && classNames.splitButtonContainer, onKeyDown: _this._onSplitButtonContainerKeyDown, onTouchStart: _this._onTouchStart, ref: _this._splitButtonContainer, "data-is-focusable": true, onClick: !disabled && !primaryDisabled ? _this._onSplitButtonPrimaryClick : undefined, tabIndex: (!disabled && !primaryDisabled) || allowDisabledFocus ? 0 : undefined, "aria-roledescription": buttonProps['aria-roledescription'], onFocusCapture: _this._onSplitContainerFocusCapture }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { style: { display: 'flex', width: '100%' } }, _this._onRenderContent(tag, buttonProps), _this._onRenderSplitButtonMenuButton(classNames, keytipAttributes), _this._onRenderSplitButtonDivider(classNames)))); }; return keytipProps ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_KeytipData__WEBPACK_IMPORTED_MODULE_8__["KeytipData"], { keytipProps: keytipProps, disabled: disabled }, function (keytipAttributes) { return SplitButton(keytipAttributes); })) : (SplitButton()); }; BaseButton.prototype._onRenderSplitButtonDivider = function (classNames) { if (classNames && classNames.divider) { var onClick = function (ev) { ev.stopPropagation(); }; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.divider, "aria-hidden": true, onClick: onClick }); } return null; }; BaseButton.prototype._onRenderSplitButtonMenuButton = function (classNames, keytipAttributes) { var _a = this.props, allowDisabledFocus = _a.allowDisabledFocus, checked = _a.checked, disabled = _a.disabled, splitButtonMenuProps = _a.splitButtonMenuProps, splitButtonAriaLabel = _a.splitButtonAriaLabel, primaryDisabled = _a.primaryDisabled; var menuHidden = this.state.menuHidden; var menuIconProps = this.props.menuIconProps; if (menuIconProps === undefined) { menuIconProps = { iconName: 'ChevronDown', }; } var splitButtonProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, splitButtonMenuProps), { styles: classNames, checked: checked, disabled: disabled, allowDisabledFocus: allowDisabledFocus, onClick: this._onMenuClick, menuProps: undefined, iconProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, menuIconProps), { className: this._classNames.menuIcon }), ariaLabel: splitButtonAriaLabel, 'aria-haspopup': true, 'aria-expanded': !menuHidden, 'data-is-focusable': false }); // Add data-ktp-execute-target to the split button if the keytip is defined return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](BaseButton, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, splitButtonProps, { "data-ktp-execute-target": keytipAttributes ? keytipAttributes['data-ktp-execute-target'] : keytipAttributes, onMouseDown: this._onMouseDown, tabIndex: primaryDisabled && !allowDisabledFocus ? 0 : -1 }))); }; BaseButton.prototype._onPointerDown = function (ev) { var onPointerDown = this.props.onPointerDown; if (onPointerDown) { onPointerDown(ev); } if (ev.pointerType === 'touch') { this._handleTouchAndPointerEvent(); ev.preventDefault(); ev.stopImmediatePropagation(); } }; BaseButton.prototype._handleTouchAndPointerEvent = function () { var _this = this; // If we already have an existing timeout from a previous touch and pointer event // cancel that timeout so we can set a new one. if (this._lastTouchTimeoutId !== undefined) { this._async.clearTimeout(this._lastTouchTimeoutId); this._lastTouchTimeoutId = undefined; } this._processingTouch = true; this._lastTouchTimeoutId = this._async.setTimeout(function () { _this._processingTouch = false; _this._lastTouchTimeoutId = undefined; // Touch and pointer events don't focus the button naturally, // so adding an imperative focus call to guarantee this behavior. // Only focus the button if a splitbutton menu is not open if (_this.state.menuHidden) { _this.focus(); } }, TouchIdleDelay); }; /** * Returns if the user hits a valid keyboard key to open the menu * @param ev - the keyboard event * @returns True if user clicks on custom trigger key if enabled or alt + down arrow if not. False otherwise. */ BaseButton.prototype._isValidMenuOpenKey = function (ev) { if (this.props.menuTriggerKeyCode) { // eslint-disable-next-line deprecation/deprecation return ev.which === this.props.menuTriggerKeyCode; } else if (this.props.menuProps) { // eslint-disable-next-line deprecation/deprecation return ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down && (ev.altKey || ev.metaKey); } // Note: When enter is pressed, we will let the event continue to propagate // to trigger the onClick event on the button return false; }; BaseButton.defaultProps = { baseClassName: 'ms-Button', styles: {}, split: false, }; // needed to access registeredProviders when manually setting focus visibility BaseButton.contextType = _Utilities__WEBPACK_IMPORTED_MODULE_2__["FocusRectsContext"]; return BaseButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=BaseButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js ***! \*********************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var noOutline = { outline: 0, }; var iconStyle = function (fontSize) { return { fontSize: fontSize, margin: '0 4px', height: '16px', lineHeight: '16px', textAlign: 'center', flexShrink: 0, }; }; /** * Gets the base button styles. Note: because it is a base class to be used with the `mergeRules` * helper, it should have values for all class names in the interface. This let `mergeRules` optimize * mixing class names together. */ var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])(function (theme) { var _a, _b; var semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var border = semanticColors.buttonBorder; var disabledBackground = semanticColors.disabledBackground; var disabledText = semanticColors.disabledText; var buttonHighContrastFocus = { left: -2, top: -2, bottom: -2, right: -2, outlineColor: 'ButtonText', }; return { root: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: 1, highContrastStyle: buttonHighContrastFocus, borderColor: 'transparent' }), theme.fonts.medium, { border: '1px solid ' + border, borderRadius: effects.roundedCorner2, boxSizing: 'border-box', cursor: 'pointer', display: 'inline-block', padding: '0 16px', textDecoration: 'none', textAlign: 'center', userSelect: 'none', selectors: { // IE11 workaround for preventing shift of child elements of a button when active. ':active > span': { position: 'relative', left: 0, top: 0, }, }, }, ], rootDisabled: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: 1, highContrastStyle: buttonHighContrastFocus, borderColor: 'transparent' }), { backgroundColor: disabledBackground, borderColor: disabledBackground, color: disabledText, cursor: 'default', selectors: { ':hover': noOutline, ':focus': noOutline, }, }, ], iconDisabled: { color: disabledText, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', }, _a), }, menuIconDisabled: { color: disabledText, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', }, _b), }, flexContainer: { display: 'flex', height: '100%', flexWrap: 'nowrap', justifyContent: 'center', alignItems: 'center', }, description: { display: 'block', }, textContainer: { flexGrow: 1, display: 'block', }, icon: iconStyle(fonts.mediumPlus.fontSize), menuIcon: iconStyle(fonts.small.fontSize), label: { margin: '0 4px', lineHeight: '100%', display: 'block', }, screenReaderText: _Styling__WEBPACK_IMPORTED_MODULE_1__["hiddenContentStyle"], }; }); //# sourceMappingURL=BaseButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/Button.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/Button.js ***! \**********************************************************************/ /*! exports provided: Button */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return Button; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Button_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Button.types */ "./node_modules/@fluentui/react/lib/components/Button/Button.types.js"); /* harmony import */ var _DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js"); /* harmony import */ var _ActionButton_ActionButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ActionButton/ActionButton */ "./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.js"); /* harmony import */ var _CompoundButton_CompoundButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CompoundButton/CompoundButton */ "./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.js"); /* harmony import */ var _IconButton_IconButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./IconButton/IconButton */ "./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js"); /* harmony import */ var _PrimaryButton_PrimaryButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PrimaryButton/PrimaryButton */ "./node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js"); /** * This class is deprecated. Use the individual *Button components instead. * @deprecated Use the individual *Button components instead. * {@docCategory Button} */ var Button = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Button, _super); function Button(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warn"])("The Button component has been deprecated. Use specific variants instead. " + "(PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"); return _this; } Button.prototype.render = function () { var props = this.props; // eslint-disable-next-line deprecation/deprecation switch (props.buttonType) { case _Button_types__WEBPACK_IMPORTED_MODULE_3__["ButtonType"].command: return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ActionButton_ActionButton__WEBPACK_IMPORTED_MODULE_5__["ActionButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); case _Button_types__WEBPACK_IMPORTED_MODULE_3__["ButtonType"].compound: return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CompoundButton_CompoundButton__WEBPACK_IMPORTED_MODULE_6__["CompoundButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); case _Button_types__WEBPACK_IMPORTED_MODULE_3__["ButtonType"].icon: return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_IconButton_IconButton__WEBPACK_IMPORTED_MODULE_7__["IconButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); case _Button_types__WEBPACK_IMPORTED_MODULE_3__["ButtonType"].primary: return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PrimaryButton_PrimaryButton__WEBPACK_IMPORTED_MODULE_8__["PrimaryButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); default: return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_4__["DefaultButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); } }; return Button; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=Button.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/Button.types.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/Button.types.js ***! \****************************************************************************/ /*! exports provided: ElementType, ButtonType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElementType", function() { return ElementType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonType", function() { return ButtonType; }); /** * {@docCategory Button} */ var ElementType; (function (ElementType) { /** `button` element. */ ElementType[ElementType["button"] = 0] = "button"; /** `a` element. */ ElementType[ElementType["anchor"] = 1] = "anchor"; })(ElementType || (ElementType = {})); /** * {@docCategory Button} */ var ButtonType; (function (ButtonType) { ButtonType[ButtonType["normal"] = 0] = "normal"; ButtonType[ButtonType["primary"] = 1] = "primary"; ButtonType[ButtonType["hero"] = 2] = "hero"; ButtonType[ButtonType["compound"] = 3] = "compound"; ButtonType[ButtonType["command"] = 4] = "command"; ButtonType[ButtonType["icon"] = 5] = "icon"; ButtonType[ButtonType["default"] = 6] = "default"; })(ButtonType || (ButtonType = {})); //# sourceMappingURL=Button.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js ***! \****************************************************************************/ /*! exports provided: standardStyles, primaryStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "standardStyles", function() { return standardStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryStyles", function() { return primaryStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var splitButtonDividerBaseStyles = function () { return { position: 'absolute', width: 1, right: 31, top: 8, bottom: 8, }; }; function standardStyles(theme) { var _a, _b, _c, _d, _e; var s = theme.semanticColors, p = theme.palette; var buttonBackground = s.buttonBackground; var buttonBackgroundPressed = s.buttonBackgroundPressed; var buttonBackgroundHovered = s.buttonBackgroundHovered; var buttonBackgroundDisabled = s.buttonBackgroundDisabled; var buttonText = s.buttonText; var buttonTextHovered = s.buttonTextHovered; var buttonTextDisabled = s.buttonTextDisabled; var buttonTextChecked = s.buttonTextChecked; var buttonTextCheckedHovered = s.buttonTextCheckedHovered; return { root: { backgroundColor: buttonBackground, color: buttonText, }, rootHovered: { backgroundColor: buttonBackgroundHovered, color: buttonTextHovered, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'Highlight', color: 'Highlight', }, _a), }, rootPressed: { backgroundColor: buttonBackgroundPressed, color: buttonTextChecked, }, rootExpanded: { backgroundColor: buttonBackgroundPressed, color: buttonTextChecked, }, rootChecked: { backgroundColor: buttonBackgroundPressed, color: buttonTextChecked, }, rootCheckedHovered: { backgroundColor: buttonBackgroundPressed, color: buttonTextCheckedHovered, }, rootDisabled: { color: buttonTextDisabled, backgroundColor: buttonBackgroundDisabled, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _b), }, // Split button styles splitButtonContainer: { selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: 'none', }, _c), }, splitButtonMenuButton: { color: p.white, backgroundColor: 'transparent', selectors: { ':hover': { backgroundColor: p.neutralLight, selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Highlight', }, _d), }, }, }, splitButtonMenuButtonDisabled: { backgroundColor: s.buttonBackgroundDisabled, selectors: { ':hover': { backgroundColor: s.buttonBackgroundDisabled, }, }, }, splitButtonDivider: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, splitButtonDividerBaseStyles()), { backgroundColor: p.neutralTertiaryAlt, selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'WindowText', }, _e) }), splitButtonDividerDisabled: { backgroundColor: theme.palette.neutralTertiaryAlt, }, splitButtonMenuButtonChecked: { backgroundColor: p.neutralQuaternaryAlt, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuButtonExpanded: { backgroundColor: p.neutralQuaternaryAlt, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuIcon: { color: s.buttonText, }, splitButtonMenuIconDisabled: { color: s.buttonTextDisabled, }, }; } function primaryStyles(theme) { var _a, _b, _c, _d, _e, _f, _g, _h, _j; var p = theme.palette, s = theme.semanticColors; return { root: { backgroundColor: s.primaryButtonBackground, border: "1px solid " + s.primaryButtonBackground, color: s.primaryButtonText, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', backgroundColor: 'WindowText', borderColor: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &:focus"] = { selectors: { ':after': { border: "none", outlineColor: p.white, }, }, }, _a), }, rootHovered: { backgroundColor: s.primaryButtonBackgroundHovered, border: "1px solid " + s.primaryButtonBackgroundHovered, color: s.primaryButtonTextHovered, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Window', backgroundColor: 'Highlight', borderColor: 'Highlight', }, _b), }, rootPressed: { backgroundColor: s.primaryButtonBackgroundPressed, border: "1px solid " + s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', backgroundColor: 'WindowText', borderColor: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _c), }, rootExpanded: { backgroundColor: s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, }, rootChecked: { backgroundColor: s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, }, rootCheckedHovered: { backgroundColor: s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, }, rootDisabled: { color: s.primaryButtonTextDisabled, backgroundColor: s.primaryButtonBackgroundDisabled, selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _d), }, // Split button styles splitButtonContainer: { selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: 'none', }, _e), }, splitButtonDivider: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, splitButtonDividerBaseStyles()), { backgroundColor: p.white, selectors: (_f = {}, _f[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'Window', }, _f) }), splitButtonMenuButton: { backgroundColor: s.primaryButtonBackground, color: s.primaryButtonText, selectors: (_g = {}, _g[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'Canvas', }, _g[':hover'] = { backgroundColor: s.primaryButtonBackgroundHovered, selectors: (_h = {}, _h[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Highlight', }, _h), }, _g), }, splitButtonMenuButtonDisabled: { backgroundColor: s.primaryButtonBackgroundDisabled, selectors: { ':hover': { backgroundColor: s.primaryButtonBackgroundDisabled, }, }, }, splitButtonMenuButtonChecked: { backgroundColor: s.primaryButtonBackgroundPressed, selectors: { ':hover': { backgroundColor: s.primaryButtonBackgroundPressed, }, }, }, splitButtonMenuButtonExpanded: { backgroundColor: s.primaryButtonBackgroundPressed, selectors: { ':hover': { backgroundColor: s.primaryButtonBackgroundPressed, }, }, }, splitButtonMenuIcon: { color: s.primaryButtonText, }, splitButtonMenuIconDisabled: { color: p.neutralTertiary, selectors: (_j = {}, _j[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', }, _j), }, }; } //# sourceMappingURL=ButtonThemes.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.js ***! \*************************************************************************************************/ /*! exports provided: CommandBarButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommandBarButton", function() { return CommandBarButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _BaseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _CommandBarButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CommandBarButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js"); /** * {@docCategory Button} */ var CommandBarButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommandBarButton, _super); function CommandBarButton() { return _super !== null && _super.apply(this, arguments) || this; } CommandBarButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_BaseButton__WEBPACK_IMPORTED_MODULE_2__["BaseButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { variantClassName: "ms-Button--commandBar", styles: Object(_CommandBarButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme, styles), onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"] }))); }; CommandBarButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('CommandBarButton', ['theme', 'styles'], true) ], CommandBarButton); return CommandBarButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=CommandBarButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js ***! \********************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _BaseButton_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"); /* harmony import */ var _SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js"); /* harmony import */ var _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../BaseButton.classNames */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js"); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, customStyles, focusInset, focusColor) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; var baseButtonStyles = Object(_BaseButton_styles__WEBPACK_IMPORTED_MODULE_3__["getStyles"])(theme); var baseSplitButtonStyles = Object(_SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme); var p = theme.palette, semanticColors = theme.semanticColors; var commandButtonHighContrastFocus = { left: 4, top: 4, bottom: 4, right: 4, border: 'none', }; var commandButtonStyles = { root: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: 2, highContrastStyle: commandButtonHighContrastFocus, borderColor: 'transparent', }), theme.fonts.medium, { minWidth: '40px', backgroundColor: p.white, color: p.neutralPrimary, padding: '0 4px', border: 'none', borderRadius: 0, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: 'none', }, _a), }, ], rootHovered: { backgroundColor: p.neutralLighter, color: p.neutralDark, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Highlight', }, _b["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.themeDarkAlt, }, _b["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonMenuIcon] = { color: p.neutralPrimary, }, _b), }, rootPressed: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: (_c = {}, _c["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.themeDark, }, _c["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonMenuIcon] = { color: p.neutralPrimary, }, _c), }, rootChecked: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: (_d = {}, _d["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.themeDark, }, _d["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonMenuIcon] = { color: p.neutralPrimary, }, _d), }, rootCheckedHovered: { backgroundColor: p.neutralQuaternaryAlt, selectors: (_e = {}, _e["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.themeDark, }, _e["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonMenuIcon] = { color: p.neutralPrimary, }, _e), }, rootExpanded: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: (_f = {}, _f["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.themeDark, }, _f["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonMenuIcon] = { color: p.neutralPrimary, }, _f), }, rootExpandedHovered: { backgroundColor: p.neutralQuaternaryAlt, }, rootDisabled: { backgroundColor: p.white, selectors: (_g = {}, _g["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: semanticColors.disabledBodySubtext, selectors: (_h = {}, _h[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _h), }, _g[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _g), }, // Split button styles splitButtonContainer: { height: '100%', selectors: (_j = {}, _j[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: 'none', }, _j), }, splitButtonDividerDisabled: { selectors: (_k = {}, _k[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'Window', }, _k), }, splitButtonDivider: { backgroundColor: p.neutralTertiaryAlt, }, splitButtonMenuButton: { backgroundColor: p.white, border: 'none', borderTopRightRadius: '0', borderBottomRightRadius: '0', color: p.neutralSecondary, selectors: { ':hover': { backgroundColor: p.neutralLighter, color: p.neutralDark, selectors: (_l = {}, _l[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Highlight', }, _l["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.neutralPrimary, }, _l), }, ':active': { backgroundColor: p.neutralLight, selectors: (_m = {}, _m["." + _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_5__["ButtonGlobalClassNames"].msButtonIcon] = { color: p.neutralPrimary, }, _m), }, }, }, splitButtonMenuButtonDisabled: { backgroundColor: p.white, selectors: (_o = {}, _o[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText', border: 'none', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _o), }, splitButtonMenuButtonChecked: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuButtonExpanded: { backgroundColor: p.neutralLight, color: p.black, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuIcon: { color: p.neutralPrimary, }, splitButtonMenuIconDisabled: { color: p.neutralTertiary, }, label: { fontWeight: 'normal', // theme.fontWeights.semibold, }, icon: { color: p.themePrimary, }, menuIcon: (_p = { color: p.neutralSecondary }, _p[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', }, _p), }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(baseButtonStyles, baseSplitButtonStyles, commandButtonStyles, customStyles); }); //# sourceMappingURL=CommandBarButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/CommandButton/CommandButton.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/CommandButton/CommandButton.js ***! \*******************************************************************************************/ /*! exports provided: CommandButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommandButton", function() { return CommandButton; }); /* harmony import */ var _ActionButton_ActionButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ActionButton/ActionButton */ "./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.js"); /** * {@docCategory Button} */ var CommandButton = _ActionButton_ActionButton__WEBPACK_IMPORTED_MODULE_0__["ActionButton"]; //# sourceMappingURL=CommandButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.js ***! \*********************************************************************************************/ /*! exports provided: CompoundButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompoundButton", function() { return CompoundButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _BaseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _CompoundButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CompoundButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.styles.js"); /** * {@docCategory Button} */ var CompoundButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CompoundButton, _super); function CompoundButton() { return _super !== null && _super.apply(this, arguments) || this; } CompoundButton.prototype.render = function () { var _a = this.props, _b = _a.primary, primary = _b === void 0 ? false : _b, styles = _a.styles, theme = _a.theme; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_BaseButton__WEBPACK_IMPORTED_MODULE_2__["BaseButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { variantClassName: primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound', styles: Object(_CompoundButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme, styles, primary) }))); }; CompoundButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('CompoundButton', ['theme', 'styles'], true) ], CompoundButton); return CompoundButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=CompoundButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.styles.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.styles.js ***! \****************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _BaseButton_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"); /* harmony import */ var _SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js"); /* harmony import */ var _ButtonThemes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ButtonThemes */ "./node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js"); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, customStyles, primary) { var _a, _b, _c, _d, _e; var fonts = theme.fonts, palette = theme.palette; var baseButtonStyles = Object(_BaseButton_styles__WEBPACK_IMPORTED_MODULE_3__["getStyles"])(theme); var splitButtonStyles = Object(_SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme); var compoundButtonStyles = { root: { maxWidth: '280px', minHeight: '72px', height: 'auto', padding: '16px 12px', }, flexContainer: { flexDirection: 'row', alignItems: 'flex-start', minWidth: '100%', margin: '', }, textContainer: { textAlign: 'left', }, icon: { fontSize: '2em', lineHeight: '1em', height: '1em', margin: '0px 8px 0px 0px', flexBasis: '1em', flexShrink: '0', }, label: { margin: '0 0 5px', lineHeight: '100%', fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, }, description: [ fonts.small, { lineHeight: '100%', }, ], }; var standardCompoundTheme = { description: { color: palette.neutralSecondary, }, descriptionHovered: { color: palette.neutralDark, }, descriptionPressed: { color: 'inherit', }, descriptionChecked: { color: 'inherit', }, descriptionDisabled: { color: 'inherit', }, }; var primaryCompoundTheme = { description: { color: palette.white, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'WindowText', color: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a), }, descriptionHovered: { color: palette.white, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'Highlight', color: 'Window', }, _b), }, descriptionPressed: { color: 'inherit', selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', backgroundColor: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _c), }, descriptionChecked: { color: 'inherit', selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', backgroundColor: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _d), }, descriptionDisabled: { color: 'inherit', selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'inherit', }, _e), }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(baseButtonStyles, compoundButtonStyles, primary ? Object(_ButtonThemes__WEBPACK_IMPORTED_MODULE_5__["primaryStyles"])(theme) : Object(_ButtonThemes__WEBPACK_IMPORTED_MODULE_5__["standardStyles"])(theme), primary ? primaryCompoundTheme : standardCompoundTheme, splitButtonStyles, customStyles); }); //# sourceMappingURL=CompoundButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js ***! \*******************************************************************************************/ /*! exports provided: DefaultButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultButton", function() { return DefaultButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _BaseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DefaultButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DefaultButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js"); /** * {@docCategory Button} */ var DefaultButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DefaultButton, _super); function DefaultButton() { return _super !== null && _super.apply(this, arguments) || this; } DefaultButton.prototype.render = function () { var _a = this.props, _b = _a.primary, primary = _b === void 0 ? false : _b, styles = _a.styles, theme = _a.theme; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_BaseButton__WEBPACK_IMPORTED_MODULE_2__["BaseButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { variantClassName: primary ? 'ms-Button--primary' : 'ms-Button--default', styles: Object(_DefaultButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme, styles, primary), onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"] }))); }; DefaultButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('DefaultButton', ['theme', 'styles'], true) ], DefaultButton); return DefaultButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DefaultButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js ***! \**************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _BaseButton_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"); /* harmony import */ var _SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js"); /* harmony import */ var _ButtonThemes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ButtonThemes */ "./node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js"); var DEFAULT_BUTTON_HEIGHT = '32px'; var DEFAULT_BUTTON_MIN_WIDTH = '80px'; var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (theme, customStyles, primary) { var baseButtonStyles = Object(_BaseButton_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"])(theme); var splitButtonStyles = Object(_SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_3__["getStyles"])(theme); var defaultButtonStyles = { root: { minWidth: DEFAULT_BUTTON_MIN_WIDTH, height: DEFAULT_BUTTON_HEIGHT, }, label: { fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold, }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"])(baseButtonStyles, defaultButtonStyles, primary ? Object(_ButtonThemes__WEBPACK_IMPORTED_MODULE_4__["primaryStyles"])(theme) : Object(_ButtonThemes__WEBPACK_IMPORTED_MODULE_4__["standardStyles"])(theme), splitButtonStyles, customStyles); }); //# sourceMappingURL=DefaultButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js ***! \*************************************************************************************/ /*! exports provided: IconButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconButton", function() { return IconButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _BaseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _IconButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IconButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.styles.js"); /** * {@docCategory Button} */ var IconButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IconButton, _super); function IconButton() { return _super !== null && _super.apply(this, arguments) || this; } IconButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_BaseButton__WEBPACK_IMPORTED_MODULE_2__["BaseButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { variantClassName: "ms-Button--icon", styles: Object(_IconButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme, styles), onRenderText: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"], onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"] }))); }; IconButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('IconButton', ['theme', 'styles'], true) ], IconButton); return IconButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=IconButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.styles.js ***! \********************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _BaseButton_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"); /* harmony import */ var _SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js"); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (theme, customStyles) { var _a; var baseButtonStyles = Object(_BaseButton_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"])(theme); var splitButtonStyles = Object(_SplitButton_SplitButton_styles__WEBPACK_IMPORTED_MODULE_3__["getStyles"])(theme); var palette = theme.palette, semanticColors = theme.semanticColors; var iconButtonStyles = { root: { padding: '0 4px', width: '32px', height: '32px', backgroundColor: 'transparent', border: 'none', color: semanticColors.link, }, rootHovered: { color: palette.themeDarkAlt, backgroundColor: palette.neutralLighter, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { borderColor: 'Highlight', color: 'Highlight', }, _a), }, rootHasMenu: { width: 'auto', }, rootPressed: { color: palette.themeDark, backgroundColor: palette.neutralLight, }, rootExpanded: { color: palette.themeDark, backgroundColor: palette.neutralLight, }, rootChecked: { color: palette.themeDark, backgroundColor: palette.neutralLight, }, rootCheckedHovered: { color: palette.themeDark, backgroundColor: palette.neutralQuaternaryAlt, }, rootDisabled: { color: palette.neutralTertiaryAlt, }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"])(baseButtonStyles, iconButtonStyles, splitButtonStyles, customStyles); }); //# sourceMappingURL=IconButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/MessageBarButton/MessageBarButton.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/MessageBarButton/MessageBarButton.js ***! \*************************************************************************************************/ /*! exports provided: MessageBarButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageBarButton", function() { return MessageBarButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _MessageBarButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MessageBarButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/MessageBarButton/MessageBarButton.styles.js"); /** * {@docCategory MessageBar} */ var MessageBarButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageBarButton, _super); function MessageBarButton() { return _super !== null && _super.apply(this, arguments) || this; } MessageBarButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_2__["DefaultButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { styles: Object(_MessageBarButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(theme, styles), onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"] })); }; MessageBarButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('MessageBarButton', ['theme', 'styles'], true) ], MessageBarButton); return MessageBarButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=MessageBarButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/MessageBarButton/MessageBarButton.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/MessageBarButton/MessageBarButton.styles.js ***! \********************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (theme, customStyles) { return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["concatStyleSets"])({ root: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme, { inset: 1, highContrastStyle: { outlineOffset: '-4px', outline: '1px solid Window', }, borderColor: 'transparent', }), { height: 24, }, ], }, customStyles); }); //# sourceMappingURL=MessageBarButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js ***! \*******************************************************************************************/ /*! exports provided: PrimaryButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrimaryButton", function() { return PrimaryButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js"); /** * {@docCategory Button} */ var PrimaryButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PrimaryButton, _super); function PrimaryButton() { return _super !== null && _super.apply(this, arguments) || this; } PrimaryButton.prototype.render = function () { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_3__["DefaultButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { primary: true, onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_2__["nullRender"] })); }; PrimaryButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["customizable"])('PrimaryButton', ['theme', 'styles'], true) ], PrimaryButton); return PrimaryButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=PrimaryButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js ***! \**************************************************************************************************/ /*! exports provided: getSplitButtonClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSplitButtonClassNames", function() { return getSplitButtonClassNames; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var getSplitButtonClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])(function (styles, disabled, expanded, checked, primaryDisabled) { return { root: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.splitButtonMenuButton, expanded && [styles.splitButtonMenuButtonExpanded], disabled && [styles.splitButtonMenuButtonDisabled], checked && !disabled && [styles.splitButtonMenuButtonChecked], primaryDisabled && !disabled && [ { selectors: { ':focus': styles.splitButtonMenuFocused, }, }, ]), splitButtonContainer: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.splitButtonContainer, !disabled && checked && [ styles.splitButtonContainerChecked, { selectors: { ':hover': styles.splitButtonContainerCheckedHovered, }, }, ], !disabled && !checked && [ { selectors: { ':hover': styles.splitButtonContainerHovered, ':focus': styles.splitButtonContainerFocused, }, }, ], disabled && styles.splitButtonContainerDisabled), icon: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.splitButtonMenuIcon, disabled && styles.splitButtonMenuIconDisabled, !disabled && primaryDisabled && styles.splitButtonMenuIcon), flexContainer: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.splitButtonFlexContainer), divider: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.splitButtonDivider, (primaryDisabled || disabled) && styles.splitButtonDividerDisabled), }; }); //# sourceMappingURL=SplitButton.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js ***! \**********************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, customStyles) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; var effects = theme.effects, palette = theme.palette, semanticColors = theme.semanticColors; var buttonHighContrastFocus = { left: -2, top: -2, bottom: -2, right: -2, border: 'none', }; var splitButtonDividerBaseStyles = { position: 'absolute', width: 1, right: 31, top: 8, bottom: 8, }; var splitButtonStyles = { splitButtonContainer: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { highContrastStyle: buttonHighContrastFocus, inset: 2, pointerEvents: 'none' }), { display: 'inline-flex', selectors: { '.ms-Button--default': { borderTopRightRadius: '0', borderBottomRightRadius: '0', borderRight: 'none', flexGrow: '1', }, '.ms-Button--primary': { borderTopRightRadius: '0', borderBottomRightRadius: '0', border: 'none', flexGrow: '1', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'WindowText', backgroundColor: 'Window', border: '1px solid WindowText', borderRightWidth: '0' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a[':hover'] = { border: 'none', }, _a[':active'] = { border: 'none', }, _a), }, '.ms-Button--primary + .ms-Button': { border: 'none', selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: '1px solid WindowText', borderLeftWidth: '0', }, _b), }, }, }, ], splitButtonContainerHovered: { selectors: { '.ms-Button--primary': { selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Window', backgroundColor: 'Highlight', }, _c), }, '.ms-Button.is-disabled': { color: semanticColors.buttonTextDisabled, selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _d), }, }, }, splitButtonContainerChecked: { selectors: { '.ms-Button--primary': { selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', backgroundColor: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _e), }, }, }, splitButtonContainerCheckedHovered: { selectors: { '.ms-Button--primary': { selectors: (_f = {}, _f[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', backgroundColor: 'WindowText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _f), }, }, }, splitButtonContainerFocused: { outline: 'none!important', }, splitButtonMenuButton: (_g = { padding: 6, height: 'auto', boxSizing: 'border-box', borderRadius: 0, borderTopRightRadius: effects.roundedCorner2, borderBottomRightRadius: effects.roundedCorner2, border: "1px solid " + palette.neutralSecondaryAlt, borderLeft: 'none', outline: 'transparent', userSelect: 'none', display: 'inline-block', textDecoration: 'none', textAlign: 'center', cursor: 'pointer', verticalAlign: 'top', width: 32, marginLeft: -1, marginTop: 0, marginRight: 0, marginBottom: 0 }, _g[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { '.ms-Button-menuIcon': { color: 'WindowText', }, }, _g), splitButtonDivider: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, splitButtonDividerBaseStyles), { selectors: (_h = {}, _h[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'WindowText', }, _h) }), splitButtonDividerDisabled: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, splitButtonDividerBaseStyles), { selectors: (_j = {}, _j[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'GrayText', }, _j) }), splitButtonMenuButtonDisabled: { pointerEvents: 'none', border: 'none', selectors: (_k = { ':hover': { cursor: 'default', }, '.ms-Button--primary': { selectors: (_l = {}, _l[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _l), }, '.ms-Button-menuIcon': { selectors: (_m = {}, _m[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', }, _m), } }, _k[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', border: '1px solid GrayText', backgroundColor: 'Window', }, _k), }, splitButtonFlexContainer: { display: 'flex', height: '100%', flexWrap: 'nowrap', justifyContent: 'center', alignItems: 'center', }, splitButtonContainerDisabled: { outline: 'none', border: 'none', selectors: (_o = {}, _o[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _o), }, splitButtonMenuFocused: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { highContrastStyle: buttonHighContrastFocus, inset: 2 })), }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(splitButtonStyles, customStyles); }); //# sourceMappingURL=SplitButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Button/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Button/index.js ***! \*********************************************************************/ /*! exports provided: BaseButton, ElementType, ButtonType, Button, ActionButton, CommandBarButton, CommandButton, CompoundButton, DefaultButton, MessageBarButton, PrimaryButton, IconButton, getSplitButtonClassNames, ButtonGlobalClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _BaseButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseButton */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseButton", function() { return _BaseButton__WEBPACK_IMPORTED_MODULE_0__["BaseButton"]; }); /* harmony import */ var _Button_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Button.types */ "./node_modules/@fluentui/react/lib/components/Button/Button.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElementType", function() { return _Button_types__WEBPACK_IMPORTED_MODULE_1__["ElementType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonType", function() { return _Button_types__WEBPACK_IMPORTED_MODULE_1__["ButtonType"]; }); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Button */ "./node_modules/@fluentui/react/lib/components/Button/Button.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _Button__WEBPACK_IMPORTED_MODULE_2__["Button"]; }); /* harmony import */ var _ActionButton_ActionButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActionButton/ActionButton */ "./node_modules/@fluentui/react/lib/components/Button/ActionButton/ActionButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return _ActionButton_ActionButton__WEBPACK_IMPORTED_MODULE_3__["ActionButton"]; }); /* harmony import */ var _CommandBarButton_CommandBarButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CommandBarButton/CommandBarButton */ "./node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandBarButton", function() { return _CommandBarButton_CommandBarButton__WEBPACK_IMPORTED_MODULE_4__["CommandBarButton"]; }); /* harmony import */ var _CommandButton_CommandButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CommandButton/CommandButton */ "./node_modules/@fluentui/react/lib/components/Button/CommandButton/CommandButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandButton", function() { return _CommandButton_CommandButton__WEBPACK_IMPORTED_MODULE_5__["CommandButton"]; }); /* harmony import */ var _CompoundButton_CompoundButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CompoundButton/CompoundButton */ "./node_modules/@fluentui/react/lib/components/Button/CompoundButton/CompoundButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundButton", function() { return _CompoundButton_CompoundButton__WEBPACK_IMPORTED_MODULE_6__["CompoundButton"]; }); /* harmony import */ var _DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultButton", function() { return _DefaultButton_DefaultButton__WEBPACK_IMPORTED_MODULE_7__["DefaultButton"]; }); /* harmony import */ var _MessageBarButton_MessageBarButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./MessageBarButton/MessageBarButton */ "./node_modules/@fluentui/react/lib/components/Button/MessageBarButton/MessageBarButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBarButton", function() { return _MessageBarButton_MessageBarButton__WEBPACK_IMPORTED_MODULE_8__["MessageBarButton"]; }); /* harmony import */ var _PrimaryButton_PrimaryButton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PrimaryButton/PrimaryButton */ "./node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PrimaryButton", function() { return _PrimaryButton_PrimaryButton__WEBPACK_IMPORTED_MODULE_9__["PrimaryButton"]; }); /* harmony import */ var _IconButton_IconButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./IconButton/IconButton */ "./node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconButton", function() { return _IconButton_IconButton__WEBPACK_IMPORTED_MODULE_10__["IconButton"]; }); /* harmony import */ var _SplitButton_SplitButton_classNames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SplitButton/SplitButton.classNames */ "./node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSplitButtonClassNames", function() { return _SplitButton_SplitButton_classNames__WEBPACK_IMPORTED_MODULE_11__["getSplitButtonClassNames"]; }); /* harmony import */ var _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./BaseButton.classNames */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGlobalClassNames", function() { return _BaseButton_classNames__WEBPACK_IMPORTED_MODULE_12__["ButtonGlobalClassNames"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.base.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/Calendar.base.js ***! \*******************************************************************************/ /*! exports provided: CalendarBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarBase", function() { return CalendarBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _CalendarDay_CalendarDay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CalendarDay/CalendarDay */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.js"); /* harmony import */ var _CalendarMonth_CalendarMonth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CalendarMonth/CalendarMonth */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib/components/Calendar/defaults.js"); var MIN_SIZE_FORCE_OVERLAY = 440; var getClassNames = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["classNamesFunction"])(); var defaultWorkWeekDays = [ _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DayOfWeek"].Monday, _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DayOfWeek"].Tuesday, _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DayOfWeek"].Wednesday, _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DayOfWeek"].Thursday, _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DayOfWeek"].Friday, ]; var DEFAULT_PROPS = { isMonthPickerVisible: true, isDayPickerVisible: true, showMonthPickerAsOverlay: false, today: new Date(), firstDayOfWeek: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DayOfWeek"].Sunday, dateRangeType: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DateRangeType"].Day, showGoToToday: true, strings: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CALENDAR_STRINGS"], highlightCurrentMonth: false, highlightSelectedMonth: false, navigationIcons: _defaults__WEBPACK_IMPORTED_MODULE_7__["defaultCalendarNavigationIcons"], showWeekNumbers: false, firstWeekOfYear: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["FirstWeekOfYear"].FirstDay, dateTimeFormatter: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_DATE_FORMATTING"], showSixWeeksByDefault: false, workWeekDays: defaultWorkWeekDays, showCloseButton: false, allFocusable: false, }; function useDateState(_a) { var value = _a.value, _b = _a.today, today = _b === void 0 ? new Date() : _b, onSelectDate = _a.onSelectDate; /** The currently selected date in the calendar */ var _c = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_6__["useControllableValue"])(value, today), _d = _c[0], selectedDate = _d === void 0 ? today : _d, setSelectedDate = _c[1]; /** The currently focused date in the day picker, but not necessarily selected */ var _e = react__WEBPACK_IMPORTED_MODULE_1__["useState"](value), _f = _e[0], navigatedDay = _f === void 0 ? today : _f, setNavigatedDay = _e[1]; /** The currently focused date in the month picker, but not necessarily selected */ var _g = react__WEBPACK_IMPORTED_MODULE_1__["useState"](value), _h = _g[0], navigatedMonth = _h === void 0 ? today : _h, setNavigatedMonth = _g[1]; /** If using a controlled value, when that value changes, navigate to that date */ var _j = react__WEBPACK_IMPORTED_MODULE_1__["useState"](value), _k = _j[0], lastSelectedDate = _k === void 0 ? today : _k, setLastSelectedDate = _j[1]; if (value && lastSelectedDate.valueOf() !== value.valueOf()) { setNavigatedDay(value); setNavigatedMonth(value); setLastSelectedDate(value); } var navigateMonth = function (date) { setNavigatedMonth(date); }; var navigateDay = function (date) { setNavigatedMonth(date); setNavigatedDay(date); }; var onDateSelected = function (date, selectedDateRangeArray) { setNavigatedMonth(date); setNavigatedDay(date); setSelectedDate(date); onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(date, selectedDateRangeArray); }; return [selectedDate, navigatedDay, navigatedMonth, onDateSelected, navigateDay, navigateMonth]; } function useVisibilityState(props) { /** State used to show/hide month picker */ var _a = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_6__["useControllableValue"])(getShowMonthPickerAsOverlay(props) ? undefined : props.isMonthPickerVisible, false), _b = _a[0], isMonthPickerVisible = _b === void 0 ? true : _b, setIsMonthPickerVisible = _a[1]; /** State used to show/hide day picker */ var _c = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_6__["useControllableValue"])(getShowMonthPickerAsOverlay(props) ? undefined : props.isDayPickerVisible, true), _d = _c[0], isDayPickerVisible = _d === void 0 ? true : _d, setIsDayPickerVisible = _c[1]; var toggleDayMonthPickerVisibility = function () { setIsMonthPickerVisible(!isMonthPickerVisible); setIsDayPickerVisible(!isDayPickerVisible); }; return [isMonthPickerVisible, isDayPickerVisible, toggleDayMonthPickerVisibility]; } function useFocusLogic(_a, isDayPickerVisible, isMonthPickerVisible) { var componentRef = _a.componentRef; var dayPicker = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var monthPicker = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var focusOnUpdate = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); var focus = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { if (isDayPickerVisible && dayPicker.current) { Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["focusAsync"])(dayPicker.current); } else if (isMonthPickerVisible && monthPicker.current) { Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["focusAsync"])(monthPicker.current); } }, [isDayPickerVisible, isMonthPickerVisible]); react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](componentRef, function () { return ({ focus: focus }); }, [focus]); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (focusOnUpdate.current) { focus(); focusOnUpdate.current = false; } }); var focusOnNextUpdate = function () { focusOnUpdate.current = true; }; return [dayPicker, monthPicker, focusOnNextUpdate]; } var CalendarBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var props = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var _a = useDateState(props), selectedDate = _a[0], navigatedDay = _a[1], navigatedMonth = _a[2], onDateSelected = _a[3], navigateDay = _a[4], navigateMonth = _a[5]; var _b = useVisibilityState(props), isMonthPickerVisible = _b[0], isDayPickerVisible = _b[1], toggleDayMonthPickerVisibility = _b[2]; var _c = useFocusLogic(props, isDayPickerVisible, isMonthPickerVisible), dayPicker = _c[0], monthPicker = _c[1], focusOnNextUpdate = _c[2]; var renderGoToTodayButton = function () { var goTodayEnabled = showGoToToday; if (goTodayEnabled && today) { goTodayEnabled = navigatedDay.getFullYear() !== today.getFullYear() || navigatedDay.getMonth() !== today.getMonth() || navigatedMonth.getFullYear() !== today.getFullYear() || navigatedMonth.getMonth() !== today.getMonth(); } return (showGoToToday && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["css"])('js-goToday', classes.goTodayButton), onClick: onGotoToday, onKeyDown: onButtonKeyDown(onGotoToday), type: "button", disabled: !goTodayEnabled }, strings.goToToday))); }; var onNavigateDayDate = function (date, focusOnNavigatedDay) { navigateDay(date); if (focusOnNavigatedDay) { focusOnNextUpdate(); } }; var onNavigateMonthDate = function (date, focusOnNavigatedDay) { if (focusOnNavigatedDay) { focusOnNextUpdate(); } if (!focusOnNavigatedDay) { navigateMonth(date); return; } if (monthPickerOnly) { onDateSelected(date); } navigateDay(date); }; var onHeaderSelect = getShowMonthPickerAsOverlay(props) ? function () { toggleDayMonthPickerVisibility(); focusOnNextUpdate(); } : undefined; var onGotoToday = function () { navigateDay(today); focusOnNextUpdate(); }; var onButtonKeyDown = function (callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].enter: case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].space: callback(); break; } }; }; var onDatePickerPopupKeyDown = function (ev) { var _a; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].enter: ev.preventDefault(); break; case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].backspace: ev.preventDefault(); break; case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].escape: (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props); break; case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].pageUp: if (ev.ctrlKey) { // go to next year navigateDay(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addYears"])(navigatedDay, 1)); } else { // go to next month navigateDay(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addMonths"])(navigatedDay, 1)); } ev.preventDefault(); break; case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].pageDown: if (ev.ctrlKey) { // go to previous year navigateDay(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addYears"])(navigatedDay, -1)); } else { // go to previous month navigateDay(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addMonths"])(navigatedDay, -1)); } ev.preventDefault(); break; default: break; } }; var rootClass = 'ms-DatePicker'; var firstDayOfWeek = props.firstDayOfWeek, dateRangeType = props.dateRangeType, strings = props.strings, showGoToToday = props.showGoToToday, highlightCurrentMonth = props.highlightCurrentMonth, highlightSelectedMonth = props.highlightSelectedMonth, navigationIcons = props.navigationIcons, minDate = props.minDate, maxDate = props.maxDate, restrictedDates = props.restrictedDates, id = props.id, className = props.className, showCloseButton = props.showCloseButton, allFocusable = props.allFocusable, styles = props.styles, showWeekNumbers = props.showWeekNumbers, theme = props.theme, calendarDayProps = props.calendarDayProps, calendarMonthProps = props.calendarMonthProps, dateTimeFormatter = props.dateTimeFormatter, _d = props.today, today = _d === void 0 ? new Date() : _d; var showMonthPickerAsOverlay = getShowMonthPickerAsOverlay(props); var monthPickerOnly = !showMonthPickerAsOverlay && !isDayPickerVisible; var overlaidWithButton = showMonthPickerAsOverlay && showGoToToday; var classes = getClassNames(styles, { theme: theme, className: className, isMonthPickerVisible: isMonthPickerVisible, isDayPickerVisible: isDayPickerVisible, monthPickerOnly: monthPickerOnly, showMonthPickerAsOverlay: showMonthPickerAsOverlay, overlaidWithButton: overlaidWithButton, overlayedWithButton: overlaidWithButton, showGoToToday: showGoToToday, showWeekNumbers: showWeekNumbers, }); var todayDateString = ''; var selectedDateString = ''; if (dateTimeFormatter && strings.todayDateFormatString) { todayDateString = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["format"])(strings.todayDateFormatString, dateTimeFormatter.formatMonthDayYear(today, strings)); } if (dateTimeFormatter && strings.selectedDateFormatString) { selectedDateString = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["format"])(strings.selectedDateFormatString, dateTimeFormatter.formatMonthDayYear(selectedDate, strings)); } var selectionAndTodayString = selectedDateString + ', ' + todayDateString; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: id, ref: forwardedRef, role: "group", "aria-label": selectionAndTodayString, className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["css"])(rootClass, classes.root, className, 'ms-slideDownIn10'), onKeyDown: onDatePickerPopupKeyDown }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classes.liveRegion, "aria-live": "polite", "aria-atomic": "true" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", null, selectedDateString)), isDayPickerVisible && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarDay_CalendarDay__WEBPACK_IMPORTED_MODULE_3__["CalendarDay"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ selectedDate: selectedDate, navigatedDate: navigatedDay, today: props.today, onSelectDate: onDateSelected, // eslint-disable-next-line react/jsx-no-bind onNavigateDate: onNavigateDayDate, onDismiss: props.onDismiss, firstDayOfWeek: firstDayOfWeek, dateRangeType: dateRangeType, strings: strings, // eslint-disable-next-line react/jsx-no-bind onHeaderSelect: onHeaderSelect, navigationIcons: navigationIcons, showWeekNumbers: props.showWeekNumbers, firstWeekOfYear: props.firstWeekOfYear, dateTimeFormatter: props.dateTimeFormatter, showSixWeeksByDefault: props.showSixWeeksByDefault, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, workWeekDays: props.workWeekDays, componentRef: dayPicker, showCloseButton: showCloseButton, allFocusable: allFocusable }, calendarDayProps))), isDayPickerVisible && isMonthPickerVisible && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classes.divider }), isMonthPickerVisible ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classes.monthPickerWrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarMonth_CalendarMonth__WEBPACK_IMPORTED_MODULE_4__["CalendarMonth"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ navigatedDate: navigatedMonth, selectedDate: navigatedDay, strings: strings, // eslint-disable-next-line react/jsx-no-bind onNavigateDate: onNavigateMonthDate, today: props.today, highlightCurrentMonth: highlightCurrentMonth, highlightSelectedMonth: highlightSelectedMonth, // eslint-disable-next-line react/jsx-no-bind onHeaderSelect: onHeaderSelect, navigationIcons: navigationIcons, dateTimeFormatter: props.dateTimeFormatter, minDate: minDate, maxDate: maxDate, componentRef: monthPicker }, calendarMonthProps)), renderGoToTodayButton())) : (renderGoToTodayButton()), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["FocusRects"], null))); }); CalendarBase.displayName = 'CalendarBase'; function getShowMonthPickerAsOverlay(_a) { var showMonthPickerAsOverlay = _a.showMonthPickerAsOverlay, isDayPickerVisible = _a.isDayPickerVisible; var win = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["getWindow"])(); return showMonthPickerAsOverlay || (isDayPickerVisible && win && win.innerWidth <= MIN_SIZE_FORCE_OVERLAY); } //# sourceMappingURL=Calendar.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/Calendar.js ***! \**************************************************************************/ /*! exports provided: Calendar */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Calendar", function() { return Calendar; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _Calendar_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Calendar.base */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.base.js"); /* harmony import */ var _Calendar_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Calendar.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.styles.js"); var Calendar = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Calendar_base__WEBPACK_IMPORTED_MODULE_1__["CalendarBase"], _Calendar_styles__WEBPACK_IMPORTED_MODULE_2__["styles"], undefined, { scope: 'Calendar', }); //# sourceMappingURL=Calendar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.styles.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/Calendar.styles.js ***! \*********************************************************************************/ /*! exports provided: styles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); var styles = function (props) { var className = props.className, theme = props.theme, isDayPickerVisible = props.isDayPickerVisible, isMonthPickerVisible = props.isMonthPickerVisible, showWeekNumbers = props.showWeekNumbers; var palette = theme.palette; var totalWidth = isDayPickerVisible && isMonthPickerVisible ? 440 : 220; if (showWeekNumbers && isDayPickerVisible) { totalWidth += 30; } return { root: [ _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["normalize"], { display: 'flex', width: totalWidth, }, !isMonthPickerVisible && { flexDirection: 'column', }, className, ], divider: { top: 0, borderRight: '1px solid', borderColor: palette.neutralLight, }, monthPickerWrapper: [ { display: 'flex', flexDirection: 'column', }, ], goTodayButton: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme, { inset: -1 }), { bottom: 0, color: palette.neutralPrimary, height: 30, lineHeight: 30, backgroundColor: 'transparent', border: 'none', boxSizing: 'content-box', padding: '0 4px', alignSelf: 'flex-end', marginRight: 16, marginTop: 3, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["FontSizes"].small, fontFamily: 'inherit', overflow: 'visible', selectors: { '& div': { fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["FontSizes"].small, }, '&:hover': { color: palette.themePrimary, backgroundColor: 'transparent', cursor: 'pointer', }, '&:active': { color: palette.themeDark, }, '&:disabled': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }, ], liveRegion: { border: 0, height: '1px', margin: '-1px', overflow: 'hidden', padding: 0, width: '1px', position: 'absolute', }, }; }; //# sourceMappingURL=Calendar.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.types.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/Calendar.types.js ***! \********************************************************************************/ /*! exports provided: AnimationDirection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationDirection", function() { return AnimationDirection; }); /** * {@docCategory Calendar} */ var AnimationDirection; (function (AnimationDirection) { /** * Grid will transition out and in horizontally */ AnimationDirection[AnimationDirection["Horizontal"] = 0] = "Horizontal"; /** * Grid will transition out and in vertically */ AnimationDirection[AnimationDirection["Vertical"] = 1] = "Vertical"; })(AnimationDirection || (AnimationDirection = {})); //# sourceMappingURL=Calendar.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.base.js ***! \**********************************************************************************************/ /*! exports provided: CalendarDayBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarDayBase", function() { return CalendarDayBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _CalendarDayGrid_CalendarDayGrid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../CalendarDayGrid/CalendarDayGrid */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); var getClassNames = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var CalendarDayBase = function (props) { var dayGrid = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](props.componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = dayGrid.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); var strings = props.strings, navigatedDate = props.navigatedDate, dateTimeFormatter = props.dateTimeFormatter, styles = props.styles, theme = props.theme, className = props.className, onHeaderSelect = props.onHeaderSelect, showSixWeeksByDefault = props.showSixWeeksByDefault, minDate = props.minDate, maxDate = props.maxDate, restrictedDates = props.restrictedDates, onNavigateDate = props.onNavigateDate, showWeekNumbers = props.showWeekNumbers, dateRangeType = props.dateRangeType, animationDirection = props.animationDirection; var monthAndYearId = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_6__["useId"])(); var classNames = getClassNames(styles, { theme: theme, className: className, headerIsClickable: !!onHeaderSelect, showWeekNumbers: showWeekNumbers, animationDirection: animationDirection, }); var monthAndYear = dateTimeFormatter.formatMonthYear(navigatedDate, strings); var HeaderButtonComponentType = onHeaderSelect ? 'button' : 'div'; var headerAriaLabel = strings.yearPickerHeaderAriaLabel ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["format"])(strings.yearPickerHeaderAriaLabel, monthAndYear) : monthAndYear; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.header }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](HeaderButtonComponentType, { "aria-label": onHeaderSelect ? headerAriaLabel : undefined, className: classNames.monthAndYear, onClick: onHeaderSelect, "data-is-focusable": !!onHeaderSelect, tabIndex: onHeaderSelect ? 0 : -1, onKeyDown: onButtonKeyDown(onHeaderSelect), type: "button" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: monthAndYearId, "aria-live": "polite", "aria-atomic": "true" }, monthAndYear)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarDayNavigationButtons, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { classNames: classNames }))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarDayGrid_CalendarDayGrid__WEBPACK_IMPORTED_MODULE_5__["CalendarDayGrid"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { styles: styles, componentRef: dayGrid, strings: strings, navigatedDate: navigatedDate, weeksToShow: showSixWeeksByDefault ? 6 : undefined, dateTimeFormatter: dateTimeFormatter, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, onNavigateDate: onNavigateDate, labelledBy: monthAndYearId, dateRangeType: dateRangeType })))); }; CalendarDayBase.displayName = 'CalendarDayBase'; var CalendarDayNavigationButtons = function (props) { var _a, _b; var minDate = props.minDate, maxDate = props.maxDate, navigatedDate = props.navigatedDate, allFocusable = props.allFocusable, strings = props.strings, navigationIcons = props.navigationIcons, showCloseButton = props.showCloseButton, classNames = props.classNames, onNavigateDate = props.onNavigateDate, onDismiss = props.onDismiss; var onSelectNextMonth = function () { onNavigateDate(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["addMonths"])(navigatedDate, 1), false); }; var onSelectPrevMonth = function () { onNavigateDate(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["addMonths"])(navigatedDate, -1), false); }; var leftNavigationIcon = navigationIcons.leftNavigation; var rightNavigationIcon = navigationIcons.rightNavigation; var closeNavigationIcon = navigationIcons.closeIcon; // determine if previous/next months are in bounds var prevMonthInBounds = minDate ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["compareDatePart"])(minDate, Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getMonthStart"])(navigatedDate)) < 0 : true; var nextMonthInBounds = maxDate ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["compareDatePart"])(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getMonthEnd"])(navigatedDate), maxDate) < 0 : true; // use aria-disabled instead of disabled so focus is not lost // when a prev/next button becomes disabled after being clicked return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.monthComponents }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.headerIconButton, (_a = {}, _a[classNames.disabledStyle] = !prevMonthInBounds, _a)), tabIndex: prevMonthInBounds ? undefined : allFocusable ? 0 : -1, "aria-disabled": !prevMonthInBounds, onClick: prevMonthInBounds ? onSelectPrevMonth : undefined, onKeyDown: prevMonthInBounds ? onButtonKeyDown(onSelectPrevMonth) : undefined, title: strings.prevMonthAriaLabel ? strings.prevMonthAriaLabel + ' ' + strings.months[Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["addMonths"])(navigatedDate, -1).getMonth()] : undefined, type: "button" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { iconName: leftNavigationIcon })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.headerIconButton, (_b = {}, _b[classNames.disabledStyle] = !nextMonthInBounds, _b)), tabIndex: nextMonthInBounds ? undefined : allFocusable ? 0 : -1, "aria-disabled": !nextMonthInBounds, onClick: nextMonthInBounds ? onSelectNextMonth : undefined, onKeyDown: nextMonthInBounds ? onButtonKeyDown(onSelectNextMonth) : undefined, title: strings.nextMonthAriaLabel ? strings.nextMonthAriaLabel + ' ' + strings.months[Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["addMonths"])(navigatedDate, 1).getMonth()] : undefined, type: "button" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { iconName: rightNavigationIcon })), showCloseButton && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.headerIconButton), onClick: onDismiss, onKeyDown: onButtonKeyDown(onDismiss), title: strings.closeButtonAriaLabel, type: "button" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { iconName: closeNavigationIcon }))))); }; CalendarDayNavigationButtons.displayName = 'CalendarDayNavigationButtons'; var onButtonKeyDown = function (callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter: callback === null || callback === void 0 ? void 0 : callback(); break; } }; }; //# sourceMappingURL=CalendarDay.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.js ***! \*****************************************************************************************/ /*! exports provided: CalendarDay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarDay", function() { return CalendarDay; }); /* harmony import */ var _CalendarDay_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CalendarDay.base */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.base.js"); /* harmony import */ var _CalendarDay_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalendarDay.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.styles.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var CalendarDay = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["styled"])(_CalendarDay_base__WEBPACK_IMPORTED_MODULE_0__["CalendarDayBase"], _CalendarDay_styles__WEBPACK_IMPORTED_MODULE_1__["styles"], undefined, { scope: 'CalendarDay', }); //# sourceMappingURL=CalendarDay.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.styles.js ***! \************************************************************************************************/ /*! exports provided: styles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); var styles = function (props) { var _a; var className = props.className, theme = props.theme, headerIsClickable = props.headerIsClickable, showWeekNumbers = props.showWeekNumbers; var palette = theme.palette; var disabledStyle = { selectors: (_a = { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', } }, _a[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', forcedColorAdjust: 'none', }, _a), }; return { root: [ _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["normalize"], { width: 196, padding: 12, boxSizing: 'content-box', }, showWeekNumbers && { width: 226, }, className, ], header: { position: 'relative', display: 'inline-flex', height: 28, lineHeight: 44, width: '100%', }, monthAndYear: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: 1 }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].fadeIn200), { alignItems: 'center', fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].medium, fontFamily: 'inherit', color: palette.neutralPrimary, display: 'inline-block', flexGrow: 1, fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, padding: '0 4px 0 10px', border: 'none', backgroundColor: 'transparent', borderRadius: 2, lineHeight: 28, overflow: 'hidden', whiteSpace: 'nowrap', textAlign: 'left', textOverflow: 'ellipsis' }), headerIsClickable && { selectors: { '&:hover': { cursor: 'pointer', background: palette.neutralLight, color: palette.black, }, }, }, ], monthComponents: { display: 'inline-flex', alignSelf: 'flex-end', }, headerIconButton: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1 }), { width: 28, height: 28, display: 'block', textAlign: 'center', lineHeight: 28, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].small, fontFamily: 'inherit', color: palette.neutralPrimary, borderRadius: 2, position: 'relative', backgroundColor: 'transparent', border: 'none', padding: 0, overflow: 'visible', selectors: { '&:hover': { color: palette.neutralDark, backgroundColor: palette.neutralLight, cursor: 'pointer', outline: '1px solid transparent', }, }, }, ], disabledStyle: disabledStyle, }; }; //# sourceMappingURL=CalendarDay.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.types.js ***! \***********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CalendarDay.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.base.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.base.js ***! \**************************************************************************************************/ /*! exports provided: CalendarMonthBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarMonthBase", function() { return CalendarMonthBase; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _CalendarMonth_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CalendarMonth.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.styles.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _CalendarYear_CalendarYear__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../CalendarYear/CalendarYear */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../defaults */ "./node_modules/@fluentui/react/lib/components/Calendar/defaults.js"); var MONTHS_PER_ROW = 4; var getClassNames = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["classNamesFunction"])(); var DEFAULT_PROPS = { styles: _CalendarMonth_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"], strings: undefined, navigationIcons: _defaults__WEBPACK_IMPORTED_MODULE_8__["defaultCalendarNavigationIcons"], dateTimeFormatter: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_DATE_FORMATTING"], yearPickerHidden: false, }; function useAnimateBackwards(_a) { var navigatedDate = _a.navigatedDate; var currentYear = navigatedDate.getFullYear(); var previousYear = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["usePrevious"])(currentYear); if (previousYear === undefined || previousYear === currentYear) { return undefined; } else { return previousYear > currentYear; } } function useFocusLogic(_a) { var componentRef = _a.componentRef; var navigatedMonthRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null); var calendarYearRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null); var focusOnUpdate = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](false); var focus = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function () { if (calendarYearRef.current) { calendarYearRef.current.focus(); } else if (navigatedMonthRef.current) { navigatedMonthRef.current.focus(); } }, []); react__WEBPACK_IMPORTED_MODULE_0__["useImperativeHandle"](componentRef, function () { return ({ focus: focus }); }, [focus]); react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { if (focusOnUpdate.current) { focus(); focusOnUpdate.current = false; } }); var focusOnNextUpdate = function () { focusOnUpdate.current = true; }; return [navigatedMonthRef, calendarYearRef, focusOnNextUpdate]; } var CalendarMonthBase = function (propsWithoutDefaults) { var _a, _b; var props = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var _c = useFocusLogic(props), navigatedMonthRef = _c[0], calendarYearRef = _c[1], focusOnNextUpdate = _c[2]; var _d = react__WEBPACK_IMPORTED_MODULE_0__["useState"](false), isYearPickerVisible = _d[0], setIsYearPickerVisible = _d[1]; var animateBackwards = useAnimateBackwards(props); var navigatedDate = props.navigatedDate, selectedDate = props.selectedDate, strings = props.strings, _e = props.today, today = _e === void 0 ? new Date() : _e, navigationIcons = props.navigationIcons, dateTimeFormatter = props.dateTimeFormatter, minDate = props.minDate, maxDate = props.maxDate, theme = props.theme, styles = props.styles, className = props.className, allFocusable = props.allFocusable, highlightCurrentMonth = props.highlightCurrentMonth, highlightSelectedMonth = props.highlightSelectedMonth, animationDirection = props.animationDirection, yearPickerHidden = props.yearPickerHidden, onNavigateDate = props.onNavigateDate; var selectMonthCallback = function (newMonth) { return function () { return onSelectMonth(newMonth); }; }; var onSelectNextYear = function () { onNavigateDate(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addYears"])(navigatedDate, 1), false); }; var onSelectPrevYear = function () { onNavigateDate(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addYears"])(navigatedDate, -1), false); }; var onSelectMonth = function (newMonth) { var _a; // If header is clickable the calendars are overlayed, switch back to day picker when month is clicked (_a = props.onHeaderSelect) === null || _a === void 0 ? void 0 : _a.call(props); onNavigateDate(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["setMonth"])(navigatedDate, newMonth), true); }; var onHeaderSelect = function () { var _a; if (!yearPickerHidden) { focusOnNextUpdate(); setIsYearPickerVisible(true); } else { (_a = props.onHeaderSelect) === null || _a === void 0 ? void 0 : _a.call(props); } }; var onSelectYear = function (selectedYear) { focusOnNextUpdate(); var navYear = navigatedDate.getFullYear(); if (navYear !== selectedYear) { var newNavigationDate = new Date(navigatedDate.getTime()); newNavigationDate.setFullYear(selectedYear); // for min and max dates, adjust the new navigation date - perhaps this should be // checked on the master navigation date handler (i.e. in Calendar) if (maxDate && newNavigationDate > maxDate) { newNavigationDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["setMonth"])(newNavigationDate, maxDate.getMonth()); } else if (minDate && newNavigationDate < minDate) { newNavigationDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["setMonth"])(newNavigationDate, minDate.getMonth()); } onNavigateDate(newNavigationDate, true); } setIsYearPickerVisible(false); }; var onYearPickerHeaderSelect = function (focus) { focusOnNextUpdate(); setIsYearPickerVisible(false); }; // navigationIcons has a default value in defaultProps, but typescript doesn't recognize this var leftNavigationIcon = navigationIcons.leftNavigation; var rightNavigationIcon = navigationIcons.rightNavigation; var dateFormatter = dateTimeFormatter; // determine if previous/next years are in bounds var isPrevYearInBounds = minDate ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["compareDatePart"])(minDate, Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["getYearStart"])(navigatedDate)) < 0 : true; var isNextYearInBounds = maxDate ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["compareDatePart"])(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["getYearEnd"])(navigatedDate), maxDate) < 0 : true; var classNames = getClassNames(styles, { theme: theme, className: className, hasHeaderClickCallback: !!props.onHeaderSelect || !yearPickerHidden, highlightCurrent: highlightCurrentMonth, highlightSelected: highlightSelectedMonth, animateBackwards: animateBackwards, animationDirection: animationDirection, }); if (isYearPickerVisible) { var _f = getYearStrings(props), onRenderYear = _f[0], yearStrings = _f[1]; // use navigated date for the year picker return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_CalendarYear_CalendarYear__WEBPACK_IMPORTED_MODULE_6__["CalendarYear"], { key: 'calendarYear', minYear: minDate ? minDate.getFullYear() : undefined, maxYear: maxDate ? maxDate.getFullYear() : undefined, // eslint-disable-next-line react/jsx-no-bind onSelectYear: onSelectYear, navigationIcons: navigationIcons, // eslint-disable-next-line react/jsx-no-bind onHeaderSelect: onYearPickerHeaderSelect, selectedYear: selectedDate ? selectedDate.getFullYear() : navigatedDate ? navigatedDate.getFullYear() : undefined, onRenderYear: onRenderYear, strings: yearStrings, componentRef: calendarYearRef, styles: styles, highlightCurrentYear: highlightCurrentMonth, highlightSelectedYear: highlightSelectedMonth, animationDirection: animationDirection })); } var rowIndexes = []; for (var i = 0; i < strings.shortMonths.length / MONTHS_PER_ROW; i++) { rowIndexes.push(i); } var yearString = dateFormatter.formatYear(navigatedDate); var headerAriaLabel = strings.monthPickerHeaderAriaLabel ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["format"])(strings.monthPickerHeaderAriaLabel, yearString) : yearString; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.root }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.headerContainer }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("button", { className: classNames.currentItemButton, onClick: onHeaderSelect, onKeyDown: onButtonKeyDown(onHeaderSelect), "aria-label": headerAriaLabel, "data-is-focusable": !!props.onHeaderSelect || !yearPickerHidden, tabIndex: !!props.onHeaderSelect || !yearPickerHidden ? 0 : -1, type: "button" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { "aria-live": "polite", "aria-atomic": "true" }, yearString)), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.navigationButtonsContainer }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("button", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["css"])(classNames.navigationButton, (_a = {}, _a[classNames.disabled] = !isPrevYearInBounds, _a)), "aria-disabled": !isPrevYearInBounds, tabIndex: isPrevYearInBounds ? undefined : allFocusable ? 0 : -1, onClick: isPrevYearInBounds ? onSelectPrevYear : undefined, onKeyDown: isPrevYearInBounds ? onButtonKeyDown(onSelectPrevYear) : undefined, title: strings.prevYearAriaLabel ? strings.prevYearAriaLabel + ' ' + dateFormatter.formatYear(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addYears"])(navigatedDate, -1)) : undefined, type: "button" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { iconName: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["getRTL"])() ? rightNavigationIcon : leftNavigationIcon })), react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("button", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["css"])(classNames.navigationButton, (_b = {}, _b[classNames.disabled] = !isNextYearInBounds, _b)), "aria-disabled": !isNextYearInBounds, tabIndex: isNextYearInBounds ? undefined : allFocusable ? 0 : -1, onClick: isNextYearInBounds ? onSelectNextYear : undefined, onKeyDown: isNextYearInBounds ? onButtonKeyDown(onSelectNextYear) : undefined, title: strings.nextYearAriaLabel ? strings.nextYearAriaLabel + ' ' + dateFormatter.formatYear(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addYears"])(navigatedDate, 1)) : undefined, type: "button" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { iconName: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["getRTL"])() ? leftNavigationIcon : rightNavigationIcon })))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_1__["FocusZone"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.gridContainer, role: "grid", "aria-label": yearString }, rowIndexes.map(function (rowNum) { var monthsForRow = strings.shortMonths.slice(rowNum * MONTHS_PER_ROW, (rowNum + 1) * MONTHS_PER_ROW); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: 'monthRow_' + rowNum + navigatedDate.getFullYear(), role: "row", className: classNames.buttonRow }, monthsForRow.map(function (month, index) { var _a; var monthIndex = rowNum * MONTHS_PER_ROW + index; var indexedMonth = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["setMonth"])(navigatedDate, monthIndex); var isNavigatedMonth = navigatedDate.getMonth() === monthIndex; var isSelectedMonth = selectedDate.getMonth() === monthIndex; var isSelectedYear = selectedDate.getFullYear() === navigatedDate.getFullYear(); var isInBounds = (minDate ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["compareDatePart"])(minDate, Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["getMonthEnd"])(indexedMonth)) < 1 : true) && (maxDate ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["compareDatePart"])(Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["getMonthStart"])(indexedMonth), maxDate) < 1 : true); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("button", { ref: isNavigatedMonth ? navigatedMonthRef : undefined, role: 'gridcell', className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["css"])(classNames.itemButton, (_a = {}, _a[classNames.current] = highlightCurrentMonth && isCurrentMonth(monthIndex, navigatedDate.getFullYear(), today), _a[classNames.selected] = highlightSelectedMonth && isSelectedMonth && isSelectedYear, _a[classNames.disabled] = !isInBounds, _a)), disabled: !allFocusable && !isInBounds, key: monthIndex, onClick: isInBounds ? selectMonthCallback(monthIndex) : undefined, onKeyDown: isInBounds ? onButtonKeyDown(selectMonthCallback(monthIndex)) : undefined, "aria-label": dateFormatter.formatMonth(indexedMonth, strings), "aria-selected": isNavigatedMonth, "data-is-focusable": isInBounds ? true : undefined, type: "button" }, month)); }))); }))))); }; CalendarMonthBase.displayName = 'CalendarMonthBase'; function getYearStrings(_a) { var strings = _a.strings, navigatedDate = _a.navigatedDate, dateTimeFormatter = _a.dateTimeFormatter; var yearToString = function (year) { if (dateTimeFormatter) { // create a date based on the current nav date var yearFormattingDate = new Date(navigatedDate.getTime()); yearFormattingDate.setFullYear(year); return dateTimeFormatter.formatYear(yearFormattingDate); } return String(year); }; var yearRangeToString = function (yearRange) { return yearToString(yearRange.fromYear) + " - " + yearToString(yearRange.toYear); }; var yearRangeToNextDecadeLabel = function (yearRange) { return strings.nextYearRangeAriaLabel ? strings.nextYearRangeAriaLabel + " " + yearRangeToString(yearRange) : ''; }; var yearRangeToPrevDecadeLabel = function (yearRange) { return strings.prevYearRangeAriaLabel ? strings.prevYearRangeAriaLabel + " " + yearRangeToString(yearRange) : ''; }; return [ yearToString, { rangeAriaLabel: yearRangeToString, prevRangeAriaLabel: yearRangeToPrevDecadeLabel, nextRangeAriaLabel: yearRangeToNextDecadeLabel, headerAriaLabelFormatString: strings.yearPickerHeaderAriaLabel, }, ]; } function isCurrentMonth(month, year, today) { return today.getFullYear() === year && today.getMonth() === month; } function onButtonKeyDown(callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].enter: callback(); break; } }; } //# sourceMappingURL=CalendarMonth.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.js ***! \*********************************************************************************************/ /*! exports provided: CalendarMonth */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarMonth", function() { return CalendarMonth; }); /* harmony import */ var _CalendarMonth_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CalendarMonth.base */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.base.js"); /* harmony import */ var _CalendarMonth_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalendarMonth.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.styles.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var CalendarMonth = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["styled"])(_CalendarMonth_base__WEBPACK_IMPORTED_MODULE_0__["CalendarMonthBase"], _CalendarMonth_styles__WEBPACK_IMPORTED_MODULE_1__["getStyles"], undefined, { scope: 'CalendarMonth' }); //# sourceMappingURL=CalendarMonth.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.styles.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.styles.js ***! \****************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _CalendarPicker_CalendarPicker_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CalendarPicker/CalendarPicker.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.styles.js"); var getStyles = function (props) { /* Return styles from the base class. * If this component has extra styles not in the base, apply them here i.e.: * const myStyle: IStyle = { * display: "block" * }; * * return {...getPickerStyles(props), myStyle}; */ return Object(_CalendarPicker_CalendarPicker_styles__WEBPACK_IMPORTED_MODULE_0__["getStyles"])(props); }; //# sourceMappingURL=CalendarMonth.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.types.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.types.js ***! \***************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CalendarMonth.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.styles.js ***! \******************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony import */ var _Calendar_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Calendar.types */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.types.js"); var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g; var className = props.className, theme = props.theme, hasHeaderClickCallback = props.hasHeaderClickCallback, highlightCurrent = props.highlightCurrent, highlightSelected = props.highlightSelected, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection; var palette = theme.palette; var animationStyle = {}; if (animateBackwards !== undefined) { if (animationDirection === _Calendar_types__WEBPACK_IMPORTED_MODULE_2__["AnimationDirection"].Horizontal) { animationStyle = animateBackwards ? _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideRightIn20 : _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideLeftIn20; } else { animationStyle = animateBackwards ? _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideDownIn20 : _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideUpIn20; } } var headerAnimationStyle = animateBackwards !== undefined ? _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].fadeIn200 : {}; return { root: [ _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["normalize"], { width: 196, padding: 12, boxSizing: 'content-box', overflow: 'hidden', }, className, ], headerContainer: { display: 'flex', }, currentItemButton: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1 }), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, headerAnimationStyle), { fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].medium, fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, fontFamily: 'inherit', textAlign: 'left', color: 'inherit', backgroundColor: 'transparent', flexGrow: 1, padding: '0 4px 0 10px', border: 'none', overflow: 'visible' }), hasHeaderClickCallback && { selectors: { '&:hover, &:active': { cursor: !hasHeaderClickCallback ? 'default' : 'pointer', color: palette.neutralDark, outline: '1px solid transparent', backgroundColor: palette.neutralLight, }, }, }, ], navigationButtonsContainer: { display: 'flex', alignItems: 'center', }, navigationButton: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1 }), { fontFamily: 'inherit', width: 28, minWidth: 28, height: 28, minHeight: 28, display: 'block', textAlign: 'center', lineHeight: 28, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].small, color: palette.neutralPrimary, borderRadius: 2, position: 'relative', backgroundColor: 'transparent', border: 'none', padding: 0, overflow: 'visible', selectors: { '&:hover': { color: palette.neutralDark, cursor: 'pointer', outline: '1px solid transparent', backgroundColor: palette.neutralLight, }, }, }, ], gridContainer: { marginTop: 4, }, buttonRow: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, animationStyle), { marginBottom: 16, selectors: { '&:nth-child(n + 3)': { marginBottom: 0, }, } }), itemButton: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1 }), { width: 40, height: 40, minWidth: 40, minHeight: 40, lineHeight: 40, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].small, fontFamily: 'inherit', padding: 0, margin: '0 12px 0 0', color: palette.neutralPrimary, backgroundColor: 'transparent', border: 'none', borderRadius: 2, overflow: 'visible', selectors: { '&:nth-child(4n + 4)': { marginRight: 0, }, '&:nth-child(n + 9)': { marginBottom: 0, }, '& div': { fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].regular, }, '&:hover': { color: palette.neutralDark, backgroundColor: palette.neutralLight, cursor: 'pointer', outline: '1px solid transparent', selectors: (_a = {}, _a[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'Window', color: 'WindowText', outline: '1px solid Highlight' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a), }, '&:active': { backgroundColor: palette.themeLight, selectors: (_b = {}, _b[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'Window', color: 'Highlight' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _b), }, }, }, ], current: highlightCurrent ? { color: palette.white, backgroundColor: palette.themePrimary, selectors: (_c = { '& div': { fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, }, '&:hover': { backgroundColor: palette.themePrimary, selectors: (_d = {}, _d[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'WindowText', color: 'Window' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _d), } }, _c[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'WindowText', color: 'Window' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _c), } : {}, selected: highlightSelected ? { color: palette.neutralPrimary, backgroundColor: palette.themeLight, fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, selectors: (_e = { '& div': { fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, }, '&:hover, &:active': { backgroundColor: palette.themeLight, selectors: (_f = {}, _f[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'Window', background: 'Highlight' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _f), } }, _e[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'Highlight', color: 'Window' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _e), } : {}, disabled: { selectors: (_g = { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', } }, _g[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', forcedColorAdjust: 'none', }, _g), }, }; }; //# sourceMappingURL=CalendarPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.types.js ***! \*****************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CalendarPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.base.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.base.js ***! \************************************************************************************************/ /*! exports provided: CalendarYearBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarYearBase", function() { return CalendarYearBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _defaults__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../defaults */ "./node_modules/@fluentui/react/lib/components/Calendar/defaults.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var CELL_COUNT = 12; var CELLS_PER_ROW = 4; var DefaultCalendarYearStrings = { prevRangeAriaLabel: undefined, nextRangeAriaLabel: undefined, }; var CalendarYearGridCell = function (props) { var _a; var _b; var styles = props.styles, theme = props.theme, className = props.className, highlightCurrentYear = props.highlightCurrentYear, highlightSelectedYear = props.highlightSelectedYear, year = props.year, selected = props.selected, disabled = props.disabled, componentRef = props.componentRef, onSelectYear = props.onSelectYear, onRenderYear = props.onRenderYear; var buttonRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); var onClick = function () { onSelectYear === null || onSelectYear === void 0 ? void 0 : onSelectYear(year); }; var onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter) { onSelectYear === null || onSelectYear === void 0 ? void 0 : onSelectYear(year); } }; var classNames = getClassNames(styles, { theme: theme, className: className, highlightCurrent: highlightCurrentYear, highlightSelected: highlightSelectedYear, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.itemButton, (_a = {}, _a[classNames.selected] = selected, _a[classNames.disabled] = disabled, _a)), type: "button", role: "gridcell", onClick: !disabled ? onClick : undefined, onKeyDown: !disabled ? onKeyDown : undefined, disabled: disabled, "aria-selected": selected, ref: buttonRef }, (_b = onRenderYear === null || onRenderYear === void 0 ? void 0 : onRenderYear(year)) !== null && _b !== void 0 ? _b : year)); }; CalendarYearGridCell.displayName = 'CalendarYearGridCell'; var CalendarYearGrid = function (props) { var styles = props.styles, theme = props.theme, className = props.className, fromYear = props.fromYear, toYear = props.toYear, animationDirection = props.animationDirection, animateBackwards = props.animateBackwards, minYear = props.minYear, maxYear = props.maxYear, onSelectYear = props.onSelectYear, selectedYear = props.selectedYear, componentRef = props.componentRef; var selectedCellRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var currentCellRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = (selectedCellRef.current || currentCellRef.current)) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); var renderCell = function (yearToRender) { var selected = yearToRender === selectedYear; var disabled = (minYear !== undefined && yearToRender < minYear) || (maxYear !== undefined && yearToRender > maxYear); var current = yearToRender === new Date().getFullYear(); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearGridCell, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { key: yearToRender, year: yearToRender, selected: selected, current: current, disabled: disabled, onSelectYear: onSelectYear, componentRef: selected ? selectedCellRef : current ? currentCellRef : undefined, theme: theme }))); }; var classNames = getClassNames(styles, { theme: theme, className: className, animateBackwards: animateBackwards, animationDirection: animationDirection, }); var onRenderYear = function (value) { var _a, _b; return (_b = (_a = props.onRenderYear) === null || _a === void 0 ? void 0 : _a.call(props, value)) !== null && _b !== void 0 ? _b : value; }; var gridAriaLabel = onRenderYear(fromYear) + " - " + onRenderYear(toYear); var year = fromYear; var cells = []; for (var i = 0; i < (toYear - fromYear + 1) / CELLS_PER_ROW; i++) { cells.push([]); for (var j = 0; j < CELLS_PER_ROW; j++) { cells[i].push(renderCell(year)); year++; } } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_3__["FocusZone"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.gridContainer, role: "grid", "aria-label": gridAriaLabel }, cells.map(function (cellRow, index) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: 'yearPickerRow_' + index + '_' + fromYear, role: "row", className: classNames.buttonRow }, cellRow)); })))); }; CalendarYearGrid.displayName = 'CalendarYearGrid'; var CalendarYearNavDirection; (function (CalendarYearNavDirection) { CalendarYearNavDirection[CalendarYearNavDirection["Previous"] = 0] = "Previous"; CalendarYearNavDirection[CalendarYearNavDirection["Next"] = 1] = "Next"; })(CalendarYearNavDirection || (CalendarYearNavDirection = {})); var CalendarYearNavArrow = function (props) { var _a; var styles = props.styles, theme = props.theme, className = props.className, _b = props.navigationIcons, navigationIcons = _b === void 0 ? _defaults__WEBPACK_IMPORTED_MODULE_6__["defaultCalendarNavigationIcons"] : _b, _c = props.strings, strings = _c === void 0 ? DefaultCalendarYearStrings : _c, direction = props.direction, onSelectPrev = props.onSelectPrev, onSelectNext = props.onSelectNext, fromYear = props.fromYear, toYear = props.toYear, maxYear = props.maxYear, minYear = props.minYear; var classNames = getClassNames(styles, { theme: theme, className: className, }); var ariaLabel = direction === CalendarYearNavDirection.Previous ? strings.prevRangeAriaLabel : strings.nextRangeAriaLabel; var newRangeOffset = direction === CalendarYearNavDirection.Previous ? -CELL_COUNT : CELL_COUNT; var newRange = { fromYear: fromYear + newRangeOffset, toYear: toYear + newRangeOffset }; var ariaLabelString = ariaLabel ? (typeof ariaLabel === 'string' ? ariaLabel : ariaLabel(newRange)) : undefined; var disabled = direction === CalendarYearNavDirection.Previous ? minYear !== undefined && fromYear < minYear : maxYear !== undefined && props.fromYear + CELL_COUNT > maxYear; var onNavigate = function () { direction === CalendarYearNavDirection.Previous ? onSelectPrev === null || onSelectPrev === void 0 ? void 0 : onSelectPrev() : onSelectNext === null || onSelectNext === void 0 ? void 0 : onSelectNext(); }; var onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter) { onNavigate(); } }; // can be condensed, but leaving verbose for clarity due to regressions var isLeftNavigation = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? direction === CalendarYearNavDirection.Next : direction === CalendarYearNavDirection.Previous; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.navigationButton, (_a = {}, _a[classNames.disabled] = disabled, _a)), onClick: !disabled ? onNavigate : undefined, onKeyDown: !disabled ? onKeyDown : undefined, type: "button", title: ariaLabelString, disabled: disabled }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { iconName: isLeftNavigation ? navigationIcons.leftNavigation : navigationIcons.rightNavigation }))); }; CalendarYearNavArrow.displayName = 'CalendarYearNavArrow'; var CalendarYearNav = function (props) { var styles = props.styles, theme = props.theme, className = props.className; var classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.navigationButtonsContainer }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearNavArrow, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { direction: CalendarYearNavDirection.Previous })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearNavArrow, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { direction: CalendarYearNavDirection.Next })))); }; CalendarYearNav.displayName = 'CalendarYearNav'; var CalendarYearTitle = function (props) { var styles = props.styles, theme = props.theme, className = props.className, fromYear = props.fromYear, toYear = props.toYear, _a = props.strings, strings = _a === void 0 ? DefaultCalendarYearStrings : _a, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection; var onHeaderSelect = function () { var _a; (_a = props.onHeaderSelect) === null || _a === void 0 ? void 0 : _a.call(props, true); }; var onHeaderKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter || ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space) { onHeaderSelect(); } }; var onRenderYear = function (year) { var _a, _b; return (_b = (_a = props.onRenderYear) === null || _a === void 0 ? void 0 : _a.call(props, year)) !== null && _b !== void 0 ? _b : year; }; var classNames = getClassNames(styles, { theme: theme, className: className, hasHeaderClickCallback: !!props.onHeaderSelect, animateBackwards: animateBackwards, animationDirection: animationDirection, }); if (props.onHeaderSelect) { var rangeAriaLabel = strings.rangeAriaLabel; var headerAriaLabelFormatString = strings.headerAriaLabelFormatString; var currentDateRange = rangeAriaLabel ? typeof rangeAriaLabel === 'string' ? rangeAriaLabel : rangeAriaLabel(props) : undefined; var ariaLabel = headerAriaLabelFormatString ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["format"])(headerAriaLabelFormatString, currentDateRange) : currentDateRange; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: classNames.currentItemButton, onClick: onHeaderSelect, onKeyDown: onHeaderKeyDown, "aria-label": ariaLabel, role: "button", type: "button" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { "aria-live": "assertive", "aria-atomic": "true" }, onRenderYear(fromYear), " - ", onRenderYear(toYear)))); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.current }, onRenderYear(fromYear), " - ", onRenderYear(toYear))); }; CalendarYearTitle.displayName = 'CalendarYearTitle'; var CalendarYearHeader = function (props) { var _a; var styles = props.styles, theme = props.theme, className = props.className, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection, onRenderTitle = props.onRenderTitle; var classNames = getClassNames(styles, { theme: theme, className: className, hasHeaderClickCallback: !!props.onHeaderSelect, animateBackwards: animateBackwards, animationDirection: animationDirection, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.headerContainer }, (_a = onRenderTitle === null || onRenderTitle === void 0 ? void 0 : onRenderTitle(props)) !== null && _a !== void 0 ? _a : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearTitle, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearNav, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)))); }; CalendarYearHeader.displayName = 'CalendarYearHeader'; function useAnimateBackwards(_a) { var selectedYear = _a.selectedYear, navigatedYear = _a.navigatedYear; var rangeYear = selectedYear || navigatedYear || new Date().getFullYear(); var fromYear = Math.floor(rangeYear / 10) * 10; var previousFromYear = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["usePrevious"])(fromYear); if (!previousFromYear || previousFromYear === fromYear) { return undefined; } else if (previousFromYear > fromYear) { return true; } else { return false; } } var NavigationDirection; (function (NavigationDirection) { NavigationDirection[NavigationDirection["Previous"] = 0] = "Previous"; NavigationDirection[NavigationDirection["Next"] = 1] = "Next"; })(NavigationDirection || (NavigationDirection = {})); function useYearRangeState(_a) { var selectedYear = _a.selectedYear, navigatedYear = _a.navigatedYear; var _b = react__WEBPACK_IMPORTED_MODULE_1__["useReducer"](function (state, action) { return state + (action === NavigationDirection.Next ? CELL_COUNT : -CELL_COUNT); }, undefined, function () { var rangeYear = selectedYear || navigatedYear || new Date().getFullYear(); return Math.floor(rangeYear / 10) * 10; }), fromYear = _b[0], navigate = _b[1]; var toYear = fromYear + CELL_COUNT - 1; var onNavNext = function () { return navigate(NavigationDirection.Next); }; var onNavPrevious = function () { return navigate(NavigationDirection.Previous); }; return [fromYear, toYear, onNavNext, onNavPrevious]; } var CalendarYearBase = function (props) { var animateBackwards = useAnimateBackwards(props); var _a = useYearRangeState(props), fromYear = _a[0], toYear = _a[1], onNavNext = _a[2], onNavPrevious = _a[3]; var gridRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](props.componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = gridRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }); var styles = props.styles, theme = props.theme, className = props.className; var classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearHeader, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { fromYear: fromYear, toYear: toYear, onSelectPrev: onNavPrevious, onSelectNext: onNavNext, animateBackwards: animateBackwards })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarYearGrid, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { fromYear: fromYear, toYear: toYear, animateBackwards: animateBackwards, componentRef: gridRef })))); }; CalendarYearBase.displayName = 'CalendarYearBase'; //# sourceMappingURL=CalendarYear.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.js ***! \*******************************************************************************************/ /*! exports provided: CalendarYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarYear", function() { return CalendarYear; }); /* harmony import */ var _CalendarYear_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CalendarYear.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.styles.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _CalendarYear_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CalendarYear.base */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.base.js"); var CalendarYear = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["styled"])(_CalendarYear_base__WEBPACK_IMPORTED_MODULE_2__["CalendarYearBase"], _CalendarYear_styles__WEBPACK_IMPORTED_MODULE_0__["getStyles"], undefined, { scope: 'CalendarYear' }); //# sourceMappingURL=CalendarYear.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.styles.js ***! \**************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _CalendarPicker_CalendarPicker_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CalendarPicker/CalendarPicker.styles */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.styles.js"); var getStyles = function (props) { /* Return styles from the base class. * If this component has extra styles not in the base, apply them here i.e.: * const myStyle: IStyle = { * display: "block" * }; * return {...getPickerStyles(props), myStyle}; */ return Object(_CalendarPicker_CalendarPicker_styles__WEBPACK_IMPORTED_MODULE_0__["getStyles"])(props); }; //# sourceMappingURL=CalendarYear.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.types.js ***! \*************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CalendarYear.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/defaults.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/defaults.js ***! \**************************************************************************/ /*! exports provided: defaultCalendarStrings, defaultDayPickerStrings, defaultCalendarNavigationIcons */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultCalendarStrings", function() { return defaultCalendarStrings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultDayPickerStrings", function() { return defaultDayPickerStrings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultCalendarNavigationIcons", function() { return defaultCalendarNavigationIcons; }); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); var defaultCalendarStrings = _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CALENDAR_STRINGS"]; /** * @deprecated Use `defaultCalendarStrings` */ var defaultDayPickerStrings = defaultCalendarStrings; var defaultCalendarNavigationIcons = { leftNavigation: 'Up', rightNavigation: 'Down', closeIcon: 'CalculatorMultiply', }; //# sourceMappingURL=defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Calendar/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Calendar/index.js ***! \***********************************************************************/ /*! exports provided: Calendar, AnimationDirection, defaultCalendarStrings, defaultDayPickerStrings, defaultCalendarNavigationIcons, DayOfWeek, DateRangeType, FirstWeekOfYear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Calendar */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Calendar", function() { return _Calendar__WEBPACK_IMPORTED_MODULE_0__["Calendar"]; }); /* harmony import */ var _Calendar_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Calendar.types */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationDirection", function() { return _Calendar_types__WEBPACK_IMPORTED_MODULE_1__["AnimationDirection"]; }); /* harmony import */ var _CalendarDay_CalendarDay_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CalendarDay/CalendarDay.types */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarDay/CalendarDay.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _CalendarMonth_CalendarMonth_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CalendarMonth/CalendarMonth.types */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarMonth/CalendarMonth.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _CalendarPicker_CalendarPicker_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CalendarPicker/CalendarPicker.types */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarPicker/CalendarPicker.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _CalendarYear_CalendarYear_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CalendarYear/CalendarYear.types */ "./node_modules/@fluentui/react/lib/components/Calendar/CalendarYear/CalendarYear.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _CalendarDayGrid_CalendarDayGrid_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../CalendarDayGrid/CalendarDayGrid.types */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib/components/Calendar/defaults.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultCalendarStrings", function() { return _defaults__WEBPACK_IMPORTED_MODULE_7__["defaultCalendarStrings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDayPickerStrings", function() { return _defaults__WEBPACK_IMPORTED_MODULE_7__["defaultDayPickerStrings"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultCalendarNavigationIcons", function() { return _defaults__WEBPACK_IMPORTED_MODULE_7__["defaultCalendarNavigationIcons"]; }); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DayOfWeek", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_8__["DayOfWeek"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateRangeType", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_8__["DateRangeType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FirstWeekOfYear", function() { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_8__["FirstWeekOfYear"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.base.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.base.js ***! \*********************************************************************************************/ /*! exports provided: CalendarDayGridBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarDayGridBase", function() { return CalendarDayGridBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _CalendarMonthHeaderRow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CalendarMonthHeaderRow */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js"); /* harmony import */ var _CalendarGridRow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CalendarGridRow */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarGridRow.js"); var getClassNames = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); function useDayRefs() { var daysRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"]({}); var getSetRefCallback = function (dayKey) { return function (element) { if (element === null) { delete daysRef.current[dayKey]; } else { daysRef.current[dayKey] = element; } }; }; return [daysRef, getSetRefCallback]; } function useWeeks(props, onSelectDate, getSetRefCallback) { /** * Initial parsing of the given props to generate IDayInfo two dimensional array, which contains a representation * of every day in the grid. Convenient for helping with conversions between day refs and Date objects in callbacks. */ var weeks = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { var _a; var weeksGrid = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDayGrid"])(props); var firstVisibleDay = weeksGrid[1][0].originalDate; var lastVisibleDay = weeksGrid[weeksGrid.length - 1][6].originalDate; var markedDays = ((_a = props.getMarkedDays) === null || _a === void 0 ? void 0 : _a.call(props, firstVisibleDay, lastVisibleDay)) || []; /** * Weeks is a 2D array. Weeks[0] contains the last week of the prior range, * Weeks[weeks.length - 1] contains first week of next range. These are for transition states. * * Weeks[1... weeks.length - 2] contains the actual visible data */ var returnValue = []; for (var weekIndex = 0; weekIndex < weeksGrid.length; weekIndex++) { var week = []; var _loop_1 = function (dayIndex) { var day = weeksGrid[weekIndex][dayIndex]; var dayInfo = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ onSelected: function () { return onSelectDate(day.originalDate); }, setRef: getSetRefCallback(day.key) }, day), { isMarked: day.isMarked || (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some(function (markedDay) { return Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["compareDates"])(day.originalDate, markedDay); })) }); week.push(dayInfo); }; for (var dayIndex = 0; dayIndex < _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["DAYS_IN_WEEK"]; dayIndex++) { _loop_1(dayIndex); } returnValue.push(week); } return returnValue; // TODO: this is missing deps on getSetRefCallback and onSelectDate (and depending on the entire // props object may not be a good idea due to likely frequent mutation). It would be easy to // fix getSetRefCallback to not mutate every render, but onSelectDate is passed down from // Calendar and trying to fix it requires a huge cascade of changes. // eslint-disable-next-line react-hooks/exhaustive-deps }, [props]); return weeks; } /** * Hook to determine whether to animate the CalendarDayGrid forwards or backwards * @returns true if the grid should animate backwards; false otherwise */ function useAnimateBackwards(weeks) { var previousNavigatedDate = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["usePrevious"])(weeks[0][0].originalDate); if (!previousNavigatedDate || previousNavigatedDate.getTime() === weeks[0][0].originalDate.getTime()) { return undefined; } else if (previousNavigatedDate <= weeks[0][0].originalDate) { return false; } else { return true; } } function useWeekCornerStyles(props) { /** * * Section for setting the rounded corner styles on individual day cells. Individual day cells need different * corners to be rounded depending on which date range type and where the cell is located in the current grid. * If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes * in Edge browser. * */ var getWeekCornerStyles = function (classNames, initialWeeks) { var weekCornersStyled = {}; /* need to handle setting all of the corners on arbitrarily shaped blobs __ __|A | |B |C |__ |D |E |F | in this case, A needs top left rounded, top right rounded B needs top left rounded C doesn't need any rounding D needs bottom left rounded E doesn't need any rounding F needs top right rounding */ // cut off the animation transition weeks var weeks = initialWeeks.slice(1, initialWeeks.length - 1); // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc. weeks.forEach(function (week, weekIndex) { week.forEach(function (day, dayIndex) { var above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected); var below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected); var left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected); var right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected); var style = []; style.push(calculateRoundedStyles(classNames, above, below, left, right)); style.push(calculateBorderStyles(classNames, above, below, left, right)); weekCornersStyled[weekIndex + '_' + dayIndex] = style.join(' '); }); }); return weekCornersStyled; }; var calculateRoundedStyles = function (classNames, above, below, left, right) { var style = []; var roundedTopLeft = !above && !left; var roundedTopRight = !above && !right; var roundedBottomLeft = !below && !left; var roundedBottomRight = !below && !right; if (roundedTopLeft) { style.push(Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? classNames.topRightCornerDate : classNames.topLeftCornerDate); } if (roundedTopRight) { style.push(Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? classNames.topLeftCornerDate : classNames.topRightCornerDate); } if (roundedBottomLeft) { style.push(Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? classNames.bottomRightCornerDate : classNames.bottomLeftCornerDate); } if (roundedBottomRight) { style.push(Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? classNames.bottomLeftCornerDate : classNames.bottomRightCornerDate); } return style.join(' '); }; var calculateBorderStyles = function (classNames, above, below, left, right) { var style = []; if (!above) { style.push(classNames.datesAbove); } if (!below) { style.push(classNames.datesBelow); } if (!left) { style.push(Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? classNames.datesRight : classNames.datesLeft); } if (!right) { style.push(Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? classNames.datesLeft : classNames.datesRight); } return style.join(' '); }; var isInSameHoverRange = function (date1, date2, date1Selected, date2Selected) { var dateRangeType = props.dateRangeType, firstDayOfWeek = props.firstDayOfWeek, workWeekDays = props.workWeekDays; // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state var dateRangeHoverType = dateRangeType === _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["DateRangeType"].WorkWeek ? _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["DateRangeType"].Week : dateRangeType; // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver var dateRange = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDateRangeArray"])(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays); if (date1Selected !== date2Selected) { // if one is selected and the other is not, they can't be in the same range return false; } else if (date1Selected && date2Selected) { // if they're both selected at the same time they must be in the same range return true; } // otherwise, both must be unselected, so check the dateRange return dateRange.filter(function (date) { return date.getTime() === date2.getTime(); }).length > 0; }; return [getWeekCornerStyles, calculateRoundedStyles]; } var CalendarDayGridBase = function (props) { var navigatedDayRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var activeDescendantId = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["useId"])(); var onSelectDate = function (selectedDate) { var _a, _b; var firstDayOfWeek = props.firstDayOfWeek, minDate = props.minDate, maxDate = props.maxDate, workWeekDays = props.workWeekDays, daysToSelectInDayView = props.daysToSelectInDayView, restrictedDates = props.restrictedDates; var restrictedDatesOptions = { minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates }; var dateRange = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDateRangeArray"])(selectedDate, dateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView); dateRange = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getBoundedDateRange"])(dateRange, minDate, maxDate); dateRange = dateRange.filter(function (d) { return !Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["isRestrictedDate"])(d, restrictedDatesOptions); }); (_a = props.onSelectDate) === null || _a === void 0 ? void 0 : _a.call(props, selectedDate, dateRange); (_b = props.onNavigateDate) === null || _b === void 0 ? void 0 : _b.call(props, selectedDate, true); }; var _a = useDayRefs(), daysRef = _a[0], getSetRefCallback = _a[1]; var weeks = useWeeks(props, onSelectDate, getSetRefCallback); var animateBackwards = useAnimateBackwards(weeks); var _b = useWeekCornerStyles(props), getWeekCornerStyles = _b[0], calculateRoundedStyles = _b[1]; react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](props.componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = navigatedDayRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); /** * * Section for setting hover/pressed styles. Because we want arbitrary blobs of days to be selectable, to support * highlighting every day in the month for month view, css :hover style isn't enough, so we need mouse callbacks * to set classnames on all relevant child refs to apply the styling * */ var getDayInfosInRangeOfDay = function (dayToCompare) { // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state var dateRangeHoverType = getDateRangeTypeToUse(props.dateRangeType, props.workWeekDays); // gets all the dates for the given date range type that are in the same date range as the given day var dateRange = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDateRangeArray"])(dayToCompare.originalDate, dateRangeHoverType, props.firstDayOfWeek, props.workWeekDays, props.daysToSelectInDayView).map(function (date) { return date.getTime(); }); // gets all the day refs for the given dates var dayInfosInRange = weeks.reduce(function (accumulatedValue, currentWeek) { return accumulatedValue.concat(currentWeek.filter(function (weekDay) { return dateRange.indexOf(weekDay.originalDate.getTime()) !== -1; })); }, []); return dayInfosInRange; }; var getRefsFromDayInfos = function (dayInfosInRange) { var dayRefs = []; dayRefs = dayInfosInRange.map(function (dayInfo) { return daysRef.current[dayInfo.key]; }); return dayRefs; }; var styles = props.styles, theme = props.theme, className = props.className, dateRangeType = props.dateRangeType, showWeekNumbers = props.showWeekNumbers, labelledBy = props.labelledBy, lightenDaysOutsideNavigatedMonth = props.lightenDaysOutsideNavigatedMonth, animationDirection = props.animationDirection; var classNames = getClassNames(styles, { theme: theme, className: className, dateRangeType: dateRangeType, showWeekNumbers: showWeekNumbers, lightenDaysOutsideNavigatedMonth: lightenDaysOutsideNavigatedMonth === undefined ? true : lightenDaysOutsideNavigatedMonth, animationDirection: animationDirection, animateBackwards: animateBackwards, }); // When the month is highlighted get the corner dates so that styles can be added to them var weekCorners = getWeekCornerStyles(classNames, weeks); var partialWeekProps = { weeks: weeks, navigatedDayRef: navigatedDayRef, calculateRoundedStyles: calculateRoundedStyles, activeDescendantId: activeDescendantId, classNames: classNames, weekCorners: weekCorners, getDayInfosInRangeOfDay: getDayInfosInRangeOfDay, getRefsFromDayInfos: getRefsFromDayInfos, }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_3__["FocusZone"], { className: classNames.wrapper, preventDefaultWhenHandled: true }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("table", { className: classNames.table, "aria-multiselectable": "false", "aria-labelledby": labelledBy, "aria-activedescendant": activeDescendantId, role: "grid" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("tbody", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarMonthHeaderRow__WEBPACK_IMPORTED_MODULE_6__["CalendarMonthHeaderRow"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { classNames: classNames, weeks: weeks })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarGridRow__WEBPACK_IMPORTED_MODULE_7__["CalendarGridRow"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, partialWeekProps, { week: weeks[0], weekIndex: -1, rowClassName: classNames.firstTransitionWeek, ariaRole: "presentation", ariaHidden: true })), weeks.slice(1, weeks.length - 1).map(function (week, weekIndex) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarGridRow__WEBPACK_IMPORTED_MODULE_7__["CalendarGridRow"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, partialWeekProps, { key: weekIndex, week: week, weekIndex: weekIndex, rowClassName: classNames.weekRow }))); }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarGridRow__WEBPACK_IMPORTED_MODULE_7__["CalendarGridRow"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, partialWeekProps, { week: weeks[weeks.length - 1], weekIndex: -2, rowClassName: classNames.lastTransitionWeek, ariaRole: "presentation", ariaHidden: true })))))); }; CalendarDayGridBase.displayName = 'CalendarDayGridBase'; /** * When given work week, if the days are non-contiguous, the hover states look really weird. So for non-contiguous * work weeks, we'll just show week view instead. */ function getDateRangeTypeToUse(dateRangeType, workWeekDays) { if (workWeekDays && dateRangeType === _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["DateRangeType"].WorkWeek) { var sortedWWDays = workWeekDays.slice().sort(); var isContiguous = true; for (var i = 1; i < sortedWWDays.length; i++) { if (sortedWWDays[i] !== sortedWWDays[i - 1] + 1) { isContiguous = false; break; } } if (!isContiguous || workWeekDays.length === 0) { return _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["DateRangeType"].Week; } } return dateRangeType; } //# sourceMappingURL=CalendarDayGrid.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.js ***! \****************************************************************************************/ /*! exports provided: CalendarDayGrid */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarDayGrid", function() { return CalendarDayGrid; }); /* harmony import */ var _CalendarDayGrid_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CalendarDayGrid.base */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.base.js"); /* harmony import */ var _CalendarDayGrid_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalendarDayGrid.styles */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.styles.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var CalendarDayGrid = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["styled"])(_CalendarDayGrid_base__WEBPACK_IMPORTED_MODULE_0__["CalendarDayGridBase"], _CalendarDayGrid_styles__WEBPACK_IMPORTED_MODULE_1__["styles"], undefined, { scope: 'CalendarDayGrid' }); //# sourceMappingURL=CalendarDayGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.styles.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.styles.js ***! \***********************************************************************************************/ /*! exports provided: styles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _Calendar_Calendar_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Calendar/Calendar.types */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.types.js"); var GlobalClassNames = { hoverStyle: 'ms-CalendarDay-hoverStyle', pressedStyle: 'ms-CalendarDay-pressedStyle', dayIsTodayStyle: 'ms-CalendarDay-dayIsToday', daySelectedStyle: 'ms-CalendarDay-daySelected', }; var transitionRowDisappearance = Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["keyframes"])({ '100%': { width: 0, height: 0, overflow: 'hidden', }, '99.9%': { width: '100%', height: 28, overflow: 'visible', }, '0%': { width: '100%', height: 28, overflow: 'visible', }, }); var styles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; var theme = props.theme, dateRangeType = props.dateRangeType, showWeekNumbers = props.showWeekNumbers, lightenDaysOutsideNavigatedMonth = props.lightenDaysOutsideNavigatedMonth, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection; var palette = theme.palette; var classNames = Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); var rowAnimationStyle = {}; if (animateBackwards !== undefined) { if (animationDirection === _Calendar_Calendar_types__WEBPACK_IMPORTED_MODULE_3__["AnimationDirection"].Horizontal) { rowAnimationStyle = animateBackwards ? _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideRightIn20 : _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideLeftIn20; } else { rowAnimationStyle = animateBackwards ? _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideDownIn20 : _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideUpIn20; } } var firstTransitionRowAnimationStyle = {}; var lastTransitionRowAnimationStyle = {}; if (animateBackwards !== undefined) { if (animationDirection !== _Calendar_Calendar_types__WEBPACK_IMPORTED_MODULE_3__["AnimationDirection"].Horizontal) { firstTransitionRowAnimationStyle = animateBackwards ? { animationName: '' } : _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideUpOut20; lastTransitionRowAnimationStyle = animateBackwards ? _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideDownOut20 : { animationName: '' }; } } var disabledStyle = { selectors: { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }; return { wrapper: { paddingBottom: 10, }, table: [ { textAlign: 'center', borderCollapse: 'collapse', borderSpacing: '0', tableLayout: 'fixed', fontSize: 'inherit', marginTop: 4, width: 196, position: 'relative', paddingBottom: 10, }, showWeekNumbers && { width: 226, }, ], dayCell: [ Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -3 }), { margin: 0, padding: 0, width: 28, height: 28, lineHeight: 28, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].small, fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].regular, color: palette.neutralPrimary, cursor: 'pointer', position: 'relative', selectors: (_a = {}, _a[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'WindowText', backgroundColor: 'transparent', zIndex: 0 }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a['&.' + classNames.hoverStyle] = { backgroundColor: palette.neutralLighter, selectors: (_b = {}, _b[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { zIndex: 3, backgroundColor: 'Window', outline: '1px solid Highlight', }, _b), }, _a['&.' + classNames.pressedStyle] = { backgroundColor: palette.neutralLight, selectors: (_c = {}, _c[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'Highlight', color: 'Highlight', backgroundColor: 'Window', }, _c), }, _a['&.' + classNames.pressedStyle + '.' + classNames.hoverStyle] = { selectors: (_d = {}, _d[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'Window', outline: '1px solid Highlight', }, _d), }, _a), }, ], daySelected: [ dateRangeType !== _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DateRangeType"].Month && { backgroundColor: palette.neutralLight + '!important', selectors: (_e = { '&::before': { content: '""', position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, } }, _e['&:hover, &.' + classNames.hoverStyle + ', &.' + classNames.pressedStyle] = (_f = { backgroundColor: palette.neutralLight + '!important' }, _f[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'HighlightText!important', background: 'Highlight!important', }, _f), _e[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'Highlight!important', color: 'HighlightText!important', borderColor: 'Highlight!important' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _e), }, ], weekRow: rowAnimationStyle, weekDayLabelCell: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].fadeIn200, weekNumberCell: { margin: 0, padding: 0, borderRight: '1px solid', borderColor: palette.neutralLight, backgroundColor: palette.neutralLighterAlt, color: palette.neutralSecondary, boxSizing: 'border-box', width: 28, height: 28, fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].regular, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].small, }, dayOutsideBounds: disabledStyle, dayOutsideNavigatedMonth: lightenDaysOutsideNavigatedMonth && { color: palette.neutralSecondary, fontWeight: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].regular, }, dayButton: { width: 24, height: 24, lineHeight: 24, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontSizes"].small, fontWeight: 'inherit', borderRadius: 2, border: 'none', padding: 0, color: 'inherit', backgroundColor: 'transparent', cursor: 'pointer', overflow: 'visible', selectors: { span: { height: 'inherit', lineHeight: 'inherit', }, }, }, dayIsToday: { backgroundColor: palette.themePrimary + '!important', borderRadius: '100%', color: palette.white + '!important', fontWeight: (_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold + '!important'), selectors: (_g = {}, _g[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'WindowText!important', color: 'Window!important', borderColor: 'WindowText!important' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _g), }, firstTransitionWeek: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ position: 'absolute', opacity: 0, width: 0, height: 0, overflow: 'hidden' }, firstTransitionRowAnimationStyle), { animationName: firstTransitionRowAnimationStyle.animationName + ',' + transitionRowDisappearance }), lastTransitionWeek: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ position: 'absolute', opacity: 0, width: 0, height: 0, overflow: 'hidden', marginTop: -28 }, lastTransitionRowAnimationStyle), { animationName: lastTransitionRowAnimationStyle.animationName + ',' + transitionRowDisappearance }), dayMarker: { width: 4, height: 4, backgroundColor: palette.neutralSecondary, borderRadius: '100%', bottom: 1, left: 0, right: 0, position: 'absolute', margin: 'auto', selectors: (_h = {}, _h['.' + classNames.dayIsTodayStyle + ' &'] = { backgroundColor: palette.white, selectors: (_j = {}, _j[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'Window', }, _j), }, _h['.' + classNames.daySelectedStyle + ' &'] = { selectors: (_k = {}, _k[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { backgroundColor: 'HighlightText', }, _k), }, _h[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'WindowText' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _h), }, topRightCornerDate: { borderTopRightRadius: '2px', }, topLeftCornerDate: { borderTopLeftRadius: '2px', }, bottomRightCornerDate: { borderBottomRightRadius: '2px', }, bottomLeftCornerDate: { borderBottomLeftRadius: '2px', }, datesAbove: { '&::before': { borderTop: "1px solid " + palette.neutralSecondary, }, }, datesBelow: { '&::before': { borderBottom: "1px solid " + palette.neutralSecondary, }, }, datesLeft: { '&::before': { borderLeft: "1px solid " + palette.neutralSecondary, }, }, datesRight: { '&::before': { borderRight: "1px solid " + palette.neutralSecondary, }, }, }; }; //# sourceMappingURL=CalendarDayGrid.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.types.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarDayGrid.types.js ***! \**********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CalendarDayGrid.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarGridDayCell.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarGridDayCell.js ***! \********************************************************************************************/ /*! exports provided: CalendarGridDayCell */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarGridDayCell", function() { return CalendarGridDayCell; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); var CalendarGridDayCell = function (props) { var _a; var navigatedDate = props.navigatedDate, dateTimeFormatter = props.dateTimeFormatter, allFocusable = props.allFocusable, strings = props.strings, activeDescendantId = props.activeDescendantId, navigatedDayRef = props.navigatedDayRef, calculateRoundedStyles = props.calculateRoundedStyles, weeks = props.weeks, classNames = props.classNames, day = props.day, dayIndex = props.dayIndex, weekIndex = props.weekIndex, weekCorners = props.weekCorners, ariaHidden = props.ariaHidden, customDayCellRef = props.customDayCellRef, dateRangeType = props.dateRangeType, daysToSelectInDayView = props.daysToSelectInDayView, onSelectDate = props.onSelectDate, restrictedDates = props.restrictedDates, minDate = props.minDate, maxDate = props.maxDate, onNavigateDate = props.onNavigateDate, getDayInfosInRangeOfDay = props.getDayInfosInRangeOfDay, getRefsFromDayInfos = props.getRefsFromDayInfos; var cornerStyle = (_a = weekCorners === null || weekCorners === void 0 ? void 0 : weekCorners[weekIndex + '_' + dayIndex]) !== null && _a !== void 0 ? _a : ''; var isNavigatedDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["compareDates"])(navigatedDate, day.originalDate); var navigateMonthEdge = function (ev, date) { var targetDate = undefined; var direction = 1; // by default search forward // eslint-disable-next-line deprecation/deprecation if (ev.which === _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].up) { targetDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addWeeks"])(date, -1); direction = -1; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].down) { targetDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addWeeks"])(date, 1); // eslint-disable-next-line deprecation/deprecation } else if (ev.which === Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getRTLSafeKeyCode"])(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].left)) { targetDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addDays"])(date, -1); direction = -1; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["getRTLSafeKeyCode"])(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].right)) { targetDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["addDays"])(date, 1); } if (!targetDate) { // if we couldn't find a target date at all, do nothing return; } var findAvailableDateOptions = { initialDate: date, targetDate: targetDate, direction: direction, restrictedDates: restrictedDates, minDate: minDate, maxDate: maxDate, }; // target date is restricted, search in whatever direction until finding the next possible date, // stopping at boundaries var nextDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["findAvailableDate"])(findAvailableDateOptions); if (!nextDate) { // if no dates available in initial direction, try going backwards findAvailableDateOptions.direction = -direction; nextDate = Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["findAvailableDate"])(findAvailableDateOptions); } // if the nextDate is still inside the same focusZone area, let the focusZone handle setting the focus so we // don't jump the view unnecessarily var isInCurrentView = weeks && nextDate && weeks.slice(1, weeks.length - 1).some(function (week) { return week.some(function (dayToCompare) { return Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["compareDates"])(dayToCompare.originalDate, nextDate); }); }); if (isInCurrentView) { return; } // else, fire navigation on the date to change the view to show it if (nextDate) { onNavigateDate(nextDate, true); ev.preventDefault(); } }; var onMouseOverDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef, index) { var _a; if (dayRef) { dayRef.classList.add('ms-CalendarDay-hoverStyle'); if (!dayInfos[index].isSelected && dateRangeType === _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DateRangeType"].Day && daysToSelectInDayView && daysToSelectInDayView > 1) { // remove the static classes first to overwrite them dayRef.classList.remove(classNames.bottomLeftCornerDate, classNames.bottomRightCornerDate, classNames.topLeftCornerDate, classNames.topRightCornerDate); var classNamesToAdd = calculateRoundedStyles(classNames, false, false, index > 0, index < dayRefs.length - 1).trim(); if (classNamesToAdd) { (_a = dayRef.classList).add.apply(_a, classNamesToAdd.split(' ')); } } } }); }; var onMouseDownDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef) { if (dayRef) { dayRef.classList.add('ms-CalendarDay-pressedStyle'); } }); }; var onMouseUpDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef) { if (dayRef) { dayRef.classList.remove('ms-CalendarDay-pressedStyle'); } }); }; var onMouseOutDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef, index) { var _a; if (dayRef) { dayRef.classList.remove('ms-CalendarDay-hoverStyle'); dayRef.classList.remove('ms-CalendarDay-pressedStyle'); if (!dayInfos[index].isSelected && dateRangeType === _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DateRangeType"].Day && daysToSelectInDayView && daysToSelectInDayView > 1) { var classNamesToAdd = calculateRoundedStyles(classNames, false, false, index > 0, index < dayRefs.length - 1).trim(); if (classNamesToAdd) { (_a = dayRef.classList).remove.apply(_a, classNamesToAdd.split(' ')); } } } }); }; var onDayKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["KeyCodes"].enter) { onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(day.originalDate); } else { navigateMonthEdge(ev, day.originalDate); } }; var ariaLabel = day.originalDate.getDate() + ', ' + strings.months[day.originalDate.getMonth()] + ', ' + day.originalDate.getFullYear(); if (day.isMarked) { ariaLabel = ariaLabel + ', ' + strings.dayMarkedAriaLabel; } return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["css"])(classNames.dayCell, weekCorners && cornerStyle, day.isSelected && classNames.daySelected, day.isSelected && 'ms-CalendarDay-daySelected', !day.isInBounds && classNames.dayOutsideBounds, !day.isInMonth && classNames.dayOutsideNavigatedMonth), ref: function (element) { customDayCellRef === null || customDayCellRef === void 0 ? void 0 : customDayCellRef(element, day.originalDate, classNames); day.setRef(element); isNavigatedDate && (navigatedDayRef.current = element); }, "aria-hidden": ariaHidden, "aria-disabled": !ariaHidden && !day.isInBounds, onClick: day.isInBounds && !ariaHidden ? day.onSelected : undefined, onMouseOver: !ariaHidden ? onMouseOverDay : undefined, onMouseDown: !ariaHidden ? onMouseDownDay : undefined, onMouseUp: !ariaHidden ? onMouseUpDay : undefined, onMouseOut: !ariaHidden ? onMouseOutDay : undefined, onKeyDown: !ariaHidden ? onDayKeyDown : undefined, role: "gridcell", tabIndex: isNavigatedDate ? 0 : undefined, "aria-current": day.isToday ? 'date' : undefined, "aria-selected": day.isInBounds ? day.isSelected : undefined, "data-is-focusable": !ariaHidden && (allFocusable || (day.isInBounds ? true : undefined)) }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("button", { key: day.key + 'button', "aria-hidden": ariaHidden, className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["css"])(classNames.dayButton, day.isToday && classNames.dayIsToday, day.isToday && 'ms-CalendarDay-dayIsToday'), "aria-label": ariaLabel, id: isNavigatedDate ? activeDescendantId : undefined, disabled: !ariaHidden && !day.isInBounds, type: "button", tabIndex: -1, "data-is-focusable": "false" }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { "aria-hidden": "true" }, dateTimeFormatter.formatDay(day.originalDate)), day.isMarked && react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { "aria-hidden": "true", className: classNames.dayMarker })))); }; //# sourceMappingURL=CalendarGridDayCell.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarGridRow.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarGridRow.js ***! \****************************************************************************************/ /*! exports provided: CalendarGridRow */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarGridRow", function() { return CalendarGridRow; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _CalendarGridDayCell__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CalendarGridDayCell */ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarGridDayCell.js"); var CalendarGridRow = function (props) { var classNames = props.classNames, week = props.week, weeks = props.weeks, weekIndex = props.weekIndex, rowClassName = props.rowClassName, ariaRole = props.ariaRole, showWeekNumbers = props.showWeekNumbers, firstDayOfWeek = props.firstDayOfWeek, firstWeekOfYear = props.firstWeekOfYear, navigatedDate = props.navigatedDate, strings = props.strings; var weekNumbers = showWeekNumbers ? Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_3__["getWeekNumbersInMonth"])(weeks.length, firstDayOfWeek, firstWeekOfYear, navigatedDate) : null; var titleString = weekNumbers ? strings.weekNumberFormatString && Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["format"])(strings.weekNumberFormatString, weekNumbers[weekIndex]) : ''; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("tr", { role: ariaRole, className: rowClassName, key: weekIndex + '_' + week[0].key }, showWeekNumbers && weekNumbers && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("th", { className: classNames.weekNumberCell, key: weekIndex, title: titleString, "aria-label": titleString, scope: "row" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", null, weekNumbers[weekIndex]))), week.map(function (day, dayIndex) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalendarGridDayCell__WEBPACK_IMPORTED_MODULE_4__["CalendarGridDayCell"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { key: day.key, day: day, dayIndex: dayIndex }))); }))); }; //# sourceMappingURL=CalendarGridRow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js ***! \***********************************************************************************************/ /*! exports provided: CalendarMonthHeaderRow */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarMonthHeaderRow", function() { return CalendarMonthHeaderRow; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); var CalendarMonthHeaderRow = function (props) { var showWeekNumbers = props.showWeekNumbers, strings = props.strings, firstDayOfWeek = props.firstDayOfWeek, allFocusable = props.allFocusable, weeksToShow = props.weeksToShow, weeks = props.weeks, classNames = props.classNames; var dayLabels = strings.shortDays.slice(); var firstOfMonthIndex = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["findIndex"])(weeks[1], function (day) { return day.originalDate.getDate() === 1; }); if (weeksToShow === 1 && firstOfMonthIndex >= 0) { // if we only show one week, replace the header with short month name var firstOfMonthIndexOffset = (firstOfMonthIndex + firstDayOfWeek) % _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DAYS_IN_WEEK"]; dayLabels[firstOfMonthIndexOffset] = strings.shortMonths[weeks[1][firstOfMonthIndex].originalDate.getMonth()]; } return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tr", null, showWeekNumbers && react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("th", { className: classNames.dayCell }), dayLabels.map(function (val, index) { var i = (index + firstDayOfWeek) % _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_2__["DAYS_IN_WEEK"]; var label = strings.days[i]; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("th", { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_1__["css"])(classNames.dayCell, classNames.weekDayLabelCell), scope: "col", key: dayLabels[i] + ' ' + index, title: label, "aria-label": label, "data-is-focusable": allFocusable ? true : undefined }, dayLabels[i])); }))); }; //# sourceMappingURL=CalendarMonthHeaderRow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/Callout.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/Callout.js ***! \************************************************************************/ /*! exports provided: Callout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Callout", function() { return Callout; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _CalloutContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CalloutContent */ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js"); /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib/Layer.js"); var Callout = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (_a, forwardedRef) { var layerProps = _a.layerProps, doNotLayer = _a.doNotLayer, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["layerProps", "doNotLayer"]); var content = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_CalloutContent__WEBPACK_IMPORTED_MODULE_2__["CalloutContent"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rest, { doNotLayer: doNotLayer, ref: forwardedRef })); return doNotLayer ? content : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Layer__WEBPACK_IMPORTED_MODULE_3__["Layer"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, layerProps), content); }); Callout.displayName = 'Callout'; //# sourceMappingURL=Callout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/Callout.types.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/Callout.types.js ***! \******************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Callout.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js ***! \************************************************************************************/ /*! exports provided: CalloutContentBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalloutContentBase", function() { return CalloutContentBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Positioning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib/Positioning.js"); /* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Popup */ "./node_modules/@fluentui/react/lib/Popup.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); var _a; var COMPONENT_NAME = 'CalloutContentBase'; var ANIMATIONS = (_a = {}, _a[_Positioning__WEBPACK_IMPORTED_MODULE_4__["RectangleEdge"].top] = _Styling__WEBPACK_IMPORTED_MODULE_6__["AnimationClassNames"].slideUpIn10, _a[_Positioning__WEBPACK_IMPORTED_MODULE_4__["RectangleEdge"].bottom] = _Styling__WEBPACK_IMPORTED_MODULE_6__["AnimationClassNames"].slideDownIn10, _a[_Positioning__WEBPACK_IMPORTED_MODULE_4__["RectangleEdge"].left] = _Styling__WEBPACK_IMPORTED_MODULE_6__["AnimationClassNames"].slideLeftIn10, _a[_Positioning__WEBPACK_IMPORTED_MODULE_4__["RectangleEdge"].right] = _Styling__WEBPACK_IMPORTED_MODULE_6__["AnimationClassNames"].slideRightIn10, _a); var BEAK_ORIGIN_POSITION = { top: 0, left: 0 }; // Microsoft Edge will overwrite inline styles if there is an animation pertaining to that style. // To help ensure that edge will respect the offscreen style opacity // filter needs to be added as an additional way to set opacity. // Also set pointer-events: none so that the callout will not occlude the element it is // going to be positioned against var OFF_SCREEN_STYLE = { opacity: 0, filter: 'opacity(0)', pointerEvents: 'none', }; // role and role description go hand-in-hand. Both would be included by spreading getNativeProps for a basic element // This constant array can be used to filter these out of native props spread on callout root and apply them together on // calloutMain (the Popup component within the callout) var ARIA_ROLE_ATTRIBUTES = ['role', 'aria-roledescription']; var DEFAULT_PROPS = { preventDismissOnLostFocus: false, preventDismissOnScroll: false, preventDismissOnResize: false, isBeakVisible: true, beakWidth: 16, gapSpace: 0, minPagePadding: 8, directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_2__["DirectionalHint"].bottomAutoEdge, }; var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["classNamesFunction"])({ disableCaching: true, // disabling caching because stylesProp.position mutates often }); /** * (Hook) to return a function to lazily fetch the bounds of the target element for the callout. */ function useBounds(_a, targetRef, targetWindow) { var bounds = _a.bounds, _b = _a.minPagePadding, minPagePadding = _b === void 0 ? DEFAULT_PROPS.minPagePadding : _b, target = _a.target; var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](false), targetWindowResized = _c[0], setTargetWindowResized = _c[1]; var cachedBounds = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); var getBounds = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { if (!cachedBounds.current || targetWindowResized) { var currentBounds = typeof bounds === 'function' ? (targetWindow ? bounds(target, targetWindow) : undefined) : bounds; if (!currentBounds && targetWindow) { currentBounds = Object(_Positioning__WEBPACK_IMPORTED_MODULE_4__["getBoundsFromTargetWindow"])(targetRef.current, targetWindow); currentBounds = { top: currentBounds.top + minPagePadding, left: currentBounds.left + minPagePadding, right: currentBounds.right - minPagePadding, bottom: currentBounds.bottom - minPagePadding, width: currentBounds.width - minPagePadding * 2, height: currentBounds.height - minPagePadding * 2, }; } cachedBounds.current = currentBounds; targetWindowResized && setTargetWindowResized(false); } return cachedBounds.current; }, [bounds, minPagePadding, target, targetRef, targetWindow, targetWindowResized]); var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useAsync"])(); Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useOnEvent"])(targetWindow, 'resize', async.debounce(function () { setTargetWindowResized(true); }, 500, { leading: true })); return getBounds; } /** * (Hook) to return the maximum available height for the Callout to render into. */ function useMaxHeight(_a, getBounds, positions) { var _b; var calloutMaxHeight = _a.calloutMaxHeight, finalHeight = _a.finalHeight, directionalHint = _a.directionalHint, directionalHintFixed = _a.directionalHintFixed, hidden = _a.hidden; var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), maxHeight = _c[0], setMaxHeight = _c[1]; var _d = (_b = positions === null || positions === void 0 ? void 0 : positions.elementPosition) !== null && _b !== void 0 ? _b : {}, top = _d.top, bottom = _d.bottom; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var _a; var _b = (_a = getBounds()) !== null && _a !== void 0 ? _a : {}, topBounds = _b.top, bottomBounds = _b.bottom; if (!calloutMaxHeight && !hidden) { if (typeof top === 'number' && bottomBounds) { setMaxHeight(bottomBounds - top); } else if (typeof bottom === 'number' && typeof topBounds === 'number' && bottomBounds) { setMaxHeight(bottomBounds - topBounds - bottom); } } else if (calloutMaxHeight) { setMaxHeight(calloutMaxHeight); } else { setMaxHeight(undefined); } }, [bottom, calloutMaxHeight, finalHeight, directionalHint, directionalHintFixed, getBounds, hidden, positions, top]); return maxHeight; } /** * (Hook) to find the current position of Callout. If Callout is resized then a new position is calculated. */ function usePositions(props, hostElement, calloutElement, targetRef, getBounds) { var _a = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), positions = _a[0], setPositions = _a[1]; var positionAttempts = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](0); var previousTarget = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useAsync"])(); var hidden = props.hidden, target = props.target, finalHeight = props.finalHeight, calloutMaxHeight = props.calloutMaxHeight, onPositioned = props.onPositioned, directionalHint = props.directionalHint; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!hidden) { var timerId_1 = async.requestAnimationFrame(function () { var _a, _b; if (hostElement.current && calloutElement) { var currentProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { target: targetRef.current, bounds: getBounds() }); // duplicate calloutElement & remove useMaxHeight's maxHeight for position calc var dupeCalloutElement = calloutElement.cloneNode(true); dupeCalloutElement.style.maxHeight = calloutMaxHeight ? "" + calloutMaxHeight : ''; dupeCalloutElement.style.visibility = 'hidden'; (_a = calloutElement.parentElement) === null || _a === void 0 ? void 0 : _a.appendChild(dupeCalloutElement); var previousPositions = previousTarget.current === target ? positions : undefined; // If there is a finalHeight given then we assume that the user knows and will handle // additional positioning adjustments so we should call positionCard var newPositions = finalHeight ? Object(_Positioning__WEBPACK_IMPORTED_MODULE_4__["positionCard"])(currentProps, hostElement.current, dupeCalloutElement, previousPositions) : Object(_Positioning__WEBPACK_IMPORTED_MODULE_4__["positionCallout"])(currentProps, hostElement.current, dupeCalloutElement, previousPositions); // clean up duplicate calloutElement (_b = calloutElement.parentElement) === null || _b === void 0 ? void 0 : _b.removeChild(dupeCalloutElement); // Set the new position only when the positions do not exist or one of the new callout positions // is different. The position should not change if the position is within 2 decimal places. if ((!positions && newPositions) || (positions && newPositions && !arePositionsEqual(positions, newPositions) && positionAttempts.current < 5)) { // We should not reposition the callout more than a few times, if it is then the content is likely resizing // and we should stop trying to reposition to prevent a stack overflow. positionAttempts.current++; setPositions(newPositions); } else if (positionAttempts.current > 0) { // Only call the onPositioned callback if the callout has been re-positioned at least once. positionAttempts.current = 0; onPositioned === null || onPositioned === void 0 ? void 0 : onPositioned(positions); } } }, calloutElement); previousTarget.current = target; return function () { async.cancelAnimationFrame(timerId_1); previousTarget.current = undefined; }; } else { // When the callout is hidden, clear position state so that it is not accidentally used next render. setPositions(undefined); positionAttempts.current = 0; } }, [ hidden, directionalHint, async, calloutElement, calloutMaxHeight, hostElement, targetRef, finalHeight, getBounds, onPositioned, positions, props, target, ]); return positions; } /** * (Hook) to set up behavior to automatically focus the callout when it appears, if indicated by props. */ function useAutoFocus(_a, positions, calloutElement) { var hidden = _a.hidden, setInitialFocus = _a.setInitialFocus; var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useAsync"])(); var hasPositions = !!positions; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!hidden && setInitialFocus && hasPositions && calloutElement) { var timerId_2 = async.requestAnimationFrame(function () { return Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["focusFirstChild"])(calloutElement); }, calloutElement); return function () { return async.cancelAnimationFrame(timerId_2); }; } }, [hidden, hasPositions, async, calloutElement, setInitialFocus]); } /** * (Hook) to set up various handlers to dismiss the popup when it loses focus or the window scrolls or similar cases. */ function useDismissHandlers(_a, positions, hostElement, targetRef, targetWindow) { var hidden = _a.hidden, onDismiss = _a.onDismiss, // eslint-disable-next-line deprecation/deprecation preventDismissOnScroll = _a.preventDismissOnScroll, // eslint-disable-next-line deprecation/deprecation preventDismissOnResize = _a.preventDismissOnResize, // eslint-disable-next-line deprecation/deprecation preventDismissOnLostFocus = _a.preventDismissOnLostFocus, dismissOnTargetClick = _a.dismissOnTargetClick, shouldDismissOnWindowFocus = _a.shouldDismissOnWindowFocus, preventDismissOnEvent = _a.preventDismissOnEvent; var isMouseDownOnPopup = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useAsync"])(); var mouseDownHandlers = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useConst"])([ function () { isMouseDownOnPopup.current = true; }, function () { isMouseDownOnPopup.current = false; }, ]); var positionsExists = !!positions; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var dismissOnScroll = function (ev) { if (positionsExists && !preventDismissOnScroll) { dismissOnClickOrScroll(ev); } }; var dismissOnResize = function (ev) { if (!preventDismissOnResize && !(preventDismissOnEvent && preventDismissOnEvent(ev))) { onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); } }; var dismissOnLostFocus = function (ev) { if (!preventDismissOnLostFocus) { dismissOnClickOrScroll(ev); } }; var dismissOnClickOrScroll = function (ev) { var eventPaths = ev.composedPath ? ev.composedPath() : []; var target = eventPaths.length > 0 ? eventPaths[0] : ev.target; var isEventTargetOutsideCallout = hostElement.current && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["elementContains"])(hostElement.current, target); // If mouse is pressed down on callout but moved outside then released, don't dismiss the callout. if (isEventTargetOutsideCallout && isMouseDownOnPopup.current) { isMouseDownOnPopup.current = false; return; } if ((!targetRef.current && isEventTargetOutsideCallout) || (ev.target !== targetWindow && isEventTargetOutsideCallout && (!targetRef.current || 'stopPropagation' in targetRef.current || dismissOnTargetClick || (target !== targetRef.current && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["elementContains"])(targetRef.current, target))))) { if (preventDismissOnEvent && preventDismissOnEvent(ev)) { return; } onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); } }; var dismissOnTargetWindowBlur = function (ev) { // Do nothing if (!shouldDismissOnWindowFocus) { return; } if (((preventDismissOnEvent && !preventDismissOnEvent(ev)) || (!preventDismissOnEvent && !preventDismissOnLostFocus)) && !(targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.hasFocus()) && ev.relatedTarget === null) { onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); } }; // This is added so the callout will dismiss when the window is scrolled // but not when something inside the callout is scrolled. The delay seems // to be required to avoid React firing an async focus event in IE from // the target changing focus quickly prior to rendering the callout. var disposablesPromise = new Promise(function (resolve) { async.setTimeout(function () { if (!hidden && targetWindow) { var disposables_1 = [ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["on"])(targetWindow, 'scroll', dismissOnScroll, true), Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["on"])(targetWindow, 'resize', dismissOnResize, true), Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["on"])(targetWindow.document.documentElement, 'focus', dismissOnLostFocus, true), Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["on"])(targetWindow.document.documentElement, 'click', dismissOnLostFocus, true), Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["on"])(targetWindow, 'blur', dismissOnTargetWindowBlur, true), ]; resolve(function () { disposables_1.forEach(function (dispose) { return dispose(); }); }); } }, 0); }); return function () { disposablesPromise.then(function (dispose) { return dispose(); }); }; }, [ hidden, async, hostElement, targetRef, targetWindow, onDismiss, shouldDismissOnWindowFocus, dismissOnTargetClick, preventDismissOnLostFocus, preventDismissOnResize, preventDismissOnScroll, positionsExists, preventDismissOnEvent, ]); return mouseDownHandlers; } var CalloutContentBase = react__WEBPACK_IMPORTED_MODULE_1__["memo"](react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var props = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var styles = props.styles, style = props.style, ariaLabel = props.ariaLabel, ariaDescribedBy = props.ariaDescribedBy, ariaLabelledBy = props.ariaLabelledBy, className = props.className, isBeakVisible = props.isBeakVisible, children = props.children, beakWidth = props.beakWidth, calloutWidth = props.calloutWidth, calloutMaxWidth = props.calloutMaxWidth, calloutMinWidth = props.calloutMinWidth, doNotLayer = props.doNotLayer, finalHeight = props.finalHeight, _a = props.hideOverflow, hideOverflow = _a === void 0 ? !!finalHeight : _a, backgroundColor = props.backgroundColor, calloutMaxHeight = props.calloutMaxHeight, onScroll = props.onScroll, // eslint-disable-next-line deprecation/deprecation _b = props.shouldRestoreFocus, // eslint-disable-next-line deprecation/deprecation shouldRestoreFocus = _b === void 0 ? true : _b, target = props.target, hidden = props.hidden, onLayerMounted = props.onLayerMounted, popupProps = props.popupProps; var hostElement = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](null), calloutElement = _c[0], setCalloutElement = _c[1]; var calloutCallback = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (calloutEl) { setCalloutElement(calloutEl); }, []); var rootRef = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useMergedRefs"])(hostElement, forwardedRef); var _d = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_7__["useTarget"])(props.target, { current: calloutElement, }), targetRef = _d[0], targetWindow = _d[1]; var getBounds = useBounds(props, targetRef, targetWindow); var positions = usePositions(props, hostElement, calloutElement, targetRef, getBounds); var maxHeight = useMaxHeight(props, getBounds, positions); var _e = useDismissHandlers(props, positions, hostElement, targetRef, targetWindow), mouseDownOnPopup = _e[0], mouseUpOnPopup = _e[1]; // do not set both top and bottom css props from positions // instead, use maxHeight var isForcedInBounds = (positions === null || positions === void 0 ? void 0 : positions.elementPosition.top) && (positions === null || positions === void 0 ? void 0 : positions.elementPosition.bottom); var cssPositions = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, positions === null || positions === void 0 ? void 0 : positions.elementPosition), { maxHeight: maxHeight }); if (isForcedInBounds) { cssPositions.bottom = undefined; } useAutoFocus(props, positions, calloutElement); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!hidden) { onLayerMounted === null || onLayerMounted === void 0 ? void 0 : onLayerMounted(); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if hidden changes }, [hidden]); // If there is no target window then we are likely in server side rendering and we should not render anything. if (!targetWindow) { return null; } var overflowYHidden = hideOverflow; var beakVisible = isBeakVisible && !!target; var classNames = getClassNames(styles, { theme: props.theme, className: className, overflowYHidden: overflowYHidden, calloutWidth: calloutWidth, positions: positions, beakWidth: beakWidth, backgroundColor: backgroundColor, calloutMaxWidth: calloutMaxWidth, calloutMinWidth: calloutMinWidth, doNotLayer: doNotLayer, }); var overflowStyle = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ maxHeight: calloutMaxHeight ? calloutMaxHeight : '100%' }, style), (overflowYHidden && { overflowY: 'hidden' })); var visibilityStyle = props.hidden ? { visibility: 'hidden' } : undefined; // React.CSSProperties does not understand IRawStyle, so the inline animations will need to be cast as any for now. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: rootRef, className: classNames.container, style: visibilityStyle }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getNativeProps"])(props, _Utilities__WEBPACK_IMPORTED_MODULE_3__["divProperties"], ARIA_ROLE_ATTRIBUTES), { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["css"])(classNames.root, positions && positions.targetEdge && ANIMATIONS[positions.targetEdge]), style: positions ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, cssPositions) : OFF_SCREEN_STYLE, // Safari and Firefox on Mac OS requires this to back-stop click events so focus remains in the Callout. // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus tabIndex: -1, ref: calloutCallback }), beakVisible && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.beak, style: getBeakPosition(positions) }), beakVisible && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.beakCurtain }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Popup__WEBPACK_IMPORTED_MODULE_5__["Popup"] // don't use getNativeElementProps for role and roledescription because it will also // pass through data-* props (resulting in them being used in two places) , Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ // don't use getNativeElementProps for role and roledescription because it will also // pass through data-* props (resulting in them being used in two places) role: props.role, "aria-roledescription": props['aria-roledescription'], ariaDescribedBy: ariaDescribedBy, ariaLabel: ariaLabel, ariaLabelledBy: ariaLabelledBy, className: classNames.calloutMain, onDismiss: props.onDismiss, onMouseDown: mouseDownOnPopup, onMouseUp: mouseUpOnPopup, onRestoreFocus: props.onRestoreFocus, onScroll: onScroll, shouldRestoreFocus: shouldRestoreFocus, style: overflowStyle }, popupProps), children)))); }), function (previousProps, nextProps) { if (!nextProps.shouldUpdateWhenHidden && previousProps.hidden && nextProps.hidden) { // Do not update when hidden. return true; } return Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["shallowCompare"])(previousProps, nextProps); }); /** * (Utility) to find and return the current `Callout` Beak position. * * @param positions */ function getBeakPosition(positions) { var _a, _b; var beakPositionStyle = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (_a = positions === null || positions === void 0 ? void 0 : positions.beakPosition) === null || _a === void 0 ? void 0 : _a.elementPosition), { display: ((_b = positions === null || positions === void 0 ? void 0 : positions.beakPosition) === null || _b === void 0 ? void 0 : _b.hideBeak) ? 'none' : undefined }); if (!beakPositionStyle.top && !beakPositionStyle.bottom && !beakPositionStyle.left && !beakPositionStyle.right) { beakPositionStyle.left = BEAK_ORIGIN_POSITION.left; beakPositionStyle.top = BEAK_ORIGIN_POSITION.top; } return beakPositionStyle; } /** * (Utility) used to compare two different elementPositions to determine whether they are equal. * * @param prevElementPositions * @param newElementPosition */ function arePositionsEqual(prevElementPositions, newElementPosition) { return (comparePositions(prevElementPositions.elementPosition, newElementPosition.elementPosition) && comparePositions(prevElementPositions.beakPosition.elementPosition, newElementPosition.beakPosition.elementPosition)); } /** * (Utility) used in **arePositionsEqual** to compare two different elementPositions. * * @param prevElementPositions * @param newElementPositions */ function comparePositions(prevElementPositions, newElementPositions) { for (var key in newElementPositions) { if (newElementPositions.hasOwnProperty(key)) { var oldPositionEdge = prevElementPositions[key]; var newPositionEdge = newElementPositions[key]; if (oldPositionEdge !== undefined && newPositionEdge !== undefined) { if (oldPositionEdge.toFixed(2) !== newPositionEdge.toFixed(2)) { return false; } } else { return false; } } } return true; } CalloutContentBase.displayName = COMPONENT_NAME; //# sourceMappingURL=CalloutContent.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js ***! \*******************************************************************************/ /*! exports provided: CalloutContent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalloutContent", function() { return CalloutContent; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _CalloutContent_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalloutContent.base */ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js"); /* harmony import */ var _CalloutContent_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CalloutContent.styles */ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.styles.js"); var CalloutContent = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CalloutContent_base__WEBPACK_IMPORTED_MODULE_1__["CalloutContentBase"], _CalloutContent_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'CalloutContent', }); //# sourceMappingURL=CalloutContent.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.styles.js ***! \**************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); function getBeakStyle(beakWidth) { return { height: beakWidth, width: beakWidth, }; } var GlobalClassNames = { container: 'ms-Callout-container', root: 'ms-Callout', beak: 'ms-Callout-beak', beakCurtain: 'ms-Callout-beakCurtain', calloutMain: 'ms-Callout-main', }; var getStyles = function (props) { var _a; var theme = props.theme, className = props.className, overflowYHidden = props.overflowYHidden, calloutWidth = props.calloutWidth, beakWidth = props.beakWidth, backgroundColor = props.backgroundColor, calloutMaxWidth = props.calloutMaxWidth, calloutMinWidth = props.calloutMinWidth, doNotLayer = props.doNotLayer; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); var semanticColors = theme.semanticColors, effects = theme.effects; return { container: [ classNames.container, { position: 'relative', }, ], root: [ classNames.root, theme.fonts.medium, { position: 'absolute', display: 'flex', zIndex: doNotLayer ? _Styling__WEBPACK_IMPORTED_MODULE_0__["ZIndexes"].Layer : undefined, boxSizing: 'border-box', borderRadius: effects.roundedCorner2, boxShadow: effects.elevation16, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { borderWidth: 1, borderStyle: 'solid', borderColor: 'WindowText', }, _a), }, Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["focusClear"])(), className, !!calloutWidth && { width: calloutWidth }, !!calloutMaxWidth && { maxWidth: calloutMaxWidth }, !!calloutMinWidth && { minWidth: calloutMinWidth }, ], beak: [ classNames.beak, { position: 'absolute', backgroundColor: semanticColors.menuBackground, boxShadow: 'inherit', border: 'inherit', boxSizing: 'border-box', transform: 'rotate(45deg)', }, getBeakStyle(beakWidth), backgroundColor && { backgroundColor: backgroundColor, }, ], beakCurtain: [ classNames.beakCurtain, { position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, backgroundColor: semanticColors.menuBackground, borderRadius: effects.roundedCorner2, }, ], calloutMain: [ classNames.calloutMain, { backgroundColor: semanticColors.menuBackground, overflowX: 'hidden', overflowY: 'auto', position: 'relative', width: '100%', borderRadius: effects.roundedCorner2, }, overflowYHidden && { overflowY: 'hidden', }, backgroundColor && { backgroundColor: backgroundColor, }, ], }; }; //# sourceMappingURL=CalloutContent.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/FocusTrapCallout.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/FocusTrapCallout.js ***! \*********************************************************************************/ /*! exports provided: FocusTrapCallout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FocusTrapCallout", function() { return FocusTrapCallout; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Callout */ "./node_modules/@fluentui/react/lib/components/Callout/Callout.js"); /* harmony import */ var _FocusTrapZone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib/FocusTrapZone.js"); /** * A special Callout that uses FocusTrapZone to trap focus * @param props - Props for the component */ var FocusTrapCallout = function (props) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Callout__WEBPACK_IMPORTED_MODULE_2__["Callout"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusTrapZone__WEBPACK_IMPORTED_MODULE_3__["FocusTrapZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ disabled: props.hidden }, props.focusTrapProps), props.children))); }; //# sourceMappingURL=FocusTrapCallout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/FocusTrapCallout.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/FocusTrapCallout.types.js ***! \***************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=FocusTrapCallout.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Callout/index.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Callout/index.js ***! \**********************************************************************/ /*! exports provided: Callout, CalloutContent, CalloutContentBase, FocusTrapCallout, DirectionalHint */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Callout */ "./node_modules/@fluentui/react/lib/components/Callout/Callout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Callout", function() { return _Callout__WEBPACK_IMPORTED_MODULE_0__["Callout"]; }); /* harmony import */ var _Callout_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Callout.types */ "./node_modules/@fluentui/react/lib/components/Callout/Callout.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _CalloutContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CalloutContent */ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CalloutContent", function() { return _CalloutContent__WEBPACK_IMPORTED_MODULE_2__["CalloutContent"]; }); /* harmony import */ var _CalloutContent_base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CalloutContent.base */ "./node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CalloutContentBase", function() { return _CalloutContent_base__WEBPACK_IMPORTED_MODULE_3__["CalloutContentBase"]; }); /* harmony import */ var _FocusTrapCallout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FocusTrapCallout */ "./node_modules/@fluentui/react/lib/components/Callout/FocusTrapCallout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusTrapCallout", function() { return _FocusTrapCallout__WEBPACK_IMPORTED_MODULE_4__["FocusTrapCallout"]; }); /* harmony import */ var _FocusTrapCallout_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FocusTrapCallout.types */ "./node_modules/@fluentui/react/lib/components/Callout/FocusTrapCallout.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectionalHint", function() { return _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_6__["DirectionalHint"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Check/Check.base.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Check/Check.base.js ***! \*************************************************************************/ /*! exports provided: CheckBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBase", function() { return CheckBase; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var CheckBase = react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](function (props, ref) { var _a = props.checked, checked = _a === void 0 ? false : _a, className = props.className, theme = props.theme, styles = props.styles, _b = props.useFastIcons, useFastIcons = _b === void 0 ? true : _b; var classNames = getClassNames(styles, { theme: theme, className: className, checked: checked }); var IconComponent = useFastIcons ? _Icon__WEBPACK_IMPORTED_MODULE_1__["FontIcon"] : _Icon__WEBPACK_IMPORTED_MODULE_1__["Icon"]; return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.root, ref: ref }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](IconComponent, { iconName: "CircleRing", className: classNames.circle }), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](IconComponent, { iconName: "StatusCircleCheckmark", className: classNames.check }))); }); CheckBase.displayName = 'CheckBase'; //# sourceMappingURL=Check.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Check/Check.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Check/Check.js ***! \********************************************************************/ /*! exports provided: Check */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Check", function() { return Check; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Check_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Check.base */ "./node_modules/@fluentui/react/lib/components/Check/Check.base.js"); /* harmony import */ var _Check_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Check.styles */ "./node_modules/@fluentui/react/lib/components/Check/Check.styles.js"); var Check = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Check_base__WEBPACK_IMPORTED_MODULE_1__["CheckBase"], _Check_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'Check', }, true); //# sourceMappingURL=Check.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Check/Check.styles.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Check/Check.styles.js ***! \***************************************************************************/ /*! exports provided: CheckGlobalClassNames, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckGlobalClassNames", function() { return CheckGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var CheckGlobalClassNames = { root: 'ms-Check', circle: 'ms-Check-circle', check: 'ms-Check-check', /** Must be manually applied to the parent element of the check. */ checkHost: 'ms-Check-checkHost', }; var getStyles = function (props) { var _a, _b, _c, _d, _e; // eslint-disable-next-line deprecation/deprecation var _f = props.height, height = _f === void 0 ? props.checkBoxHeight || '18px' : _f, checked = props.checked, className = props.className, theme = props.theme; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var isRTL = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(theme); var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(CheckGlobalClassNames, theme); var sharedCircleCheck = { fontSize: height, position: 'absolute', left: 0, top: 0, width: height, height: height, textAlign: 'center', // inline-flex prevents the check from shifting with custom line height styles display: 'inline-flex', alignItems: 'center', justifyContent: 'center', verticalAlign: 'middle', }; return { root: [ classNames.root, fonts.medium, { // lineHeight currently needs to be a string to output without 'px' lineHeight: '1', width: height, height: height, verticalAlign: 'top', position: 'relative', userSelect: 'none', selectors: (_a = { ':before': { content: '""', position: 'absolute', top: '1px', right: '1px', bottom: '1px', left: '1px', borderRadius: '50%', opacity: 1, background: semanticColors.bodyBackground, } }, _a["." + classNames.checkHost + ":hover &, ." + classNames.checkHost + ":focus &, &:hover, &:focus"] = { opacity: 1, }, _a), }, checked && [ 'is-checked', { selectors: { ':before': { background: palette.themePrimary, opacity: 1, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { background: 'Window', }, _b), }, }, }, ], className, ], circle: [ classNames.circle, sharedCircleCheck, { color: palette.neutralSecondary, selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'WindowText', }, _c), }, checked && { color: palette.white, }, ], check: [ classNames.check, sharedCircleCheck, { opacity: 0, color: palette.neutralSecondary, fontSize: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].medium, left: isRTL ? '-0.5px' : '.5px', top: '-1px', selectors: (_d = { ':hover': { opacity: 1, } }, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _d), }, checked && { opacity: 1, color: palette.white, fontWeight: 900, selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: 'none', color: 'WindowText', }, _e), }, ], checkHost: classNames.checkHost, }; }; //# sourceMappingURL=Check.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Check/Check.types.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Check/Check.types.js ***! \**************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Check.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Check/index.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Check/index.js ***! \********************************************************************/ /*! exports provided: Check, CheckBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Check__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Check */ "./node_modules/@fluentui/react/lib/components/Check/Check.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Check", function() { return _Check__WEBPACK_IMPORTED_MODULE_0__["Check"]; }); /* harmony import */ var _Check_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Check.base */ "./node_modules/@fluentui/react/lib/components/Check/Check.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CheckBase", function() { return _Check_base__WEBPACK_IMPORTED_MODULE_1__["CheckBase"]; }); /* harmony import */ var _Check_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Check.types */ "./node_modules/@fluentui/react/lib/components/Check/Check.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.base.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.base.js ***! \*******************************************************************************/ /*! exports provided: CheckboxBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxBase", function() { return CheckboxBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _Icon_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon/Icon */ "./node_modules/@fluentui/react/lib/components/Icon/Icon.js"); var getClassNames = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["classNamesFunction"])(); var CheckboxBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (props, forwardedRef) { var disabled = props.disabled, required = props.required, inputProps = props.inputProps, name = props.name, ariaLabel = props.ariaLabel, ariaLabelledBy = props.ariaLabelledBy, ariaDescribedBy = props.ariaDescribedBy, ariaPositionInSet = props.ariaPositionInSet, ariaSetSize = props.ariaSetSize, title = props.title, checkmarkIconProps = props.checkmarkIconProps, styles = props.styles, theme = props.theme, className = props.className, _a = props.boxSide, boxSide = _a === void 0 ? 'start' : _a; var id = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_2__["useId"])('checkbox-', props.id); var rootRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var mergedRootRefs = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_2__["useMergedRefs"])(rootRef, forwardedRef); var inputRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var _b = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_2__["useControllableValue"])(props.checked, props.defaultChecked, props.onChange), isChecked = _b[0], setIsChecked = _b[1]; var _c = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_2__["useControllableValue"])(props.indeterminate, props.defaultIndeterminate), isIndeterminate = _c[0], setIsIndeterminate = _c[1]; Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["useFocusRects"])(rootRef); useDebugWarning(props); var classNames = getClassNames(styles, { theme: theme, className: className, disabled: disabled, indeterminate: isIndeterminate, checked: isChecked, reversed: boxSide !== 'start', isUsingCustomLabelRender: !!props.onRenderLabel, }); var onChange = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (event) { if (isIndeterminate) { // If indeterminate, clicking the checkbox *only* removes the indeterminate state (or if // controlled, lets the consumer know to change it by calling onChange). It doesn't // change the checked state. setIsChecked(!!isChecked, event); setIsIndeterminate(false); } else { setIsChecked(!isChecked, event); } }, [setIsChecked, setIsIndeterminate, isIndeterminate, isChecked]); var defaultLabelRenderer = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (checkboxProps) { if (!checkboxProps) { return null; } return checkboxProps.label ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.text, title: checkboxProps.title }, checkboxProps.label)) : null; }, [classNames.text]); var setNativeIndeterminate = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (indeterminate) { if (!inputRef.current) { return; } var value = !!indeterminate; inputRef.current.indeterminate = value; setIsIndeterminate(value); }, [setIsIndeterminate]); useComponentRef(props, isChecked, isIndeterminate, setNativeIndeterminate, inputRef); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { return setNativeIndeterminate(isIndeterminate); }, [setNativeIndeterminate, isIndeterminate]); var onRenderLabel = props.onRenderLabel || defaultLabelRenderer; var ariaChecked = isIndeterminate ? 'mixed' : undefined; var mergedInputProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: classNames.input, type: 'checkbox' }, inputProps), { checked: !!isChecked, disabled: disabled, required: required, name: name, id: id, title: title, onChange: onChange, 'aria-disabled': disabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-posinset': ariaPositionInSet, 'aria-setsize': ariaSetSize, 'aria-checked': ariaChecked }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root, title: title, ref: mergedRootRefs }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, mergedInputProps, { ref: inputRef, title: title, "data-ktp-execute-target": true })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: classNames.label, htmlFor: id }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.checkbox, "data-ktp-target": true }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ iconName: "CheckMark" }, checkmarkIconProps, { className: classNames.checkmark }))), onRenderLabel(props, defaultLabelRenderer)))); }); CheckboxBase.displayName = 'CheckboxBase'; function useDebugWarning(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_2__["useWarnings"])({ name: 'Checkbox', props: props, mutuallyExclusive: { checked: 'defaultChecked', indeterminate: 'defaultIndeterminate', }, }); } } function useComponentRef(props, isChecked, isIndeterminate, setIndeterminate, checkBoxRef) { react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](props.componentRef, function () { return ({ get checked() { return !!isChecked; }, get indeterminate() { return !!isIndeterminate; }, set indeterminate(indeterminate) { setIndeterminate(indeterminate); }, focus: function () { if (checkBoxRef.current) { checkBoxRef.current.focus(); } }, }); }, [checkBoxRef, isChecked, isIndeterminate, setIndeterminate]); } //# sourceMappingURL=Checkbox.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.js ***! \**************************************************************************/ /*! exports provided: Checkbox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return Checkbox; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _Checkbox_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Checkbox.base */ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.base.js"); /* harmony import */ var _Checkbox_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Checkbox.styles */ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.styles.js"); var Checkbox = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Checkbox_base__WEBPACK_IMPORTED_MODULE_1__["CheckboxBase"], _Checkbox_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'Checkbox' }); //# sourceMappingURL=Checkbox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.styles.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.styles.js ***! \*********************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); var GlobalClassNames = { root: 'ms-Checkbox', label: 'ms-Checkbox-label', checkbox: 'ms-Checkbox-checkbox', checkmark: 'ms-Checkbox-checkmark', text: 'ms-Checkbox-text', }; var MS_CHECKBOX_LABEL_SIZE = '20px'; var MS_CHECKBOX_TRANSITION_DURATION = '200ms'; var MS_CHECKBOX_TRANSITION_TIMING = 'cubic-bezier(.4, 0, .23, 1)'; var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; var className = props.className, theme = props.theme, reversed = props.reversed, checked = props.checked, disabled = props.disabled, isUsingCustomLabelRender = props.isUsingCustomLabelRender, indeterminate = props.indeterminate; var semanticColors = theme.semanticColors, effects = theme.effects, palette = theme.palette, fonts = theme.fonts; var classNames = Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); var checkmarkFontColor = semanticColors.inputForegroundChecked; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBorder var checkmarkFontColorHovered = palette.neutralSecondary; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.smallInputBorder var checkboxBorderColor = palette.neutralPrimary; var checkboxBorderIndeterminateColor = semanticColors.inputBackgroundChecked; var checkboxBorderColorChecked = semanticColors.inputBackgroundChecked; var checkboxBorderColorDisabled = semanticColors.disabledBodySubtext; var checkboxBorderHoveredColor = semanticColors.inputBorderHovered; var checkboxBorderIndeterminateHoveredColor = semanticColors.inputBackgroundCheckedHovered; var checkboxBackgroundChecked = semanticColors.inputBackgroundChecked; // TODO: after updating the semanticColors slots mapping the following 2 tokens need to be // semanticColors.inputBackgroundCheckedHovered var checkboxBackgroundCheckedHovered = semanticColors.inputBackgroundCheckedHovered; var checkboxBorderColorCheckedHovered = semanticColors.inputBackgroundCheckedHovered; var checkboxHoveredTextColor = semanticColors.inputTextHovered; var checkboxBackgroundDisabledChecked = semanticColors.disabledBodySubtext; var checkboxTextColor = semanticColors.bodyText; var checkboxTextColorDisabled = semanticColors.disabledText; var indeterminateDotStyles = [ (_a = { content: '""', borderRadius: effects.roundedCorner2, position: 'absolute', width: 10, height: 10, top: 4, left: 4, boxSizing: 'border-box', borderWidth: 5, borderStyle: 'solid', borderColor: disabled ? checkboxBorderColorDisabled : checkboxBorderIndeterminateColor, transitionProperty: 'border-width, border, border-color', transitionDuration: MS_CHECKBOX_TRANSITION_DURATION, transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING }, _a[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'WindowText', }, _a), ]; return { root: [ classNames.root, { position: 'relative', display: 'flex', }, reversed && 'reversed', checked && 'is-checked', !disabled && 'is-enabled', disabled && 'is-disabled', !disabled && [ !checked && (_b = {}, _b[":hover ." + classNames.checkbox] = (_c = { borderColor: checkboxBorderHoveredColor }, _c[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'Highlight', }, _c), _b[":focus ." + classNames.checkbox] = { borderColor: checkboxBorderHoveredColor }, _b[":hover ." + classNames.checkmark] = (_d = { color: checkmarkFontColorHovered, opacity: '1' }, _d[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'Highlight', }, _d), _b), checked && !indeterminate && (_e = {}, _e[":hover ." + classNames.checkbox] = { background: checkboxBackgroundCheckedHovered, borderColor: checkboxBorderColorCheckedHovered, }, _e[":focus ." + classNames.checkbox] = { background: checkboxBackgroundCheckedHovered, borderColor: checkboxBorderColorCheckedHovered, }, _e[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = (_f = {}, _f[":hover ." + classNames.checkbox] = { background: 'Highlight', borderColor: 'Highlight', }, _f[":focus ." + classNames.checkbox] = { background: 'Highlight', }, _f[":focus:hover ." + classNames.checkbox] = { background: 'Highlight', }, _f[":focus:hover ." + classNames.checkmark] = { color: 'Window', }, _f[":hover ." + classNames.checkmark] = { color: 'Window', }, _f), _e), indeterminate && (_g = {}, _g[":hover ." + classNames.checkbox + ", :hover ." + classNames.checkbox + ":after"] = (_h = { borderColor: checkboxBorderIndeterminateHoveredColor }, _h[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'WindowText', }, _h), _g[":focus ." + classNames.checkbox] = { borderColor: checkboxBorderIndeterminateHoveredColor, }, _g[":hover ." + classNames.checkmark] = { opacity: '0', }, _g), (_j = {}, _j[":hover ." + classNames.text + ", :focus ." + classNames.text] = (_k = { color: checkboxHoveredTextColor }, _k[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: disabled ? 'GrayText' : 'WindowText', }, _k), _j), ], className, ], input: (_l = { position: 'absolute', background: 'none', opacity: 0 }, _l["." + _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &:focus + label::before"] = (_m = { outline: '1px solid ' + theme.palette.neutralSecondary, outlineOffset: '2px' }, _m[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { outline: '1px solid WindowText', }, _m), _l), label: [ classNames.label, theme.fonts.medium, { display: 'flex', alignItems: isUsingCustomLabelRender ? 'center' : 'flex-start', cursor: disabled ? 'default' : 'pointer', position: 'relative', userSelect: 'none', }, reversed && { flexDirection: 'row-reverse', justifyContent: 'flex-end', }, { '&::before': { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, content: '""', pointerEvents: 'none', }, }, ], checkbox: [ classNames.checkbox, (_o = { position: 'relative', display: 'flex', flexShrink: 0, alignItems: 'center', justifyContent: 'center', height: MS_CHECKBOX_LABEL_SIZE, width: MS_CHECKBOX_LABEL_SIZE, border: "1px solid " + checkboxBorderColor, borderRadius: effects.roundedCorner2, boxSizing: 'border-box', transitionProperty: 'background, border, border-color', transitionDuration: MS_CHECKBOX_TRANSITION_DURATION, transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING, /* in case the icon is bigger than the box */ overflow: 'hidden', ':after': indeterminate ? indeterminateDotStyles : null }, _o[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ borderColor: 'WindowText' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _o), indeterminate && { borderColor: checkboxBorderIndeterminateColor, }, !reversed ? // This margin on the checkbox is for backwards compat. Notably it has the effect where a customRender // is used, there will be only a 4px margin from checkbox to label. The label by default would have // another 4px margin for a total of 8px margin between checkbox and label. We don't combine the two // (and move it into the text) to not incur a breaking change for everyone using custom render atm. { marginRight: 4, } : { marginLeft: 4, }, !disabled && !indeterminate && checked && (_p = { background: checkboxBackgroundChecked, borderColor: checkboxBorderColorChecked }, _p[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { background: 'Highlight', borderColor: 'Highlight', }, _p), disabled && (_q = { borderColor: checkboxBorderColorDisabled }, _q[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'GrayText', }, _q), checked && disabled && (_r = { background: checkboxBackgroundDisabledChecked, borderColor: checkboxBorderColorDisabled }, _r[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { background: 'Window', }, _r), ], checkmark: [ classNames.checkmark, (_s = { opacity: checked && !indeterminate ? '1' : '0', color: checkmarkFontColor }, _s[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: disabled ? 'GrayText' : 'Window' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _s), ], text: [ classNames.text, (_t = { color: disabled ? checkboxTextColorDisabled : checkboxTextColor, fontSize: fonts.medium.fontSize, lineHeight: '20px' }, _t[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: disabled ? 'GrayText' : 'WindowText' }, Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _t), !reversed ? { marginLeft: 4, } : { marginRight: 4, }, ], }; }; //# sourceMappingURL=Checkbox.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.types.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.types.js ***! \********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Checkbox.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Checkbox/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Checkbox/index.js ***! \***********************************************************************/ /*! exports provided: Checkbox, CheckboxBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _Checkbox__WEBPACK_IMPORTED_MODULE_0__["Checkbox"]; }); /* harmony import */ var _Checkbox_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Checkbox.base */ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CheckboxBase", function() { return _Checkbox_base__WEBPACK_IMPORTED_MODULE_1__["CheckboxBase"]; }); /* harmony import */ var _Checkbox_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Checkbox.types */ "./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.base.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.base.js ***! \*************************************************************************************/ /*! exports provided: ChoiceGroupBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupBase", function() { return ChoiceGroupBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib/Label.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ChoiceGroupOption_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ChoiceGroupOption/index */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/index.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["classNamesFunction"])(); var getOptionId = function (option, id) { return id + "-" + option.key; }; var findOption = function (options, key) { return key === undefined ? undefined : Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["find"])(options, function (value) { return value.key === key; }); }; var focusSelectedOption = function (options, keyChecked, id, focusProviders) { var optionToFocus = findOption(options, keyChecked) || options.filter(function (option) { return !option.disabled; })[0]; var elementToFocus = optionToFocus && document.getElementById(getOptionId(optionToFocus, id)); if (elementToFocus) { elementToFocus.focus(); Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["setFocusVisibility"])(true, elementToFocus, focusProviders); } }; var focusFromFocusTrapZone = function (evt) { return evt.relatedTarget instanceof HTMLElement && evt.relatedTarget.dataset.isFocusTrapZoneBumper === 'true'; }; var useComponentRef = function (options, keyChecked, id, componentRef, focusProviders) { react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](componentRef, function () { return ({ get checkedOption() { return findOption(options, keyChecked); }, focus: function () { focusSelectedOption(options, keyChecked, id, focusProviders); }, }); }, [options, keyChecked, id, focusProviders]); }; var COMPONENT_NAME = 'ChoiceGroup'; var ChoiceGroupBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (props, forwardedRef) { var className = props.className, theme = props.theme, styles = props.styles, _a = props.options, options = _a === void 0 ? [] : _a, label = props.label, required = props.required, disabled = props.disabled, name = props.name, defaultSelectedKey = props.defaultSelectedKey, componentRef = props.componentRef, onChange = props.onChange; var id = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["useId"])('ChoiceGroup'); var labelId = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["useId"])('ChoiceGroupLabel'); var divProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getNativeProps"])(props, _Utilities__WEBPACK_IMPORTED_MODULE_3__["divProperties"], [ 'onChange', 'className', 'required', ]); var classNames = getClassNames(styles, { theme: theme, className: className, optionsContainIconOrImage: options.some(function (option) { return !!(option.iconProps || option.imageSrc); }), }); var ariaLabelledBy = props.ariaLabelledBy || (label ? labelId : props['aria-labelledby']); var _b = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["useControllableValue"])(props.selectedKey, defaultSelectedKey), keyChecked = _b[0], setKeyChecked = _b[1]; var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), keyFocused = _c[0], setKeyFocused = _c[1]; var rootRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var mergedRootRefs = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["useMergedRefs"])(rootRef, forwardedRef); var focusContext = react__WEBPACK_IMPORTED_MODULE_1__["useContext"](_Utilities__WEBPACK_IMPORTED_MODULE_3__["FocusRectsContext"]); useDebugWarnings(props); useComponentRef(options, keyChecked, id, componentRef, focusContext === null || focusContext === void 0 ? void 0 : focusContext.registeredProviders); Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["useFocusRects"])(rootRef); var onFocus = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev, option) { var _a; if (option) { setKeyFocused(option.itemKey); (_a = option.onFocus) === null || _a === void 0 ? void 0 : _a.call(option, ev); } }, []); var onBlur = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev, option) { var _a; setKeyFocused(undefined); (_a = option === null || option === void 0 ? void 0 : option.onBlur) === null || _a === void 0 ? void 0 : _a.call(option, ev); }, []); var onOptionChange = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (evt, option) { var _a; if (!option) { return; } setKeyChecked(option.itemKey); (_a = option.onChange) === null || _a === void 0 ? void 0 : _a.call(option, evt); onChange === null || onChange === void 0 ? void 0 : onChange(evt, findOption(options, option.itemKey)); }, [onChange, options, setKeyChecked]); var onRadioFocus = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (evt) { // Handles scenarios like this bug: https://github.com/microsoft/fluentui/issues/20173 if (focusFromFocusTrapZone(evt)) { focusSelectedOption(options, keyChecked, id, focusContext === null || focusContext === void 0 ? void 0 : focusContext.registeredProviders); } }, [options, keyChecked, id, focusContext]); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: classNames.root }, divProps, { ref: mergedRootRefs }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ role: "radiogroup" }, (ariaLabelledBy && { 'aria-labelledby': ariaLabelledBy }), { onFocus: onRadioFocus }), label && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Label__WEBPACK_IMPORTED_MODULE_2__["Label"], { className: classNames.label, required: required, id: labelId, disabled: disabled }, label)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.flexContainer }, options.map(function (option) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ChoiceGroupOption_index__WEBPACK_IMPORTED_MODULE_4__["ChoiceGroupOption"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ itemKey: option.key }, option, { key: option.key, onBlur: onBlur, onFocus: onFocus, onChange: onOptionChange, focused: option.key === keyFocused, checked: option.key === keyChecked, disabled: option.disabled || disabled, id: getOptionId(option, id), labelId: option.labelId || labelId + "-" + option.key, name: name || id, required: required }))); }))))); }); ChoiceGroupBase.displayName = COMPONENT_NAME; function useDebugWarnings(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_5__["useWarnings"])({ name: COMPONENT_NAME, props: props, mutuallyExclusive: { selectedKey: 'defaultSelectedKey', }, }); } } //# sourceMappingURL=ChoiceGroup.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.js ***! \********************************************************************************/ /*! exports provided: ChoiceGroup */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroup", function() { return ChoiceGroup; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ChoiceGroup_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ChoiceGroup.base */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.base.js"); /* harmony import */ var _ChoiceGroup_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChoiceGroup.styles */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.styles.js"); var ChoiceGroup = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ChoiceGroup_base__WEBPACK_IMPORTED_MODULE_1__["ChoiceGroupBase"], _ChoiceGroup_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'ChoiceGroup' }); //# sourceMappingURL=ChoiceGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.styles.js ***! \***************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-ChoiceFieldGroup', flexContainer: 'ms-ChoiceFieldGroup-flexContainer', }; var getStyles = function (props) { var className = props.className, optionsContainIconOrImage = props.optionsContainIconOrImage, theme = props.theme; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ className, classNames.root, theme.fonts.medium, { display: 'block', }, ], flexContainer: [ classNames.flexContainer, optionsContainIconOrImage && { display: 'flex', flexDirection: 'row', flexWrap: 'wrap', }, ], }; }; //# sourceMappingURL=ChoiceGroup.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.types.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.types.js ***! \**************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ChoiceGroup.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.js": /*!*************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.js ***! \*************************************************************************************************************/ /*! exports provided: ChoiceGroupOptionBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupOptionBase", function() { return ChoiceGroupOptionBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Image */ "./node_modules/@fluentui/react/lib/Image.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["classNamesFunction"])(); var LARGE_IMAGE_SIZE = 71; var DEFAULT_PROPS = { // This ensures default imageSize value doesn't mutate. Mutation can cause style re-calcuation. imageSize: { width: 32, height: 32 }, }; var ChoiceGroupOptionBase = function (propsWithoutDefaults) { // Mix the `key` prop back in since custom render functions may be expecting it // (React uses `key` internally rather than passing it through to the component) var props = Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["getPropsWithDefaults"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_PROPS), { key: propsWithoutDefaults.itemKey }), propsWithoutDefaults); var ariaLabel = props.ariaLabel, focused = props.focused, required = props.required, theme = props.theme, iconProps = props.iconProps, imageSrc = props.imageSrc, imageSize = props.imageSize, disabled = props.disabled, checked = props.checked, id = props.id, styles = props.styles, name = props.name, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(props, ["ariaLabel", "focused", "required", "theme", "iconProps", "imageSrc", "imageSize", "disabled", "checked", "id", "styles", "name"]); var classNames = getClassNames(styles, { theme: theme, hasIcon: !!iconProps, hasImage: !!imageSrc, checked: checked, disabled: disabled, imageIsLarge: !!imageSrc && (imageSize.width > LARGE_IMAGE_SIZE || imageSize.height > LARGE_IMAGE_SIZE), imageSize: imageSize, focused: focused, }); var _a = Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["getNativeProps"])(rest, _Utilities__WEBPACK_IMPORTED_MODULE_4__["inputProperties"]), className = _a.className, nativeProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["className"]); var defaultOnRenderLabel = function () { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: props.labelId, className: "ms-ChoiceFieldLabel" }, props.text)); }; var defaultOnRenderField = function () { var _a = props.imageAlt, imageAlt = _a === void 0 ? '' : _a, selectedImageSrc = props.selectedImageSrc; var onRenderLabel = props.onRenderLabel ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["composeRenderFunction"])(props.onRenderLabel, defaultOnRenderLabel) : defaultOnRenderLabel; var label = onRenderLabel(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { key: props.itemKey })); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: id, className: classNames.field }, imageSrc && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.innerField }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.imageWrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Image__WEBPACK_IMPORTED_MODULE_2__["Image"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ src: imageSrc, alt: imageAlt }, imageSize))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.selectedImageWrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Image__WEBPACK_IMPORTED_MODULE_2__["Image"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ src: selectedImageSrc, alt: imageAlt }, imageSize))))), iconProps && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.innerField }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.iconWrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, iconProps))))), imageSrc || iconProps ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.labelWrapper }, label) : label)); }; var _b = props.onRenderField, onRenderField = _b === void 0 ? defaultOnRenderField : _b; var onChange = function (evt) { var _a; (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, evt, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { key: props.itemKey })); }; var onBlur = function (evt) { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, evt); }; var onFocus = function (evt) { var _a; (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, evt, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { key: props.itemKey })); }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.choiceFieldWrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "aria-label": ariaLabel, id: id, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["css"])(classNames.input, className), type: "radio", name: name, disabled: disabled, checked: checked, required: required }, nativeProps, { onChange: onChange, onFocus: onFocus, onBlur: onBlur })), onRenderField(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { key: props.itemKey }), defaultOnRenderField)))); }; ChoiceGroupOptionBase.displayName = 'ChoiceGroupOption'; //# sourceMappingURL=ChoiceGroupOption.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.js ***! \********************************************************************************************************/ /*! exports provided: ChoiceGroupOption */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupOption", function() { return ChoiceGroupOption; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ChoiceGroupOption_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ChoiceGroupOption.base */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.js"); /* harmony import */ var _ChoiceGroupOption_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChoiceGroupOption.styles */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.js"); var ChoiceGroupOption = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ChoiceGroupOption_base__WEBPACK_IMPORTED_MODULE_1__["ChoiceGroupOptionBase"], _ChoiceGroupOption_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'ChoiceGroupOption' }); //# sourceMappingURL=ChoiceGroupOption.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.js ***! \***************************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var GlobalClassNames = { root: 'ms-ChoiceField', choiceFieldWrapper: 'ms-ChoiceField-wrapper', input: 'ms-ChoiceField-input', field: 'ms-ChoiceField-field', innerField: 'ms-ChoiceField-innerField', imageWrapper: 'ms-ChoiceField-imageWrapper', iconWrapper: 'ms-ChoiceField-iconWrapper', labelWrapper: 'ms-ChoiceField-labelWrapper', checked: 'is-checked', }; var labelWrapperLineHeight = 15; var labelWrapperHeight = labelWrapperLineHeight * 2 + 2; // adding 2px height to ensure text doesn't get cutoff var iconSize = 32; var choiceFieldSize = 20; var choiceFieldTransitionDuration = '200ms'; var choiceFieldTransitionTiming = 'cubic-bezier(.4, 0, .23, 1)'; var radioButtonSpacing = 3; var radioButtonInnerSize = 5; function getChoiceGroupFocusStyle(focusBorderColor, hasIconOrImage) { var _a, _b; return [ 'is-inFocus', { selectors: (_a = {}, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &"] = { position: 'relative', outline: 'transparent', selectors: { '::-moz-focus-inner': { border: 0, }, ':after': { content: '""', top: -2, right: -2, bottom: -2, left: -2, pointerEvents: 'none', border: "1px solid " + focusBorderColor, position: 'absolute', selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'WindowText', borderWidth: hasIconOrImage ? 1 : 2, }, _b), }, }, }, _a), }, ]; } function getImageWrapperStyle(isSelectedImageWrapper, className, checked) { return [ className, { paddingBottom: 2, transitionProperty: 'opacity', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: 'ease', selectors: { '.ms-Image': { display: 'inline-block', borderStyle: 'none', }, }, }, (checked ? !isSelectedImageWrapper : isSelectedImageWrapper) && [ 'is-hidden', { position: 'absolute', left: 0, top: 0, width: '100%', height: '100%', overflow: 'hidden', opacity: 0, }, ], ]; } var getStyles = function (props) { var _a, _b, _c, _d, _e; var theme = props.theme, hasIcon = props.hasIcon, hasImage = props.hasImage, checked = props.checked, disabled = props.disabled, imageIsLarge = props.imageIsLarge, focused = props.focused, imageSize = props.imageSize; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); // Tokens // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.smallInputBorder var circleBorderColor = palette.neutralPrimary; var circleHoveredBorderColor = semanticColors.inputBorderHovered; var circleCheckedBorderColor = semanticColors.inputBackgroundChecked; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered var circleCheckedHoveredBorderColor = palette.themeDark; var circleDisabledBorderColor = semanticColors.disabledBodySubtext; var circleBackgroundColor = semanticColors.bodyBackground; var dotUncheckedHoveredColor = palette.neutralSecondary; var dotCheckedColor = semanticColors.inputBackgroundChecked; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered var dotCheckedHoveredColor = palette.themeDark; var dotDisabledColor = semanticColors.disabledBodySubtext; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.bodyTextChecked var labelHoverFocusColor = palette.neutralDark; var focusBorderColor = semanticColors.focusBorder; var iconOrImageChoiceBorderUncheckedHoveredColor = semanticColors.inputBorderHovered; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered var iconOrImageChoiceBorderCheckedColor = semanticColors.inputBackgroundChecked; var iconOrImageChoiceBorderCheckedHoveredColor = palette.themeDark; var iconOrImageChoiceBackgroundColor = palette.neutralLighter; var fieldHoverOrFocusProperties = { selectors: { '.ms-ChoiceFieldLabel': { color: labelHoverFocusColor, }, ':before': { borderColor: checked ? circleCheckedHoveredBorderColor : circleHoveredBorderColor, }, ':after': [ !hasIcon && !hasImage && !checked && { content: '""', transitionProperty: 'background-color', left: 5, top: 5, width: 10, height: 10, backgroundColor: dotUncheckedHoveredColor, }, checked && { borderColor: dotCheckedHoveredColor, background: dotCheckedHoveredColor, }, ], }, }; var enabledFieldWithImageHoverOrFocusProperties = { borderColor: checked ? iconOrImageChoiceBorderCheckedHoveredColor : iconOrImageChoiceBorderUncheckedHoveredColor, selectors: { ':before': { opacity: 1, borderColor: checked ? circleCheckedHoveredBorderColor : circleHoveredBorderColor, }, }, }; var circleAreaProperties = [ { content: '""', display: 'inline-block', backgroundColor: circleBackgroundColor, borderWidth: 1, borderStyle: 'solid', borderColor: circleBorderColor, width: choiceFieldSize, height: choiceFieldSize, fontWeight: 'normal', position: 'absolute', top: 0, left: 0, boxSizing: 'border-box', transitionProperty: 'border-color', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: choiceFieldTransitionTiming, borderRadius: '50%', }, disabled && { borderColor: circleDisabledBorderColor, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ borderColor: 'GrayText', background: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a), }, checked && { borderColor: disabled ? circleDisabledBorderColor : circleCheckedBorderColor, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'Highlight', background: 'Window', forcedColorAdjust: 'none', }, _b), }, (hasIcon || hasImage) && { top: radioButtonSpacing, right: radioButtonSpacing, left: 'auto', opacity: checked ? 1 : 0, }, ]; var dotAreaProperties = [ { content: '""', width: 0, height: 0, borderRadius: '50%', position: 'absolute', left: choiceFieldSize / 2, right: 0, transitionProperty: 'border-width', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: choiceFieldTransitionTiming, boxSizing: 'border-box', }, checked && { borderWidth: 5, borderStyle: 'solid', borderColor: disabled ? dotDisabledColor : dotCheckedColor, background: dotCheckedColor, left: 5, top: 5, width: 10, height: 10, selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { borderColor: 'Highlight', forcedColorAdjust: 'none', }, _c), }, checked && (hasIcon || hasImage) && { top: radioButtonSpacing + radioButtonInnerSize, right: radioButtonSpacing + radioButtonInnerSize, left: 'auto', // To reset the value of 'left' to its default value, so that 'right' works }, ]; return { root: [ classNames.root, theme.fonts.medium, { display: 'flex', alignItems: 'center', boxSizing: 'border-box', color: semanticColors.bodyText, minHeight: 26, border: 'none', position: 'relative', marginTop: 8, selectors: { '.ms-ChoiceFieldLabel': { display: 'inline-block', }, }, }, !hasIcon && !hasImage && { selectors: { '.ms-ChoiceFieldLabel': { paddingLeft: '26px', }, }, }, hasImage && 'ms-ChoiceField--image', hasIcon && 'ms-ChoiceField--icon', (hasIcon || hasImage) && { display: 'inline-flex', fontSize: 0, margin: '0 4px 4px 0', paddingLeft: 0, backgroundColor: iconOrImageChoiceBackgroundColor, height: '100%', }, ], choiceFieldWrapper: [ classNames.choiceFieldWrapper, focused && getChoiceGroupFocusStyle(focusBorderColor, hasIcon || hasImage), ], // The hidden input input: [ classNames.input, { position: 'absolute', opacity: 0, top: 0, right: 0, width: '100%', height: '100%', margin: 0, }, disabled && 'is-disabled', ], field: [ classNames.field, checked && classNames.checked, { display: 'inline-block', cursor: 'pointer', marginTop: 0, position: 'relative', verticalAlign: 'top', userSelect: 'none', minHeight: 20, selectors: { ':hover': !disabled && fieldHoverOrFocusProperties, ':focus': !disabled && fieldHoverOrFocusProperties, // The circle ':before': circleAreaProperties, // The dot ':after': dotAreaProperties, }, }, hasIcon && 'ms-ChoiceField--icon', hasImage && 'ms-ChoiceField-field--image', (hasIcon || hasImage) && { boxSizing: 'content-box', cursor: 'pointer', paddingTop: 22, margin: 0, textAlign: 'center', transitionProperty: 'all', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: 'ease', border: '1px solid transparent', justifyContent: 'center', alignItems: 'center', display: 'flex', flexDirection: 'column', }, checked && { borderColor: iconOrImageChoiceBorderCheckedColor, }, (hasIcon || hasImage) && !disabled && { selectors: { ':hover': enabledFieldWithImageHoverOrFocusProperties, ':focus': enabledFieldWithImageHoverOrFocusProperties, }, }, disabled && { cursor: 'default', selectors: { '.ms-ChoiceFieldLabel': { color: semanticColors.disabledBodyText, selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _d), }, }, }, checked && disabled && { borderColor: iconOrImageChoiceBackgroundColor, }, ], innerField: [ classNames.innerField, hasImage && { // using non-null assertion because we have a default in `ChoiceGroupOptionBase` class. height: imageSize.height, width: imageSize.width, }, (hasIcon || hasImage) && { position: 'relative', display: 'inline-block', paddingLeft: 30, paddingRight: 30, }, (hasIcon || hasImage) && imageIsLarge && { paddingLeft: 24, paddingRight: 24, }, (hasIcon || hasImage) && disabled && { opacity: 0.25, selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', opacity: 1, }, _e), }, ], imageWrapper: getImageWrapperStyle(false, classNames.imageWrapper, checked), selectedImageWrapper: getImageWrapperStyle(true, classNames.imageWrapper, checked), iconWrapper: [ classNames.iconWrapper, { fontSize: iconSize, lineHeight: iconSize, height: iconSize, }, ], labelWrapper: [ classNames.labelWrapper, fonts.medium, (hasIcon || hasImage) && { display: 'block', position: 'relative', margin: '4px 8px 2px 8px', height: labelWrapperHeight, lineHeight: labelWrapperLineHeight, // using non-null assertion because we have a default in `ChoiceGroupOptionBase` class. maxWidth: imageSize.width * 2, overflow: 'hidden', whiteSpace: 'pre-wrap', }, ], }; }; //# sourceMappingURL=ChoiceGroupOption.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.types.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.types.js ***! \**************************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ChoiceGroupOption.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/index.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/index.js ***! \********************************************************************************************/ /*! exports provided: ChoiceGroupOption */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ChoiceGroupOption__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ChoiceGroupOption */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupOption", function() { return _ChoiceGroupOption__WEBPACK_IMPORTED_MODULE_0__["ChoiceGroupOption"]; }); /* harmony import */ var _ChoiceGroupOption_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ChoiceGroupOption.types */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ChoiceGroup/index.js ***! \**************************************************************************/ /*! exports provided: ChoiceGroup, ChoiceGroupBase, ChoiceGroupOption */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ChoiceGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ChoiceGroup */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroup", function() { return _ChoiceGroup__WEBPACK_IMPORTED_MODULE_0__["ChoiceGroup"]; }); /* harmony import */ var _ChoiceGroup_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ChoiceGroup.base */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupBase", function() { return _ChoiceGroup_base__WEBPACK_IMPORTED_MODULE_1__["ChoiceGroupBase"]; }); /* harmony import */ var _ChoiceGroup_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChoiceGroup.types */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroup.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _ChoiceGroupOption_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ChoiceGroupOption/index */ "./node_modules/@fluentui/react/lib/components/ChoiceGroup/ChoiceGroupOption/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChoiceGroupOption", function() { return _ChoiceGroupOption_index__WEBPACK_IMPORTED_MODULE_3__["ChoiceGroupOption"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/Beak/Beak.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/Beak/Beak.js ***! \****************************************************************************/ /*! exports provided: BEAK_HEIGHT, BEAK_WIDTH, Beak */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BEAK_HEIGHT", function() { return BEAK_HEIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BEAK_WIDTH", function() { return BEAK_WIDTH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Beak", function() { return Beak; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Beak_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Beak.styles */ "./node_modules/@fluentui/react/lib/components/Coachmark/Beak/Beak.styles.js"); /* harmony import */ var _Positioning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Positioning */ "./node_modules/@fluentui/react/lib/Positioning.js"); var BEAK_HEIGHT = 10; var BEAK_WIDTH = 18; var Beak = react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](function (props, forwardedRef) { var left = props.left, top = props.top, bottom = props.bottom, right = props.right, color = props.color, _a = props.direction, direction = _a === void 0 ? _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].top : _a; var svgHeight; var svgWidth; if (direction === _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].top || direction === _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].bottom) { svgHeight = BEAK_HEIGHT; svgWidth = BEAK_WIDTH; } else { svgHeight = BEAK_WIDTH; svgWidth = BEAK_HEIGHT; } var pointOne; var pointTwo; var pointThree; var transform; switch (direction) { case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].top: default: pointOne = BEAK_WIDTH / 2 + ", 0"; pointTwo = BEAK_WIDTH + ", " + BEAK_HEIGHT; pointThree = "0, " + BEAK_HEIGHT; transform = 'translateY(-100%)'; break; case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].right: pointOne = "0, 0"; pointTwo = BEAK_HEIGHT + ", " + BEAK_HEIGHT; pointThree = "0, " + BEAK_WIDTH; transform = 'translateX(100%)'; break; case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].bottom: pointOne = "0, 0"; pointTwo = BEAK_WIDTH + ", 0"; pointThree = BEAK_WIDTH / 2 + ", " + BEAK_HEIGHT; transform = 'translateY(100%)'; break; case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].left: pointOne = BEAK_HEIGHT + ", 0"; pointTwo = "0, " + BEAK_HEIGHT; pointThree = BEAK_HEIGHT + ", " + BEAK_WIDTH; transform = 'translateX(-100%)'; break; } var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["classNamesFunction"])(); var classNames = getClassNames(_Beak_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], { left: left, top: top, bottom: bottom, right: right, height: svgHeight + "px", width: svgWidth + "px", transform: transform, color: color, }); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.root, role: "presentation", ref: forwardedRef }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { height: svgHeight, width: svgWidth, className: classNames.beak }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("polygon", { points: pointOne + ' ' + pointTwo + ' ' + pointThree })))); }); Beak.displayName = 'Beak'; //# sourceMappingURL=Beak.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/Beak/Beak.styles.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/Beak/Beak.styles.js ***! \***********************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); function getStyles(props) { var _a; return { root: [ { position: 'absolute', boxShadow: 'inherit', border: 'none', boxSizing: 'border-box', transform: props.transform, width: props.width, height: props.height, left: props.left, top: props.top, right: props.right, bottom: props.bottom, }, ], beak: { fill: props.color, display: 'block', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { fill: 'windowtext', }, _a), }, }; } //# sourceMappingURL=Beak.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.base.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.base.js ***! \*********************************************************************************/ /*! exports provided: COACHMARK_ATTRIBUTE_NAME, CoachmarkBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COACHMARK_ATTRIBUTE_NAME", function() { return COACHMARK_ATTRIBUTE_NAME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoachmarkBase", function() { return CoachmarkBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Positioning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib/Positioning.js"); /* harmony import */ var _PositioningContainer_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PositioningContainer/index */ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/index.js"); /* harmony import */ var _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Beak/Beak */ "./node_modules/@fluentui/react/lib/components/Coachmark/Beak/Beak.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Coachmark.styles */ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.styles.js"); /* harmony import */ var _FocusTrapZone__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib/FocusTrapZone.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); // Utilities // Component Dependencies // Coachmark var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var COACHMARK_ATTRIBUTE_NAME = 'data-coachmarkid'; var DEFAULT_PROPS = { isCollapsed: true, mouseProximityOffset: 10, delayBeforeMouseOpen: 3600, delayBeforeCoachmarkAnimation: 0, isPositionForced: true, positioningContainerProps: { directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_6__["DirectionalHint"].bottomAutoEdge, }, }; function useCollapsedState(props, entityInnerHostElementRef) { var propsIsCollapsed = props.isCollapsed, onAnimationOpenStart = props.onAnimationOpenStart, onAnimationOpenEnd = props.onAnimationOpenEnd; /** Is the Coachmark currently collapsed into a tear drop shape */ var _a = react__WEBPACK_IMPORTED_MODULE_1__["useState"](!!propsIsCollapsed), isCollapsed = _a[0], setIsCollapsed = _a[1]; var setTimeout = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useSetTimeout"])().setTimeout; // Rather than pushing out logic elsewhere to prevent openCoachmark from being called repeatedly, // we'll track it here and only invoke the logic once. We do this with a ref, rather than just the state, // because the openCoachmark callback can be captured in scope for an effect var hasCoachmarkBeenOpened = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](!isCollapsed); var openCoachmark = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { var _a, _b; if (!hasCoachmarkBeenOpened.current) { setIsCollapsed(false); onAnimationOpenStart === null || onAnimationOpenStart === void 0 ? void 0 : onAnimationOpenStart(); (_b = (_a = entityInnerHostElementRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, 'transitionend', function () { // Need setTimeout to trigger narrator setTimeout(function () { if (entityInnerHostElementRef.current) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["focusFirstChild"])(entityInnerHostElementRef.current); } }, 1000); onAnimationOpenEnd === null || onAnimationOpenEnd === void 0 ? void 0 : onAnimationOpenEnd(); }); hasCoachmarkBeenOpened.current = true; } }, [entityInnerHostElementRef, onAnimationOpenEnd, onAnimationOpenStart, setTimeout]); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!propsIsCollapsed) { openCoachmark(); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if isCollapsed changes }, [propsIsCollapsed]); return [isCollapsed, openCoachmark]; } function usePositionedData() { var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useAsync"])(); /** * Alignment edge of callout in relation to target */ var _a = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), targetAlignment = _a[0], setTargetAlignment = _a[1]; /** * Position of Coachmark/TeachingBubble in relation to target */ var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), targetPosition = _b[0], setTargetPosition = _b[1]; var onPositioned = function (_a) { var alignmentEdge = _a.alignmentEdge, targetEdge = _a.targetEdge; return async.requestAnimationFrame(function () { setTargetAlignment(alignmentEdge); setTargetPosition(targetEdge); }); }; return [targetAlignment, targetPosition, onPositioned]; } function useBeakPosition(props, targetAlignment, targetPosition) { var isRTL = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(props.theme); return react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { var beakDirection = targetPosition === undefined ? _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].bottom : Object(_Positioning__WEBPACK_IMPORTED_MODULE_3__["getOppositeEdge"])(targetPosition); var beakPosition = { direction: beakDirection }; var transformOriginX; var transformOriginY; var distanceAdjustment = '3px'; // Adjustment distance for Beak to shift towards Coachmark bubble. switch (beakDirection) { // If Beak is pointing Up or Down case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].top: case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].bottom: // If there is no target alignment, then beak is X-axis centered in callout if (!targetAlignment) { beakPosition.left = "calc(50% - " + _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_WIDTH"] / 2 + "px)"; transformOriginX = 'center'; } else { // Beak is aligned to the left of target if (targetAlignment === _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].left) { beakPosition.left = _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_WIDTH"] / 2 - _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_WIDTH"] / 2 + "px"; transformOriginX = 'left'; } else { // Beak is aligned to the right of target beakPosition.right = _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_WIDTH"] / 2 - _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_WIDTH"] / 2 + "px"; transformOriginX = 'right'; } } if (beakDirection === _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].top) { beakPosition.top = distanceAdjustment; transformOriginY = 'top'; } else { beakPosition.bottom = distanceAdjustment; transformOriginY = 'bottom'; } break; // If Beak is pointing Left or Right case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].left: case _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].right: // If there is no target alignment, then beak is Y-axis centered in callout if (!targetAlignment) { beakPosition.top = "calc(50% - " + _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_WIDTH"] / 2 + "px)"; transformOriginY = "center"; } else { // Beak is aligned to the top of target if (targetAlignment === _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].top) { beakPosition.top = _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_WIDTH"] / 2 - _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_WIDTH"] / 2 + "px"; transformOriginY = "top"; } else { // Beak is aligned to the bottom of target beakPosition.bottom = _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_WIDTH"] / 2 - _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_WIDTH"] / 2 + "px"; transformOriginY = "bottom"; } } if (beakDirection === _Positioning__WEBPACK_IMPORTED_MODULE_3__["RectangleEdge"].left) { if (isRTL) { beakPosition.right = distanceAdjustment; } else { beakPosition.left = distanceAdjustment; } transformOriginX = 'left'; } else { if (isRTL) { beakPosition.left = distanceAdjustment; } else { beakPosition.right = distanceAdjustment; } transformOriginX = 'right'; } break; } return [beakPosition, transformOriginX + " " + transformOriginY]; }, [targetAlignment, targetPosition, isRTL]); } function useListeners(props, translateAnimationContainer, openCoachmark) { var _a; var document = (_a = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getDocument"])()) === null || _a === void 0 ? void 0 : _a.documentElement; Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useOnEvent"])(document, 'keydown', function (e) { var _a, _b; // Open coachmark if user presses ALT + C (arbitrary keypress for now) if ( // eslint-disable-next-line deprecation/deprecation (e.altKey && e.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].c) || // eslint-disable-next-line deprecation/deprecation (e.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter && ((_b = (_a = translateAnimationContainer.current) === null || _a === void 0 ? void 0 : _a.contains) === null || _b === void 0 ? void 0 : _b.call(_a, e.target)))) { openCoachmark(); } }, true); var dismissOnLostFocus = function (ev) { var _a; if (props.preventDismissOnLostFocus) { var clickTarget = ev.target; var clickedOutsideCallout = translateAnimationContainer.current && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(translateAnimationContainer.current, clickTarget); var target = props.target; if (clickedOutsideCallout && clickTarget !== target && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(target, clickTarget)) { (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props, ev); } } }; Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useOnEvent"])(document, 'click', dismissOnLostFocus, true); Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useOnEvent"])(document, 'focus', dismissOnLostFocus, true); } function useProximityHandlers(props, translateAnimationContainer, openCoachmark) { var _a = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useSetTimeout"])(), setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout; /** The target element the mouse would be in proximity to */ var targetElementRect = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var setTargetElementRect = function () { if (translateAnimationContainer.current) { targetElementRect.current = translateAnimationContainer.current.getBoundingClientRect(); } }; var events = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["EventGroup"]({}); // We don't want the user to immediately trigger the Coachmark when it's opened setTimeout(function () { var _a = props.mouseProximityOffset, mouseProximityOffset = _a === void 0 ? 0 : _a; /** Cached ids returned when setTimeout runs during the window resize event trigger. */ var timeoutIds = []; // Take the initial measure out of the initial render to prevent an unnecessary render. setTimeout(function () { setTargetElementRect(); // When the window resizes we want to async get the bounding client rectangle. // Every time the event is triggered we want to setTimeout and then clear any previous // instances of setTimeout. events.on(window, 'resize', function () { timeoutIds.forEach(function (value) { clearTimeout(value); }); timeoutIds.splice(0, timeoutIds.length); // clear array timeoutIds.push(setTimeout(function () { setTargetElementRect(); }, 100)); }); }, 10); // Every time the document's mouse move is triggered, we want to check if inside of an element // and set the state with the result. events.on(document, 'mousemove', function (e) { var _a; var mouseY = e.clientY; var mouseX = e.clientX; setTargetElementRect(); if (isInsideElement(targetElementRect.current, mouseX, mouseY, mouseProximityOffset)) { openCoachmark(); } (_a = props.onMouseMove) === null || _a === void 0 ? void 0 : _a.call(props, e); }); }, props.delayBeforeMouseOpen); return function () { return events.dispose(); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); } function useComponentRef(props) { var onDismiss = props.onDismiss; react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](props.componentRef, function (ev) { return ({ dismiss: function () { onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); }, }); }, [onDismiss]); } function useAriaAlert(_a) { var ariaAlertText = _a.ariaAlertText; var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useAsync"])(); /** ARIA alert text to read aloud with Narrator once the Coachmark is mounted */ var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), alertText = _b[0], setAlertText = _b[1]; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { // Need to add RAF to have narrator read change in alert container async.requestAnimationFrame(function () { setAlertText(ariaAlertText); }); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); return alertText; } function useAutoFocus(_a) { var preventFocusOnMount = _a.preventFocusOnMount; var setTimeout = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useSetTimeout"])().setTimeout; /** * The cached HTMLElement reference to the Entity Inner Host * element. */ var entityHost = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!preventFocusOnMount) { setTimeout(function () { var _a; return (_a = entityHost.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 1000); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); return entityHost; } function useEntityHostMeasurements(props, entityInnerHostElementRef) { /** Is the teaching bubble currently retrieving the original dimensions of the hosted entity. */ var _a = react__WEBPACK_IMPORTED_MODULE_1__["useState"](!!props.isCollapsed), isMeasuring = _a[0], setIsMeasuring = _a[1]; /** Cached width and height of _entityInnerHostElement */ var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"](props.isCollapsed ? { width: 0, height: 0 } : {}), entityInnerHostRect = _b[0], setEntityInnerHostRect = _b[1]; var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useAsync"])(); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { async.requestAnimationFrame(function () { if (entityInnerHostElementRef.current) { setEntityInnerHostRect({ width: entityInnerHostElementRef.current.offsetWidth, height: entityInnerHostElementRef.current.offsetHeight, }); setIsMeasuring(false); } }); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); return [isMeasuring, entityInnerHostRect]; } function useDeprecationWarning(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useWarnings"])({ name: COMPONENT_NAME, props: props, deprecations: { teachingBubbleRef: undefined, collapsed: 'isCollapsed', beakWidth: undefined, beakHeight: undefined, width: undefined, height: undefined, }, }); } } function useGetBounds(props) { var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_9__["useAsync"])(); var _a = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), bounds = _a[0], setBounds = _a[1]; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { async.requestAnimationFrame(function () { return setBounds(getBounds(props.isPositionForced, props.positioningContainerProps)); }); }, [async, props.isPositionForced, props.positioningContainerProps]); return bounds; } var COMPONENT_NAME = 'CoachmarkBase'; var CoachmarkBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var props = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var entityInnerHostElementRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var translateAnimationContainer = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var _a = usePositionedData(), targetAlignment = _a[0], targetPosition = _a[1], onPositioned = _a[2]; var _b = useCollapsedState(props, entityInnerHostElementRef), isCollapsed = _b[0], openCoachmark = _b[1]; var _c = useBeakPosition(props, targetAlignment, targetPosition), beakPositioningProps = _c[0], transformOrigin = _c[1]; var _d = useEntityHostMeasurements(props, entityInnerHostElementRef), isMeasuring = _d[0], entityInnerHostRect = _d[1]; var alertText = useAriaAlert(props); var entityHost = useAutoFocus(props); useListeners(props, translateAnimationContainer, openCoachmark); useComponentRef(props); useProximityHandlers(props, translateAnimationContainer, openCoachmark); useDeprecationWarning(props); var beaconColorOne = props.beaconColorOne, beaconColorTwo = props.beaconColorTwo, children = props.children, target = props.target, color = props.color, positioningContainerProps = props.positioningContainerProps, ariaDescribedBy = props.ariaDescribedBy, ariaDescribedByText = props.ariaDescribedByText, ariaLabelledBy = props.ariaLabelledBy, ariaLabelledByText = props.ariaLabelledByText, ariaAlertText = props.ariaAlertText, delayBeforeCoachmarkAnimation = props.delayBeforeCoachmarkAnimation, styles = props.styles, theme = props.theme, className = props.className, persistentBeak = props.persistentBeak; // Defaulting the main background before passing it to the styles because it is used for `Beak` too. var defaultColor = color; if (!defaultColor && theme) { defaultColor = theme.semanticColors.primaryButtonBackground; } var classNames = getClassNames(styles, { theme: theme, beaconColorOne: beaconColorOne, beaconColorTwo: beaconColorTwo, className: className, isCollapsed: isCollapsed, isMeasuring: isMeasuring, color: defaultColor, transformOrigin: transformOrigin, entityHostHeight: entityInnerHostRect.height === undefined ? undefined : entityInnerHostRect.height + "px", entityHostWidth: entityInnerHostRect.width === undefined ? undefined : entityInnerHostRect.width + "px", width: _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_WIDTH"] + "px", height: _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_HEIGHT"] + "px", delayBeforeCoachmarkAnimation: delayBeforeCoachmarkAnimation + "ms", }); var finalHeight = isCollapsed ? _Coachmark_styles__WEBPACK_IMPORTED_MODULE_7__["COACHMARK_HEIGHT"] : entityInnerHostRect.height; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PositioningContainer_index__WEBPACK_IMPORTED_MODULE_4__["PositioningContainer"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ target: target, offsetFromTarget: _Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["BEAK_HEIGHT"], finalHeight: finalHeight, ref: forwardedRef, onPositioned: onPositioned, bounds: useGetBounds(props) }, positioningContainerProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root }, ariaAlertText && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.ariaContainer, role: "alert", "aria-hidden": !isCollapsed }, alertText)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.pulsingBeacon }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.translateAnimationContainer, ref: translateAnimationContainer }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.scaleAnimationLayer }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.rotateAnimationLayer }, (isCollapsed || persistentBeak) && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Beak_Beak__WEBPACK_IMPORTED_MODULE_5__["Beak"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, beakPositioningProps, { color: defaultColor })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.entityHost, ref: entityHost, tabIndex: -1, "data-is-focusable": true, role: "dialog", "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }, isCollapsed && [ ariaLabelledBy && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", { id: ariaLabelledBy, key: 0, className: classNames.ariaContainer }, ariaLabelledByText)), ariaDescribedBy && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", { id: ariaDescribedBy, key: 1, className: classNames.ariaContainer }, ariaDescribedByText)), ], react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusTrapZone__WEBPACK_IMPORTED_MODULE_8__["FocusTrapZone"], { isClickableOutsideFocusTrap: true, forceFocusInsideTrap: false }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.entityInnerHost, ref: entityInnerHostElementRef }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.childrenContainer, "aria-hidden": isCollapsed }, children)))))))))); }); CoachmarkBase.displayName = COMPONENT_NAME; function getBounds(isPositionForced, positioningContainerProps) { if (isPositionForced) { // If directionalHint direction is the top or bottom auto edge, then we want to set the left/right bounds // to the window x-axis to have auto positioning work correctly. if (positioningContainerProps && (positioningContainerProps.directionalHint === _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_6__["DirectionalHint"].topAutoEdge || positioningContainerProps.directionalHint === _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_6__["DirectionalHint"].bottomAutoEdge)) { return { left: 0, top: -Infinity, bottom: Infinity, right: window.innerWidth, width: window.innerWidth, height: Infinity, }; } else { return { left: -Infinity, top: -Infinity, bottom: Infinity, right: Infinity, width: Infinity, height: Infinity, }; } } else { return undefined; } } function isInsideElement(targetElementRect, mouseX, mouseY, mouseProximityOffset) { if (mouseProximityOffset === void 0) { mouseProximityOffset = 0; } return (mouseX > targetElementRect.left - mouseProximityOffset && mouseX < targetElementRect.left + targetElementRect.width + mouseProximityOffset && mouseY > targetElementRect.top - mouseProximityOffset && mouseY < targetElementRect.top + targetElementRect.height + mouseProximityOffset); } //# sourceMappingURL=Coachmark.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.js ***! \****************************************************************************/ /*! exports provided: Coachmark */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Coachmark", function() { return Coachmark; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Coachmark_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Coachmark.styles */ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.styles.js"); /* harmony import */ var _Coachmark_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Coachmark.base */ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.base.js"); var Coachmark = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Coachmark_base__WEBPACK_IMPORTED_MODULE_2__["CoachmarkBase"], _Coachmark_styles__WEBPACK_IMPORTED_MODULE_1__["getStyles"], undefined, { scope: 'Coachmark', }); //# sourceMappingURL=Coachmark.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.styles.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.styles.js ***! \***********************************************************************************/ /*! exports provided: COACHMARK_WIDTH, COACHMARK_HEIGHT, translateOne, scaleOne, rotateOne, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COACHMARK_WIDTH", function() { return COACHMARK_WIDTH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COACHMARK_HEIGHT", function() { return COACHMARK_HEIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "translateOne", function() { return translateOne; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scaleOne", function() { return scaleOne; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rotateOne", function() { return rotateOne; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var COACHMARK_WIDTH = 32; var COACHMARK_HEIGHT = 32; var translateOne = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function () { return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["keyframes"])({ '0%': { transform: 'translate(0, 0)', animationTimingFunction: 'linear', }, '78.57%': { transform: 'translate(0, 0)', animationTimingFunction: 'cubic-bezier(0.62, 0, 0.56, 1)', }, '82.14%': { transform: 'translate(0, -5px)', animationTimingFunction: 'cubic-bezier(0.58, 0, 0, 1)', }, '84.88%': { transform: 'translate(0, 9px)', animationTimingFunction: 'cubic-bezier(1, 0, 0.56, 1)', }, '88.1%': { transform: 'translate(0, -2px)', animationTimingFunction: 'cubic-bezier(0.58, 0, 0.67, 1)', }, '90.12%': { transform: 'translate(0, 0)', animationTimingFunction: 'linear', }, '100%': { transform: 'translate(0, 0)', }, }); }); var scaleOne = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function () { return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["keyframes"])({ '0%': { transform: ' scale(0)', animationTimingFunction: 'linear', }, '14.29%': { transform: 'scale(0)', animationTimingFunction: 'cubic-bezier(0.84, 0, 0.52, 0.99)', }, '16.67%': { transform: 'scale(1.15)', animationTimingFunction: 'cubic-bezier(0.48, -0.01, 0.52, 1.01)', }, '19.05%': { transform: 'scale(0.95)', animationTimingFunction: 'cubic-bezier(0.48, 0.02, 0.52, 0.98)', }, '21.43%': { transform: 'scale(1)', animationTimingFunction: 'linear', }, '42.86%': { transform: 'scale(1)', animationTimingFunction: 'cubic-bezier(0.48, -0.02, 0.52, 1.02)', }, '45.71%': { transform: 'scale(0.8)', animationTimingFunction: 'cubic-bezier(0.48, 0.01, 0.52, 0.99)', }, '50%': { transform: 'scale(1)', animationTimingFunction: 'linear', }, '90.12%': { transform: 'scale(1)', animationTimingFunction: 'cubic-bezier(0.48, -0.02, 0.52, 1.02)', }, '92.98%': { transform: 'scale(0.8)', animationTimingFunction: 'cubic-bezier(0.48, 0.01, 0.52, 0.99)', }, '97.26%': { transform: 'scale(1)', animationTimingFunction: 'linear', }, '100%': { transform: 'scale(1)', }, }); }); var rotateOne = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function () { return Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["keyframes"])({ '0%': { transform: 'rotate(0deg)', animationTimingFunction: 'linear', }, '83.33%': { transform: ' rotate(0deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '83.93%': { transform: 'rotate(15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '84.52%': { transform: 'rotate(-15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '85.12%': { transform: 'rotate(15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '85.71%': { transform: 'rotate(-15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '86.31%': { transform: 'rotate(0deg)', animationTimingFunction: 'linear', }, '100%': { transform: 'rotate(0deg)', }, }); }); function getStyles(props) { var _a; var theme = props.theme, className = props.className, color = props.color, beaconColorOne = props.beaconColorOne, beaconColorTwo = props.beaconColorTwo, delayBeforeCoachmarkAnimation = props.delayBeforeCoachmarkAnimation, isCollapsed = props.isCollapsed, isMeasuring = props.isMeasuring, entityHostHeight = props.entityHostHeight, entityHostWidth = props.entityHostWidth, transformOrigin = props.transformOrigin; if (!theme) { throw new Error('theme is undefined or null in base Dropdown getStyles function.'); } var animationInnerDimension = '35px'; var animationOuterDimension = '150px'; var animationBorderWidth = '10px'; var ContinuousPulse = _Styling__WEBPACK_IMPORTED_MODULE_0__["PulsingBeaconAnimationStyles"].continuousPulseAnimationDouble(beaconColorOne ? beaconColorOne : theme.palette.themePrimary, beaconColorTwo ? beaconColorTwo : theme.palette.themeTertiary, animationInnerDimension, animationOuterDimension, animationBorderWidth); var ContinuousPulseAnimation = _Styling__WEBPACK_IMPORTED_MODULE_0__["PulsingBeaconAnimationStyles"].createDefaultAnimation(ContinuousPulse, delayBeforeCoachmarkAnimation); return { root: [ theme.fonts.medium, { position: 'relative', }, className, ], pulsingBeacon: [ { position: 'absolute', top: '50%', left: '50%', transform: Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["getRTL"])(theme) ? 'translate(50%, -50%)' : 'translate(-50%, -50%)', width: '0px', height: '0px', borderRadius: '225px', borderStyle: 'solid', opacity: '0', }, isCollapsed && ContinuousPulseAnimation, ], // Translate Animation Layer translateAnimationContainer: [ { width: '100%', height: '100%', }, isCollapsed && { animationDuration: '14s', animationTimingFunction: 'linear', animationDirection: 'normal', animationIterationCount: '1', animationDelay: '0s', animationFillMode: 'forwards', animationName: translateOne(), transition: 'opacity 0.5s ease-in-out', }, !isCollapsed && { opacity: '1', }, ], // Scale Animation Layer scaleAnimationLayer: [ { width: '100%', height: '100%', }, isCollapsed && { animationDuration: '14s', animationTimingFunction: 'linear', animationDirection: 'normal', animationIterationCount: '1', animationDelay: '0s', animationFillMode: 'forwards', animationName: scaleOne(), }, ], // Rotate Animation Layer rotateAnimationLayer: [ { width: '100%', height: '100%', }, isCollapsed && { animationDuration: '14s', animationTimingFunction: 'linear', animationDirection: 'normal', animationIterationCount: '1', animationDelay: '0s', animationFillMode: 'forwards', animationName: rotateOne(), }, !isCollapsed && { opacity: '1', }, ], // Layer Host, defaults to collapsed entityHost: [ { position: 'relative', outline: 'none', overflow: 'hidden', backgroundColor: color, borderRadius: COACHMARK_WIDTH, transition: 'border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)', visibility: 'hidden', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { backgroundColor: 'Window', border: '2px solid WindowText', }, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"] + " &:focus"] = { outline: "1px solid " + theme.palette.themeTertiary, }, _a), }, !isMeasuring && isCollapsed && { width: COACHMARK_WIDTH, height: COACHMARK_HEIGHT, }, !isMeasuring && { visibility: 'visible', }, !isCollapsed && { borderRadius: '1px', opacity: '1', width: entityHostWidth, height: entityHostHeight, }, ], entityInnerHost: [ { transition: 'transform 500ms cubic-bezier(0.5, 0, 0, 1)', transformOrigin: transformOrigin, transform: 'scale(0)', }, !isCollapsed && { width: entityHostWidth, height: entityHostHeight, transform: 'scale(1)', }, !isMeasuring && { visibility: 'visible', }, ], childrenContainer: [ { display: !isMeasuring && isCollapsed ? 'none' : 'block', }, ], ariaContainer: { position: 'fixed', opacity: 0, height: 0, width: 0, pointerEvents: 'none', }, }; } //# sourceMappingURL=Coachmark.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.types.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.types.js ***! \**********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Coachmark.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.js ***! \************************************************************************************************************/ /*! exports provided: useHeightOffset, PositioningContainer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useHeightOffset", function() { return useHeightOffset; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositioningContainer", function() { return PositioningContainer; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _PositioningContainer_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PositioningContainer.styles */ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.styles.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Layer */ "./node_modules/@fluentui/react/lib/Layer.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Positioning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../Positioning */ "./node_modules/@fluentui/react/lib/Positioning.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); var _a; // Utilites/Helpers var OFF_SCREEN_STYLE = { opacity: 0 }; // In order for some of the max height logic to work properly we need to set the border. // The value is arbitrary. var BORDER_WIDTH = 1; var SLIDE_ANIMATIONS = (_a = {}, _a[_Positioning__WEBPACK_IMPORTED_MODULE_7__["RectangleEdge"].top] = 'slideUpIn20', _a[_Positioning__WEBPACK_IMPORTED_MODULE_7__["RectangleEdge"].bottom] = 'slideDownIn20', _a[_Positioning__WEBPACK_IMPORTED_MODULE_7__["RectangleEdge"].left] = 'slideLeftIn20', _a[_Positioning__WEBPACK_IMPORTED_MODULE_7__["RectangleEdge"].right] = 'slideRightIn20', _a); var DEFAULT_PROPS = { preventDismissOnScroll: false, offsetFromTarget: 0, minPagePadding: 8, directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_5__["DirectionalHint"].bottomAutoEdge, }; function useBounds(props, targetWindow) { /** The bounds used when determining if and where the PositioningContainer should be placed. */ var getBounds = function () { var currentBounds = props.bounds; if (!currentBounds) { currentBounds = { top: 0 + props.minPagePadding, left: 0 + props.minPagePadding, right: targetWindow.innerWidth - props.minPagePadding, bottom: targetWindow.innerHeight - props.minPagePadding, width: targetWindow.innerWidth - props.minPagePadding * 2, height: targetWindow.innerHeight - props.minPagePadding * 2, }; } return currentBounds; }; return getBounds; } function usePositionState(props, positionedHost, contentHost, targetRef, getCachedBounds) { var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useAsync"])(); /** * Current set of calculated positions for the outermost parent container. */ var _a = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), positions = _a[0], setPositions = _a[1]; var positionAttempts = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](0); var updateAsyncPosition = function () { async.requestAnimationFrame(function () { return updatePosition(); }); }; var updatePosition = function () { var offsetFromTarget = props.offsetFromTarget, onPositioned = props.onPositioned; var hostElement = positionedHost.current; var positioningContainerElement = contentHost.current; if (hostElement && positioningContainerElement) { var currentProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props); currentProps.bounds = getCachedBounds(); currentProps.target = targetRef.current; var target = currentProps.target; if (target) { // Check if the target is an Element or a MouseEvent and the document contains it // or don't check anything else if the target is a Point or Rectangle if ((!target.getBoundingClientRect && !target.preventDefault) || document.body.contains(target)) { currentProps.gapSpace = offsetFromTarget; var newPositions = Object(_Positioning__WEBPACK_IMPORTED_MODULE_7__["positionElement"])(currentProps, hostElement, positioningContainerElement); // Set the new position only when the positions are not exists or one of the new positioningContainer // positions are different. The position should not change if the position is within 2 decimal places. if ((!positions && newPositions) || (positions && newPositions && !arePositionsEqual(positions, newPositions) && positionAttempts.current < 5)) { // We should not reposition the positioningContainer more than a few times, if it is then the content is // likely resizing and we should stop trying to reposition to prevent a stack overflow. positionAttempts.current++; setPositions(newPositions); onPositioned === null || onPositioned === void 0 ? void 0 : onPositioned(newPositions); } else { positionAttempts.current = 0; onPositioned === null || onPositioned === void 0 ? void 0 : onPositioned(newPositions); } } else if (positions !== undefined) { setPositions(undefined); } } else if (positions !== undefined) { setPositions(undefined); } } }; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](updateAsyncPosition); return [positions, updateAsyncPosition]; } function useSetInitialFocus(_a, contentHost, positions) { var setInitialFocus = _a.setInitialFocus; var didSetInitialFocus = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!didSetInitialFocus.current && contentHost.current && setInitialFocus && positions) { didSetInitialFocus.current = true; Object(_Utilities__WEBPACK_IMPORTED_MODULE_6__["focusFirstChild"])(contentHost.current); } }); } function useMaxHeight(_a, targetRef, getCachedBounds) { var directionalHintFixed = _a.directionalHintFixed, offsetFromTarget = _a.offsetFromTarget, directionalHint = _a.directionalHint, target = _a.target; /** * The maximum height the PositioningContainer can grow to * without going beyond the window or target bounds */ var maxHeight = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); // If the target element changed, reset the max height. If we are tracking // target with class name, always reset because we do not know if // fabric has rendered a new element and disposed the old element. if (typeof target === 'string') { maxHeight.current = undefined; } react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { maxHeight.current = undefined; }, [target, offsetFromTarget]); /** * Return the maximum height the container can grow to * without going out of the specified bounds */ var getCachedMaxHeight = function () { if (!maxHeight.current) { if (directionalHintFixed && targetRef.current) { var gapSpace = offsetFromTarget ? offsetFromTarget : 0; maxHeight.current = Object(_Positioning__WEBPACK_IMPORTED_MODULE_7__["getMaxHeight"])(targetRef.current, directionalHint, gapSpace, getCachedBounds()); } else { maxHeight.current = getCachedBounds().height - BORDER_WIDTH * 2; } } return maxHeight.current; }; return getCachedMaxHeight; } function useAutoDismissEvents(_a, positionedHost, targetWindow, targetRef, positions, updateAsyncPosition) { var onDismiss = _a.onDismiss, preventDismissOnScroll = _a.preventDismissOnScroll; var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useAsync"])(); var onResize = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev) { if (onDismiss) { onDismiss(ev); } else { updateAsyncPosition(); } }, [onDismiss, updateAsyncPosition]); var dismissOnLostFocus = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev) { var target = ev.target; var clickedOutsideCallout = positionedHost.current && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_6__["elementContains"])(positionedHost.current, target); if ((!targetRef.current && clickedOutsideCallout) || (ev.target !== targetWindow && clickedOutsideCallout && (targetRef.current.stopPropagation || !targetRef.current || (target !== targetRef.current && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_6__["elementContains"])(targetRef.current, target))))) { onResize(ev); } }, [onResize, positionedHost, targetRef, targetWindow]); var dismissOnScroll = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev) { if (positions && !preventDismissOnScroll) { dismissOnLostFocus(ev); } }, [dismissOnLostFocus, positions, preventDismissOnScroll]); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var events = new _Utilities__WEBPACK_IMPORTED_MODULE_6__["EventGroup"]({}); // This is added so the positioningContainer will dismiss when the window is scrolled // but not when something inside the positioningContainer is scrolled. The delay seems // to be required to avoid React firing an async focus event in IE from // the target changing focus quickly prior to rendering the positioningContainer. async.setTimeout(function () { var _a, _b; events.on(targetWindow, 'scroll', async.throttle(dismissOnScroll, 10), true); events.on(targetWindow, 'resize', async.throttle(onResize, 10), true); events.on((_a = targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document) === null || _a === void 0 ? void 0 : _a.body, 'focus', dismissOnLostFocus, true); events.on((_b = targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document) === null || _b === void 0 ? void 0 : _b.body, 'click', dismissOnLostFocus, true); }, 0); return function () { return events.dispose(); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, [dismissOnScroll]); } function useHeightOffset(_a, contentHost) { var finalHeight = _a.finalHeight; /** * Tracks the current height offset and updates during * the height animation when props.finalHeight is specified. * State stored as object to ensure re-render even if the value does not change. * See https://github.com/microsoft/fluentui/issues/23545 */ var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"]({ value: 0 }), heightOffset = _b[0], setHeightOffset = _b[1]; var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useAsync"])(); var setHeightOffsetTimer = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](0); /** Animates the height if finalHeight was given. */ var setHeightOffsetEveryFrame = function () { if (contentHost && finalHeight) { setHeightOffsetTimer.current = async.requestAnimationFrame(function () { if (!contentHost.current) { return; } var positioningContainerMainElem = contentHost.current.lastChild; var cardScrollHeight = positioningContainerMainElem.scrollHeight; var cardCurrHeight = positioningContainerMainElem.offsetHeight; var scrollDiff = cardScrollHeight - cardCurrHeight; setHeightOffset({ value: heightOffset.value + scrollDiff }); if (positioningContainerMainElem.offsetHeight < finalHeight) { setHeightOffsetEveryFrame(); } else { async.cancelAnimationFrame(setHeightOffsetTimer.current); } }); } }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only re-run if finalHeight changes react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](setHeightOffsetEveryFrame, [finalHeight]); return heightOffset.value; } var PositioningContainer = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var props = Object(_Utilities__WEBPACK_IMPORTED_MODULE_6__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); // @TODO rename to reflect the name of this class var contentHost = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); /** * The primary positioned div. */ var positionedHost = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var rootRef = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useMergedRefs"])(forwardedRef, positionedHost); var _a = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useTarget"])(props.target, positionedHost), targetRef = _a[0], targetWindow = _a[1]; var getCachedBounds = useBounds(props, targetWindow); var _b = usePositionState(props, positionedHost, contentHost, targetRef, getCachedBounds), positions = _b[0], updateAsyncPosition = _b[1]; var getCachedMaxHeight = useMaxHeight(props, targetRef, getCachedBounds); var heightOffset = useHeightOffset(props, contentHost); useSetInitialFocus(props, contentHost, positions); useAutoDismissEvents(props, positionedHost, targetWindow, targetRef, positions, updateAsyncPosition); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on initial render react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var _a; return (_a = props.onLayerMounted) === null || _a === void 0 ? void 0 : _a.call(props); }, []); // If there is no target window then we are likely in server side rendering and we should not render anything. if (!targetWindow) { return null; } var className = props.className, doNotLayer = props.doNotLayer, positioningContainerWidth = props.positioningContainerWidth, positioningContainerMaxHeight = props.positioningContainerMaxHeight, children = props.children; var styles = Object(_PositioningContainer_styles__WEBPACK_IMPORTED_MODULE_2__["getClassNames"])(); var directionalClassName = positions && positions.targetEdge ? _Styling__WEBPACK_IMPORTED_MODULE_3__["AnimationClassNames"][SLIDE_ANIMATIONS[positions.targetEdge]] : ''; var getContentMaxHeight = getCachedMaxHeight() + heightOffset; var contentMaxHeight = positioningContainerMaxHeight && positioningContainerMaxHeight > getContentMaxHeight ? getContentMaxHeight : positioningContainerMaxHeight; var content = (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: rootRef, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_6__["css"])('ms-PositioningContainer', styles.container) }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["mergeStyles"])('ms-PositioningContainer-layerHost', styles.root, className, directionalClassName, !!positioningContainerWidth && { width: positioningContainerWidth }, doNotLayer && { zIndex: _Styling__WEBPACK_IMPORTED_MODULE_3__["ZIndexes"].Layer }), style: positions ? positions.elementPosition : OFF_SCREEN_STYLE, // Safari and Firefox on Mac OS requires this to back-stop click events so focus remains in the Callout. // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus tabIndex: -1, ref: contentHost }, children, // @TODO apply to the content container contentMaxHeight))); return doNotLayer ? content : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Layer__WEBPACK_IMPORTED_MODULE_4__["Layer"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.layerProps), content); }); PositioningContainer.displayName = 'PositioningContainer'; function arePositionsEqual(positions, newPosition) { return comparePositions(positions.elementPosition, newPosition.elementPosition); } function comparePositions(oldPositions, newPositions) { for (var key in newPositions) { if (newPositions.hasOwnProperty(key)) { var oldPositionEdge = oldPositions[key]; var newPositionEdge = newPositions[key]; if (oldPositionEdge && newPositionEdge) { if (oldPositionEdge.toFixed(2) !== newPositionEdge.toFixed(2)) { return false; } } } } return true; } //# sourceMappingURL=PositioningContainer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.styles.js": /*!*******************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.styles.js ***! \*******************************************************************************************************************/ /*! exports provided: getClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassNames", function() { return getClassNames; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])(function () { var _a; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"])({ root: [ { position: 'absolute', boxSizing: 'border-box', border: '1px solid ${}', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: '1px solid WindowText', }, _a), }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["focusClear"])(), ], container: { position: 'relative', }, main: { backgroundColor: '#ffffff', overflowX: 'hidden', overflowY: 'hidden', position: 'relative', }, overFlowYHidden: { overflowY: 'hidden', }, }); }); //# sourceMappingURL=PositioningContainer.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.types.js": /*!******************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.types.js ***! \******************************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=PositioningContainer.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/index.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/index.js ***! \*********************************************************************************************/ /*! exports provided: useHeightOffset, PositioningContainer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _PositioningContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PositioningContainer */ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useHeightOffset", function() { return _PositioningContainer__WEBPACK_IMPORTED_MODULE_0__["useHeightOffset"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PositioningContainer", function() { return _PositioningContainer__WEBPACK_IMPORTED_MODULE_0__["PositioningContainer"]; }); /* harmony import */ var _PositioningContainer_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PositioningContainer.types */ "./node_modules/@fluentui/react/lib/components/Coachmark/PositioningContainer/PositioningContainer.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Coachmark/index.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Coachmark/index.js ***! \************************************************************************/ /*! exports provided: Coachmark, COACHMARK_ATTRIBUTE_NAME, CoachmarkBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Coachmark__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Coachmark */ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Coachmark", function() { return _Coachmark__WEBPACK_IMPORTED_MODULE_0__["Coachmark"]; }); /* harmony import */ var _Coachmark_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Coachmark.base */ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "COACHMARK_ATTRIBUTE_NAME", function() { return _Coachmark_base__WEBPACK_IMPORTED_MODULE_1__["COACHMARK_ATTRIBUTE_NAME"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoachmarkBase", function() { return _Coachmark_base__WEBPACK_IMPORTED_MODULE_1__["CoachmarkBase"]; }); /* harmony import */ var _Coachmark_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Coachmark.types */ "./node_modules/@fluentui/react/lib/components/Coachmark/Coachmark.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.base.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.base.js ***! \*************************************************************************************/ /*! exports provided: ColorPickerBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerBase", function() { return ColorPickerBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _TextField__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TextField */ "./node_modules/@fluentui/react/lib/TextField.js"); /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib/Tooltip.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _ColorRectangle_ColorRectangle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ColorRectangle/ColorRectangle */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.js"); /* harmony import */ var _ColorSlider_ColorSlider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ColorSlider/ColorSlider */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.js"); /* harmony import */ var _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utilities/color/consts */ "./node_modules/@fluentui/react/lib/utilities/color/consts.js"); /* harmony import */ var _utilities_color_getColorFromString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utilities/color/getColorFromString */ "./node_modules/@fluentui/react/lib/utilities/color/getColorFromString.js"); /* harmony import */ var _utilities_color_getColorFromRGBA__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utilities/color/getColorFromRGBA */ "./node_modules/@fluentui/react/lib/utilities/color/getColorFromRGBA.js"); /* harmony import */ var _utilities_color_clamp__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utilities/color/clamp */ "./node_modules/@fluentui/react/lib/utilities/color/clamp.js"); /* harmony import */ var _utilities_color_updateA__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utilities/color/updateA */ "./node_modules/@fluentui/react/lib/utilities/color/updateA.js"); /* harmony import */ var _utilities_color_updateT__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utilities/color/updateT */ "./node_modules/@fluentui/react/lib/utilities/color/updateT.js"); /* harmony import */ var _utilities_color_updateH__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utilities/color/updateH */ "./node_modules/@fluentui/react/lib/utilities/color/updateH.js"); /* harmony import */ var _utilities_color_correctRGB__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utilities/color/correctRGB */ "./node_modules/@fluentui/react/lib/utilities/color/correctRGB.js"); /* harmony import */ var _utilities_color_correctHex__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utilities/color/correctHex */ "./node_modules/@fluentui/react/lib/utilities/color/correctHex.js"); /* harmony import */ var _ColorRectangle_ColorRectangle_base__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ColorRectangle/ColorRectangle.base */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.base.js"); // These imports are separated to help with bundling var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var allColorComponents = ['hex', 'r', 'g', 'b', 'a', 't']; var errorKeys = { hex: 'hexError', r: 'redError', g: 'greenError', b: 'blueError', a: 'alphaError', t: 'transparencyError', }; /** * {@docCategory ColorPicker} */ var ColorPickerBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerBase, _super); function ColorPickerBase(props) { var _this = _super.call(this, props) || this; _this._onSVChanged = function (ev, color) { _this._updateColor(ev, color); }; _this._onHChanged = function (ev, h) { _this._updateColor(ev, Object(_utilities_color_updateH__WEBPACK_IMPORTED_MODULE_14__["updateH"])(_this.state.color, h)); }; /** Callback for when the alpha/transparency slider changes */ _this._onATChanged = function (ev, value) { var updater = _this.props.alphaType === 'transparency' ? _utilities_color_updateT__WEBPACK_IMPORTED_MODULE_13__["updateT"] : _utilities_color_updateA__WEBPACK_IMPORTED_MODULE_12__["updateA"]; _this._updateColor(ev, updater(_this.state.color, Math.round(value))); }; _this._onBlur = function (event) { var _a; var _b = _this.state, color = _b.color, editingColor = _b.editingColor; if (!editingColor) { return; } // If there was an intermediate incorrect value (such as too large or empty), correct it. var value = editingColor.value, component = editingColor.component; var isHex = component === 'hex'; var isAlpha = component === 'a'; var isTransparency = component === 't'; var minLength = isHex ? _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MIN_HEX_LENGTH"] : _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MIN_RGBA_LENGTH"]; if (value.length >= minLength && (isHex || !isNaN(Number(value)))) { // Real value. Clamp to appropriate length (hex) or range (rgba). var newColor = void 0; if (isHex) { newColor = Object(_utilities_color_getColorFromString__WEBPACK_IMPORTED_MODULE_9__["getColorFromString"])('#' + Object(_utilities_color_correctHex__WEBPACK_IMPORTED_MODULE_16__["correctHex"])(value)); } else if (isAlpha || isTransparency) { var updater = isAlpha ? _utilities_color_updateA__WEBPACK_IMPORTED_MODULE_12__["updateA"] : _utilities_color_updateT__WEBPACK_IMPORTED_MODULE_13__["updateT"]; newColor = updater(color, Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_11__["clamp"])(Number(value), _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_COLOR_ALPHA"])); } else { newColor = Object(_utilities_color_getColorFromRGBA__WEBPACK_IMPORTED_MODULE_10__["getColorFromRGBA"])(Object(_utilities_color_correctRGB__WEBPACK_IMPORTED_MODULE_15__["correctRGB"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, color), (_a = {}, _a[component] = Number(value), _a)))); } // Update state and call onChange _this._updateColor(event, newColor); } else { // Intermediate value was an empty string or too short (hex only). // Just clear the intermediate state and revert to the previous value. _this.setState({ editingColor: undefined }); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); var strings = props.strings; // always defined since it's in defaultProps Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])('ColorPicker', props, { hexLabel: 'strings.hex', redLabel: 'strings.red', greenLabel: 'strings.green', blueLabel: 'strings.blue', alphaLabel: 'strings.alpha', alphaSliderHidden: 'alphaType', }); // eslint-disable-next-line deprecation/deprecation if (strings.hue) { // warnDeprecations can't handle nested deprecated props Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warn"])("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."); } _this.state = { color: _getColorFromProps(props) || Object(_utilities_color_getColorFromString__WEBPACK_IMPORTED_MODULE_9__["getColorFromString"])('#ffffff'), }; _this._textChangeHandlers = {}; for (var _i = 0, allColorComponents_1 = allColorComponents; _i < allColorComponents_1.length; _i++) { var component = allColorComponents_1[_i]; _this._textChangeHandlers[component] = _this._onTextChange.bind(_this, component); } var defaultStrings = ColorPickerBase.defaultProps.strings; _this._textLabels = { /* eslint-disable deprecation/deprecation */ r: props.redLabel || strings.red || defaultStrings.red, g: props.greenLabel || strings.green || defaultStrings.green, b: props.blueLabel || strings.blue || defaultStrings.blue, a: props.alphaLabel || strings.alpha || defaultStrings.alpha, hex: props.hexLabel || strings.hex || defaultStrings.hex, t: strings.transparency || defaultStrings.transparency, /* eslint-enable deprecation/deprecation */ }; _this._strings = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, defaultStrings), { // these aria labels default to the visible labels alphaAriaLabel: _this._textLabels.a, transparencyAriaLabel: _this._textLabels.t }), strings); return _this; } Object.defineProperty(ColorPickerBase.prototype, "color", { get: function () { return this.state.color; }, enumerable: false, configurable: true }); ColorPickerBase.prototype.componentDidUpdate = function (prevProps, prevState) { // if props changed (as opposed to a state update), update the color if (prevProps !== this.props) { var color = _getColorFromProps(this.props); if (color) { this._updateColor(undefined, color); } } }; ColorPickerBase.prototype.render = function () { var _this = this; var props = this.props; var strings = this._strings; var textLabels = this._textLabels; var theme = props.theme, className = props.className, styles = props.styles, alphaType = props.alphaType, // eslint-disable-next-line deprecation/deprecation _a = props.alphaSliderHidden, // eslint-disable-next-line deprecation/deprecation alphaSliderHidden = _a === void 0 ? alphaType === 'none' : _a, tooltipProps = props.tooltipProps; var color = this.state.color; var useTransparency = alphaType === 'transparency'; var colorComponents = ['hex', 'r', 'g', 'b', useTransparency ? 't' : 'a']; var atValue = useTransparency ? color.t : color.a; var atLabel = useTransparency ? textLabels.t : textLabels.a; var classNames = getClassNames(styles, { theme: theme, className: className, alphaType: alphaType, }); var selectedColorAriaParts = [textLabels.r, color.r, textLabels.g, color.g, textLabels.b, color.b]; if (!alphaSliderHidden && typeof atValue === 'number') { selectedColorAriaParts.push(atLabel, atValue + "%"); } var ariaLabel = strings.rootAriaLabelFormat.replace('{0}', selectedColorAriaParts.join(' ')); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.root, role: "group", "aria-label": ariaLabel }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.panel }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ColorRectangle_ColorRectangle__WEBPACK_IMPORTED_MODULE_6__["ColorRectangle"], { color: color, onChange: this._onSVChanged, ariaLabel: strings.svAriaLabel, ariaDescription: strings.svAriaDescription, ariaValueFormat: strings.svAriaValueFormat, className: classNames.colorRectangle }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.flexContainer }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.flexSlider }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ColorSlider_ColorSlider__WEBPACK_IMPORTED_MODULE_7__["ColorSlider"], { className: "is-hue", type: "hue", // eslint-disable-next-line deprecation/deprecation ariaLabel: strings.hue || strings.hueAriaLabel, value: color.h, onChange: this._onHChanged }), !alphaSliderHidden && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ColorSlider_ColorSlider__WEBPACK_IMPORTED_MODULE_7__["ColorSlider"], { className: "is-alpha", type: alphaType, ariaLabel: useTransparency ? strings.transparencyAriaLabel : strings.alphaAriaLabel, overlayColor: color.hex, value: atValue, onChange: this._onATChanged }))), props.showPreview && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.flexPreviewBox }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.colorSquare + ' is-preview', style: { backgroundColor: color.str, } })))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("table", { className: classNames.table, role: "group", cellPadding: "0", cellSpacing: "0" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("thead", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("tr", { className: classNames.tableHeader }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("td", { className: classNames.tableHexCell }, textLabels.hex), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("td", null, textLabels.r), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("td", null, textLabels.g), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("td", null, textLabels.b), !alphaSliderHidden && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("td", { className: classNames.tableAlphaCell }, atLabel))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("tbody", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("tr", null, colorComponents.map(function (comp) { if ((comp === 'a' || comp === 't') && alphaSliderHidden) { return null; } var tooltipContent = _this._getTooltipValue(comp); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("td", { key: comp }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Tooltip__WEBPACK_IMPORTED_MODULE_4__["TooltipHost"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ content: tooltipContent, directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_5__["DirectionalHint"].bottomCenter, role: "alert" }, tooltipProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_TextField__WEBPACK_IMPORTED_MODULE_3__["TextField"], { className: classNames.input, onChange: _this._textChangeHandlers[comp], onBlur: _this._onBlur, value: _this._getDisplayValue(comp), spellCheck: false, ariaLabel: textLabels[comp], autoComplete: "off", invalid: !!tooltipContent })))); }))))))); }; ColorPickerBase.prototype._getDisplayValue = function (component) { var _a = this.state, color = _a.color, editingColor = _a.editingColor; if (editingColor && editingColor.component === component) { return editingColor.value; } if (component === 'hex') { return color[component] || ''; } else if (typeof color[component] === 'number' && !isNaN(color[component])) { return String(color[component]); } return ''; }; /* Get the error tooltip value for a component if the component is in an invalid state */ ColorPickerBase.prototype._getTooltipValue = function (component) { var editingColor = this.state.editingColor; // if the component does not have an interim value, it is valid if (!editingColor || editingColor.component !== component) { return undefined; } var value = editingColor.value; // for hex, do not show a tooltip if the value is between 3-6 characters if (component === 'hex' && value.length >= _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MIN_HEX_LENGTH"] && value.length <= _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_HEX_LENGTH"]) { return undefined; } var errorKey = errorKeys[component]; return this._strings[errorKey]; }; ColorPickerBase.prototype._onTextChange = function (component, event, newValue) { var _a; var color = this.state.color; var isHex = component === 'hex'; var isAlpha = component === 'a'; var isTransparency = component === 't'; newValue = (newValue || '').substr(0, isHex ? _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_HEX_LENGTH"] : _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_RGBA_LENGTH"]); // Ignore what the user typed if it contains invalid characters var validCharsRegex = isHex ? _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["HEX_REGEX"] : _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["RGBA_REGEX"]; if (!validCharsRegex.test(newValue)) { return; } // Determine if the entry is valid (different methods for hex, alpha, and RGB) var isValid; if (newValue === '') { // Empty string is obviously not valid isValid = false; } else if (isHex) { // Technically hex values of length 3 are also valid, but committing the value here would // cause it to be automatically converted to a value of length 6, which may not be what the // user wanted if they're not finished typing. (Values of length 3 will be committed on blur.) isValid = newValue.length === _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_HEX_LENGTH"]; } else if (isAlpha || isTransparency) { isValid = Number(newValue) <= _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_COLOR_ALPHA"]; } else { isValid = Number(newValue) <= _utilities_color_consts__WEBPACK_IMPORTED_MODULE_8__["MAX_COLOR_RGB"]; } if (!isValid) { // If the new value is an empty string or other invalid value, save that to display. // (if the user still hasn't entered anything on blur, the last value is restored) this.setState({ editingColor: { component: component, value: newValue } }); } else if (String(color[component]) === newValue) { // If the new value is the same as the current value, mostly ignore it. // Exception is that if the user was previously editing the value (but hadn't yet entered // a new valid value), we should clear the intermediate value. if (this.state.editingColor) { this.setState({ editingColor: undefined }); } } else { // Should be a valid color. Update the value. var newColor = isHex ? Object(_utilities_color_getColorFromString__WEBPACK_IMPORTED_MODULE_9__["getColorFromString"])('#' + newValue) : isTransparency ? Object(_utilities_color_updateT__WEBPACK_IMPORTED_MODULE_13__["updateT"])(color, Number(newValue)) : Object(_utilities_color_getColorFromRGBA__WEBPACK_IMPORTED_MODULE_10__["getColorFromRGBA"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, color), (_a = {}, _a[component] = Number(newValue), _a))); this._updateColor(event, newColor); } }; /** * Update the displayed color and call change handlers if appropriate. * @param ev - Event if call was triggered by an event (undefined if triggered by props change) * @param newColor - Updated color */ ColorPickerBase.prototype._updateColor = function (ev, newColor) { if (!newColor) { return; } var _a = this.state, color = _a.color, editingColor = _a.editingColor; // For black or white, the hue can change without changing the string. var isDifferentColor = newColor.h !== color.h || newColor.str !== color.str; if (isDifferentColor || editingColor) { // If ev is undefined, it's an update from props (which should be unconditionally respected // and not call onChange). if (ev && this.props.onChange) { this.props.onChange(ev, newColor); if (ev.defaultPrevented) { return; } } this.setState({ color: newColor, editingColor: undefined }); } }; ColorPickerBase.defaultProps = { alphaType: 'alpha', strings: { rootAriaLabelFormat: 'Color picker, {0} selected.', hex: 'Hex', red: 'Red', green: 'Green', blue: 'Blue', alpha: 'Alpha', transparency: 'Transparency', hueAriaLabel: 'Hue', svAriaLabel: _ColorRectangle_ColorRectangle_base__WEBPACK_IMPORTED_MODULE_17__["ColorRectangleBase"].defaultProps.ariaLabel, svAriaValueFormat: _ColorRectangle_ColorRectangle_base__WEBPACK_IMPORTED_MODULE_17__["ColorRectangleBase"].defaultProps.ariaValueFormat, svAriaDescription: _ColorRectangle_ColorRectangle_base__WEBPACK_IMPORTED_MODULE_17__["ColorRectangleBase"].defaultProps.ariaDescription, hexError: 'Hex values must be between 3 and 6 characters long', alphaError: 'Alpha must be between 0 and 100', transparencyError: 'Transparency must be between 0 and 100', redError: 'Red must be between 0 and 255', greenError: 'Green must be between 0 and 255', blueError: 'Blue must be between 0 and 255', }, }; return ColorPickerBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); function _getColorFromProps(props) { var color = props.color; return typeof color === 'string' ? Object(_utilities_color_getColorFromString__WEBPACK_IMPORTED_MODULE_9__["getColorFromString"])(color) : color; } //# sourceMappingURL=ColorPicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.js ***! \********************************************************************************/ /*! exports provided: ColorPicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return ColorPicker; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ColorPicker_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ColorPicker.base */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.base.js"); /* harmony import */ var _ColorPicker_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ColorPicker.styles */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.styles.js"); var ColorPicker = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ColorPicker_base__WEBPACK_IMPORTED_MODULE_1__["ColorPickerBase"], _ColorPicker_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'ColorPicker' }); //# sourceMappingURL=ColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.styles.js ***! \***************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); var getStyles = function (props) { var className = props.className, theme = props.theme, alphaType = props.alphaType; return { root: [ 'ms-ColorPicker', theme.fonts.medium, { position: 'relative', maxWidth: 300, }, className, ], panel: [ 'ms-ColorPicker-panel', { padding: '16px', }, ], table: [ 'ms-ColorPicker-table', { tableLayout: 'fixed', width: '100%', selectors: { 'tbody td:last-of-type .ms-ColorPicker-input': { paddingRight: 0, }, }, }, ], tableHeader: [ theme.fonts.small, { selectors: { td: { paddingBottom: 4, }, }, }, ], tableHexCell: { width: '25%', }, // Account for "Transparency" being a longer word tableAlphaCell: alphaType === 'transparency' && { width: '22%', }, colorSquare: [ 'ms-ColorPicker-colorSquare', { width: 48, height: 48, margin: '0 0 0 8px', border: '1px solid #c8c6c4', }, ], flexContainer: { display: 'flex', }, flexSlider: { flexGrow: '1', }, flexPreviewBox: { flexGrow: '0', }, input: [ 'ms-ColorPicker-input', { width: '100%', border: 'none', boxSizing: 'border-box', height: 30, selectors: { '&.ms-TextField': { paddingRight: 4, }, '& .ms-TextField-field': { minWidth: 'auto', padding: 5, textOverflow: 'clip', }, }, }, ], }; }; //# sourceMappingURL=ColorPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.types.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.types.js ***! \**************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ColorPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.base.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.base.js ***! \*******************************************************************************************************/ /*! exports provided: ColorRectangleBase, _getNewColor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorRectangleBase", function() { return ColorRectangleBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_getNewColor", function() { return _getNewColor; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../utilities/color/consts */ "./node_modules/@fluentui/react/lib/utilities/color/consts.js"); /* harmony import */ var _utilities_color_getFullColorString__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../utilities/color/getFullColorString */ "./node_modules/@fluentui/react/lib/utilities/color/getFullColorString.js"); /* harmony import */ var _utilities_color_updateSV__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../utilities/color/updateSV */ "./node_modules/@fluentui/react/lib/utilities/color/updateSV.js"); /* harmony import */ var _utilities_color_clamp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../utilities/color/clamp */ "./node_modules/@fluentui/react/lib/utilities/color/clamp.js"); // These imports are separated to help with bundling var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory ColorPicker} */ var ColorRectangleBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorRectangleBase, _super); function ColorRectangleBase(props) { var _this = _super.call(this, props) || this; _this._disposables = []; _this._root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._isAdjustingSaturation = true; _this._descriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])('ColorRectangle-description'); _this._onKeyDown = function (ev) { var color = _this.state.color; var s = color.s, v = color.v; var increment = ev.shiftKey ? 10 : 1; // Intentionally DO NOT flip the color picker in RTL: its orientation is not very meaningful, // and getting all the math and styles flipped correctly is tricky // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up: { _this._isAdjustingSaturation = false; v += increment; // V = 100 (lightest) is at the top break; } case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down: { _this._isAdjustingSaturation = false; v -= increment; // V = 0 (darkest) is at the bottom break; } case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].left: { _this._isAdjustingSaturation = true; s -= increment; break; } case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].right: { _this._isAdjustingSaturation = true; s += increment; break; } default: return; } _this._updateColor(ev, Object(_utilities_color_updateSV__WEBPACK_IMPORTED_MODULE_5__["updateSV"])(color, Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_6__["clamp"])(s, _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_SATURATION"]), Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_6__["clamp"])(v, _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_VALUE"]))); }; _this._onMouseDown = function (ev) { _this._disposables.push(Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["on"])(window, 'mousemove', _this._onMouseMove, true), Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["on"])(window, 'mouseup', _this._disposeListeners, true)); _this._onMouseMove(ev); }; _this._onMouseMove = function (ev) { if (!_this._root.current) { return; } // Leaving the following commented code which is sometimes necessary for debugging: // If the primary button (1) isn't pressed, the user is no longer dragging, so turn off // the event handlers and exit. // if (!(ev.buttons & 1)) { // this._disposeListeners(); // return; // } var newColor = _getNewColor(ev, _this.state.color, _this._root.current); if (newColor) { _this._updateColor(ev, newColor); } }; _this._disposeListeners = function () { _this._disposables.forEach(function (dispose) { return dispose(); }); _this._disposables = []; }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this.state = { color: props.color }; return _this; } Object.defineProperty(ColorRectangleBase.prototype, "color", { get: function () { return this.state.color; }, enumerable: false, configurable: true }); ColorRectangleBase.prototype.componentDidUpdate = function (prevProps, prevState) { // if props changed (as opposed to a state update), set the value // TODO: switch to strict controlled pattern instead if (prevProps !== this.props && this.props.color) { this.setState({ color: this.props.color }); } }; ColorRectangleBase.prototype.componentWillUnmount = function () { this._disposeListeners(); }; ColorRectangleBase.prototype.render = function () { var _a = this.props, minSize = _a.minSize, theme = _a.theme, className = _a.className, styles = _a.styles, ariaValueFormat = _a.ariaValueFormat, ariaLabel = _a.ariaLabel, ariaDescription = _a.ariaDescription; var color = this.state.color; var classNames = getClassNames(styles, { theme: theme, className: className, minSize: minSize, }); var valueText = ariaValueFormat.replace('{0}', String(color.s)).replace('{1}', String(color.v)); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this._root, tabIndex: 0, className: classNames.root, style: { backgroundColor: Object(_utilities_color_getFullColorString__WEBPACK_IMPORTED_MODULE_4__["getFullColorString"])(color) }, onMouseDown: this._onMouseDown, onKeyDown: this._onKeyDown, role: "slider", "aria-valuetext": valueText, "aria-valuenow": this._isAdjustingSaturation ? color.s : color.v, "aria-valuemin": 0, "aria-valuemax": _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_VALUE"], "aria-label": ariaLabel, "aria-describedby": this._descriptionId, "data-is-focusable": true }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.description, id: this._descriptionId }, ariaDescription), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.light }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.dark }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.thumb, style: { left: color.s + '%', top: _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_VALUE"] - color.v + '%', backgroundColor: color.str } }))); }; ColorRectangleBase.prototype._updateColor = function (ev, color) { var onChange = this.props.onChange; var oldColor = this.state.color; if (color.s === oldColor.s && color.v === oldColor.v) { return; // no change } if (onChange) { onChange(ev, color); } if (!ev.defaultPrevented) { this.setState({ color: color }); ev.preventDefault(); } }; ColorRectangleBase.defaultProps = { minSize: 220, ariaLabel: 'Saturation and brightness', ariaValueFormat: 'Saturation {0} brightness {1}', ariaDescription: 'Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness.', }; return ColorRectangleBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); /** * Exported for testing only. * @internal */ function _getNewColor(ev, prevColor, root) { var rectSize = root.getBoundingClientRect(); var sPercentage = (ev.clientX - rectSize.left) / rectSize.width; var vPercentage = (ev.clientY - rectSize.top) / rectSize.height; return Object(_utilities_color_updateSV__WEBPACK_IMPORTED_MODULE_5__["updateSV"])(prevColor, Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_6__["clamp"])(Math.round(sPercentage * _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_SATURATION"]), _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_SATURATION"]), Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_6__["clamp"])(Math.round(_utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_VALUE"] - vPercentage * _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_VALUE"]), _utilities_color_consts__WEBPACK_IMPORTED_MODULE_3__["MAX_COLOR_VALUE"])); } //# sourceMappingURL=ColorRectangle.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.js ***! \**************************************************************************************************/ /*! exports provided: ColorRectangle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorRectangle", function() { return ColorRectangle; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ColorRectangle_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ColorRectangle.base */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.base.js"); /* harmony import */ var _ColorRectangle_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ColorRectangle.styles */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.styles.js"); var ColorRectangle = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ColorRectangle_base__WEBPACK_IMPORTED_MODULE_1__["ColorRectangleBase"], _ColorRectangle_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'ColorRectangle' }); //# sourceMappingURL=ColorRectangle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.styles.js ***! \*********************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); var getStyles = function (props) { var _a, _b; var className = props.className, theme = props.theme, minSize = props.minSize; var palette = theme.palette, effects = theme.effects; return { root: [ 'ms-ColorPicker-colorRect', { position: 'relative', marginBottom: 8, border: "1px solid " + palette.neutralLighter, borderRadius: effects.roundedCorner2, minWidth: minSize, minHeight: minSize, outline: 'none', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &:focus"] = (_b = { outline: "1px solid " + palette.neutralSecondary }, _b["" + _Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { outline: '2px solid CanvasText', }, _b), _a), }, className, ], light: [ 'ms-ColorPicker-light', { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, // Intentionally DO NOT flip the color picker in RTL: its orientation is not very meaningful, // and getting all the math and styles flipped correctly is tricky background: 'linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/', }, ], dark: [ 'ms-ColorPicker-dark', { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, background: 'linear-gradient(to bottom, transparent 0, #000 100%)', }, ], thumb: [ 'ms-ColorPicker-thumb', { position: 'absolute', width: 20, height: 20, background: 'white', border: "1px solid " + palette.neutralSecondaryAlt, borderRadius: '50%', boxShadow: effects.elevation8, transform: 'translate(-50%, -50%)', selectors: { ':before': { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, border: "2px solid " + palette.white, borderRadius: '50%', boxSizing: 'border-box', content: '""', }, }, }, ], description: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_3__["hiddenContentStyle"], }; }; //# sourceMappingURL=ColorRectangle.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.types.js ***! \********************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ColorRectangle.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.base.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.base.js ***! \*************************************************************************************************/ /*! exports provided: ColorSliderBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorSliderBase", function() { return ColorSliderBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _utilities_color_clamp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../utilities/color/clamp */ "./node_modules/@fluentui/react/lib/utilities/color/clamp.js"); /* harmony import */ var _utilities_color_consts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../utilities/color/consts */ "./node_modules/@fluentui/react/lib/utilities/color/consts.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory ColorPicker} */ var ColorSliderBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorSliderBase, _super); function ColorSliderBase(props) { var _this = _super.call(this, props) || this; _this._disposables = []; _this._root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onKeyDown = function (ev) { var currentValue = _this.value; var maxValue = _this._maxValue; var increment = ev.shiftKey ? 10 : 1; // Intentionally DO NOT flip the color picker in RTL: its orientation is not very meaningful, // and getting all the math and styles flipped correctly is tricky // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].left: { currentValue -= increment; break; } case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].right: { currentValue += increment; break; } case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].home: { currentValue = 0; break; } case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].end: { currentValue = maxValue; break; } default: { return; } } _this._updateValue(ev, Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_3__["clamp"])(currentValue, maxValue)); }; _this._onMouseDown = function (ev) { var win = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getWindow"])(_this); if (win) { _this._disposables.push(Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["on"])(win, 'mousemove', _this._onMouseMove, true), Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["on"])(win, 'mouseup', _this._disposeListeners, true)); } _this._onMouseMove(ev); }; _this._onMouseMove = function (ev) { if (!_this._root.current) { return; } var maxValue = _this._maxValue; var rectSize = _this._root.current.getBoundingClientRect(); var currentPercentage = (ev.clientX - rectSize.left) / rectSize.width; var newValue = Object(_utilities_color_clamp__WEBPACK_IMPORTED_MODULE_3__["clamp"])(Math.round(currentPercentage * maxValue), maxValue); _this._updateValue(ev, newValue); }; _this._disposeListeners = function () { _this._disposables.forEach(function (dispose) { return dispose(); }); _this._disposables = []; }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])('ColorSlider', props, { thumbColor: 'styles.sliderThumb', overlayStyle: 'overlayColor', isAlpha: 'type', maxValue: 'type', minValue: 'type', }); // eslint-disable-next-line deprecation/deprecation if (_this._type !== 'hue' && !(props.overlayColor || props.overlayStyle)) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warn"])("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""); } _this.state = { currentValue: props.value || 0, }; return _this; } Object.defineProperty(ColorSliderBase.prototype, "value", { get: function () { return this.state.currentValue; }, enumerable: false, configurable: true }); ColorSliderBase.prototype.componentDidUpdate = function (prevProps, prevState) { // if props changed (as opposed to a state update), set the value // TODO: switch to strict controlled pattern instead if (prevProps !== this.props && this.props.value !== undefined) { this.setState({ currentValue: this.props.value }); } }; ColorSliderBase.prototype.componentWillUnmount = function () { this._disposeListeners(); }; ColorSliderBase.prototype.render = function () { var type = this._type; var maxValue = this._maxValue; var _a = this.props, // eslint-disable-next-line deprecation/deprecation overlayStyle = _a.overlayStyle, overlayColor = _a.overlayColor, theme = _a.theme, className = _a.className, styles = _a.styles, _b = _a.ariaLabel, ariaLabel = _b === void 0 ? type : _b; var currentValue = this.value; var classNames = getClassNames(styles, { theme: theme, className: className, type: type, }); var currentPercentage = (100 * currentValue) / maxValue; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this._root, className: classNames.root, tabIndex: 0, onKeyDown: this._onKeyDown, onMouseDown: this._onMouseDown, role: "slider", "aria-valuenow": currentValue, "aria-valuetext": String(currentValue), "aria-valuemin": 0, "aria-valuemax": maxValue, "aria-label": ariaLabel, "data-is-focusable": true }, !!(overlayColor || overlayStyle) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.sliderOverlay, // this isn't included in getStyles because it may change frequently style: overlayColor ? { background: type === 'transparency' ? "linear-gradient(to right, #" + overlayColor + ", transparent)" : "linear-gradient(to right, transparent, #" + overlayColor + ")", } : overlayStyle })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.sliderThumb, style: { left: currentPercentage + '%' } }))); }; Object.defineProperty(ColorSliderBase.prototype, "_type", { get: function () { // eslint-disable-next-line deprecation/deprecation var _a = this.props, isAlpha = _a.isAlpha, _b = _a.type, type = _b === void 0 ? isAlpha ? 'alpha' : 'hue' : _b; return type; }, enumerable: false, configurable: true }); Object.defineProperty(ColorSliderBase.prototype, "_maxValue", { get: function () { return this._type === 'hue' ? _utilities_color_consts__WEBPACK_IMPORTED_MODULE_4__["MAX_COLOR_HUE"] : _utilities_color_consts__WEBPACK_IMPORTED_MODULE_4__["MAX_COLOR_ALPHA"]; }, enumerable: false, configurable: true }); ColorSliderBase.prototype._updateValue = function (ev, newValue) { if (newValue === this.value) { return; } var onChange = this.props.onChange; if (onChange) { onChange(ev, newValue); } if (!ev.defaultPrevented) { this.setState({ currentValue: newValue, }); ev.preventDefault(); } }; ColorSliderBase.defaultProps = { value: 0, }; return ColorSliderBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=ColorSlider.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.js ***! \********************************************************************************************/ /*! exports provided: ColorSlider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorSlider", function() { return ColorSlider; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ColorSlider_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ColorSlider.base */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.base.js"); /* harmony import */ var _ColorSlider_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ColorSlider.styles */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.styles.js"); var ColorSlider = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ColorSlider_base__WEBPACK_IMPORTED_MODULE_1__["ColorSliderBase"], _ColorSlider_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'ColorSlider' }); //# sourceMappingURL=ColorSlider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.styles.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.styles.js ***! \***************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var hueStyle = { background: "linear-gradient(" + [ 'to left', 'red 0', '#f09 10%', '#cd00ff 20%', '#3200ff 30%', '#06f 40%', '#00fffd 50%', '#0f6 60%', '#35ff00 70%', '#cdff00 80%', '#f90 90%', 'red 100%', ].join(',') + ")", }; var alphaStyle = { backgroundImage: 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)', }; var getStyles = function (props) { var _a, _b; // eslint-disable-next-line deprecation/deprecation var theme = props.theme, className = props.className, _c = props.type, type = _c === void 0 ? 'hue' : _c, _d = props.isAlpha, useAlphaBackground = _d === void 0 ? type !== 'hue' : _d; var palette = theme.palette, effects = theme.effects; return { root: [ 'ms-ColorPicker-slider', { position: 'relative', height: 20, marginBottom: 8, border: "1px solid " + palette.neutralLight, borderRadius: effects.roundedCorner2, boxSizing: 'border-box', outline: 'none', forcedColorAdjust: 'none', selectors: (_a = {}, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_0__["IsFocusVisibleClassName"] + " &:focus"] = (_b = { outline: "1px solid " + palette.neutralSecondary }, _b["" + _Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { outline: '2px solid CanvasText', }, _b), _a), }, useAlphaBackground ? alphaStyle : hueStyle, className, ], sliderOverlay: [ 'ms-ColorPicker-sliderOverlay', { content: '', position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, }, ], sliderThumb: [ 'ms-ColorPicker-thumb', 'is-slider', { position: 'absolute', width: 20, height: 20, background: 'white', border: "1px solid " + palette.neutralSecondaryAlt, borderRadius: '50%', boxShadow: effects.elevation8, transform: 'translate(-50%, -50%)', top: '50%', forcedColorAdjust: 'auto', }, ], }; }; //# sourceMappingURL=ColorSlider.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.types.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.types.js ***! \**************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ColorSlider.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ColorPicker/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ColorPicker/index.js ***! \**************************************************************************/ /*! exports provided: ColorPicker, ColorPickerBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ColorPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ColorPicker */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return _ColorPicker__WEBPACK_IMPORTED_MODULE_0__["ColorPicker"]; }); /* harmony import */ var _ColorPicker_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ColorPicker.base */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorPickerBase", function() { return _ColorPicker_base__WEBPACK_IMPORTED_MODULE_1__["ColorPickerBase"]; }); /* harmony import */ var _ColorPicker_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ColorPicker.types */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorPicker.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _ColorRectangle_ColorRectangle_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ColorRectangle/ColorRectangle.types */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorRectangle/ColorRectangle.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _ColorSlider_ColorSlider_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ColorSlider/ColorSlider.types */ "./node_modules/@fluentui/react/lib/components/ColorPicker/ColorSlider/ColorSlider.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.classNames.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.classNames.js ***! \*************************************************************************************/ /*! exports provided: getClassNames, getComboBoxOptionClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassNames", function() { return getClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComboBoxOptionClassNames", function() { return getComboBoxOptionClassNames; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])(function (styles, className, isOpen, disabled, required, focused, allowFreeForm, hasErrorMessage) { return { container: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-container', className, styles.container), label: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.label, disabled && styles.labelDisabled), root: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox', hasErrorMessage ? styles.rootError : isOpen && 'is-open', required && 'is-required', styles.root, !allowFreeForm && styles.rootDisallowFreeForm, hasErrorMessage && !focused ? styles.rootError : !disabled && focused && styles.rootFocused, !disabled && { selectors: { ':hover': hasErrorMessage ? styles.rootError : !isOpen && !focused && styles.rootHovered, ':active': hasErrorMessage ? styles.rootError : styles.rootPressed, ':focus': hasErrorMessage ? styles.rootError : styles.rootFocused, }, }, disabled && ['is-disabled', styles.rootDisabled]), input: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-Input', styles.input, disabled && styles.inputDisabled), errorMessage: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.errorMessage), callout: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-callout', styles.callout), optionsContainerWrapper: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-optionsContainerWrapper', styles.optionsContainerWrapper), optionsContainer: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-optionsContainer', styles.optionsContainer), header: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-header', styles.header), divider: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-divider', styles.divider), screenReaderText: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.screenReaderText), }; }); var getComboBoxOptionClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])(function (styles) { return { optionText: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-optionText', styles.optionText), root: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])('ms-ComboBox-option', styles.root, { selectors: { ':hover': styles.rootHovered, ':focus': styles.rootFocused, ':active': styles.rootPressed, }, }), optionTextWrapper: Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyles"])(styles.optionTextWrapper), }; }); //# sourceMappingURL=ComboBox.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.js ***! \**************************************************************************/ /*! exports provided: ComboBox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComboBox", function() { return ComboBox; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Autofill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Autofill */ "./node_modules/@fluentui/react/lib/Autofill.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib/Callout.js"); /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Checkbox */ "./node_modules/@fluentui/react/lib/Checkbox.js"); /* harmony import */ var _ComboBox_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ComboBox.styles */ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.styles.js"); /* harmony import */ var _ComboBox_classNames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ComboBox.classNames */ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.classNames.js"); /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib/Label.js"); /* harmony import */ var _SelectableOption__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../SelectableOption */ "./node_modules/@fluentui/react/lib/SelectableOption.js"); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); var SearchDirection; (function (SearchDirection) { SearchDirection[SearchDirection["backward"] = -1] = "backward"; SearchDirection[SearchDirection["none"] = 0] = "none"; SearchDirection[SearchDirection["forward"] = 1] = "forward"; })(SearchDirection || (SearchDirection = {})); var HoverStatus; (function (HoverStatus) { /** Used when the user was hovering and has since moused out of the menu items */ HoverStatus[HoverStatus["clearAll"] = -2] = "clearAll"; /** Default "normal" state, when no hover has happened or a hover is in progress */ HoverStatus[HoverStatus["default"] = -1] = "default"; })(HoverStatus || (HoverStatus = {})); var ScrollIdleDelay = 250; /* ms */ var TouchIdleDelay = 500; /* ms */ /** * This is used to clear any pending autocomplete text (used when autocomplete is true and * allowFreeform is false) */ var ReadOnlyPendingAutoCompleteTimeout = 1000; /* ms */ /** * Internal component that is used to wrap all ComboBox options. * This is used to customize when we want to re-render components, * so we don't re-render every option every time render is executed. */ var ComboBoxOptionWrapper = react__WEBPACK_IMPORTED_MODULE_1__["memo"](function (_a) { var render = _a.render; return render(); }, function (_a, _b) { var oldRender = _a.render, oldProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["render"]); var newRender = _b.render, newProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_b, ["render"]); // The render function will always be different, so we ignore that prop return Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["shallowCompare"])(oldProps, newProps); }); var COMPONENT_NAME = 'ComboBox'; var DEFAULT_PROPS = { options: [], allowFreeform: false, autoComplete: 'on', buttonIconProps: { iconName: 'ChevronDown' }, }; function useOptionsState(_a) { var options = _a.options, defaultSelectedKey = _a.defaultSelectedKey, selectedKey = _a.selectedKey; /** The currently selected indices */ var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"](function () { return getSelectedIndices(options, buildDefaultSelectedKeys(defaultSelectedKey, selectedKey)); }), selectedIndices = _b[0], setSelectedIndices = _b[1]; /** The options currently available for the callout */ var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](options), currentOptions = _c[0], setCurrentOptions = _c[1]; /** This value is used for the autocomplete hint value */ var _d = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), suggestedDisplayValue = _d[0], setSuggestedDisplayValue = _d[1]; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (selectedKey !== undefined) { var selectedKeys = buildSelectedKeys(selectedKey); var indices = getSelectedIndices(options, selectedKeys); setSelectedIndices(indices); } setCurrentOptions(options); }, [options, selectedKey]); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (selectedKey === null) { setSuggestedDisplayValue(undefined); } }, [selectedKey]); return [ selectedIndices, setSelectedIndices, currentOptions, setCurrentOptions, suggestedDisplayValue, setSuggestedDisplayValue, ]; } var ComboBox = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var _a = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults), ref = _a.ref, props = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["ref"]); var rootRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var mergedRootRef = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_11__["useMergedRefs"])(rootRef, forwardedRef); var _b = useOptionsState(props), selectedIndices = _b[0], setSelectedIndices = _b[1], currentOptions = _b[2], setCurrentOptions = _b[3], suggestedDisplayValue = _b[4], setSuggestedDisplayValue = _b[5]; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ComboBoxInternal, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { hoisted: { mergedRootRef: mergedRootRef, rootRef: rootRef, selectedIndices: selectedIndices, setSelectedIndices: setSelectedIndices, currentOptions: currentOptions, setCurrentOptions: setCurrentOptions, suggestedDisplayValue: suggestedDisplayValue, setSuggestedDisplayValue: setSuggestedDisplayValue, } }))); }); ComboBox.displayName = COMPONENT_NAME; /** * Depth-first search to find the first descendant element where the match function returns true. * @param element - element to start searching at * @param match - the function that determines if the element is a match * @returns the matched element or null no match was found */ function findFirstDescendant(element, match) { var children = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_12__["getChildren"])(element); // For loop is used because forEach cannot be stopped. for (var index = 0; index < children.length; index++) { var child = children[index]; if (match(child)) { return child; } var candidate = findFirstDescendant(child, match); if (candidate) { return candidate; } } return null; } var ComboBoxInternal = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ComboBoxInternal, _super); function ComboBoxInternal(props) { var _this = _super.call(this, props) || this; /** The input aspect of the combo box */ _this._autofill = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); /** The wrapping div of the input and button */ _this._comboBoxWrapper = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); /** The callout element */ _this._comboBoxMenu = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); /** The menu item element that is currently selected */ _this._selectedElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); /** * {@inheritdoc} */ _this.focus = function (shouldOpenOnFocus, useFocusAsync) { if (_this.props.disabled) { return; } if (_this._autofill.current) { if (useFocusAsync) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["focusAsync"])(_this._autofill.current); } else { _this._autofill.current.focus(); } if (shouldOpenOnFocus) { _this.setState({ isOpen: true, }); } } // Programmatically setting focus means that there is nothing else that needs to be done // Focus is now contained if (!_this._hasFocus()) { _this.setState({ focusState: 'focused' }); } }; /** * Close menu callout if it is open */ _this.dismissMenu = function () { var isOpen = _this.state.isOpen; isOpen && _this.setState({ isOpen: false }); }; /** * componentWillReceiveProps handler for the auto fill component * Checks/updates the input value to set, if needed * @param defaultVisibleValue - the defaultVisibleValue that got passed * in to the auto fill's componentWillReceiveProps * @returns - the updated value to set, if needed */ _this._onUpdateValueInAutofillWillReceiveProps = function () { var comboBox = _this._autofill.current; if (!comboBox) { return null; } if (comboBox.value === null || comboBox.value === undefined) { return null; } return normalizeToString(_this._currentVisibleValue); }; _this._renderComboBoxWrapper = function (multiselectAccessibleText, errorMessageId) { var _a = _this.props, label = _a.label, disabled = _a.disabled, ariaLabel = _a.ariaLabel, _b = _a.ariaDescribedBy, ariaDescribedBy = _b === void 0 ? _this.props['aria-describedby'] : _b, required = _a.required, errorMessage = _a.errorMessage, buttonIconProps = _a.buttonIconProps, isButtonAriaHidden = _a.isButtonAriaHidden, title = _a.title, placeholderProp = _a.placeholder, tabIndex = _a.tabIndex, autofill = _a.autofill, iconButtonProps = _a.iconButtonProps, suggestedDisplayValue = _a.hoisted.suggestedDisplayValue; var _c = _this.state, ariaActiveDescendantValue = _c.ariaActiveDescendantValue, isOpen = _c.isOpen; // If the combo box has focus, is multiselect, and has a display string, then use that placeholder // so that the selected items don't appear to vanish. This is not ideal but it's the only reasonable way // to correct the behavior where the input is cleared so the user can type. If a full refactor is done, then this // should be removed and the multiselect combo box should behave like a picker. var placeholder = _this._hasFocus() && _this.props.multiSelect && multiselectAccessibleText ? multiselectAccessibleText : placeholderProp; var labelledBy = [_this.props['aria-labelledby'], label && _this._id + '-label'].join(' ').trim(); var labelProps = { 'aria-labelledby': labelledBy ? labelledBy : undefined, 'aria-label': ariaLabel && !label ? ariaLabel : undefined, }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { "data-ktp-target": true, ref: _this._comboBoxWrapper, id: _this._id + 'wrapper', className: _this._classNames.root, "aria-owns": isOpen ? _this._id + '-list' : undefined }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Autofill__WEBPACK_IMPORTED_MODULE_2__["Autofill"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-ktp-execute-target": true, "data-is-interactable": !disabled, componentRef: _this._autofill, id: _this._id + '-input', className: _this._classNames.input, type: "text", onFocus: _this._onFocus, onBlur: _this._onBlur, onKeyDown: _this._onInputKeyDown, onKeyUp: _this._onInputKeyUp, onClick: _this._onAutofillClick, onTouchStart: _this._onTouchStart, onInputValueChange: _this._onInputChange, "aria-expanded": isOpen, "aria-autocomplete": _this._getAriaAutoCompleteValue(), role: "combobox", readOnly: disabled }, labelProps, { "aria-describedby": errorMessage !== undefined ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["mergeAriaAttributeValues"])(ariaDescribedBy, errorMessageId) : ariaDescribedBy, "aria-activedescendant": ariaActiveDescendantValue, "aria-required": required, "aria-disabled": disabled, "aria-controls": isOpen ? _this._id + '-list' : undefined, spellCheck: false, defaultVisibleValue: _this._currentVisibleValue, suggestedDisplayValue: suggestedDisplayValue, updateValueInWillReceiveProps: _this._onUpdateValueInAutofillWillReceiveProps, shouldSelectFullInputValueInComponentDidUpdate: _this._onShouldSelectFullInputValueInAutofillComponentDidUpdate, title: title, preventValueSelection: !_this._hasFocus(), placeholder: placeholder, tabIndex: disabled ? -1 : tabIndex }, autofill)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_10__["IconButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: 'ms-ComboBox-CaretDown-button', styles: _this._getCaretButtonStyles(), role: isButtonAriaHidden ? 'presentation' : undefined, "aria-hidden": isButtonAriaHidden }, (!isButtonAriaHidden ? labelProps : undefined), { "data-is-focusable": false, tabIndex: -1, onClick: _this._onComboBoxClick, onBlur: _this._onBlur, iconProps: buttonIconProps, disabled: disabled, checked: isOpen }, iconButtonProps)))); }; /** * componentDidUpdate handler for the auto fill component * * @param defaultVisibleValue - the current defaultVisibleValue in the auto fill's componentDidUpdate * @param suggestedDisplayValue - the current suggestedDisplayValue in the auto fill's componentDidUpdate * @returns - should the full value of the input be selected? * True if the defaultVisibleValue equals the suggestedDisplayValue, false otherwise */ _this._onShouldSelectFullInputValueInAutofillComponentDidUpdate = function () { return _this._currentVisibleValue === _this.props.hoisted.suggestedDisplayValue; }; /** * Get the correct value to pass to the input * to show to the user based off of the current props and state * @returns the value to pass to the input */ _this._getVisibleValue = function () { var _a = _this.props, text = _a.text, allowFreeform = _a.allowFreeform, allowFreeInput = _a.allowFreeInput, autoComplete = _a.autoComplete, _b = _a.hoisted, suggestedDisplayValue = _b.suggestedDisplayValue, selectedIndices = _b.selectedIndices, currentOptions = _b.currentOptions; var _c = _this.state, currentPendingValueValidIndex = _c.currentPendingValueValidIndex, currentPendingValue = _c.currentPendingValue, isOpen = _c.isOpen; var currentPendingIndexValid = indexWithinBounds(currentOptions, currentPendingValueValidIndex); // If the user passed is a value prop, use that // unless we are open and have a valid current pending index if (!(isOpen && currentPendingIndexValid) && (text || text === '') && (currentPendingValue === null || currentPendingValue === undefined)) { return text; } if (_this.props.multiSelect) { // Multi-select if (_this._hasFocus()) { var index = -1; if (autoComplete === 'on' && currentPendingIndexValid) { index = currentPendingValueValidIndex; } return _this._getPendingString(currentPendingValue, currentOptions, index); } else { return _this._getMultiselectDisplayString(selectedIndices, currentOptions, suggestedDisplayValue); } } else { // Single-select var index = _this._getFirstSelectedIndex(); if (allowFreeform || allowFreeInput) { // If we are allowing freeform/free input and autocomplete is also true // and we've got a pending value that matches an option, remember // the matched option's index if (autoComplete === 'on' && currentPendingIndexValid) { index = currentPendingValueValidIndex; } // Since we are allowing freeform, if there is currently a pending value, use that // otherwise use the index determined above (falling back to '' if we did not get a valid index) return _this._getPendingString(currentPendingValue, currentOptions, index); } else { // If we are not allowing freeform and have a valid index that matches the pending value, // we know we will need some version of the pending value if (currentPendingIndexValid && autoComplete === 'on') { // If autoComplete is on, return the raw pending value, otherwise remember // the matched option's index index = currentPendingValueValidIndex; return normalizeToString(currentPendingValue); } else if (!_this.state.isOpen && currentPendingValue) { return indexWithinBounds(currentOptions, index) ? currentPendingValue : normalizeToString(suggestedDisplayValue); } else { return indexWithinBounds(currentOptions, index) ? getPreviewText(currentOptions[index]) : normalizeToString(suggestedDisplayValue); } } } }; /** * Handler for typing changes on the input * @param updatedValue - the newly changed value */ _this._onInputChange = function (updatedValue) { if (_this.props.disabled) { _this._handleInputWhenDisabled(null /* event */); return; } if (_this.props.onInputValueChange) { _this.props.onInputValueChange(updatedValue); } _this.props.allowFreeform || _this.props.allowFreeInput ? _this._processInputChangeWithFreeform(updatedValue) : _this._processInputChangeWithoutFreeform(updatedValue); }; /** * Focus (and select) the content of the input * and set the focused state */ _this._onFocus = function () { var _a, _b; (_b = (_a = _this._autofill.current) === null || _a === void 0 ? void 0 : _a.inputElement) === null || _b === void 0 ? void 0 : _b.select(); if (!_this._hasFocus()) { _this.setState({ focusState: 'focusing' }); } }; /** * Callback issued when the options should be resolved, if they have been updated or * if they need to be passed in the first time. This only does work if an onResolveOptions * callback was passed in */ _this._onResolveOptions = function () { if (_this.props.onResolveOptions) { // get the options var newOptions_1 = _this.props.onResolveOptions(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], _this.props.hoisted.currentOptions)); // Check to see if the returned value is an array, if it is update the state // If the returned value is not an array then check to see if it's a promise or PromiseLike. // If it is then resolve it asynchronously. if (Array.isArray(newOptions_1)) { _this.props.hoisted.setCurrentOptions(newOptions_1); } else if (newOptions_1 && newOptions_1.then) { // Ensure that the promise will only use the callback if it was the most recent one // and update the state when the promise returns _this._currentPromise = newOptions_1; newOptions_1.then(function (newOptionsFromPromise) { if (newOptions_1 === _this._currentPromise) { _this.props.hoisted.setCurrentOptions(newOptionsFromPromise); } }); } } }; /** * OnBlur handler. Set the focused state to false * and submit any pending value */ // eslint-disable-next-line deprecation/deprecation _this._onBlur = function (event) { var _a, _b; // Do nothing if the blur is coming from something // inside the comboBox root or the comboBox menu since // it we are not really blurring from the whole comboBox var relatedTarget = event.relatedTarget; if (event.relatedTarget === null) { // In IE11, due to lack of support, event.relatedTarget is always // null making every onBlur call to be "outside" of the ComboBox // even when it's not. Using document.activeElement is another way // for us to be able to get what the relatedTarget without relying // on the event relatedTarget = document.activeElement; } if (relatedTarget) { var isBlurFromComboBoxTitle = (_a = _this.props.hoisted.rootRef.current) === null || _a === void 0 ? void 0 : _a.contains(relatedTarget); var isBlurFromComboBoxMenu = (_b = _this._comboBoxMenu.current) === null || _b === void 0 ? void 0 : _b.contains(relatedTarget); var isBlurFromComboBoxMenuAncestor = _this._comboBoxMenu.current && Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["findElementRecursive"])(_this._comboBoxMenu.current, function (element) { return element === relatedTarget; }); if (isBlurFromComboBoxTitle || isBlurFromComboBoxMenu || isBlurFromComboBoxMenuAncestor) { if (isBlurFromComboBoxMenuAncestor && _this._hasFocus() && (!_this.props.multiSelect || _this.props.allowFreeform)) { _this._submitPendingValue(event); } event.preventDefault(); event.stopPropagation(); return; } } if (_this._hasFocus()) { _this.setState({ focusState: 'none' }); if (!_this.props.multiSelect || _this.props.allowFreeform) { _this._submitPendingValue(event); } } }; // Render Callout container and pass in list _this._onRenderContainer = function (props, defaultRender) { var onRenderList = props.onRenderList, calloutProps = props.calloutProps, dropdownWidth = props.dropdownWidth, dropdownMaxWidth = props.dropdownMaxWidth, _a = props.onRenderUpperContent, onRenderUpperContent = _a === void 0 ? _this._onRenderUpperContent : _a, _b = props.onRenderLowerContent, onRenderLowerContent = _b === void 0 ? _this._onRenderLowerContent : _b, useComboBoxAsMenuWidth = props.useComboBoxAsMenuWidth, persistMenu = props.persistMenu, _c = props.shouldRestoreFocus, shouldRestoreFocus = _c === void 0 ? true : _c; var isOpen = _this.state.isOpen; var id = _this._id; var comboBoxMenuWidth = useComboBoxAsMenuWidth && _this._comboBoxWrapper.current ? _this._comboBoxWrapper.current.clientWidth + 2 : undefined; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Callout__WEBPACK_IMPORTED_MODULE_4__["Callout"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ isBeakVisible: false, gapSpace: 0, doNotLayer: false, directionalHint: _Callout__WEBPACK_IMPORTED_MODULE_4__["DirectionalHint"].bottomLeftEdge, directionalHintFixed: false }, calloutProps, { onLayerMounted: _this._onLayerMounted, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["css"])(_this._classNames.callout, calloutProps === null || calloutProps === void 0 ? void 0 : calloutProps.className), target: _this._comboBoxWrapper.current, onDismiss: _this._onDismiss, onMouseDown: _this._onCalloutMouseDown, onScroll: _this._onScroll, setInitialFocus: false, calloutWidth: useComboBoxAsMenuWidth && _this._comboBoxWrapper.current ? comboBoxMenuWidth && comboBoxMenuWidth : dropdownWidth, calloutMaxWidth: dropdownMaxWidth ? dropdownMaxWidth : comboBoxMenuWidth, hidden: persistMenu ? !isOpen : undefined, shouldRestoreFocus: shouldRestoreFocus }), onRenderUpperContent(_this.props, _this._onRenderUpperContent), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _this._classNames.optionsContainerWrapper, ref: _this._comboBoxMenu }, onRenderList === null || onRenderList === void 0 ? void 0 : onRenderList(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { id: id }), _this._onRenderList)), onRenderLowerContent(_this.props, _this._onRenderLowerContent))); }; _this._onLayerMounted = function () { _this._onCalloutLayerMounted(); // need to call this again here to get the correct scroll parent dimensions // when the callout is first opened _this._async.setTimeout(function () { _this._scrollIntoView(); }, 0); if (_this.props.calloutProps && _this.props.calloutProps.onLayerMounted) { _this.props.calloutProps.onLayerMounted(); } }; _this._onRenderLabel = function (onRenderLabelProps) { var _a = onRenderLabelProps.props, label = _a.label, disabled = _a.disabled, required = _a.required; if (label) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Label__WEBPACK_IMPORTED_MODULE_8__["Label"], { id: _this._id + '-label', disabled: disabled, required: required, className: _this._classNames.label }, label, onRenderLabelProps.multiselectAccessibleText && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.screenReaderText }, onRenderLabelProps.multiselectAccessibleText)))); } return null; }; // Render List of items _this._onRenderList = function (props) { var _a = props.onRenderItem, onRenderItem = _a === void 0 ? _this._onRenderItem : _a, label = props.label, ariaLabel = props.ariaLabel, multiSelect = props.multiSelect; var queue = { items: [] }; var renderedList = []; var emptyQueue = function () { var newGroup = queue.id ? [ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "group", key: queue.id, "aria-labelledby": queue.id }, queue.items), ] : queue.items; renderedList = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], renderedList), newGroup); // Flush items and id queue = { items: [] }; }; var placeRenderedOptionIntoQueue = function (item, index) { /* Case Header empty queue if it's not already empty ensure unique ID for header and set queue ID push header into queue Case Divider push divider into queue if not first item empty queue if not already empty Default push item into queue */ switch (item.itemType) { case _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Header: queue.items.length > 0 && emptyQueue(); var id_1 = _this._id + item.key; queue.items.push(onRenderItem(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: id_1 }, item), { index: index }), _this._onRenderItem)); queue.id = id_1; break; case _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Divider: index > 0 && queue.items.push(onRenderItem(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index }), _this._onRenderItem)); queue.items.length > 0 && emptyQueue(); break; default: queue.items.push(onRenderItem(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index }), _this._onRenderItem)); } }; // Place options into the queue. Queue will be emptied anytime a Header or Divider is encountered props.options.forEach(function (item, index) { placeRenderedOptionIntoQueue(item, index); }); // Push remaining items into all renderedList queue.items.length > 0 && emptyQueue(); var id = _this._id; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: id + '-list', className: _this._classNames.optionsContainer, "aria-labelledby": label && id + '-label', "aria-label": ariaLabel && !label ? ariaLabel : undefined, "aria-multiselectable": multiSelect ? 'true' : undefined, role: "listbox" }, renderedList)); }; // Render items _this._onRenderItem = function (item) { switch (item.itemType) { case _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Divider: return _this._renderSeparator(item); case _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Header: return _this._renderHeader(item); default: return _this._renderOption(item); } }; // Default _onRenderLowerContent function returns nothing _this._onRenderLowerContent = function () { return null; }; // Default _onRenderUpperContent function returns nothing _this._onRenderUpperContent = function () { return null; }; _this._renderOption = function (item) { var _a; var _b = _this.props.onRenderOption, onRenderOption = _b === void 0 ? _this._onRenderOptionContent : _b; var id = (_a = item.id) !== null && _a !== void 0 ? _a : _this._id + '-list' + item.index; var isSelected = _this._isOptionSelected(item.index); var isChecked = _this._isOptionChecked(item.index); var isIndeterminate = _this._isOptionIndeterminate(item.index); var optionStyles = _this._getCurrentOptionStyles(item); var optionClassNames = Object(_ComboBox_classNames__WEBPACK_IMPORTED_MODULE_7__["getComboBoxOptionClassNames"])(_this._getCurrentOptionStyles(item)); var title = item.title; var getOptionComponent = function () { return !_this.props.multiSelect ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_10__["CommandButton"], { id: id, key: item.key, "data-index": item.index, styles: optionStyles, checked: isSelected, className: 'ms-ComboBox-option', onClick: _this._onItemClick(item), // eslint-disable-next-line react/jsx-no-bind onMouseEnter: _this._onOptionMouseEnter.bind(_this, item.index), // eslint-disable-next-line react/jsx-no-bind onMouseMove: _this._onOptionMouseMove.bind(_this, item.index), onMouseLeave: _this._onOptionMouseLeave, role: "option", "aria-selected": isSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, disabled: item.disabled, title: title }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: optionClassNames.optionTextWrapper, ref: isSelected ? _this._selectedElement : undefined }, onRenderOption(item, _this._onRenderOptionContent)))) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Checkbox__WEBPACK_IMPORTED_MODULE_5__["Checkbox"], { id: id, ariaLabel: item.ariaLabel, ariaLabelledBy: item.ariaLabel ? undefined : id + '-label', key: item.key, styles: optionStyles, className: 'ms-ComboBox-option', onChange: _this._onItemClick(item), label: item.text, checked: isChecked, indeterminate: isIndeterminate, title: title, disabled: item.disabled, // eslint-disable-next-line react/jsx-no-bind onRenderLabel: _this._renderCheckboxLabel.bind(_this, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { id: id + '-label' })), inputProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ // aria-selected should only be applied to checked items, not hovered items 'aria-selected': isChecked ? 'true' : 'false', role: 'option' }, { 'data-index': item.index, 'data-is-focusable': true, }) })); }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ComboBoxOptionWrapper, { key: item.key, index: item.index, disabled: item.disabled, isSelected: isSelected, isChecked: isChecked, isIndeterminate: isIndeterminate, text: item.text, // eslint-disable-next-line react/jsx-no-bind render: getOptionComponent, data: item.data })); }; /** * Mouse clicks to headers, dividers and scrollbar should not make input lose focus */ _this._onCalloutMouseDown = function (ev) { ev.preventDefault(); }; /** * Scroll handler for the callout to make sure the mouse events * for updating focus are not interacting during scroll */ _this._onScroll = function () { var _a; if (!_this._isScrollIdle && _this._scrollIdleTimeoutId !== undefined) { _this._async.clearTimeout(_this._scrollIdleTimeoutId); _this._scrollIdleTimeoutId = undefined; } else { _this._isScrollIdle = false; } if ((_a = _this.props.calloutProps) === null || _a === void 0 ? void 0 : _a.onScroll) { _this.props.calloutProps.onScroll(); } _this._scrollIdleTimeoutId = _this._async.setTimeout(function () { _this._isScrollIdle = true; }, ScrollIdleDelay); }; _this._onRenderOptionContent = function (item) { var optionClassNames = Object(_ComboBox_classNames__WEBPACK_IMPORTED_MODULE_7__["getComboBoxOptionClassNames"])(_this._getCurrentOptionStyles(item)); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: optionClassNames.optionText }, item.text); }; /* * Render content of a multiselect item label. * Text within the label is aria-hidden, to prevent duplicate input/label exposure */ _this._onRenderMultiselectOptionContent = function (item) { var optionClassNames = Object(_ComboBox_classNames__WEBPACK_IMPORTED_MODULE_7__["getComboBoxOptionClassNames"])(_this._getCurrentOptionStyles(item)); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: item.id, "aria-hidden": "true", className: optionClassNames.optionText }, item.text)); }; /** * Handles dismissing (cancelling) the menu */ _this._onDismiss = function () { var onMenuDismiss = _this.props.onMenuDismiss; if (onMenuDismiss) { onMenuDismiss(); } // In persistMode we need to simulate callout layer mount // since that only happens once. We do it on dismiss since // it works either way. if (_this.props.persistMenu) { _this._onCalloutLayerMounted(); } // close the menu _this._setOpenStateAndFocusOnClose(false /* isOpen */, false /* focusInputAfterClose */); // reset the selected index // to the last value state _this._resetSelectedIndex(); }; _this._onAfterClearPendingInfo = function () { _this._processingClearPendingInfo = false; }; /** * Handle keydown on the input * @param ev - The keyboard event that was fired */ _this._onInputKeyDown = function (ev) { var _a = _this.props, disabled = _a.disabled, allowFreeform = _a.allowFreeform, allowFreeInput = _a.allowFreeInput, autoComplete = _a.autoComplete, currentOptions = _a.hoisted.currentOptions; var _b = _this.state, isOpen = _b.isOpen, currentPendingValueValidIndexOnHover = _b.currentPendingValueValidIndexOnHover; // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in _onInputKeyUp for reasoning. _this._lastKeyDownWasAltOrMeta = isAltOrMeta(ev); if (disabled) { _this._handleInputWhenDisabled(ev); return; } var index = _this._getPendingSelectedIndex(false /* includeCurrentPendingValue */); // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].enter: if (_this._autofill.current && _this._autofill.current.inputElement) { _this._autofill.current.inputElement.select(); } _this._submitPendingValue(ev); if (_this.props.multiSelect && isOpen) { _this.setState({ currentPendingValueValidIndex: index, }); } else { // On enter submit the pending value if (isOpen || ((!allowFreeform || _this.state.currentPendingValue === undefined || _this.state.currentPendingValue === null || _this.state.currentPendingValue.length <= 0) && _this.state.currentPendingValueValidIndex < 0)) { // if we are open or // if we are not allowing freeform or // our we have no pending value // and no valid pending index // flip the open state _this.setState({ isOpen: !isOpen, }); } } break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].tab: // On enter submit the pending value if (!_this.props.multiSelect) { _this._submitPendingValue(ev); } // If we are not allowing freeform // or the combo box is open, flip the open state if (isOpen) { _this._setOpenStateAndFocusOnClose(!isOpen, false /* focusInputAfterClose */); } // Allow TAB to propagate return; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].escape: // reset the selected index _this._resetSelectedIndex(); // Close the menu if opened if (isOpen) { _this.setState({ isOpen: false, }); } else { return; } break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].up: // if we are in clearAll state (e.g. the user as hovering // and has since mousedOut of the menu items), // go to the last index if (currentPendingValueValidIndexOnHover === HoverStatus.clearAll) { index = _this.props.hoisted.currentOptions.length; } if (ev.altKey || ev.metaKey) { // Close the menu if it is open and break so // that the event get stopPropagation and prevent default. // Otherwise, we need to let the event continue to propagate if (isOpen) { _this._setOpenStateAndFocusOnClose(!isOpen, true /* focusInputAfterClose */); break; } return; } // do not scroll page ev.preventDefault(); // Go to the previous option _this._setPendingInfoFromIndexAndDirection(index, SearchDirection.backward); break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].down: // Expand the combo box on ALT + DownArrow if (ev.altKey || ev.metaKey) { _this._setOpenStateAndFocusOnClose(true /* isOpen */, true /* focusInputAfterClose */); } else { // if we are in clearAll state (e.g. the user as hovering // and has since mousedOut of the menu items), // go to the first index if (currentPendingValueValidIndexOnHover === HoverStatus.clearAll) { index = -1; } // do not scroll page ev.preventDefault(); // Got to the next option _this._setPendingInfoFromIndexAndDirection(index, SearchDirection.forward); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].home: case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].end: if (allowFreeform || allowFreeInput) { return; } // Set the initial values to respond to HOME // which goes to the first selectable option index = -1; var directionToSearch = SearchDirection.forward; // If end, update the values to respond to END // which goes to the last selectable option // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].end) { index = currentOptions.length; directionToSearch = SearchDirection.backward; } _this._setPendingInfoFromIndexAndDirection(index, directionToSearch); break; /* eslint-disable no-fallthrough */ case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].space: // event handled in _onComboBoxKeyUp if (!allowFreeform && !allowFreeInput && autoComplete === 'off') { break; } default: /* eslint-enable no-fallthrough */ // are we processing a function key? if so bail out // eslint-disable-next-line deprecation/deprecation if (ev.which >= 112 /* F1 */ && ev.which <= 123 /* F12 */) { return; } // If we get here and we got either and ALT key // or meta key, let the event propagate // eslint-disable-next-line deprecation/deprecation if (ev.keyCode === _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].alt || ev.key === 'Meta' /* && isOpen */) { return; } // If we are not allowing freeform or free input and // allowing autoComplete, handle the input here if (!allowFreeform && !allowFreeInput && autoComplete === 'on') { _this._onInputChange(ev.key); break; } // allow the key to propagate by default return; } ev.stopPropagation(); ev.preventDefault(); }; /** * Handle keyup on the input * @param ev - the keyboard event that was fired */ _this._onInputKeyUp = function (ev) { var _a = _this.props, disabled = _a.disabled, allowFreeform = _a.allowFreeform, allowFreeInput = _a.allowFreeInput, autoComplete = _a.autoComplete; var isOpen = _this.state.isOpen; // We close the menu on key up only if ALL of the following are true: // - Most recent key down was alt or meta (command) // - The alt/meta key down was NOT followed by some other key (such as down/up arrow to // expand/collapse the menu) // - We're not on a Mac (or iOS) // This is because on Windows, pressing alt moves focus to the application menu bar or similar, // closing any open context menus. There is not a similar behavior on Macs. var keyPressIsAltOrMetaAlone = _this._lastKeyDownWasAltOrMeta && isAltOrMeta(ev); _this._lastKeyDownWasAltOrMeta = false; var shouldHandleKey = keyPressIsAltOrMetaAlone && !(Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["isMac"])() || Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["isIOS"])()); if (disabled) { _this._handleInputWhenDisabled(ev); return; } // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].space: // If we are not allowing freeform or free input, and autoComplete is off // make space expand/collapse the combo box // and allow the event to propagate if (!allowFreeform && !allowFreeInput && autoComplete === 'off') { _this._setOpenStateAndFocusOnClose(!isOpen, !!isOpen); } return; default: if (shouldHandleKey && isOpen) { _this._setOpenStateAndFocusOnClose(!isOpen, true /* focusInputAfterClose */); } else { if (_this.state.focusState === 'focusing' && _this.props.openOnKeyboardFocus) { _this.setState({ isOpen: true }); } if (_this.state.focusState !== 'focused') { _this.setState({ focusState: 'focused' }); } } return; } }; _this._onOptionMouseLeave = function () { if (_this._shouldIgnoreMouseEvent()) { return; } // Ignore the event in persistMenu mode if the callout has // closed. This is to avoid clearing the visuals on item click. if (_this.props.persistMenu && !_this.state.isOpen) { return; } _this.setState({ currentPendingValueValidIndexOnHover: HoverStatus.clearAll, }); }; /** * Click handler for the button of the combo box and the input when not allowing freeform. * This toggles the expand/collapse state of the combo box (if enabled). */ _this._onComboBoxClick = function () { var disabled = _this.props.disabled; var isOpen = _this.state.isOpen; if (!disabled) { _this._setOpenStateAndFocusOnClose(!isOpen, false /* focusInputAfterClose */); _this.setState({ focusState: 'focused' }); } }; /** * Click handler for the autofill. */ _this._onAutofillClick = function () { var _a = _this.props, disabled = _a.disabled, allowFreeform = _a.allowFreeform; if (allowFreeform && !disabled) { _this.focus(_this.state.isOpen || _this._processingTouch); } else { _this._onComboBoxClick(); } }; _this._onTouchStart = function () { if (_this._comboBoxWrapper.current && !('onpointerdown' in _this._comboBoxWrapper)) { _this._handleTouchAndPointerEvent(); } }; _this._onPointerDown = function (ev) { if (ev.pointerType === 'touch') { _this._handleTouchAndPointerEvent(); ev.preventDefault(); ev.stopImmediatePropagation(); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["initializeComponentRef"])(_this); _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_3__["Async"](_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_3__["EventGroup"](_this); Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["warnMutuallyExclusive"])(COMPONENT_NAME, props, { defaultSelectedKey: 'selectedKey', text: 'defaultSelectedKey', selectedKey: 'value', dropdownWidth: 'useComboBoxAsMenuWidth', ariaLabel: 'label', }); _this._id = props.id || Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getId"])('ComboBox'); _this._isScrollIdle = true; _this._processingTouch = false; _this._gotMouseMove = false; _this._processingClearPendingInfo = false; _this.state = { isOpen: false, focusState: 'none', currentPendingValueValidIndex: -1, currentPendingValue: undefined, currentPendingValueValidIndexOnHover: HoverStatus.default, }; return _this; } Object.defineProperty(ComboBoxInternal.prototype, "selectedOptions", { /** * All selected options */ get: function () { var _a = this.props.hoisted, currentOptions = _a.currentOptions, selectedIndices = _a.selectedIndices; return Object(_SelectableOption__WEBPACK_IMPORTED_MODULE_9__["getAllSelectedOptions"])(currentOptions, selectedIndices); }, enumerable: false, configurable: true }); ComboBoxInternal.prototype.componentDidMount = function () { if (this._comboBoxWrapper.current && !this.props.disabled) { // hook up resolving the options if needed on focus this._events.on(this._comboBoxWrapper.current, 'focus', this._onResolveOptions, true); if ('onpointerdown' in this._comboBoxWrapper.current) { // For ComboBoxes, touching anywhere in the combo box should drop the dropdown, including the input element. // This gives more hit target space for touch environments. We're setting the onpointerdown here, because React // does not support Pointer events yet. this._events.on(this._comboBoxWrapper.current, 'pointerdown', this._onPointerDown, true); } } }; ComboBoxInternal.prototype.componentDidUpdate = function (prevProps, prevState) { var _this = this; var _a, _b, _c; var _d = this.props, allowFreeform = _d.allowFreeform, allowFreeInput = _d.allowFreeInput, text = _d.text, onMenuOpen = _d.onMenuOpen, onMenuDismissed = _d.onMenuDismissed, _e = _d.hoisted, currentOptions = _e.currentOptions, selectedIndices = _e.selectedIndices; var _f = this.state, currentPendingValue = _f.currentPendingValue, currentPendingValueValidIndex = _f.currentPendingValueValidIndex, isOpen = _f.isOpen; // If we are newly open or are open and the pending valid index changed, // make sure the currently selected/pending option is scrolled into view if (isOpen && (!prevState.isOpen || prevState.currentPendingValueValidIndex !== currentPendingValueValidIndex)) { // Need this timeout so that the selectedElement ref is correctly updated this._async.setTimeout(function () { return _this._scrollIntoView(); }, 0); } // if an action is taken that put focus in the ComboBox // and If we are open or we are just closed, shouldFocusAfterClose is set, // but we are not the activeElement set focus on the input if (this._hasFocus() && (isOpen || (prevState.isOpen && !isOpen && this._focusInputAfterClose && this._autofill.current && document.activeElement !== this._autofill.current.inputElement))) { this.focus(undefined /*shouldOpenOnFocus*/, true /*useFocusAsync*/); } // If we should focusAfterClose AND // just opened/closed the menu OR // are focused AND // updated the selectedIndex with the menu closed OR // are not allowing freeform or free input OR // the value changed // we need to set selection if (this._focusInputAfterClose && ((prevState.isOpen && !isOpen) || (this._hasFocus() && ((!isOpen && !this.props.multiSelect && prevProps.hoisted.selectedIndices && selectedIndices && prevProps.hoisted.selectedIndices[0] !== selectedIndices[0]) || (!allowFreeform && !allowFreeInput) || text !== prevProps.text)))) { this._onFocus(); } this._notifyPendingValueChanged(prevState); if (isOpen && !prevState.isOpen && onMenuOpen) { onMenuOpen(); } if (!isOpen && prevState.isOpen && onMenuDismissed) { onMenuDismissed(); } var newCurrentPendingValueValidIndex = currentPendingValueValidIndex; var options = currentOptions.map(function (item, index) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index })); }); // If currentOptions differs from the previous currentOptions we need to update the currentPendingValueValidIndex // otherwise, it will be out of sync with the currentOptions. This can happen when the options are filtered. if (!Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["shallowCompare"])(prevProps.hoisted.currentOptions, currentOptions) && currentPendingValue) { newCurrentPendingValueValidIndex = this.props.allowFreeform || this.props.allowFreeInput ? this._processInputChangeWithFreeform(currentPendingValue) : this._updateAutocompleteIndexWithoutFreeform(currentPendingValue); } var descendantText = undefined; if (isOpen && selectedIndices.length) { descendantText = (_b = (_a = options[selectedIndices[0]]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : this._id + '-list' + selectedIndices[0]; } else if (isOpen && this._hasFocus() && newCurrentPendingValueValidIndex !== -1) { descendantText = (_c = options[newCurrentPendingValueValidIndex].id) !== null && _c !== void 0 ? _c : this._id + '-list' + newCurrentPendingValueValidIndex; } if (descendantText !== this.state.ariaActiveDescendantValue) { this.setState({ ariaActiveDescendantValue: descendantText, }); } }; ComboBoxInternal.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; // Primary Render ComboBoxInternal.prototype.render = function () { var id = this._id; var errorMessageId = id + '-error'; var _a = this.props, className = _a.className, disabled = _a.disabled, required = _a.required, errorMessage = _a.errorMessage, _b = _a.onRenderContainer, onRenderContainer = _b === void 0 ? this._onRenderContainer : _b, _c = _a.onRenderLabel, onRenderLabel = _c === void 0 ? this._onRenderLabel : _c, _d = _a.onRenderList, onRenderList = _d === void 0 ? this._onRenderList : _d, _e = _a.onRenderItem, onRenderItem = _e === void 0 ? this._onRenderItem : _e, _f = _a.onRenderOption, onRenderOption = _f === void 0 ? this._onRenderOptionContent : _f, allowFreeform = _a.allowFreeform, customStyles = _a.styles, theme = _a.theme, persistMenu = _a.persistMenu, multiSelect = _a.multiSelect, _g = _a.hoisted, suggestedDisplayValue = _g.suggestedDisplayValue, selectedIndices = _g.selectedIndices, currentOptions = _g.currentOptions; var isOpen = this.state.isOpen; this._currentVisibleValue = this._getVisibleValue(); // Single select is already accessible since the whole text is selected // when focus enters the input. Since multiselect appears to clear the input // it needs special accessible text var multiselectAccessibleText = multiSelect ? this._getMultiselectDisplayString(selectedIndices, currentOptions, suggestedDisplayValue) : undefined; var divProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getNativeProps"])(this.props, _Utilities__WEBPACK_IMPORTED_MODULE_3__["divProperties"], [ 'onChange', 'value', 'aria-describedby', 'aria-labelledby', ]); var hasErrorMessage = errorMessage && errorMessage.length > 0 ? true : false; this._classNames = this.props.getClassNames ? this.props.getClassNames(theme, !!isOpen, !!disabled, !!required, !!this._hasFocus(), !!allowFreeform, !!hasErrorMessage, className) : Object(_ComboBox_classNames__WEBPACK_IMPORTED_MODULE_7__["getClassNames"])(Object(_ComboBox_styles__WEBPACK_IMPORTED_MODULE_6__["getStyles"])(theme, customStyles), className, !!isOpen, !!disabled, !!required, !!this._hasFocus(), !!allowFreeform, !!hasErrorMessage); var comboBoxWrapper = this._renderComboBoxWrapper(multiselectAccessibleText, errorMessageId); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, divProps, { ref: this.props.hoisted.mergedRootRef, className: this._classNames.container }), onRenderLabel({ props: this.props, multiselectAccessibleText: multiselectAccessibleText }, this._onRenderLabel), comboBoxWrapper, (persistMenu || isOpen) && onRenderContainer(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props), { onRenderList: onRenderList, onRenderItem: onRenderItem, onRenderOption: onRenderOption, options: currentOptions.map(function (item, index) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index })); }), onDismiss: this._onDismiss }), this._onRenderContainer), hasErrorMessage && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "alert", id: errorMessageId, className: this._classNames.errorMessage }, errorMessage)))); }; ComboBoxInternal.prototype._getPendingString = function (currentPendingValue, currentOptions, index) { return currentPendingValue !== null && currentPendingValue !== undefined ? currentPendingValue : indexWithinBounds(currentOptions, index) ? getPreviewText(currentOptions[index]) : ''; }; /** * Returns a string that concatenates all of the selected values * for multiselect combo box. */ ComboBoxInternal.prototype._getMultiselectDisplayString = function (selectedIndices, currentOptions, suggestedDisplayValue) { var displayValues = []; for (var idx = 0; selectedIndices && idx < selectedIndices.length; idx++) { var index = selectedIndices[idx]; if (currentOptions[index].itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll) { displayValues.push(indexWithinBounds(currentOptions, index) ? currentOptions[index].text : normalizeToString(suggestedDisplayValue)); } } var _a = this.props.multiSelectDelimiter, multiSelectDelimiter = _a === void 0 ? ', ' : _a; return displayValues.join(multiSelectDelimiter); }; /** * Process the new input's new value when the combo box allows freeform entry * @param updatedValue - the input's newly changed value * @returns the index of the matched option, -1 if no match was found */ ComboBoxInternal.prototype._processInputChangeWithFreeform = function (updatedValue) { var currentOptions = this.props.hoisted.currentOptions; var newCurrentPendingValueValidIndex = -1; // if the new value is empty, see if we have an exact match and then set the pending info if (updatedValue === '') { var items = currentOptions .map(function (item, index) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && getPreviewText(option) === updatedValue; }); // if we found a match remember the index if (items.length === 1) { newCurrentPendingValueValidIndex = items[0].index; } this._setPendingInfo(updatedValue, newCurrentPendingValueValidIndex, updatedValue); return newCurrentPendingValueValidIndex; } // Remember the original value and then make the value lowercase for comparison var originalUpdatedValue = updatedValue; updatedValue = updatedValue.toLocaleLowerCase(); var newSuggestedDisplayValue = ''; // If autoComplete is on, attempt to find a match from the available options if (this.props.autoComplete === 'on') { // If autoComplete is on, attempt to find a match where the text of an option starts with the updated value var items = currentOptions .map(function (item, index) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && getPreviewText(option).toLocaleLowerCase().indexOf(updatedValue) === 0; }); if (items.length > 0) { // use ariaLabel as the value when the option is set var text = getPreviewText(items[0]); // If the user typed out the complete option text, we don't need any suggested display text anymore newSuggestedDisplayValue = text.toLocaleLowerCase() !== updatedValue ? text : ''; // remember the index of the match we found newCurrentPendingValueValidIndex = items[0].index; } } else { // If autoComplete is off, attempt to find a match only when the value is exactly equal to the text of an option var items = currentOptions .map(function (item, index) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && getPreviewText(option).toLocaleLowerCase() === updatedValue; }); // if we found a match remember the index if (items.length === 1) { newCurrentPendingValueValidIndex = items[0].index; } } // Set the updated state this._setPendingInfo(originalUpdatedValue, newCurrentPendingValueValidIndex, newSuggestedDisplayValue); return newCurrentPendingValueValidIndex; }; /** * Process the new input's new value when the combo box does not allow freeform entry * @param updatedValue - the input's newly changed value * @returns the index of the matched option */ ComboBoxInternal.prototype._processInputChangeWithoutFreeform = function (updatedValue) { var _this = this; var _a = this.state, currentPendingValue = _a.currentPendingValue, currentPendingValueValidIndex = _a.currentPendingValueValidIndex; if (this.props.autoComplete === 'on') { // If autoComplete is on while allow freeform is off, // we will remember the key press and build up a string to attempt to match // as long as characters are typed within a the timeout span of each other, // otherwise we will clear the string and start building a new one on the next keypress. // Also, only do this processing if we have a non-empty value if (updatedValue !== '') { // If we have a pending autocomplete clearing task, // we know that the user is typing with key press happening // within the timeout of each other so remove the clearing task // and continue building the pending value with the updated value if (this._autoCompleteTimeout) { this._async.clearTimeout(this._autoCompleteTimeout); this._autoCompleteTimeout = undefined; updatedValue = normalizeToString(currentPendingValue) + updatedValue; } var matchingIndex = this._updateAutocompleteIndexWithoutFreeform(updatedValue); // Schedule a timeout to clear the pending value after the timeout span this._autoCompleteTimeout = this._async.setTimeout(function () { _this._autoCompleteTimeout = undefined; }, ReadOnlyPendingAutoCompleteTimeout); return matchingIndex; } } // If we get here, autoComplete is off. // Remember we are not allowing freeform, so at this point, if we have a pending valid value index // use that; otherwise use the selectedIndex var index = currentPendingValueValidIndex >= 0 ? currentPendingValueValidIndex : this._getFirstSelectedIndex(); // Since we are not allowing freeform, we need to // set both the pending and suggested values/index // to allow us to select all content in the input to // give the illusion that we are readonly (e.g. freeform off) this._setPendingInfoFromIndex(index); return index; }; ComboBoxInternal.prototype._updateAutocompleteIndexWithoutFreeform = function (updatedValue) { var currentOptions = this.props.hoisted.currentOptions; var originalUpdatedValue = updatedValue; updatedValue = updatedValue.toLocaleLowerCase(); // If autoComplete is on, attempt to find a match where the text of an option starts with the updated value var items = currentOptions .map(function (item, i) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: i })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && option.text.toLocaleLowerCase().indexOf(updatedValue) === 0; }); // If we found a match, update the state if (items.length > 0) { this._setPendingInfo(originalUpdatedValue, items[0].index, getPreviewText(items[0])); return items[0].index; } return -1; }; ComboBoxInternal.prototype._getFirstSelectedIndex = function () { var selectedIndices = this.props.hoisted.selectedIndices; return (selectedIndices === null || selectedIndices === void 0 ? void 0 : selectedIndices.length) ? selectedIndices[0] : -1; }; /** * Walk along the options starting at the index, stepping by the delta (positive or negative) * looking for the next valid selectable index (e.g. skipping headings and dividers) * @param index - the index to get the next selectable index from * @param delta - optional delta to step by when finding the next index, defaults to 0 * @returns - the next valid selectable index. If the new index is outside of the bounds, * it will snap to the edge of the options array. If delta == 0 and the given index is not selectable */ ComboBoxInternal.prototype._getNextSelectableIndex = function (index, searchDirection) { var currentOptions = this.props.hoisted.currentOptions; var newIndex = index + searchDirection; newIndex = Math.max(0, Math.min(currentOptions.length - 1, newIndex)); if (!indexWithinBounds(currentOptions, newIndex)) { return -1; } var option = currentOptions[newIndex]; if (!isSelectableOption(option) || option.hidden === true) { // Should we continue looking for an index to select? if (searchDirection !== SearchDirection.none && ((newIndex > 0 && searchDirection < SearchDirection.none) || (newIndex >= 0 && newIndex < currentOptions.length && searchDirection > SearchDirection.none))) { newIndex = this._getNextSelectableIndex(newIndex, searchDirection); } else { // If we cannot perform a useful search just return the index we were given return index; } } // We have the next valid selectable index, return it return newIndex; }; /** * Set the selected index. Note, this is * the "real" selected index, not the pending selected index * @param index - the index to set (or the index to set from if a search direction is provided) * @param searchDirection - the direction to search along the options from the given index */ ComboBoxInternal.prototype._setSelectedIndex = function (index, submitPendingValueEvent, searchDirection) { if (searchDirection === void 0) { searchDirection = SearchDirection.none; } var _a = this.props, onChange = _a.onChange, onPendingValueChanged = _a.onPendingValueChanged, _b = _a.hoisted, initialIndices = _b.selectedIndices, currentOptions = _b.currentOptions; // Clone currentOptions and selectedIndices so we don't mutate state var selectedIndices = initialIndices ? initialIndices.slice() : []; var changedOptions = currentOptions.slice(); // Find the next selectable index, if searchDirection is none // we will get our starting index back index = this._getNextSelectableIndex(index, searchDirection); if (!indexWithinBounds(currentOptions, index)) { return; } // Are we at a new index? If so, update the state, otherwise // there is nothing to do if (this.props.multiSelect || selectedIndices.length < 1 || (selectedIndices.length === 1 && selectedIndices[0] !== index)) { var option = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, currentOptions[index]); // if option doesn't existing, or option is disabled, we noop if (!option || option.disabled) { return; } if (this.props.multiSelect) { // Setting the initial state of option.selected in Multi-select combo box by checking the // selectedIndices array and overriding the undefined issue option.selected = option.selected !== undefined ? !option.selected : selectedIndices.indexOf(index) < 0; // handle changing all options if SelectAll is changed if (option.itemType === _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll) { selectedIndices = []; // if select all is set to checked, push all selectable option indices if (option.selected) { currentOptions.forEach(function (currentOption, i) { if (!currentOption.disabled && isSelectableOption(currentOption)) { selectedIndices.push(i); changedOptions[i] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, currentOption), { selected: true }); } }); } // otherwise un-check all options else { changedOptions = currentOptions.map(function (currentOption) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, currentOption), { selected: false })); }); } } // otherwise update the individual option else { if (option.selected && selectedIndices.indexOf(index) < 0) { selectedIndices.push(index); } else if (!option.selected && selectedIndices.indexOf(index) >= 0) { selectedIndices = selectedIndices.filter(function (value) { return value !== index; }); } changedOptions[index] = option; // If SelectAll exists and another option was toggled, update the SelectAll option's state var selectAllOption = changedOptions.filter(function (o) { return o.itemType === _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll; })[0]; if (selectAllOption) { var selectAllState = this._isSelectAllChecked(selectedIndices); var selectAllIndex_1 = changedOptions.indexOf(selectAllOption); if (selectAllState) { selectedIndices.push(selectAllIndex_1); changedOptions[selectAllIndex_1] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, selectAllOption), { selected: true }); } else { selectedIndices = selectedIndices.filter(function (value) { return value !== selectAllIndex_1; }); changedOptions[selectAllIndex_1] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, selectAllOption), { selected: false }); } } } } else { selectedIndices[0] = index; } submitPendingValueEvent.persist(); // Only setState if combo box is uncontrolled. if (this.props.selectedKey || this.props.selectedKey === null) { // If combo box value is changed, revert preview first if (this._hasPendingValue && onPendingValueChanged) { onPendingValueChanged(); this._hasPendingValue = false; } } else { this.props.hoisted.setSelectedIndices(selectedIndices); this.props.hoisted.setCurrentOptions(changedOptions); // If ComboBox value is changed, revert preview first if (this._hasPendingValue && onPendingValueChanged) { onPendingValueChanged(); this._hasPendingValue = false; } } // Call onChange after state is updated if (onChange) { onChange(submitPendingValueEvent, option, index, getPreviewText(option)); } } if (this.props.multiSelect && this.state.isOpen) { return; } // clear all of the pending info this._clearPendingInfo(); }; /** * Submit a pending value if there is one */ ComboBoxInternal.prototype._submitPendingValue = function (submitPendingValueEvent) { var _a; var _b = this.props, onChange = _b.onChange, allowFreeform = _b.allowFreeform, autoComplete = _b.autoComplete, multiSelect = _b.multiSelect, hoisted = _b.hoisted; var currentOptions = hoisted.currentOptions; var _c = this.state, currentPendingValue = _c.currentPendingValue, currentPendingValueValidIndex = _c.currentPendingValueValidIndex, currentPendingValueValidIndexOnHover = _c.currentPendingValueValidIndexOnHover; var selectedIndices = this.props.hoisted.selectedIndices; // Do not submit any pending value if we // have already initiated clearing the pending info if (this._processingClearPendingInfo) { return; } // If we allow freeform we need to handle that if (allowFreeform) { // if currentPendingValue is null or undefined the user did not submit anything // (not even empty because we would have stored that as the pending value) if (currentPendingValue === null || currentPendingValue === undefined) { // if a user did not type anything they may just hovered over an item if (currentPendingValueValidIndexOnHover >= 0) { this._setSelectedIndex(currentPendingValueValidIndexOnHover, submitPendingValueEvent); this._clearPendingInfo(); } return; } // Check to see if the user typed an exact match if (indexWithinBounds(currentOptions, currentPendingValueValidIndex)) { var pendingOptionText = getPreviewText(currentOptions[currentPendingValueValidIndex]).toLocaleLowerCase(); var autofill = this._autofill.current; // By exact match, that means: our pending value is the same as the pending option text OR // the pending option starts with the pending value and we have an "autoComplete" selection // where the total length is equal to pending option length OR // the live value in the underlying input matches the pending option; update the state if (currentPendingValue.toLocaleLowerCase() === pendingOptionText || (autoComplete && pendingOptionText.indexOf(currentPendingValue.toLocaleLowerCase()) === 0 && (autofill === null || autofill === void 0 ? void 0 : autofill.isValueSelected) && currentPendingValue.length + (autofill.selectionEnd - autofill.selectionStart) === pendingOptionText.length) || ((_a = autofill === null || autofill === void 0 ? void 0 : autofill.inputElement) === null || _a === void 0 ? void 0 : _a.value.toLocaleLowerCase()) === pendingOptionText) { this._setSelectedIndex(currentPendingValueValidIndex, submitPendingValueEvent); if (multiSelect && this.state.isOpen) { return; } this._clearPendingInfo(); return; } } if (onChange) { if (onChange) { // trigger onChange to clear value onChange(submitPendingValueEvent, undefined, undefined, currentPendingValue); } } else { // If we are not controlled, create a new selected option var newOption = { key: currentPendingValue || Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getId"])(), text: normalizeToString(currentPendingValue), }; // If it's multiselect, set selected state to true if (multiSelect) { newOption.selected = true; } var newOptions = currentOptions.concat([newOption]); if (selectedIndices) { if (!multiSelect) { selectedIndices = []; } selectedIndices.push(newOptions.length - 1); } hoisted.setCurrentOptions(newOptions); hoisted.setSelectedIndices(selectedIndices); } } else if (currentPendingValueValidIndex >= 0) { // Since we are not allowing freeform, we must have a matching // to be able to update state this._setSelectedIndex(currentPendingValueValidIndex, submitPendingValueEvent); } else if (currentPendingValueValidIndexOnHover >= 0) { // If all else failed and we were hovering over an item, select it this._setSelectedIndex(currentPendingValueValidIndexOnHover, submitPendingValueEvent); } // Finally, clear the pending info this._clearPendingInfo(); }; ComboBoxInternal.prototype._onCalloutLayerMounted = function () { // In persistMenu mode _onLayerMounted is only called once for the lifetime // of the component. Any functionality required for callout "on mount" can // go here so that we can also call it again during callout dismissal to reset // object state. this._gotMouseMove = false; }; // Render separator ComboBoxInternal.prototype._renderSeparator = function (item) { var index = item.index, key = item.key; if (index && index > 0) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "separator", key: key, className: this._classNames.divider }); } return null; }; ComboBoxInternal.prototype._renderHeader = function (item) { var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderOptionContent : _a; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: item.id, key: item.key, className: this._classNames.header }, onRenderOption(item, this._onRenderOptionContent))); }; ComboBoxInternal.prototype._renderCheckboxLabel = function (item) { var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderMultiselectOptionContent : _a; return onRenderOption(item, this._onRenderMultiselectOptionContent); }; /** * If we are coming from a mouseOut: * there is no visible selected option. * * Else if We are hovering over an item: * that gets the selected look. * * Else: * Use the current valid pending index if it exists OR * we do not have a valid index and we currently have a pending input value, * otherwise use the selected index * */ ComboBoxInternal.prototype._isOptionHighlighted = function (index) { var currentPendingValueValidIndexOnHover = this.state.currentPendingValueValidIndexOnHover; // If the hover state is set to clearAll, don't show a selected index. // Note, this happens when the user moused out of the menu items if (currentPendingValueValidIndexOnHover === HoverStatus.clearAll) { return false; } return currentPendingValueValidIndexOnHover >= 0 ? currentPendingValueValidIndexOnHover === index : this._isOptionSelected(index); }; ComboBoxInternal.prototype._isOptionSelected = function (index) { return this._getPendingSelectedIndex(true /* includePendingValue */) === index; }; ComboBoxInternal.prototype._isOptionChecked = function (index) { if (this.props.multiSelect && index !== undefined && this.props.hoisted.selectedIndices) { var idxOfSelectedIndex = -1; idxOfSelectedIndex = this.props.hoisted.selectedIndices.indexOf(index); return idxOfSelectedIndex >= 0; } return false; }; ComboBoxInternal.prototype._isOptionIndeterminate = function (index) { var _a = this.props, multiSelect = _a.multiSelect, hoisted = _a.hoisted; if (multiSelect && index !== undefined && hoisted.selectedIndices && hoisted.currentOptions) { var option = hoisted.currentOptions[index]; if (option && option.itemType === _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll) { return hoisted.selectedIndices.length > 0 && !this._isSelectAllChecked(); } } return false; }; ComboBoxInternal.prototype._isSelectAllChecked = function (testIndices) { var _a = this.props, multiSelect = _a.multiSelect, hoisted = _a.hoisted; var selectAllOption = hoisted.currentOptions.find(function (option) { return option.itemType === _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll; }); var selectedIndices = testIndices || hoisted.selectedIndices; if (!multiSelect || !selectedIndices || !selectAllOption) { return false; } // start by not including the select all option itself var selectAllIndex = hoisted.currentOptions.indexOf(selectAllOption); var compareSelectedIndices = selectedIndices.filter(function (value) { return value !== selectAllIndex; }); // get array of selectable options, excluding disabled options, headers, and dividers var selectableOptions = hoisted.currentOptions.filter(function (option) { return !option.disabled && option.itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll && isSelectableOption(option); }); return compareSelectedIndices.length === selectableOptions.length; }; /** * Gets the pending selected index taking into account valueValidIndex and selectedIndex * @param includeCurrentPendingValue - Should we include the currentPendingValue when * finding the index */ ComboBoxInternal.prototype._getPendingSelectedIndex = function (includeCurrentPendingValue) { var _a = this.state, currentPendingValueValidIndex = _a.currentPendingValueValidIndex, currentPendingValue = _a.currentPendingValue; return currentPendingValueValidIndex >= 0 || (includeCurrentPendingValue && currentPendingValue !== null && currentPendingValue !== undefined) ? currentPendingValueValidIndex : this.props.multiSelect ? -1 : this._getFirstSelectedIndex(); }; /** * Scroll the selected element into view */ ComboBoxInternal.prototype._scrollIntoView = function () { var _a = this.props, onScrollToItem = _a.onScrollToItem, scrollSelectedToTop = _a.scrollSelectedToTop; var currentPendingSelectedIndex = this._getPendingSelectedIndex(true); if (onScrollToItem) { // Use the custom scroll handler onScrollToItem(currentPendingSelectedIndex >= 0 ? currentPendingSelectedIndex : this._getFirstSelectedIndex()); return; } var scrollToElement = this._selectedElement.current; // in multi-select there are multiple selected elements, so we use the pending select index // to locate the option to scroll to. if (this.props.multiSelect && this._comboBoxMenu.current) { scrollToElement = findFirstDescendant(this._comboBoxMenu.current, function (element) { var _a; return ((_a = element.dataset) === null || _a === void 0 ? void 0 : _a.index) === currentPendingSelectedIndex.toString(); }); } if (scrollToElement && scrollToElement.offsetParent) { var alignToTop = true; // We are using refs, scroll the ref into view if (this._comboBoxMenu.current && this._comboBoxMenu.current.offsetParent) { var scrollableParent = this._comboBoxMenu.current.offsetParent; var selectedElement = scrollToElement.offsetParent; var _b = selectedElement, offsetHeight = _b.offsetHeight, offsetTop = _b.offsetTop; var _c = scrollableParent, parentOffsetHeight = _c.offsetHeight, scrollTop = _c.scrollTop; var isAbove = offsetTop < scrollTop; var isBelow = offsetTop + offsetHeight > scrollTop + parentOffsetHeight; if (isAbove || scrollSelectedToTop) { alignToTop = false; scrollableParent.scrollTo(0, offsetTop); } else if (isBelow) { scrollableParent.scrollTo(0, offsetTop - parentOffsetHeight + offsetHeight); } } // if _comboboxMenu doesn't exist, fall back to scrollIntoView else { scrollToElement.offsetParent.scrollIntoView(alignToTop); } } }; /** * Click handler for the menu items * to select the item and also close the menu * @param index - the index of the item that was clicked */ ComboBoxInternal.prototype._onItemClick = function (item) { var _this = this; var onItemClick = this.props.onItemClick; var index = item.index; return function (ev) { // only close the callout when it's in single-select mode if (!_this.props.multiSelect) { // ensure that focus returns to the input, not the button _this._autofill.current && _this._autofill.current.focus(); _this.setState({ isOpen: false, }); } // Continue processing the click only after // performing menu close / control focus(inner working) onItemClick && onItemClick(ev, item, index); _this._setSelectedIndex(index, ev); }; }; /** * Reset the selected index by clearing the * input (of any pending text), clearing the pending state, * and setting the suggested display value to the last * selected state text */ ComboBoxInternal.prototype._resetSelectedIndex = function () { var currentOptions = this.props.hoisted.currentOptions; this._clearPendingInfo(); var selectedIndex = this._getFirstSelectedIndex(); if (selectedIndex > 0 && selectedIndex < currentOptions.length) { this.props.hoisted.setSuggestedDisplayValue(currentOptions[selectedIndex].text); } else if (this.props.text) { // If we had a value initially, restore it this.props.hoisted.setSuggestedDisplayValue(this.props.text); } }; /** * Clears the pending info state */ ComboBoxInternal.prototype._clearPendingInfo = function () { this._processingClearPendingInfo = true; this.props.hoisted.setSuggestedDisplayValue(undefined); this.setState({ currentPendingValue: undefined, currentPendingValueValidIndex: -1, currentPendingValueValidIndexOnHover: HoverStatus.default, }, this._onAfterClearPendingInfo); }; /** * Set the pending info * @param currentPendingValue - new pending value to set * @param currentPendingValueValidIndex - new pending value index to set * @param suggestedDisplayValue - new suggest display value to set */ ComboBoxInternal.prototype._setPendingInfo = function (currentPendingValue, currentPendingValueValidIndex, suggestedDisplayValue) { if (currentPendingValueValidIndex === void 0) { currentPendingValueValidIndex = -1; } if (this._processingClearPendingInfo) { return; } this.props.hoisted.setSuggestedDisplayValue(suggestedDisplayValue); this.setState({ currentPendingValue: normalizeToString(currentPendingValue), currentPendingValueValidIndex: currentPendingValueValidIndex, currentPendingValueValidIndexOnHover: HoverStatus.default, }); }; /** * Set the pending info from the given index * @param index - the index to set the pending info from */ ComboBoxInternal.prototype._setPendingInfoFromIndex = function (index) { var currentOptions = this.props.hoisted.currentOptions; if (index >= 0 && index < currentOptions.length) { var option = currentOptions[index]; this._setPendingInfo(getPreviewText(option), index, getPreviewText(option)); } else { this._clearPendingInfo(); } }; /** * Sets the pending info for the combo box * @param index - the index to search from * @param searchDirection - the direction to search */ ComboBoxInternal.prototype._setPendingInfoFromIndexAndDirection = function (index, searchDirection) { var currentOptions = this.props.hoisted.currentOptions; // update index to allow content to wrap if (searchDirection === SearchDirection.forward && index >= currentOptions.length - 1) { index = -1; } else if (searchDirection === SearchDirection.backward && index <= 0) { index = currentOptions.length; } // get the next "valid" index var indexUpdate = this._getNextSelectableIndex(index, searchDirection); // if the two indices are equal we didn't move and // we should attempt to get get the first/last "valid" index to use // (Note, this takes care of the potential cases where the first/last // item is not focusable), otherwise use the updated index if (index === indexUpdate) { if (searchDirection === SearchDirection.forward) { index = this._getNextSelectableIndex(-1, searchDirection); } else if (searchDirection === SearchDirection.backward) { index = this._getNextSelectableIndex(currentOptions.length, searchDirection); } } else { index = indexUpdate; } if (indexWithinBounds(currentOptions, index)) { this._setPendingInfoFromIndex(index); } }; ComboBoxInternal.prototype._notifyPendingValueChanged = function (prevState) { var onPendingValueChanged = this.props.onPendingValueChanged; if (!onPendingValueChanged) { return; } var currentOptions = this.props.hoisted.currentOptions; var _a = this.state, currentPendingValue = _a.currentPendingValue, currentPendingValueValidIndex = _a.currentPendingValueValidIndex, currentPendingValueValidIndexOnHover = _a.currentPendingValueValidIndexOnHover; var newPendingIndex = undefined; var newPendingValue = undefined; if (currentPendingValueValidIndexOnHover !== prevState.currentPendingValueValidIndexOnHover && indexWithinBounds(currentOptions, currentPendingValueValidIndexOnHover)) { // Set new pending index if hover index was changed newPendingIndex = currentPendingValueValidIndexOnHover; } else if (currentPendingValueValidIndex !== prevState.currentPendingValueValidIndex && indexWithinBounds(currentOptions, currentPendingValueValidIndex)) { // Set new pending index if currentPendingValueValidIndex was changed newPendingIndex = currentPendingValueValidIndex; } else if (currentPendingValue !== prevState.currentPendingValue) { // Set pendingValue in the case it was changed and no index was changed newPendingValue = currentPendingValue; } // Notify when there is a new pending index/value. Also, if there is a pending value, it needs to send undefined. if (newPendingIndex !== undefined || newPendingValue !== undefined || this._hasPendingValue) { onPendingValueChanged(newPendingIndex !== undefined ? currentOptions[newPendingIndex] : undefined, newPendingIndex, newPendingValue); this._hasPendingValue = newPendingIndex !== undefined || newPendingValue !== undefined; } }; /** * Sets the isOpen state and updates focusInputAfterClose */ ComboBoxInternal.prototype._setOpenStateAndFocusOnClose = function (isOpen, focusInputAfterClose) { this._focusInputAfterClose = focusInputAfterClose; this.setState({ isOpen: isOpen }); }; ComboBoxInternal.prototype._onOptionMouseEnter = function (index) { if (this._shouldIgnoreMouseEvent()) { return; } this.setState({ currentPendingValueValidIndexOnHover: index, }); }; ComboBoxInternal.prototype._onOptionMouseMove = function (index) { this._gotMouseMove = true; if (!this._isScrollIdle || this.state.currentPendingValueValidIndexOnHover === index) { return; } this.setState({ currentPendingValueValidIndexOnHover: index, }); }; ComboBoxInternal.prototype._shouldIgnoreMouseEvent = function () { return !this._isScrollIdle || !this._gotMouseMove; }; /** * Handle dismissing the menu and eating the required key event when disabled * @param ev - the keyboard event that was fired */ ComboBoxInternal.prototype._handleInputWhenDisabled = function (ev) { // If we are disabled, close the menu (if needed) // and eat all keystrokes other than TAB or ESC if (this.props.disabled) { if (this.state.isOpen) { this.setState({ isOpen: false }); } // When disabled stop propagation and prevent default // of the event unless we have a tab, escape, or function key if (ev !== null && // eslint-disable-next-line deprecation/deprecation ev.which !== _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].tab && // eslint-disable-next-line deprecation/deprecation ev.which !== _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].escape && // eslint-disable-next-line deprecation/deprecation (ev.which < 112 /* F1 */ || ev.which > 123) /* F12 */) { ev.stopPropagation(); ev.preventDefault(); } } }; ComboBoxInternal.prototype._handleTouchAndPointerEvent = function () { var _this = this; // If we already have an existing timeout from a previous touch and pointer event // cancel that timeout so we can set a nwe one. if (this._lastTouchTimeoutId !== undefined) { this._async.clearTimeout(this._lastTouchTimeoutId); this._lastTouchTimeoutId = undefined; } this._processingTouch = true; this._lastTouchTimeoutId = this._async.setTimeout(function () { _this._processingTouch = false; _this._lastTouchTimeoutId = undefined; }, TouchIdleDelay); }; /** * Get the styles for the current option. * @param item - Item props for the current option */ ComboBoxInternal.prototype._getCaretButtonStyles = function () { var customCaretDownButtonStyles = this.props.caretDownButtonStyles; return Object(_ComboBox_styles__WEBPACK_IMPORTED_MODULE_6__["getCaretDownButtonStyles"])(this.props.theme, customCaretDownButtonStyles); }; /** * Get the styles for the current option. * @param item - Item props for the current option */ ComboBoxInternal.prototype._getCurrentOptionStyles = function (item) { var customStylesForAllOptions = this.props.comboBoxOptionStyles; var customStylesForCurrentOption = item.styles; return Object(_ComboBox_styles__WEBPACK_IMPORTED_MODULE_6__["getOptionStyles"])(this.props.theme, customStylesForAllOptions, customStylesForCurrentOption, this._isPendingOption(item), item.hidden, this._isOptionHighlighted(item.index)); }; /** * Get the aria autocomplete value for the combo box * @returns 'inline' if auto-complete automatically dynamic, 'both' if we have a list of possible values to pick from * and can dynamically populate input, and 'list' if auto-complete is not enabled as selection is the only option. * Ideally, this should be 'none' if auto-complete is not enabled, but there is a known bug in Edge * where the callout may appear over the combo box if this attribute is set to 'none' */ ComboBoxInternal.prototype._getAriaAutoCompleteValue = function () { var autoComplete = !this.props.disabled && this.props.autoComplete === 'on'; return autoComplete ? (this.props.allowFreeform ? 'inline' : 'both') : 'list'; }; ComboBoxInternal.prototype._isPendingOption = function (item) { return item && item.index === this.state.currentPendingValueValidIndex; }; /** * Returns true if the component has some kind of focus. If it's either focusing or if it's focused */ ComboBoxInternal.prototype._hasFocus = function () { return this.state.focusState !== 'none'; }; ComboBoxInternal = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('ComboBox', ['theme', 'styles'], true) ], ComboBoxInternal); return ComboBoxInternal; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); /** * Get the indices of the options that are marked as selected * @param options - the combo box options * @param selectedKeys - the known selected keys to find * @returns - an array of the indices of the selected options, empty array if nothing is selected */ function getSelectedIndices(options, selectedKeys) { if (!options || !selectedKeys) { return []; } var selectedIndices = {}; options.forEach(function (option, index) { if (option.selected) { selectedIndices[index] = true; } }); var _loop_1 = function (selectedKey) { var index = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["findIndex"])(options, function (option) { return option.key === selectedKey; }); if (index > -1) { selectedIndices[index] = true; } }; for (var _i = 0, selectedKeys_1 = selectedKeys; _i < selectedKeys_1.length; _i++) { var selectedKey = selectedKeys_1[_i]; _loop_1(selectedKey); } return Object.keys(selectedIndices).map(Number).sort(); } /** * Given default selected key(s) and selected key(s), return the selected keys(s). * When default selected key(s) are available, they take precedence and return them instead of selected key(s). * * @returns No matter what specific types the input parameters are, always return an array of * either strings or numbers instead of primitive type. This normalization makes caller's logic easier. */ function buildDefaultSelectedKeys(defaultSelectedKey, selectedKey) { var selectedKeys = buildSelectedKeys(defaultSelectedKey); if (selectedKeys.length) { return selectedKeys; } return buildSelectedKeys(selectedKey); } function buildSelectedKeys(selectedKey) { if (selectedKey === undefined) { return []; } // need to cast here so typescript does not complain return (selectedKey instanceof Array ? selectedKey : [selectedKey]); } function normalizeToString(value) { return value || ''; } /** * Is the index within the bounds of the array? * @param options - options to check if the index is valid for * @param index - the index to check * @returns - true if the index is valid for the given options, false otherwise */ function indexWithinBounds(options, index) { return !!options && index >= 0 && index < options.length; } /** Whether this is a normal option, not a header or divider or select all. */ function isNormalOption(option) { return (option.itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Header && option.itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Divider && option.itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].SelectAll); } /** Whether this is a selectable option, not a header or divider. */ function isSelectableOption(option) { return (option.itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Header && option.itemType !== _SelectableOption__WEBPACK_IMPORTED_MODULE_9__["SelectableOptionMenuItemType"].Divider); } /** * For scenarios where the option's `text` prop contains embedded styles, we use the option's * `ariaLabel` value as the text in the input and for autocomplete matching. We know to use this * when the `useAriaLabelAsText` prop is set to true. */ function getPreviewText(item) { return item.useAriaLabelAsText && item.ariaLabel ? item.ariaLabel : item.text; } /** * Returns true if the key for the event is alt (Mac option) or meta (Mac command). */ function isAltOrMeta(ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].alt || ev.key === 'Meta'; } //# sourceMappingURL=ComboBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.styles.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.styles.js ***! \*********************************************************************************/ /*! exports provided: getOptionStyles, getCaretDownButtonStyles, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptionStyles", function() { return getOptionStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCaretDownButtonStyles", function() { return getCaretDownButtonStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var _a, _b; var ComboBoxHeight = 32; var ComboBoxLineHeight = 30; var ComboBoxCaretDownWidth = 32; var ComboBoxOptionHeight = 36; var getDisabledStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme) { var _a; var semanticColors = theme.semanticColors; return { backgroundColor: semanticColors.disabledBackground, color: semanticColors.disabledText, cursor: 'default', selectors: (_a = { ':after': { borderColor: semanticColors.disabledBackground, } }, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', selectors: { ':after': { borderColor: 'GrayText', }, }, }, _a), }; }); var listOptionHighContrastStyles = { selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a), }; var inputHighContrastStyles = { selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'WindowText', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _b), }; var getOptionStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, customStylesForAllOptions, customOptionStylesForCurrentOption, isPending, isHidden, isSelected) { var _a; var palette = theme.palette, semanticColors = theme.semanticColors; var option = { textHoveredColor: semanticColors.menuItemTextHovered, textSelectedColor: palette.neutralDark, textDisabledColor: semanticColors.disabledText, backgroundHoveredColor: semanticColors.menuItemBackgroundHovered, backgroundPressedColor: semanticColors.menuItemBackgroundPressed, }; var optionStyles = { root: [ theme.fonts.medium, { backgroundColor: isPending ? option.backgroundHoveredColor : 'transparent', boxSizing: 'border-box', cursor: 'pointer', display: isHidden ? 'none' : 'block', width: '100%', height: 'auto', minHeight: ComboBoxOptionHeight, lineHeight: '20px', padding: '0 8px', position: 'relative', borderWidth: '1px', borderStyle: 'solid', borderColor: 'transparent', borderRadius: 0, wordWrap: 'break-word', overflowWrap: 'break-word', textAlign: 'left', selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])((_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { border: 'none', borderColor: 'Background', }, _a), (!isHidden && { '&.ms-Checkbox': { display: 'flex', alignItems: 'center', }, })), { '&.ms-Button--command:hover:active': { backgroundColor: option.backgroundPressedColor, }, '.ms-Checkbox-label': { width: '100%', } }), }, isSelected ? [ { backgroundColor: 'transparent', color: option.textSelectedColor, selectors: { ':hover': [ { backgroundColor: option.backgroundHoveredColor, }, listOptionHighContrastStyles, ], }, }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1, isFocusedOnly: false }), listOptionHighContrastStyles, ] : [], ], rootHovered: { backgroundColor: option.backgroundHoveredColor, color: option.textHoveredColor, }, rootFocused: { backgroundColor: option.backgroundHoveredColor, }, rootDisabled: { color: option.textDisabledColor, cursor: 'default', }, optionText: { overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', minWidth: '0px', maxWidth: '100%', wordWrap: 'break-word', overflowWrap: 'break-word', display: 'inline-block', }, optionTextWrapper: { maxWidth: '100%', display: 'flex', alignItems: 'center', }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(optionStyles, customStylesForAllOptions, customOptionStylesForCurrentOption); }); var getCaretDownButtonStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, customStyles) { var _a, _b; var semanticColors = theme.semanticColors, fonts = theme.fonts; var caret = { buttonTextColor: semanticColors.bodySubtext, buttonTextHoveredCheckedColor: semanticColors.buttonTextChecked, buttonBackgroundHoveredColor: semanticColors.listItemBackgroundHovered, buttonBackgroundCheckedColor: semanticColors.listItemBackgroundChecked, buttonBackgroundCheckedHoveredColor: semanticColors.listItemBackgroundCheckedHovered, }; var buttonHighContrastStyles = { selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _a), }; var styles = { root: { color: caret.buttonTextColor, fontSize: fonts.small.fontSize, position: 'absolute', top: 0, height: '100%', lineHeight: ComboBoxLineHeight, width: ComboBoxCaretDownWidth, textAlign: 'center', cursor: 'default', selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ backgroundColor: 'ButtonFace', borderColor: 'ButtonText', color: 'ButtonText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _b), }, icon: { fontSize: fonts.small.fontSize, }, rootHovered: [ { backgroundColor: caret.buttonBackgroundHoveredColor, color: caret.buttonTextHoveredCheckedColor, cursor: 'pointer', }, buttonHighContrastStyles, ], rootPressed: [ { backgroundColor: caret.buttonBackgroundCheckedColor, color: caret.buttonTextHoveredCheckedColor, }, buttonHighContrastStyles, ], rootChecked: [ { backgroundColor: caret.buttonBackgroundCheckedColor, color: caret.buttonTextHoveredCheckedColor, }, buttonHighContrastStyles, ], rootCheckedHovered: [ { backgroundColor: caret.buttonBackgroundCheckedHoveredColor, color: caret.buttonTextHoveredCheckedColor, }, buttonHighContrastStyles, ], rootDisabled: [ getDisabledStyles(theme), { position: 'absolute', }, ], }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(styles, customStyles); }); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, customStyles, comboBoxOptionWidth) { var _a, _b, _c, _d, _e, _f; var semanticColors = theme.semanticColors, fonts = theme.fonts, effects = theme.effects; var root = { textColor: semanticColors.inputText, borderColor: semanticColors.inputBorder, borderHoveredColor: semanticColors.inputBorderHovered, borderPressedColor: semanticColors.inputFocusBorderAlt, borderFocusedColor: semanticColors.inputFocusBorderAlt, backgroundColor: semanticColors.inputBackground, erroredColor: semanticColors.errorText, }; var option = { headerTextColor: semanticColors.menuHeader, dividerBorderColor: semanticColors.bodyDivider, }; // placeholder style variables var placeholderHighContrastStyles = { selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'GrayText', }, _a), }; var placeholderStyles = [ { color: semanticColors.inputPlaceholderText, }, placeholderHighContrastStyles, ]; var placeholderStylesHovered = [ { color: semanticColors.inputTextHovered, }, placeholderHighContrastStyles, ]; var disabledPlaceholderStyles = [ { color: semanticColors.disabledText, }, placeholderHighContrastStyles, ]; var ComboBoxRootHighContrastFocused = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'HighlightText', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), { selectors: { ':after': { borderColor: 'Highlight', }, } }); var focusBorderStyles = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getInputFocusStyle"])(root.borderPressedColor, effects.roundedCorner2, 'border', 0); var styles = { container: {}, label: {}, labelDisabled: {}, root: [ theme.fonts.medium, { boxShadow: 'none', marginLeft: '0', paddingRight: ComboBoxCaretDownWidth, paddingLeft: 9, color: root.textColor, position: 'relative', outline: '0', userSelect: 'none', backgroundColor: root.backgroundColor, cursor: 'text', display: 'block', height: ComboBoxHeight, whiteSpace: 'nowrap', textOverflow: 'ellipsis', boxSizing: 'border-box', selectors: { '.ms-Label': { display: 'inline-block', marginBottom: '8px', }, '&.is-open': { selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = ComboBoxRootHighContrastFocused, _b), }, // setting border using pseudo-element here in order to // prevent chevron button to overlap ComboBox border under certain resolutions ':after': { pointerEvents: 'none', content: "''", position: 'absolute', left: 0, top: 0, bottom: 0, right: 0, borderWidth: '1px', borderStyle: 'solid', borderColor: root.borderColor, borderRadius: effects.roundedCorner2, }, }, }, ], rootHovered: { selectors: (_c = { ':after': { borderColor: root.borderHoveredColor, }, '.ms-ComboBox-Input': [ { color: semanticColors.inputTextHovered, }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getPlaceholderStyles"])(placeholderStylesHovered), inputHighContrastStyles, ] }, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'HighlightText', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), { selectors: { ':after': { borderColor: 'Highlight', }, } }), _c), }, rootPressed: [ { position: 'relative', selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = ComboBoxRootHighContrastFocused, _d), }, ], rootFocused: [ { selectors: (_e = { '.ms-ComboBox-Input': [ { color: semanticColors.inputTextHovered, }, inputHighContrastStyles, ] }, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = ComboBoxRootHighContrastFocused, _e), }, focusBorderStyles, ], rootDisabled: getDisabledStyles(theme), rootError: { selectors: { ':after': { borderColor: root.erroredColor, }, ':hover:after': { borderColor: semanticColors.inputBorderHovered, }, }, }, rootDisallowFreeForm: {}, input: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getPlaceholderStyles"])(placeholderStyles), { backgroundColor: root.backgroundColor, color: root.textColor, boxSizing: 'border-box', width: '100%', height: '100%', borderStyle: 'none', outline: 'none', font: 'inherit', textOverflow: 'ellipsis', padding: '0', selectors: { '::-ms-clear': { display: 'none', }, }, }, inputHighContrastStyles, ], inputDisabled: [getDisabledStyles(theme), Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getPlaceholderStyles"])(disabledPlaceholderStyles)], errorMessage: [ theme.fonts.small, { color: root.erroredColor, marginTop: '5px', }, ], callout: { boxShadow: effects.elevation8, }, optionsContainerWrapper: { width: comboBoxOptionWidth, }, optionsContainer: { display: 'block', }, screenReaderText: _Styling__WEBPACK_IMPORTED_MODULE_1__["hiddenContentStyle"], header: [ fonts.medium, { fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, color: option.headerTextColor, backgroundColor: 'none', borderStyle: 'none', height: ComboBoxOptionHeight, lineHeight: ComboBoxOptionHeight, cursor: 'default', padding: '0 8px', userSelect: 'none', textAlign: 'left', selectors: (_f = {}, _f[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _f), }, ], divider: { height: 1, backgroundColor: option.dividerBorderColor, }, }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(styles, customStyles); }); //# sourceMappingURL=ComboBox.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.types.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.types.js ***! \********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ComboBox.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ComboBox/VirtualizedComboBox.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ComboBox/VirtualizedComboBox.js ***! \*************************************************************************************/ /*! exports provided: VirtualizedComboBox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualizedComboBox", function() { return VirtualizedComboBox; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ComboBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ComboBox */ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.js"); /* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib/List.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var VirtualizedComboBox = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(VirtualizedComboBox, _super); function VirtualizedComboBox(props) { var _this = _super.call(this, props) || this; /** The combo box element */ _this._comboBox = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); /** The virtualized list element */ _this._list = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onRenderList = function (props) { var id = props.id, onRenderItem = props.onRenderItem; // Render virtualized list return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_List__WEBPACK_IMPORTED_MODULE_3__["List"], { componentRef: _this._list, role: "listbox", id: id + "-list", "aria-labelledby": id + "-label", items: props.options, // eslint-disable-next-line react/jsx-no-bind onRenderCell: onRenderItem ? function (item) { return onRenderItem(item); } : function () { return null; } })); }; _this._onScrollToItem = function (itemIndex) { // We are using the List component, call scrollToIndex _this._list.current && _this._list.current.scrollToIndex(itemIndex); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["initializeComponentRef"])(_this); return _this; } Object.defineProperty(VirtualizedComboBox.prototype, "selectedOptions", { /** * All selected options */ get: function () { if (this._comboBox.current) { return this._comboBox.current.selectedOptions; } return []; }, enumerable: false, configurable: true }); VirtualizedComboBox.prototype.dismissMenu = function () { if (this._comboBox.current) { return this._comboBox.current.dismissMenu(); } }; VirtualizedComboBox.prototype.focus = function (shouldOpenOnFocus, useFocusAsync) { if (this._comboBox.current) { this._comboBox.current.focus(shouldOpenOnFocus, useFocusAsync); return true; } return false; }; VirtualizedComboBox.prototype.render = function () { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ComboBox__WEBPACK_IMPORTED_MODULE_2__["ComboBox"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, { componentRef: this._comboBox, onRenderList: this._onRenderList, onScrollToItem: this._onScrollToItem }))); }; return VirtualizedComboBox; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=VirtualizedComboBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ComboBox/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ComboBox/index.js ***! \***********************************************************************/ /*! exports provided: ComboBox, VirtualizedComboBox */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ComboBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ComboBox */ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComboBox", function() { return _ComboBox__WEBPACK_IMPORTED_MODULE_0__["ComboBox"]; }); /* harmony import */ var _ComboBox_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ComboBox.types */ "./node_modules/@fluentui/react/lib/components/ComboBox/ComboBox.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _VirtualizedComboBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VirtualizedComboBox */ "./node_modules/@fluentui/react/lib/components/ComboBox/VirtualizedComboBox.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VirtualizedComboBox", function() { return _VirtualizedComboBox__WEBPACK_IMPORTED_MODULE_2__["VirtualizedComboBox"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.base.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.base.js ***! \***********************************************************************************/ /*! exports provided: CommandBarBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommandBarBase", function() { return CommandBarBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _OverflowSet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../OverflowSet */ "./node_modules/@fluentui/react/lib/OverflowSet.js"); /* harmony import */ var _ResizeGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../ResizeGroup */ "./node_modules/@fluentui/react/lib/ResizeGroup.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib/Tooltip.js"); /* harmony import */ var _CommandBar_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CommandBar.styles */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.styles.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var CommandBarBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommandBarBase, _super); function CommandBarBase(props) { var _this = _super.call(this, props) || this; _this._overflowSet = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._resizeGroup = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onRenderData = function (data) { var _a = _this.props, ariaLabel = _a.ariaLabel, primaryGroupAriaLabel = _a.primaryGroupAriaLabel, farItemsGroupAriaLabel = _a.farItemsGroupAriaLabel; var hasSecondSet = data.farItems && data.farItems.length > 0; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_5__["FocusZone"], { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(_this._classNames.root), direction: _FocusZone__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].horizontal, role: 'menubar', "aria-label": ariaLabel }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_OverflowSet__WEBPACK_IMPORTED_MODULE_3__["OverflowSet"], { role: hasSecondSet ? 'group' : 'none', "aria-label": hasSecondSet ? primaryGroupAriaLabel : undefined, componentRef: _this._overflowSet, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(_this._classNames.primarySet), items: data.primaryItems, overflowItems: data.overflowItems.length ? data.overflowItems : undefined, onRenderItem: _this._onRenderItem, onRenderOverflowButton: _this._onRenderOverflowButton }), hasSecondSet && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_OverflowSet__WEBPACK_IMPORTED_MODULE_3__["OverflowSet"], { role: "group", "aria-label": farItemsGroupAriaLabel, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(_this._classNames.secondarySet), items: data.farItems, onRenderItem: _this._onRenderItem, onRenderOverflowButton: _Utilities__WEBPACK_IMPORTED_MODULE_2__["nullRender"] })))); }; _this._onRenderItem = function (item) { if (item.onRender) { // These are the top level items, there is no relevant menu dismissing function to // provide for the IContextualMenuItem onRender function. Pass in a no op function instead. return item.onRender(item, function () { return undefined; }); } // eslint-disable-next-line deprecation/deprecation var itemText = item.text || item.name; var commandButtonProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ allowDisabledFocus: true, role: 'menuitem' }, item), { styles: Object(_CommandBar_styles__WEBPACK_IMPORTED_MODULE_8__["getCommandButtonStyles"])(item.buttonStyles), className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-CommandBarItem-link', item.className), text: !item.iconOnly ? itemText : undefined, menuProps: item.subMenuProps, onClick: _this._onButtonClick(item) }); if (item.iconOnly && (itemText !== undefined || item.tooltipHostProps)) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Tooltip__WEBPACK_IMPORTED_MODULE_7__["TooltipHost"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ role: "none", content: itemText, setAriaDescribedBy: false }, item.tooltipHostProps), _this._commandButton(item, commandButtonProps))); } return _this._commandButton(item, commandButtonProps); }; _this._commandButton = function (item, props) { var ButtonAs = _this.props.buttonAs; var CommandBarButtonAs = item.commandBarButtonAs; var DefaultButtonAs = _Button__WEBPACK_IMPORTED_MODULE_6__["CommandBarButton"]; // The prop types between these three possible implementations overlap enough that a force-cast is safe. var Type = DefaultButtonAs; if (CommandBarButtonAs) { Type = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeComponentAs"])(CommandBarButtonAs, Type); } if (ButtonAs) { Type = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeComponentAs"])(ButtonAs, Type); } // Always pass the default implementation to the override so it may be composed. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Type, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); }; _this._onRenderOverflowButton = function (overflowItems) { var _a = _this.props.overflowButtonProps, overflowButtonProps = _a === void 0 ? {} : _a; var combinedOverflowItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], (overflowButtonProps.menuProps ? overflowButtonProps.menuProps.items : [])), overflowItems); var overflowProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ role: 'menuitem' }, overflowButtonProps), { styles: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ menuIcon: { fontSize: '17px' } }, overflowButtonProps.styles), className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-CommandBar-overflowButton', overflowButtonProps.className), menuProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, overflowButtonProps.menuProps), { items: combinedOverflowItems }), menuIconProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ iconName: 'More' }, overflowButtonProps.menuIconProps) }); var OverflowButtonType = _this.props.overflowButtonAs ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeComponentAs"])(_this.props.overflowButtonAs, _Button__WEBPACK_IMPORTED_MODULE_6__["CommandBarButton"]) : _Button__WEBPACK_IMPORTED_MODULE_6__["CommandBarButton"]; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](OverflowButtonType, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, overflowProps)); }; _this._onReduceData = function (data) { var _a = _this.props, shiftOnReduce = _a.shiftOnReduce, onDataReduced = _a.onDataReduced; var primaryItems = data.primaryItems, overflowItems = data.overflowItems, cacheKey = data.cacheKey; var farItems = data.farItems; // Use first item if shiftOnReduce, otherwise use last item var movedItem = primaryItems[shiftOnReduce ? 0 : primaryItems.length - 1]; if (movedItem !== undefined) { movedItem.renderedInOverflow = true; overflowItems = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([movedItem], overflowItems); primaryItems = shiftOnReduce ? primaryItems.slice(1) : primaryItems.slice(0, -1); var newData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { primaryItems: primaryItems, overflowItems: overflowItems }); cacheKey = _this._computeCacheKey({ primaryItems: primaryItems, overflow: overflowItems.length > 0, farItems: farItems }); if (onDataReduced) { onDataReduced(movedItem); } newData.cacheKey = cacheKey; return newData; } return undefined; }; _this._onGrowData = function (data) { var _a = _this.props, shiftOnReduce = _a.shiftOnReduce, onDataGrown = _a.onDataGrown; var minimumOverflowItems = data.minimumOverflowItems; var primaryItems = data.primaryItems, overflowItems = data.overflowItems, cacheKey = data.cacheKey; var farItems = data.farItems; var movedItem = overflowItems[0]; // Make sure that moved item exists and is not one of the original overflow items if (movedItem !== undefined && overflowItems.length > minimumOverflowItems) { movedItem.renderedInOverflow = false; overflowItems = overflowItems.slice(1); // if shiftOnReduce, movedItem goes first, otherwise, last. primaryItems = shiftOnReduce ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([movedItem], primaryItems) : Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], primaryItems), [movedItem]); var newData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, data), { primaryItems: primaryItems, overflowItems: overflowItems }); cacheKey = _this._computeCacheKey({ primaryItems: primaryItems, overflow: overflowItems.length > 0, farItems: farItems }); if (onDataGrown) { onDataGrown(movedItem); } newData.cacheKey = cacheKey; return newData; } return undefined; }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } CommandBarBase.prototype.render = function () { var _a = this.props, items = _a.items, overflowItems = _a.overflowItems, farItems = _a.farItems, styles = _a.styles, theme = _a.theme, dataDidRender = _a.dataDidRender, _b = _a.onReduceData, onReduceData = _b === void 0 ? this._onReduceData : _b, _c = _a.onGrowData, onGrowData = _c === void 0 ? this._onGrowData : _c, _d = _a.resizeGroupAs, ResizeGroupAs = _d === void 0 ? _ResizeGroup__WEBPACK_IMPORTED_MODULE_4__["ResizeGroup"] : _d; var commandBarData = { primaryItems: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], items), overflowItems: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], overflowItems), minimumOverflowItems: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], overflowItems).length, farItems: farItems, cacheKey: this._computeCacheKey({ primaryItems: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], items), overflow: overflowItems && overflowItems.length > 0, farItems: farItems, }), }; this._classNames = getClassNames(styles, { theme: theme }); // ResizeGroup will render these attributes to the root
. // TODO We may need to elevate classNames from into ? var nativeProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(this.props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"]); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ResizeGroupAs, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, nativeProps, { componentRef: this._resizeGroup, data: commandBarData, onReduceData: onReduceData, onGrowData: onGrowData, onRenderData: this._onRenderData, dataDidRender: dataDidRender }))); }; CommandBarBase.prototype.focus = function () { var overflowSet = this._overflowSet.current; overflowSet && overflowSet.focus(); }; CommandBarBase.prototype.remeasure = function () { this._resizeGroup.current && this._resizeGroup.current.remeasure(); }; CommandBarBase.prototype._onButtonClick = function (item) { return function (ev) { // inactive is deprecated. remove check in 7.0 // eslint-disable-next-line deprecation/deprecation if (item.inactive) { return; } if (item.onClick) { item.onClick(ev, item); } }; }; CommandBarBase.prototype._computeCacheKey = function (data) { var primaryItems = data.primaryItems, overflow = data.overflow, farItems = data.farItems; var returnKey = function (acc, current) { var _a = current.cacheKey, cacheKey = _a === void 0 ? current.key : _a; return acc + cacheKey; }; var primaryKey = primaryItems && primaryItems.reduce(returnKey, ''); var overflowKey = overflow ? 'overflow' : ''; var farKey = farItems && farItems.reduce(returnKey, ''); return [primaryKey, overflowKey, farKey].join(''); }; CommandBarBase.defaultProps = { items: [], overflowItems: [], }; return CommandBarBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=CommandBar.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.js ***! \******************************************************************************/ /*! exports provided: CommandBar */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommandBar", function() { return CommandBar; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _CommandBar_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CommandBar.base */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.base.js"); /* harmony import */ var _CommandBar_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CommandBar.styles */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.styles.js"); // Create a CommandBar variant which uses these default styles and this styled subcomponent. var CommandBar = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_CommandBar_base__WEBPACK_IMPORTED_MODULE_1__["CommandBarBase"], _CommandBar_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'CommandBar', }); //# sourceMappingURL=CommandBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.styles.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.styles.js ***! \*************************************************************************************/ /*! exports provided: getStyles, getCommandButtonStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCommandButtonStyles", function() { return getCommandButtonStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var COMMAND_BAR_HEIGHT = 44; var getStyles = function (props) { var className = props.className, theme = props.theme; var semanticColors = theme.semanticColors; return { root: [ theme.fonts.medium, 'ms-CommandBar', { display: 'flex', backgroundColor: semanticColors.bodyBackground, padding: '0 14px 0 24px', height: COMMAND_BAR_HEIGHT, }, className, ], primarySet: [ 'ms-CommandBar-primaryCommand', { flexGrow: '1', display: 'flex', alignItems: 'stretch', }, ], secondarySet: [ 'ms-CommandBar-secondaryCommand', { flexShrink: '0', display: 'flex', alignItems: 'stretch', }, ], }; }; var getCommandButtonStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["memoizeFunction"])(function (customStyles) { var rootStyles = { height: '100%', }; var labelStyles = { whiteSpace: 'nowrap', }; var _a = customStyles || {}, root = _a.root, label = _a.label, restCustomStyles = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["root", "label"]); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, restCustomStyles), { root: root ? [rootStyles, root] : rootStyles, label: label ? [labelStyles, label] : labelStyles }); }); //# sourceMappingURL=CommandBar.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.types.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.types.js ***! \************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=CommandBar.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/CommandBar/index.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/CommandBar/index.js ***! \*************************************************************************/ /*! exports provided: getCommandBarStyles, getCommandButtonStyles, CommandBar, CommandBarBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _CommandBar_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CommandBar.styles */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCommandBarStyles", function() { return _CommandBar_styles__WEBPACK_IMPORTED_MODULE_0__["getStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCommandButtonStyles", function() { return _CommandBar_styles__WEBPACK_IMPORTED_MODULE_0__["getCommandButtonStyles"]; }); /* harmony import */ var _CommandBar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CommandBar */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandBar", function() { return _CommandBar__WEBPACK_IMPORTED_MODULE_1__["CommandBar"]; }); /* harmony import */ var _CommandBar_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CommandBar.base */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CommandBarBase", function() { return _CommandBar_base__WEBPACK_IMPORTED_MODULE_2__["CommandBarBase"]; }); /* harmony import */ var _CommandBar_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CommandBar.types */ "./node_modules/@fluentui/react/lib/components/CommandBar/CommandBar.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js ***! \*******************************************************************************************/ /*! exports provided: getSubmenuItems, canAnyMenuItemsCheck, ContextualMenuBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSubmenuItems", function() { return getSubmenuItems; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canAnyMenuItemsCheck", function() { return canAnyMenuItemsCheck; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuBase", function() { return ContextualMenuBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ContextualMenu.types */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib/utilities/contextualMenu/index.js"); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib/Callout.js"); /* harmony import */ var _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ContextualMenuItem */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js"); /* harmony import */ var _ContextualMenuItemWrapper_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ContextualMenuItemWrapper/index */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/index.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _ResponsiveMode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib/ResponsiveMode.js"); /* harmony import */ var _utilities_MenuContext_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utilities/MenuContext/index */ "./node_modules/@fluentui/react/lib/utilities/MenuContext/index.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["classNamesFunction"])(); var getContextualMenuItemClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["classNamesFunction"])(); // The default ContextualMenu properties have no items and beak, the default submenu direction is right and top. var DEFAULT_PROPS = { items: [], shouldFocusOnMount: true, gapSpace: 0, directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_3__["DirectionalHint"].bottomAutoEdge, beakWidth: 16, }; function getSubmenuItems(item, options) { var target = options === null || options === void 0 ? void 0 : options.target; // eslint-disable-next-line deprecation/deprecation var items = item.subMenuProps ? item.subMenuProps.items : item.items; if (items) { var overrideItems = []; for (var _i = 0, items_1 = items; _i < items_1.length; _i++) { var subItem = items_1[_i]; if (subItem.preferMenuTargetAsEventTarget) { // For sub-items which need an overridden target, intercept `onClick` var onClick = subItem.onClick, contextItem = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(subItem, ["onClick"]); overrideItems.push(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, contextItem), { onClick: getOnClickWithOverrideTarget(onClick, target) })); } else { overrideItems.push(subItem); } } return overrideItems; } } /** * Returns true if a list of menu items can contain a checkbox */ function canAnyMenuItemsCheck(items) { return items.some(function (item) { if (item.canCheck) { return true; } // If the item is a section, check if any of the items in the section can check. if (item.sectionProps && item.sectionProps.items.some(function (submenuItem) { return submenuItem.canCheck === true; })) { return true; } return false; }); } var NavigationIdleDelay = 250; /* ms */ var COMPONENT_NAME = 'ContextualMenu'; var _getMenuItemStylesFunction = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["memoizeFunction"])(function () { var styles = []; for (var _i = 0; _i < arguments.length; _i++) { styles[_i] = arguments[_i]; } return function (styleProps) { return _Styling__WEBPACK_IMPORTED_MODULE_10__["concatStyleSetsWithProps"].apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([styleProps, _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_11__["getItemStyles"]], styles)); }; }); //#region Custom hooks function useVisibility(props, targetWindow) { var _a = props.hidden, hidden = _a === void 0 ? false : _a, onMenuDismissed = props.onMenuDismissed, onMenuOpened = props.onMenuOpened; var previousHidden = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["usePrevious"])(hidden); var onMenuOpenedRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](onMenuOpened); var onMenuClosedRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](onMenuDismissed); var propsRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](props); onMenuOpenedRef.current = onMenuOpened; onMenuClosedRef.current = onMenuDismissed; propsRef.current = props; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var _a, _b; // Don't issue dismissed callbacks on initial mount if (hidden && previousHidden === false) { (_a = onMenuClosedRef.current) === null || _a === void 0 ? void 0 : _a.call(onMenuClosedRef, propsRef.current); } else if (!hidden && previousHidden !== false) { (_b = onMenuOpenedRef.current) === null || _b === void 0 ? void 0 : _b.call(onMenuOpenedRef, propsRef.current); } }, [hidden, previousHidden]); // Issue onDismissedCallback on unmount react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { return function () { var _a; return (_a = onMenuClosedRef.current) === null || _a === void 0 ? void 0 : _a.call(onMenuClosedRef, propsRef.current); }; }, []); } function useSubMenuState(_a, dismiss) { var hidden = _a.hidden, items = _a.items, theme = _a.theme, className = _a.className, id = _a.id, menuTarget = _a.target; var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), expandedMenuItemKey = _b[0], setExpandedMenuItemKey = _b[1]; var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), submenuTarget = _c[0], setSubmenuTarget = _c[1]; /** True if the menu was expanded by mouse click OR hover (as opposed to by keyboard) */ var _d = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), shouldFocusOnContainer = _d[0], setShouldFocusOnContainer = _d[1]; var subMenuId = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["useId"])(COMPONENT_NAME, id); var closeSubMenu = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { setShouldFocusOnContainer(undefined); setExpandedMenuItemKey(undefined); setSubmenuTarget(undefined); }, []); var openSubMenu = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (_a, target, focusContainer) { var submenuItemKey = _a.key; if (expandedMenuItemKey === submenuItemKey) { return; } target.focus(); setShouldFocusOnContainer(focusContainer); setExpandedMenuItemKey(submenuItemKey); setSubmenuTarget(target); }, [expandedMenuItemKey]); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (hidden) { closeSubMenu(); } }, [hidden, closeSubMenu]); var onSubMenuDismiss = useOnSubmenuDismiss(dismiss, closeSubMenu); var getSubmenuProps = function () { var item = findItemByKeyFromItems(expandedMenuItemKey, items); var submenuProps = null; if (item) { submenuProps = { items: getSubmenuItems(item, { target: menuTarget }), target: submenuTarget, onDismiss: onSubMenuDismiss, isSubMenu: true, id: subMenuId, shouldFocusOnMount: true, shouldFocusOnContainer: shouldFocusOnContainer, directionalHint: Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getRTL"])(theme) ? _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_3__["DirectionalHint"].leftTopEdge : _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_3__["DirectionalHint"].rightTopEdge, className: className, gapSpace: 0, isBeakVisible: false, }; if (item.subMenuProps) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["assign"])(submenuProps, item.subMenuProps); } if (item.preferMenuTargetAsEventTarget) { var onItemClick = item.onItemClick; submenuProps.onItemClick = getOnClickWithOverrideTarget(onItemClick, menuTarget); } } return submenuProps; }; return [expandedMenuItemKey, openSubMenu, getSubmenuProps, onSubMenuDismiss]; } function useShouldUpdateFocusOnMouseMove(_a) { var delayUpdateFocusOnHover = _a.delayUpdateFocusOnHover, hidden = _a.hidden; var shouldUpdateFocusOnMouseEvent = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](!delayUpdateFocusOnHover); var gotMouseMove = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { shouldUpdateFocusOnMouseEvent.current = !delayUpdateFocusOnHover; gotMouseMove.current = hidden ? false : !delayUpdateFocusOnHover && gotMouseMove.current; }, [delayUpdateFocusOnHover, hidden]); var onMenuFocusCapture = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { if (delayUpdateFocusOnHover) { shouldUpdateFocusOnMouseEvent.current = false; } }, [delayUpdateFocusOnHover]); return [shouldUpdateFocusOnMouseEvent, gotMouseMove, onMenuFocusCapture]; } function usePreviousActiveElement(_a, targetWindow, hostElement) { var hidden = _a.hidden, onRestoreFocus = _a.onRestoreFocus; var previousActiveElement = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); var tryFocusPreviousActiveElement = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (options) { var _a, _b; if (onRestoreFocus) { onRestoreFocus(options); } else if (options === null || options === void 0 ? void 0 : options.documentContainsFocus) { // Make sure that the focus method actually exists // In some cases the object might exist but not be a real element. // This is primarily for IE 11 and should be removed once IE 11 is no longer in use. (_b = (_a = previousActiveElement.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); } }, [onRestoreFocus]); Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["useIsomorphicLayoutEffect"])(function () { var _a, _b; if (!hidden) { var newElement = targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.activeElement; if (!((_a = hostElement.current) === null || _a === void 0 ? void 0 : _a.contains(newElement)) && newElement.tagName !== 'BODY') { previousActiveElement.current = newElement; } } else if (previousActiveElement.current) { tryFocusPreviousActiveElement({ originalElement: previousActiveElement.current, containsFocus: true, documentContainsFocus: ((_b = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getDocument"])()) === null || _b === void 0 ? void 0 : _b.hasFocus()) || false, }); previousActiveElement.current = undefined; } }, [hidden, targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.activeElement, tryFocusPreviousActiveElement, hostElement]); return [tryFocusPreviousActiveElement]; } function useKeyHandlers(_a, dismiss, hostElement, openSubMenu) { var theme = _a.theme, isSubMenu = _a.isSubMenu, _b = _a.focusZoneProps, _c = _b === void 0 ? {} : _b, checkForNoWrap = _c.checkForNoWrap, _d = _c.direction, focusZoneDirection = _d === void 0 ? _FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZoneDirection"].vertical : _d; /** True if the most recent keydown event was for alt (option) or meta (command). */ var lastKeyDownWasAltOrMeta = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); /** * Calls `shouldHandleKey` to determine whether the keyboard event should be handled; * if so, stops event propagation and dismisses menu(s). * @param ev - The keyboard event. * @param shouldHandleKey - Returns whether we should handle this keyboard event. * @param dismissAllMenus - If true, dismiss all menus. Otherwise, dismiss only the current menu. * Only does anything if `shouldHandleKey` returns true. * @returns Whether the event was handled. */ var keyHandler = function (ev, shouldHandleKey, dismissAllMenus) { var handled = false; if (shouldHandleKey(ev)) { dismiss(ev, dismissAllMenus); ev.preventDefault(); ev.stopPropagation(); handled = true; } return handled; }; /** * Checks if the submenu should be closed */ var shouldCloseSubMenu = function (ev) { var submenuCloseKey = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getRTL"])(theme) ? _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].right : _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].left; // eslint-disable-next-line deprecation/deprecation if (ev.which !== submenuCloseKey || !isSubMenu) { return false; } return !!(focusZoneDirection === _FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZoneDirection"].vertical || (checkForNoWrap && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["shouldWrapFocus"])(ev.target, 'data-no-horizontal-wrap'))); }; var shouldHandleKeyDown = function (ev) { return ( // eslint-disable-next-line deprecation/deprecation ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].escape || shouldCloseSubMenu(ev) || // eslint-disable-next-line deprecation/deprecation (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].up && (ev.altKey || ev.metaKey))); }; var onKeyDown = function (ev) { // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in shouldHandleKeyUp for reasoning. lastKeyDownWasAltOrMeta.current = isAltOrMeta(ev); // On Mac, pressing escape dismisses all levels of native context menus // eslint-disable-next-line deprecation/deprecation var dismissAllMenus = ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].escape && (Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["isMac"])() || Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["isIOS"])()); return keyHandler(ev, shouldHandleKeyDown, dismissAllMenus); }; /** * We close the menu on key up only if ALL of the following are true: * - Most recent key down was alt or meta (command) * - The alt/meta key down was NOT followed by some other key (such as down/up arrow to * expand/collapse the menu) * - We're not on a Mac (or iOS) * * This is because on Windows, pressing alt moves focus to the application menu bar or similar, * closing any open context menus. There is not a similar behavior on Macs. */ var shouldHandleKeyUp = function (ev) { var keyPressIsAltOrMetaAlone = lastKeyDownWasAltOrMeta.current && isAltOrMeta(ev); lastKeyDownWasAltOrMeta.current = false; return !!keyPressIsAltOrMetaAlone && !(Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["isIOS"])() || Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["isMac"])()); }; var onKeyUp = function (ev) { return keyHandler(ev, shouldHandleKeyUp, true /* dismissAllMenus */); }; var onMenuKeyDown = function (ev) { // Mark as handled if onKeyDown returns true (for handling collapse cases) // or if we are attempting to expand a submenu var handled = onKeyDown(ev); if (handled || !hostElement.current) { return; } // If we have a modifier key being pressed, we do not want to move focus. // Otherwise, handle up and down keys. var hasModifier = !!(ev.altKey || ev.metaKey); // eslint-disable-next-line deprecation/deprecation var isUp = ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].up; // eslint-disable-next-line deprecation/deprecation var isDown = ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].down; if (!hasModifier && (isUp || isDown)) { var elementToFocus = isUp ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getLastFocusable"])(hostElement.current, hostElement.current.lastChild, true) : Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getFirstFocusable"])(hostElement.current, hostElement.current.firstChild, true); if (elementToFocus) { elementToFocus.focus(); ev.preventDefault(); ev.stopPropagation(); } } }; var onItemKeyDown = function (item, ev) { var openKey = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getRTL"])(theme) ? _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].left : _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].right; if (!item.disabled && // eslint-disable-next-line deprecation/deprecation (ev.which === openKey || ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].enter || (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].down && (ev.altKey || ev.metaKey)))) { openSubMenu(item, ev.currentTarget); ev.preventDefault(); } }; return [onKeyDown, onKeyUp, onMenuKeyDown, onItemKeyDown]; } function useScrollHandler(asyncTracker) { var isScrollIdle = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](true); var scrollIdleTimeoutId = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](); /** * Scroll handler for the callout to make sure the mouse events * for updating focus are not interacting during scroll */ var onScroll = function () { if (!isScrollIdle.current && scrollIdleTimeoutId.current !== undefined) { asyncTracker.clearTimeout(scrollIdleTimeoutId.current); scrollIdleTimeoutId.current = undefined; } else { isScrollIdle.current = false; } scrollIdleTimeoutId.current = asyncTracker.setTimeout(function () { isScrollIdle.current = true; }, NavigationIdleDelay); }; return [onScroll, isScrollIdle]; } function useOnSubmenuDismiss(dismiss, closeSubMenu) { var isMountedRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { isMountedRef.current = true; return function () { isMountedRef.current = false; }; }, []); /** * This function is called ASYNCHRONOUSLY, and so there is a chance it is called * after the component is unmounted. The isMountedRef is added to prevent * from calling setState() after unmount. Do NOT copy this pattern in synchronous * code. */ var onSubMenuDismiss = function (ev, dismissAll) { if (dismissAll) { dismiss(ev, dismissAll); } else if (isMountedRef.current) { closeSubMenu(); } }; return onSubMenuDismiss; } function useSubmenuEnterTimer(_a, asyncTracker) { var _b = _a.subMenuHoverDelay, subMenuHoverDelay = _b === void 0 ? NavigationIdleDelay : _b; var enterTimerRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](undefined); var cancelSubMenuTimer = function () { if (enterTimerRef.current !== undefined) { asyncTracker.clearTimeout(enterTimerRef.current); enterTimerRef.current = undefined; } }; var startSubmenuTimer = function (onTimerExpired) { enterTimerRef.current = asyncTracker.setTimeout(function () { onTimerExpired(); cancelSubMenuTimer(); }, subMenuHoverDelay); }; return [cancelSubMenuTimer, startSubmenuTimer, enterTimerRef]; } function useMouseHandlers(props, isScrollIdle, subMenuEntryTimer, targetWindow, shouldUpdateFocusOnMouseEvent, gotMouseMove, expandedMenuItemKey, hostElement, startSubmenuTimer, cancelSubMenuTimer, openSubMenu, onSubMenuDismiss, dismiss) { var menuTarget = props.target; var onItemMouseEnterBase = function (item, ev, target) { if (shouldUpdateFocusOnMouseEvent.current) { gotMouseMove.current = true; } if (shouldIgnoreMouseEvent()) { return; } updateFocusOnMouseEvent(item, ev, target); }; var onItemMouseMoveBase = function (item, ev, target) { var targetElement = ev.currentTarget; // Always do this check to make sure we record a mouseMove if needed (even if we are timed out) if (shouldUpdateFocusOnMouseEvent.current) { gotMouseMove.current = true; } else { return; } if (!isScrollIdle.current || subMenuEntryTimer.current !== undefined || targetElement === (targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.activeElement)) { return; } updateFocusOnMouseEvent(item, ev, target); }; var shouldIgnoreMouseEvent = function () { return !isScrollIdle.current || !gotMouseMove.current; }; var onMouseItemLeave = function (item, ev) { var _a; if (shouldIgnoreMouseEvent()) { return; } cancelSubMenuTimer(); if (expandedMenuItemKey !== undefined) { return; } /** * IE11 focus() method forces parents to scroll to top of element. * Edge and IE expose a setActive() function for focusable divs that * sets the page focus but does not scroll the parent element. */ if (hostElement.current.setActive) { try { hostElement.current.setActive(); } catch (e) { /* no-op */ } } else { (_a = hostElement.current) === null || _a === void 0 ? void 0 : _a.focus(); } }; /** * Handles updating focus when mouseEnter or mouseMove fire. * As part of updating focus, This function will also update * the expand/collapse state accordingly. */ var updateFocusOnMouseEvent = function (item, ev, target) { var targetElement = target ? target : ev.currentTarget; if (item.key === expandedMenuItemKey) { return; } cancelSubMenuTimer(); // If the menu is not expanded we can update focus without any delay if (expandedMenuItemKey === undefined) { targetElement.focus(); } // Delay updating expanding/dismissing the submenu // and only set focus if we have not already done so if (Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["hasSubmenu"])(item)) { ev.stopPropagation(); startSubmenuTimer(function () { targetElement.focus(); openSubMenu(item, targetElement, true); }); } else { startSubmenuTimer(function () { onSubMenuDismiss(ev); targetElement.focus(); }); } }; var onItemClick = function (item, ev) { onItemClickBase(item, ev, ev.currentTarget); }; var onItemClickBase = function (item, ev, target) { var items = getSubmenuItems(item, { target: menuTarget }); // Cancel an async menu item hover timeout action from being taken and instead // just trigger the click event instead. cancelSubMenuTimer(); if (!Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["hasSubmenu"])(item) && (!items || !items.length)) { // This is an item without a menu. Click it. executeItemClick(item, ev); } else { if (item.key !== expandedMenuItemKey) { // This has a collapsed sub menu. Expand it. // focus on the container by default when the menu is opened with a click event // this differentiates from a keyboard interaction triggering the click event var shouldFocusOnContainer = typeof props.shouldFocusOnContainer === 'boolean' ? props.shouldFocusOnContainer : ev.nativeEvent.pointerType === 'mouse'; openSubMenu(item, target, shouldFocusOnContainer); } } ev.stopPropagation(); ev.preventDefault(); }; var onAnchorClick = function (item, ev) { executeItemClick(item, ev); ev.stopPropagation(); }; var executeItemClick = function (item, ev) { if (item.disabled || item.isDisabled) { return; } if (item.preferMenuTargetAsEventTarget) { overrideTarget(ev, menuTarget); } var shouldDismiss = false; if (item.onClick) { shouldDismiss = !!item.onClick(ev, item); } else if (props.onItemClick) { shouldDismiss = !!props.onItemClick(ev, item); } if (shouldDismiss || !ev.defaultPrevented) { dismiss(ev, true); } }; return [ onItemMouseEnterBase, onItemMouseMoveBase, onMouseItemLeave, onItemClick, onAnchorClick, executeItemClick, onItemClickBase, ]; } //#endregion var ContextualMenuBase = react__WEBPACK_IMPORTED_MODULE_1__["memo"](react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var _a; var _b = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults), ref = _b.ref, props = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_b, ["ref"]); var hostElement = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var asyncTracker = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["useAsync"])(); var menuId = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["useId"])(COMPONENT_NAME, props.id); Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["useWarnings"])({ name: COMPONENT_NAME, props: props, deprecations: { getMenuClassNames: 'styles', }, }); var dismiss = function (ev, dismissAll) { var _a; return (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props, ev, dismissAll); }; var _c = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_12__["useTarget"])(props.target, hostElement), targetRef = _c[0], targetWindow = _c[1]; var tryFocusPreviousActiveElement = usePreviousActiveElement(props, targetWindow, hostElement)[0]; var _d = useSubMenuState(props, dismiss), expandedMenuItemKey = _d[0], openSubMenu = _d[1], getSubmenuProps = _d[2], onSubMenuDismiss = _d[3]; var _e = useShouldUpdateFocusOnMouseMove(props), shouldUpdateFocusOnMouseEvent = _e[0], gotMouseMove = _e[1], onMenuFocusCapture = _e[2]; var _f = useScrollHandler(asyncTracker), onScroll = _f[0], isScrollIdle = _f[1]; var _g = useSubmenuEnterTimer(props, asyncTracker), cancelSubMenuTimer = _g[0], startSubmenuTimer = _g[1], subMenuEntryTimer = _g[2]; var responsiveMode = Object(_ResponsiveMode__WEBPACK_IMPORTED_MODULE_13__["useResponsiveMode"])(hostElement, props.responsiveMode); useVisibility(props, targetWindow); var _h = useKeyHandlers(props, dismiss, hostElement, openSubMenu), onKeyDown = _h[0], onKeyUp = _h[1], onMenuKeyDown = _h[2], onItemKeyDown = _h[3]; var _j = useMouseHandlers(props, isScrollIdle, subMenuEntryTimer, targetWindow, shouldUpdateFocusOnMouseEvent, gotMouseMove, expandedMenuItemKey, hostElement, startSubmenuTimer, cancelSubMenuTimer, openSubMenu, onSubMenuDismiss, dismiss), onItemMouseEnterBase = _j[0], onItemMouseMoveBase = _j[1], onMouseItemLeave = _j[2], onItemClick = _j[3], onAnchorClick = _j[4], executeItemClick = _j[5], onItemClickBase = _j[6]; //#region Render helpers var onDefaultRenderMenuList = function (menuListProps, // eslint-disable-next-line deprecation/deprecation menuClassNames, defaultRender) { var indexCorrection = 0; var items = menuListProps.items, totalItemCount = menuListProps.totalItemCount, hasCheckmarks = menuListProps.hasCheckmarks, hasIcons = menuListProps.hasIcons; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", { className: menuClassNames.list, onKeyDown: onKeyDown, onKeyUp: onKeyUp, role: 'presentation' }, items.map(function (item, index) { var menuItem = renderMenuItem(item, index, indexCorrection, totalItemCount, hasCheckmarks, hasIcons, menuClassNames); if (item.itemType !== _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Divider && item.itemType !== _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Header) { var indexIncrease = item.customOnRenderListLength ? item.customOnRenderListLength : 1; indexCorrection += indexIncrease; } return menuItem; }))); }; var renderFocusZone = function (children, adjustedFocusZoneProps) { var _a = props.focusZoneAs, ChildrenRenderer = _a === void 0 ? _FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZone"] : _a; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ChildrenRenderer, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, adjustedFocusZoneProps), children); }; /** * !!!IMPORTANT!!! Avoid mutating `item: IContextualMenuItem` argument. It will * cause the menu items to always re-render because the component update is based on shallow comparison. */ var renderMenuItem = function (item, index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons, // eslint-disable-next-line deprecation/deprecation menuClassNames) { var _a; var renderedItems = []; var iconProps = item.iconProps || { iconName: 'None' }; var getItemClassNames = item.getItemClassNames, // eslint-disable-line deprecation/deprecation itemProps = item.itemProps; var styles = itemProps ? itemProps.styles : undefined; // We only send a dividerClassName when the item to be rendered is a divider. // For all other cases, the default divider style is used. var dividerClassName = item.itemType === _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Divider ? item.className : undefined; var subMenuIconClassName = item.submenuIconProps ? item.submenuIconProps.className : ''; // eslint-disable-next-line deprecation/deprecation var itemClassNames; // IContextualMenuItem#getItemClassNames for backwards compatibility // otherwise uses mergeStyles for class names. if (getItemClassNames) { itemClassNames = getItemClassNames(props.theme, Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["isItemDisabled"])(item), expandedMenuItemKey === item.key, !!Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["getIsChecked"])(item), !!item.href, iconProps.iconName !== 'None', item.className, dividerClassName, iconProps.className, subMenuIconClassName, item.primaryDisabled); } else { var itemStyleProps = { theme: props.theme, disabled: Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["isItemDisabled"])(item), expanded: expandedMenuItemKey === item.key, checked: !!Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["getIsChecked"])(item), isAnchorLink: !!item.href, knownIcon: iconProps.iconName !== 'None', itemClassName: item.className, dividerClassName: dividerClassName, iconClassName: iconProps.className, subMenuClassName: subMenuIconClassName, primaryDisabled: item.primaryDisabled, }; // We need to generate default styles then override if styles are provided // since the ContextualMenu currently handles item classNames. itemClassNames = getContextualMenuItemClassNames(_getMenuItemStylesFunction((_a = menuClassNames.subComponentStyles) === null || _a === void 0 ? void 0 : _a.menuItem, styles), itemStyleProps); } // eslint-disable-next-line deprecation/deprecation if (item.text === '-' || item.name === '-') { item.itemType = _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Divider; } switch (item.itemType) { case _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Divider: renderedItems.push(renderSeparator(index, itemClassNames)); break; case _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Header: renderedItems.push(renderSeparator(index, itemClassNames)); var headerItem = renderHeaderMenuItem(item, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons); renderedItems.push(renderListItem(headerItem, item.key || index, itemClassNames, item.title)); break; case _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Section: renderedItems.push(renderSectionItem(item, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons)); break; default: var defaultRenderNormalItem = function () { return renderNormalItem(item, itemClassNames, index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons); }; var menuItem = props.onRenderContextualMenuItem ? props.onRenderContextualMenuItem(item, defaultRenderNormalItem) : defaultRenderNormalItem(); renderedItems.push(renderListItem(menuItem, item.key || index, itemClassNames, item.title)); break; } // Since multiple nodes *could* be rendered, wrap them all in a fragment with this item's key. // This ensures the reconciler handles multi-item output per-node correctly and does not re-mount content. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], { key: item.key }, renderedItems); }; var defaultMenuItemRenderer = function (item, // eslint-disable-next-line deprecation/deprecation menuClassNames) { var index = item.index, focusableElementIndex = item.focusableElementIndex, totalItemCount = item.totalItemCount, hasCheckmarks = item.hasCheckmarks, hasIcons = item.hasIcons; return renderMenuItem(item, index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons, menuClassNames); }; var renderSectionItem = function (sectionItem, // eslint-disable-next-line deprecation/deprecation itemClassNames, // eslint-disable-next-line deprecation/deprecation menuClassNames, index, hasCheckmarks, hasIcons) { var sectionProps = sectionItem.sectionProps; if (!sectionProps) { return; } var headerItem; var groupProps; if (sectionProps.title) { var headerContextualMenuItem = undefined; var ariaLabelledby = ''; if (typeof sectionProps.title === 'string') { // Since title is a user-facing string, it needs to be stripped // of whitespace in order to build a valid element ID var id_1 = menuId + sectionProps.title.replace(/\s/g, ''); headerContextualMenuItem = { key: "section-" + sectionProps.title + "-title", itemType: _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Header, text: sectionProps.title, id: id_1, }; ariaLabelledby = id_1; } else { var id_2 = sectionProps.title.id || menuId + sectionProps.title.key.replace(/\s/g, ''); headerContextualMenuItem = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, sectionProps.title), { id: id_2 }); ariaLabelledby = id_2; } if (headerContextualMenuItem) { groupProps = { role: 'group', 'aria-labelledby': ariaLabelledby, }; headerItem = renderHeaderMenuItem(headerContextualMenuItem, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons); } } if (sectionProps.items && sectionProps.items.length > 0) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { role: "presentation", key: sectionProps.key || sectionItem.key || "section-" + index }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, groupProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", { className: menuClassNames.list, role: "presentation" }, sectionProps.topDivider && renderSeparator(index, itemClassNames, true, true), headerItem && renderListItem(headerItem, sectionItem.key || index, itemClassNames, sectionItem.title), sectionProps.items.map(function (contextualMenuItem, itemsIndex) { return renderMenuItem(contextualMenuItem, itemsIndex, itemsIndex, sectionProps.items.length, hasCheckmarks, hasIcons, menuClassNames); }), sectionProps.bottomDivider && renderSeparator(index, itemClassNames, false, true))))); } }; var renderListItem = function (content, key, classNames, // eslint-disable-line deprecation/deprecation title) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { role: "presentation", title: title, key: key, className: classNames.item }, content)); }; var renderSeparator = function (index, classNames, // eslint-disable-line deprecation/deprecation top, fromSection) { if (fromSection || index > 0) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { role: "separator", key: 'separator-' + index + (top === undefined ? '' : top ? '-top' : '-bottom'), className: classNames.divider, "aria-hidden": "true" })); } return null; }; var renderNormalItem = function (item, classNames, // eslint-disable-line deprecation/deprecation index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons) { if (item.onRender) { return item.onRender(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ 'aria-posinset': focusableElementIndex + 1, 'aria-setsize': totalItemCount }, item), dismiss); } var contextualMenuItemAs = props.contextualMenuItemAs; var commonProps = { item: item, classNames: classNames, index: index, focusableElementIndex: focusableElementIndex, totalItemCount: totalItemCount, hasCheckmarks: hasCheckmarks, hasIcons: hasIcons, contextualMenuItemAs: contextualMenuItemAs, onItemMouseEnter: onItemMouseEnterBase, onItemMouseLeave: onMouseItemLeave, onItemMouseMove: onItemMouseMoveBase, onItemMouseDown: onItemMouseDown, executeItemClick: executeItemClick, onItemKeyDown: onItemKeyDown, expandedMenuItemKey: expandedMenuItemKey, openSubMenu: openSubMenu, dismissSubMenu: onSubMenuDismiss, dismissMenu: dismiss, }; if (item.href) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ContextualMenuItemWrapper_index__WEBPACK_IMPORTED_MODULE_9__["ContextualMenuAnchor"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, commonProps, { onItemClick: onAnchorClick })); } if (item.split && Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["hasSubmenu"])(item)) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ContextualMenuItemWrapper_index__WEBPACK_IMPORTED_MODULE_9__["ContextualMenuSplitButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, commonProps, { onItemClick: onItemClick, onItemClickBase: onItemClickBase, onTap: cancelSubMenuTimer }))); } return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_ContextualMenuItemWrapper_index__WEBPACK_IMPORTED_MODULE_9__["ContextualMenuButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, commonProps, { onItemClick: onItemClick, onItemClickBase: onItemClickBase })); }; var renderHeaderMenuItem = function (item, // eslint-disable-next-line deprecation/deprecation itemClassNames, // eslint-disable-next-line deprecation/deprecation menuClassNames, index, hasCheckmarks, hasIcons) { var _a = props.contextualMenuItemAs, ChildrenRenderer = _a === void 0 ? _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_8__["ContextualMenuItem"] : _a; var itemProps = item.itemProps, id = item.id; var divHtmlProperties = itemProps && Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["getNativeProps"])(itemProps, _Utilities__WEBPACK_IMPORTED_MODULE_5__["divProperties"]); return ( // eslint-disable-next-line deprecation/deprecation react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: id, className: menuClassNames.header }, divHtmlProperties, { style: item.style }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ChildrenRenderer, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ item: item, classNames: itemClassNames, index: index, onCheckmarkClick: hasCheckmarks ? onItemClick : undefined, hasIcons: hasIcons }, itemProps)))); }; //#endregion //#region Main render var isBeakVisible = props.isBeakVisible; var items = props.items, labelElementId = props.labelElementId, id = props.id, className = props.className, beakWidth = props.beakWidth, directionalHint = props.directionalHint, directionalHintForRTL = props.directionalHintForRTL, alignTargetEdge = props.alignTargetEdge, gapSpace = props.gapSpace, coverTarget = props.coverTarget, ariaLabel = props.ariaLabel, doNotLayer = props.doNotLayer, target = props.target, bounds = props.bounds, useTargetWidth = props.useTargetWidth, useTargetAsMinWidth = props.useTargetAsMinWidth, directionalHintFixed = props.directionalHintFixed, shouldFocusOnMount = props.shouldFocusOnMount, shouldFocusOnContainer = props.shouldFocusOnContainer, title = props.title, styles = props.styles, theme = props.theme, calloutProps = props.calloutProps, _k = props.onRenderSubMenu, onRenderSubMenu = _k === void 0 ? onDefaultRenderSubMenu : _k, _l = props.onRenderMenuList, onRenderMenuList = _l === void 0 ? function (menuListProps, defaultRender) { return onDefaultRenderMenuList(menuListProps, classNames, defaultRender); } : _l, focusZoneProps = props.focusZoneProps, // eslint-disable-next-line deprecation/deprecation getMenuClassNames = props.getMenuClassNames; var classNames = getMenuClassNames ? getMenuClassNames(theme, className) : getClassNames(styles, { theme: theme, className: className, }); var hasIcons = itemsHaveIcons(items); function itemsHaveIcons(contextualMenuItems) { for (var _i = 0, contextualMenuItems_1 = contextualMenuItems; _i < contextualMenuItems_1.length; _i++) { var item = contextualMenuItems_1[_i]; if (item.iconProps) { return true; } if (item.itemType === _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Section && item.sectionProps && itemsHaveIcons(item.sectionProps.items)) { return true; } } return false; } var adjustedFocusZoneProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ direction: _FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZoneDirection"].vertical, handleTabKey: _FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZoneTabbableElements"].all, isCircularNavigation: true }, focusZoneProps), { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["css"])(classNames.root, (_a = props.focusZoneProps) === null || _a === void 0 ? void 0 : _a.className) }); var hasCheckmarks = canAnyMenuItemsCheck(items); var submenuProps = expandedMenuItemKey && props.hidden !== true ? getSubmenuProps() : null; isBeakVisible = isBeakVisible === undefined ? responsiveMode <= _ResponsiveMode__WEBPACK_IMPORTED_MODULE_13__["ResponsiveMode"].medium : isBeakVisible; /** * When useTargetWidth is true, get the width of the target element and apply it for the context menu container */ var contextMenuStyle; var targetAsHtmlElement = targetRef.current; if ((useTargetWidth || useTargetAsMinWidth) && targetAsHtmlElement && targetAsHtmlElement.offsetWidth) { var targetBoundingRect = targetAsHtmlElement.getBoundingClientRect(); var targetWidth = targetBoundingRect.width - 2; /* Accounts for 1px border */ if (useTargetWidth) { contextMenuStyle = { width: targetWidth, }; } else if (useTargetAsMinWidth) { contextMenuStyle = { minWidth: targetWidth, }; } } // The menu should only return if items were provided, if no items were provided then it should not appear. if (items && items.length > 0) { var totalItemCount_1 = 0; for (var _i = 0, items_2 = items; _i < items_2.length; _i++) { var item = items_2[_i]; if (item.itemType !== _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Divider && item.itemType !== _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Header) { var itemCount = item.customOnRenderListLength ? item.customOnRenderListLength : 1; totalItemCount_1 += itemCount; } } var calloutStyles_1 = classNames.subComponentStyles ? classNames.subComponentStyles.callout : undefined; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_utilities_MenuContext_index__WEBPACK_IMPORTED_MODULE_14__["MenuContext"].Consumer, null, function (menuContext) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Callout__WEBPACK_IMPORTED_MODULE_7__["Callout"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ styles: calloutStyles_1, onRestoreFocus: tryFocusPreviousActiveElement }, calloutProps, { target: target || menuContext.target, isBeakVisible: isBeakVisible, beakWidth: beakWidth, directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL, gapSpace: gapSpace, coverTarget: coverTarget, doNotLayer: doNotLayer, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["css"])('ms-ContextualMenu-Callout', calloutProps && calloutProps.className), setInitialFocus: shouldFocusOnMount, onDismiss: props.onDismiss || menuContext.onDismiss, onScroll: onScroll, bounds: bounds, directionalHintFixed: directionalHintFixed, alignTargetEdge: alignTargetEdge, hidden: props.hidden || menuContext.hidden, ref: forwardedRef }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { style: contextMenuStyle, ref: hostElement, id: id, className: classNames.container, tabIndex: shouldFocusOnContainer ? 0 : -1, onKeyDown: onMenuKeyDown, onKeyUp: onKeyUp, onFocusCapture: onMenuFocusCapture, "aria-label": ariaLabel, "aria-labelledby": labelElementId, role: 'menu' }, title && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.title }, " ", title, " "), items && items.length ? renderFocusZone(onRenderMenuList({ ariaLabel: ariaLabel, items: items, totalItemCount: totalItemCount_1, hasCheckmarks: hasCheckmarks, hasIcons: hasIcons, defaultMenuItemRenderer: function (item) { return defaultMenuItemRenderer(item, classNames); }, labelElementId: labelElementId, }, function (menuListProps, defaultRender) { return onDefaultRenderMenuList(menuListProps, classNames, defaultRender); }), adjustedFocusZoneProps) : null, submenuProps && onRenderSubMenu(submenuProps, onDefaultRenderSubMenu)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Utilities__WEBPACK_IMPORTED_MODULE_5__["FocusRects"], null))); })); } else { return null; } //#endregion }), function (prevProps, newProps) { if (!newProps.shouldUpdateWhenHidden && prevProps.hidden && newProps.hidden) { // Do not update when hidden. return true; } return Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["shallowCompare"])(prevProps, newProps); }); ContextualMenuBase.displayName = 'ContextualMenuBase'; /** * Returns true if the key for the event is alt (Mac option) or meta (Mac command). */ function isAltOrMeta(ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_5__["KeyCodes"].alt || ev.key === 'Meta'; } function onItemMouseDown(item, ev) { var _a; (_a = item.onMouseDown) === null || _a === void 0 ? void 0 : _a.call(item, item, ev); } function onDefaultRenderSubMenu(subMenuProps, defaultRender) { throw Error('ContextualMenuBase: onRenderSubMenu callback is null or undefined. ' + 'Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.'); } /** * Returns the item that matches a given key if any. * @param key - The key of the item to match * @param items - The items to look for the key */ function findItemByKeyFromItems(key, items) { for (var _i = 0, items_3 = items; _i < items_3.length; _i++) { var item = items_3[_i]; if (item.itemType === _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"].Section && item.sectionProps) { var match = findItemByKeyFromItems(key, item.sectionProps.items); if (match) { return match; } } else if (item.key && item.key === key) { return item; } } } function getOnClickWithOverrideTarget(onClick, target) { return onClick ? function (ev, item) { overrideTarget(ev, target); return onClick(ev, item); } : onClick; } function overrideTarget(ev, target) { if (ev && target) { ev.persist(); if (target instanceof Event) { ev.target = target.target; } else if (target instanceof Element) { ev.target = target; } } } //# sourceMappingURL=ContextualMenu.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js ***! \*************************************************************************************************/ /*! exports provided: getSplitButtonVerticalDividerClassNames, getItemClassNames, getItemStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSplitButtonVerticalDividerClassNames", function() { return getSplitButtonVerticalDividerClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemClassNames", function() { return getItemClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemStyles", function() { return getItemStyles; }); /* harmony import */ var _Divider_VerticalDivider_classNames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Divider/VerticalDivider.classNames */ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.classNames.js"); /* harmony import */ var _ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextualMenu.cnstyles */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var CONTEXTUAL_SPLIT_MENU_MINWIDTH = '28px'; var MediumScreenSelector = Object(_Styling__WEBPACK_IMPORTED_MODULE_2__["getScreenSelector"])(0, _Styling__WEBPACK_IMPORTED_MODULE_2__["ScreenWidthMaxMedium"]); var getSplitButtonVerticalDividerClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["memoizeFunction"])( /* eslint-disable deprecation/deprecation */ function (theme) { var _a; return Object(_Styling__WEBPACK_IMPORTED_MODULE_2__["mergeStyleSets"])(Object(_Divider_VerticalDivider_classNames__WEBPACK_IMPORTED_MODULE_0__["getDividerClassNames"])(theme), { /* eslint-enable deprecation/deprecation */ wrapper: { position: 'absolute', right: 28, selectors: (_a = {}, _a[MediumScreenSelector] = { right: 32, // fontSize of the icon increased from 12px to 16px }, _a), }, divider: { height: 16, width: 1, }, }); }); var GlobalClassNames = { item: 'ms-ContextualMenu-item', divider: 'ms-ContextualMenu-divider', root: 'ms-ContextualMenu-link', isChecked: 'is-checked', isExpanded: 'is-expanded', isDisabled: 'is-disabled', linkContent: 'ms-ContextualMenu-linkContent', linkContentMenu: 'ms-ContextualMenu-linkContent', icon: 'ms-ContextualMenu-icon', iconColor: 'ms-ContextualMenu-iconColor', checkmarkIcon: 'ms-ContextualMenu-checkmarkIcon', subMenuIcon: 'ms-ContextualMenu-submenuIcon', label: 'ms-ContextualMenu-itemText', secondaryText: 'ms-ContextualMenu-secondaryText', splitMenu: 'ms-ContextualMenu-splitMenu', screenReaderText: 'ms-ContextualMenu-screenReaderText', }; /** * @deprecated Will be removed in \>= 7.0. * This is a package-internal method that has been depended on. * It is being kept in this form for backwards compatibility. * @internal */ // TODO: Audit perf. impact of and potentially remove memoizeFunction. // https://github.com/microsoft/fluentui/issues/5534 var getItemClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["memoizeFunction"])(function (theme, disabled, expanded, checked, isAnchorLink, knownIcon, itemClassName, dividerClassName, iconClassName, subMenuClassName, primaryDisabled, className) { var _a, _b, _c, _d; var styles = Object(_ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_1__["getMenuItemStyles"])(theme); var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_2__["getGlobalClassNames"])(GlobalClassNames, theme); return Object(_Styling__WEBPACK_IMPORTED_MODULE_2__["mergeStyleSets"])({ item: [classNames.item, styles.item, itemClassName], divider: [classNames.divider, styles.divider, dividerClassName], root: [ classNames.root, styles.root, checked && [classNames.isChecked, styles.rootChecked], isAnchorLink && styles.anchorLink, expanded && [classNames.isExpanded, styles.rootExpanded], disabled && [classNames.isDisabled, styles.rootDisabled], !disabled && !expanded && [ { selectors: (_a = { ':hover': styles.rootHovered, ':active': styles.rootPressed }, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus, ." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus:hover"] = styles.rootFocused, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:hover"] = { background: 'inherit;' }, _a), }, ], className, ], splitPrimary: [ styles.root, { width: "calc(100% - " + CONTEXTUAL_SPLIT_MENU_MINWIDTH + ")", }, checked && ['is-checked', styles.rootChecked], (disabled || primaryDisabled) && ['is-disabled', styles.rootDisabled], !(disabled || primaryDisabled) && !checked && [ { selectors: (_b = { ':hover': styles.rootHovered }, // when hovering over the splitPrimary also affect the splitMenu _b[":hover ~ ." + classNames.splitMenu] = styles.rootHovered, _b[':active'] = styles.rootPressed, _b["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus, ." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus:hover"] = styles.rootFocused, _b["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:hover"] = { background: 'inherit;' }, _b), }, ], ], splitMenu: [ classNames.splitMenu, styles.root, { flexBasis: '0', padding: '0 8px', minWidth: CONTEXTUAL_SPLIT_MENU_MINWIDTH, }, expanded && ['is-expanded', styles.rootExpanded], disabled && ['is-disabled', styles.rootDisabled], !disabled && !expanded && [ { selectors: (_c = { ':hover': styles.rootHovered, ':active': styles.rootPressed }, _c["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus, ." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus:hover"] = styles.rootFocused, _c["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:hover"] = { background: 'inherit;' }, _c), }, ], ], anchorLink: styles.anchorLink, linkContent: [classNames.linkContent, styles.linkContent], linkContentMenu: [ classNames.linkContentMenu, styles.linkContent, { justifyContent: 'center', }, ], icon: [ classNames.icon, knownIcon && styles.iconColor, styles.icon, iconClassName, disabled && [classNames.isDisabled, styles.iconDisabled], ], iconColor: styles.iconColor, checkmarkIcon: [classNames.checkmarkIcon, knownIcon && styles.checkmarkIcon, styles.icon, iconClassName], subMenuIcon: [ classNames.subMenuIcon, styles.subMenuIcon, subMenuClassName, expanded && { color: theme.palette.neutralPrimary }, disabled && [styles.iconDisabled], ], label: [classNames.label, styles.label], secondaryText: [classNames.secondaryText, styles.secondaryText], splitContainer: [ styles.splitButtonFlexContainer, !disabled && !checked && [ { selectors: (_d = {}, _d["." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus, ." + _Utilities__WEBPACK_IMPORTED_MODULE_3__["IsFocusVisibleClassName"] + " &:focus:hover"] = styles.rootFocused, _d), }, ], ], screenReaderText: [ classNames.screenReaderText, styles.screenReaderText, _Styling__WEBPACK_IMPORTED_MODULE_2__["hiddenContentStyle"], { visibility: 'hidden' }, ], }); }); /** * Wrapper function for generating ContextualMenuItem classNames which adheres to * the getStyles API, but invokes memoized className generator function with * primitive values. * * @param props - the ContextualMenuItem style props used to generate its styles. */ var getItemStyles = function (props) { var theme = props.theme, disabled = props.disabled, expanded = props.expanded, checked = props.checked, isAnchorLink = props.isAnchorLink, knownIcon = props.knownIcon, itemClassName = props.itemClassName, dividerClassName = props.dividerClassName, iconClassName = props.iconClassName, subMenuClassName = props.subMenuClassName, primaryDisabled = props.primaryDisabled, className = props.className; // eslint-disable-next-line deprecation/deprecation return getItemClassNames(theme, disabled, expanded, checked, isAnchorLink, knownIcon, itemClassName, dividerClassName, iconClassName, subMenuClassName, primaryDisabled, className); }; //# sourceMappingURL=ContextualMenu.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js ***! \***********************************************************************************************/ /*! exports provided: CONTEXTUAL_MENU_ITEM_HEIGHT, getMenuItemStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONTEXTUAL_MENU_ITEM_HEIGHT", function() { return CONTEXTUAL_MENU_ITEM_HEIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMenuItemStyles", function() { return getMenuItemStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var CONTEXTUAL_MENU_ITEM_HEIGHT = 36; var MediumScreenSelector = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getScreenSelector"])(0, _Styling__WEBPACK_IMPORTED_MODULE_1__["ScreenWidthMaxMedium"]); var getMenuItemStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme) { var _a, _b, _c, _d, _e; var semanticColors = theme.semanticColors, fonts = theme.fonts, palette = theme.palette; var ContextualMenuItemBackgroundHoverColor = semanticColors.menuItemBackgroundHovered; var ContextualMenuItemTextHoverColor = semanticColors.menuItemTextHovered; var ContextualMenuItemBackgroundSelectedColor = semanticColors.menuItemBackgroundPressed; var ContextualMenuItemDividerColor = semanticColors.bodyDivider; var menuItemStyles = { item: [ fonts.medium, { color: semanticColors.bodyText, position: 'relative', boxSizing: 'border-box', }, ], divider: { display: 'block', height: '1px', backgroundColor: ContextualMenuItemDividerColor, position: 'relative', }, root: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme), fonts.medium, { color: semanticColors.bodyText, backgroundColor: 'transparent', border: 'none', width: '100%', height: CONTEXTUAL_MENU_ITEM_HEIGHT, lineHeight: CONTEXTUAL_MENU_ITEM_HEIGHT, display: 'block', cursor: 'pointer', padding: '0px 8px 0 4px', textAlign: 'left', }, ], rootDisabled: { color: semanticColors.disabledBodyText, cursor: 'default', pointerEvents: 'none', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { // ensure disabled text looks different than enabled color: 'GrayText', opacity: 1, }, _a), }, rootHovered: { backgroundColor: ContextualMenuItemBackgroundHoverColor, color: ContextualMenuItemTextHoverColor, selectors: { '.ms-ContextualMenu-icon': { color: palette.themeDarkAlt, }, '.ms-ContextualMenu-submenuIcon': { color: palette.neutralPrimary, }, }, }, rootFocused: { backgroundColor: palette.white, }, rootChecked: { selectors: { '.ms-ContextualMenu-checkmarkIcon': { color: palette.neutralPrimary, }, }, }, rootPressed: { backgroundColor: ContextualMenuItemBackgroundSelectedColor, selectors: { '.ms-ContextualMenu-icon': { color: palette.themeDark, }, '.ms-ContextualMenu-submenuIcon': { color: palette.neutralPrimary, }, }, }, rootExpanded: { backgroundColor: ContextualMenuItemBackgroundSelectedColor, color: semanticColors.bodyTextChecked, selectors: (_b = { '.ms-ContextualMenu-submenuIcon': (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { // icons inside of anchor tags are not properly inheriting color in high contrast color: 'inherit', }, _c) }, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _b), }, linkContent: { whiteSpace: 'nowrap', height: 'inherit', display: 'flex', alignItems: 'center', maxWidth: '100%', }, anchorLink: { padding: '0px 8px 0 4px', textRendering: 'auto', color: 'inherit', letterSpacing: 'normal', wordSpacing: 'normal', textTransform: 'none', textIndent: '0px', textShadow: 'none', textDecoration: 'none', boxSizing: 'border-box', }, label: { margin: '0 4px', verticalAlign: 'middle', display: 'inline-block', flexGrow: '1', textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden', }, secondaryText: { color: theme.palette.neutralSecondary, paddingLeft: '20px', textAlign: 'right', }, icon: { display: 'inline-block', minHeight: '1px', maxHeight: CONTEXTUAL_MENU_ITEM_HEIGHT, fontSize: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].medium, width: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].medium, margin: '0 4px', verticalAlign: 'middle', flexShrink: '0', selectors: (_d = {}, _d[MediumScreenSelector] = { fontSize: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].large, width: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].large, }, _d), }, iconColor: { color: semanticColors.menuIcon, }, iconDisabled: { color: semanticColors.disabledBodyText, }, checkmarkIcon: { color: semanticColors.bodySubtext, }, subMenuIcon: { height: CONTEXTUAL_MENU_ITEM_HEIGHT, lineHeight: CONTEXTUAL_MENU_ITEM_HEIGHT, color: palette.neutralSecondary, textAlign: 'center', display: 'inline-block', verticalAlign: 'middle', flexShrink: '0', fontSize: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].small, selectors: (_e = { ':hover': { color: palette.neutralPrimary, }, ':active': { color: palette.neutralPrimary, } }, _e[MediumScreenSelector] = { fontSize: _Styling__WEBPACK_IMPORTED_MODULE_1__["IconFontSizes"].medium, // 16px }, _e), }, splitButtonFlexContainer: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme), { display: 'flex', height: CONTEXTUAL_MENU_ITEM_HEIGHT, flexWrap: 'nowrap', justifyContent: 'center', alignItems: 'flex-start', }, ], }; return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(menuItemStyles); }); //# sourceMappingURL=ContextualMenu.cnstyles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.js ***! \**************************************************************************************/ /*! exports provided: ContextualMenu */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenu", function() { return ContextualMenu; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ContextualMenu_base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextualMenu.base */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js"); /* harmony import */ var _ContextualMenu_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ContextualMenu.styles */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.styles.js"); function onRenderSubMenu(subMenuProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](LocalContextualMenu, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, subMenuProps)); } // This is to prevent cyclic import with ContextualMenu.base.tsx. var LocalContextualMenu = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["styled"])(_ContextualMenu_base__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuBase"], _ContextualMenu_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"], function (props) { return ({ onRenderSubMenu: props.onRenderSubMenu ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(props.onRenderSubMenu, onRenderSubMenu) : onRenderSubMenu, }); }, { scope: 'ContextualMenu' }); /** * ContextualMenu description */ var ContextualMenu = LocalContextualMenu; ContextualMenu.displayName = 'ContextualMenu'; //# sourceMappingURL=ContextualMenu.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.styles.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.styles.js ***! \*********************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextualMenu.cnstyles */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js"); var GlobalClassNames = { root: 'ms-ContextualMenu', container: 'ms-ContextualMenu-container', list: 'ms-ContextualMenu-list', header: 'ms-ContextualMenu-header', title: 'ms-ContextualMenu-title', isopen: 'is-open', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); var fonts = theme.fonts, semanticColors = theme.semanticColors, effects = theme.effects; return { root: [ theme.fonts.medium, classNames.root, classNames.isopen, { backgroundColor: semanticColors.menuBackground, minWidth: '180px', }, className, ], container: [ classNames.container, { selectors: { ':focus': { outline: 0 }, }, }, ], list: [ classNames.list, classNames.isopen, { listStyleType: 'none', margin: '0', padding: '0', }, ], header: [ classNames.header, fonts.small, { fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold, color: semanticColors.menuHeader, background: 'none', backgroundColor: 'transparent', border: 'none', height: _ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_1__["CONTEXTUAL_MENU_ITEM_HEIGHT"], lineHeight: _ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_1__["CONTEXTUAL_MENU_ITEM_HEIGHT"], cursor: 'default', padding: '0px 6px', userSelect: 'none', textAlign: 'left', }, ], title: [ classNames.title, { fontSize: fonts.mediumPlus.fontSize, paddingRight: '14px', paddingLeft: '14px', paddingBottom: '5px', paddingTop: '5px', backgroundColor: semanticColors.menuItemBackgroundPressed, }, ], subComponentStyles: { callout: { root: { boxShadow: effects.elevation8, }, }, menuItem: {}, }, }; }; //# sourceMappingURL=ContextualMenu.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js ***! \********************************************************************************************/ /*! exports provided: DirectionalHint, ContextualMenuItemType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemType", function() { return ContextualMenuItemType; }); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectionalHint", function() { return _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_0__["DirectionalHint"]; }); /** * {@docCategory ContextualMenu} */ var ContextualMenuItemType; (function (ContextualMenuItemType) { ContextualMenuItemType[ContextualMenuItemType["Normal"] = 0] = "Normal"; ContextualMenuItemType[ContextualMenuItemType["Divider"] = 1] = "Divider"; ContextualMenuItemType[ContextualMenuItemType["Header"] = 2] = "Header"; ContextualMenuItemType[ContextualMenuItemType["Section"] = 3] = "Section"; })(ContextualMenuItemType || (ContextualMenuItemType = {})); //# sourceMappingURL=ContextualMenu.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js ***! \***********************************************************************************************/ /*! exports provided: ContextualMenuItemBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemBase", function() { return ContextualMenuItemBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib/utilities/contextualMenu/index.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); var defaultIconRenderer = function (props) { var item = props.item, classNames = props.classNames; var iconProps = item.iconProps; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, iconProps, { className: classNames.icon })); }; var renderItemIcon = function (props) { var item = props.item, hasIcons = props.hasIcons; if (!hasIcons) { return null; } if (item.onRenderIcon) { return item.onRenderIcon(props, defaultIconRenderer); } return defaultIconRenderer(props); }; var renderCheckMarkIcon = function (_a) { var onCheckmarkClick = _a.onCheckmarkClick, item = _a.item, classNames = _a.classNames; var isItemChecked = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_2__["getIsChecked"])(item); if (onCheckmarkClick) { // Ensures that the item is passed as the first argument to the checkmark click callback. var onClick = function (e) { return onCheckmarkClick(item, e); }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], { iconName: item.canCheck !== false && isItemChecked ? 'CheckMark' : '', className: classNames.checkmarkIcon, // eslint-disable-next-line react/jsx-no-bind onClick: onClick })); } return null; }; var renderItemName = function (_a) { var item = _a.item, classNames = _a.classNames; /* eslint-disable deprecation/deprecation */ if (item.text || item.name) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.label }, item.text || item.name); } /* eslint-enable deprecation/deprecation */ return null; }; var renderSecondaryText = function (_a) { var item = _a.item, classNames = _a.classNames; if (item.secondaryText) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.secondaryText }, item.secondaryText); } return null; }; var renderSubMenuIcon = function (_a) { var item = _a.item, classNames = _a.classNames, theme = _a.theme; if (Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_2__["hasSubmenu"])(item)) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ iconName: Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["getRTL"])(theme) ? 'ChevronLeft' : 'ChevronRight' }, item.submenuIconProps, { className: classNames.subMenuIcon }))); } return null; }; var ContextualMenuItemBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContextualMenuItemBase, _super); function ContextualMenuItemBase(props) { var _this = _super.call(this, props) || this; _this.openSubMenu = function () { var _a = _this.props, item = _a.item, openSubMenu = _a.openSubMenu, getSubmenuTarget = _a.getSubmenuTarget; if (getSubmenuTarget) { var submenuTarget = getSubmenuTarget(); if (Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_2__["hasSubmenu"])(item) && openSubMenu && submenuTarget) { openSubMenu(item, submenuTarget); } } }; _this.dismissSubMenu = function () { var _a = _this.props, item = _a.item, dismissSubMenu = _a.dismissSubMenu; if (Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_2__["hasSubmenu"])(item) && dismissSubMenu) { dismissSubMenu(); } }; _this.dismissMenu = function (dismissAll) { var dismissMenu = _this.props.dismissMenu; if (dismissMenu) { dismissMenu(undefined /* ev */, dismissAll); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["initializeComponentRef"])(_this); return _this; } ContextualMenuItemBase.prototype.render = function () { var _a = this.props, item = _a.item, classNames = _a.classNames; var renderContent = item.onRenderContent || this._renderLayout; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: item.split ? classNames.linkContentMenu : classNames.linkContent }, renderContent(this.props, { renderCheckMarkIcon: renderCheckMarkIcon, renderItemIcon: renderItemIcon, renderItemName: renderItemName, renderSecondaryText: renderSecondaryText, renderSubMenuIcon: renderSubMenuIcon, }))); }; ContextualMenuItemBase.prototype._renderLayout = function (props, defaultRenders) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, defaultRenders.renderCheckMarkIcon(props), defaultRenders.renderItemIcon(props), defaultRenders.renderItemName(props), defaultRenders.renderSecondaryText(props), defaultRenders.renderSubMenuIcon(props))); }; return ContextualMenuItemBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=ContextualMenuItem.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js ***! \******************************************************************************************/ /*! exports provided: ContextualMenuItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItem", function() { return ContextualMenuItem; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ContextualMenuItem_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextualMenuItem.base */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js"); /* harmony import */ var _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js"); /** * ContextualMenuItem description */ var ContextualMenuItem = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ContextualMenuItem_base__WEBPACK_IMPORTED_MODULE_1__["ContextualMenuItemBase"], _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_2__["getItemStyles"], undefined, { scope: 'ContextualMenuItem' }); //# sourceMappingURL=ContextualMenuItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.types.js ***! \************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ContextualMenuItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js": /*!**********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js ***! \**********************************************************************************************************************/ /*! exports provided: ContextualMenuAnchor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuAnchor", function() { return ContextualMenuAnchor; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); /* harmony import */ var _KeytipData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../KeytipData */ "./node_modules/@fluentui/react/lib/KeytipData.js"); /* harmony import */ var _utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib/utilities/contextualMenu/index.js"); /* harmony import */ var _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ContextualMenuItem */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js"); var ContextualMenuAnchor = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContextualMenuAnchor, _super); function ContextualMenuAnchor() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._anchor = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._getMemoizedMenuButtonKeytipProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (keytipProps) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, keytipProps), { hasMenu: true }); }); _this._getSubmenuTarget = function () { return _this._anchor.current ? _this._anchor.current : undefined; }; _this._onItemClick = function (ev) { var _a = _this.props, item = _a.item, onItemClick = _a.onItemClick; if (onItemClick) { onItemClick(item, ev); } }; _this._renderAriaDescription = function (ariaDescription, className) { // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan return ariaDescription ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: _this._ariaDescriptionId, className: className }, ariaDescription)) : null; }; return _this; } ContextualMenuAnchor.prototype.render = function () { var _this = this; var _a = this.props, item = _a.item, classNames = _a.classNames, index = _a.index, focusableElementIndex = _a.focusableElementIndex, totalItemCount = _a.totalItemCount, hasCheckmarks = _a.hasCheckmarks, hasIcons = _a.hasIcons, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_6__["ContextualMenuItem"] : _b, expandedMenuItemKey = _a.expandedMenuItemKey, onItemClick = _a.onItemClick, openSubMenu = _a.openSubMenu, dismissSubMenu = _a.dismissSubMenu, dismissMenu = _a.dismissMenu; var anchorRel = item.rel; if (item.target && item.target.toLowerCase() === '_blank') { anchorRel = anchorRel ? anchorRel : 'nofollow noopener noreferrer'; // Safe default to prevent tabjacking } var itemHasSubmenu = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["hasSubmenu"])(item); var nativeProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(item, _Utilities__WEBPACK_IMPORTED_MODULE_2__["anchorProperties"]); var disabled = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["isItemDisabled"])(item); var itemProps = item.itemProps, ariaDescription = item.ariaDescription; var keytipProps = item.keytipProps; if (keytipProps && itemHasSubmenu) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with // the description in it to be added to ariaDescribedBy if (ariaDescription) { this._ariaDescriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); } var ariaDescribedByIds = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["mergeAriaAttributeValues"])(item.ariaDescribedBy, ariaDescription ? this._ariaDescriptionId : undefined, nativeProps['aria-describedby']); var additionalItemProperties = { 'aria-describedby': ariaDescribedByIds, }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_KeytipData__WEBPACK_IMPORTED_MODULE_4__["KeytipData"], { keytipProps: item.keytipProps, ariaDescribedBy: ariaDescribedByIds, disabled: disabled }, function (keytipAttributes) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("a", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, additionalItemProperties, nativeProps, keytipAttributes, { ref: _this._anchor, href: item.href, target: item.target, rel: anchorRel, className: classNames.root, role: "menuitem", "aria-haspopup": itemHasSubmenu || undefined, "aria-expanded": itemHasSubmenu ? item.key === expandedMenuItemKey : undefined, "aria-posinset": focusableElementIndex + 1, "aria-setsize": totalItemCount, "aria-disabled": Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["isItemDisabled"])(item), // eslint-disable-next-line deprecation/deprecation style: item.style, onClick: _this._onItemClick, onMouseEnter: _this._onItemMouseEnter, onMouseLeave: _this._onItemMouseLeave, onMouseMove: _this._onItemMouseMove, onKeyDown: itemHasSubmenu ? _this._onItemKeyDown : undefined }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ChildrenRenderer, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ componentRef: item.componentRef, item: item, classNames: classNames, index: index, onCheckmarkClick: hasCheckmarks && onItemClick ? onItemClick : undefined, hasIcons: hasIcons, openSubMenu: openSubMenu, dismissSubMenu: dismissSubMenu, dismissMenu: dismissMenu, getSubmenuTarget: _this._getSubmenuTarget }, itemProps)), _this._renderAriaDescription(ariaDescription, classNames.screenReaderText))); }))); }; return ContextualMenuAnchor; }(_ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuItemWrapper"])); //# sourceMappingURL=ContextualMenuAnchor.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js": /*!**********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js ***! \**********************************************************************************************************************/ /*! exports provided: ContextualMenuButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuButton", function() { return ContextualMenuButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); /* harmony import */ var _KeytipData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../KeytipData */ "./node_modules/@fluentui/react/lib/KeytipData.js"); /* harmony import */ var _utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib/utilities/contextualMenu/index.js"); /* harmony import */ var _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ContextualMenuItem */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js"); var ContextualMenuButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContextualMenuButton, _super); function ContextualMenuButton() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._btn = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._getMemoizedMenuButtonKeytipProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (keytipProps) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, keytipProps), { hasMenu: true }); }); _this._renderAriaDescription = function (ariaDescription, className) { // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan return ariaDescription ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: _this._ariaDescriptionId, className: className }, ariaDescription)) : null; }; _this._getSubmenuTarget = function () { return _this._btn.current ? _this._btn.current : undefined; }; return _this; } ContextualMenuButton.prototype.render = function () { var _this = this; var _a = this.props, item = _a.item, classNames = _a.classNames, index = _a.index, focusableElementIndex = _a.focusableElementIndex, totalItemCount = _a.totalItemCount, hasCheckmarks = _a.hasCheckmarks, hasIcons = _a.hasIcons, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_6__["ContextualMenuItem"] : _b, expandedMenuItemKey = _a.expandedMenuItemKey, onItemMouseDown = _a.onItemMouseDown, onItemClick = _a.onItemClick, openSubMenu = _a.openSubMenu, dismissSubMenu = _a.dismissSubMenu, dismissMenu = _a.dismissMenu; var isChecked = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["getIsChecked"])(item); var canCheck = isChecked !== null; var defaultRole = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["getMenuItemAriaRole"])(item); var itemHasSubmenu = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["hasSubmenu"])(item); var itemProps = item.itemProps, ariaLabel = item.ariaLabel, ariaDescription = item.ariaDescription; var buttonNativeProperties = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(item, _Utilities__WEBPACK_IMPORTED_MODULE_2__["buttonProperties"]); // Do not add the disabled attribute to the button so that it is focusable delete buttonNativeProperties.disabled; var itemRole = item.role || defaultRole; // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with // the description in it to be added to ariaDescribedBy if (ariaDescription) { this._ariaDescriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); } var ariaDescribedByIds = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["mergeAriaAttributeValues"])(item.ariaDescribedBy, ariaDescription ? this._ariaDescriptionId : undefined, buttonNativeProperties['aria-describedby']); var itemButtonProperties = { className: classNames.root, onClick: this._onItemClick, onKeyDown: itemHasSubmenu ? this._onItemKeyDown : undefined, onMouseEnter: this._onItemMouseEnter, onMouseLeave: this._onItemMouseLeave, onMouseDown: function (ev) { return onItemMouseDown ? onItemMouseDown(item, ev) : undefined; }, onMouseMove: this._onItemMouseMove, href: item.href, title: item.title, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedByIds, 'aria-haspopup': itemHasSubmenu || undefined, 'aria-expanded': itemHasSubmenu ? item.key === expandedMenuItemKey : undefined, 'aria-posinset': focusableElementIndex + 1, 'aria-setsize': totalItemCount, 'aria-disabled': Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["isItemDisabled"])(item), 'aria-checked': (itemRole === 'menuitemcheckbox' || itemRole === 'menuitemradio') && canCheck ? !!isChecked : undefined, 'aria-selected': itemRole === 'menuitem' && canCheck ? !!isChecked : undefined, role: itemRole, // eslint-disable-next-line deprecation/deprecation style: item.style, }; var keytipProps = item.keytipProps; if (keytipProps && itemHasSubmenu) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_KeytipData__WEBPACK_IMPORTED_MODULE_4__["KeytipData"], { keytipProps: keytipProps, ariaDescribedBy: ariaDescribedByIds, disabled: Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_5__["isItemDisabled"])(item) }, function (keytipAttributes) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ref: _this._btn }, buttonNativeProperties, itemButtonProperties, keytipAttributes), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ChildrenRenderer, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ componentRef: item.componentRef, item: item, classNames: classNames, index: index, onCheckmarkClick: hasCheckmarks && onItemClick ? onItemClick : undefined, hasIcons: hasIcons, openSubMenu: openSubMenu, dismissSubMenu: dismissSubMenu, dismissMenu: dismissMenu, getSubmenuTarget: _this._getSubmenuTarget }, itemProps)), _this._renderAriaDescription(ariaDescription, classNames.screenReaderText))); })); }; return ContextualMenuButton; }(_ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuItemWrapper"])); //# sourceMappingURL=ContextualMenuButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js": /*!***************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js ***! \***************************************************************************************************************************/ /*! exports provided: ContextualMenuItemWrapper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemWrapper", function() { return ContextualMenuItemWrapper; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var ContextualMenuItemWrapper = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContextualMenuItemWrapper, _super); function ContextualMenuItemWrapper(props) { var _this = _super.call(this, props) || this; _this._onItemMouseEnter = function (ev) { var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; if (onItemMouseEnter) { onItemMouseEnter(item, ev, ev.currentTarget); } }; _this._onItemClick = function (ev) { var _a = _this.props, item = _a.item, onItemClickBase = _a.onItemClickBase; if (onItemClickBase) { onItemClickBase(item, ev, ev.currentTarget); } }; _this._onItemMouseLeave = function (ev) { var _a = _this.props, item = _a.item, onItemMouseLeave = _a.onItemMouseLeave; if (onItemMouseLeave) { onItemMouseLeave(item, ev); } }; _this._onItemKeyDown = function (ev) { var _a = _this.props, item = _a.item, onItemKeyDown = _a.onItemKeyDown; if (onItemKeyDown) { onItemKeyDown(item, ev); } }; _this._onItemMouseMove = function (ev) { var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; if (onItemMouseMove) { onItemMouseMove(item, ev, ev.currentTarget); } }; _this._getSubmenuTarget = function () { return undefined; }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } ContextualMenuItemWrapper.prototype.shouldComponentUpdate = function (newProps) { return !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["shallowCompare"])(newProps, this.props); }; return ContextualMenuItemWrapper; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=ContextualMenuItemWrapper.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.types.js": /*!*********************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.types.js ***! \*********************************************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ContextualMenuItemWrapper.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js": /*!***************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js ***! \***************************************************************************************************************************/ /*! exports provided: ContextualMenuSplitButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuSplitButton", function() { return ContextualMenuSplitButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ContextualMenuItem */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js"); /* harmony import */ var _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js"); /* harmony import */ var _KeytipData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../KeytipData */ "./node_modules/@fluentui/react/lib/KeytipData.js"); /* harmony import */ var _utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib/utilities/contextualMenu/index.js"); /* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../Divider */ "./node_modules/@fluentui/react/lib/Divider.js"); /* harmony import */ var _ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); var TouchIdleDelay = 500; /* ms */ var ContextualMenuSplitButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContextualMenuSplitButton, _super); function ContextualMenuSplitButton(props) { var _this = _super.call(this, props) || this; _this._getMemoizedMenuButtonKeytipProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (keytipProps) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, keytipProps), { hasMenu: true }); }); _this._onItemKeyDown = function (ev) { var _a = _this.props, item = _a.item, onItemKeyDown = _a.onItemKeyDown; // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter) { _this._executeItemClick(ev); ev.preventDefault(); ev.stopPropagation(); } else if (onItemKeyDown) { onItemKeyDown(item, ev); } }; _this._getSubmenuTarget = function () { return _this._splitButton; }; _this._renderAriaDescription = function (ariaDescription, className) { // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan return ariaDescription ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: _this._ariaDescriptionId, className: className }, ariaDescription)) : null; }; _this._onItemMouseEnterPrimary = function (ev) { var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; if (onItemMouseEnter) { onItemMouseEnter(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { subMenuProps: undefined, items: undefined }), ev, _this._splitButton); } }; _this._onItemMouseEnterIcon = function (ev) { var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; if (onItemMouseEnter) { onItemMouseEnter(item, ev, _this._splitButton); } }; _this._onItemMouseMovePrimary = function (ev) { var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; if (onItemMouseMove) { onItemMouseMove(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { subMenuProps: undefined, items: undefined }), ev, _this._splitButton); } }; _this._onItemMouseMoveIcon = function (ev) { var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; if (onItemMouseMove) { onItemMouseMove(item, ev, _this._splitButton); } }; _this._onIconItemClick = function (ev) { var _a = _this.props, item = _a.item, onItemClickBase = _a.onItemClickBase; if (onItemClickBase) { onItemClickBase(item, ev, (_this._splitButton ? _this._splitButton : ev.currentTarget)); } }; _this._executeItemClick = function (ev) { var _a = _this.props, item = _a.item, executeItemClick = _a.executeItemClick, onItemClick = _a.onItemClick; if (item.disabled || item.isDisabled) { return; } if (_this._processingTouch && onItemClick) { return onItemClick(item, ev); } if (executeItemClick) { executeItemClick(item, ev); } }; _this._onTouchStart = function (ev) { if (_this._splitButton && !('onpointerdown' in _this._splitButton)) { _this._handleTouchAndPointerEvent(ev); } }; _this._onPointerDown = function (ev) { if (ev.pointerType === 'touch') { _this._handleTouchAndPointerEvent(ev); ev.preventDefault(); ev.stopImmediatePropagation(); } }; _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["Async"](_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["EventGroup"](_this); return _this; } ContextualMenuSplitButton.prototype.componentDidMount = function () { if (this._splitButton && 'onpointerdown' in this._splitButton) { this._events.on(this._splitButton, 'pointerdown', this._onPointerDown, true); } }; ContextualMenuSplitButton.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; ContextualMenuSplitButton.prototype.render = function () { var _this = this; var _a = this.props, item = _a.item, classNames = _a.classNames, index = _a.index, focusableElementIndex = _a.focusableElementIndex, totalItemCount = _a.totalItemCount, hasCheckmarks = _a.hasCheckmarks, hasIcons = _a.hasIcons, onItemMouseLeave = _a.onItemMouseLeave, expandedMenuItemKey = _a.expandedMenuItemKey; var itemHasSubmenu = Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["hasSubmenu"])(item); var keytipProps = item.keytipProps; if (keytipProps) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with // the description in it to be added to ariaDescribedBy var ariaDescription = item.ariaDescription; if (ariaDescription) { this._ariaDescriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_KeytipData__WEBPACK_IMPORTED_MODULE_5__["KeytipData"], { keytipProps: keytipProps, disabled: Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["isItemDisabled"])(item) }, function (keytipAttributes) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { "data-ktp-target": keytipAttributes['data-ktp-target'], ref: function (splitButton) { return (_this._splitButton = splitButton); }, role: Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["getMenuItemAriaRole"])(item), "aria-label": item.ariaLabel, className: classNames.splitContainer, "aria-disabled": Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["isItemDisabled"])(item), "aria-expanded": itemHasSubmenu ? item.key === expandedMenuItemKey : undefined, "aria-haspopup": true, "aria-describedby": Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["mergeAriaAttributeValues"])(item.ariaDescribedBy, ariaDescription ? _this._ariaDescriptionId : undefined, keytipAttributes['aria-describedby']), "aria-checked": item.isChecked || item.checked, "aria-posinset": focusableElementIndex + 1, "aria-setsize": totalItemCount, onMouseEnter: _this._onItemMouseEnterPrimary, onMouseLeave: onItemMouseLeave ? onItemMouseLeave.bind(_this, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { subMenuProps: null, items: null })) : undefined, onMouseMove: _this._onItemMouseMovePrimary, onKeyDown: _this._onItemKeyDown, onClick: _this._executeItemClick, onTouchStart: _this._onTouchStart, tabIndex: 0, "data-is-focusable": true, "aria-roledescription": item['aria-roledescription'] }, _this._renderSplitPrimaryButton(item, classNames, index, hasCheckmarks, hasIcons), _this._renderSplitDivider(item), _this._renderSplitIconButton(item, classNames, index, keytipAttributes), _this._renderAriaDescription(ariaDescription, classNames.screenReaderText))); })); }; ContextualMenuSplitButton.prototype._renderSplitPrimaryButton = function (item, // eslint-disable-next-line deprecation/deprecation classNames, index, hasCheckmarks, hasIcons) { var _a = this.props, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuItem"] : _b, onItemClick = _a.onItemClick; var itemProps = { key: item.key, disabled: Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["isItemDisabled"])(item) || item.primaryDisabled, /* eslint-disable deprecation/deprecation */ name: item.name, text: item.text || item.name, secondaryText: item.secondaryText, /* eslint-enable deprecation/deprecation */ className: classNames.splitPrimary, canCheck: item.canCheck, isChecked: item.isChecked, checked: item.checked, iconProps: item.iconProps, onRenderIcon: item.onRenderIcon, data: item.data, 'data-is-focusable': false, }; var itemComponentProps = item.itemProps; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(itemProps, _Utilities__WEBPACK_IMPORTED_MODULE_2__["buttonProperties"])), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ChildrenRenderer, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-is-focusable": false, item: itemProps, classNames: classNames, index: index, onCheckmarkClick: hasCheckmarks && onItemClick ? onItemClick : undefined, hasIcons: hasIcons }, itemComponentProps)))); }; ContextualMenuSplitButton.prototype._renderSplitDivider = function (item) { var getDividerClassNames = item.getSplitButtonVerticalDividerClassNames || _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_4__["getSplitButtonVerticalDividerClassNames"]; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Divider__WEBPACK_IMPORTED_MODULE_7__["VerticalDivider"], { getClassNames: getDividerClassNames }); }; ContextualMenuSplitButton.prototype._renderSplitIconButton = function (item, classNames, // eslint-disable-line deprecation/deprecation index, keytipAttributes) { var _a = this.props, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuItem"] : _b, onItemMouseLeave = _a.onItemMouseLeave, onItemMouseDown = _a.onItemMouseDown, openSubMenu = _a.openSubMenu, dismissSubMenu = _a.dismissSubMenu, dismissMenu = _a.dismissMenu; var itemProps = { onClick: this._onIconItemClick, disabled: Object(_utilities_contextualMenu_index__WEBPACK_IMPORTED_MODULE_6__["isItemDisabled"])(item), className: classNames.splitMenu, subMenuProps: item.subMenuProps, submenuIconProps: item.submenuIconProps, split: true, key: item.key, }; var buttonProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(itemProps, _Utilities__WEBPACK_IMPORTED_MODULE_2__["buttonProperties"])), { onMouseEnter: this._onItemMouseEnterIcon, onMouseLeave: onItemMouseLeave ? onItemMouseLeave.bind(this, item) : undefined, onMouseDown: function (ev) { return onItemMouseDown ? onItemMouseDown(item, ev) : undefined; }, onMouseMove: this._onItemMouseMoveIcon, 'data-is-focusable': false, 'data-ktp-execute-target': keytipAttributes['data-ktp-execute-target'], 'aria-hidden': true, }); var itemComponentProps = item.itemProps; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, buttonProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ChildrenRenderer, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ componentRef: item.componentRef, item: itemProps, classNames: classNames, index: index, hasIcons: false, openSubMenu: openSubMenu, dismissSubMenu: dismissSubMenu, dismissMenu: dismissMenu, getSubmenuTarget: this._getSubmenuTarget }, itemComponentProps)))); }; ContextualMenuSplitButton.prototype._handleTouchAndPointerEvent = function (ev) { var _this = this; var onTap = this.props.onTap; if (onTap) { onTap(ev); } // If we already have an existing timeout from a previous touch/pointer event // cancel that timeout so we can set a new one. if (this._lastTouchTimeoutId) { this._async.clearTimeout(this._lastTouchTimeoutId); this._lastTouchTimeoutId = undefined; } this._processingTouch = true; this._lastTouchTimeoutId = this._async.setTimeout(function () { _this._processingTouch = false; _this._lastTouchTimeoutId = undefined; }, TouchIdleDelay); }; return ContextualMenuSplitButton; }(_ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_8__["ContextualMenuItemWrapper"])); //# sourceMappingURL=ContextualMenuSplitButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/index.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/index.js ***! \*******************************************************************************************************/ /*! exports provided: ContextualMenuAnchor, ContextualMenuButton, ContextualMenuSplitButton, ContextualMenuItemWrapper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContextualMenuAnchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContextualMenuAnchor */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuAnchor", function() { return _ContextualMenuAnchor__WEBPACK_IMPORTED_MODULE_0__["ContextualMenuAnchor"]; }); /* harmony import */ var _ContextualMenuButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextualMenuButton */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuButton", function() { return _ContextualMenuButton__WEBPACK_IMPORTED_MODULE_1__["ContextualMenuButton"]; }); /* harmony import */ var _ContextualMenuSplitButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ContextualMenuSplitButton */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuSplitButton", function() { return _ContextualMenuSplitButton__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuSplitButton"]; }); /* harmony import */ var _ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemWrapper", function() { return _ContextualMenuItemWrapper__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuItemWrapper"]; }); /* harmony import */ var _ContextualMenuItemWrapper_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ContextualMenuItemWrapper.types */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ContextualMenu/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ContextualMenu/index.js ***! \*****************************************************************************/ /*! exports provided: ContextualMenu, getSubmenuItems, canAnyMenuItemsCheck, ContextualMenuBase, DirectionalHint, ContextualMenuItemType, ContextualMenuItem, ContextualMenuItemBase, getMenuItemStyles, getContextualMenuItemClassNames, getContextualMenuItemStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContextualMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContextualMenu */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenu", function() { return _ContextualMenu__WEBPACK_IMPORTED_MODULE_0__["ContextualMenu"]; }); /* harmony import */ var _ContextualMenu_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextualMenu.base */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSubmenuItems", function() { return _ContextualMenu_base__WEBPACK_IMPORTED_MODULE_1__["getSubmenuItems"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "canAnyMenuItemsCheck", function() { return _ContextualMenu_base__WEBPACK_IMPORTED_MODULE_1__["canAnyMenuItemsCheck"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuBase", function() { return _ContextualMenu_base__WEBPACK_IMPORTED_MODULE_1__["ContextualMenuBase"]; }); /* harmony import */ var _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ContextualMenu.types */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectionalHint", function() { return _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["DirectionalHint"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemType", function() { return _ContextualMenu_types__WEBPACK_IMPORTED_MODULE_2__["ContextualMenuItemType"]; }); /* harmony import */ var _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContextualMenuItem */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItem", function() { return _ContextualMenuItem__WEBPACK_IMPORTED_MODULE_3__["ContextualMenuItem"]; }); /* harmony import */ var _ContextualMenuItem_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ContextualMenuItem.base */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextualMenuItemBase", function() { return _ContextualMenuItem_base__WEBPACK_IMPORTED_MODULE_4__["ContextualMenuItemBase"]; }); /* harmony import */ var _ContextualMenuItem_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ContextualMenuItem.types */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ContextualMenu.cnstyles */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMenuItemStyles", function() { return _ContextualMenu_cnstyles__WEBPACK_IMPORTED_MODULE_6__["getMenuItemStyles"]; }); /* harmony import */ var _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getContextualMenuItemClassNames", function() { return _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_7__["getItemClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getContextualMenuItemStyles", function() { return _ContextualMenu_classNames__WEBPACK_IMPORTED_MODULE_7__["getItemStyles"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.base.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.base.js ***! \***********************************************************************************/ /*! exports provided: DatePickerBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePickerBase", function() { return DatePickerBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Calendar */ "./node_modules/@fluentui/react/lib/Calendar.js"); /* harmony import */ var _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib/index.js"); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib/Callout.js"); /* harmony import */ var _TextField__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../TextField */ "./node_modules/@fluentui/react/lib/TextField.js"); /* harmony import */ var _FocusTrapZone__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib/FocusTrapZone.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _defaults__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib/components/DatePicker/defaults.js"); var getClassNames = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DEFAULT_PROPS = { allowTextInput: false, formatDate: function (date) { return (date ? date.toDateString() : ''); }, parseDateFromString: function (dateStr) { //if dateStr is DATE ONLY ISO 8601 -> add time so Date.parse() won't convert it to UTC //See here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#date_time_string_format if (dateStr.match(/^\d{4}(-\d{2}){2}$/)) { dateStr += 'T12:00'; } var date = Date.parse(dateStr); return date ? new Date(date) : null; }, firstDayOfWeek: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["DayOfWeek"].Sunday, initialPickerDate: new Date(), isRequired: false, isMonthPickerVisible: true, showMonthPickerAsOverlay: false, strings: _defaults__WEBPACK_IMPORTED_MODULE_9__["defaultDatePickerStrings"], highlightCurrentMonth: false, highlightSelectedMonth: false, borderless: false, pickerAriaLabel: 'Calendar', showWeekNumbers: false, firstWeekOfYear: _fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["FirstWeekOfYear"].FirstDay, showGoToToday: true, showCloseButton: false, underlined: false, allFocusable: false, }; function useFocusLogic() { var textFieldRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var preventFocusOpeningPicker = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); var focus = function () { var _a, _b; (_b = (_a = textFieldRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }; var preventNextFocusOpeningPicker = function () { preventFocusOpeningPicker.current = true; }; return [textFieldRef, focus, preventFocusOpeningPicker, preventNextFocusOpeningPicker]; } function useCalendarVisibility(_a, focus) { var allowTextInput = _a.allowTextInput, onAfterMenuDismiss = _a.onAfterMenuDismiss; var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"](false), isCalendarShown = _b[0], setIsCalendarShown = _b[1]; var isMounted = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false); var async = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useAsync"])(); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (isMounted.current && !isCalendarShown) { // In browsers like IE, textfield gets unfocused when datepicker is collapsed if (allowTextInput) { async.requestAnimationFrame(focus); } // If DatePicker's menu (Calendar) is closed, run onAfterMenuDismiss onAfterMenuDismiss === null || onAfterMenuDismiss === void 0 ? void 0 : onAfterMenuDismiss(); } isMounted.current = true; // eslint-disable-next-line react-hooks/exhaustive-deps }, [isCalendarShown]); return [isCalendarShown, setIsCalendarShown]; } function useSelectedDate(_a) { var formatDate = _a.formatDate, value = _a.value, onSelectDate = _a.onSelectDate; var _b = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useControllableValue"])(value, undefined, function (ev, newValue) { return onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(newValue); }), selectedDate = _b[0], setSelectedDateState = _b[1]; var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](function () { return (value && formatDate ? formatDate(value) : ''); }), formattedDate = _c[0], setFormattedDate = _c[1]; var setSelectedDate = function (newDate) { setSelectedDateState(newDate); setFormattedDate(newDate && formatDate ? formatDate(newDate) : ''); }; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { setFormattedDate(value && formatDate ? formatDate(value) : ''); }, [formatDate, value]); return [selectedDate, formattedDate, setSelectedDate, setFormattedDate]; } function useErrorMessage(_a, selectedDate, setSelectedDate, inputValue, isCalendarShown) { var _b; var isRequired = _a.isRequired, allowTextInput = _a.allowTextInput, strings = _a.strings, parseDateFromString = _a.parseDateFromString, onSelectDate = _a.onSelectDate, formatDate = _a.formatDate, minDate = _a.minDate, maxDate = _a.maxDate, textField = _a.textField; var _c = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), errorMessage = _c[0], setErrorMessage = _c[1]; var _d = react__WEBPACK_IMPORTED_MODULE_1__["useState"](), statusMessage = _d[0], setStatusMessage = _d[1]; var isFirstLoadRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](true); var validateOnLoad = (_b = textField === null || textField === void 0 ? void 0 : textField.validateOnLoad) !== null && _b !== void 0 ? _b : true; var validateTextInput = function (date) { if (date === void 0) { date = null; } if (allowTextInput) { if (inputValue || date) { // Don't parse if the selected date has the same formatted string as what we're about to parse. // The formatted string might be ambiguous (ex: "1/2/3" or "New Year Eve") and the parser might // not be able to come up with the exact same date. if (selectedDate && !errorMessage && formatDate && formatDate(date !== null && date !== void 0 ? date : selectedDate) === inputValue) { return; } date = date || parseDateFromString(inputValue); // Check if date is null, or date is Invalid Date if (!date || isNaN(date.getTime())) { // Reset invalid input field, if formatting is available setSelectedDate(selectedDate); // default the newer isResetStatusMessage string to invalidInputErrorMessage for legacy support var selectedText = formatDate ? formatDate(selectedDate) : ''; var statusText = strings.isResetStatusMessage ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["format"])(strings.isResetStatusMessage, inputValue, selectedText) : strings.invalidInputErrorMessage || ''; setStatusMessage(statusText); } else { // Check against optional date boundaries if (isDateOutOfBounds(date, minDate, maxDate)) { setErrorMessage(strings.isOutOfBoundsErrorMessage || ' '); } else { setSelectedDate(date); setErrorMessage(undefined); setStatusMessage(undefined); } } } else { // Only show error for empty inputValue if it is a required field setErrorMessage(isRequired ? strings.isRequiredErrorMessage || ' ' : undefined); // If no input date string or input date string is invalid // date variable will be null, callback should expect null value for this case onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(date); } } else if (isRequired && !inputValue) { // Check when DatePicker is a required field but has NO input value setErrorMessage(strings.isRequiredErrorMessage || ' '); } else { // Cleanup the error message and status message setErrorMessage(undefined); setStatusMessage(undefined); } }; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (isFirstLoadRef.current) { isFirstLoadRef.current = false; if (!validateOnLoad) { return; } } if (isRequired && !selectedDate) { setErrorMessage(strings.isRequiredErrorMessage || ' '); } else if (selectedDate && isDateOutOfBounds(selectedDate, minDate, maxDate)) { setErrorMessage(strings.isOutOfBoundsErrorMessage || ' '); } else { setErrorMessage(undefined); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [ // We don't want to compare the date itself, since two instances of date at the same time are not equal // eslint-disable-next-line react-hooks/exhaustive-deps minDate && Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDatePartHashValue"])(minDate), // eslint-disable-next-line react-hooks/exhaustive-deps maxDate && Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDatePartHashValue"])(maxDate), // eslint-disable-next-line react-hooks/exhaustive-deps selectedDate && Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["getDatePartHashValue"])(selectedDate), isRequired, validateOnLoad, ]); return [ isCalendarShown ? undefined : errorMessage, validateTextInput, setErrorMessage, isCalendarShown ? undefined : statusMessage, setStatusMessage, ]; } var DatePickerBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var _a, _b, _c; var props = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var firstDayOfWeek = props.firstDayOfWeek, strings = props.strings, label = props.label, theme = props.theme, className = props.className, styles = props.styles, initialPickerDate = props.initialPickerDate, isRequired = props.isRequired, disabled = props.disabled, ariaLabel = props.ariaLabel, pickerAriaLabel = props.pickerAriaLabel, placeholder = props.placeholder, allowTextInput = props.allowTextInput, borderless = props.borderless, minDate = props.minDate, maxDate = props.maxDate, showCloseButton = props.showCloseButton, calendarProps = props.calendarProps, calloutProps = props.calloutProps, textFieldProps = props.textField, underlined = props.underlined, allFocusable = props.allFocusable, _d = props.calendarAs, CalendarType = _d === void 0 ? _Calendar__WEBPACK_IMPORTED_MODULE_3__["Calendar"] : _d, tabIndex = props.tabIndex, _e = props.disableAutoFocus, disableAutoFocus = _e === void 0 ? true : _e; var id = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useId"])('DatePicker', props.id); var calloutId = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_8__["useId"])('DatePicker-Callout'); var calendar = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var datePickerDiv = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var _f = useFocusLogic(), textFieldRef = _f[0], focus = _f[1], preventFocusOpeningPicker = _f[2], preventNextFocusOpeningPicker = _f[3]; var _g = useCalendarVisibility(props, focus), isCalendarShown = _g[0], setIsCalendarShown = _g[1]; var _h = useSelectedDate(props), selectedDate = _h[0], formattedDate = _h[1], setSelectedDate = _h[2], setFormattedDate = _h[3]; var _j = useErrorMessage(props, selectedDate, setSelectedDate, formattedDate, isCalendarShown), errorMessage = _j[0], validateTextInput = _j[1], setErrorMessage = _j[2], statusMessage = _j[3], setStatusMessage = _j[4]; var showDatePickerPopup = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { if (!isCalendarShown) { preventNextFocusOpeningPicker(); setIsCalendarShown(true); } }, [isCalendarShown, preventNextFocusOpeningPicker, setIsCalendarShown]); react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](props.componentRef, function () { return ({ focus: focus, reset: function () { setIsCalendarShown(false); setSelectedDate(undefined); setErrorMessage(undefined); setStatusMessage(undefined); }, showDatePickerPopup: showDatePickerPopup, }); }, [focus, setErrorMessage, setIsCalendarShown, setSelectedDate, setStatusMessage, showDatePickerPopup]); var onTextFieldFocus = function () { if (disableAutoFocus) { return; } if (!allowTextInput) { if (!preventFocusOpeningPicker.current) { showDatePickerPopup(); } preventFocusOpeningPicker.current = false; } }; var onSelectDate = function (date) { if (props.calendarProps && props.calendarProps.onSelectDate) { props.calendarProps.onSelectDate(date); } calendarDismissed(date); }; var onCalloutPositioned = function () { var shouldFocus = true; // If the user has specified that the callout shouldn't use initial focus, then respect // that and don't attempt to set focus. That will default to true within the callout // so we need to check if it's undefined here. if (props.calloutProps && props.calloutProps.setInitialFocus !== undefined) { shouldFocus = props.calloutProps.setInitialFocus; } if (calendar.current && shouldFocus) { calendar.current.focus(); } }; var onTextFieldBlur = function (ev) { validateTextInput(); }; var onTextFieldChanged = function (ev, newValue) { var _a; var textField = props.textField; if (allowTextInput) { if (isCalendarShown) { dismissDatePickerPopup(); } setFormattedDate(newValue); } (_a = textField === null || textField === void 0 ? void 0 : textField.onChange) === null || _a === void 0 ? void 0 : _a.call(textField, ev, newValue); }; var onTextFieldKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter: ev.preventDefault(); ev.stopPropagation(); if (!isCalendarShown) { validateTextInput(); showDatePickerPopup(); } else { // When DatePicker allows input date string directly, // it is expected to hit another enter to close the popup if (props.allowTextInput) { dismissDatePickerPopup(); } } break; case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].escape: handleEscKey(ev); break; case _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down: if (ev.altKey && !isCalendarShown) { showDatePickerPopup(); } break; default: break; } }; var onTextFieldClick = function (ev) { // default openOnClick to !props.disableAutoFocus for legacy support of disableAutoFocus behavior var openOnClick = props.openOnClick || !props.disableAutoFocus; if (openOnClick && !isCalendarShown && !props.disabled) { showDatePickerPopup(); return; } if (props.allowTextInput) { dismissDatePickerPopup(); } }; var onIconClick = function (ev) { ev.stopPropagation(); if (!isCalendarShown && !props.disabled) { showDatePickerPopup(); } else if (props.allowTextInput) { dismissDatePickerPopup(); } }; var dismissDatePickerPopup = function (newlySelectedDate) { if (isCalendarShown) { setIsCalendarShown(false); validateTextInput(newlySelectedDate); if (!allowTextInput && newlySelectedDate) { setSelectedDate(newlySelectedDate); } } }; var renderTextfieldDescription = function (inputProps, defaultRender) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, inputProps.description ? defaultRender(inputProps) : null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { "aria-live": "assertive", className: classNames.statusMessage }, statusMessage))); }; var renderReadOnlyInput = function (inputProps) { var divProps = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(inputProps, _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"]); // Talkback on Android treats readonly inputs as disabled, so swipe gestures to open the Calendar // don't register. Workaround is rendering a div with role="combobox" (passed in via TextField props). return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, divProps, { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(divProps.className, classNames.readOnlyTextField), tabIndex: tabIndex || 0 }), formattedDate || ( // Putting the placeholder in a separate span fixes specificity issues for the text color react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.readOnlyPlaceholder }, placeholder)))); }; /** * Callback for closing the calendar callout */ var calendarDismissed = function (newlySelectedDate) { preventNextFocusOpeningPicker(); dismissDatePickerPopup(newlySelectedDate); // don't need to focus the text box, if necessary the focusTrapZone will do it }; var calloutDismissed = function (ev) { calendarDismissed(); }; var handleEscKey = function (ev) { if (isCalendarShown) { ev.stopPropagation(); calendarDismissed(); } }; var classNames = getClassNames(styles, { theme: theme, className: className, disabled: disabled, underlined: underlined, label: !!label, isDatePickerShown: isCalendarShown, }); var nativeProps = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(props, _fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"], ['value']); var iconProps = textFieldProps && textFieldProps.iconProps; var textFieldId = textFieldProps && textFieldProps.id && textFieldProps.id !== id ? textFieldProps.id : id + '-label'; var readOnly = !allowTextInput && !disabled; var dataIsFocusable = (_c = (_b = (_a = textFieldProps) === null || _a === void 0 ? void 0 : _a['data-is-focusable']) !== null && _b !== void 0 ? _b : props['data-is-focusable']) !== null && _c !== void 0 ? _c : true; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, nativeProps, { className: classNames.root, ref: forwardedRef }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: datePickerDiv, "aria-owns": isCalendarShown ? calloutId : undefined, className: classNames.wrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_TextField__WEBPACK_IMPORTED_MODULE_6__["TextField"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ role: "combobox", label: label, "aria-expanded": isCalendarShown, ariaLabel: ariaLabel, "aria-haspopup": "dialog", "aria-controls": isCalendarShown ? calloutId : undefined, required: isRequired, disabled: disabled, errorMessage: errorMessage, placeholder: placeholder, borderless: borderless, value: formattedDate, componentRef: textFieldRef, underlined: underlined, tabIndex: tabIndex, readOnly: !allowTextInput }, textFieldProps, { "data-is-focusable": dataIsFocusable, id: textFieldId, className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.textField, textFieldProps && textFieldProps.className), iconProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ iconName: 'Calendar' }, iconProps), { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.icon, iconProps && iconProps.className), onClick: onIconClick }), // eslint-disable-next-line react/jsx-no-bind onRenderDescription: renderTextfieldDescription, // eslint-disable-next-line react/jsx-no-bind onKeyDown: onTextFieldKeyDown, // eslint-disable-next-line react/jsx-no-bind onFocus: onTextFieldFocus, // eslint-disable-next-line react/jsx-no-bind onBlur: onTextFieldBlur, // eslint-disable-next-line react/jsx-no-bind onClick: onTextFieldClick, // eslint-disable-next-line react/jsx-no-bind onChange: onTextFieldChanged, onRenderInput: readOnly ? renderReadOnlyInput : undefined }))), isCalendarShown && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Callout__WEBPACK_IMPORTED_MODULE_5__["Callout"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: calloutId, role: "dialog", ariaLabel: pickerAriaLabel, isBeakVisible: false, gapSpace: 0, doNotLayer: false, target: datePickerDiv.current, directionalHint: _Callout__WEBPACK_IMPORTED_MODULE_5__["DirectionalHint"].bottomLeftEdge }, calloutProps, { className: Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.callout, calloutProps && calloutProps.className), // eslint-disable-next-line react/jsx-no-bind onDismiss: calloutDismissed, // eslint-disable-next-line react/jsx-no-bind onPositioned: onCalloutPositioned }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusTrapZone__WEBPACK_IMPORTED_MODULE_7__["FocusTrapZone"], { isClickableOutsideFocusTrap: true, disableFirstFocus: disableAutoFocus }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](CalendarType, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, calendarProps, { // eslint-disable-next-line react/jsx-no-bind onSelectDate: onSelectDate, // eslint-disable-next-line react/jsx-no-bind onDismiss: calendarDismissed, isMonthPickerVisible: props.isMonthPickerVisible, showMonthPickerAsOverlay: props.showMonthPickerAsOverlay, today: props.today, value: selectedDate || initialPickerDate, firstDayOfWeek: firstDayOfWeek, strings: strings, highlightCurrentMonth: props.highlightCurrentMonth, highlightSelectedMonth: props.highlightSelectedMonth, showWeekNumbers: props.showWeekNumbers, firstWeekOfYear: props.firstWeekOfYear, showGoToToday: props.showGoToToday, dateTimeFormatter: props.dateTimeFormatter, minDate: minDate, maxDate: maxDate, componentRef: calendar, showCloseButton: showCloseButton, allFocusable: allFocusable }))))))); }); DatePickerBase.displayName = 'DatePickerBase'; function isDateOutOfBounds(date, minDate, maxDate) { return (!!minDate && Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["compareDatePart"])(minDate, date) > 0) || (!!maxDate && Object(_fluentui_date_time_utilities__WEBPACK_IMPORTED_MODULE_4__["compareDatePart"])(maxDate, date) < 0); } //# sourceMappingURL=DatePicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.js ***! \******************************************************************************/ /*! exports provided: DatePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return DatePicker; }); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _DatePicker_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DatePicker.base */ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.base.js"); /* harmony import */ var _DatePicker_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DatePicker.styles */ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.styles.js"); var DatePicker = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DatePicker_base__WEBPACK_IMPORTED_MODULE_1__["DatePickerBase"], _DatePicker_styles__WEBPACK_IMPORTED_MODULE_2__["styles"], undefined, { scope: 'DatePicker', }); //# sourceMappingURL=DatePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.styles.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.styles.js ***! \*************************************************************************************/ /*! exports provided: styles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); /* harmony import */ var _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib/index.js"); var GlobalClassNames = { root: 'ms-DatePicker', callout: 'ms-DatePicker-callout', withLabel: 'ms-DatePicker-event--with-label', withoutLabel: 'ms-DatePicker-event--without-label', disabled: 'msDatePickerDisabled ', }; var TEXTFIELD_HEIGHT = 32; var styles = function (props) { var _a; var className = props.className, theme = props.theme, disabled = props.disabled, underlined = props.underlined, label = props.label, isDatePickerShown = props.isDatePickerShown; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = Object(_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); var DatePickerIcon = { color: palette.neutralSecondary, fontSize: _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["FontSizes"].icon, lineHeight: '18px', pointerEvents: 'none', position: 'absolute', right: '4px', padding: '5px', }; return { root: [classNames.root, theme.fonts.large, isDatePickerShown && 'is-open', _fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["normalize"], className], textField: [ { position: 'relative', selectors: { '& input[readonly]': { cursor: 'pointer', }, input: { selectors: { '::-ms-clear': { display: 'none', }, }, }, }, }, disabled && { selectors: { '& input[readonly]': { cursor: 'default', }, }, }, ], callout: [classNames.callout], icon: [ DatePickerIcon, label ? classNames.withLabel : classNames.withoutLabel, { paddingTop: '7px' }, !disabled && [ classNames.disabled, { pointerEvents: 'initial', cursor: 'pointer', }, ], disabled && { color: semanticColors.disabledText, cursor: 'default', }, ], statusMessage: [ fonts.small, { color: semanticColors.errorText, marginTop: 5, }, ], readOnlyTextField: [ { cursor: 'pointer', height: TEXTFIELD_HEIGHT, lineHeight: TEXTFIELD_HEIGHT - 2, overflow: 'hidden', textOverflow: 'ellipsis', }, underlined && { lineHeight: TEXTFIELD_HEIGHT + 2, }, ], readOnlyPlaceholder: (_a = { color: semanticColors.inputPlaceholderText }, _a[_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { color: 'GrayText', }, _a), }; }; //# sourceMappingURL=DatePicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.types.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.types.js ***! \************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DatePicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DatePicker/defaults.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DatePicker/defaults.js ***! \****************************************************************************/ /*! exports provided: defaultDatePickerStrings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultDatePickerStrings", function() { return defaultDatePickerStrings; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Calendar */ "./node_modules/@fluentui/react/lib/Calendar.js"); var defaultDatePickerStrings = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _Calendar__WEBPACK_IMPORTED_MODULE_1__["defaultCalendarStrings"]), { prevMonthAriaLabel: 'Go to previous month', nextMonthAriaLabel: 'Go to next month', prevYearAriaLabel: 'Go to previous year', nextYearAriaLabel: 'Go to next year', closeButtonAriaLabel: 'Close date picker', isRequiredErrorMessage: 'Field is required', invalidInputErrorMessage: 'Invalid date format', isResetStatusMessage: 'Invalid entry "{0}", date reset to "{1}"' }); //# sourceMappingURL=defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DatePicker/index.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DatePicker/index.js ***! \*************************************************************************/ /*! exports provided: DatePicker, DatePickerBase, AnimationDirection, defaultDatePickerStrings */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _DatePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DatePicker */ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _DatePicker__WEBPACK_IMPORTED_MODULE_0__["DatePicker"]; }); /* harmony import */ var _DatePicker_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DatePicker.base */ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePickerBase", function() { return _DatePicker_base__WEBPACK_IMPORTED_MODULE_1__["DatePickerBase"]; }); /* harmony import */ var _DatePicker_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DatePicker.types */ "./node_modules/@fluentui/react/lib/components/DatePicker/DatePicker.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _Calendar_Calendar_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Calendar/Calendar.types */ "./node_modules/@fluentui/react/lib/components/Calendar/Calendar.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnimationDirection", function() { return _Calendar_Calendar_types__WEBPACK_IMPORTED_MODULE_3__["AnimationDirection"]; }); /* harmony import */ var _defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib/components/DatePicker/defaults.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDatePickerStrings", function() { return _defaults__WEBPACK_IMPORTED_MODULE_4__["defaultDatePickerStrings"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.base.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.base.js ***! \***************************************************************************************/ /*! exports provided: DetailsColumnBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsColumnBase", function() { return DetailsColumnBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); var MOUSEDOWN_PRIMARY_BUTTON = 0; // for mouse down event we are using ev.button property, 0 means left button var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["classNamesFunction"])(); var TRANSITION_DURATION_DRAG = 200; // ms var TRANSITION_DURATION_DROP = 1500; // ms var CLASSNAME_ADD_INTERVAL = 20; // ms var defaultOnRenderHeader = function (classNames) { return function (props) { if (!props) { return null; } if (props.column.isIconOnly) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.accessibleLabel }, props.column.name); } return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, props.column.name); }; }; /** * Component for rendering columns in a `DetailsList`. * * {@docCategory DetailsList} */ var DetailsColumnBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetailsColumnBase, _super); function DetailsColumnBase(props) { var _this = _super.call(this, props) || this; _this._root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onRenderFilterIcon = function (classNames) { return function (props) { var columnProps = props.columnProps, iconProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(props, ["columnProps"]); var IconComponent = (columnProps === null || columnProps === void 0 ? void 0 : columnProps.useFastIcons) ? _Icon__WEBPACK_IMPORTED_MODULE_2__["FontIcon"] : _Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"]; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, iconProps)); }; }; _this._onRenderColumnHeaderTooltip = function (tooltipHostProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: tooltipHostProps.hostClassName }, tooltipHostProps.children); }; _this._onColumnClick = function (ev) { var _a = _this.props, onColumnClick = _a.onColumnClick, column = _a.column; if (column.columnActionsMode === _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].disabled) { return; } if (column.onColumnClick) { column.onColumnClick(ev, column); } if (onColumnClick) { onColumnClick(ev, column); } }; _this._onDragStart = function (item, itemIndex, selectedItems, event) { var classNames = _this._classNames; if (itemIndex) { _this._updateHeaderDragInfo(itemIndex); _this._root.current.classList.add(classNames.borderWhileDragging); _this._async.setTimeout(function () { if (_this._root.current) { _this._root.current.classList.add(classNames.noBorderWhileDragging); } }, CLASSNAME_ADD_INTERVAL); } }; _this._onDragEnd = function (item, event) { var classNames = _this._classNames; if (event) { _this._updateHeaderDragInfo(-1, event); } _this._root.current.classList.remove(classNames.borderWhileDragging); _this._root.current.classList.remove(classNames.noBorderWhileDragging); }; _this._updateHeaderDragInfo = function (itemIndex, event) { /* eslint-disable deprecation/deprecation */ if (_this.props.setDraggedItemIndex) { _this.props.setDraggedItemIndex(itemIndex); } /* eslint-enable deprecation/deprecation */ if (_this.props.updateDragInfo) { _this.props.updateDragInfo({ itemIndex: itemIndex }, event); } }; _this._onColumnContextMenu = function (ev) { var _a = _this.props, onColumnContextMenu = _a.onColumnContextMenu, column = _a.column; if (column.onColumnContextMenu) { column.onColumnContextMenu(column, ev); ev.preventDefault(); } if (onColumnContextMenu) { onColumnContextMenu(column, ev); ev.preventDefault(); } }; _this._onRootMouseDown = function (ev) { var isDraggable = _this.props.isDraggable; // Ignore anything except the primary button. if (isDraggable && ev.button === MOUSEDOWN_PRIMARY_BUTTON) { ev.stopPropagation(); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["initializeComponentRef"])(_this); _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_3__["Async"](_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_3__["EventGroup"](_this); return _this; } DetailsColumnBase.prototype.render = function () { var _a = this.props, column = _a.column, parentId = _a.parentId, isDraggable = _a.isDraggable, styles = _a.styles, theme = _a.theme, _b = _a.cellStyleProps, cellStyleProps = _b === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_CELL_STYLE_PROPS"] : _b, _c = _a.useFastIcons, useFastIcons = _c === void 0 ? true : _c; var _d = this.props.onRenderColumnHeaderTooltip, onRenderColumnHeaderTooltip = _d === void 0 ? this._onRenderColumnHeaderTooltip : _d; this._classNames = getClassNames(styles, { theme: theme, headerClassName: column.headerClassName, iconClassName: column.iconClassName, isActionable: column.columnActionsMode !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].disabled, isEmpty: !column.name, isIconVisible: column.isSorted || column.isGrouped || column.isFiltered, isPadded: column.isPadded, isIconOnly: column.isIconOnly, cellStyleProps: cellStyleProps, transitionDurationDrag: TRANSITION_DURATION_DRAG, transitionDurationDrop: TRANSITION_DURATION_DROP, }); var classNames = this._classNames; var IconComponent = useFastIcons ? _Icon__WEBPACK_IMPORTED_MODULE_2__["FontIcon"] : _Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"]; var onRenderFilterIcon = column.onRenderFilterIcon ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["composeRenderFunction"])(column.onRenderFilterIcon, this._onRenderFilterIcon(this._classNames)) : this._onRenderFilterIcon(this._classNames); var onRenderHeader = column.onRenderHeader ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["composeRenderFunction"])(column.onRenderHeader, defaultOnRenderHeader(this._classNames)) : defaultOnRenderHeader(this._classNames); var hasInnerButton = column.columnActionsMode !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].disabled && (column.onColumnClick !== undefined || this.props.onColumnClick !== undefined); var accNameDescription = { 'aria-label': column.ariaLabel ? column.ariaLabel : column.isIconOnly ? column.name : undefined, 'aria-labelledby': column.ariaLabel || column.isIconOnly ? undefined : parentId + "-" + column.key + "-name", 'aria-describedby': !this.props.onRenderColumnHeaderTooltip && this._hasAccessibleDescription() ? parentId + "-" + column.key + "-tooltip" : undefined, }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ key: column.key, ref: this._root, role: 'columnheader' }, (!hasInnerButton && accNameDescription), { "aria-sort": column.isSorted ? (column.isSortedDescending ? 'descending' : 'ascending') : 'none', "data-is-focusable": !hasInnerButton && column.columnActionsMode !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].disabled ? 'true' : undefined, className: classNames.root, "data-is-draggable": isDraggable, draggable: isDraggable, style: { width: column.calculatedWidth + cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0), }, "data-automationid": 'ColumnsHeaderColumn', "data-item-key": column.key }), isDraggable && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { iconName: "GripperBarVertical", className: classNames.gripperBarVerticalStyle })), onRenderColumnHeaderTooltip({ hostClassName: classNames.cellTooltip, id: parentId + "-" + column.key + "-tooltip", setAriaDescribedBy: false, column: column, content: column.columnActionsMode !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].disabled ? column.ariaLabel : '', children: (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: parentId + "-" + column.key, className: classNames.cellTitle, "data-is-focusable": hasInnerButton && column.columnActionsMode !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].disabled ? 'true' : undefined, role: hasInnerButton ? 'button' : undefined }, (hasInnerButton && accNameDescription), { onContextMenu: this._onColumnContextMenu, onClick: this._onColumnClick, "aria-haspopup": column.columnActionsMode === _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].hasDropdown ? 'menu' : undefined, "aria-expanded": column.columnActionsMode === _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].hasDropdown ? !!column.isMenuOpen : undefined }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: parentId + "-" + column.key + "-name", className: classNames.cellName }, (column.iconName || column.iconClassName) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { className: classNames.iconClassName, iconName: column.iconName })), onRenderHeader(this.props)), column.isFiltered && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { className: classNames.nearIcon, iconName: "Filter" }), (column.isSorted || column.showSortIconWhenUnsorted) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { className: classNames.sortIcon, iconName: column.isSorted ? (column.isSortedDescending ? 'SortDown' : 'SortUp') : 'Sort' })), column.isGrouped && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { className: classNames.nearIcon, iconName: "GroupedDescending" }), column.columnActionsMode === _DetailsList_types__WEBPACK_IMPORTED_MODULE_4__["ColumnActionsMode"].hasDropdown && !column.isIconOnly && onRenderFilterIcon({ 'aria-hidden': true, columnProps: this.props, className: classNames.filterChevron, iconName: 'ChevronDown', }))), }, this._onRenderColumnHeaderTooltip)), !this.props.onRenderColumnHeaderTooltip ? this._renderAccessibleDescription() : null)); }; DetailsColumnBase.prototype.componentDidMount = function () { var _this = this; if (this.props.dragDropHelper && this.props.isDraggable) { this._addDragDropHandling(); } var classNames = this._classNames; if (this.props.isDropped) { if (this._root.current) { this._root.current.classList.add(classNames.borderAfterDropping); this._async.setTimeout(function () { if (_this._root.current) { _this._root.current.classList.add(classNames.noBorderAfterDropping); } }, CLASSNAME_ADD_INTERVAL); } this._async.setTimeout(function () { if (_this._root.current) { _this._root.current.classList.remove(classNames.borderAfterDropping); _this._root.current.classList.remove(classNames.noBorderAfterDropping); } }, TRANSITION_DURATION_DROP + CLASSNAME_ADD_INTERVAL); } }; DetailsColumnBase.prototype.componentWillUnmount = function () { if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); delete this._dragDropSubscription; } this._async.dispose(); this._events.dispose(); }; DetailsColumnBase.prototype.componentDidUpdate = function () { if (!this._dragDropSubscription && this.props.dragDropHelper && this.props.isDraggable) { this._addDragDropHandling(); } if (this._dragDropSubscription && !this.props.isDraggable) { this._dragDropSubscription.dispose(); this._events.off(this._root.current, 'mousedown'); delete this._dragDropSubscription; } }; DetailsColumnBase.prototype._getColumnDragDropOptions = function () { var _this = this; var columnIndex = this.props.columnIndex; var options = { selectionIndex: columnIndex, context: { data: columnIndex, index: columnIndex }, canDrag: function () { return _this.props.isDraggable; }, canDrop: function () { return false; }, onDragStart: this._onDragStart, updateDropState: function () { return undefined; }, onDrop: function () { return undefined; }, onDragEnd: this._onDragEnd, }; return options; }; DetailsColumnBase.prototype._hasAccessibleDescription = function () { var column = this.props.column; return !!(column.filterAriaLabel || column.sortAscendingAriaLabel || column.sortDescendingAriaLabel || column.groupAriaLabel || column.sortableAriaLabel); }; DetailsColumnBase.prototype._renderAccessibleDescription = function () { var _a = this.props, column = _a.column, parentId = _a.parentId; var classNames = this._classNames; return this._hasAccessibleDescription() && !this.props.onRenderColumnHeaderTooltip ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { key: column.key + "_label", id: parentId + "-" + column.key + "-tooltip", className: classNames.accessibleLabel, hidden: true }, (column.isFiltered && column.filterAriaLabel) || null, ((column.isSorted || column.showSortIconWhenUnsorted) && (column.isSorted ? column.isSortedDescending ? column.sortDescendingAriaLabel : column.sortAscendingAriaLabel : column.sortableAriaLabel)) || null, (column.isGrouped && column.groupAriaLabel) || null)) : null; }; DetailsColumnBase.prototype._addDragDropHandling = function () { this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getColumnDragDropOptions()); // We need to use native on this to prevent MarqueeSelection from handling the event before us. this._events.on(this._root.current, 'mousedown', this._onRootMouseDown); }; return DetailsColumnBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DetailsColumn.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.js ***! \**********************************************************************************/ /*! exports provided: DetailsColumn */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsColumn", function() { return DetailsColumn; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsColumn_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DetailsColumn.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.base.js"); /* harmony import */ var _DetailsColumn_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsColumn.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.styles.js"); var DetailsColumn = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DetailsColumn_base__WEBPACK_IMPORTED_MODULE_1__["DetailsColumnBase"], _DetailsColumn_styles__WEBPACK_IMPORTED_MODULE_2__["getDetailsColumnStyles"], undefined, { scope: 'DetailsColumn' }); //# sourceMappingURL=DetailsColumn.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.styles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.styles.js ***! \*****************************************************************************************/ /*! exports provided: getDetailsColumnStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDetailsColumnStyles", function() { return getDetailsColumnStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); /* harmony import */ var _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.styles.js"); var GlobalClassNames = { isActionable: 'is-actionable', cellIsCheck: 'ms-DetailsHeader-cellIsCheck', collapseButton: 'ms-DetailsHeader-collapseButton', isCollapsed: 'is-collapsed', isAllSelected: 'is-allSelected', isSelectAllHidden: 'is-selectAllHidden', isResizingColumn: 'is-resizingColumn', isEmpty: 'is-empty', isIconVisible: 'is-icon-visible', cellSizer: 'ms-DetailsHeader-cellSizer', isResizing: 'is-resizing', dropHintCircleStyle: 'ms-DetailsHeader-dropHintCircleStyle', dropHintLineStyle: 'ms-DetailsHeader-dropHintLineStyle', cellTitle: 'ms-DetailsHeader-cellTitle', cellName: 'ms-DetailsHeader-cellName', filterChevron: 'ms-DetailsHeader-filterChevron', gripperBarVerticalStyle: 'ms-DetailsColumn-gripperBar', nearIcon: 'ms-DetailsColumn-nearIcon', }; var getDetailsColumnStyles = function (props) { var _a; var theme = props.theme, headerClassName = props.headerClassName, iconClassName = props.iconClassName, isActionable = props.isActionable, isEmpty = props.isEmpty, isIconVisible = props.isIconVisible, isPadded = props.isPadded, isIconOnly = props.isIconOnly, _b = props.cellStyleProps, cellStyleProps = _b === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CELL_STYLE_PROPS"] : _b, transitionDurationDrag = props.transitionDurationDrag, transitionDurationDrop = props.transitionDurationDrop; var semanticColors = theme.semanticColors, palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); var colors = { iconForegroundColor: semanticColors.bodySubtext, headerForegroundColor: semanticColors.bodyText, headerBackgroundColor: semanticColors.bodyBackground, dropdownChevronForegroundColor: palette.neutralSecondary, resizerColor: palette.neutralTertiaryAlt, }; var nearIconStyle = { color: colors.iconForegroundColor, opacity: 1, paddingLeft: 8, }; var borderWhileDragging = { outline: "1px solid " + palette.themePrimary, }; var borderAfterDragOrDrop = { outlineColor: 'transparent', }; return { root: [ Object(_DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_3__["getCellStyles"])(props), fonts.small, isActionable && [ classNames.isActionable, { selectors: { ':hover': { color: semanticColors.bodyText, background: semanticColors.listHeaderBackgroundHovered, }, ':active': { background: semanticColors.listHeaderBackgroundPressed, }, }, }, ], isEmpty && [ classNames.isEmpty, { textOverflow: 'clip', }, ], isIconVisible && classNames.isIconVisible, isPadded && { paddingRight: cellStyleProps.cellExtraRightPadding + cellStyleProps.cellRightPadding, }, { selectors: { ':hover i[data-icon-name="GripperBarVertical"]': { display: 'block', }, }, }, headerClassName, ], gripperBarVerticalStyle: { display: 'none', position: 'absolute', textAlign: 'left', color: palette.neutralTertiary, left: 1, }, nearIcon: [classNames.nearIcon, nearIconStyle], sortIcon: [ nearIconStyle, { paddingLeft: 4, position: 'relative', top: 1, }, ], iconClassName: [ { color: colors.iconForegroundColor, opacity: 1, }, iconClassName, ], filterChevron: [ classNames.filterChevron, { color: colors.dropdownChevronForegroundColor, paddingLeft: 6, verticalAlign: 'middle', fontSize: fonts.small.fontSize, }, ], cellTitle: [ classNames.cellTitle, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'stretch', boxSizing: 'border-box', overflow: 'hidden', padding: "0 " + cellStyleProps.cellRightPadding + "px 0 " + cellStyleProps.cellLeftPadding + "px" }, (isIconOnly ? { alignContent: 'flex-end', maxHeight: '100%', flexWrap: 'wrap-reverse', } : {})), ], cellName: [ classNames.cellName, { flex: '0 1 auto', overflow: 'hidden', textOverflow: 'ellipsis', fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, fontSize: fonts.medium.fontSize, }, isIconOnly && { selectors: (_a = {}, _a["." + classNames.nearIcon] = { paddingLeft: 0, }, _a), }, ], cellTooltip: { display: 'block', position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, }, accessibleLabel: _Styling__WEBPACK_IMPORTED_MODULE_1__["hiddenContentStyle"], borderWhileDragging: borderWhileDragging, noBorderWhileDragging: [borderAfterDragOrDrop, { transition: "outline " + transitionDurationDrag + "ms ease" }], borderAfterDropping: borderWhileDragging, noBorderAfterDropping: [borderAfterDragOrDrop, { transition: "outline " + transitionDurationDrop + "ms ease" }], }; }; //# sourceMappingURL=DetailsColumn.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.types.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.types.js ***! \****************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DetailsColumn.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsFooter.types.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsFooter.types.js ***! \****************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DetailsFooter.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.base.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.base.js ***! \***************************************************************************************/ /*! exports provided: DetailsHeaderBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsHeaderBase", function() { return DetailsHeaderBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib/Layer.js"); /* harmony import */ var _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); /* harmony import */ var _GroupedList__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../GroupedList */ "./node_modules/@fluentui/react/lib/GroupedList.js"); /* harmony import */ var _DetailsRowCheck__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DetailsRowCheck */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); /* harmony import */ var _DragDrop__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../DragDrop */ "./node_modules/@fluentui/react/lib/DragDrop.js"); /* harmony import */ var _components_DetailsList_DetailsColumn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/DetailsList/DetailsColumn */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.js"); /* harmony import */ var _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DetailsHeader.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.types.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var MOUSEDOWN_PRIMARY_BUTTON = 0; // for mouse down event we are using ev.button property, 0 means left button var MOUSEMOVE_PRIMARY_BUTTON = 1; // for mouse move event we are using ev.buttons property, 1 means left button var NO_COLUMNS = []; var DetailsHeaderBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetailsHeaderBase, _super); function DetailsHeaderBase(props) { var _this = _super.call(this, props) || this; _this._rootElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._rootComponent = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._draggedColumnIndex = -1; _this._dropHintDetails = {}; _this._updateDroppingState = function (newValue, event) { if (_this._draggedColumnIndex >= 0 && event.type !== 'drop' && !newValue) { _this._resetDropHints(); } }; _this._onDragOver = function (item, event) { if (_this._draggedColumnIndex >= 0) { event.stopPropagation(); _this._computeDropHintToBeShown(event.clientX); } }; _this._onDrop = function (item, event) { // Safe to assume this is defined since we're handling a drop event var columnReorderProps = _this._getColumnReorderProps(); // Target index will not get changed if draggeditem is after target item. if (_this._draggedColumnIndex >= 0 && event) { var targetIndex = _this._draggedColumnIndex > _this._currentDropHintIndex ? _this._currentDropHintIndex : _this._currentDropHintIndex - 1; var isValidDrop = _this._isValidCurrentDropHintIndex(); event.stopPropagation(); if (isValidDrop) { _this._onDropIndexInfo.sourceIndex = _this._draggedColumnIndex; _this._onDropIndexInfo.targetIndex = targetIndex; if (columnReorderProps.onColumnDrop) { var dragDropDetails = { draggedIndex: _this._draggedColumnIndex, targetIndex: targetIndex, }; columnReorderProps.onColumnDrop(dragDropDetails); /* eslint-disable deprecation/deprecation */ } else if (columnReorderProps.handleColumnReorder) { columnReorderProps.handleColumnReorder(_this._draggedColumnIndex, targetIndex); /* eslint-enable deprecation/deprecation */ } } } _this._resetDropHints(); _this._dropHintDetails = {}; _this._draggedColumnIndex = -1; }; _this._computeColumnIndexOffset = function (showCheckbox) { var hasGroupExpander = _this.props.groupNestingDepth && _this.props.groupNestingDepth > 0; var offset = 1; if (showCheckbox) { offset += 1; } if (hasGroupExpander) { offset += 1; } return offset; }; _this._updateDragInfo = function (props, event) { // Safe to assume this is defined since we're handling a drag event var columnReorderProps = _this._getColumnReorderProps(); var itemIndex = props.itemIndex; if (itemIndex >= 0) { // Column index is set based on the checkbox _this._draggedColumnIndex = itemIndex - _this._computeColumnIndexOffset(!_this._isCheckboxColumnHidden()); _this._getDropHintPositions(); if (columnReorderProps.onColumnDragStart) { columnReorderProps.onColumnDragStart(true); } } else if (event && _this._draggedColumnIndex >= 0) { _this._resetDropHints(); _this._draggedColumnIndex = -1; _this._dropHintDetails = {}; if (columnReorderProps.onColumnDragEnd) { var columnDragEndLocation = _this._isEventOnHeader(event); columnReorderProps.onColumnDragEnd({ dropLocation: columnDragEndLocation }, event); } } }; _this._getDropHintPositions = function () { var _a = _this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; // Safe to assume this is defined since we're handling a drag/drop event var columnReorderProps = _this._getColumnReorderProps(); var prevX = 0; var prevMid = 0; var prevRef; var frozenColumnCountFromStart = columnReorderProps.frozenColumnCountFromStart || 0; var frozenColumnCountFromEnd = columnReorderProps.frozenColumnCountFromEnd || 0; for (var i = frozenColumnCountFromStart; i < columns.length - frozenColumnCountFromEnd + 1; i++) { if (_this._rootElement.current) { var dropHintElement = _this._rootElement.current.querySelectorAll('#columnDropHint_' + i)[0]; if (dropHintElement) { if (i === frozenColumnCountFromStart) { prevX = dropHintElement.offsetLeft; prevMid = dropHintElement.offsetLeft; prevRef = dropHintElement; } else { var newMid = (dropHintElement.offsetLeft + prevX) / 2; _this._dropHintDetails[i - 1] = { originX: prevX, startX: prevMid, endX: newMid, dropHintElementRef: prevRef, }; prevMid = newMid; prevRef = dropHintElement; prevX = dropHintElement.offsetLeft; if (i === columns.length - frozenColumnCountFromEnd) { _this._dropHintDetails[i] = { originX: prevX, startX: prevMid, endX: dropHintElement.offsetLeft, dropHintElementRef: prevRef, }; } } } } } }; /** * Based on the given cursor position, finds the nearest drop hint and updates the state to make it visible */ _this._computeDropHintToBeShown = function (clientX) { var isRtl = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(_this.props.theme); if (_this._rootElement.current) { var clientRect = _this._rootElement.current.getBoundingClientRect(); var headerOriginX = clientRect.left; var eventXRelativePosition = clientX - headerOriginX; var currentDropHintIndex = _this._currentDropHintIndex; if (_this._isValidCurrentDropHintIndex()) { if (_liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[currentDropHintIndex].startX, _this._dropHintDetails[currentDropHintIndex].endX)) { return; } } var _a = _this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; // Safe to assume this is defined since we're handling a drag/drop event var columnReorderProps = _this._getColumnReorderProps(); var frozenColumnCountFromStart = columnReorderProps.frozenColumnCountFromStart || 0; var frozenColumnCountFromEnd = columnReorderProps.frozenColumnCountFromEnd || 0; var currentIndex = frozenColumnCountFromStart; var lastValidColumn = columns.length - frozenColumnCountFromEnd; var indexToUpdate = -1; if (_isBefore(isRtl, eventXRelativePosition, _this._dropHintDetails[currentIndex].endX)) { indexToUpdate = currentIndex; } else if (_isAfter(isRtl, eventXRelativePosition, _this._dropHintDetails[lastValidColumn].startX)) { indexToUpdate = lastValidColumn; } else if (_this._isValidCurrentDropHintIndex()) { if (_this._dropHintDetails[currentDropHintIndex + 1] && _liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[currentDropHintIndex + 1].startX, _this._dropHintDetails[currentDropHintIndex + 1].endX)) { indexToUpdate = currentDropHintIndex + 1; } else if (_this._dropHintDetails[currentDropHintIndex - 1] && _liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[currentDropHintIndex - 1].startX, _this._dropHintDetails[currentDropHintIndex - 1].endX)) { indexToUpdate = currentDropHintIndex - 1; } } if (indexToUpdate === -1) { var startIndex = frozenColumnCountFromStart; var endIndex = lastValidColumn; while (startIndex < endIndex) { var middleIndex = Math.ceil((endIndex + startIndex) / 2); if (_liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[middleIndex].startX, _this._dropHintDetails[middleIndex].endX)) { indexToUpdate = middleIndex; break; } else if (_isBefore(isRtl, eventXRelativePosition, _this._dropHintDetails[middleIndex].originX)) { endIndex = middleIndex; } else if (_isAfter(isRtl, eventXRelativePosition, _this._dropHintDetails[middleIndex].originX)) { startIndex = middleIndex; } } } if (indexToUpdate === _this._draggedColumnIndex || indexToUpdate === _this._draggedColumnIndex + 1) { if (_this._isValidCurrentDropHintIndex()) { _this._resetDropHints(); } } else if (currentDropHintIndex !== indexToUpdate && indexToUpdate >= 0) { _this._resetDropHints(); _this._updateDropHintElement(_this._dropHintDetails[indexToUpdate].dropHintElementRef, 'inline-block'); _this._currentDropHintIndex = indexToUpdate; } } }; _this._renderColumnSizer = function (_a) { var _b; var columnIndex = _a.columnIndex; var _c = _this.props.columns, columns = _c === void 0 ? NO_COLUMNS : _c; var column = columns[columnIndex]; var columnResizeDetails = _this.state.columnResizeDetails; var classNames = _this._classNames; return column.isResizable ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: column.key + "_sizer", "aria-hidden": true, role: "button", "data-is-focusable": false, onClick: _stopPropagation, "data-sizer-index": columnIndex, onBlur: _this._onSizerBlur, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.cellSizer, columnIndex < columns.length - 1 ? classNames.cellSizerStart : classNames.cellSizerEnd, (_b = {}, _b[classNames.cellIsResizing] = columnResizeDetails && columnResizeDetails.columnIndex === columnIndex, _b)), onDoubleClick: _this._onSizerDoubleClick.bind(_this, columnIndex) })) : null; }; _this._onRenderColumnHeaderTooltip = function (tooltipHostProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: tooltipHostProps.hostClassName }, tooltipHostProps.children); }; /** * Called when the select all toggle is clicked. */ _this._onSelectAllClicked = function () { var selection = _this.props.selection; if (selection) { selection.toggleAllSelected(); } }; _this._onRootMouseDown = function (ev) { var columnIndexAttr = ev.target.getAttribute('data-sizer-index'); var columnIndex = Number(columnIndexAttr); var _a = _this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; if (columnIndexAttr === null || ev.button !== MOUSEDOWN_PRIMARY_BUTTON) { // Ignore anything except the primary button. return; } _this.setState({ columnResizeDetails: { columnIndex: columnIndex, columnMinWidth: columns[columnIndex].calculatedWidth, originX: ev.clientX, }, }); ev.preventDefault(); ev.stopPropagation(); }; _this._onRootMouseMove = function (ev) { var _a = _this.state, columnResizeDetails = _a.columnResizeDetails, isSizing = _a.isSizing; if (columnResizeDetails && !isSizing && ev.clientX !== columnResizeDetails.originX) { _this.setState({ isSizing: true }); } }; _this._onRootKeyDown = function (ev) { var _a = _this.state, columnResizeDetails = _a.columnResizeDetails, isSizing = _a.isSizing; var _b = _this.props, _c = _b.columns, columns = _c === void 0 ? NO_COLUMNS : _c, onColumnResized = _b.onColumnResized; var columnIndexAttr = ev.target.getAttribute('data-sizer-index'); if (!columnIndexAttr || isSizing) { return; } var columnIndex = Number(columnIndexAttr); if (!columnResizeDetails) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter) { _this.setState({ columnResizeDetails: { columnIndex: columnIndex, columnMinWidth: columns[columnIndex].calculatedWidth, }, }); ev.preventDefault(); ev.stopPropagation(); } } else { var increment = void 0; // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter) { _this.setState({ columnResizeDetails: undefined, }); ev.preventDefault(); ev.stopPropagation(); // eslint-disable-next-line deprecation/deprecation } else if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].left) { increment = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(_this.props.theme) ? 1 : -1; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].right) { increment = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(_this.props.theme) ? -1 : 1; } if (increment) { if (!ev.shiftKey) { increment *= 10; } _this.setState({ columnResizeDetails: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, columnResizeDetails), { columnMinWidth: columnResizeDetails.columnMinWidth + increment }), }); if (onColumnResized) { onColumnResized(columns[columnIndex], columnResizeDetails.columnMinWidth + increment, columnIndex); } ev.preventDefault(); ev.stopPropagation(); } } }; /** * mouse move event handler in the header * it will set isSizing state to true when user clicked on the sizer and move the mouse. * * @param ev - mouse move event */ _this._onSizerMouseMove = function (ev) { var // use buttons property here since ev.button in some edge case is not upding well during the move. // but firefox doesn't support it, so we set the default value when it is not defined. buttons = ev.buttons; var _a = _this.props, onColumnIsSizingChanged = _a.onColumnIsSizingChanged, onColumnResized = _a.onColumnResized, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b; var columnResizeDetails = _this.state.columnResizeDetails; if (buttons !== undefined && buttons !== MOUSEMOVE_PRIMARY_BUTTON) { // cancel mouse down event and return early when the primary button is not pressed _this._onSizerMouseUp(ev); return; } if (ev.clientX !== columnResizeDetails.originX) { if (onColumnIsSizingChanged) { onColumnIsSizingChanged(columns[columnResizeDetails.columnIndex], true); } } if (onColumnResized) { var movement = ev.clientX - columnResizeDetails.originX; if (Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(_this.props.theme)) { movement = -movement; } onColumnResized(columns[columnResizeDetails.columnIndex], columnResizeDetails.columnMinWidth + movement, columnResizeDetails.columnIndex); } }; _this._onSizerBlur = function (ev) { var columnResizeDetails = _this.state.columnResizeDetails; if (columnResizeDetails) { _this.setState({ columnResizeDetails: undefined, isSizing: false, }); } }; /** * mouse up event handler in the header * clear the resize related state. * This is to ensure we can catch double click event * * @param ev - mouse up event */ _this._onSizerMouseUp = function (ev) { var _a = _this.props, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b, onColumnIsSizingChanged = _a.onColumnIsSizingChanged; var columnResizeDetails = _this.state.columnResizeDetails; _this.setState({ columnResizeDetails: undefined, isSizing: false, }); if (onColumnIsSizingChanged) { onColumnIsSizingChanged(columns[columnResizeDetails.columnIndex], false); } }; _this._onToggleCollapseAll = function () { var onToggleCollapseAll = _this.props.onToggleCollapseAll; var newCollapsed = !_this.state.isAllCollapsed; _this.setState({ isAllCollapsed: newCollapsed, }); if (onToggleCollapseAll) { onToggleCollapseAll(newCollapsed); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["EventGroup"](_this); _this.state = { columnResizeDetails: undefined, isAllCollapsed: _this.props.isAllCollapsed, isAllSelected: !!_this.props.selection && _this.props.selection.isAllSelected(), }; _this._onDropIndexInfo = { sourceIndex: -1, targetIndex: -1, }; _this._id = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])('header'); _this._currentDropHintIndex = -1; // The drag drop handler won't do any work until subscribe() is called, // so always set it up for convenience _this._dragDropHelper = new _DragDrop__WEBPACK_IMPORTED_MODULE_11__["DragDropHelper"]({ selection: { getSelection: function () { return; }, }, minimumPixelsForDrag: _this.props.minimumPixelsForDrag, }); return _this; } DetailsHeaderBase.prototype.componentDidMount = function () { var selection = this.props.selection; this._events.on(selection, _Selection__WEBPACK_IMPORTED_MODULE_10__["SELECTION_CHANGE"], this._onSelectionChanged); // this._rootElement.current will be null in tests using react-test-renderer if (this._rootElement.current) { // We need to use native on this to prevent MarqueeSelection from handling the event before us. this._events.on(this._rootElement.current, 'mousedown', this._onRootMouseDown); this._events.on(this._rootElement.current, 'keydown', this._onRootKeyDown); if (this._getColumnReorderProps()) { this._subscriptionObject = this._dragDropHelper.subscribe(this._rootElement.current, this._events, this._getHeaderDragDropOptions()); } } }; DetailsHeaderBase.prototype.componentDidUpdate = function (prevProps) { if (this._getColumnReorderProps()) { if (!this._subscriptionObject && this._rootElement.current) { this._subscriptionObject = this._dragDropHelper.subscribe(this._rootElement.current, this._events, this._getHeaderDragDropOptions()); } } else if (this._subscriptionObject) { this._subscriptionObject.dispose(); delete this._subscriptionObject; } if (this.props !== prevProps && this._onDropIndexInfo.sourceIndex >= 0 && this._onDropIndexInfo.targetIndex >= 0) { var _a = prevProps.columns, previousColumns = _a === void 0 ? NO_COLUMNS : _a; var _b = this.props.columns, columns = _b === void 0 ? NO_COLUMNS : _b; if (previousColumns[this._onDropIndexInfo.sourceIndex].key === columns[this._onDropIndexInfo.targetIndex].key) { this._onDropIndexInfo = { sourceIndex: -1, targetIndex: -1, }; } } if (this.props.isAllCollapsed !== prevProps.isAllCollapsed) { this.setState({ isAllCollapsed: this.props.isAllCollapsed }); } }; DetailsHeaderBase.prototype.componentWillUnmount = function () { if (this._subscriptionObject) { this._subscriptionObject.dispose(); delete this._subscriptionObject; } this._dragDropHelper.dispose(); this._events.dispose(); }; DetailsHeaderBase.prototype.render = function () { var _this = this; var _a = this.props, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b, ariaLabel = _a.ariaLabel, ariaLabelForToggleAllGroupsButton = _a.ariaLabelForToggleAllGroupsButton, ariaLabelForSelectAllCheckbox = _a.ariaLabelForSelectAllCheckbox, selectAllVisibility = _a.selectAllVisibility, ariaLabelForSelectionColumn = _a.ariaLabelForSelectionColumn, indentWidth = _a.indentWidth, onColumnClick = _a.onColumnClick, onColumnContextMenu = _a.onColumnContextMenu, _c = _a.onRenderColumnHeaderTooltip, onRenderColumnHeaderTooltip = _c === void 0 ? this._onRenderColumnHeaderTooltip : _c, styles = _a.styles, selectionMode = _a.selectionMode, theme = _a.theme, onRenderDetailsCheckbox = _a.onRenderDetailsCheckbox, groupNestingDepth = _a.groupNestingDepth, useFastIcons = _a.useFastIcons, checkboxVisibility = _a.checkboxVisibility, className = _a.className; var _d = this.state, isAllSelected = _d.isAllSelected, columnResizeDetails = _d.columnResizeDetails, isSizing = _d.isSizing, isAllCollapsed = _d.isAllCollapsed; var showCheckbox = selectAllVisibility !== _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_13__["SelectAllVisibility"].none; var isCheckboxHidden = selectAllVisibility === _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_13__["SelectAllVisibility"].hidden; var isCheckboxAlwaysVisible = checkboxVisibility === _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].always; var columnReorderProps = this._getColumnReorderProps(); var frozenColumnCountFromStart = columnReorderProps && columnReorderProps.frozenColumnCountFromStart ? columnReorderProps.frozenColumnCountFromStart : 0; var frozenColumnCountFromEnd = columnReorderProps && columnReorderProps.frozenColumnCountFromEnd ? columnReorderProps.frozenColumnCountFromEnd : 0; this._classNames = getClassNames(styles, { theme: theme, isAllSelected: isAllSelected, isSelectAllHidden: selectAllVisibility === _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_13__["SelectAllVisibility"].hidden, isResizingColumn: !!columnResizeDetails && isSizing, isSizing: isSizing, isAllCollapsed: isAllCollapsed, isCheckboxHidden: isCheckboxHidden, className: className, }); var classNames = this._classNames; var IconComponent = useFastIcons ? _Icon__WEBPACK_IMPORTED_MODULE_5__["FontIcon"] : _Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"]; var hasGroupExpander = groupNestingDepth > 0; var showGroupExpander = hasGroupExpander && this.props.collapseAllVisibility === _GroupedList__WEBPACK_IMPORTED_MODULE_8__["CollapseAllVisibility"].visible; var columnIndexOffset = this._computeColumnIndexOffset(showCheckbox); var isRTL = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(theme); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZone"], { role: "row", "aria-label": ariaLabel, className: classNames.root, componentRef: this._rootComponent, elementRef: this._rootElement, onMouseMove: this._onRootMouseMove, "data-automationid": "DetailsHeader", direction: _FocusZone__WEBPACK_IMPORTED_MODULE_4__["FocusZoneDirection"].horizontal }, showCheckbox ? [ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: "__checkbox", className: classNames.cellIsCheck, "aria-labelledby": this._id + "-checkTooltip", onClick: !isCheckboxHidden ? this._onSelectAllClicked : undefined, role: 'columnheader' }, onRenderColumnHeaderTooltip({ hostClassName: classNames.checkTooltip, id: this._id + "-checkTooltip", setAriaDescribedBy: false, content: ariaLabelForSelectAllCheckbox, children: (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DetailsRowCheck__WEBPACK_IMPORTED_MODULE_9__["DetailsRowCheck"], { id: this._id + "-check", "aria-label": selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_10__["SelectionMode"].multiple ? ariaLabelForSelectAllCheckbox : ariaLabelForSelectionColumn, "data-is-focusable": !isCheckboxHidden || undefined, isHeader: true, selected: isAllSelected, anySelected: false, canSelect: !isCheckboxHidden, className: classNames.check, onRenderDetailsCheckbox: onRenderDetailsCheckbox, useFastIcons: useFastIcons, isVisible: isCheckboxAlwaysVisible })), }, this._onRenderColumnHeaderTooltip)), !this.props.onRenderColumnHeaderTooltip ? (ariaLabelForSelectAllCheckbox && !isCheckboxHidden ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { key: "__checkboxLabel", id: this._id + "-checkTooltip", className: classNames.accessibleLabel, "aria-hidden": true }, ariaLabelForSelectAllCheckbox)) : ariaLabelForSelectionColumn && isCheckboxHidden ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { key: "__checkboxLabel", id: this._id + "-checkTooltip", className: classNames.accessibleLabel, "aria-hidden": true }, ariaLabelForSelectionColumn)) : null) : null, ] : null, showGroupExpander ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.cellIsGroupExpander, onClick: this._onToggleCollapseAll, "data-is-focusable": true, "aria-label": ariaLabelForToggleAllGroupsButton, "aria-expanded": !isAllCollapsed, role: "columnheader" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { className: classNames.collapseButton, iconName: isRTL ? 'ChevronLeftMed' : 'ChevronRightMed' }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: classNames.accessibleLabel }, ariaLabelForToggleAllGroupsButton))) : hasGroupExpander ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.cellIsGroupExpander, "data-is-focusable": false, role: "columnheader" })) : null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_7__["GroupSpacer"], { indentWidth: indentWidth, role: "gridcell", count: groupNestingDepth - 1 }), columns.map(function (column, columnIndex) { var _isDraggable = columnReorderProps ? columnIndex >= frozenColumnCountFromStart && columnIndex < columns.length - frozenColumnCountFromEnd : false; return [ columnReorderProps && (_isDraggable || columnIndex === columns.length - frozenColumnCountFromEnd) && _this._renderDropHint(columnIndex), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_DetailsList_DetailsColumn__WEBPACK_IMPORTED_MODULE_12__["DetailsColumn"], { column: column, styles: column.styles, key: column.key, columnIndex: columnIndexOffset + columnIndex, parentId: _this._id, isDraggable: _isDraggable, updateDragInfo: _this._updateDragInfo, dragDropHelper: _this._dragDropHelper, onColumnClick: onColumnClick, onColumnContextMenu: onColumnContextMenu, // Do not render tooltips by default, but allow for override via props. onRenderColumnHeaderTooltip: _this.props.onRenderColumnHeaderTooltip, isDropped: _this._onDropIndexInfo.targetIndex === columnIndex, cellStyleProps: _this.props.cellStyleProps, useFastIcons: useFastIcons }), _this._renderColumnDivider(columnIndex), ]; }), columnReorderProps && frozenColumnCountFromEnd === 0 && this._renderDropHint(columns.length), isSizing && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Layer__WEBPACK_IMPORTED_MODULE_6__["Layer"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.sizingOverlay, onMouseMove: this._onSizerMouseMove, onMouseUp: this._onSizerMouseUp }))))); }; /** Set focus to the active thing in the focus area. */ DetailsHeaderBase.prototype.focus = function () { var _a; return !!((_a = this._rootComponent.current) === null || _a === void 0 ? void 0 : _a.focus()); }; /** * Gets column reorder props from this.props. If the calling code is part of setting up or * handling drag/drop events, it's safe to assume that this method's return value is defined * (because drag/drop handling will only be set up if reorder props are given). */ DetailsHeaderBase.prototype._getColumnReorderProps = function () { var _a = this.props, columnReorderOptions = _a.columnReorderOptions, columnReorderProps = _a.columnReorderProps; return columnReorderProps || (columnReorderOptions && Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, columnReorderOptions), { onColumnDragEnd: undefined })); }; DetailsHeaderBase.prototype._getHeaderDragDropOptions = function () { var options = { selectionIndex: 1, context: { data: this, index: 0 }, canDrag: function () { return false; }, canDrop: function () { return true; }, onDragStart: function () { return undefined; }, updateDropState: this._updateDroppingState, onDrop: this._onDrop, onDragEnd: function () { return undefined; }, onDragOver: this._onDragOver, }; return options; }; DetailsHeaderBase.prototype._isValidCurrentDropHintIndex = function () { return this._currentDropHintIndex >= 0; }; /** * @returns whether or not the "Select All" checkbox column is hidden. */ DetailsHeaderBase.prototype._isCheckboxColumnHidden = function () { var _a = this.props, selectionMode = _a.selectionMode, checkboxVisibility = _a.checkboxVisibility; return selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_10__["SelectionMode"].none || checkboxVisibility === _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden; }; DetailsHeaderBase.prototype._resetDropHints = function () { if (this._currentDropHintIndex >= 0) { this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef, 'none'); this._currentDropHintIndex = -1; } }; DetailsHeaderBase.prototype._updateDropHintElement = function (element, displayProperty) { element.childNodes[1].style.display = displayProperty; element.childNodes[0].style.display = displayProperty; }; DetailsHeaderBase.prototype._isEventOnHeader = function (event) { if (this._rootElement.current) { var clientRect = this._rootElement.current.getBoundingClientRect(); if (event.clientX > clientRect.left && event.clientX < clientRect.right && event.clientY > clientRect.top && event.clientY < clientRect.bottom) { return _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ColumnDragEndLocation"].header; } } }; DetailsHeaderBase.prototype._renderColumnDivider = function (columnIndex) { var _a = this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; var column = columns[columnIndex]; var onRenderDivider = column.onRenderDivider; return onRenderDivider ? onRenderDivider({ column: column, columnIndex: columnIndex }, this._renderColumnSizer) : this._renderColumnSizer({ column: column, columnIndex: columnIndex }); }; DetailsHeaderBase.prototype._renderDropHint = function (dropHintIndex) { var classNames = this._classNames; var IconComponent = this.props.useFastIcons ? _Icon__WEBPACK_IMPORTED_MODULE_5__["FontIcon"] : _Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"]; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: 'dropHintKey', className: classNames.dropHintStyle, id: "columnDropHint_" + dropHintIndex }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "presentation", key: "dropHintCircleKey", className: classNames.dropHintCaretStyle, "data-is-focusable": false, "data-sizer-index": dropHintIndex, "aria-hidden": true }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](IconComponent, { iconName: 'CircleShapeSolid' })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: "dropHintLineKey", "aria-hidden": true, "data-is-focusable": false, "data-sizer-index": dropHintIndex, className: classNames.dropHintLineStyle }))); }; /** * double click on the column sizer will auto ajust column width * to fit the longest content among current rendered rows. * * @param columnIndex - index of the column user double clicked * @param ev - mouse double click event */ DetailsHeaderBase.prototype._onSizerDoubleClick = function (columnIndex, ev) { var _a = this.props, onColumnAutoResized = _a.onColumnAutoResized, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b; if (onColumnAutoResized) { onColumnAutoResized(columns[columnIndex], columnIndex); } }; DetailsHeaderBase.prototype._onSelectionChanged = function () { var isAllSelected = !!this.props.selection && this.props.selection.isAllSelected(); if (this.state.isAllSelected !== isAllSelected) { this.setState({ isAllSelected: isAllSelected, }); } }; DetailsHeaderBase.defaultProps = { selectAllVisibility: _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_13__["SelectAllVisibility"].visible, collapseAllVisibility: _GroupedList__WEBPACK_IMPORTED_MODULE_8__["CollapseAllVisibility"].visible, useFastIcons: true, }; return DetailsHeaderBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); function _liesBetween(rtl, target, left, right) { return rtl ? target <= left && target >= right : target >= left && target <= right; } function _isBefore(rtl, a, b) { return rtl ? a >= b : a <= b; } function _isAfter(rtl, a, b) { return rtl ? a <= b : a >= b; } function _stopPropagation(ev) { ev.stopPropagation(); } //# sourceMappingURL=DetailsHeader.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.js ***! \**********************************************************************************/ /*! exports provided: DetailsHeader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsHeader", function() { return DetailsHeader; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsHeader_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DetailsHeader.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.base.js"); /* harmony import */ var _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.styles.js"); var DetailsHeader = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DetailsHeader_base__WEBPACK_IMPORTED_MODULE_1__["DetailsHeaderBase"], _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_2__["getDetailsHeaderStyles"], undefined, { scope: 'DetailsHeader' }); //# sourceMappingURL=DetailsHeader.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.styles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.styles.js ***! \*****************************************************************************************/ /*! exports provided: HEADER_HEIGHT, getCellStyles, getDetailsHeaderStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HEADER_HEIGHT", function() { return HEADER_HEIGHT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCellStyles", function() { return getCellStyles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDetailsHeaderStyles", function() { return getDetailsHeaderStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); /* harmony import */ var _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); // For every group level there is a GroupSpacer added. Importing this const to have the source value in one place. var GlobalClassNames = { tooltipHost: 'ms-TooltipHost', root: 'ms-DetailsHeader', cell: 'ms-DetailsHeader-cell', cellIsCheck: 'ms-DetailsHeader-cellIsCheck', collapseButton: 'ms-DetailsHeader-collapseButton', isCollapsed: 'is-collapsed', isAllSelected: 'is-allSelected', isSelectAllHidden: 'is-selectAllHidden', isResizingColumn: 'is-resizingColumn', cellSizer: 'ms-DetailsHeader-cellSizer', isResizing: 'is-resizing', dropHintCircleStyle: 'ms-DetailsHeader-dropHintCircleStyle', dropHintCaretStyle: 'ms-DetailsHeader-dropHintCaretStyle', dropHintLineStyle: 'ms-DetailsHeader-dropHintLineStyle', cellTitle: 'ms-DetailsHeader-cellTitle', cellName: 'ms-DetailsHeader-cellName', filterChevron: 'ms-DetailsHeader-filterChevron', gripperBarVertical: 'ms-DetailsColumn-gripperBarVertical', checkTooltip: 'ms-DetailsHeader-checkTooltip', check: 'ms-DetailsHeader-check', }; var HEADER_HEIGHT = 42; var getCellStyles = function (props) { var theme = props.theme, _a = props.cellStyleProps, cellStyleProps = _a === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_3__["DEFAULT_CELL_STYLE_PROPS"] : _a; var semanticColors = theme.semanticColors; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); return [ classNames.cell, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme), { color: semanticColors.bodyText, position: 'relative', display: 'inline-block', boxSizing: 'border-box', padding: "0 " + cellStyleProps.cellRightPadding + "px 0 " + cellStyleProps.cellLeftPadding + "px", lineHeight: 'inherit', margin: '0', height: HEADER_HEIGHT, verticalAlign: 'top', whiteSpace: 'nowrap', textOverflow: 'ellipsis', textAlign: 'left', }, ]; }; var getDetailsHeaderStyles = function (props) { var _a, _b, _c, _d; var theme = props.theme, className = props.className, isAllSelected = props.isAllSelected, isResizingColumn = props.isResizingColumn, isSizing = props.isSizing, isAllCollapsed = props.isAllCollapsed, _e = props.cellStyleProps, cellStyleProps = _e === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_3__["DEFAULT_CELL_STYLE_PROPS"] : _e; var semanticColors = theme.semanticColors, palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(GlobalClassNames, theme); var colors = { iconForegroundColor: semanticColors.bodySubtext, headerForegroundColor: semanticColors.bodyText, headerBackgroundColor: semanticColors.bodyBackground, resizerColor: palette.neutralTertiaryAlt, }; var cellSizerFadeInStyles = { opacity: 1, transition: 'opacity 0.3s linear', }; var cellStyles = getCellStyles(props); return { root: [ classNames.root, fonts.small, { display: 'inline-block', background: colors.headerBackgroundColor, position: 'relative', minWidth: '100%', verticalAlign: 'top', height: HEADER_HEIGHT, lineHeight: HEADER_HEIGHT, whiteSpace: 'nowrap', boxSizing: 'content-box', paddingBottom: '1px', paddingTop: '16px', borderBottom: "1px solid " + semanticColors.bodyDivider, cursor: 'default', userSelect: 'none', selectors: (_a = {}, _a["&:hover ." + classNames.check] = { opacity: 1, }, _a["& ." + classNames.tooltipHost + " ." + classNames.checkTooltip] = { display: 'block', }, _a), }, isAllSelected && classNames.isAllSelected, isResizingColumn && classNames.isResizingColumn, className, ], check: [ classNames.check, { height: HEADER_HEIGHT, }, { selectors: (_b = {}, _b["." + _Utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &:focus"] = { opacity: 1, }, _b), }, ], cellWrapperPadded: { paddingRight: cellStyleProps.cellExtraRightPadding + cellStyleProps.cellRightPadding, }, cellIsCheck: [ cellStyles, classNames.cellIsCheck, { position: 'relative', padding: 0, margin: 0, display: 'inline-flex', alignItems: 'center', border: 'none', }, isAllSelected && { opacity: 1, }, ], cellIsGroupExpander: [ cellStyles, { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', fontSize: fonts.small.fontSize, padding: 0, border: 'none', width: _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_4__["SPACER_WIDTH"], color: palette.neutralSecondary, selectors: { ':hover': { backgroundColor: palette.neutralLighter, }, ':active': { backgroundColor: palette.neutralLight, }, }, }, ], cellIsActionable: { selectors: { ':hover': { color: semanticColors.bodyText, background: semanticColors.listHeaderBackgroundHovered, }, ':active': { background: semanticColors.listHeaderBackgroundPressed, }, }, }, cellIsEmpty: { textOverflow: 'clip', }, cellSizer: [ classNames.cellSizer, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["focusClear"])(), { display: 'inline-block', position: 'relative', cursor: 'ew-resize', bottom: 0, top: 0, overflow: 'hidden', height: 'inherit', background: 'transparent', zIndex: 1, width: 16, selectors: (_c = { ':after': { content: '""', position: 'absolute', top: 0, bottom: 0, width: 1, background: colors.resizerColor, opacity: 0, left: '50%', }, ':focus:after': cellSizerFadeInStyles, ':hover:after': cellSizerFadeInStyles }, _c["&." + classNames.isResizing + ":after"] = [ cellSizerFadeInStyles, { boxShadow: '0 0 5px 0 rgba(0, 0, 0, 0.4)', }, ], _c), }, ], cellIsResizing: classNames.isResizing, cellSizerStart: { margin: '0 -8px', }, cellSizerEnd: { margin: 0, marginLeft: -16, }, collapseButton: [ classNames.collapseButton, { transformOrigin: '50% 50%', transition: 'transform .1s linear', }, isAllCollapsed ? [ classNames.isCollapsed, { transform: 'rotate(0deg)', }, ] : { transform: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(theme) ? 'rotate(-90deg)' : 'rotate(90deg)', }, ], checkTooltip: classNames.checkTooltip, sizingOverlay: isSizing && { position: 'absolute', left: 0, top: 0, right: 0, bottom: 0, cursor: 'ew-resize', background: 'rgba(255, 255, 255, 0)', selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'transparent' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _d), }, accessibleLabel: _Styling__WEBPACK_IMPORTED_MODULE_1__["hiddenContentStyle"], dropHintCircleStyle: [ classNames.dropHintCircleStyle, { display: 'inline-block', visibility: 'hidden', position: 'absolute', bottom: 0, height: 9, width: 9, borderRadius: '50%', marginLeft: -5, top: 34, overflow: 'visible', zIndex: 10, border: "1px solid " + palette.themePrimary, background: palette.white, }, ], dropHintCaretStyle: [ classNames.dropHintCaretStyle, { display: 'none', position: 'absolute', top: -28, left: -6.5, fontSize: fonts.medium.fontSize, color: palette.themePrimary, overflow: 'visible', zIndex: 10, }, ], dropHintLineStyle: [ classNames.dropHintLineStyle, { display: 'none', position: 'absolute', bottom: 0, top: 0, overflow: 'hidden', height: 42, width: 1, background: palette.themePrimary, zIndex: 10, }, ], dropHintStyle: { display: 'inline-block', position: 'absolute', }, }; }; //# sourceMappingURL=DetailsHeader.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.types.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.types.js ***! \****************************************************************************************/ /*! exports provided: SelectAllVisibility */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectAllVisibility", function() { return SelectAllVisibility; }); /** * {@docCategory DetailsList} */ var SelectAllVisibility; (function (SelectAllVisibility) { SelectAllVisibility[SelectAllVisibility["none"] = 0] = "none"; SelectAllVisibility[SelectAllVisibility["hidden"] = 1] = "hidden"; SelectAllVisibility[SelectAllVisibility["visible"] = 2] = "visible"; })(SelectAllVisibility || (SelectAllVisibility = {})); //# sourceMappingURL=DetailsHeader.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.base.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.base.js ***! \*************************************************************************************/ /*! exports provided: DetailsListBase, buildColumns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsListBase", function() { return DetailsListBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildColumns", function() { return buildColumns; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DetailsList/DetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js"); /* harmony import */ var _DetailsList_DetailsHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DetailsList/DetailsHeader */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.js"); /* harmony import */ var _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../DetailsList/DetailsHeader.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.types.js"); /* harmony import */ var _DetailsList_DetailsRow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../DetailsList/DetailsRow */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); /* harmony import */ var _DragDrop__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../DragDrop */ "./node_modules/@fluentui/react/lib/DragDrop.js"); /* harmony import */ var _GroupedList__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../GroupedList */ "./node_modules/@fluentui/react/lib/GroupedList.js"); /* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib/List.js"); /* harmony import */ var _utilities_decorators_withViewport__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utilities/decorators/withViewport */ "./node_modules/@fluentui/react/lib/utilities/decorators/withViewport.js"); /* harmony import */ var _utilities_groupedList_GroupedListUtility__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utilities/groupedList/GroupedListUtility */ "./node_modules/@fluentui/react/lib/utilities/groupedList/GroupedListUtility.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); /* harmony import */ var _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js"); /* harmony import */ var _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); // For every group level there is a GroupSpacer added. Importing this const to have the source value in one place. var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var MIN_COLUMN_WIDTH = 100; // this is the global min width var DEFAULT_RENDERED_WINDOWS_AHEAD = 2; var DEFAULT_RENDERED_WINDOWS_BEHIND = 2; var rowFocusZoneAddTabIndexProps = { tabIndex: 0 }; var rowFocusZoneNoTabIndexProps = {}; /** * Hooks-based implementation of DetailsList. * Since many existing consumers of DetailsList expect `ref` to return a `DetailsList`, * this inner component handles rendering while the outer maintains compatibility. */ var DetailsListInner = function (props) { var selection = props.selection; var ariaLabelForListHeader = props.ariaLabelForListHeader, ariaLabelForSelectAllCheckbox = props.ariaLabelForSelectAllCheckbox, ariaLabelForSelectionColumn = props.ariaLabelForSelectionColumn, className = props.className, checkboxVisibility = props.checkboxVisibility, compact = props.compact, constrainMode = props.constrainMode, dragDropEvents = props.dragDropEvents, groups = props.groups, groupProps = props.groupProps, indentWidth = props.indentWidth, items = props.items, isPlaceholderData = props.isPlaceholderData, isHeaderVisible = props.isHeaderVisible, layoutMode = props.layoutMode, onItemInvoked = props.onItemInvoked, onItemContextMenu = props.onItemContextMenu, onColumnHeaderClick = props.onColumnHeaderClick, onColumnHeaderContextMenu = props.onColumnHeaderContextMenu, _a = props.selectionMode, selectionMode = _a === void 0 ? selection.mode : _a, selectionPreservedOnEmptyClick = props.selectionPreservedOnEmptyClick, selectionZoneProps = props.selectionZoneProps, // eslint-disable-next-line deprecation/deprecation ariaLabel = props.ariaLabel, ariaLabelForGrid = props.ariaLabelForGrid, rowElementEventMap = props.rowElementEventMap, // eslint-disable-next-line deprecation/deprecation _b = props.shouldApplyApplicationRole, // eslint-disable-next-line deprecation/deprecation shouldApplyApplicationRole = _b === void 0 ? false : _b, getKey = props.getKey, listProps = props.listProps, usePageCache = props.usePageCache, onShouldVirtualize = props.onShouldVirtualize, viewport = props.viewport, minimumPixelsForDrag = props.minimumPixelsForDrag, getGroupHeight = props.getGroupHeight, styles = props.styles, theme = props.theme, _c = props.cellStyleProps, cellStyleProps = _c === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_14__["DEFAULT_CELL_STYLE_PROPS"] : _c, onRenderCheckbox = props.onRenderCheckbox, useFastIcons = props.useFastIcons, dragDropHelper = props.dragDropHelper, adjustedColumns = props.adjustedColumns, isCollapsed = props.isCollapsed, isSizing = props.isSizing, isSomeGroupExpanded = props.isSomeGroupExpanded, version = props.version, rootRef = props.rootRef, listRef = props.listRef, focusZoneRef = props.focusZoneRef, columnReorderOptions = props.columnReorderOptions, groupedListRef = props.groupedListRef, headerRef = props.headerRef, onGroupExpandStateChanged = props.onGroupExpandStateChanged, onColumnIsSizingChanged = props.onColumnIsSizingChanged, onRowDidMount = props.onRowDidMount, onRowWillUnmount = props.onRowWillUnmount, disableSelectionZone = props.disableSelectionZone, _d = props.isSelectedOnFocus, isSelectedOnFocus = _d === void 0 ? true : _d, onColumnResized = props.onColumnResized, onColumnAutoResized = props.onColumnAutoResized, onToggleCollapse = props.onToggleCollapse, onActiveRowChanged = props.onActiveRowChanged, onBlur = props.onBlur, eventsToRegister = props.rowElementEventMap, onRenderMissingItem = props.onRenderMissingItem, onRenderItemColumn = props.onRenderItemColumn, onRenderField = props.onRenderField, getCellValueKey = props.getCellValueKey, getRowAriaLabel = props.getRowAriaLabel, getRowAriaDescribedBy = props.getRowAriaDescribedBy, checkButtonAriaLabel = props.checkButtonAriaLabel, checkButtonGroupAriaLabel = props.checkButtonGroupAriaLabel, checkboxCellClassName = props.checkboxCellClassName, useReducedRowRenderer = props.useReducedRowRenderer, enableUpdateAnimations = props.enableUpdateAnimations, enterModalSelectionOnTouch = props.enterModalSelectionOnTouch, onRenderDefaultRow = props.onRenderDefaultRow, selectionZoneRef = props.selectionZoneRef, focusZoneProps = props.focusZoneProps; var defaultRole = 'grid'; var role = props.role ? props.role : defaultRole; var rowId = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_17__["getId"])('row'); var groupNestingDepth = getGroupNestingDepth(groups); var groupedDetailsListIndexMap = useGroupedDetailsListIndexMap(groups); var additionalListProps = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ renderedWindowsAhead: isSizing ? 0 : DEFAULT_RENDERED_WINDOWS_AHEAD, renderedWindowsBehind: isSizing ? 0 : DEFAULT_RENDERED_WINDOWS_BEHIND, getKey: getKey, version: version }, listProps); }, [isSizing, getKey, version, listProps]); var selectAllVisibility = _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"].none; // for SelectionMode.none if (selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].single) { selectAllVisibility = _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"].hidden; } if (selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].multiple) { // if isCollapsedGroupSelectVisible is false, disable select all when the list has all collapsed groups var isCollapsedGroupSelectVisible = groupProps && groupProps.headerProps && groupProps.headerProps.isCollapsedGroupSelectVisible; if (isCollapsedGroupSelectVisible === undefined) { isCollapsedGroupSelectVisible = true; } var isSelectAllVisible = isCollapsedGroupSelectVisible || !groups || isSomeGroupExpanded; selectAllVisibility = isSelectAllVisible ? _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"].visible : _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"].hidden; } if (checkboxVisibility === _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden) { selectAllVisibility = _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"].none; } var defaultOnRenderDetailsHeader = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (detailsHeaderProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DetailsList_DetailsHeader__WEBPACK_IMPORTED_MODULE_4__["DetailsHeader"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, detailsHeaderProps)); }, []); var defaultOnRenderDetailsFooter = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function () { return null; }, []); var propsOnRenderDetailsHeader = props.onRenderDetailsHeader; var onRenderDetailsHeader = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return propsOnRenderDetailsHeader ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_17__["composeRenderFunction"])(propsOnRenderDetailsHeader, defaultOnRenderDetailsHeader) : defaultOnRenderDetailsHeader; }, [propsOnRenderDetailsHeader, defaultOnRenderDetailsHeader]); var propsOnRenderDetailsFooter = props.onRenderDetailsFooter; var onRenderDetailsFooter = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return propsOnRenderDetailsFooter ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_17__["composeRenderFunction"])(propsOnRenderDetailsFooter, defaultOnRenderDetailsFooter) : defaultOnRenderDetailsFooter; }, [propsOnRenderDetailsFooter, defaultOnRenderDetailsFooter]); var detailsFooterProps = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return { columns: adjustedColumns, groupNestingDepth: groupNestingDepth, selection: selection, selectionMode: selectionMode, viewport: viewport, checkboxVisibility: checkboxVisibility, indentWidth: indentWidth, cellStyleProps: cellStyleProps, }; }, [ adjustedColumns, groupNestingDepth, selection, selectionMode, viewport, checkboxVisibility, indentWidth, cellStyleProps, ]); var columnReorderOnDragEnd = columnReorderOptions && columnReorderOptions.onDragEnd; var onColumnDragEnd = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (_a, event) { var dropLocation = _a.dropLocation; var finalDropLocation = _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ColumnDragEndLocation"].outside; if (columnReorderOnDragEnd) { if (dropLocation && dropLocation !== _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ColumnDragEndLocation"].header) { finalDropLocation = dropLocation; } else if (rootRef.current) { var clientRect = rootRef.current.getBoundingClientRect(); if (event.clientX > clientRect.left && event.clientX < clientRect.right && event.clientY > clientRect.top && event.clientY < clientRect.bottom) { finalDropLocation = _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ColumnDragEndLocation"].surface; } } columnReorderOnDragEnd(finalDropLocation); } }, [columnReorderOnDragEnd, rootRef]); var columnReorderProps = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { if (columnReorderOptions) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, columnReorderOptions), { onColumnDragEnd: onColumnDragEnd }); } }, [columnReorderOptions, onColumnDragEnd]); var rowCount = (isHeaderVisible ? 1 : 0) + (props.onRenderDetailsFooter ? 1 : 0) + Object(_utilities_groupedList_GroupedListUtility__WEBPACK_IMPORTED_MODULE_13__["GetGroupCount"])(groups) + (items ? items.length : 0); var colCount = (selectAllVisibility !== _DetailsList_DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"].none ? 1 : 0) + (adjustedColumns ? adjustedColumns.length : 0) + (groups ? 1 : 0); var classNames = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return getClassNames(styles, { theme: theme, compact: compact, isFixed: layoutMode === _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["DetailsListLayoutMode"].fixedColumns, isHorizontalConstrained: constrainMode === _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ConstrainMode"].horizontalConstrained, className: className, }); }, [styles, theme, compact, layoutMode, constrainMode, className]); var onRenderDetailsGroupFooter = groupProps && groupProps.onRenderFooter; var finalOnRenderDetailsGroupFooter = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return onRenderDetailsGroupFooter ? function (groupFooterProps, defaultRender) { return onRenderDetailsGroupFooter(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, groupFooterProps), { columns: adjustedColumns, groupNestingDepth: groupNestingDepth, indentWidth: indentWidth, selection: selection, selectionMode: selectionMode, viewport: viewport, checkboxVisibility: checkboxVisibility, cellStyleProps: cellStyleProps }), defaultRender); } : undefined; }, [ onRenderDetailsGroupFooter, adjustedColumns, groupNestingDepth, indentWidth, selection, selectionMode, viewport, checkboxVisibility, cellStyleProps, ]); var onRenderDetailsGroupHeader = groupProps && groupProps.onRenderHeader; var finalOnRenderDetailsGroupHeader = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return onRenderDetailsGroupHeader ? function (groupHeaderProps, defaultRender) { var _a, _b; var groupIndex = groupHeaderProps.groupIndex; var groupKey = groupIndex !== undefined ? (_b = (_a = groupHeaderProps.groups) === null || _a === void 0 ? void 0 : _a[groupIndex]) === null || _b === void 0 ? void 0 : _b.key : undefined; var totalRowCount = groupKey !== undefined && groupedDetailsListIndexMap[groupKey] ? groupedDetailsListIndexMap[groupKey].totalRowCount : 0; return onRenderDetailsGroupHeader(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, groupHeaderProps), { columns: adjustedColumns, groupNestingDepth: groupNestingDepth, indentWidth: indentWidth, selection: selection, selectionMode: checkboxVisibility !== _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden ? selectionMode : _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none, viewport: viewport, checkboxVisibility: checkboxVisibility, cellStyleProps: cellStyleProps, ariaColSpan: adjustedColumns.length, ariaLevel: undefined, ariaPosInSet: undefined, ariaSetSize: undefined, ariaRowCount: undefined, ariaRowIndex: groupIndex !== undefined ? totalRowCount + (isHeaderVisible ? 1 : 0) : undefined }), defaultRender); } : function (groupHeaderProps, defaultRender) { var _a, _b; var groupIndex = groupHeaderProps.groupIndex; var groupKey = groupIndex !== undefined ? (_b = (_a = groupHeaderProps.groups) === null || _a === void 0 ? void 0 : _a[groupIndex]) === null || _b === void 0 ? void 0 : _b.key : undefined; var totalRowCount = groupKey !== undefined && groupedDetailsListIndexMap[groupKey] ? groupedDetailsListIndexMap[groupKey].totalRowCount : 0; return defaultRender(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, groupHeaderProps), { ariaColSpan: adjustedColumns.length, ariaLevel: undefined, ariaPosInSet: undefined, ariaSetSize: undefined, ariaRowCount: undefined, ariaRowIndex: groupIndex !== undefined ? totalRowCount + (isHeaderVisible ? 1 : 0) : undefined })); }; }, [ onRenderDetailsGroupHeader, adjustedColumns, groupNestingDepth, indentWidth, isHeaderVisible, selection, selectionMode, viewport, checkboxVisibility, cellStyleProps, groupedDetailsListIndexMap, ]); var finalGroupProps = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { var _a; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, groupProps), { role: role === defaultRole ? 'rowgroup' : 'presentation', onRenderFooter: finalOnRenderDetailsGroupFooter, onRenderHeader: finalOnRenderDetailsGroupHeader, // pass through custom group header checkbox label headerProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, groupProps === null || groupProps === void 0 ? void 0 : groupProps.headerProps), { selectAllButtonProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ 'aria-label': checkButtonGroupAriaLabel }, (_a = groupProps === null || groupProps === void 0 ? void 0 : groupProps.headerProps) === null || _a === void 0 ? void 0 : _a.selectAllButtonProps) }) }); }, [groupProps, finalOnRenderDetailsGroupFooter, finalOnRenderDetailsGroupHeader, checkButtonGroupAriaLabel, role]); var sumColumnWidths = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_18__["useConst"])(function () { return Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (columns) { var totalWidth = 0; columns.forEach(function (column) { return (totalWidth += column.calculatedWidth || column.minWidth); }); return totalWidth; }); }); var collapseAllVisibility = groupProps && groupProps.collapseAllVisibility; var rowWidth = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { return sumColumnWidths(adjustedColumns); }, [adjustedColumns, sumColumnWidths]); var onRenderCell = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (nestingDepth, item, index, group) { var finalOnRenderRow = props.onRenderRow ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_17__["composeRenderFunction"])(props.onRenderRow, onRenderDefaultRow) : onRenderDefaultRow; var groupKey = group ? group.key : undefined; var numOfGroupHeadersBeforeItem = groupKey && groupedDetailsListIndexMap[groupKey] ? groupedDetailsListIndexMap[groupKey].numOfGroupHeadersBeforeItem : 0; var rowRole = role === defaultRole ? undefined : 'presentation'; // add tabindex="0" to first row if no header exists, to ensure the focuszone is in the tab order var rowFocusZoneProps = isHeaderVisible || index > 0 ? rowFocusZoneNoTabIndexProps : rowFocusZoneAddTabIndexProps; var rowProps = { item: item, itemIndex: index, flatIndexOffset: (isHeaderVisible ? 2 : 1) + numOfGroupHeadersBeforeItem, compact: compact, columns: adjustedColumns, groupNestingDepth: nestingDepth, id: rowId + "-" + index, selectionMode: selectionMode, selection: selection, onDidMount: onRowDidMount, onWillUnmount: onRowWillUnmount, onRenderItemColumn: onRenderItemColumn, onRenderField: onRenderField, getCellValueKey: getCellValueKey, eventsToRegister: eventsToRegister, dragDropEvents: dragDropEvents, dragDropHelper: dragDropHelper, viewport: viewport, checkboxVisibility: checkboxVisibility, collapseAllVisibility: collapseAllVisibility, getRowAriaLabel: getRowAriaLabel, getRowAriaDescribedBy: getRowAriaDescribedBy, checkButtonAriaLabel: checkButtonAriaLabel, checkboxCellClassName: checkboxCellClassName, useReducedRowRenderer: useReducedRowRenderer, indentWidth: indentWidth, cellStyleProps: cellStyleProps, onRenderDetailsCheckbox: onRenderCheckbox, enableUpdateAnimations: enableUpdateAnimations, rowWidth: rowWidth, useFastIcons: useFastIcons, role: rowRole, isGridRow: true, focusZoneProps: rowFocusZoneProps, }; if (!item) { if (onRenderMissingItem) { return onRenderMissingItem(index, rowProps); } return null; } return finalOnRenderRow(rowProps); }, [ compact, adjustedColumns, selectionMode, selection, rowId, onRowDidMount, onRowWillUnmount, onRenderItemColumn, onRenderField, getCellValueKey, eventsToRegister, dragDropEvents, dragDropHelper, viewport, checkboxVisibility, collapseAllVisibility, getRowAriaLabel, getRowAriaDescribedBy, isHeaderVisible, checkButtonAriaLabel, checkboxCellClassName, useReducedRowRenderer, indentWidth, cellStyleProps, onRenderCheckbox, enableUpdateAnimations, useFastIcons, onRenderDefaultRow, onRenderMissingItem, props.onRenderRow, rowWidth, role, groupedDetailsListIndexMap, ]); var onRenderListCell = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (nestingDepth) { return function (item, itemIndex) { return onRenderCell(nestingDepth, item, itemIndex); }; }, [onRenderCell]); var isRightArrow = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (event) { // eslint-disable-next-line deprecation/deprecation return event.which === Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTLSafeKeyCode"])(_Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].right, theme); }, [theme]); var focusZoneInnerProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, focusZoneProps), { componentRef: focusZoneProps && focusZoneProps.componentRef ? focusZoneProps.componentRef : focusZoneRef, className: classNames.focusZone, direction: focusZoneProps ? focusZoneProps.direction : _FocusZone__WEBPACK_IMPORTED_MODULE_7__["FocusZoneDirection"].vertical, shouldEnterInnerZone: focusZoneProps && focusZoneProps.shouldEnterInnerZone ? focusZoneProps.shouldEnterInnerZone : isRightArrow, onActiveElementChanged: focusZoneProps && focusZoneProps.onActiveElementChanged ? focusZoneProps.onActiveElementChanged : onActiveRowChanged, shouldRaiseClicksOnEnter: false, onBlur: focusZoneProps && focusZoneProps.onBlur ? focusZoneProps.onBlur : onBlur }); var FinalGroupedList = groups && (groupProps === null || groupProps === void 0 ? void 0 : groupProps.groupedListAs) ? Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_17__["composeComponentAs"])(groupProps.groupedListAs, _GroupedList__WEBPACK_IMPORTED_MODULE_10__["GroupedList"]) : _GroupedList__WEBPACK_IMPORTED_MODULE_10__["GroupedList"]; var list = groups ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](FinalGroupedList, { focusZoneProps: focusZoneInnerProps, componentRef: groupedListRef, groups: groups, groupProps: finalGroupProps, items: items, onRenderCell: onRenderCell, role: "presentation", selection: selection, selectionMode: checkboxVisibility !== _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden ? selectionMode : _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none, dragDropEvents: dragDropEvents, dragDropHelper: dragDropHelper, eventsToRegister: rowElementEventMap, listProps: additionalListProps, onGroupExpandStateChanged: onGroupExpandStateChanged, usePageCache: usePageCache, onShouldVirtualize: onShouldVirtualize, getGroupHeight: getGroupHeight, compact: compact })) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_7__["FocusZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, focusZoneInnerProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_List__WEBPACK_IMPORTED_MODULE_11__["List"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ref: listRef, role: "presentation", items: items, onRenderCell: onRenderListCell(0), usePageCache: usePageCache, onShouldVirtualize: onShouldVirtualize }, additionalListProps)))); var onHeaderKeyDown = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down) { if (focusZoneRef.current && focusZoneRef.current.focus()) { // select the first item in list after down arrow key event // only if nothing was selected; otherwise start with the already-selected item if (isSelectedOnFocus && selection.getSelectedIndices().length === 0) { selection.setIndexSelected(0, true, false); } ev.preventDefault(); ev.stopPropagation(); } } }, [selection, focusZoneRef, isSelectedOnFocus]); var onContentKeyDown = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up && !ev.altKey) { if (headerRef.current && headerRef.current.focus()) { ev.preventDefault(); ev.stopPropagation(); } } }, [headerRef]); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ref: rootRef, className: classNames.root, "data-automationid": "DetailsList", "data-is-scrollable": "false" }, (shouldApplyApplicationRole ? { role: 'application' } : {})), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Utilities__WEBPACK_IMPORTED_MODULE_2__["FocusRects"], null), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: role, "aria-label": ariaLabelForGrid || ariaLabel, "aria-rowcount": isPlaceholderData ? 0 : rowCount, "aria-colcount": colCount, "aria-busy": isPlaceholderData }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onKeyDown: onHeaderKeyDown, role: "presentation", className: classNames.headerWrapper }, isHeaderVisible && onRenderDetailsHeader({ componentRef: headerRef, selectionMode: selectionMode, layoutMode: layoutMode, selection: selection, columns: adjustedColumns, onColumnClick: onColumnHeaderClick, onColumnContextMenu: onColumnHeaderContextMenu, onColumnResized: onColumnResized, onColumnIsSizingChanged: onColumnIsSizingChanged, onColumnAutoResized: onColumnAutoResized, groupNestingDepth: groupNestingDepth, isAllCollapsed: isCollapsed, onToggleCollapseAll: onToggleCollapse, ariaLabel: ariaLabelForListHeader, ariaLabelForSelectAllCheckbox: ariaLabelForSelectAllCheckbox, ariaLabelForSelectionColumn: ariaLabelForSelectionColumn, selectAllVisibility: selectAllVisibility, collapseAllVisibility: groupProps && groupProps.collapseAllVisibility, viewport: viewport, columnReorderProps: columnReorderProps, minimumPixelsForDrag: minimumPixelsForDrag, cellStyleProps: cellStyleProps, checkboxVisibility: checkboxVisibility, indentWidth: indentWidth, onRenderDetailsCheckbox: onRenderCheckbox, rowWidth: sumColumnWidths(adjustedColumns), useFastIcons: useFastIcons, }, onRenderDetailsHeader)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onKeyDown: onContentKeyDown, role: "presentation", className: classNames.contentWrapper }, !disableSelectionZone ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ref: selectionZoneRef, selection: selection, selectionPreservedOnEmptyClick: selectionPreservedOnEmptyClick, selectionMode: selectionMode, isSelectedOnFocus: isSelectedOnFocus, selectionClearedOnEscapePress: isSelectedOnFocus, toggleWithoutModifierPressed: !isSelectedOnFocus, onItemInvoked: onItemInvoked, onItemContextMenu: onItemContextMenu, enterModalOnTouch: enterModalSelectionOnTouch }, (selectionZoneProps || {})), list)) : (list)), onRenderDetailsFooter(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, detailsFooterProps))))); }; var DetailsListBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetailsListBase, _super); function DetailsListBase(props) { var _this = _super.call(this, props) || this; _this._root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._header = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._groupedList = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._list = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._focusZone = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._selectionZone = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onRenderRow = function (props, defaultRender) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DetailsList_DetailsRow__WEBPACK_IMPORTED_MODULE_6__["DetailsRow"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); }; _this._getDerivedStateFromProps = function (nextProps, previousState) { var _a = _this.props, checkboxVisibility = _a.checkboxVisibility, items = _a.items, setKey = _a.setKey, _b = _a.selectionMode, selectionMode = _b === void 0 ? _this._selection.mode : _b, columns = _a.columns, viewport = _a.viewport, compact = _a.compact, dragDropEvents = _a.dragDropEvents; var _c = (_this.props.groupProps || {}).isAllGroupsCollapsed, isAllGroupsCollapsed = _c === void 0 ? undefined : _c; var newViewportWidth = (nextProps.viewport && nextProps.viewport.width) || 0; var oldViewportWidth = (viewport && viewport.width) || 0; var shouldResetSelection = nextProps.setKey !== setKey || nextProps.setKey === undefined; var shouldForceUpdates = false; if (nextProps.layoutMode !== _this.props.layoutMode) { shouldForceUpdates = true; } var nextState = previousState; if (shouldResetSelection) { _this._initialFocusedIndex = nextProps.initialFocusedIndex; // reset focusedItemIndex when setKey changes nextState = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, nextState), { focusedItemIndex: _this._initialFocusedIndex !== undefined ? _this._initialFocusedIndex : -1 }); } if (!_this.props.disableSelectionZone && nextProps.items !== items) { _this._selection.setItems(nextProps.items, shouldResetSelection); } if (nextProps.checkboxVisibility !== checkboxVisibility || nextProps.columns !== columns || newViewportWidth !== oldViewportWidth || nextProps.compact !== compact) { shouldForceUpdates = true; } nextState = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, nextState), _this._adjustColumns(nextProps, nextState, true)); if (nextProps.selectionMode !== selectionMode) { shouldForceUpdates = true; } if (isAllGroupsCollapsed === undefined && nextProps.groupProps && nextProps.groupProps.isAllGroupsCollapsed !== undefined) { nextState = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, nextState), { isCollapsed: nextProps.groupProps.isAllGroupsCollapsed, isSomeGroupExpanded: !nextProps.groupProps.isAllGroupsCollapsed }); } if (nextProps.dragDropEvents !== dragDropEvents) { _this._dragDropHelper && _this._dragDropHelper.dispose(); _this._dragDropHelper = nextProps.dragDropEvents ? new _DragDrop__WEBPACK_IMPORTED_MODULE_9__["DragDropHelper"]({ selection: _this._selection, minimumPixelsForDrag: nextProps.minimumPixelsForDrag, }) : undefined; shouldForceUpdates = true; } if (shouldForceUpdates) { nextState = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, nextState), { version: {} }); } return nextState; }; _this._onGroupExpandStateChanged = function (isSomeGroupExpanded) { _this.setState({ isSomeGroupExpanded: isSomeGroupExpanded }); }; _this._onColumnIsSizingChanged = function (column, isSizing) { _this.setState({ isSizing: isSizing }); }; _this._onRowDidMount = function (row) { var _a = row.props, item = _a.item, itemIndex = _a.itemIndex; var itemKey = _this._getItemKey(item, itemIndex); _this._activeRows[itemKey] = row; // this is used for column auto resize _this._setFocusToRowIfPending(row); var onRowDidMount = _this.props.onRowDidMount; if (onRowDidMount) { onRowDidMount(item, itemIndex); } }; _this._onRowWillUnmount = function (row) { var onRowWillUnmount = _this.props.onRowWillUnmount; var _a = row.props, item = _a.item, itemIndex = _a.itemIndex; var itemKey = _this._getItemKey(item, itemIndex); delete _this._activeRows[itemKey]; if (onRowWillUnmount) { onRowWillUnmount(item, itemIndex); } }; _this._onToggleCollapse = function (collapsed) { _this.setState({ isCollapsed: collapsed, }); if (_this._groupedList.current) { _this._groupedList.current.toggleCollapseAll(collapsed); } }; _this._onColumnResized = function (resizingColumn, newWidth, resizingColumnIndex) { var newCalculatedWidth = Math.max(resizingColumn.minWidth || MIN_COLUMN_WIDTH, newWidth); if (_this.props.onColumnResize) { _this.props.onColumnResize(resizingColumn, newCalculatedWidth, resizingColumnIndex); } _this._rememberCalculatedWidth(resizingColumn, newCalculatedWidth); _this.setState(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _this._adjustColumns(_this.props, _this.state, true, resizingColumnIndex)), { version: {} })); }; /** * Callback function when double clicked on the details header column resizer * which will measure the column cells of all the active rows and resize the * column to the max cell width. * * @param column - double clicked column definition * @param columnIndex - double clicked column index * TODO: min width 100 should be changed to const value and should be consistent with the * value used on _onSizerMove method in DetailsHeader */ _this._onColumnAutoResized = function (column, columnIndex) { var max = 0; var count = 0; var totalCount = Object.keys(_this._activeRows).length; for (var key in _this._activeRows) { if (_this._activeRows.hasOwnProperty(key)) { var currentRow = _this._activeRows[key]; currentRow.measureCell(columnIndex, function (width) { max = Math.max(max, width); count++; if (count === totalCount) { _this._onColumnResized(column, max, columnIndex); } }); } } }; /** * Call back function when an element in FocusZone becomes active. It will translate it into item * and call onActiveItemChanged callback if specified. * * @param row - element that became active in Focus Zone * @param focus - event from Focus Zone */ _this._onActiveRowChanged = function (el, ev) { var _a = _this.props, items = _a.items, onActiveItemChanged = _a.onActiveItemChanged; if (!el) { return; } // Check and assign index only if the event was raised from any DetailsRow element if (el.getAttribute('data-item-index')) { var index = Number(el.getAttribute('data-item-index')); if (index >= 0) { if (onActiveItemChanged) { onActiveItemChanged(items[index], index, ev); } _this.setState({ focusedItemIndex: index, }); } } }; _this._onBlur = function (event) { _this.setState({ focusedItemIndex: -1, }); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["Async"](_this); _this._activeRows = {}; _this._columnOverrides = {}; _this.state = { focusedItemIndex: -1, lastWidth: 0, adjustedColumns: _this._getAdjustedColumns(props, undefined), isSizing: false, isCollapsed: props.groupProps && props.groupProps.isAllGroupsCollapsed, isSomeGroupExpanded: props.groupProps && !props.groupProps.isAllGroupsCollapsed, version: {}, getDerivedStateFromProps: _this._getDerivedStateFromProps, }; _this._selection = props.selection || new _Selection__WEBPACK_IMPORTED_MODULE_8__["Selection"]({ onSelectionChanged: undefined, getKey: props.getKey, selectionMode: props.selectionMode, }); if (!_this.props.disableSelectionZone) { _this._selection.setItems(props.items, false); } _this._dragDropHelper = props.dragDropEvents ? new _DragDrop__WEBPACK_IMPORTED_MODULE_9__["DragDropHelper"]({ selection: _this._selection, minimumPixelsForDrag: props.minimumPixelsForDrag, }) : undefined; _this._initialFocusedIndex = props.initialFocusedIndex; return _this; } DetailsListBase.getDerivedStateFromProps = function (nextProps, previousState) { return previousState.getDerivedStateFromProps(nextProps, previousState); }; DetailsListBase.prototype.scrollToIndex = function (index, measureItem, scrollToMode) { this._list.current && this._list.current.scrollToIndex(index, measureItem, scrollToMode); this._groupedList.current && this._groupedList.current.scrollToIndex(index, measureItem, scrollToMode); }; DetailsListBase.prototype.focusIndex = function (index, forceIntoFirstElement, measureItem, scrollToMode) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } var item = this.props.items[index]; if (item) { this.scrollToIndex(index, measureItem, scrollToMode); var itemKey = this._getItemKey(item, index); var row = this._activeRows[itemKey]; if (row) { this._setFocusToRow(row, forceIntoFirstElement); } } }; DetailsListBase.prototype.getStartItemIndexInView = function () { if (this._list && this._list.current) { return this._list.current.getStartItemIndexInView(); } else if (this._groupedList && this._groupedList.current) { return this._groupedList.current.getStartItemIndexInView(); } return 0; }; DetailsListBase.prototype.updateColumn = function (column, options) { var _a, _b; var NO_COLUMNS = []; var _c = this.props, _d = _c.columns, columns = _d === void 0 ? NO_COLUMNS : _d, selectionMode = _c.selectionMode, checkboxVisibility = _c.checkboxVisibility, columnReorderOptions = _c.columnReorderOptions; var width = options.width, newColumnIndex = options.newColumnIndex; var index = columns.findIndex(function (col) { return col.key === column.key; }); if (width) { this._onColumnResized(column, width, index); } if (newColumnIndex !== undefined && columnReorderOptions) { var isCheckboxColumnHidden = selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none || checkboxVisibility === _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden; var showCheckbox = checkboxVisibility !== _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden; var columnIndex = (showCheckbox ? 2 : 1) + index; var draggedIndex = isCheckboxColumnHidden ? columnIndex - 1 : columnIndex - 2; var targetIndex = isCheckboxColumnHidden ? newColumnIndex - 1 : newColumnIndex - 2; var frozenColumnCountFromStart = (_a = columnReorderOptions.frozenColumnCountFromStart) !== null && _a !== void 0 ? _a : 0; var frozenColumnCountFromEnd = (_b = columnReorderOptions.frozenColumnCountFromEnd) !== null && _b !== void 0 ? _b : 0; var isValidTargetIndex = targetIndex >= frozenColumnCountFromStart && targetIndex < columns.length - frozenColumnCountFromEnd; if (isValidTargetIndex) { if (columnReorderOptions.onColumnDrop) { var dragDropDetails = { draggedIndex: draggedIndex, targetIndex: targetIndex, }; columnReorderOptions.onColumnDrop(dragDropDetails); /* eslint-disable deprecation/deprecation */ } else if (columnReorderOptions.handleColumnReorder) { columnReorderOptions.handleColumnReorder(draggedIndex, targetIndex); /* eslint-enable deprecation/deprecation */ } } } }; DetailsListBase.prototype.componentWillUnmount = function () { if (this._dragDropHelper) { // TODO If the DragDropHelper was passed via props, this will dispose it, which is incorrect behavior. this._dragDropHelper.dispose(); } this._async.dispose(); }; DetailsListBase.prototype.componentDidUpdate = function (prevProps, prevState) { this._notifyColumnsResized(); if (this._initialFocusedIndex !== undefined) { var item = this.props.items[this._initialFocusedIndex]; if (item) { var itemKey = this._getItemKey(item, this._initialFocusedIndex); var row = this._activeRows[itemKey]; if (row) { this._setFocusToRowIfPending(row); } } } if (this.props.items !== prevProps.items && this.props.items.length > 0 && this.state.focusedItemIndex !== -1 && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(this._root.current, document.activeElement, false)) { // Item set has changed and previously-focused item is gone. // Set focus to item at index of previously-focused item if it is in range, // else set focus to the last item. var index = this.state.focusedItemIndex < this.props.items.length ? this.state.focusedItemIndex : this.props.items.length - 1; var item = this.props.items[index]; var itemKey = this._getItemKey(item, this.state.focusedItemIndex); var row = this._activeRows[itemKey]; if (row) { this._setFocusToRow(row); } else { this._initialFocusedIndex = index; } } if (this.props.onDidUpdate) { this.props.onDidUpdate(this); } }; DetailsListBase.prototype.render = function () { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](DetailsListInner, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.props, this.state, { selection: this._selection, dragDropHelper: this._dragDropHelper, rootRef: this._root, listRef: this._list, groupedListRef: this._groupedList, focusZoneRef: this._focusZone, headerRef: this._header, selectionZoneRef: this._selectionZone, onGroupExpandStateChanged: this._onGroupExpandStateChanged, onColumnIsSizingChanged: this._onColumnIsSizingChanged, onRowDidMount: this._onRowDidMount, onRowWillUnmount: this._onRowWillUnmount, onColumnResized: this._onColumnResized, onColumnAutoResized: this._onColumnAutoResized, onToggleCollapse: this._onToggleCollapse, onActiveRowChanged: this._onActiveRowChanged, onBlur: this._onBlur, onRenderDefaultRow: this._onRenderRow }))); }; DetailsListBase.prototype.forceUpdate = function () { _super.prototype.forceUpdate.call(this); this._forceListUpdates(); }; DetailsListBase.prototype._getGroupNestingDepth = function () { var groups = this.props.groups; var level = 0; var groupsInLevel = groups; while (groupsInLevel && groupsInLevel.length > 0) { level++; groupsInLevel = groupsInLevel[0].children; } return level; }; DetailsListBase.prototype._setFocusToRowIfPending = function (row) { var itemIndex = row.props.itemIndex; if (this._initialFocusedIndex !== undefined && itemIndex === this._initialFocusedIndex) { this._setFocusToRow(row); delete this._initialFocusedIndex; } }; DetailsListBase.prototype._setFocusToRow = function (row, forceIntoFirstElement) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } if (this._selectionZone.current) { this._selectionZone.current.ignoreNextFocus(); } this._async.setTimeout(function () { row.focus(forceIntoFirstElement); }, 0); }; DetailsListBase.prototype._forceListUpdates = function () { if (this._groupedList.current) { this._groupedList.current.forceUpdate(); } if (this._list.current) { this._list.current.forceUpdate(); } }; DetailsListBase.prototype._notifyColumnsResized = function () { this.state.adjustedColumns.forEach(function (column) { if (column.onColumnResize) { column.onColumnResize(column.currentWidth); } }); }; DetailsListBase.prototype._adjustColumns = function (newProps, previousState, forceUpdate, resizingColumnIndex) { var adjustedColumns = this._getAdjustedColumns(newProps, previousState, forceUpdate, resizingColumnIndex); var viewport = this.props.viewport; var viewportWidth = viewport && viewport.width ? viewport.width : 0; return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, previousState), { adjustedColumns: adjustedColumns, lastWidth: viewportWidth }); }; /** Returns adjusted columns, given the viewport size and layout mode. */ DetailsListBase.prototype._getAdjustedColumns = function (newProps, previousState, forceUpdate, resizingColumnIndex) { var _this = this; var newItems = newProps.items, layoutMode = newProps.layoutMode, selectionMode = newProps.selectionMode, viewport = newProps.viewport; var viewportWidth = viewport && viewport.width ? viewport.width : 0; var newColumns = newProps.columns; var columns = this.props ? this.props.columns : []; var lastWidth = previousState ? previousState.lastWidth : -1; var lastSelectionMode = previousState ? previousState.lastSelectionMode : undefined; if (!forceUpdate && lastWidth === viewportWidth && lastSelectionMode === selectionMode && (!columns || newColumns === columns)) { return newColumns || []; } newColumns = newColumns || buildColumns(newItems, true); var adjustedColumns; if (layoutMode === _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["DetailsListLayoutMode"].fixedColumns) { adjustedColumns = this._getFixedColumns(newColumns, viewportWidth, newProps); // Preserve adjusted column calculated widths. adjustedColumns.forEach(function (column) { _this._rememberCalculatedWidth(column, column.calculatedWidth); }); } else { adjustedColumns = this._getJustifiedColumns(newColumns, viewportWidth, newProps); adjustedColumns.forEach(function (column) { _this._getColumnOverride(column.key).currentWidth = column.calculatedWidth; }); } return adjustedColumns; }; /** Builds a set of columns based on the given columns mixed with the current overrides. */ DetailsListBase.prototype._getFixedColumns = function (newColumns, viewportWidth, props) { var _this = this; var _a = this.props, _b = _a.selectionMode, selectionMode = _b === void 0 ? this._selection.mode : _b, checkboxVisibility = _a.checkboxVisibility, flexMargin = _a.flexMargin, skipViewportMeasures = _a.skipViewportMeasures; var remainingWidth = viewportWidth - (flexMargin || 0); var sumProportionalWidth = 0; newColumns.forEach(function (col) { if (skipViewportMeasures || !col.flexGrow) { remainingWidth -= col.maxWidth || col.minWidth || MIN_COLUMN_WIDTH; } else { remainingWidth -= col.minWidth || MIN_COLUMN_WIDTH; sumProportionalWidth += col.flexGrow; } remainingWidth -= getPaddedWidth(col, props, true); }); var rowCheckWidth = selectionMode !== _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none && checkboxVisibility !== _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden ? _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_15__["CHECK_CELL_WIDTH"] : 0; var groupExpandWidth = this._getGroupNestingDepth() * _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_16__["SPACER_WIDTH"]; remainingWidth -= rowCheckWidth + groupExpandWidth; var widthFraction = remainingWidth / sumProportionalWidth; // Shrinks proportional columns to their max width and adds the remaining width to distribute to other columns. if (!skipViewportMeasures) { newColumns.forEach(function (column) { var newColumn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, column), _this._columnOverrides[column.key]); if (newColumn.flexGrow && newColumn.maxWidth) { var fullWidth = newColumn.flexGrow * widthFraction + newColumn.minWidth; var shrinkWidth = fullWidth - newColumn.maxWidth; if (shrinkWidth > 0) { remainingWidth += shrinkWidth; sumProportionalWidth -= (shrinkWidth / (fullWidth - newColumn.minWidth)) * newColumn.flexGrow; } } }); } widthFraction = remainingWidth > 0 ? remainingWidth / sumProportionalWidth : 0; return newColumns.map(function (column) { var newColumn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, column), _this._columnOverrides[column.key]); // Delay computation until viewport width is available. if (!skipViewportMeasures && newColumn.flexGrow && remainingWidth <= 0) { return newColumn; } if (!newColumn.calculatedWidth) { if (!skipViewportMeasures && newColumn.flexGrow) { // Assigns the proportion of the remaining extra width after all columns have met minimum widths. newColumn.calculatedWidth = newColumn.minWidth + newColumn.flexGrow * widthFraction; newColumn.calculatedWidth = Math.min(newColumn.calculatedWidth, newColumn.maxWidth || Number.MAX_VALUE); } else { newColumn.calculatedWidth = newColumn.maxWidth || newColumn.minWidth || MIN_COLUMN_WIDTH; } } return newColumn; }); }; /** Builds a set of columns to fix within the viewport width. */ DetailsListBase.prototype._getJustifiedColumns = function (newColumns, viewportWidth, props) { var _this = this; var _a = props.selectionMode, selectionMode = _a === void 0 ? this._selection.mode : _a, checkboxVisibility = props.checkboxVisibility, skipViewportMeasures = props.skipViewportMeasures; var rowCheckWidth = selectionMode !== _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none && checkboxVisibility !== _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden ? _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_15__["CHECK_CELL_WIDTH"] : 0; var groupExpandWidth = this._getGroupNestingDepth() * _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_16__["SPACER_WIDTH"]; var totalWidth = 0; // offset because we have one less inner padding. var availableWidth = viewportWidth - (rowCheckWidth + groupExpandWidth); var adjustedColumns = newColumns.map(function (column, i) { var baseColumn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, column), { calculatedWidth: column.minWidth || MIN_COLUMN_WIDTH }); var newColumn = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, baseColumn), _this._columnOverrides[column.key]); totalWidth += getPaddedWidth(newColumn, props); return newColumn; }); if (skipViewportMeasures) { return adjustedColumns; } var lastIndex = adjustedColumns.length - 1; // Shrink or remove collapsable columns. while (lastIndex >= 0 && totalWidth > availableWidth) { var column = adjustedColumns[lastIndex]; var minWidth = column.minWidth || MIN_COLUMN_WIDTH; var overflowWidth = totalWidth - availableWidth; // eslint-disable-next-line deprecation/deprecation if (column.calculatedWidth - minWidth >= overflowWidth || !(column.isCollapsible || column.isCollapsable)) { var originalWidth = column.calculatedWidth; column.calculatedWidth = Math.max(column.calculatedWidth - overflowWidth, minWidth); totalWidth -= originalWidth - column.calculatedWidth; } else { totalWidth -= getPaddedWidth(column, props); adjustedColumns.splice(lastIndex, 1); } lastIndex--; } // Then expand columns starting at the beginning, until we've filled the width. for (var i = 0; i < adjustedColumns.length && totalWidth < availableWidth; i++) { var column = adjustedColumns[i]; var isLast = i === adjustedColumns.length - 1; var overrides = this._columnOverrides[column.key]; if (overrides && overrides.calculatedWidth && !isLast) { continue; } var spaceLeft = availableWidth - totalWidth; var increment = void 0; if (isLast) { increment = spaceLeft; } else { var maxWidth = column.maxWidth; var minWidth = column.minWidth || maxWidth || MIN_COLUMN_WIDTH; increment = maxWidth ? Math.min(spaceLeft, maxWidth - minWidth) : spaceLeft; } column.calculatedWidth = column.calculatedWidth + increment; totalWidth += increment; } return adjustedColumns; }; DetailsListBase.prototype._rememberCalculatedWidth = function (column, newCalculatedWidth) { var overrides = this._getColumnOverride(column.key); overrides.calculatedWidth = newCalculatedWidth; overrides.currentWidth = newCalculatedWidth; }; DetailsListBase.prototype._getColumnOverride = function (key) { return (this._columnOverrides[key] = this._columnOverrides[key] || {}); }; DetailsListBase.prototype._getItemKey = function (item, itemIndex) { var getKey = this.props.getKey; var itemKey = undefined; if (item) { itemKey = item.key; } if (getKey) { itemKey = getKey(item, itemIndex); } if (!itemKey) { itemKey = itemIndex; } return itemKey; }; DetailsListBase.defaultProps = { layoutMode: _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["DetailsListLayoutMode"].justified, selectionMode: _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].multiple, constrainMode: _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ConstrainMode"].horizontalConstrained, checkboxVisibility: _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].onHover, isHeaderVisible: true, compact: false, useFastIcons: true, }; DetailsListBase = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ _utilities_decorators_withViewport__WEBPACK_IMPORTED_MODULE_12__["withViewport"] ], DetailsListBase); return DetailsListBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); function buildColumns(items, canResizeColumns, onColumnClick, sortedColumnKey, isSortedDescending, groupedColumnKey, isMultiline, columnActionsMode) { var columns = []; if (items && items.length) { var firstItem = items[0]; for (var propName in firstItem) { if (firstItem.hasOwnProperty(propName)) { columns.push({ key: propName, name: propName, fieldName: propName, minWidth: MIN_COLUMN_WIDTH, maxWidth: 300, isCollapsible: !!columns.length, isMultiline: isMultiline === undefined ? false : isMultiline, isSorted: sortedColumnKey === propName, isSortedDescending: !!isSortedDescending, isRowHeader: false, columnActionsMode: columnActionsMode !== null && columnActionsMode !== void 0 ? columnActionsMode : _DetailsList_DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["ColumnActionsMode"].clickable, isResizable: canResizeColumns, onColumnClick: onColumnClick, isGrouped: groupedColumnKey === propName, }); } } } return columns; } function getPaddedWidth(column, props, paddingOnly) { var _a = props.cellStyleProps, cellStyleProps = _a === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_14__["DEFAULT_CELL_STYLE_PROPS"] : _a; return ((paddingOnly ? 0 : column.calculatedWidth) + cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0)); } function getGroupNestingDepth(groups) { var level = 0; var groupsInLevel = groups; while (groupsInLevel && groupsInLevel.length > 0) { level++; groupsInLevel = groupsInLevel[0].children; } return level; } function useGroupedDetailsListIndexMap(groups) { return react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () { var indexMap = {}; if (groups) { var rowCount = 1; var numGroupHeaders = 1; for (var _i = 0, groups_1 = groups; _i < groups_1.length; _i++) { var group = groups_1[_i]; var key = group.key; indexMap[key] = { numOfGroupHeadersBeforeItem: numGroupHeaders, totalRowCount: rowCount }; numGroupHeaders++; rowCount += group.count + 1; } } return indexMap; }, [groups]); } //# sourceMappingURL=DetailsList.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.js ***! \********************************************************************************/ /*! exports provided: DetailsList */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsList", function() { return DetailsList; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsList_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DetailsList.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.base.js"); /* harmony import */ var _DetailsList_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsList.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.styles.js"); var DetailsList = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DetailsList_base__WEBPACK_IMPORTED_MODULE_1__["DetailsListBase"], _DetailsList_styles__WEBPACK_IMPORTED_MODULE_2__["getDetailsListStyles"], undefined, { scope: 'DetailsList', }); //# sourceMappingURL=DetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.styles.js ***! \***************************************************************************************/ /*! exports provided: getDetailsListStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDetailsListStyles", function() { return getDetailsListStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-DetailsList', compact: 'ms-DetailsList--Compact', contentWrapper: 'ms-DetailsList-contentWrapper', headerWrapper: 'ms-DetailsList-headerWrapper', isFixed: 'is-fixed', isHorizontalConstrained: 'is-horizontalConstrained', listCell: 'ms-List-cell', }; var getDetailsListStyles = function (props) { var _a, _b; var theme = props.theme, className = props.className, isHorizontalConstrained = props.isHorizontalConstrained, compact = props.compact, isFixed = props.isFixed; var semanticColors = theme.semanticColors; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.small, { position: 'relative', color: semanticColors.listText, selectors: (_a = {}, _a["& ." + classNames.listCell] = { minHeight: 38, wordBreak: 'break-word', }, _a), }, isFixed && classNames.isFixed, compact && [ classNames.compact, { selectors: (_b = {}, _b["." + classNames.listCell] = { minHeight: 32, }, _b), }, ], isHorizontalConstrained && [ classNames.isHorizontalConstrained, { overflowX: 'auto', overflowY: 'visible', WebkitOverflowScrolling: 'touch', }, ], className, ], focusZone: [ { display: 'inline-block', minWidth: '100%', minHeight: 1, }, ], headerWrapper: classNames.headerWrapper, contentWrapper: classNames.contentWrapper, }; }; //# sourceMappingURL=DetailsList.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js ***! \**************************************************************************************/ /*! exports provided: ColumnActionsMode, ConstrainMode, ColumnDragEndLocation, DetailsListLayoutMode, CheckboxVisibility */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnActionsMode", function() { return ColumnActionsMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConstrainMode", function() { return ConstrainMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnDragEndLocation", function() { return ColumnDragEndLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsListLayoutMode", function() { return DetailsListLayoutMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxVisibility", function() { return CheckboxVisibility; }); /** * Enum to describe how a particular column header behaves. * This is used to to specify the property `IColumn.columnActionsMode`. * If `IColumn.columnActionsMode` is undefined, it's equivalent to `ColumnActionsMode.clickable`. * {@docCategory DetailsList} */ var ColumnActionsMode; (function (ColumnActionsMode) { /** Renders the column header as disabled. */ ColumnActionsMode[ColumnActionsMode["disabled"] = 0] = "disabled"; /** Renders the column header as clickable. Default value. */ ColumnActionsMode[ColumnActionsMode["clickable"] = 1] = "clickable"; /** Renders the column header as clickable and displays the dropdown chevron. */ ColumnActionsMode[ColumnActionsMode["hasDropdown"] = 2] = "hasDropdown"; })(ColumnActionsMode || (ColumnActionsMode = {})); /** * {@docCategory DetailsList} */ var ConstrainMode; (function (ConstrainMode) { /** Lets the content grow which allows the page to manage scrolling. */ ConstrainMode[ConstrainMode["unconstrained"] = 0] = "unconstrained"; /** Constrains the list to the given layout space. */ ConstrainMode[ConstrainMode["horizontalConstrained"] = 1] = "horizontalConstrained"; })(ConstrainMode || (ConstrainMode = {})); /** * Enum to describe where the column has been dropped, after starting the drag * {@docCategory DetailsList} */ var ColumnDragEndLocation; (function (ColumnDragEndLocation) { /** Drag ended outside of current list */ ColumnDragEndLocation[ColumnDragEndLocation["outside"] = 0] = "outside"; /** Drag ended within current list */ ColumnDragEndLocation[ColumnDragEndLocation["surface"] = 1] = "surface"; /** Drag ended on header */ ColumnDragEndLocation[ColumnDragEndLocation["header"] = 2] = "header"; })(ColumnDragEndLocation || (ColumnDragEndLocation = {})); /** * {@docCategory DetailsList} */ var DetailsListLayoutMode; (function (DetailsListLayoutMode) { /** * Lets the user resize columns and makes not attempt to fit them. */ DetailsListLayoutMode[DetailsListLayoutMode["fixedColumns"] = 0] = "fixedColumns"; /** * Manages which columns are visible, tries to size them according to their min/max rules and drops * off columns that can't fit and have isCollapsible set. */ DetailsListLayoutMode[DetailsListLayoutMode["justified"] = 1] = "justified"; })(DetailsListLayoutMode || (DetailsListLayoutMode = {})); /** * {@docCategory DetailsList} */ var CheckboxVisibility; (function (CheckboxVisibility) { /** Visible on hover. */ CheckboxVisibility[CheckboxVisibility["onHover"] = 0] = "onHover"; /** Visible always. */ CheckboxVisibility[CheckboxVisibility["always"] = 1] = "always"; /** Hide checkboxes. */ CheckboxVisibility[CheckboxVisibility["hidden"] = 2] = "hidden"; })(CheckboxVisibility || (CheckboxVisibility = {})); //# sourceMappingURL=DetailsList.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.base.js ***! \************************************************************************************/ /*! exports provided: DetailsRowBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsRowBase", function() { return DetailsRowBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js"); /* harmony import */ var _DetailsRowCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DetailsRowCheck */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.js"); /* harmony import */ var _GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); /* harmony import */ var _DetailsRowFields__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DetailsRowFields */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DEFAULT_DROPPING_CSS_CLASS = 'is-dropping'; var NO_COLUMNS = []; var DetailsRowBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DetailsRowBase, _super); function DetailsRowBase(props) { var _this = _super.call(this, props) || this; _this._root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._cellMeasurer = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._focusZone = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onSelectionChanged = function () { var selectionState = getSelectionState(_this.props); if (!Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["shallowCompare"])(selectionState, _this.state.selectionState)) { _this.setState({ selectionState: selectionState }); } }; /** * update isDropping state based on the input value, which is used to change style during drag and drop * * when change to true, that means drag enter. we will add default dropping class name * or the custom dropping class name (return result from onDragEnter) to the root elemet. * * when change to false, that means drag leave. we will remove the dropping class name from root element. * * @param newValue - New isDropping state value * @param event - The event trigger dropping state change which can be dragenter, dragleave etc */ _this._updateDroppingState = function (newValue, event) { var isDropping = _this.state.isDropping; var _a = _this.props, dragDropEvents = _a.dragDropEvents, item = _a.item; if (!newValue) { if (dragDropEvents.onDragLeave) { dragDropEvents.onDragLeave(item, event); } } else if (dragDropEvents.onDragEnter) { _this._droppingClassNames = dragDropEvents.onDragEnter(item, event); } if (isDropping !== newValue) { _this.setState({ isDropping: newValue }); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["EventGroup"](_this); _this.state = { selectionState: getSelectionState(props), columnMeasureInfo: undefined, isDropping: false, }; _this._droppingClassNames = ''; return _this; } DetailsRowBase.getDerivedStateFromProps = function (nextProps, previousState) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, previousState), { selectionState: getSelectionState(nextProps) }); }; DetailsRowBase.prototype.componentDidMount = function () { var _a = this.props, dragDropHelper = _a.dragDropHelper, selection = _a.selection, item = _a.item, onDidMount = _a.onDidMount; if (dragDropHelper && this._root.current) { this._dragDropSubscription = dragDropHelper.subscribe(this._root.current, this._events, this._getRowDragDropOptions()); } if (selection) { this._events.on(selection, _Selection__WEBPACK_IMPORTED_MODULE_8__["SELECTION_CHANGE"], this._onSelectionChanged); } if (onDidMount && item) { // If the item appears later, we should wait for it before calling this method. this._onDidMountCalled = true; onDidMount(this); } }; DetailsRowBase.prototype.componentDidUpdate = function (previousProps) { var state = this.state; var _a = this.props, item = _a.item, onDidMount = _a.onDidMount; var columnMeasureInfo = state.columnMeasureInfo; if (this.props.itemIndex !== previousProps.itemIndex || this.props.item !== previousProps.item || this.props.dragDropHelper !== previousProps.dragDropHelper) { if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); delete this._dragDropSubscription; } if (this.props.dragDropHelper && this._root.current) { this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getRowDragDropOptions()); } } if (columnMeasureInfo && columnMeasureInfo.index >= 0 && this._cellMeasurer.current) { var newWidth = this._cellMeasurer.current.getBoundingClientRect().width; columnMeasureInfo.onMeasureDone(newWidth); this.setState({ columnMeasureInfo: undefined, }); } if (item && onDidMount && !this._onDidMountCalled) { this._onDidMountCalled = true; onDidMount(this); } }; DetailsRowBase.prototype.componentWillUnmount = function () { var _a = this.props, item = _a.item, onWillUnmount = _a.onWillUnmount; // Only call the onWillUnmount callback if we have an item. if (onWillUnmount && item) { onWillUnmount(this); } if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); delete this._dragDropSubscription; } this._events.dispose(); }; DetailsRowBase.prototype.shouldComponentUpdate = function (nextProps, nextState) { if (this.props.useReducedRowRenderer) { var newSelectionState = getSelectionState(nextProps); if (this.state.selectionState.isSelected !== newSelectionState.isSelected) { return true; } return !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["shallowCompare"])(this.props, nextProps); } else { return true; } }; DetailsRowBase.prototype.render = function () { var _a; var _b = this.props, className = _b.className, _c = _b.columns, columns = _c === void 0 ? NO_COLUMNS : _c, dragDropEvents = _b.dragDropEvents, item = _b.item, itemIndex = _b.itemIndex, id = _b.id, _d = _b.flatIndexOffset, flatIndexOffset = _d === void 0 ? 2 : _d, _e = _b.onRenderCheck, onRenderCheck = _e === void 0 ? this._onRenderCheck : _e, onRenderDetailsCheckbox = _b.onRenderDetailsCheckbox, onRenderItemColumn = _b.onRenderItemColumn, onRenderField = _b.onRenderField, getCellValueKey = _b.getCellValueKey, selectionMode = _b.selectionMode, checkboxVisibility = _b.checkboxVisibility, getRowAriaLabel = _b.getRowAriaLabel, getRowAriaDescription = _b.getRowAriaDescription, getRowAriaDescribedBy = _b.getRowAriaDescribedBy, isGridRow = _b.isGridRow, checkButtonAriaLabel = _b.checkButtonAriaLabel, checkboxCellClassName = _b.checkboxCellClassName, /** Alias rowFieldsAs as RowFields and default to DetailsRowFields if rowFieldsAs does not exist */ rowFieldsAs = _b.rowFieldsAs, selection = _b.selection, indentWidth = _b.indentWidth, enableUpdateAnimations = _b.enableUpdateAnimations, compact = _b.compact, theme = _b.theme, styles = _b.styles, cellsByColumn = _b.cellsByColumn, groupNestingDepth = _b.groupNestingDepth, _f = _b.useFastIcons, useFastIcons = _f === void 0 ? true : _f, cellStyleProps = _b.cellStyleProps, group = _b.group, focusZoneProps = _b.focusZoneProps, _g = _b.disabled, disabled = _g === void 0 ? false : _g; var _h = this.state, columnMeasureInfo = _h.columnMeasureInfo, isDropping = _h.isDropping; var _j = this.state.selectionState, _k = _j.isSelected, isSelected = _k === void 0 ? false : _k, _l = _j.isSelectionModal, isSelectionModal = _l === void 0 ? false : _l; var isDraggable = dragDropEvents ? !!(dragDropEvents.canDrag && dragDropEvents.canDrag(item)) : undefined; var droppingClassName = isDropping ? this._droppingClassNames || DEFAULT_DROPPING_CSS_CLASS : ''; var ariaLabel = getRowAriaLabel ? getRowAriaLabel(item) : undefined; var ariaRowDescription = getRowAriaDescription ? getRowAriaDescription(item) : undefined; var ariaDescribedBy = getRowAriaDescribedBy ? getRowAriaDescribedBy(item) : undefined; var canSelect = !!selection && selection.canSelectItem(item, itemIndex) && !disabled; var isContentUnselectable = selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].multiple; var showCheckbox = selectionMode !== _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none && checkboxVisibility !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].hidden; var ariaSelected = selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_8__["SelectionMode"].none ? undefined : isSelected; var ariaPositionInSet = group ? itemIndex - group.startIndex + 1 : undefined; var ariaSetSize = group ? group.count : undefined; var focusZoneDirection = focusZoneProps ? focusZoneProps.direction : _FocusZone__WEBPACK_IMPORTED_MODULE_7__["FocusZoneDirection"].horizontal; this._classNames = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this._classNames), getClassNames(styles, { theme: theme, isSelected: isSelected, canSelect: !isContentUnselectable, anySelected: isSelectionModal, checkboxCellClassName: checkboxCellClassName, droppingClassName: droppingClassName, className: className, compact: compact, enableUpdateAnimations: enableUpdateAnimations, cellStyleProps: cellStyleProps, disabled: disabled, })); var rowClassNames = { isMultiline: this._classNames.isMultiline, isRowHeader: this._classNames.isRowHeader, cell: this._classNames.cell, cellAnimation: this._classNames.cellAnimation, cellPadded: this._classNames.cellPadded, cellUnpadded: this._classNames.cellUnpadded, fields: this._classNames.fields, }; // Only re-assign rowClassNames when classNames have changed. // Otherwise, they will cause DetailsRowFields to unnecessarily // re-render, see https://github.com/microsoft/fluentui/pull/8799. // Refactor DetailsRowFields to generate own styles to remove need for this. if (!Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["shallowCompare"])(this._rowClassNames || {}, rowClassNames)) { this._rowClassNames = rowClassNames; } var RowFields = rowFieldsAs ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeComponentAs"])(rowFieldsAs, _DetailsRowFields__WEBPACK_IMPORTED_MODULE_6__["DetailsRowFields"]) : _DetailsRowFields__WEBPACK_IMPORTED_MODULE_6__["DetailsRowFields"]; var rowFields = (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](RowFields, { rowClassNames: this._rowClassNames, rowHeaderId: id + "-header", cellsByColumn: cellsByColumn, columns: columns, item: item, itemIndex: itemIndex, isSelected: isSelected, columnStartIndex: (showCheckbox ? 1 : 0) + (groupNestingDepth ? 1 : 0), onRenderItemColumn: onRenderItemColumn, onRenderField: onRenderField, getCellValueKey: getCellValueKey, enableUpdateAnimations: enableUpdateAnimations, cellStyleProps: cellStyleProps })); var defaultRole = 'row'; var role = this.props.role ? this.props.role : defaultRole; this._ariaRowDescriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])('DetailsRow-description'); // When the user does not specify any column is a row-header in the columns props, // The aria-labelledby of the checkbox does not specify {id}-header. var hasRowHeader = columns.some(function (column) { return !!column.isRowHeader; }); var ariaLabelledby = id + "-checkbox" + (hasRowHeader ? " " + id + "-header" : ''); // additional props for rows within a GroupedList // these are needed for treegrid row semantics, but not grid row semantics var groupedListRowProps = isGridRow ? {} : { 'aria-level': (groupNestingDepth && groupNestingDepth + 1) || undefined, 'aria-posinset': ariaPositionInSet, 'aria-setsize': ariaSetSize, }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_7__["FocusZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-is-focusable": true }, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(this.props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"]), (typeof isDraggable === 'boolean' ? { 'data-is-draggable': isDraggable, draggable: isDraggable, } : {}), focusZoneProps, groupedListRowProps, { direction: focusZoneDirection, elementRef: this._root, componentRef: this._focusZone, role: role, "aria-label": ariaLabel, "aria-disabled": disabled || undefined, "aria-describedby": ariaRowDescription ? this._ariaRowDescriptionId : ariaDescribedBy, className: this._classNames.root, "data-selection-index": itemIndex, "data-selection-touch-invoke": true, "data-selection-disabled": (_a = this.props['data-selection-disabled']) !== null && _a !== void 0 ? _a : (disabled || undefined), "data-item-index": itemIndex, "aria-rowindex": ariaPositionInSet === undefined ? itemIndex + flatIndexOffset : undefined, "data-automationid": "DetailsRow", "aria-selected": ariaSelected, allowFocusRoot: true }), ariaRowDescription ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { key: "description", role: "presentation", hidden: true, id: this._ariaRowDescriptionId }, ariaRowDescription)) : null, showCheckbox && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "gridcell", "data-selection-toggle": true, className: this._classNames.checkCell }, onRenderCheck({ id: id ? id + "-checkbox" : undefined, selected: isSelected, selectionMode: selectionMode, anySelected: isSelectionModal, 'aria-label': checkButtonAriaLabel, 'aria-labelledby': id ? ariaLabelledby : undefined, canSelect: canSelect, compact: compact, className: this._classNames.check, theme: theme, isVisible: checkboxVisibility === _DetailsList_types__WEBPACK_IMPORTED_MODULE_3__["CheckboxVisibility"].always, onRenderDetailsCheckbox: onRenderDetailsCheckbox, useFastIcons: useFastIcons, }))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_GroupedList_GroupSpacer__WEBPACK_IMPORTED_MODULE_5__["GroupSpacer"], { indentWidth: indentWidth, role: "gridcell", count: groupNestingDepth === 0 ? -1 : groupNestingDepth }), item && rowFields, columnMeasureInfo && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { role: "presentation", className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(this._classNames.cellMeasurer, this._classNames.cell), ref: this._cellMeasurer }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](RowFields, { rowClassNames: this._rowClassNames, rowHeaderId: id + "-header", columns: [columnMeasureInfo.column], item: item, itemIndex: itemIndex, columnStartIndex: (showCheckbox ? 1 : 0) + (groupNestingDepth ? 1 : 0) + columns.length, onRenderItemColumn: onRenderItemColumn, getCellValueKey: getCellValueKey }))))); }; /** * measure cell at index. and call the call back with the measured cell width when finish measure * * @param index - The cell index * @param onMeasureDone - The call back function when finish measure */ DetailsRowBase.prototype.measureCell = function (index, onMeasureDone) { var _a = this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; var column = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, columns[index]); column.minWidth = 0; column.maxWidth = 999999; delete column.calculatedWidth; this.setState({ columnMeasureInfo: { index: index, column: column, onMeasureDone: onMeasureDone, }, }); }; DetailsRowBase.prototype.focus = function (forceIntoFirstElement) { var _a; if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } return !!((_a = this._focusZone.current) === null || _a === void 0 ? void 0 : _a.focus(forceIntoFirstElement)); }; DetailsRowBase.prototype._onRenderCheck = function (props) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DetailsRowCheck__WEBPACK_IMPORTED_MODULE_4__["DetailsRowCheck"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props)); }; DetailsRowBase.prototype._getRowDragDropOptions = function () { var _a = this.props, item = _a.item, itemIndex = _a.itemIndex, dragDropEvents = _a.dragDropEvents, eventsToRegister = _a.eventsToRegister; var options = { eventMap: eventsToRegister, selectionIndex: itemIndex, context: { data: item, index: itemIndex }, canDrag: dragDropEvents.canDrag, canDrop: dragDropEvents.canDrop, onDragStart: dragDropEvents.onDragStart, updateDropState: this._updateDroppingState, onDrop: dragDropEvents.onDrop, onDragEnd: dragDropEvents.onDragEnd, onDragOver: dragDropEvents.onDragOver, }; return options; }; return DetailsRowBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); function getSelectionState(props) { var _a; var itemIndex = props.itemIndex, selection = props.selection; return { isSelected: !!(selection === null || selection === void 0 ? void 0 : selection.isIndexSelected(itemIndex)), isSelectionModal: !!((_a = selection === null || selection === void 0 ? void 0 : selection.isModal) === null || _a === void 0 ? void 0 : _a.call(selection)), }; } //# sourceMappingURL=DetailsRow.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.js ***! \*******************************************************************************/ /*! exports provided: DetailsRow */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsRow", function() { return DetailsRow; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsRow_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DetailsRow.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.base.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); var DetailsRow = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DetailsRow_base__WEBPACK_IMPORTED_MODULE_1__["DetailsRowBase"], _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__["getDetailsRowStyles"], undefined, { scope: 'DetailsRow', }); //# sourceMappingURL=DetailsRow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js ***! \**************************************************************************************/ /*! exports provided: DetailsRowGlobalClassNames, DEFAULT_CELL_STYLE_PROPS, DEFAULT_ROW_HEIGHTS, getDetailsRowStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsRowGlobalClassNames", function() { return DetailsRowGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CELL_STYLE_PROPS", function() { return DEFAULT_CELL_STYLE_PROPS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_ROW_HEIGHTS", function() { return DEFAULT_ROW_HEIGHTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDetailsRowStyles", function() { return getDetailsRowStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _components_Link_Link_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Link/Link.styles */ "./node_modules/@fluentui/react/lib/components/Link/Link.styles.js"); var DetailsRowGlobalClassNames = { root: 'ms-DetailsRow', // TODO: in Fabric 7.0 lowercase the 'Compact' for consistency across other components. compact: 'ms-DetailsList--Compact', cell: 'ms-DetailsRow-cell', cellAnimation: 'ms-DetailsRow-cellAnimation', cellCheck: 'ms-DetailsRow-cellCheck', check: 'ms-DetailsRow-check', cellMeasurer: 'ms-DetailsRow-cellMeasurer', listCellFirstChild: 'ms-List-cell:first-child', isContentUnselectable: 'is-contentUnselectable', isSelected: 'is-selected', isCheckVisible: 'is-check-visible', isRowHeader: 'is-row-header', fields: 'ms-DetailsRow-fields', }; var IsFocusableSelector = "[data-is-focusable='true']"; var DEFAULT_CELL_STYLE_PROPS = { cellLeftPadding: 12, cellRightPadding: 8, cellExtraRightPadding: 24, }; // Source of default row heights to share. var DEFAULT_ROW_HEIGHTS = { rowHeight: 42, compactRowHeight: 32, }; // Constant values var values = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DEFAULT_ROW_HEIGHTS), { rowVerticalPadding: 11, compactRowVerticalPadding: 6 }); var getDetailsRowStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; var theme = props.theme, isSelected = props.isSelected, canSelect = props.canSelect, droppingClassName = props.droppingClassName, isCheckVisible = props.isCheckVisible, checkboxCellClassName = props.checkboxCellClassName, compact = props.compact, className = props.className, _q = props.cellStyleProps, cellStyleProps = _q === void 0 ? DEFAULT_CELL_STYLE_PROPS : _q, enableUpdateAnimations = props.enableUpdateAnimations, disabled = props.disabled; var palette = theme.palette, fonts = theme.fonts; var neutralPrimary = palette.neutralPrimary, white = palette.white, neutralSecondary = palette.neutralSecondary, neutralLighter = palette.neutralLighter, neutralLight = palette.neutralLight, neutralDark = palette.neutralDark, neutralQuaternaryAlt = palette.neutralQuaternaryAlt; var _r = theme.semanticColors, focusBorder = _r.focusBorder, focusedLinkColor = _r.linkHovered; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getGlobalClassNames"])(DetailsRowGlobalClassNames, theme); var colors = { // Default defaultHeaderText: neutralPrimary, defaultMetaText: neutralSecondary, defaultBackground: white, // Default Hover defaultHoverHeaderText: neutralDark, defaultHoverMetaText: neutralPrimary, defaultHoverBackground: neutralLighter, // Selected selectedHeaderText: neutralDark, selectedMetaText: neutralPrimary, selectedBackground: neutralLight, // Selected Hover selectedHoverHeaderText: neutralDark, selectedHoverMetaText: neutralPrimary, selectedHoverBackground: neutralQuaternaryAlt, // Focus focusHeaderText: neutralDark, focusMetaText: neutralPrimary, focusBackground: neutralLight, focusHoverBackground: neutralQuaternaryAlt, }; var rowHighContrastFocus = { top: 2, right: 2, bottom: 2, left: 2, }; // Selected row styles var selectedStyles = [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1, borderColor: focusBorder, outlineColor: white, highContrastStyle: rowHighContrastFocus, }), classNames.isSelected, { color: colors.selectedMetaText, background: colors.selectedBackground, borderBottom: "1px solid " + white, selectors: (_a = { '&:before': { position: 'absolute', display: 'block', top: -1, height: 1, bottom: 0, left: 0, right: 0, content: '', borderTop: "1px solid " + white, } }, _a["." + classNames.cell + " > ." + _components_Link_Link_styles__WEBPACK_IMPORTED_MODULE_3__["GlobalClassNames"].root] = { color: focusedLinkColor, selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'HighlightText', }, _b), }, // Selected State hover _a['&:hover'] = { background: colors.selectedHoverBackground, color: colors.selectedHoverMetaText, selectors: (_c = {}, // Selected State hover meta cell _c[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { background: 'Highlight', selectors: (_d = {}, _d["." + classNames.cell] = { color: 'HighlightText', }, _d["." + classNames.cell + " > ." + _components_Link_Link_styles__WEBPACK_IMPORTED_MODULE_3__["GlobalClassNames"].root] = { forcedColorAdjust: 'none', color: 'HighlightText', }, _d), }, // Selected State hover Header cell _c["." + classNames.isRowHeader] = { color: colors.selectedHoverHeaderText, selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'HighlightText', }, _e), }, _c), }, // Focus state _a['&:focus'] = { background: colors.focusBackground, selectors: (_f = {}, // Selected State hover meta cell _f["." + classNames.cell] = { color: colors.focusMetaText, selectors: (_g = {}, _g[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'HighlightText', selectors: { '> a': { color: 'HighlightText', }, }, }, _g), }, // Row header cell _f["." + classNames.isRowHeader] = { color: colors.focusHeaderText, selectors: (_h = {}, _h[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'HighlightText', }, _h), }, // Ensure high-contrast mode overrides default focus background _f[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { background: 'Highlight', }, _f), }, _a[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'Highlight', color: 'HighlightText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), { selectors: { a: { color: 'HighlightText', }, } }), // Focus and hover state _a['&:focus:hover'] = { background: colors.focusHoverBackground, }, _a), }, ]; var cannotSelectStyles = [ classNames.isContentUnselectable, { userSelect: 'none', cursor: 'default', }, ]; var rootCompactStyles = { minHeight: values.compactRowHeight, border: 0, }; var cellCompactStyles = { minHeight: values.compactRowHeight, paddingTop: values.compactRowVerticalPadding, paddingBottom: values.compactRowVerticalPadding, paddingLeft: cellStyleProps.cellLeftPadding + "px", }; var defaultCellStyles = [ Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1 }), classNames.cell, { display: 'inline-block', position: 'relative', boxSizing: 'border-box', minHeight: values.rowHeight, verticalAlign: 'top', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', paddingTop: values.rowVerticalPadding, paddingBottom: values.rowVerticalPadding, paddingLeft: cellStyleProps.cellLeftPadding + "px", selectors: (_j = { '& > button': { maxWidth: '100%', } }, _j[IsFocusableSelector] = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { inset: -1, borderColor: neutralSecondary, outlineColor: white }), _j), }, isSelected && { selectors: (_k = {}, _k[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ background: 'Highlight', color: 'HighlightText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getHighContrastNoAdjustStyle"])()), _k), }, compact && cellCompactStyles, disabled && { opacity: 0.5 }, ]; return { root: [ classNames.root, _Styling__WEBPACK_IMPORTED_MODULE_1__["AnimationClassNames"].fadeIn400, droppingClassName, theme.fonts.small, isCheckVisible && classNames.isCheckVisible, Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["getFocusStyle"])(theme, { borderColor: focusBorder, outlineColor: white }), { borderBottom: "1px solid " + neutralLighter, background: colors.defaultBackground, color: colors.defaultMetaText, // This ensures that the row always tries to consume is minimum width and does not compress. display: 'inline-flex', minWidth: '100%', minHeight: values.rowHeight, whiteSpace: 'nowrap', padding: 0, boxSizing: 'border-box', verticalAlign: 'top', textAlign: 'left', selectors: (_l = {}, _l["." + classNames.listCellFirstChild + " &:before"] = { display: 'none', }, _l['&:hover'] = { background: colors.defaultHoverBackground, color: colors.defaultHoverMetaText, selectors: (_m = {}, _m["." + classNames.isRowHeader] = { color: colors.defaultHoverHeaderText, }, _m["." + classNames.cell + " > ." + _components_Link_Link_styles__WEBPACK_IMPORTED_MODULE_3__["GlobalClassNames"].root] = { color: focusedLinkColor, }, _m), }, _l["&:hover ." + classNames.check] = { opacity: 1, }, _l["." + _Utilities__WEBPACK_IMPORTED_MODULE_2__["IsFocusVisibleClassName"] + " &:focus ." + classNames.check] = { opacity: 1, }, _l['.ms-GroupSpacer'] = { flexShrink: 0, flexGrow: 0, }, _l), }, isSelected && selectedStyles, !canSelect && cannotSelectStyles, compact && rootCompactStyles, className, ], cellUnpadded: { paddingRight: cellStyleProps.cellRightPadding + "px", }, cellPadded: { paddingRight: cellStyleProps.cellExtraRightPadding + cellStyleProps.cellRightPadding + "px", selectors: (_o = {}, _o["&." + classNames.cellCheck] = { paddingRight: 0, }, _o), }, cell: defaultCellStyles, cellAnimation: enableUpdateAnimations && _Styling__WEBPACK_IMPORTED_MODULE_1__["AnimationStyles"].slideLeftIn40, cellMeasurer: [ classNames.cellMeasurer, { overflow: 'visible', whiteSpace: 'nowrap', }, ], checkCell: [ defaultCellStyles, classNames.cellCheck, checkboxCellClassName, { padding: 0, // Ensure that the check cell covers the top border of the cell. // This ensures the click target does not leave a spot which would // cause other items to be deselected. paddingTop: 1, marginTop: -1, flexShrink: 0, }, ], fields: [ classNames.fields, { display: 'flex', alignItems: 'stretch', }, ], isRowHeader: [ classNames.isRowHeader, { color: colors.defaultHeaderText, fontSize: fonts.medium.fontSize, }, isSelected && { color: colors.selectedHeaderText, fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_1__["FontWeights"].semibold, selectors: (_p = {}, _p[_Styling__WEBPACK_IMPORTED_MODULE_1__["HighContrastSelector"]] = { color: 'HighlightText', }, _p), }, ], isMultiline: [ defaultCellStyles, { whiteSpace: 'normal', wordBreak: 'break-word', textOverflow: 'clip', }, ], check: [classNames.check], }; }; //# sourceMappingURL=DetailsRow.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.types.js ***! \*************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DetailsRow.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.js ***! \************************************************************************************/ /*! exports provided: DetailsRowCheck */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsRowCheck", function() { return DetailsRowCheck; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Check__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Check */ "./node_modules/@fluentui/react/lib/Check.js"); /* harmony import */ var _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DetailsRowCheckBase = function (props) { var _a = props.isVisible, isVisible = _a === void 0 ? false : _a, _b = props.canSelect, canSelect = _b === void 0 ? false : _b, _c = props.anySelected, anySelected = _c === void 0 ? false : _c, _d = props.selected, selected = _d === void 0 ? false : _d, selectionMode = props.selectionMode, _e = props.isHeader, isHeader = _e === void 0 ? false : _e, className = props.className, checkClassName = props.checkClassName, styles = props.styles, theme = props.theme, compact = props.compact, onRenderDetailsCheckbox = props.onRenderDetailsCheckbox, _f = props.useFastIcons, useFastIcons = _f === void 0 ? true : _f, // must be removed from buttonProps buttonProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(props, ["isVisible", "canSelect", "anySelected", "selected", "selectionMode", "isHeader", "className", "checkClassName", "styles", "theme", "compact", "onRenderDetailsCheckbox", "useFastIcons"]); var defaultCheckboxRender = useFastIcons ? _fastDefaultCheckboxRender : _defaultCheckboxRender; var onRenderCheckbox = onRenderDetailsCheckbox ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(onRenderDetailsCheckbox, defaultCheckboxRender) : defaultCheckboxRender; var classNames = getClassNames(styles, { theme: theme, canSelect: canSelect, selected: selected, anySelected: anySelected, className: className, isHeader: isHeader, isVisible: isVisible, compact: compact, }); var detailsCheckboxProps = { checked: selected, theme: theme, }; var divProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeElementProps"])('div', buttonProps, ['aria-label', 'aria-labelledby', 'aria-describedby']); var checkRole = selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_5__["SelectionMode"].single ? 'radio' : 'checkbox'; return canSelect ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, buttonProps, { role: checkRole, // eslint-disable-next-line deprecation/deprecation className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.root, classNames.check), "aria-checked": selected, "data-selection-toggle": true, "data-automationid": "DetailsRowCheck", tabIndex: -1 }), onRenderCheckbox(detailsCheckboxProps))) : ( // eslint-disable-next-line deprecation/deprecation react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, divProps, { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.root, classNames.check) }))); }; var FastCheck = react__WEBPACK_IMPORTED_MODULE_1__["memo"](function (props) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Check__WEBPACK_IMPORTED_MODULE_3__["Check"], { theme: props.theme, checked: props.checked, className: props.className, useFastIcons: true }); }); function _defaultCheckboxRender(checkboxProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Check__WEBPACK_IMPORTED_MODULE_3__["Check"], { checked: checkboxProps.checked }); } function _fastDefaultCheckboxRender(checkboxProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](FastCheck, { theme: checkboxProps.theme, checked: checkboxProps.checked }); } var DetailsRowCheck = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["styled"])(DetailsRowCheckBase, _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_4__["getDetailsRowCheckStyles"], undefined, { scope: 'DetailsRowCheck' }, true); //# sourceMappingURL=DetailsRowCheck.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js ***! \*******************************************************************************************/ /*! exports provided: CHECK_CELL_WIDTH, getDetailsRowCheckStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CHECK_CELL_WIDTH", function() { return CHECK_CELL_WIDTH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDetailsRowCheckStyles", function() { return getDetailsRowCheckStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); /* harmony import */ var _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.styles.js"); /* harmony import */ var _components_Check_Check_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/Check/Check.styles */ "./node_modules/@fluentui/react/lib/components/Check/Check.styles.js"); var GlobalClassNames = { root: 'ms-DetailsRow-check', isDisabled: 'ms-DetailsRow-check--isDisabled', isHeader: 'ms-DetailsRow-check--isHeader', }; var CHECK_CELL_WIDTH = 48; var getDetailsRowCheckStyles = function (props) { var theme = props.theme, className = props.className, isHeader = props.isHeader, selected = props.selected, anySelected = props.anySelected, canSelect = props.canSelect, compact = props.compact, isVisible = props.isVisible; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); var rowHeight = _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_ROW_HEIGHTS"].rowHeight, compactRowHeight = _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_ROW_HEIGHTS"].compactRowHeight; var height = isHeader ? _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_2__["HEADER_HEIGHT"] : compact ? compactRowHeight : rowHeight; var isCheckVisible = isVisible || selected || anySelected; return { root: [classNames.root, className], check: [ !canSelect && classNames.isDisabled, isHeader && classNames.isHeader, Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme), theme.fonts.small, _components_Check_Check_styles__WEBPACK_IMPORTED_MODULE_3__["CheckGlobalClassNames"].checkHost, { display: 'flex', alignItems: 'center', justifyContent: 'center', cursor: 'default', boxSizing: 'border-box', verticalAlign: 'top', background: 'none', backgroundColor: 'transparent', border: 'none', opacity: isCheckVisible ? 1 : 0, height: height, width: CHECK_CELL_WIDTH, padding: 0, margin: 0, }, ], isDisabled: [], }; }; //# sourceMappingURL=DetailsRowCheck.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.types.js ***! \******************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DetailsRowCheck.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.js ***! \*************************************************************************************/ /*! exports provided: DetailsRowFields */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailsRowFields", function() { return DetailsRowFields; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); var getCellText = function (item, column) { var value = item && column && column.fieldName ? item[column.fieldName] : ''; if (value === null || value === undefined) { value = ''; } if (typeof value === 'boolean') { return value.toString(); } return value; }; /** * Component for rendering a row's cells in a `DetailsList`. * * {@docCategory DetailsList} */ var DetailsRowFields = function (props) { var columns = props.columns, rowClassNames = props.rowClassNames, _a = props.cellStyleProps, cellStyleProps = _a === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CELL_STYLE_PROPS"] : _a, item = props.item, itemIndex = props.itemIndex, isSelected = props.isSelected, onRenderItemColumn = props.onRenderItemColumn, getCellValueKey = props.getCellValueKey, propsOnRenderField = props.onRenderField, cellsByColumn = props.cellsByColumn, enableUpdateAnimations = props.enableUpdateAnimations, rowHeaderId = props.rowHeaderId; var cellValueKeysRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](); var cellValueKeys = cellValueKeysRef.current || (cellValueKeysRef.current = {}); var defaultOnRenderField = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (fieldProps) { var column = fieldProps.column, cellValueKey = fieldProps.cellValueKey, className = fieldProps.className, onRender = fieldProps.onRender, fieldItem = fieldProps.item, fieldItemIndex = fieldProps.itemIndex; var width = typeof column.calculatedWidth === 'undefined' ? 'auto' : column.calculatedWidth + cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0); var key = "" + column.key + (cellValueKey !== undefined ? "-" + cellValueKey : ''); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, id: column.isRowHeader ? rowHeaderId : undefined, role: column.isRowHeader ? 'rowheader' : 'gridcell', className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["css"])(column.className, column.isMultiline && rowClassNames.isMultiline, column.isRowHeader && rowClassNames.isRowHeader, rowClassNames.cell, column.isPadded ? rowClassNames.cellPadded : rowClassNames.cellUnpadded, className), style: { width: width }, "data-automationid": "DetailsRowCell", "data-automation-key": column.key }, onRender(fieldItem, fieldItemIndex, column))); }, [rowClassNames, cellStyleProps, rowHeaderId]); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: rowClassNames.fields, "data-automationid": "DetailsRowFields", role: "presentation" }, columns.map(function (column) { var _a = column.getValueKey, getValueKey = _a === void 0 ? getCellValueKey : _a; var onRender = (cellsByColumn && column.key in cellsByColumn && (function () { return cellsByColumn[column.key]; })) || column.onRender || onRenderItemColumn || defaultOnRender; var onRenderField = defaultOnRenderField; if (column.onRenderField) { onRenderField = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["composeRenderFunction"])(column.onRenderField, onRenderField); } if (propsOnRenderField) { onRenderField = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["composeRenderFunction"])(propsOnRenderField, onRenderField); } var previousValueKey = cellValueKeys[column.key]; var cellValueKey = enableUpdateAnimations && getValueKey ? getValueKey(item, itemIndex, column) : undefined; var showAnimation = false; if (cellValueKey !== undefined && previousValueKey !== undefined && cellValueKey !== previousValueKey) { showAnimation = true; } cellValueKeys[column.key] = cellValueKey; return onRenderField({ item: item, itemIndex: itemIndex, isSelected: isSelected, column: column, cellValueKey: cellValueKey, className: showAnimation ? rowClassNames.cellAnimation : undefined, onRender: onRender, }); }))); }; function defaultOnRender(item, index, column) { if (!item || !column) { return null; } return getCellText(item, column); } //# sourceMappingURL=DetailsRowFields.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.types.js ***! \*******************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DetailsRowFields.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.base.js ***! \**********************************************************************************************/ /*! exports provided: ShimmeredDetailsListBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShimmeredDetailsListBase", function() { return ShimmeredDetailsListBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); /* harmony import */ var _DetailsList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DetailsList */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.js"); /* harmony import */ var _Shimmer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Shimmer */ "./node_modules/@fluentui/react/lib/Shimmer.js"); /* harmony import */ var _DetailsList_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js"); /* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var SHIMMER_INITIAL_ITEMS = 10; var DEFAULT_SHIMMER_HEIGHT = 7; var SHIMMER_LINE_VS_CELL_WIDTH_RATIO = 0.95; var ShimmeredDetailsListBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ShimmeredDetailsListBase, _super); function ShimmeredDetailsListBase(props) { var _this = _super.call(this, props) || this; _this._onRenderShimmerPlaceholder = function (index, rowProps) { var onRenderCustomPlaceholder = _this.props.onRenderCustomPlaceholder; var placeholderElements = onRenderCustomPlaceholder ? onRenderCustomPlaceholder(rowProps, index, _this._renderDefaultShimmerPlaceholder) : _this._renderDefaultShimmerPlaceholder(rowProps); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Shimmer__WEBPACK_IMPORTED_MODULE_5__["Shimmer"], { customElementsGroup: placeholderElements }); }; _this._renderDefaultShimmerPlaceholder = function (rowProps) { var columns = rowProps.columns, compact = rowProps.compact, selectionMode = rowProps.selectionMode, checkboxVisibility = rowProps.checkboxVisibility, _a = rowProps.cellStyleProps, cellStyleProps = _a === void 0 ? _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_7__["DEFAULT_CELL_STYLE_PROPS"] : _a; var rowHeight = _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_7__["DEFAULT_ROW_HEIGHTS"].rowHeight, compactRowHeight = _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_7__["DEFAULT_ROW_HEIGHTS"].compactRowHeight; // 1px to take into account the border-bottom of DetailsRow. var gapHeight = compact ? compactRowHeight : rowHeight + 1; var shimmerElementsRow = []; var showCheckbox = selectionMode !== _Selection__WEBPACK_IMPORTED_MODULE_3__["SelectionMode"].none && checkboxVisibility !== _DetailsList_types__WEBPACK_IMPORTED_MODULE_6__["CheckboxVisibility"].hidden; if (showCheckbox) { shimmerElementsRow.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementsGroup"], { key: 'checkboxGap', shimmerElements: [{ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].gap, width: '40px', height: gapHeight }] })); } columns.forEach(function (column, columnIdx) { var shimmerElements = []; var groupWidth = cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + column.calculatedWidth + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0); shimmerElements.push({ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].gap, width: cellStyleProps.cellLeftPadding, height: gapHeight, }); if (column.isIconOnly) { shimmerElements.push({ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].line, width: column.calculatedWidth, height: column.calculatedWidth, }); shimmerElements.push({ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].gap, width: cellStyleProps.cellRightPadding, height: gapHeight, }); } else { shimmerElements.push({ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].line, width: column.calculatedWidth * SHIMMER_LINE_VS_CELL_WIDTH_RATIO, height: DEFAULT_SHIMMER_HEIGHT, }); shimmerElements.push({ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].gap, width: cellStyleProps.cellRightPadding + (column.calculatedWidth - column.calculatedWidth * SHIMMER_LINE_VS_CELL_WIDTH_RATIO) + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0), height: gapHeight, }); } shimmerElementsRow.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementsGroup"], { key: columnIdx, width: groupWidth + "px", shimmerElements: shimmerElements })); }); // When resizing the window from narrow to wider, we need to cover the exposed Shimmer wave // until the column resizing logic is done. shimmerElementsRow.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementsGroup"], { key: 'endGap', width: '100%', shimmerElements: [{ type: _Shimmer__WEBPACK_IMPORTED_MODULE_5__["ShimmerElementType"].gap, width: '100%', height: gapHeight }] })); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { style: { display: 'flex' } }, shimmerElementsRow); }; _this._shimmerItems = props.shimmerLines ? new Array(props.shimmerLines) : new Array(SHIMMER_INITIAL_ITEMS); return _this; } ShimmeredDetailsListBase.prototype.render = function () { var _a = this.props, detailsListStyles = _a.detailsListStyles, enableShimmer = _a.enableShimmer, items = _a.items, listProps = _a.listProps, onRenderCustomPlaceholder = _a.onRenderCustomPlaceholder, removeFadingOverlay = _a.removeFadingOverlay, shimmerLines = _a.shimmerLines, styles = _a.styles, theme = _a.theme, ariaLabelForGrid = _a.ariaLabelForGrid, ariaLabelForShimmer = _a.ariaLabelForShimmer, restProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["detailsListStyles", "enableShimmer", "items", "listProps", "onRenderCustomPlaceholder", "removeFadingOverlay", "shimmerLines", "styles", "theme", "ariaLabelForGrid", "ariaLabelForShimmer"]); var listClassName = listProps && listProps.className; this._classNames = getClassNames(styles, { theme: theme, }); var newListProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, listProps), { // Adds to the optional listProp className a fading out overlay className only when `enableShimmer` toggled on // and the overlay is not disabled by `removeFadingOverlay` prop. className: enableShimmer && !removeFadingOverlay ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(this._classNames.root, listClassName) : listClassName }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DetailsList__WEBPACK_IMPORTED_MODULE_4__["DetailsList"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, restProps, { styles: detailsListStyles, items: enableShimmer ? this._shimmerItems : items, isPlaceholderData: enableShimmer, ariaLabelForGrid: (enableShimmer && ariaLabelForShimmer) || ariaLabelForGrid, onRenderMissingItem: this._onRenderShimmerPlaceholder, listProps: newListProps }))); }; return ShimmeredDetailsListBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=ShimmeredDetailsList.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.js ***! \*****************************************************************************************/ /*! exports provided: ShimmeredDetailsList */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShimmeredDetailsList", function() { return ShimmeredDetailsList; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _ShimmeredDetailsList_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ShimmeredDetailsList.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.base.js"); /* harmony import */ var _ShimmeredDetailsList_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ShimmeredDetailsList.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.styles.js"); var ShimmeredDetailsList = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_ShimmeredDetailsList_base__WEBPACK_IMPORTED_MODULE_1__["ShimmeredDetailsListBase"], _ShimmeredDetailsList_styles__WEBPACK_IMPORTED_MODULE_2__["getShimmeredDetailsListStyles"], undefined, { scope: 'ShimmeredDetailsList' }); //# sourceMappingURL=ShimmeredDetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.styles.js ***! \************************************************************************************************/ /*! exports provided: getShimmeredDetailsListStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getShimmeredDetailsListStyles", function() { return getShimmeredDetailsListStyles; }); var getShimmeredDetailsListStyles = function (props) { var theme = props.theme; var palette = theme.palette; return { root: { position: 'relative', selectors: { ':after': { content: '""', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, // eslint-disable-next-line @fluentui/max-len backgroundImage: "linear-gradient(to bottom, transparent 30%, " + palette.whiteTranslucent40 + " 65%," + palette.white + " 100%)", }, }, }, }; }; //# sourceMappingURL=ShimmeredDetailsList.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/ShimmeredDetailsList.types.js ***! \***********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=ShimmeredDetailsList.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DetailsList/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DetailsList/index.js ***! \**************************************************************************/ /*! exports provided: SELECTION_CHANGE, SelectionDirection, SelectionMode, Selection, SelectionZone, CollapseAllVisibility, DetailsHeader, DetailsHeaderBase, HEADER_HEIGHT, getCellStyles, getDetailsHeaderStyles, SelectAllVisibility, DetailsList, DetailsListBase, buildColumns, getDetailsListStyles, ColumnActionsMode, ConstrainMode, ColumnDragEndLocation, DetailsListLayoutMode, CheckboxVisibility, DetailsRow, DetailsRowBase, DetailsRowGlobalClassNames, DEFAULT_CELL_STYLE_PROPS, DEFAULT_ROW_HEIGHTS, getDetailsRowStyles, DetailsRowCheck, CHECK_CELL_WIDTH, getDetailsRowCheckStyles, DetailsRowFields, DetailsColumn, DetailsColumnBase, getDetailsColumnStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SELECTION_CHANGE", function() { return _Selection__WEBPACK_IMPORTED_MODULE_0__["SELECTION_CHANGE"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionDirection", function() { return _Selection__WEBPACK_IMPORTED_MODULE_0__["SelectionDirection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionMode", function() { return _Selection__WEBPACK_IMPORTED_MODULE_0__["SelectionMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return _Selection__WEBPACK_IMPORTED_MODULE_0__["Selection"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectionZone", function() { return _Selection__WEBPACK_IMPORTED_MODULE_0__["SelectionZone"]; }); /* harmony import */ var _GroupedList_GroupedList_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../GroupedList/GroupedList.types */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupedList.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CollapseAllVisibility", function() { return _GroupedList_GroupedList_types__WEBPACK_IMPORTED_MODULE_1__["CollapseAllVisibility"]; }); /* harmony import */ var _DetailsHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DetailsHeader */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsHeader", function() { return _DetailsHeader__WEBPACK_IMPORTED_MODULE_2__["DetailsHeader"]; }); /* harmony import */ var _DetailsHeader_base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DetailsHeader.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsHeaderBase", function() { return _DetailsHeader_base__WEBPACK_IMPORTED_MODULE_3__["DetailsHeaderBase"]; }); /* harmony import */ var _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HEADER_HEIGHT", function() { return _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_4__["HEADER_HEIGHT"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCellStyles", function() { return _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_4__["getCellStyles"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsHeaderStyles", function() { return _DetailsHeader_styles__WEBPACK_IMPORTED_MODULE_4__["getDetailsHeaderStyles"]; }); /* harmony import */ var _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DetailsHeader.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsHeader.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectAllVisibility", function() { return _DetailsHeader_types__WEBPACK_IMPORTED_MODULE_5__["SelectAllVisibility"]; }); /* harmony import */ var _DetailsList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DetailsList */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsList", function() { return _DetailsList__WEBPACK_IMPORTED_MODULE_6__["DetailsList"]; }); /* harmony import */ var _DetailsList_base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DetailsList.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsListBase", function() { return _DetailsList_base__WEBPACK_IMPORTED_MODULE_7__["DetailsListBase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buildColumns", function() { return _DetailsList_base__WEBPACK_IMPORTED_MODULE_7__["buildColumns"]; }); /* harmony import */ var _DetailsList_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DetailsList.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsListStyles", function() { return _DetailsList_styles__WEBPACK_IMPORTED_MODULE_8__["getDetailsListStyles"]; }); /* harmony import */ var _DetailsList_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsList.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnActionsMode", function() { return _DetailsList_types__WEBPACK_IMPORTED_MODULE_9__["ColumnActionsMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConstrainMode", function() { return _DetailsList_types__WEBPACK_IMPORTED_MODULE_9__["ConstrainMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnDragEndLocation", function() { return _DetailsList_types__WEBPACK_IMPORTED_MODULE_9__["ColumnDragEndLocation"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsListLayoutMode", function() { return _DetailsList_types__WEBPACK_IMPORTED_MODULE_9__["DetailsListLayoutMode"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CheckboxVisibility", function() { return _DetailsList_types__WEBPACK_IMPORTED_MODULE_9__["CheckboxVisibility"]; }); /* harmony import */ var _DetailsRow__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DetailsRow */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRow", function() { return _DetailsRow__WEBPACK_IMPORTED_MODULE_10__["DetailsRow"]; }); /* harmony import */ var _DetailsRow_base__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DetailsRow.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowBase", function() { return _DetailsRow_base__WEBPACK_IMPORTED_MODULE_11__["DetailsRowBase"]; }); /* harmony import */ var _DetailsRow_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DetailsRow.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowGlobalClassNames", function() { return _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_13__["DetailsRowGlobalClassNames"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CELL_STYLE_PROPS", function() { return _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_13__["DEFAULT_CELL_STYLE_PROPS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_ROW_HEIGHTS", function() { return _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_13__["DEFAULT_ROW_HEIGHTS"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsRowStyles", function() { return _DetailsRow_styles__WEBPACK_IMPORTED_MODULE_13__["getDetailsRowStyles"]; }); /* harmony import */ var _DetailsRowCheck__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./DetailsRowCheck */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowCheck", function() { return _DetailsRowCheck__WEBPACK_IMPORTED_MODULE_14__["DetailsRowCheck"]; }); /* harmony import */ var _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CHECK_CELL_WIDTH", function() { return _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_15__["CHECK_CELL_WIDTH"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsRowCheckStyles", function() { return _DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_15__["getDetailsRowCheckStyles"]; }); /* harmony import */ var _DetailsRowCheck_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./DetailsRowCheck.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DetailsRowFields__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./DetailsRowFields */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsRowFields", function() { return _DetailsRowFields__WEBPACK_IMPORTED_MODULE_17__["DetailsRowFields"]; }); /* harmony import */ var _DetailsRowFields_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DetailsRowFields.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowFields.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DetailsFooter_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./DetailsFooter.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsFooter.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DetailsColumn__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./DetailsColumn */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsColumn", function() { return _DetailsColumn__WEBPACK_IMPORTED_MODULE_20__["DetailsColumn"]; }); /* harmony import */ var _DetailsColumn_base__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./DetailsColumn.base */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DetailsColumnBase", function() { return _DetailsColumn_base__WEBPACK_IMPORTED_MODULE_21__["DetailsColumnBase"]; }); /* harmony import */ var _DetailsColumn_styles__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./DetailsColumn.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.styles.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDetailsColumnStyles", function() { return _DetailsColumn_styles__WEBPACK_IMPORTED_MODULE_22__["getDetailsColumnStyles"]; }); /* harmony import */ var _DetailsColumn_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./DetailsColumn.types */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsColumn.types.js"); /* empty/unused harmony star reexport */ // ShimmeredDetailsList is not exported here as it is exported from ../ShimmeredDetailsList.ts //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js ***! \***************************************************************************/ /*! exports provided: DialogBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogBase", function() { return DialogBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DialogContent.types */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js"); /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Modal */ "./node_modules/@fluentui/react/lib/Modal.js"); /* harmony import */ var _ResponsiveMode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib/ResponsiveMode.js"); /* harmony import */ var _DialogContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DialogContent */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DefaultModalProps = { isDarkOverlay: false, isBlocking: false, className: '', containerClassName: '', topOffsetFixed: false, enableAriaHiddenSiblings: true, }; var DefaultDialogContentProps = { type: _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__["DialogType"].normal, className: '', topButtonsProps: [], }; // eslint-disable-next-line deprecation/deprecation var DialogBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DialogBase, _super); function DialogBase(props) { var _this = _super.call(this, props) || this; _this._getSubTextId = function () { // eslint-disable-next-line deprecation/deprecation var _a = _this.props, ariaDescribedById = _a.ariaDescribedById, modalProps = _a.modalProps, dialogContentProps = _a.dialogContentProps, subText = _a.subText; var id = (modalProps && modalProps.subtitleAriaId) || ariaDescribedById; if (!id) { id = ((dialogContentProps && dialogContentProps.subText) || subText) && _this._defaultSubTextId; } return id; }; _this._getTitleTextId = function () { // eslint-disable-next-line deprecation/deprecation var _a = _this.props, ariaLabelledById = _a.ariaLabelledById, modalProps = _a.modalProps, dialogContentProps = _a.dialogContentProps, title = _a.title; var id = (modalProps && modalProps.titleAriaId) || ariaLabelledById; if (!id) { id = ((dialogContentProps && dialogContentProps.title) || title) && _this._defaultTitleTextId; } return id; }; _this._id = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])('Dialog'); _this._defaultTitleTextId = _this._id + '-title'; _this._defaultSubTextId = _this._id + '-subText'; if (true) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])('Dialog', props, { isOpen: 'hidden', type: 'dialogContentProps.type', subText: 'dialogContentProps.subText', contentClassName: 'dialogContentProps.className', topButtonsProps: 'dialogContentProps.topButtonsProps', className: 'modalProps.className', isDarkOverlay: 'modalProps.isDarkOverlay', isBlocking: 'modalProps.isBlocking', containerClassName: 'modalProps.containerClassName', onDismissed: 'modalProps.onDismissed', onLayerDidMount: 'modalProps.layerProps.onLayerDidMount', ariaDescribedById: 'modalProps.subtitleAriaId', ariaLabelledById: 'modalProps.titleAriaId', }); } return _this; } DialogBase.prototype.render = function () { var _a, _b, _c; var props = this.props; var /* eslint-disable deprecation/deprecation */ className = props.className, containerClassName = props.containerClassName, contentClassName = props.contentClassName, elementToFocusOnDismiss = props.elementToFocusOnDismiss, firstFocusableSelector = props.firstFocusableSelector, forceFocusInsideTrap = props.forceFocusInsideTrap, styles = props.styles, hidden = props.hidden, _d = props.disableRestoreFocus, disableRestoreFocus = _d === void 0 ? props.ignoreExternalFocusing : _d, isBlocking = props.isBlocking, isClickableOutsideFocusTrap = props.isClickableOutsideFocusTrap, isDarkOverlay = props.isDarkOverlay, _e = props.isOpen, isOpen = _e === void 0 ? !hidden : _e, onDismiss = props.onDismiss, onDismissed = props.onDismissed, onLayerDidMount = props.onLayerDidMount, responsiveMode = props.responsiveMode, subText = props.subText, theme = props.theme, title = props.title, topButtonsProps = props.topButtonsProps, type = props.type, /* eslint-enable deprecation/deprecation */ minWidth = props.minWidth, maxWidth = props.maxWidth, modalProps = props.modalProps; var mergedLayerProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ onLayerDidMount: onLayerDidMount }, modalProps === null || modalProps === void 0 ? void 0 : modalProps.layerProps); var dialogDraggableClassName; var dragOptions; // If dragOptions are provided, but no drag handle is specified, we supply a drag handle, // and inform dialog contents to add class to draggable class to the header if ((modalProps === null || modalProps === void 0 ? void 0 : modalProps.dragOptions) && !((_a = modalProps.dragOptions) === null || _a === void 0 ? void 0 : _a.dragHandleSelector)) { // spread options to avoid mutating props dragOptions = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, modalProps.dragOptions); dialogDraggableClassName = 'ms-Dialog-draggable-header'; dragOptions.dragHandleSelector = "." + dialogDraggableClassName; } var mergedModalProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, DefaultModalProps), { elementToFocusOnDismiss: elementToFocusOnDismiss, firstFocusableSelector: firstFocusableSelector, forceFocusInsideTrap: forceFocusInsideTrap, disableRestoreFocus: disableRestoreFocus, isClickableOutsideFocusTrap: isClickableOutsideFocusTrap, responsiveMode: responsiveMode, className: className, containerClassName: containerClassName, isBlocking: isBlocking, isDarkOverlay: isDarkOverlay, onDismissed: onDismissed }), modalProps), { dragOptions: dragOptions, layerProps: mergedLayerProps, isOpen: isOpen }); var dialogContentProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: contentClassName, subText: subText, title: title, topButtonsProps: topButtonsProps, type: type }, DefaultDialogContentProps), props.dialogContentProps), { draggableHeaderClassName: dialogDraggableClassName, titleProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ // eslint-disable-next-line deprecation/deprecation id: ((_b = props.dialogContentProps) === null || _b === void 0 ? void 0 : _b.titleId) || this._defaultTitleTextId }, (_c = props.dialogContentProps) === null || _c === void 0 ? void 0 : _c.titleProps) }); var classNames = getClassNames(styles, { theme: theme, className: mergedModalProps.className, containerClassName: mergedModalProps.containerClassName, hidden: hidden, dialogDefaultMinWidth: minWidth, dialogDefaultMaxWidth: maxWidth, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, mergedModalProps, { className: classNames.root, containerClassName: classNames.main, onDismiss: onDismiss || mergedModalProps.onDismiss, subtitleAriaId: this._getSubTextId(), titleAriaId: this._getTitleTextId() }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DialogContent__WEBPACK_IMPORTED_MODULE_6__["DialogContent"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ subTextId: this._defaultSubTextId, showCloseButton: mergedModalProps.isBlocking, onDismiss: onDismiss }, dialogContentProps), props.children))); }; DialogBase.defaultProps = { hidden: true, }; DialogBase = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ _ResponsiveMode__WEBPACK_IMPORTED_MODULE_5__["withResponsiveMode"] ], DialogBase); return DialogBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=Dialog.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/Dialog.js ***! \**********************************************************************/ /*! exports provided: Dialog */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dialog", function() { return Dialog; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Dialog_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dialog.base */ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js"); /* harmony import */ var _Dialog_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dialog.styles */ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.styles.js"); var Dialog = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Dialog_base__WEBPACK_IMPORTED_MODULE_1__["DialogBase"], _Dialog_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'Dialog' }); Dialog.displayName = 'Dialog'; //# sourceMappingURL=Dialog.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.styles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/Dialog.styles.js ***! \*****************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-Dialog', }; var getStyles = function (props) { var _a; var className = props.className, containerClassName = props.containerClassName, // eslint-disable-line deprecation/deprecation _b = props.dialogDefaultMinWidth, // eslint-disable-line deprecation/deprecation dialogDefaultMinWidth = _b === void 0 ? '288px' : _b, _c = props.dialogDefaultMaxWidth, dialogDefaultMaxWidth = _c === void 0 ? '340px' : _c, hidden = props.hidden, theme = props.theme; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [classNames.root, theme.fonts.medium, className], main: [ { width: dialogDefaultMinWidth, outline: '3px solid transparent', selectors: (_a = {}, _a["@media (min-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinMedium"] + "px)"] = { width: 'auto', maxWidth: dialogDefaultMaxWidth, minWidth: dialogDefaultMinWidth, }, _a), }, !hidden && { display: 'flex' }, containerClassName, ], }; }; //# sourceMappingURL=Dialog.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.types.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/Dialog.types.js ***! \****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Dialog.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js ***! \**********************************************************************************/ /*! exports provided: DialogContentBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogContentBase", function() { return DialogContentBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DialogContent.types */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js"); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _DialogFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DialogFooter */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js"); /* harmony import */ var _ResponsiveMode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib/ResponsiveMode.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DialogFooterType = (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DialogFooter__WEBPACK_IMPORTED_MODULE_5__["DialogFooter"], null)).type; var COMPONENT_NAME = 'DialogContent'; // eslint-disable-next-line deprecation/deprecation var DialogContentBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DialogContentBase, _super); function DialogContentBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])(COMPONENT_NAME, props, { titleId: 'titleProps.id', }); return _this; } DialogContentBase.prototype.render = function () { var _a = this.props, showCloseButton = _a.showCloseButton, className = _a.className, closeButtonAriaLabel = _a.closeButtonAriaLabel, onDismiss = _a.onDismiss, subTextId = _a.subTextId, subText = _a.subText, _b = _a.titleProps, titleProps = _b === void 0 ? {} : _b, // eslint-disable-next-line deprecation/deprecation titleId = _a.titleId, title = _a.title, type = _a.type, styles = _a.styles, theme = _a.theme, draggableHeaderClassName = _a.draggableHeaderClassName; var classNames = getClassNames(styles, { theme: theme, className: className, isLargeHeader: type === _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__["DialogType"].largeHeader, isClose: type === _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__["DialogType"].close, draggableHeaderClassName: draggableHeaderClassName, }); var groupings = this._groupChildren(); var subTextContent; if (subText) { subTextContent = (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", { className: classNames.subText, id: subTextId }, subText)); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.content }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.header }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: titleId, role: "heading", "aria-level": 1 }, titleProps, { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(classNames.title, titleProps.className) }), title), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.topButton }, this.props.topButtonsProps.map(function (props, index) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_4__["IconButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ key: props.uniqueId || index }, props))); }), (type === _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__["DialogType"].close || (showCloseButton && type !== _DialogContent_types__WEBPACK_IMPORTED_MODULE_3__["DialogType"].largeHeader)) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_4__["IconButton"], { className: classNames.button, iconProps: { iconName: 'Cancel' }, ariaLabel: closeButtonAriaLabel, onClick: onDismiss })))), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.inner }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: classNames.innerContent }, subTextContent, groupings.contents), groupings.footers))); }; // @TODO - typing the footers as an array of DialogFooter is difficult because // casing "child as DialogFooter" causes a problem because // "Neither type 'ReactElement' nor type 'DialogFooter' is assignable to the other." DialogContentBase.prototype._groupChildren = function () { var groupings = { footers: [], contents: [], }; react__WEBPACK_IMPORTED_MODULE_1__["Children"].map(this.props.children, function (child) { if (typeof child === 'object' && child !== null && child.type === DialogFooterType) { groupings.footers.push(child); } else { groupings.contents.push(child); } }); return groupings; }; DialogContentBase.defaultProps = { showCloseButton: false, className: '', topButtonsProps: [], closeButtonAriaLabel: 'Close', }; DialogContentBase = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ _ResponsiveMode__WEBPACK_IMPORTED_MODULE_6__["withResponsiveMode"] ], DialogContentBase); return DialogContentBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DialogContent.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js ***! \*****************************************************************************/ /*! exports provided: DialogContent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogContent", function() { return DialogContent; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DialogContent_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DialogContent.base */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js"); /* harmony import */ var _DialogContent_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DialogContent.styles */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.styles.js"); var DialogContent = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DialogContent_base__WEBPACK_IMPORTED_MODULE_1__["DialogContentBase"], _DialogContent_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DialogContent' }); //# sourceMappingURL=DialogContent.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.styles.js ***! \************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { contentLgHeader: 'ms-Dialog-lgHeader', close: 'ms-Dialog--close', subText: 'ms-Dialog-subText', header: 'ms-Dialog-header', headerLg: 'ms-Dialog--lgHeader', button: 'ms-Dialog-button ms-Dialog-button--close', inner: 'ms-Dialog-inner', content: 'ms-Dialog-content', title: 'ms-Dialog-title', }; var getStyles = function (props) { var _a, _b, _c; var className = props.className, theme = props.theme, isLargeHeader = props.isLargeHeader, isClose = props.isClose, hidden = props.hidden, isMultiline = props.isMultiline, draggableHeaderClassName = props.draggableHeaderClassName; var palette = theme.palette, fonts = theme.fonts, effects = theme.effects, semanticColors = theme.semanticColors; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { content: [ isLargeHeader && [ classNames.contentLgHeader, { borderTop: "4px solid " + palette.themePrimary, }, ], isClose && classNames.close, { flexGrow: 1, overflowY: 'hidden', // required for allowScrollOnElement }, className, ], subText: [ classNames.subText, fonts.medium, { margin: '0 0 24px 0', color: semanticColors.bodySubtext, lineHeight: '1.5', wordWrap: 'break-word', fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].regular, }, ], header: [ classNames.header, { position: 'relative', width: '100%', boxSizing: 'border-box', }, isClose && classNames.close, draggableHeaderClassName && [ draggableHeaderClassName, { cursor: 'move', }, ], ], button: [ classNames.button, hidden && { selectors: { '.ms-Icon.ms-Icon--Cancel': { color: semanticColors.buttonText, fontSize: _Styling__WEBPACK_IMPORTED_MODULE_0__["IconFontSizes"].medium, }, }, }, ], inner: [ classNames.inner, { padding: '0 24px 24px', selectors: (_a = {}, _a["@media (min-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMaxSmall"] + "px)"] = { padding: '0 16px 16px', }, _a), }, ], innerContent: [ classNames.content, { position: 'relative', width: '100%', }, ], title: [ classNames.title, fonts.xLarge, { color: semanticColors.bodyText, margin: '0', minHeight: fonts.xLarge.fontSize, padding: '16px 46px 20px 24px', lineHeight: 'normal', selectors: (_b = {}, _b["@media (min-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMaxSmall"] + "px)"] = { padding: '16px 46px 16px 16px', }, _b), }, isLargeHeader && { color: semanticColors.menuHeader, }, isMultiline && { fontSize: fonts.xxLarge.fontSize }, ], topButton: [ { display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', position: 'absolute', top: '0', right: '0', padding: '15px 15px 0 0', selectors: (_c = { '> *': { flex: '0 0 auto', }, '.ms-Dialog-button': { color: semanticColors.buttonText, }, '.ms-Dialog-button:hover': { color: semanticColors.buttonTextHovered, borderRadius: effects.roundedCorner2, } }, _c["@media (min-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMinSmall"] + "px) and (max-width: " + _Styling__WEBPACK_IMPORTED_MODULE_0__["ScreenWidthMaxSmall"] + "px)"] = { padding: '15px 8px 0 0', }, _c), }, ], }; }; //# sourceMappingURL=DialogContent.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js ***! \***********************************************************************************/ /*! exports provided: DialogType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogType", function() { return DialogType; }); /** * {@docCategory Dialog} */ var DialogType; (function (DialogType) { /** Standard dialog */ DialogType[DialogType["normal"] = 0] = "normal"; /** Dialog with large header banner */ DialogType[DialogType["largeHeader"] = 1] = "largeHeader"; /** Dialog with an 'x' close button in the upper-right corner */ DialogType[DialogType["close"] = 2] = "close"; })(DialogType || (DialogType = {})); //# sourceMappingURL=DialogContent.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js ***! \*********************************************************************************/ /*! exports provided: DialogFooterBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogFooterBase", function() { return DialogFooterBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DialogFooterBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DialogFooterBase, _super); function DialogFooterBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } DialogFooterBase.prototype.render = function () { var _a = this.props, className = _a.className, styles = _a.styles, theme = _a.theme; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.actions }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.actionsRight }, this._renderChildrenAsActions()))); }; DialogFooterBase.prototype._renderChildrenAsActions = function () { var _this = this; return react__WEBPACK_IMPORTED_MODULE_1__["Children"].map(this.props.children, function (child) { return child ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.action }, child) : null; }); }; return DialogFooterBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DialogFooter.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js ***! \****************************************************************************/ /*! exports provided: DialogFooter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DialogFooter", function() { return DialogFooter; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DialogFooter_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DialogFooter.base */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js"); /* harmony import */ var _DialogFooter_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DialogFooter.styles */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.styles.js"); var DialogFooter = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DialogFooter_base__WEBPACK_IMPORTED_MODULE_1__["DialogFooterBase"], _DialogFooter_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DialogFooter' }); //# sourceMappingURL=DialogFooter.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.styles.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.styles.js ***! \***********************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { actions: 'ms-Dialog-actions', action: 'ms-Dialog-action', actionsRight: 'ms-Dialog-actionsRight', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { actions: [ classNames.actions, { position: 'relative', width: '100%', minHeight: '24px', lineHeight: '24px', margin: '16px 0 0', fontSize: '0', selectors: { '.ms-Button': { lineHeight: 'normal', verticalAlign: 'middle', }, }, }, className, ], action: [ classNames.action, { margin: '0 4px', }, ], actionsRight: [ classNames.actionsRight, { alignItems: 'center', display: 'flex', fontSize: '0', justifyContent: 'flex-end', marginRight: '-4px', }, ], }; }; //# sourceMappingURL=DialogFooter.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.types.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.types.js ***! \**********************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DialogFooter.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dialog/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dialog/index.js ***! \*********************************************************************/ /*! exports provided: Dialog, DialogBase, DialogContent, DialogContentBase, DialogFooter, DialogFooterBase, DialogType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dialog */ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dialog", function() { return _Dialog__WEBPACK_IMPORTED_MODULE_0__["Dialog"]; }); /* harmony import */ var _Dialog_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dialog.base */ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogBase", function() { return _Dialog_base__WEBPACK_IMPORTED_MODULE_1__["DialogBase"]; }); /* harmony import */ var _DialogContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DialogContent */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogContent", function() { return _DialogContent__WEBPACK_IMPORTED_MODULE_2__["DialogContent"]; }); /* harmony import */ var _DialogContent_base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DialogContent.base */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogContentBase", function() { return _DialogContent_base__WEBPACK_IMPORTED_MODULE_3__["DialogContentBase"]; }); /* harmony import */ var _DialogFooter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DialogFooter */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogFooter", function() { return _DialogFooter__WEBPACK_IMPORTED_MODULE_4__["DialogFooter"]; }); /* harmony import */ var _DialogFooter_base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DialogFooter.base */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogFooterBase", function() { return _DialogFooter_base__WEBPACK_IMPORTED_MODULE_5__["DialogFooterBase"]; }); /* harmony import */ var _Dialog_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Dialog.types */ "./node_modules/@fluentui/react/lib/components/Dialog/Dialog.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DialogContent_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DialogContent.types */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DialogType", function() { return _DialogContent_types__WEBPACK_IMPORTED_MODULE_7__["DialogType"]; }); /* harmony import */ var _DialogFooter_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DialogFooter.types */ "./node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.base.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.base.js ***! \*************************************************************************************/ /*! exports provided: VerticalDividerBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerticalDividerBase", function() { return VerticalDividerBase; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["classNamesFunction"])(); var VerticalDividerBase = react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](function (props, ref) { // eslint-disable-next-line deprecation/deprecation var styles = props.styles, theme = props.theme, deprecatedGetClassNames = props.getClassNames, className = props.className; var classNames = getClassNames(styles, { theme: theme, getClassNames: deprecatedGetClassNames, className: className }); return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: classNames.wrapper, ref: ref }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: classNames.divider }))); }); VerticalDividerBase.displayName = 'VerticalDividerBase'; //# sourceMappingURL=VerticalDivider.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.classNames.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.classNames.js ***! \*******************************************************************************************/ /*! exports provided: getDividerClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDividerClassNames", function() { return getDividerClassNames; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /** * @deprecated use getStyles exported from VerticalDivider.styles.ts */ var getDividerClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["memoizeFunction"])( // eslint-disable-next-line deprecation/deprecation function (theme) { return Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["mergeStyleSets"])({ wrapper: { display: 'inline-flex', height: '100%', alignItems: 'center', }, divider: { width: 1, height: '100%', backgroundColor: theme.palette.neutralTertiaryAlt, }, }); }); //# sourceMappingURL=VerticalDivider.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.js ***! \********************************************************************************/ /*! exports provided: VerticalDivider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerticalDivider", function() { return VerticalDivider; }); /* harmony import */ var _VerticalDivider_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VerticalDivider.styles */ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.styles.js"); /* harmony import */ var _VerticalDivider_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VerticalDivider.base */ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.base.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var VerticalDivider = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["styled"])(_VerticalDivider_base__WEBPACK_IMPORTED_MODULE_1__["VerticalDividerBase"], _VerticalDivider_styles__WEBPACK_IMPORTED_MODULE_0__["getStyles"], undefined, { scope: 'VerticalDivider', }); //# sourceMappingURL=VerticalDivider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.styles.js ***! \***************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); var getStyles = function (props) { // eslint-disable-next-line deprecation/deprecation var theme = props.theme, getClassNames = props.getClassNames, className = props.className; if (!theme) { throw new Error('Theme is undefined or null.'); } if (getClassNames) { var names = getClassNames(theme); return { wrapper: [names.wrapper], divider: [names.divider], }; } return { wrapper: [ { display: 'inline-flex', height: '100%', alignItems: 'center', }, className, ], divider: [ { width: 1, height: '100%', backgroundColor: theme.palette.neutralTertiaryAlt, }, ], }; }; //# sourceMappingURL=VerticalDivider.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.types.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.types.js ***! \**************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=VerticalDivider.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Divider/index.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Divider/index.js ***! \**********************************************************************/ /*! exports provided: VerticalDivider */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _VerticalDivider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VerticalDivider */ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalDivider", function() { return _VerticalDivider__WEBPACK_IMPORTED_MODULE_0__["VerticalDivider"]; }); /* harmony import */ var _VerticalDivider_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VerticalDivider.types */ "./node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.base.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.base.js ***! \***************************************************************************************/ /*! exports provided: DocumentCardContext, DocumentCardBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardContext", function() { return DocumentCardContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardBase", function() { return DocumentCardBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCard_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DocumentCard.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.types.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var COMPONENT_NAME = 'DocumentCard'; var DocumentCardContext = react__WEBPACK_IMPORTED_MODULE_1__["createContext"]({}); /** * {@docCategory DocumentCard} */ var DocumentCardBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardBase, _super); function DocumentCardBase(props) { var _this = _super.call(this, props) || this; _this._rootElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._onClick = function (ev) { _this._onAction(ev); }; _this._onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter || ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space) { _this._onAction(ev); } }; _this._onAction = function (ev) { var _a = _this.props, onClick = _a.onClick, onClickHref = _a.onClickHref, onClickTarget = _a.onClickTarget; if (onClick) { onClick(ev); } else if (!onClick && onClickHref) { // If no onClick Function was provided and we do have an onClickHref, redirect to the onClickHref if (onClickTarget) { window.open(onClickHref, onClickTarget, 'noreferrer noopener nofollow'); } else { window.location.href = onClickHref; } ev.preventDefault(); ev.stopPropagation(); } }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])(COMPONENT_NAME, props, { accentColor: undefined, }); return _this; } DocumentCardBase.prototype.render = function () { // eslint-disable-next-line deprecation/deprecation var _a = this.props, onClick = _a.onClick, onClickHref = _a.onClickHref, children = _a.children, type = _a.type, accentColor = _a.accentColor, styles = _a.styles, theme = _a.theme, className = _a.className; var nativeProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(this.props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"], [ 'className', 'onClick', 'type', 'role', ]); var actionable = onClick || onClickHref ? true : false; this._classNames = getClassNames(styles, { theme: theme, className: className, actionable: actionable, compact: type === _DocumentCard_types__WEBPACK_IMPORTED_MODULE_3__["DocumentCardType"].compact ? true : false, }); // Override the border color if an accent color was provided (compact card only) var style; if (type === _DocumentCard_types__WEBPACK_IMPORTED_MODULE_3__["DocumentCardType"].compact && accentColor) { style = { borderBottomColor: accentColor, }; } // if this element is actionable it should have an aria role var role = this.props.role || (actionable ? (onClick ? 'button' : 'link') : undefined); var tabIndex = actionable ? 0 : undefined; var documentCardContextValue = { role: role, tabIndex: tabIndex }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ref: this._rootElement, role: 'group', className: this._classNames.root, onKeyDown: actionable ? this._onKeyDown : undefined, onClick: actionable ? this._onClick : undefined, style: style }, nativeProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](DocumentCardContext.Provider, { value: documentCardContextValue }, children))); }; DocumentCardBase.prototype.focus = function () { if (this._rootElement.current) { this._rootElement.current.focus(); } }; DocumentCardBase.defaultProps = { type: _DocumentCard_types__WEBPACK_IMPORTED_MODULE_3__["DocumentCardType"].normal, }; return DocumentCardBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCard.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.js ***! \**********************************************************************************/ /*! exports provided: DocumentCard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCard", function() { return DocumentCard; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCard_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCard.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.base.js"); /* harmony import */ var _DocumentCard_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCard.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.styles.js"); var DocumentCard = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCard_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardBase"], _DocumentCard_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCard' }); //# sourceMappingURL=DocumentCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.styles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.styles.js ***! \*****************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardPreview_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardPreview.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.styles.js"); /* harmony import */ var _DocumentCardActivity_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DocumentCardActivity.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.styles.js"); /* harmony import */ var _DocumentCardTitle_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DocumentCardTitle.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.styles.js"); /* harmony import */ var _DocumentCardLocation_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DocumentCardLocation.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.styles.js"); var GlobalClassNames = { root: 'ms-DocumentCard', rootActionable: 'ms-DocumentCard--actionable', rootCompact: 'ms-DocumentCard--compact', }; var getStyles = function (props) { var _a, _b; var className = props.className, theme = props.theme, actionable = props.actionable, compact = props.compact; var palette = theme.palette, fonts = theme.fonts, effects = theme.effects; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, { WebkitFontSmoothing: 'antialiased', backgroundColor: palette.white, border: "1px solid " + palette.neutralLight, maxWidth: '320px', minWidth: '206px', userSelect: 'none', position: 'relative', selectors: (_a = { ':focus': { outline: '0px solid', } }, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"] + " &:focus"] = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getInputFocusStyle"])(palette.neutralSecondary, effects.roundedCorner2), _a["." + _DocumentCardLocation_styles__WEBPACK_IMPORTED_MODULE_5__["DocumentCardLocationGlobalClassNames"].root + " + ." + _DocumentCardTitle_styles__WEBPACK_IMPORTED_MODULE_4__["DocumentCardTitleGlobalClassNames"].root] = { paddingTop: '4px', }, _a), }, actionable && [ classNames.rootActionable, { selectors: { ':hover': { cursor: 'pointer', borderColor: palette.neutralTertiaryAlt, }, ':hover:after': { content: '" "', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, border: "1px solid " + palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }, ], compact && [ classNames.rootCompact, { display: 'flex', maxWidth: '480px', height: '108px', selectors: (_b = {}, _b["." + _DocumentCardPreview_styles__WEBPACK_IMPORTED_MODULE_2__["DocumentCardPreviewGlobalClassNames"].root] = { borderRight: "1px solid " + palette.neutralLight, borderBottom: 0, maxHeight: '106px', maxWidth: '144px', }, _b["." + _DocumentCardPreview_styles__WEBPACK_IMPORTED_MODULE_2__["DocumentCardPreviewGlobalClassNames"].icon] = { maxHeight: '32px', maxWidth: '32px', }, _b["." + _DocumentCardActivity_styles__WEBPACK_IMPORTED_MODULE_3__["DocumentCardActivityGlobalClassNames"].root] = { paddingBottom: '12px', }, _b["." + _DocumentCardTitle_styles__WEBPACK_IMPORTED_MODULE_4__["DocumentCardTitleGlobalClassNames"].root] = { paddingBottom: '12px 16px 8px 16px', fontSize: fonts.mediumPlus.fontSize, lineHeight: '16px', }, _b), }, ], className, ], }; }; //# sourceMappingURL=DocumentCard.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.types.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.types.js ***! \****************************************************************************************/ /*! exports provided: DocumentCardType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardType", function() { return DocumentCardType; }); /** * {@docCategory DocumentCard} */ var DocumentCardType; (function (DocumentCardType) { /** * Standard DocumentCard. */ DocumentCardType[DocumentCardType["normal"] = 0] = "normal"; /** * Compact layout. Displays the preview beside the details, rather than above. */ DocumentCardType[DocumentCardType["compact"] = 1] = "compact"; })(DocumentCardType || (DocumentCardType = {})); //# sourceMappingURL=DocumentCard.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.base.js ***! \**********************************************************************************************/ /*! exports provided: DocumentCardActionsBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActionsBase", function() { return DocumentCardActionsBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardActionsBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardActionsBase, _super); function DocumentCardActionsBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } DocumentCardActionsBase.prototype.render = function () { var _this = this; var _a = this.props, actions = _a.actions, views = _a.views, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root }, actions && actions.map(function (action, index) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _this._classNames.action, key: index }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_4__["IconButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, action)))); }), views > 0 && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.views }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], { iconName: "View", className: this._classNames.viewsIcon }), views)))); }; return DocumentCardActionsBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardActions.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.js ***! \*****************************************************************************************/ /*! exports provided: DocumentCardActions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActions", function() { return DocumentCardActions; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardActions_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardActions.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.base.js"); /* harmony import */ var _DocumentCardActions_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardActions.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.styles.js"); var DocumentCardActions = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardActions_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardActionsBase"], _DocumentCardActions_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardActions' }); //# sourceMappingURL=DocumentCardActions.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.styles.js ***! \************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var ACTION_SIZE = 34; var HORIZONTAL_PADDING = 12; var VERTICAL_PADDING = 4; var GlobalClassNames = { root: 'ms-DocumentCardActions', action: 'ms-DocumentCardActions-action', views: 'ms-DocumentCardActions-views', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, { height: ACTION_SIZE + "px", padding: VERTICAL_PADDING + "px " + HORIZONTAL_PADDING + "px", position: 'relative', }, className, ], action: [ classNames.action, { float: 'left', marginRight: '4px', color: palette.neutralSecondary, cursor: 'pointer', selectors: { '.ms-Button': { fontSize: fonts.mediumPlus.fontSize, height: ACTION_SIZE, width: ACTION_SIZE, }, '.ms-Button:hover .ms-Button-icon': { color: theme.semanticColors.buttonText, cursor: 'pointer', }, }, }, ], views: [ classNames.views, { textAlign: 'right', lineHeight: ACTION_SIZE, }, ], viewsIcon: { marginRight: '8px', fontSize: fonts.medium.fontSize, verticalAlign: 'top', }, }; }; //# sourceMappingURL=DocumentCardActions.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.types.js ***! \***********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardActions.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.base.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.base.js ***! \***********************************************************************************************/ /*! exports provided: DocumentCardActivityBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActivityBase", function() { return DocumentCardActivityBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Persona__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Persona */ "./node_modules/@fluentui/react/lib/Persona.js"); /* harmony import */ var _PersonaCoin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../PersonaCoin */ "./node_modules/@fluentui/react/lib/PersonaCoin.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardActivityBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardActivityBase, _super); function DocumentCardActivityBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } DocumentCardActivityBase.prototype.render = function () { var _a = this.props, activity = _a.activity, people = _a.people, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, multiplePeople: people.length > 1, }); if (!people || people.length === 0) { return null; } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root }, this._renderAvatars(people), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.details }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this._classNames.name }, this._getNameString(people)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this._classNames.activity }, activity)))); }; DocumentCardActivityBase.prototype._renderAvatars = function (people) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.avatars }, people.length > 1 ? this._renderAvatar(people[1]) : null, this._renderAvatar(people[0]))); }; DocumentCardActivityBase.prototype._renderAvatar = function (person) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.avatar }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PersonaCoin__WEBPACK_IMPORTED_MODULE_4__["PersonaCoin"], { imageInitials: person.initials, text: person.name, imageUrl: person.profileImageSrc, initialsColor: person.initialsColor, allowPhoneInitials: person.allowPhoneInitials, role: "presentation", size: _Persona__WEBPACK_IMPORTED_MODULE_3__["PersonaSize"].size32 }))); }; DocumentCardActivityBase.prototype._getNameString = function (people) { var nameString = people[0].name; if (people.length >= 2) { nameString += ' +' + (people.length - 1); } return nameString; }; return DocumentCardActivityBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardActivity.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.js ***! \******************************************************************************************/ /*! exports provided: DocumentCardActivity */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActivity", function() { return DocumentCardActivity; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardActivity_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardActivity.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.base.js"); /* harmony import */ var _DocumentCardActivity_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardActivity.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.styles.js"); var DocumentCardActivity = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardActivity_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardActivityBase"], _DocumentCardActivity_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardActivity' }); //# sourceMappingURL=DocumentCardActivity.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.styles.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.styles.js ***! \*************************************************************************************************/ /*! exports provided: DocumentCardActivityGlobalClassNames, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActivityGlobalClassNames", function() { return DocumentCardActivityGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var VERTICAL_PADDING = 8; var HORIZONTAL_PADDING = 16; var IMAGE_SIZE = 32; var PERSONA_TEXT_GUTTER = 8; var DocumentCardActivityGlobalClassNames = { root: 'ms-DocumentCardActivity', multiplePeople: 'ms-DocumentCardActivity--multiplePeople', details: 'ms-DocumentCardActivity-details', name: 'ms-DocumentCardActivity-name', activity: 'ms-DocumentCardActivity-activity', avatars: 'ms-DocumentCardActivity-avatars', avatar: 'ms-DocumentCardActivity-avatar', }; var getStyles = function (props) { var theme = props.theme, className = props.className, multiplePeople = props.multiplePeople; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(DocumentCardActivityGlobalClassNames, theme); return { root: [ classNames.root, multiplePeople && classNames.multiplePeople, { padding: VERTICAL_PADDING + "px " + HORIZONTAL_PADDING + "px", position: 'relative', }, className, ], avatars: [ classNames.avatars, { marginLeft: '-2px', height: '32px', }, ], avatar: [ classNames.avatar, { display: 'inline-block', verticalAlign: 'top', position: 'relative', textAlign: 'center', width: IMAGE_SIZE, height: IMAGE_SIZE, selectors: { '&:after': { content: '" "', position: 'absolute', left: '-1px', top: '-1px', right: '-1px', bottom: '-1px', border: "2px solid " + palette.white, borderRadius: '50%', }, ':nth-of-type(2)': multiplePeople && { marginLeft: '-16px', }, }, }, ], details: [ classNames.details, { left: multiplePeople ? HORIZONTAL_PADDING + IMAGE_SIZE * 1.5 + PERSONA_TEXT_GUTTER + "px" : HORIZONTAL_PADDING + IMAGE_SIZE + PERSONA_TEXT_GUTTER + "px", height: IMAGE_SIZE, position: 'absolute', top: VERTICAL_PADDING, width: "calc(100% - " + (HORIZONTAL_PADDING + IMAGE_SIZE + PERSONA_TEXT_GUTTER + HORIZONTAL_PADDING) + "px)", }, ], name: [ classNames.name, { display: 'block', fontSize: fonts.small.fontSize, lineHeight: '15px', height: '15px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: palette.neutralPrimary, fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold, }, ], activity: [ classNames.activity, { display: 'block', fontSize: fonts.small.fontSize, lineHeight: '15px', height: '15px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: palette.neutralSecondary, }, ], }; }; //# sourceMappingURL=DocumentCardActivity.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.types.js ***! \************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardActivity.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.base.js ***! \**********************************************************************************************/ /*! exports provided: DocumentCardDetailsBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardDetailsBase", function() { return DocumentCardDetailsBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardDetailsBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardDetailsBase, _super); function DocumentCardDetailsBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } DocumentCardDetailsBase.prototype.render = function () { var _a = this.props, children = _a.children, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root }, children); }; return DocumentCardDetailsBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardDetails.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.js ***! \*****************************************************************************************/ /*! exports provided: DocumentCardDetails */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardDetails", function() { return DocumentCardDetails; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardDetails_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardDetails.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.base.js"); /* harmony import */ var _DocumentCardDetails_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardDetails.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.styles.js"); var DocumentCardDetails = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardDetails_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardDetailsBase"], _DocumentCardDetails_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardDetails' }); //# sourceMappingURL=DocumentCardDetails.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.styles.js ***! \************************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-DocumentCardDetails', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, { display: 'flex', flexDirection: 'column', flex: 1, justifyContent: 'space-between', overflow: 'hidden', }, className, ], }; }; //# sourceMappingURL=DocumentCardDetails.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.types.js ***! \***********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardDetails.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.base.js ***! \********************************************************************************************/ /*! exports provided: DocumentCardImageBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardImageBase", function() { return DocumentCardImageBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Image */ "./node_modules/@fluentui/react/lib/Image.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardImageBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardImageBase, _super); function DocumentCardImageBase(props) { var _this = _super.call(this, props) || this; _this._onImageLoad = function () { _this.setState({ imageHasLoaded: true }); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_4__["initializeComponentRef"])(_this); _this.state = { imageHasLoaded: false }; return _this; } DocumentCardImageBase.prototype.render = function () { var _a = this.props, styles = _a.styles, width = _a.width, height = _a.height, imageFit = _a.imageFit, imageSrc = _a.imageSrc; this._classNames = getClassNames(styles, this.props); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root }, imageSrc && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Image__WEBPACK_IMPORTED_MODULE_3__["Image"], { width: width, height: height, imageFit: imageFit, src: imageSrc, role: "presentation", alt: "", onLoad: this._onImageLoad })), this.state.imageHasLoaded ? this._renderCornerIcon() : this._renderCenterIcon())); }; DocumentCardImageBase.prototype._renderCenterIcon = function () { var iconProps = this.props.iconProps; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.centeredIconWrapper }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: this._classNames.centeredIcon }, iconProps)))); }; DocumentCardImageBase.prototype._renderCornerIcon = function () { var iconProps = this.props.iconProps; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: this._classNames.cornerIcon }, iconProps)); }; return DocumentCardImageBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardImage.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.js ***! \***************************************************************************************/ /*! exports provided: DocumentCardImage */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardImage", function() { return DocumentCardImage; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardImage_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardImage.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.base.js"); /* harmony import */ var _DocumentCardImage_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardImage.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.styles.js"); var DocumentCardImage = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardImage_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardImageBase"], _DocumentCardImage_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardImage' }); //# sourceMappingURL=DocumentCardImage.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.styles.js ***! \**********************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); var centeredIconSize = '42px'; var cornerIconSize = '32px'; var getStyles = function (props) { var theme = props.theme, className = props.className, height = props.height, width = props.width; var palette = theme.palette; return { root: [ { borderBottom: "1px solid " + palette.neutralLight, position: 'relative', backgroundColor: palette.neutralLighterAlt, overflow: "hidden", height: height && height + "px", width: width && width + "px", }, className, ], centeredIcon: [ { height: centeredIconSize, width: centeredIconSize, fontSize: centeredIconSize, }, ], centeredIconWrapper: [ { display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', width: '100%', position: 'absolute', top: 0, left: 0, }, ], cornerIcon: [ { left: '10px', bottom: '10px', height: cornerIconSize, width: cornerIconSize, fontSize: cornerIconSize, position: 'absolute', overflow: 'visible', }, ], }; }; //# sourceMappingURL=DocumentCardImage.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.types.js ***! \*********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardImage.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.base.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.base.js ***! \***********************************************************************************************/ /*! exports provided: DocumentCardLocationBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLocationBase", function() { return DocumentCardLocationBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardLocationBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardLocationBase, _super); function DocumentCardLocationBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } DocumentCardLocationBase.prototype.render = function () { var _a = this.props, location = _a.location, locationHref = _a.locationHref, ariaLabel = _a.ariaLabel, onClick = _a.onClick, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("a", { className: this._classNames.root, href: locationHref, onClick: onClick, "aria-label": ariaLabel }, location)); }; return DocumentCardLocationBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardLocation.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.js ***! \******************************************************************************************/ /*! exports provided: DocumentCardLocation */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLocation", function() { return DocumentCardLocation; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardLocation_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardLocation.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.base.js"); /* harmony import */ var _DocumentCardLocation_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardLocation.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.styles.js"); var DocumentCardLocation = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardLocation_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardLocationBase"], _DocumentCardLocation_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardLocation' }); //# sourceMappingURL=DocumentCardLocation.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.styles.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.styles.js ***! \*************************************************************************************************/ /*! exports provided: DocumentCardLocationGlobalClassNames, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLocationGlobalClassNames", function() { return DocumentCardLocationGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var DocumentCardLocationGlobalClassNames = { root: 'ms-DocumentCardLocation', }; var getStyles = function (props) { var theme = props.theme, className = props.className; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(DocumentCardLocationGlobalClassNames, theme); return { root: [ classNames.root, fonts.small, { color: palette.themePrimary, display: 'block', fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_0__["FontWeights"].semibold, overflow: 'hidden', padding: '8px 16px', position: 'relative', textDecoration: 'none', textOverflow: 'ellipsis', whiteSpace: 'nowrap', selectors: { ':hover': { color: palette.themePrimary, cursor: 'pointer', }, }, }, className, ], }; }; //# sourceMappingURL=DocumentCardLocation.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.types.js ***! \************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardLocation.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.base.js ***! \*******************************************************************************************/ /*! exports provided: DocumentCardLogoBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLogoBase", function() { return DocumentCardLogoBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardLogoBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardLogoBase, _super); function DocumentCardLogoBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["initializeComponentRef"])(_this); return _this; } DocumentCardLogoBase.prototype.render = function () { var _a = this.props, logoIcon = _a.logoIcon, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], { iconName: logoIcon }))); }; return DocumentCardLogoBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardLogo.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.js ***! \**************************************************************************************/ /*! exports provided: DocumentCardLogo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLogo", function() { return DocumentCardLogo; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardLogo_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardLogo.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.base.js"); /* harmony import */ var _DocumentCardLogo_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardLogo.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.styles.js"); var DocumentCardLogo = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardLogo_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardLogoBase"], _DocumentCardLogo_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardLogo' }); //# sourceMappingURL=DocumentCardLogo.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.styles.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.styles.js ***! \*********************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-DocumentCardLogo', }; var getStyles = function (props) { var theme = props.theme, className = props.className; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, { // eslint-disable-next-line deprecation/deprecation fontSize: fonts.xxLargePlus.fontSize, color: palette.themePrimary, display: 'block', padding: '16px 16px 0 16px', }, className, ], }; }; //# sourceMappingURL=DocumentCardLogo.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.types.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.types.js ***! \********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardLogo.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.base.js ***! \**********************************************************************************************/ /*! exports provided: DocumentCardPreviewBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardPreviewBase", function() { return DocumentCardPreviewBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Image */ "./node_modules/@fluentui/react/lib/Image.js"); /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Link */ "./node_modules/@fluentui/react/lib/Link.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var DEFAULT_DISPLAY_COUNT = 3; var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardPreviewBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardPreviewBase, _super); function DocumentCardPreviewBase(props) { var _this = _super.call(this, props) || this; _this._renderPreviewList = function (previewImages) { var _a = _this.props, getOverflowDocumentCountText = _a.getOverflowDocumentCountText, _b = _a.maxDisplayCount, maxDisplayCount = _b === void 0 ? DEFAULT_DISPLAY_COUNT : _b; // Determine how many documents we won't be showing var overflowDocumentCount = previewImages.length - maxDisplayCount; // Determine the overflow text that will be rendered after the preview list. var overflowText = overflowDocumentCount ? getOverflowDocumentCountText ? getOverflowDocumentCountText(overflowDocumentCount) : '+' + overflowDocumentCount : null; // Create list items for the documents to be shown var fileListItems = previewImages.slice(0, maxDisplayCount).map(function (file, fileIndex) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { key: fileIndex }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Image__WEBPACK_IMPORTED_MODULE_3__["Image"], { className: _this._classNames.fileListIcon, src: file.iconSrc, role: "presentation", alt: "", width: "16px", height: "16px" }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Link__WEBPACK_IMPORTED_MODULE_4__["Link"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: _this._classNames.fileListLink, // eslint-disable-next-line deprecation/deprecation href: file.url }, file.linkProps), file.name))); }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", { className: _this._classNames.fileList }, fileListItems), overflowText && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.fileListOverflowText }, overflowText))); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["initializeComponentRef"])(_this); return _this; } DocumentCardPreviewBase.prototype.render = function () { var _a = this.props, previewImages = _a.previewImages, styles = _a.styles, theme = _a.theme, className = _a.className; var style; var preview; var isFileList = previewImages.length > 1; this._classNames = getClassNames(styles, { theme: theme, className: className, isFileList: isFileList, }); if (previewImages.length > 1) { // Render a list of files preview = this._renderPreviewList(previewImages); } else if (previewImages.length === 1) { // Render a single preview preview = this._renderPreviewImage(previewImages[0]); // Override the border color if an accent color was provided /* eslint-disable deprecation/deprecation */ if (previewImages[0].accentColor) { style = { borderBottomColor: previewImages[0].accentColor, }; } /* eslint-enable deprecation/deprecation */ } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root, style: style }, preview)); }; DocumentCardPreviewBase.prototype._renderPreviewImage = function (previewImage) { var width = previewImage.width, height = previewImage.height, imageFit = previewImage.imageFit, previewIconProps = previewImage.previewIconProps, previewIconContainerClass = previewImage.previewIconContainerClass; if (previewIconProps) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_5__["css"])(this._classNames.previewIcon, previewIconContainerClass), style: { width: width, height: height } }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, previewIconProps)))); } var image = (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Image__WEBPACK_IMPORTED_MODULE_3__["Image"], { width: width, height: height, imageFit: imageFit, src: previewImage.previewImageSrc, role: "presentation", alt: "" })); var icon; if (previewImage.iconSrc) { icon = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Image__WEBPACK_IMPORTED_MODULE_3__["Image"], { className: this._classNames.icon, src: previewImage.iconSrc, role: "presentation", alt: "" }); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, image, icon)); }; return DocumentCardPreviewBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardPreview.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.js ***! \*****************************************************************************************/ /*! exports provided: DocumentCardPreview */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardPreview", function() { return DocumentCardPreview; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardPreview_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardPreview.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.base.js"); /* harmony import */ var _DocumentCardPreview_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardPreview.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.styles.js"); var DocumentCardPreview = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardPreview_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardPreviewBase"], _DocumentCardPreview_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardPreview' }); //# sourceMappingURL=DocumentCardPreview.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.styles.js ***! \************************************************************************************************/ /*! exports provided: DocumentCardPreviewGlobalClassNames, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardPreviewGlobalClassNames", function() { return DocumentCardPreviewGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var DocumentCardPreviewGlobalClassNames = { root: 'ms-DocumentCardPreview', icon: 'ms-DocumentCardPreview-icon', iconContainer: 'ms-DocumentCardPreview-iconContainer', }; var getStyles = function (props) { var _a, _b; var theme = props.theme, className = props.className, isFileList = props.isFileList; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(DocumentCardPreviewGlobalClassNames, theme); return { root: [ classNames.root, fonts.small, { backgroundColor: isFileList ? palette.white : palette.neutralLighterAlt, borderBottom: "1px solid " + palette.neutralLight, overflow: "hidden", position: 'relative', }, className, ], previewIcon: [ classNames.iconContainer, { display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', }, ], icon: [ classNames.icon, { left: '10px', bottom: '10px', position: 'absolute', }, ], fileList: { padding: '16px 16px 0 16px', listStyleType: 'none', margin: 0, selectors: { li: { height: '16px', lineHeight: '16px', display: 'flex', flexWrap: 'nowrap', alignItems: 'center', marginBottom: '8px', overflow: 'hidden', }, }, }, fileListIcon: { display: 'inline-block', flexShrink: 0, marginRight: '8px', }, fileListLink: [ Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme, { highContrastStyle: { border: '1px solid WindowText', outline: 'none', }, }), { boxSizing: 'border-box', color: palette.neutralDark, flexGrow: 1, overflow: 'hidden', display: 'inline-block', textDecoration: 'none', textOverflow: 'ellipsis', whiteSpace: 'nowrap', selectors: (_a = { ':hover': { color: palette.themePrimary, } }, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"] + " &:focus"] = { selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { outline: 'none', }, _b), }, _a), }, ], fileListOverflowText: { padding: '0px 16px 8px 16px', display: 'block', }, }; }; //# sourceMappingURL=DocumentCardPreview.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.types.js ***! \***********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardPreview.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.base.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.base.js ***! \*********************************************************************************************/ /*! exports provided: DocumentCardStatusBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardStatusBase", function() { return DocumentCardStatusBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * {@docCategory DocumentCard} */ var DocumentCardStatusBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardStatusBase, _super); function DocumentCardStatusBase(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } DocumentCardStatusBase.prototype.render = function () { var _a = this.props, statusIcon = _a.statusIcon, status = _a.status, styles = _a.styles, theme = _a.theme, className = _a.className; var iconProps = { iconName: statusIcon, styles: { root: { padding: '8px' }, }, }; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root }, statusIcon && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, iconProps)), status)); }; return DocumentCardStatusBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardStatus.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.js ***! \****************************************************************************************/ /*! exports provided: DocumentCardStatus */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardStatus", function() { return DocumentCardStatus; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardStatus_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardStatus.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.base.js"); /* harmony import */ var _DocumentCardStatus_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardStatus.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.styles.js"); var DocumentCardStatus = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardStatus_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardStatusBase"], _DocumentCardStatus_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardStatus' }); //# sourceMappingURL=DocumentCardStatus.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.styles.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.styles.js ***! \***********************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-DocumentCardStatus', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, fonts.medium, { margin: '8px 16px', color: palette.neutralPrimary, backgroundColor: palette.neutralLighter, height: '32px', }, className, ], }; }; //# sourceMappingURL=DocumentCardStatus.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.types.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.types.js ***! \**********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardStatus.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.base.js ***! \********************************************************************************************/ /*! exports provided: DocumentCardTitleBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardTitleBase", function() { return DocumentCardTitleBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _DocumentCard_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DocumentCard.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.base.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD = 5; /** * {@docCategory DocumentCard} */ var DocumentCardTitleBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DocumentCardTitleBase, _super); function DocumentCardTitleBase(props) { var _this = _super.call(this, props) || this; _this._titleElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); // Truncate logic here way can't handle the case that chars with different widths are mixed very well. // Let _shrinkTitle take care of that. _this._truncateTitle = function () { if (!_this._needMeasurement) { return; } _this._async.requestAnimationFrame(_this._truncateWhenInAnimation); }; _this._truncateWhenInAnimation = function () { var originalTitle = _this.props.title; var element = _this._titleElement.current; if (element) { var style = getComputedStyle(element); if (style.width && style.lineHeight && style.height) { var clientWidth = element.clientWidth, scrollWidth = element.scrollWidth; _this._clientWidth = clientWidth; var lines = Math.floor((parseInt(style.height, 10) + TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD) / parseInt(style.lineHeight, 10)); element.style.whiteSpace = ''; // Use overflow to predict truncated length. // Take an example.The text is: A text with A very long text that need to be truncated.ppt // if container is like // |A text with A very| long text that need to be truncated.ppt // The scroll width is 58, (take two | out of length) // The client width is 18 // the overflow rate is scrollWidth/clientWidth which should be close to length(overflowText)/length(visualText) // And the length of remaining text should be truncated is (original Length)/(58/18) -3 = 15. // So that the logic can predict truncated text well. // first piece will be `A text `, * second piece will be `ated.ppt` // |A text ...ated.ppt| var overFlowRate = scrollWidth / (parseInt(style.width, 10) * lines); if (overFlowRate > 1) { var truncatedLength = originalTitle.length / overFlowRate - 3; /** Saved for separator */ return _this.setState({ truncatedTitleFirstPiece: originalTitle.slice(0, truncatedLength / 2), truncatedTitleSecondPiece: originalTitle.slice(originalTitle.length - truncatedLength / 2), }); } } } }; _this._shrinkTitle = function () { var _a = _this.state, truncatedTitleFirstPiece = _a.truncatedTitleFirstPiece, truncatedTitleSecondPiece = _a.truncatedTitleSecondPiece; if (truncatedTitleFirstPiece && truncatedTitleSecondPiece) { var titleElement = _this._titleElement.current; if (!titleElement) { return; } if (titleElement.scrollHeight > titleElement.clientHeight + TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD || titleElement.scrollWidth > titleElement.clientWidth) { _this.setState({ truncatedTitleFirstPiece: truncatedTitleFirstPiece.slice(0, truncatedTitleFirstPiece.length - 1), truncatedTitleSecondPiece: truncatedTitleSecondPiece.slice(1), }); } } }; Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__["initializeComponentRef"])(_this); _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["Async"](_this); _this._events = new _Utilities__WEBPACK_IMPORTED_MODULE_2__["EventGroup"](_this); _this._clientWidth = undefined; _this.state = { truncatedTitleFirstPiece: undefined, truncatedTitleSecondPiece: undefined, }; return _this; } DocumentCardTitleBase.prototype.componentDidUpdate = function (prevProps) { var _this = this; if (this.props.title !== prevProps.title) { this.setState({ truncatedTitleFirstPiece: undefined, truncatedTitleSecondPiece: undefined, }); } if (prevProps.shouldTruncate !== this.props.shouldTruncate) { if (this.props.shouldTruncate) { this._truncateTitle(); this._async.requestAnimationFrame(this._shrinkTitle); this._events.on(window, 'resize', this._updateTruncation); } else { this._events.off(window, 'resize', this._updateTruncation); } } else if (this._needMeasurement) { this._async.requestAnimationFrame(function () { _this._truncateWhenInAnimation(); _this._shrinkTitle(); }); } }; DocumentCardTitleBase.prototype.componentDidMount = function () { if (this.props.shouldTruncate) { this._truncateTitle(); this._events.on(window, 'resize', this._updateTruncation); } }; DocumentCardTitleBase.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); }; DocumentCardTitleBase.prototype.render = function () { var _this = this; var _a = this.props, title = _a.title, shouldTruncate = _a.shouldTruncate, showAsSecondaryTitle = _a.showAsSecondaryTitle, styles = _a.styles, theme = _a.theme, className = _a.className; var _b = this.state, truncatedTitleFirstPiece = _b.truncatedTitleFirstPiece, truncatedTitleSecondPiece = _b.truncatedTitleSecondPiece; this._classNames = getClassNames(styles, { theme: theme, className: className, showAsSecondaryTitle: showAsSecondaryTitle, }); if (shouldTruncate && truncatedTitleFirstPiece && truncatedTitleSecondPiece) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DocumentCard_base__WEBPACK_IMPORTED_MODULE_4__["DocumentCardContext"].Consumer, null, function (_a) { var role = _a.role, tabIndex = _a.tabIndex; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _this._classNames.root, ref: _this._titleElement, title: title, tabIndex: tabIndex, role: role }, truncatedTitleFirstPiece, "\u2026", truncatedTitleSecondPiece)); })); } else { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_DocumentCard_base__WEBPACK_IMPORTED_MODULE_4__["DocumentCardContext"].Consumer, null, function (_a) { var role = _a.role, tabIndex = _a.tabIndex; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _this._classNames.root, ref: _this._titleElement, title: title, tabIndex: tabIndex, role: role, style: _this._needMeasurement ? { whiteSpace: 'nowrap' } : undefined }, title)); })); } }; Object.defineProperty(DocumentCardTitleBase.prototype, "_needMeasurement", { /** * In measuring, it will render a same style text with whiteSpace: 'nowrap', to get overflow rate. * So that the logic can predict truncated text well. */ get: function () { return !!this.props.shouldTruncate && this._clientWidth === undefined; }, enumerable: false, configurable: true }); DocumentCardTitleBase.prototype._updateTruncation = function () { var _this = this; if (this._timerId) { return; } this._timerId = this._async.setTimeout(function () { delete _this._timerId; _this._clientWidth = undefined; _this.setState({ truncatedTitleFirstPiece: undefined, truncatedTitleSecondPiece: undefined, }); }, 250); }; return DocumentCardTitleBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=DocumentCardTitle.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.js ***! \***************************************************************************************/ /*! exports provided: DocumentCardTitle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardTitle", function() { return DocumentCardTitle; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DocumentCardTitle_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCardTitle.base */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.base.js"); /* harmony import */ var _DocumentCardTitle_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardTitle.styles */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.styles.js"); var DocumentCardTitle = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_DocumentCardTitle_base__WEBPACK_IMPORTED_MODULE_1__["DocumentCardTitleBase"], _DocumentCardTitle_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'DocumentCardTitle' }); //# sourceMappingURL=DocumentCardTitle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.styles.js ***! \**********************************************************************************************/ /*! exports provided: DocumentCardTitleGlobalClassNames, getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCardTitleGlobalClassNames", function() { return DocumentCardTitleGlobalClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); var DocumentCardTitleGlobalClassNames = { root: 'ms-DocumentCardTitle', }; var getStyles = function (props) { var _a; var theme = props.theme, className = props.className, showAsSecondaryTitle = props.showAsSecondaryTitle; var palette = theme.palette, fonts = theme.fonts, effects = theme.effects; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(DocumentCardTitleGlobalClassNames, theme); return { root: [ classNames.root, showAsSecondaryTitle ? fonts.medium : fonts.large, { padding: '8px 16px', display: 'block', overflow: 'hidden', position: 'relative', wordWrap: 'break-word', height: showAsSecondaryTitle ? '45px' : '38px', lineHeight: showAsSecondaryTitle ? '18px' : '21px', color: showAsSecondaryTitle ? palette.neutralSecondary : palette.neutralPrimary, selectors: (_a = { ':focus': { outline: '0px solid', } }, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"] + " &:focus"] = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getInputFocusStyle"])(palette.neutralSecondary, effects.roundedCorner2), _a), }, className, ], }; }; //# sourceMappingURL=DocumentCardTitle.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.types.js ***! \*********************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=DocumentCardTitle.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/DocumentCard/index.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/DocumentCard/index.js ***! \***************************************************************************/ /*! exports provided: DocumentCard, DocumentCardType, DocumentCardActions, DocumentCardActivity, DocumentCardDetails, DocumentCardLocation, DocumentCardPreview, DocumentCardImage, DocumentCardTitle, DocumentCardLogo, DocumentCardStatus */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _DocumentCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DocumentCard */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCard", function() { return _DocumentCard__WEBPACK_IMPORTED_MODULE_0__["DocumentCard"]; }); /* harmony import */ var _DocumentCard_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DocumentCard.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCard.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardType", function() { return _DocumentCard_types__WEBPACK_IMPORTED_MODULE_1__["DocumentCardType"]; }); /* harmony import */ var _DocumentCardActions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DocumentCardActions */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActions", function() { return _DocumentCardActions__WEBPACK_IMPORTED_MODULE_2__["DocumentCardActions"]; }); /* harmony import */ var _DocumentCardActions_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DocumentCardActions.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActions.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardActivity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DocumentCardActivity */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardActivity", function() { return _DocumentCardActivity__WEBPACK_IMPORTED_MODULE_4__["DocumentCardActivity"]; }); /* harmony import */ var _DocumentCardActivity_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DocumentCardActivity.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardActivity.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardDetails__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DocumentCardDetails */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardDetails", function() { return _DocumentCardDetails__WEBPACK_IMPORTED_MODULE_6__["DocumentCardDetails"]; }); /* harmony import */ var _DocumentCardDetails_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DocumentCardDetails.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardDetails.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardLocation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DocumentCardLocation */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLocation", function() { return _DocumentCardLocation__WEBPACK_IMPORTED_MODULE_8__["DocumentCardLocation"]; }); /* harmony import */ var _DocumentCardLocation_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DocumentCardLocation.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLocation.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardPreview__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DocumentCardPreview */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardPreview", function() { return _DocumentCardPreview__WEBPACK_IMPORTED_MODULE_10__["DocumentCardPreview"]; }); /* harmony import */ var _DocumentCardPreview_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DocumentCardPreview.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardPreview.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardImage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DocumentCardImage */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardImage", function() { return _DocumentCardImage__WEBPACK_IMPORTED_MODULE_12__["DocumentCardImage"]; }); /* harmony import */ var _DocumentCardImage_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DocumentCardImage.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardImage.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardTitle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./DocumentCardTitle */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardTitle", function() { return _DocumentCardTitle__WEBPACK_IMPORTED_MODULE_14__["DocumentCardTitle"]; }); /* harmony import */ var _DocumentCardTitle_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./DocumentCardTitle.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardLogo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./DocumentCardLogo */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardLogo", function() { return _DocumentCardLogo__WEBPACK_IMPORTED_MODULE_16__["DocumentCardLogo"]; }); /* harmony import */ var _DocumentCardLogo_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./DocumentCardLogo.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardLogo.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _DocumentCardStatus__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DocumentCardStatus */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DocumentCardStatus", function() { return _DocumentCardStatus__WEBPACK_IMPORTED_MODULE_18__["DocumentCardStatus"]; }); /* harmony import */ var _DocumentCardStatus_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./DocumentCardStatus.types */ "./node_modules/@fluentui/react/lib/components/DocumentCard/DocumentCardStatus.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.base.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.base.js ***! \*******************************************************************************/ /*! exports provided: DropdownBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownBase", function() { return DropdownBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib/Callout.js"); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _Dropdown_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Dropdown.types */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.types.js"); /* harmony import */ var _utilities_DropdownSizePosCache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utilities/DropdownSizePosCache */ "./node_modules/@fluentui/react/lib/components/Dropdown/utilities/DropdownSizePosCache.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib/Label.js"); /* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../Panel */ "./node_modules/@fluentui/react/lib/Panel.js"); /* harmony import */ var _ResponsiveMode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib/ResponsiveMode.js"); /* harmony import */ var _SelectableOption__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../SelectableOption */ "./node_modules/@fluentui/react/lib/SelectableOption.js"); /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../Checkbox */ "./node_modules/@fluentui/react/lib/Checkbox.js"); /* harmony import */ var _fluentui_utilities__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib/index.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); // import and use V7 Checkbox to ensure no breaking changes. var COMPONENT_NAME = 'Dropdown'; var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var DEFAULT_PROPS = { options: [], }; function useSelectedItemsState(_a) { var defaultSelectedKeys = _a.defaultSelectedKeys, selectedKeys = _a.selectedKeys, defaultSelectedKey = _a.defaultSelectedKey, selectedKey = _a.selectedKey, options = _a.options, multiSelect = _a.multiSelect; var oldOptions = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_15__["usePrevious"])(options); var _b = react__WEBPACK_IMPORTED_MODULE_1__["useState"]([]), selectedIndices = _b[0], setSelectedIndices = _b[1]; // In controlled component usage where selectedKey is provided, update the selectedIndex // state if the key or options change. var selectedKeyPropToUse; // this does a shallow compare (assumes options are pure), for the purposes of determining whether // defaultSelectedKey/defaultSelectedKeys are respected. var didOptionsChange = options !== oldOptions; if (multiSelect) { if (didOptionsChange && defaultSelectedKeys !== undefined) { selectedKeyPropToUse = defaultSelectedKeys; } else { selectedKeyPropToUse = selectedKeys; } } else { if (didOptionsChange && defaultSelectedKey !== undefined) { selectedKeyPropToUse = defaultSelectedKey; } else { selectedKeyPropToUse = selectedKey; } } var oldSelectedKeyProp = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_15__["usePrevious"])(selectedKeyPropToUse); react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { /** Get all selected indexes for multi-select mode */ var getSelectedIndexes = function () { if (selectedKeyPropToUse === undefined) { if (multiSelect) { return getAllSelectedIndices(); } var selectedIndex = getSelectedIndex(null); return selectedIndex !== -1 ? [selectedIndex] : []; } else if (!Array.isArray(selectedKeyPropToUse)) { var selectedIndex = getSelectedIndex(selectedKeyPropToUse); return selectedIndex !== -1 ? [selectedIndex] : []; } var returnValue = []; for (var _i = 0, selectedKeyPropToUse_1 = selectedKeyPropToUse; _i < selectedKeyPropToUse_1.length; _i++) { var key = selectedKeyPropToUse_1[_i]; var selectedIndex = getSelectedIndex(key); selectedIndex !== -1 && returnValue.push(selectedIndex); } return returnValue; }; var getAllSelectedIndices = function () { return options .map(function (option, index) { return (option.selected ? index : -1); }) .filter(function (index) { return index !== -1; }); }; var getSelectedIndex = function (searchKey) { return Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["findIndex"])(options, function (option) { // eslint-disable-next-line eqeqeq if (searchKey != null) { return option.key === searchKey; } else { // eslint-disable-next-line deprecation/deprecation return !!option.selected || !!option.isSelected; } }); }; if ((selectedKeyPropToUse !== undefined || !oldOptions) && (selectedKeyPropToUse !== oldSelectedKeyProp || didOptionsChange)) { setSelectedIndices(getSelectedIndexes()); } }, [didOptionsChange, multiSelect, oldOptions, oldSelectedKeyProp, options, selectedKeyPropToUse]); return [selectedIndices, setSelectedIndices]; } var DropdownBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, forwardedRef) { var props = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_14__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var rootRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var mergedRootRef = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_15__["useMergedRefs"])(forwardedRef, rootRef); var responsiveMode = Object(_ResponsiveMode__WEBPACK_IMPORTED_MODULE_11__["useResponsiveMode"])(rootRef, props.responsiveMode); var _a = useSelectedItemsState(props), selectedIndices = _a[0], setSelectedIndices = _a[1]; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](DropdownInternal, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props, { responsiveMode: responsiveMode, hoisted: { rootRef: mergedRootRef, selectedIndices: selectedIndices, setSelectedIndices: setSelectedIndices } }))); }); DropdownBase.displayName = 'DropdownBase'; var DropdownInternal = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DropdownInternal, _super); function DropdownInternal(props) { var _this = _super.call(this, props) || this; _this._host = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._focusZone = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._dropDown = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._scrollIdleDelay = 250 /* ms */; _this._sizePosCache = new _utilities_DropdownSizePosCache__WEBPACK_IMPORTED_MODULE_6__["DropdownSizePosCache"](); _this._requestAnimationFrame = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["safeRequestAnimationFrame"])(_this); /** * Close menu callout if it is open */ _this.dismissMenu = function () { var isOpen = _this.state.isOpen; isOpen && _this.setState({ isOpen: false }); }; _this._onChange = function (event, options, index, checked, multiSelect) { // eslint-disable-next-line deprecation/deprecation var _a = _this.props, onChange = _a.onChange, onChanged = _a.onChanged; if (onChange || onChanged) { // for single-select, option passed in will always be selected. // for multi-select, flip the checked value var changedOpt = multiSelect ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, options[index]), { selected: !checked }) : options[index]; onChange && onChange(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, event), { target: _this._dropDown.current }), changedOpt, index); onChanged && onChanged(changedOpt, index); } }; /** Get either props.placeholder (new name) or props.placeHolder (old name) */ _this._getPlaceholder = function () { // eslint-disable-next-line deprecation/deprecation return _this.props.placeholder || _this.props.placeHolder; }; /** Get text in dropdown input as a string */ _this._getTitle = function (items, _unused) { var _a = _this.props.multiSelectDelimiter, multiSelectDelimiter = _a === void 0 ? ', ' : _a; return items.map(function (i) { return i.text; }).join(multiSelectDelimiter); }; /** Render text in dropdown input */ _this._onRenderTitle = function (items) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, _this._getTitle(items)); }; /** Render placeholder text in dropdown input */ _this._onRenderPlaceholder = function (props) { if (!_this._getPlaceholder()) { return null; } return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, _this._getPlaceholder()); }; /** Render Callout or Panel container and pass in list */ _this._onRenderContainer = function (props) { var calloutProps = props.calloutProps, panelProps = props.panelProps; var _a = _this.props, responsiveMode = _a.responsiveMode, dropdownWidth = _a.dropdownWidth; var isSmall = responsiveMode <= _ResponsiveMode__WEBPACK_IMPORTED_MODULE_11__["ResponsiveMode"].medium; var focusTrapZoneProps = { firstFocusableTarget: "#" + _this._listId + "1" }; var panelStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.panel : undefined; var calloutWidth = undefined; var calloutMinWidth = undefined; if (dropdownWidth === 'auto') { calloutMinWidth = _this._dropDown.current ? _this._dropDown.current.clientWidth : 0; } else { calloutWidth = dropdownWidth || (_this._dropDown.current ? _this._dropDown.current.clientWidth : 0); } return isSmall ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Panel__WEBPACK_IMPORTED_MODULE_10__["Panel"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ closeButtonAriaLabel: "Close", focusTrapZoneProps: focusTrapZoneProps, hasCloseButton: true, isOpen: true, isLightDismiss: true, onDismiss: _this._onDismiss, styles: panelStyles }, panelProps), _this._renderFocusableList(props))) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Callout__WEBPACK_IMPORTED_MODULE_3__["Callout"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ isBeakVisible: false, gapSpace: 0, doNotLayer: false, directionalHintFixed: false, directionalHint: _Callout__WEBPACK_IMPORTED_MODULE_3__["DirectionalHint"].bottomLeftEdge, calloutWidth: calloutWidth, calloutMinWidth: calloutMinWidth }, calloutProps, { className: _this._classNames.callout, target: _this._dropDown.current, onDismiss: _this._onDismiss, onScroll: _this._onScroll, onPositioned: _this._onPositioned }), _this._renderFocusableList(props))); }; /** Render Caret Down Icon */ _this._onRenderCaretDown = function (props) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_8__["Icon"], { className: _this._classNames.caretDown, iconName: "ChevronDown", "aria-hidden": true }); }; /** Render List of items */ _this._onRenderList = function (props) { var _a = props.onRenderItem, onRenderItem = _a === void 0 ? _this._onRenderItem : _a; var queue = { items: [] }; var renderedList = []; var emptyQueue = function () { var newGroup = queue.id ? [ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "group", key: queue.id, "aria-labelledby": queue.id }, queue.items), ] : queue.items; renderedList = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], renderedList), newGroup); // Flush items and id queue = { items: [] }; }; var placeRenderedOptionIntoQueue = function (item, index) { /* Case Header empty queue if it's not already empty ensure unique ID for header and set queue ID push header into queue Case Divider push divider into queue if not first item empty queue if not already empty Default push item into queue */ switch (item.itemType) { case _SelectableOption__WEBPACK_IMPORTED_MODULE_12__["SelectableOptionMenuItemType"].Header: queue.items.length > 0 && emptyQueue(); var id = _this._id + item.key; queue.items.push(onRenderItem(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: id }, item), { index: index }), _this._onRenderItem)); queue.id = id; break; case _SelectableOption__WEBPACK_IMPORTED_MODULE_12__["SelectableOptionMenuItemType"].Divider: index > 0 && queue.items.push(onRenderItem(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index }), _this._onRenderItem)); queue.items.length > 0 && emptyQueue(); break; default: queue.items.push(onRenderItem(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { index: index }), _this._onRenderItem)); } }; // Place options into the queue. Queue will be emptied anytime a Header or Divider is encountered props.options.forEach(function (item, index) { placeRenderedOptionIntoQueue(item, index); }); // Push remaining items into all renderedList queue.items.length > 0 && emptyQueue(); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, renderedList); }; _this._onRenderItem = function (item) { switch (item.itemType) { case _SelectableOption__WEBPACK_IMPORTED_MODULE_12__["SelectableOptionMenuItemType"].Divider: return _this._renderSeparator(item); case _SelectableOption__WEBPACK_IMPORTED_MODULE_12__["SelectableOptionMenuItemType"].Header: return _this._renderHeader(item); default: return _this._renderOption(item); } }; _this._renderOption = function (item) { var _a; var _b = _this.props, _c = _b.onRenderOption, onRenderOption = _c === void 0 ? _this._onRenderOption : _c, _d = _b.hoisted.selectedIndices, selectedIndices = _d === void 0 ? [] : _d; var isItemSelected = item.index !== undefined && selectedIndices ? selectedIndices.indexOf(item.index) > -1 : false; // select the right className based on the combination of selected/disabled var itemClassName = item.hidden // predicate: item hidden ? _this._classNames.dropdownItemHidden : isItemSelected && item.disabled === true // predicate: both selected and disabled ? _this._classNames.dropdownItemSelectedAndDisabled : isItemSelected // predicate: selected only ? _this._classNames.dropdownItemSelected : item.disabled === true // predicate: disabled only ? _this._classNames.dropdownItemDisabled : _this._classNames.dropdownItem; var title = item.title; // define the id and label id (for multiselect checkboxes) var id = _this._listId + item.index; var labelId = (_a = item.id) !== null && _a !== void 0 ? _a : id + '-label'; var multiSelectItemStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.multiSelectItem : undefined; return !_this.props.multiSelect ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_4__["CommandButton"], { id: id, key: item.key, "data-index": item.index, "data-is-focusable": !item.disabled, disabled: item.disabled, className: itemClassName, onClick: _this._onItemClick(item), // eslint-disable-next-line react/jsx-no-bind onMouseEnter: _this._onItemMouseEnter.bind(_this, item), // eslint-disable-next-line react/jsx-no-bind onMouseLeave: _this._onMouseItemLeave.bind(_this, item), // eslint-disable-next-line react/jsx-no-bind onMouseMove: _this._onItemMouseMove.bind(_this, item), role: "option", "aria-selected": isItemSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, title: title, "aria-posinset": _this._sizePosCache.positionInSet(item.index), "aria-setsize": _this._sizePosCache.optionSetSize }, onRenderOption(item, _this._onRenderOption))) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Checkbox__WEBPACK_IMPORTED_MODULE_13__["Checkbox"], { id: id, key: item.key, disabled: item.disabled, onChange: _this._onItemClick(item), inputProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ 'aria-selected': isItemSelected, onMouseEnter: _this._onItemMouseEnter.bind(_this, item), onMouseLeave: _this._onMouseItemLeave.bind(_this, item), onMouseMove: _this._onItemMouseMove.bind(_this, item), role: 'option' }, { 'data-index': item.index, 'data-is-focusable': !(item.disabled || item.hidden), }), label: item.text, title: title, // eslint-disable-next-line react/jsx-no-bind onRenderLabel: _this._onRenderItemLabel.bind(_this, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, item), { id: labelId })), className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])(itemClassName, 'is-multi-select'), checked: isItemSelected, styles: multiSelectItemStyles, ariaPositionInSet: !item.hidden ? _this._sizePosCache.positionInSet(item.index) : undefined, ariaSetSize: !item.hidden ? _this._sizePosCache.optionSetSize : undefined, ariaLabel: item.ariaLabel, ariaLabelledBy: item.ariaLabel ? undefined : labelId })); }; /** Render content of item (i.e. text/icon inside of button) */ _this._onRenderOption = function (item) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.dropdownOptionText }, item.text); }; /* * Render content of a multiselect item label. * Text within the label is aria-hidden, to prevent duplicate input/label exposure */ _this._onRenderMultiselectOption = function (item) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: item.id, "aria-hidden": "true", className: _this._classNames.dropdownOptionText }, item.text)); }; /** Render custom label for multiselect checkbox items */ _this._onRenderItemLabel = function (item) { var _a = _this.props.onRenderOption, onRenderOption = _a === void 0 ? _this._onRenderMultiselectOption : _a; return onRenderOption(item, _this._onRenderMultiselectOption); }; _this._onPositioned = function (positions) { if (_this._focusZone.current) { // Focusing an element can trigger a reflow. Making this wait until there is an animation // frame can improve perf significantly. _this._requestAnimationFrame(function () { var selectedIndices = _this.props.hoisted.selectedIndices; if (_this._focusZone.current) { if (!_this._hasBeenPositioned && selectedIndices && selectedIndices[0] && !_this.props.options[selectedIndices[0]].disabled) { var element = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getDocument"])().getElementById(_this._id + "-list" + selectedIndices[0]); if (element) { _this._focusZone.current.focusElement(element); } _this._hasBeenPositioned = true; } else { _this._focusZone.current.focus(); } } }); } if (!_this.state.calloutRenderEdge || _this.state.calloutRenderEdge !== positions.targetEdge) { _this.setState({ calloutRenderEdge: positions.targetEdge, }); } }; _this._onItemClick = function (item) { return function (event) { if (!item.disabled) { _this.setSelectedIndex(event, item.index); if (!_this.props.multiSelect) { // only close the callout when it's in single-select mode _this.setState({ isOpen: false, }); } } }; }; /** * Scroll handler for the callout to make sure the mouse events * for updating focus are not interacting during scroll */ _this._onScroll = function () { if (!_this._isScrollIdle && _this._scrollIdleTimeoutId !== undefined) { clearTimeout(_this._scrollIdleTimeoutId); _this._scrollIdleTimeoutId = undefined; } else { _this._isScrollIdle = false; } _this._scrollIdleTimeoutId = window.setTimeout(function () { _this._isScrollIdle = true; }, _this._scrollIdleDelay); }; _this._onMouseItemLeave = function (item, ev) { if (_this._shouldIgnoreMouseEvent()) { return; } /** * IE11 focus() method forces parents to scroll to top of element. * Edge and IE expose a setActive() function for focusable divs that * sets the page focus but does not scroll the parent element. */ if (_this._host.current) { if (_this._host.current.setActive) { try { _this._host.current.setActive(); } catch (e) { /* no-op */ } } else { _this._host.current.focus(); } } }; _this._onDismiss = function () { _this.setState({ isOpen: false }); }; _this._onDropdownBlur = function (ev) { // If Dropdown disabled do not proceed with this logic. var disabled = _this._isDisabled(); if (disabled) { return; } if (_this.state.isOpen) { // Do not call onBlur or update focus state when the callout is opened return; } _this.setState({ hasFocus: false }); if (_this.props.onBlur) { _this.props.onBlur(ev); } }; _this._onDropdownKeyDown = function (ev) { // If Dropdown disabled do not process any keyboard events. var disabled = _this._isDisabled(); if (disabled) { return; } // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in _shouldHandleKeyUp for reasoning. _this._lastKeyDownWasAltOrMeta = _this._isAltOrMeta(ev); if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); if (ev.defaultPrevented) { return; } } var newIndex; var selectedIndex = _this.props.hoisted.selectedIndices.length ? _this.props.hoisted.selectedIndices[0] : -1; var containsExpandCollapseModifier = ev.altKey || ev.metaKey; var isOpen = _this.state.isOpen; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter: _this.setState({ isOpen: !isOpen, }); break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].escape: if (!isOpen) { return; } _this.setState({ isOpen: false, }); break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up: if (containsExpandCollapseModifier) { if (isOpen) { _this.setState({ isOpen: false }); break; } return; } if (_this.props.multiSelect) { _this.setState({ isOpen: true }); } else if (!_this._isDisabled()) { newIndex = _this._moveIndex(ev, -1, selectedIndex - 1, selectedIndex); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down: if (containsExpandCollapseModifier) { ev.stopPropagation(); ev.preventDefault(); } if ((containsExpandCollapseModifier && !isOpen) || _this.props.multiSelect) { _this.setState({ isOpen: true }); } else if (!_this._isDisabled()) { newIndex = _this._moveIndex(ev, 1, selectedIndex + 1, selectedIndex); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].home: if (!_this.props.multiSelect) { newIndex = _this._moveIndex(ev, 1, 0, selectedIndex); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].end: if (!_this.props.multiSelect) { newIndex = _this._moveIndex(ev, -1, _this.props.options.length - 1, selectedIndex); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space: // event handled in _onDropdownKeyUp break; default: return; } if (newIndex !== selectedIndex) { ev.stopPropagation(); ev.preventDefault(); } }; _this._onDropdownKeyUp = function (ev) { // If Dropdown disabled do not process any keyboard events. var disabled = _this._isDisabled(); if (disabled) { return; } var shouldHandleKey = _this._shouldHandleKeyUp(ev); var isOpen = _this.state.isOpen; if (_this.props.onKeyUp) { _this.props.onKeyUp(ev); if (ev.defaultPrevented) { return; } } // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].space: _this.setState({ isOpen: !isOpen, }); break; default: if (shouldHandleKey && isOpen) { _this.setState({ isOpen: false }); } return; } ev.stopPropagation(); ev.preventDefault(); }; _this._onZoneKeyDown = function (ev) { var _a, _b; var elementToFocus; // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in _shouldHandleKeyUp for reasoning. _this._lastKeyDownWasAltOrMeta = _this._isAltOrMeta(ev); var containsExpandCollapseModifier = ev.altKey || ev.metaKey; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up: if (containsExpandCollapseModifier) { _this.setState({ isOpen: false }); } else { if (_this._host.current) { elementToFocus = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getLastFocusable"])(_this._host.current, _this._host.current.lastChild, true); } } break; // All directional keystrokes should be canceled when the zone is rendered. // This avoids the body scroll from reacting and thus dismissing the dropdown. case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].home: case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].end: case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].pageUp: case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].pageDown: break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down: if (!containsExpandCollapseModifier && _this._host.current) { elementToFocus = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getFirstFocusable"])(_this._host.current, _this._host.current.firstChild, true); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].escape: _this.setState({ isOpen: false }); break; case _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].tab: _this.setState({ isOpen: false }); var document_1 = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getDocument"])(); if (document_1) { if (ev.shiftKey) { (_a = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_14__["getPreviousElement"])(document_1.body, _this._dropDown.current, false, false, true, true)) === null || _a === void 0 ? void 0 : _a.focus(); } else { (_b = Object(_fluentui_utilities__WEBPACK_IMPORTED_MODULE_14__["getNextElement"])(document_1.body, _this._dropDown.current, false, false, true, true)) === null || _b === void 0 ? void 0 : _b.focus(); } } break; default: return; } if (elementToFocus) { elementToFocus.focus(); } ev.stopPropagation(); ev.preventDefault(); }; _this._onZoneKeyUp = function (ev) { var shouldHandleKey = _this._shouldHandleKeyUp(ev); if (shouldHandleKey && _this.state.isOpen) { _this.setState({ isOpen: false }); ev.preventDefault(); } }; _this._onDropdownClick = function (ev) { if (_this.props.onClick) { _this.props.onClick(ev); if (ev.defaultPrevented) { return; } } var isOpen = _this.state.isOpen; var disabled = _this._isDisabled(); if (!disabled && !_this._shouldOpenOnFocus()) { _this.setState({ isOpen: !isOpen, }); } _this._isFocusedByClick = false; // reset }; _this._onDropdownMouseDown = function () { _this._isFocusedByClick = true; }; _this._onFocus = function (ev) { var disabled = _this._isDisabled(); if (!disabled) { if (_this.props.onFocus) { _this.props.onFocus(ev); } var state = { hasFocus: true }; if (_this._shouldOpenOnFocus()) { state.isOpen = true; } _this.setState(state); } }; /** * Because the isDisabled prop is deprecated, we have had to repeat this logic all over the place. * This helper method avoids all the repetition. */ _this._isDisabled = function () { var disabled = _this.props.disabled; // eslint-disable-next-line deprecation/deprecation var isDisabled = _this.props.isDisabled; // Remove this deprecation workaround at 1.0.0 if (disabled === undefined) { disabled = isDisabled; } return disabled; }; _this._onRenderLabel = function (props) { var label = props.label, required = props.required, disabled = props.disabled; var labelStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.label : undefined; return label ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Label__WEBPACK_IMPORTED_MODULE_9__["Label"], { className: _this._classNames.label, id: _this._labelId, required: required, styles: labelStyles, disabled: disabled }, label)) : null; }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); var multiSelect = props.multiSelect, selectedKey = props.selectedKey, selectedKeys = props.selectedKeys, defaultSelectedKey = props.defaultSelectedKey, defaultSelectedKeys = props.defaultSelectedKeys, options = props.options; if (true) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnDeprecations"])(COMPONENT_NAME, props, { isDisabled: 'disabled', onChanged: 'onChange', placeHolder: 'placeholder', onRenderPlaceHolder: 'onRenderPlaceholder', }); Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warnMutuallyExclusive"])(COMPONENT_NAME, props, { defaultSelectedKey: 'selectedKey', defaultSelectedKeys: 'selectedKeys', selectedKeys: 'selectedKey', }); if (multiSelect) { var warnMultiSelect = function (prop) { return Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warn"])("Dropdown property '" + prop + "' cannot be used when 'multiSelect' is true. Use '" + prop + "s' instead."); }; if (selectedKey !== undefined) { warnMultiSelect('selectedKey'); } if (defaultSelectedKey !== undefined) { warnMultiSelect('defaultSelectedKey'); } } else { var warnNotMultiSelect = function (prop) { return Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["warn"])("Dropdown property '" + prop + "s' cannot be used when 'multiSelect' is false/unset. Use '" + prop + "' instead."); }; if (selectedKeys !== undefined) { warnNotMultiSelect('selectedKey'); } if (defaultSelectedKeys !== undefined) { warnNotMultiSelect('defaultSelectedKey'); } } } _this._id = props.id || Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])('Dropdown'); _this._labelId = _this._id + '-label'; _this._listId = _this._id + '-list'; _this._optionId = _this._id + '-option'; _this._isScrollIdle = true; _this._hasBeenPositioned = false; _this._sizePosCache.updateOptions(options); _this.state = { isOpen: false, hasFocus: false, calloutRenderEdge: undefined, }; return _this; } Object.defineProperty(DropdownInternal.prototype, "selectedOptions", { /** * All selected options */ get: function () { var _a = this.props, options = _a.options, selectedIndices = _a.hoisted.selectedIndices; return Object(_SelectableOption__WEBPACK_IMPORTED_MODULE_12__["getAllSelectedOptions"])(options, selectedIndices); }, enumerable: false, configurable: true }); DropdownInternal.prototype.componentWillUnmount = function () { clearTimeout(this._scrollIdleTimeoutId); }; DropdownInternal.prototype.componentDidUpdate = function (prevProps, prevState) { if (prevState.isOpen === true && this.state.isOpen === false) { this._gotMouseMove = false; this._hasBeenPositioned = false; if (this.props.onDismiss) { this.props.onDismiss(); } } }; DropdownInternal.prototype.render = function () { var id = this._id; var props = this.props; var className = props.className, label = props.label, options = props.options, ariaLabel = props.ariaLabel, required = props.required, errorMessage = props.errorMessage, propStyles = props.styles, theme = props.theme, panelProps = props.panelProps, calloutProps = props.calloutProps, _a = props.onRenderTitle, onRenderTitle = _a === void 0 ? this._getTitle : _a, _b = props.onRenderContainer, onRenderContainer = _b === void 0 ? this._onRenderContainer : _b, _c = props.onRenderCaretDown, onRenderCaretDown = _c === void 0 ? this._onRenderCaretDown : _c, _d = props.onRenderLabel, onRenderLabel = _d === void 0 ? this._onRenderLabel : _d, _e = props.onRenderItem, onRenderItem = _e === void 0 ? this._onRenderItem : _e, selectedIndices = props.hoisted.selectedIndices; var _f = this.state, isOpen = _f.isOpen, calloutRenderEdge = _f.calloutRenderEdge, hasFocus = _f.hasFocus; // eslint-disable-next-line deprecation/deprecation var onRenderPlaceholder = props.onRenderPlaceholder || props.onRenderPlaceHolder || this._getPlaceholder; // If our cached options are out of date update our cache if (options !== this._sizePosCache.cachedOptions) { this._sizePosCache.updateOptions(options); } var selectedOptions = Object(_SelectableOption__WEBPACK_IMPORTED_MODULE_12__["getAllSelectedOptions"])(options, selectedIndices); var divProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"]); var disabled = this._isDisabled(); var errorMessageId = id + '-errorMessage'; this._classNames = getClassNames(propStyles, { theme: theme, className: className, hasError: !!(errorMessage && errorMessage.length > 0), hasLabel: !!label, isOpen: isOpen, required: required, disabled: disabled, isRenderingPlaceholder: !selectedOptions.length, panelClassName: panelProps ? panelProps.className : undefined, calloutClassName: calloutProps ? calloutProps.className : undefined, calloutRenderEdge: calloutRenderEdge, }); var hasErrorMessage = !!errorMessage && errorMessage.length > 0; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root, ref: this.props.hoisted.rootRef, "aria-owns": isOpen ? this._listId : undefined }, onRenderLabel(this.props, this._onRenderLabel), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-is-focusable": !disabled, "data-ktp-target": true, ref: this._dropDown, id: id, tabIndex: disabled ? -1 : 0, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": isOpen ? 'true' : 'false', "aria-label": ariaLabel, "aria-labelledby": label && !ariaLabel ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["mergeAriaAttributeValues"])(this._labelId, this._optionId) : undefined, "aria-describedby": hasErrorMessage ? this._id + '-errorMessage' : undefined, "aria-required": required, "aria-disabled": disabled, "aria-controls": isOpen ? this._listId : undefined }, divProps, { className: this._classNames.dropdown, onBlur: this._onDropdownBlur, onKeyDown: this._onDropdownKeyDown, onKeyUp: this._onDropdownKeyUp, onClick: this._onDropdownClick, onMouseDown: this._onDropdownMouseDown, onFocus: this._onFocus }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: this._optionId, className: this._classNames.title, "aria-live": hasFocus ? 'polite' : undefined, "aria-atomic": hasFocus ? true : undefined, "aria-invalid": hasErrorMessage }, // If option is selected render title, otherwise render the placeholder text selectedOptions.length ? onRenderTitle(selectedOptions, this._onRenderTitle) : onRenderPlaceholder(props, this._onRenderPlaceholder)), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this._classNames.caretDownWrapper }, onRenderCaretDown(props, this._onRenderCaretDown))), isOpen && onRenderContainer(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), { onDismiss: this._onDismiss, onRenderItem: onRenderItem }), this._onRenderContainer), hasErrorMessage && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "alert", id: errorMessageId, className: this._classNames.errorMessage }, errorMessage)))); }; DropdownInternal.prototype.focus = function (shouldOpenOnFocus) { if (this._dropDown.current) { this._dropDown.current.focus(); if (shouldOpenOnFocus) { this.setState({ isOpen: true, }); } } }; DropdownInternal.prototype.setSelectedIndex = function (event, index) { var _a = this.props, options = _a.options, selectedKey = _a.selectedKey, selectedKeys = _a.selectedKeys, multiSelect = _a.multiSelect, notifyOnReselect = _a.notifyOnReselect, _b = _a.hoisted.selectedIndices, selectedIndices = _b === void 0 ? [] : _b; var checked = selectedIndices ? selectedIndices.indexOf(index) > -1 : false; var newIndexes = []; index = Math.max(0, Math.min(options.length - 1, index)); // If this is a controlled component then no state change should take place. if (selectedKey !== undefined || selectedKeys !== undefined) { this._onChange(event, options, index, checked, multiSelect); return; } if (!multiSelect && !notifyOnReselect && index === selectedIndices[0]) { return; } else if (multiSelect) { newIndexes = selectedIndices ? this._copyArray(selectedIndices) : []; if (checked) { var position = newIndexes.indexOf(index); if (position > -1) { // unchecked the current one newIndexes.splice(position, 1); } } else { // add the new selected index into the existing one newIndexes.push(index); } } else { // Set the selected option if this is an uncontrolled component newIndexes = [index]; } event.persist(); // Call onChange after state is updated this.props.hoisted.setSelectedIndices(newIndexes); this._onChange(event, options, index, checked, multiSelect); }; DropdownInternal.prototype._copyArray = function (array) { var newArray = []; for (var _i = 0, array_1 = array; _i < array_1.length; _i++) { var element = array_1[_i]; newArray.push(element); } return newArray; }; /** * Finds the next valid Dropdown option and sets the selected index to it. * @param stepValue - Value of how many items the function should traverse. Should be -1 or 1. * @param index - Index of where the search should start * @param selectedIndex - The selectedIndex Dropdown's state * @returns The next valid dropdown option's index */ DropdownInternal.prototype._moveIndex = function (event, stepValue, index, selectedIndex) { var options = this.props.options; // Return selectedIndex if nothing has changed or options is empty if (selectedIndex === index || options.length === 0) { return selectedIndex; } // If the user is pressing the up or down key we want to make // sure that the dropdown cycles through the options without // causing the screen to scroll. In _onDropdownKeyDown // at the very end is a check to see if newIndex !== selectedIndex. // If the index is less than 0 and we set it back to 0, then // newIndex will equal selectedIndex and not stop the action // of the key press happening and vice versa for indexes greater // than or equal to the options length. if (index >= options.length) { index = 0; } else if (index < 0) { index = options.length - 1; } var stepCounter = 0; // If current index is a header or divider, or disabled, increment by step while (options[index].itemType === _Dropdown_types__WEBPACK_IMPORTED_MODULE_5__["DropdownMenuItemType"].Header || options[index].itemType === _Dropdown_types__WEBPACK_IMPORTED_MODULE_5__["DropdownMenuItemType"].Divider || options[index].disabled) { // If stepCounter exceeds length of options, then return selectedIndex (-1) if (stepCounter >= options.length) { return selectedIndex; } // If index + stepValue is out of bounds, wrap around if (index + stepValue < 0) { index = options.length; } else if (index + stepValue >= options.length) { index = -1; } index = index + stepValue; stepCounter++; } this.setSelectedIndex(event, index); return index; }; /** Wrap item list in a FocusZone */ DropdownInternal.prototype._renderFocusableList = function (props) { var _a = props.onRenderList, onRenderList = _a === void 0 ? this._onRenderList : _a, label = props.label, ariaLabel = props.ariaLabel, multiSelect = props.multiSelect; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.dropdownItemsWrapper, onKeyDown: this._onZoneKeyDown, onKeyUp: this._onZoneKeyUp, ref: this._host, tabIndex: 0 }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_7__["FocusZone"], { ref: this._focusZone, direction: _FocusZone__WEBPACK_IMPORTED_MODULE_7__["FocusZoneDirection"].vertical, id: this._listId, className: this._classNames.dropdownItems, role: "listbox", "aria-label": ariaLabel, "aria-labelledby": label && !ariaLabel ? this._labelId : undefined, "aria-multiselectable": multiSelect }, onRenderList(props, this._onRenderList)))); }; DropdownInternal.prototype._renderSeparator = function (item) { var index = item.index, key = item.key; var separatorClassName = item.hidden ? this._classNames.dropdownDividerHidden : this._classNames.dropdownDivider; if (index > 0) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "separator", key: key, className: separatorClassName }); } return null; }; DropdownInternal.prototype._renderHeader = function (item) { var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderOption : _a; var key = item.key, id = item.id; var headerClassName = item.hidden ? this._classNames.dropdownItemHeaderHidden : this._classNames.dropdownItemHeader; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: id, key: key, className: headerClassName }, onRenderOption(item, this._onRenderOption))); }; DropdownInternal.prototype._onItemMouseEnter = function (item, ev) { if (this._shouldIgnoreMouseEvent()) { return; } var targetElement = ev.currentTarget; targetElement.focus(); }; DropdownInternal.prototype._onItemMouseMove = function (item, ev) { var targetElement = ev.currentTarget; this._gotMouseMove = true; if (!this._isScrollIdle || document.activeElement === targetElement) { return; } targetElement.focus(); }; DropdownInternal.prototype._shouldIgnoreMouseEvent = function () { return !this._isScrollIdle || !this._gotMouseMove; }; /** * Returns true if the key for the event is alt (Mac option) or meta (Mac command). */ DropdownInternal.prototype._isAltOrMeta = function (ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].alt || ev.key === 'Meta'; }; /** * We close the menu on key up only if ALL of the following are true: * - Most recent key down was alt or meta (command) * - The alt/meta key down was NOT followed by some other key (such as down/up arrow to * expand/collapse the menu) * - We're not on a Mac (or iOS) * * This is because on Windows, pressing alt moves focus to the application menu bar or similar, * closing any open context menus. There is not a similar behavior on Macs. */ DropdownInternal.prototype._shouldHandleKeyUp = function (ev) { var keyPressIsAltOrMetaAlone = this._lastKeyDownWasAltOrMeta && this._isAltOrMeta(ev); this._lastKeyDownWasAltOrMeta = false; return !!keyPressIsAltOrMetaAlone && !(Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["isMac"])() || Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["isIOS"])()); }; /** * Returns true if dropdown should set to open on focus. * Otherwise, isOpen state should be toggled on click */ DropdownInternal.prototype._shouldOpenOnFocus = function () { var hasFocus = this.state.hasFocus; var openOnKeyboardFocus = this.props.openOnKeyboardFocus; return !this._isFocusedByClick && openOnKeyboardFocus === true && !hasFocus; }; DropdownInternal.defaultProps = { options: [], }; return DropdownInternal; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=Dropdown.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.js ***! \**************************************************************************/ /*! exports provided: Dropdown */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return Dropdown; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Dropdown_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dropdown.base */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.base.js"); /* harmony import */ var _Dropdown_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dropdown.styles */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.styles.js"); var Dropdown = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Dropdown_base__WEBPACK_IMPORTED_MODULE_1__["DropdownBase"], _Dropdown_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'Dropdown', }); Dropdown.displayName = 'Dropdown'; //# sourceMappingURL=Dropdown.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.styles.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.styles.js ***! \*********************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Positioning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib/Positioning.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var _a, _b, _c; var GlobalClassNames = { root: 'ms-Dropdown-container', label: 'ms-Dropdown-label', dropdown: 'ms-Dropdown', title: 'ms-Dropdown-title', caretDownWrapper: 'ms-Dropdown-caretDownWrapper', caretDown: 'ms-Dropdown-caretDown', callout: 'ms-Dropdown-callout', panel: 'ms-Dropdown-panel', dropdownItems: 'ms-Dropdown-items', dropdownItem: 'ms-Dropdown-item', dropdownDivider: 'ms-Dropdown-divider', dropdownOptionText: 'ms-Dropdown-optionText', dropdownItemHeader: 'ms-Dropdown-header', titleIsPlaceHolder: 'ms-Dropdown-titleIsPlaceHolder', titleHasError: 'ms-Dropdown-title--hasError', }; var DROPDOWN_HEIGHT = 32; var DROPDOWN_ITEM_HEIGHT = 36; var highContrastAdjustMixin = (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"] + ", " + _Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelectorWhite"].replace('@media ', '')] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["getHighContrastNoAdjustStyle"])()), _a); var highContrastItemAndTitleStateMixin = { selectors: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])((_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText', }, _b), highContrastAdjustMixin), }; var highContrastBorderState = { selectors: (_c = {}, _c[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { borderColor: 'Highlight', }, _c), }; var MinimumScreenSelector = Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["getScreenSelector"])(0, _Styling__WEBPACK_IMPORTED_MODULE_3__["ScreenWidthMinMedium"]); var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; var theme = props.theme, hasError = props.hasError, hasLabel = props.hasLabel, className = props.className, isOpen = props.isOpen, disabled = props.disabled, required = props.required, isRenderingPlaceholder = props.isRenderingPlaceholder, panelClassName = props.panelClassName, calloutClassName = props.calloutClassName, calloutRenderEdge = props.calloutRenderEdge; if (!theme) { throw new Error('theme is undefined or null in base Dropdown getStyles function.'); } var globalClassnames = Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["getGlobalClassNames"])(GlobalClassNames, theme); var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var rootHoverFocusActiveSelectorNeutralDarkMixin = { color: semanticColors.menuItemTextHovered, }; var rootHoverFocusActiveSelectorNeutralPrimaryMixin = { color: semanticColors.menuItemText, }; var borderColorError = { borderColor: semanticColors.errorText, }; var dropdownItemStyle = [ globalClassnames.dropdownItem, { backgroundColor: 'transparent', boxSizing: 'border-box', cursor: 'pointer', display: 'flex', alignItems: 'center', padding: '0 8px', width: '100%', minHeight: DROPDOWN_ITEM_HEIGHT, lineHeight: 20, height: 0, position: 'relative', border: '1px solid transparent', borderRadius: 0, wordWrap: 'break-word', overflowWrap: 'break-word', textAlign: 'left', '.ms-Button-flexContainer': { width: '100%', }, }, ]; var dropdownHeaderStyle = [ globalClassnames.dropdownItemHeader, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, fonts.medium), { fontWeight: _Styling__WEBPACK_IMPORTED_MODULE_3__["FontWeights"].semibold, color: semanticColors.menuHeader, background: 'none', backgroundColor: 'transparent', border: 'none', height: DROPDOWN_ITEM_HEIGHT, lineHeight: DROPDOWN_ITEM_HEIGHT, cursor: 'default', padding: '0 8px', userSelect: 'none', textAlign: 'left', selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["getHighContrastNoAdjustStyle"])()), _a) }), ]; var selectedItemBackgroundColor = semanticColors.menuItemBackgroundPressed; var itemSelectors = function (isSelected) { var _a, _b; if (isSelected === void 0) { isSelected = false; } return { selectors: (_a = { '&:hover': [ { color: semanticColors.menuItemTextHovered, backgroundColor: !isSelected ? semanticColors.menuItemBackgroundHovered : selectedItemBackgroundColor, }, highContrastItemAndTitleStateMixin, ], '&.is-multi-select:hover': [{ backgroundColor: !isSelected ? 'transparent' : selectedItemBackgroundColor }], '&:active:hover': [ { color: semanticColors.menuItemTextHovered, backgroundColor: !isSelected ? semanticColors.menuItemBackgroundPressed : semanticColors.menuItemBackgroundHovered, }, highContrastItemAndTitleStateMixin, ] }, _a["." + _Utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"] + " &:focus:after"] = (_b = { left: 0, top: 0, bottom: 0, right: 0 }, _b[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { inset: '2px', }, _b), _a[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { border: 'none', }, _a), }; }; var dropdownItemSelected = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], dropdownItemStyle), [ { backgroundColor: selectedItemBackgroundColor, color: semanticColors.menuItemTextHovered, }, itemSelectors(true), highContrastItemAndTitleStateMixin, ]); var dropdownItemDisabled = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], dropdownItemStyle), [ { color: semanticColors.disabledText, cursor: 'default', selectors: (_b = {}, _b[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { color: 'GrayText', border: 'none', }, _b), }, ]); var titleOpenBorderRadius = calloutRenderEdge === _Positioning__WEBPACK_IMPORTED_MODULE_2__["RectangleEdge"].bottom ? effects.roundedCorner2 + " " + effects.roundedCorner2 + " 0 0" : "0 0 " + effects.roundedCorner2 + " " + effects.roundedCorner2; var calloutOpenBorderRadius = calloutRenderEdge === _Positioning__WEBPACK_IMPORTED_MODULE_2__["RectangleEdge"].bottom ? "0 0 " + effects.roundedCorner2 + " " + effects.roundedCorner2 : effects.roundedCorner2 + " " + effects.roundedCorner2 + " 0 0"; return { root: [globalClassnames.root, className], label: globalClassnames.label, dropdown: [ globalClassnames.dropdown, _Styling__WEBPACK_IMPORTED_MODULE_3__["normalize"], fonts.medium, { color: semanticColors.menuItemText, borderColor: semanticColors.focusBorder, position: 'relative', outline: 0, userSelect: 'none', selectors: (_c = {}, _c['&:hover .' + globalClassnames.title] = [ !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin, { borderColor: isOpen ? palette.neutralSecondary : palette.neutralPrimary }, highContrastBorderState, ], _c['&:focus .' + globalClassnames.title] = [ !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin, { selectors: (_d = {}, _d[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { color: 'Highlight' }, _d) }, ], _c['&:focus:after'] = [ { pointerEvents: 'none', content: "''", position: 'absolute', boxSizing: 'border-box', top: '0px', left: '0px', width: '100%', height: '100%', // see https://github.com/microsoft/fluentui/pull/9182 for semantic color disc border: !disabled ? "2px solid " + palette.themePrimary : 'none', borderRadius: '2px', selectors: (_e = {}, _e[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { color: 'Highlight', }, _e), }, ], _c['&:active .' + globalClassnames.title] = [ !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin, { borderColor: palette.themePrimary }, highContrastBorderState, ], _c['&:hover .' + globalClassnames.caretDown] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:focus .' + globalClassnames.caretDown] = [ !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, { selectors: (_f = {}, _f[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { color: 'Highlight' }, _f) }, ], _c['&:active .' + globalClassnames.caretDown] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:hover .' + globalClassnames.titleIsPlaceHolder] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:focus .' + globalClassnames.titleIsPlaceHolder] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:active .' + globalClassnames.titleIsPlaceHolder] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:hover .' + globalClassnames.titleHasError] = borderColorError, _c['&:active .' + globalClassnames.titleHasError] = borderColorError, _c), }, isOpen && 'is-open', disabled && 'is-disabled', required && 'is-required', required && !hasLabel && { selectors: (_g = { ':before': { content: "'*'", color: semanticColors.errorText, position: 'absolute', top: -5, right: -10, } }, _g[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = { selectors: { ':after': { right: -14, // moving the * 4 pixel to right to alleviate border clipping in HC mode. }, }, }, _g), }, ], title: [ globalClassnames.title, _Styling__WEBPACK_IMPORTED_MODULE_3__["normalize"], { backgroundColor: semanticColors.inputBackground, borderWidth: 1, borderStyle: 'solid', borderColor: semanticColors.inputBorder, borderRadius: isOpen ? titleOpenBorderRadius : effects.roundedCorner2, cursor: 'pointer', display: 'block', height: DROPDOWN_HEIGHT, lineHeight: DROPDOWN_HEIGHT - 2, padding: "0 28px 0 8px", position: 'relative', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', }, isRenderingPlaceholder && [globalClassnames.titleIsPlaceHolder, { color: semanticColors.inputPlaceholderText }], hasError && [globalClassnames.titleHasError, borderColorError], disabled && { backgroundColor: semanticColors.disabledBackground, border: 'none', color: semanticColors.disabledText, cursor: 'default', selectors: (_h = {}, _h[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ border: '1px solid GrayText', color: 'GrayText', backgroundColor: 'Window' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["getHighContrastNoAdjustStyle"])()), _h), }, ], caretDownWrapper: [ globalClassnames.caretDownWrapper, { height: DROPDOWN_HEIGHT, lineHeight: DROPDOWN_HEIGHT - 2, paddingTop: 1, position: 'absolute', right: 8, top: 0, }, !disabled && { cursor: 'pointer', }, ], caretDown: [ globalClassnames.caretDown, { color: palette.neutralSecondary, fontSize: fonts.small.fontSize, pointerEvents: 'none' }, disabled && { color: semanticColors.disabledText, selectors: (_j = {}, _j[_Styling__WEBPACK_IMPORTED_MODULE_3__["HighContrastSelector"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: 'GrayText' }, Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["getHighContrastNoAdjustStyle"])()), _j), }, ], errorMessage: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ color: semanticColors.errorText }, theme.fonts.small), { paddingTop: 5 }), callout: [ globalClassnames.callout, { boxShadow: effects.elevation8, borderRadius: calloutOpenBorderRadius, selectors: (_k = {}, _k['.ms-Callout-main'] = { borderRadius: calloutOpenBorderRadius }, _k), }, calloutClassName, ], dropdownItemsWrapper: { selectors: { '&:focus': { outline: 0 } } }, dropdownItems: [globalClassnames.dropdownItems, { display: 'block' }], dropdownItem: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], dropdownItemStyle), [itemSelectors()]), dropdownItemSelected: dropdownItemSelected, dropdownItemDisabled: dropdownItemDisabled, dropdownItemSelectedAndDisabled: [dropdownItemSelected, dropdownItemDisabled, { backgroundColor: 'transparent' }], dropdownItemHidden: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], dropdownItemStyle), [{ display: 'none' }]), dropdownDivider: [globalClassnames.dropdownDivider, { height: 1, backgroundColor: semanticColors.bodyDivider }], dropdownDividerHidden: [globalClassnames.dropdownDivider, { display: 'none' }], dropdownOptionText: [ globalClassnames.dropdownOptionText, { overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', minWidth: 0, maxWidth: '100%', wordWrap: 'break-word', overflowWrap: 'break-word', margin: '1px', }, ], dropdownItemHeader: dropdownHeaderStyle, dropdownItemHeaderHidden: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], dropdownHeaderStyle), [{ display: 'none' }]), subComponentStyles: { label: { root: { display: 'inline-block' } }, multiSelectItem: { root: { padding: 0, }, label: { alignSelf: 'stretch', padding: '0 8px', width: '100%', }, input: { selectors: (_l = {}, _l["." + _Utilities__WEBPACK_IMPORTED_MODULE_1__["IsFocusVisibleClassName"] + " &:focus + label::before"] = { outlineOffset: '0px', }, _l), }, }, panel: { root: [panelClassName], main: { selectors: (_m = {}, // In case of extra small screen sizes _m[MinimumScreenSelector] = { // panelWidth xs width: 272, }, _m), }, contentInner: { padding: '0 0 20px' }, }, }, }; }; //# sourceMappingURL=Dropdown.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.types.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.types.js ***! \********************************************************************************/ /*! exports provided: DropdownMenuItemType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _SelectableOption__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../SelectableOption */ "./node_modules/@fluentui/react/lib/SelectableOption.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMenuItemType", function() { return _SelectableOption__WEBPACK_IMPORTED_MODULE_0__["SelectableOptionMenuItemType"]; }); //# sourceMappingURL=Dropdown.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dropdown/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dropdown/index.js ***! \***********************************************************************/ /*! exports provided: Dropdown, DropdownBase, DropdownMenuItemType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_0__["Dropdown"]; }); /* harmony import */ var _Dropdown_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dropdown.base */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownBase", function() { return _Dropdown_base__WEBPACK_IMPORTED_MODULE_1__["DropdownBase"]; }); /* harmony import */ var _Dropdown_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dropdown.types */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownMenuItemType", function() { return _Dropdown_types__WEBPACK_IMPORTED_MODULE_2__["DropdownMenuItemType"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Dropdown/utilities/DropdownSizePosCache.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Dropdown/utilities/DropdownSizePosCache.js ***! \************************************************************************************************/ /*! exports provided: DropdownSizePosCache */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownSizePosCache", function() { return DropdownSizePosCache; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Dropdown_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Dropdown.types */ "./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.types.js"); /** * A utility class to cache size and position in cache. * * Dropdown options has non-selectable display types. It is therefore not cheap to determine * the total number of actual selectable options as well as the position an option is in the * list of options - O(n) cost for each lookup. * * Given that we potentially have to make this determination on every single render pass, this * cache should provide a little bit of relief. */ var DropdownSizePosCache = /** @class */ (function () { function DropdownSizePosCache() { this._size = 0; } /** * Invalidates the cache and recalculate the size of selectable options. */ DropdownSizePosCache.prototype.updateOptions = function (options) { var displayOnlyOptionsCache = []; var notSelectableOptionsCache = []; var size = 0; for (var i = 0; i < options.length; i++) { var _a = options[i], itemType = _a.itemType, hidden = _a.hidden; if (itemType === _Dropdown_types__WEBPACK_IMPORTED_MODULE_1__["DropdownMenuItemType"].Divider || itemType === _Dropdown_types__WEBPACK_IMPORTED_MODULE_1__["DropdownMenuItemType"].Header) { displayOnlyOptionsCache.push(i); notSelectableOptionsCache.push(i); } else if (hidden) { notSelectableOptionsCache.push(i); } else { size++; } } this._size = size; this._displayOnlyOptionsCache = displayOnlyOptionsCache; this._notSelectableOptionsCache = notSelectableOptionsCache; this._cachedOptions = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArray"])([], options); }; Object.defineProperty(DropdownSizePosCache.prototype, "optionSetSize", { /** * The size of all the selectable options. */ get: function () { return this._size; }, enumerable: false, configurable: true }); Object.defineProperty(DropdownSizePosCache.prototype, "cachedOptions", { /** * The chached options array. */ get: function () { return this._cachedOptions; }, enumerable: false, configurable: true }); /** * Returns the position of this option element relative to the full set of selectable option elements. * Note: the first selectable element is position 1 in the set. * @param index The raw index of the option element. */ DropdownSizePosCache.prototype.positionInSet = function (index) { if (index === undefined) { return undefined; } // we could possibly memoize this too but this should be good enough, most of the time (the expectation is that // when you have a lot of options, the selectable options will heavily dominate over the non-selectable options. var offset = 0; while (index > this._notSelectableOptionsCache[offset]) { offset++; } if (this._displayOnlyOptionsCache[offset] === index) { throw new Error("Unexpected: Option at index " + index + " is not a selectable element."); } if (this._notSelectableOptionsCache[offset] === index) { return undefined; } return index - offset + 1; }; return DropdownSizePosCache; }()); //# sourceMappingURL=DropdownSizePosCache.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.js ***! \******************************************************************************************/ /*! exports provided: BaseExtendedPicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseExtendedPicker", function() { return BaseExtendedPicker; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Autofill__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Autofill */ "./node_modules/@fluentui/react/lib/Autofill.js"); /* harmony import */ var _BaseExtendedPicker_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseExtendedPicker.scss */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.scss.js"); /* harmony import */ var _FocusZone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib/FocusZone.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); var styles = _BaseExtendedPicker_scss__WEBPACK_IMPORTED_MODULE_4__; var BaseExtendedPicker = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BaseExtendedPicker, _super); function BaseExtendedPicker(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; _this.floatingPicker = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.selectedItemsList = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.input = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.onSelectionChange = function () { _this.forceUpdate(); }; _this.onInputChange = function (value, composing) { // We don't want to update the picker's suggestions when the input is still being composed if (!composing) { _this.setState({ queryString: value }); if (_this.floatingPicker.current) { _this.floatingPicker.current.onQueryStringChanged(value); } } }; _this.onInputFocus = function (ev) { if (_this.selectedItemsList.current) { _this.selectedItemsList.current.unselectAll(); } if (_this.props.inputProps && _this.props.inputProps.onFocus) { _this.props.inputProps.onFocus(ev); } }; _this.onInputClick = function (ev) { if (_this.selectedItemsList.current) { _this.selectedItemsList.current.unselectAll(); } if (_this.floatingPicker.current && _this.inputElement) { // Update the value if the input value is empty or is different than the current inputText from the floatingPicker var shoudUpdateValue = _this.inputElement.value === '' || _this.inputElement.value !== _this.floatingPicker.current.inputText; _this.floatingPicker.current.showPicker(shoudUpdateValue); } }; // This is protected because we may expect the backspace key to work differently in a different kind of picker. // This lets the subclass override it and provide it's own onBackspace. For an example see the BasePickerListBelow _this.onBackspace = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which !== _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].backspace) { return; } if (_this.selectedItemsList.current && _this.items.length) { if (_this.input.current && !_this.input.current.isValueSelected && _this.input.current.inputElement === ev.currentTarget.ownerDocument.activeElement && _this.input.current.cursorLocation === 0) { if (_this.floatingPicker.current) { _this.floatingPicker.current.hidePicker(); } ev.preventDefault(); _this.selectedItemsList.current.removeItemAt(_this.items.length - 1); _this._onSelectedItemsChanged(); } else if (_this.selectedItemsList.current.hasSelectedItems()) { if (_this.floatingPicker.current) { _this.floatingPicker.current.hidePicker(); } ev.preventDefault(); _this.selectedItemsList.current.removeSelectedItems(); _this._onSelectedItemsChanged(); } } }; _this.onCopy = function (ev) { if (_this.selectedItemsList.current) { // Pass it down into the selected items list _this.selectedItemsList.current.onCopy(ev); } }; _this.onPaste = function (ev) { if (_this.props.onPaste) { var inputText = ev.clipboardData.getData('Text'); ev.preventDefault(); _this.props.onPaste(inputText); } }; _this._onSuggestionSelected = function (item) { var currentRenderedQueryString = _this.props.currentRenderedQueryString; var queryString = _this.state.queryString; if (currentRenderedQueryString === undefined || currentRenderedQueryString === queryString) { var processedItem = _this.props.onItemSelected ? _this.props.onItemSelected(item) : item; if (processedItem === null) { return; } var processedItemObject = processedItem; var processedItemPromiseLike = processedItem; var newItem_1; if (processedItemPromiseLike && processedItemPromiseLike.then) { processedItemPromiseLike.then(function (resolvedProcessedItem) { newItem_1 = resolvedProcessedItem; _this._addProcessedItem(newItem_1); }); } else { newItem_1 = processedItemObject; _this._addProcessedItem(newItem_1); } } }; _this._onSelectedItemsChanged = function () { _this.focus(); }; /** * The floating picker is the source of truth for if the menu has been opened or not. * * Because this isn't tracked inside the state of this component, we need to * force an update here to keep the rendered output that depends on the picker being open * in sync with the state * * Called when the suggestions is shown or closed */ _this._onSuggestionsShownOrHidden = function () { _this.forceUpdate(); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this.selection = new _Selection__WEBPACK_IMPORTED_MODULE_6__["Selection"]({ onSelectionChanged: function () { return _this.onSelectionChange(); } }); _this.state = { queryString: '', }; return _this; } Object.defineProperty(BaseExtendedPicker.prototype, "items", { get: function () { var _a, _b, _c, _d; return (_d = (_c = (_a = this.props.selectedItems) !== null && _a !== void 0 ? _a : (_b = this.selectedItemsList.current) === null || _b === void 0 ? void 0 : _b.items) !== null && _c !== void 0 ? _c : this.props.defaultSelectedItems) !== null && _d !== void 0 ? _d : null; }, enumerable: false, configurable: true }); BaseExtendedPicker.prototype.componentDidMount = function () { this.forceUpdate(); }; BaseExtendedPicker.prototype.focus = function () { if (this.input.current) { this.input.current.focus(); } }; BaseExtendedPicker.prototype.clearInput = function () { if (this.input.current) { this.input.current.clear(); } }; Object.defineProperty(BaseExtendedPicker.prototype, "inputElement", { get: function () { return this.input.current && this.input.current.inputElement; }, enumerable: false, configurable: true }); Object.defineProperty(BaseExtendedPicker.prototype, "highlightedItems", { get: function () { return this.selectedItemsList.current ? this.selectedItemsList.current.highlightedItems() : []; }, enumerable: false, configurable: true }); BaseExtendedPicker.prototype.render = function () { var _a = this.props, className = _a.className, inputProps = _a.inputProps, disabled = _a.disabled, focusZoneProps = _a.focusZoneProps; var activeDescendant = this.floatingPicker.current && this.floatingPicker.current.currentSelectedSuggestionIndex !== -1 ? 'sug-' + this.floatingPicker.current.currentSelectedSuggestionIndex : undefined; var isExpanded = this.floatingPicker.current ? this.floatingPicker.current.isSuggestionsShown : false; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this.root, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-BasePicker ms-BaseExtendedPicker', className ? className : ''), onKeyDown: this.onBackspace, onCopy: this.onCopy }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FocusZone__WEBPACK_IMPORTED_MODULE_5__["FocusZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ direction: _FocusZone__WEBPACK_IMPORTED_MODULE_5__["FocusZoneDirection"].bidirectional }, focusZoneProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Selection__WEBPACK_IMPORTED_MODULE_6__["SelectionZone"], { selection: this.selection, selectionMode: _Selection__WEBPACK_IMPORTED_MODULE_6__["SelectionMode"].multiple }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-BasePicker-text', styles.pickerText), role: 'list' }, this.props.headerComponent, this.renderSelectedItemsList(), this.canAddItems() && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Autofill__WEBPACK_IMPORTED_MODULE_3__["Autofill"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, inputProps, { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-BasePicker-input', styles.pickerInput), ref: this.input, onFocus: this.onInputFocus, onClick: this.onInputClick, onInputValueChange: this.onInputChange, "aria-activedescendant": activeDescendant, "aria-owns": isExpanded ? 'suggestion-list' : undefined, "aria-expanded": isExpanded, "aria-haspopup": "true", role: "combobox", disabled: disabled, onPaste: this.onPaste })))))), this.renderFloatingPicker())); }; Object.defineProperty(BaseExtendedPicker.prototype, "floatingPickerProps", { get: function () { return this.props.floatingPickerProps; }, enumerable: false, configurable: true }); Object.defineProperty(BaseExtendedPicker.prototype, "selectedItemsListProps", { get: function () { return this.props.selectedItemsListProps; }, enumerable: false, configurable: true }); BaseExtendedPicker.prototype.canAddItems = function () { var itemLimit = this.props.itemLimit; return itemLimit === undefined || this.items.length < itemLimit; }; BaseExtendedPicker.prototype.renderFloatingPicker = function () { var FloatingPicker = this.props.onRenderFloatingPicker; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](FloatingPicker, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ componentRef: this.floatingPicker, onChange: this._onSuggestionSelected, onSuggestionsHidden: this._onSuggestionsShownOrHidden, onSuggestionsShown: this._onSuggestionsShownOrHidden, inputElement: this.input.current ? this.input.current.inputElement : undefined, selectedItems: this.items, suggestionItems: this.props.suggestionItems ? this.props.suggestionItems : undefined }, this.floatingPickerProps))); }; BaseExtendedPicker.prototype.renderSelectedItemsList = function () { var SelectedItems = this.props.onRenderSelectedItems; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SelectedItems, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ componentRef: this.selectedItemsList, selection: this.selection, selectedItems: this.props.selectedItems ? this.props.selectedItems : undefined, onItemsDeleted: this.props.selectedItems ? this.props.onItemsRemoved : undefined }, this.selectedItemsListProps))); }; BaseExtendedPicker.prototype._addProcessedItem = function (newItem) { // If this is a controlled component, call the on item selected callback // Otherwise add it to the selectedItemsList if (this.props.onItemAdded) { this.props.onItemAdded(newItem); } if (this.selectedItemsList.current) { this.selectedItemsList.current.addItems([newItem]); } if (this.input.current) { this.input.current.clear(); } if (this.floatingPicker.current) { this.floatingPicker.current.hidePicker(); } this.focus(); }; return BaseExtendedPicker; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=BaseExtendedPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.scss.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.scss.js ***! \***********************************************************************************************/ /*! exports provided: pickerText, pickerInput */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickerText", function() { return pickerText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pickerInput", function() { return pickerInput; }); /* harmony import */ var _microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); /* eslint-disable */ Object(_microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__["loadStyles"])([{ "rawString": ".pickerText_9f838726{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid " }, { "theme": "neutralTertiary", "defaultValue": "#a19f9d" }, { "rawString": ";min-width:180px;padding:1px;min-height:32px}.pickerText_9f838726:hover{border-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.pickerInput_9f838726{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_9f838726::-ms-clear{display:none}" }]); var pickerText = "pickerText_9f838726"; var pickerInput = "pickerInput_9f838726"; //# sourceMappingURL=BaseExtendedPicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.types.js ***! \************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=BaseExtendedPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.js ***! \*********************************************************************************************************/ /*! exports provided: BaseExtendedPeoplePicker, ExtendedPeoplePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseExtendedPeoplePicker", function() { return BaseExtendedPeoplePicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedPeoplePicker", function() { return ExtendedPeoplePicker; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _ExtendedPeoplePicker_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExtendedPeoplePicker.scss */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.scss.js"); /* harmony import */ var _BaseExtendedPicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseExtendedPicker */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.js"); /** * {@docCategory ExtendedPeoplePicker} */ var BaseExtendedPeoplePicker = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BaseExtendedPeoplePicker, _super); function BaseExtendedPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return BaseExtendedPeoplePicker; }(_BaseExtendedPicker__WEBPACK_IMPORTED_MODULE_2__["BaseExtendedPicker"])); /** * {@docCategory ExtendedPeoplePicker} */ var ExtendedPeoplePicker = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ExtendedPeoplePicker, _super); function ExtendedPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return ExtendedPeoplePicker; }(BaseExtendedPeoplePicker)); //# sourceMappingURL=ExtendedPeoplePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.scss.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.scss.js ***! \**************************************************************************************************************/ /*! exports provided: resultContent, resultItem, peoplePickerPersona, peoplePicker, peoplePickerPersonaContent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resultContent", function() { return resultContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resultItem", function() { return resultItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "peoplePickerPersona", function() { return peoplePickerPersona; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "peoplePicker", function() { return peoplePicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "peoplePickerPersonaContent", function() { return peoplePickerPersonaContent; }); /* harmony import */ var _microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); /* eslint-disable */ Object(_microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__["loadStyles"])([{ "rawString": ".resultContent_4cc31f3f{display:table-row}.resultContent_4cc31f3f .resultItem_4cc31f3f{display:table-cell;vertical-align:bottom}.peoplePickerPersona_4cc31f3f{width:180px}.peoplePickerPersona_4cc31f3f .ms-Persona-details{width:100%}.peoplePicker_4cc31f3f .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_4cc31f3f{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}" }]); var resultContent = "resultContent_4cc31f3f"; var resultItem = "resultItem_4cc31f3f"; var peoplePickerPersona = "peoplePickerPersona_4cc31f3f"; var peoplePicker = "peoplePicker_4cc31f3f"; var peoplePickerPersonaContent = "peoplePickerPersonaContent_4cc31f3f"; //# sourceMappingURL=ExtendedPeoplePicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/ExtendedPicker/index.js ***! \*****************************************************************************/ /*! exports provided: BaseExtendedPicker, BaseExtendedPeoplePicker, ExtendedPeoplePicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _BaseExtendedPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseExtendedPicker */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseExtendedPicker", function() { return _BaseExtendedPicker__WEBPACK_IMPORTED_MODULE_0__["BaseExtendedPicker"]; }); /* harmony import */ var _BaseExtendedPicker_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseExtendedPicker.types */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/BaseExtendedPicker.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _PeoplePicker_ExtendedPeoplePicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PeoplePicker/ExtendedPeoplePicker */ "./node_modules/@fluentui/react/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseExtendedPeoplePicker", function() { return _PeoplePicker_ExtendedPeoplePicker__WEBPACK_IMPORTED_MODULE_2__["BaseExtendedPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedPeoplePicker", function() { return _PeoplePicker_ExtendedPeoplePicker__WEBPACK_IMPORTED_MODULE_2__["ExtendedPeoplePicker"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js ***! \***************************************************************************/ /*! exports provided: FabricBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FabricBase", function() { return FabricBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var getFabricTheme = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, isRTL) { return Object(_Styling__WEBPACK_IMPORTED_MODULE_3__["createTheme"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, theme), { rtl: isRTL })); }); var getDir = function (_a) { var theme = _a.theme, dir = _a.dir; var contextDir = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(theme) ? 'rtl' : 'ltr'; var pageDir = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])() ? 'rtl' : 'ltr'; var componentDir = dir ? dir : contextDir; return { // If Fabric dir !== contextDir // Or If contextDir !== pageDir // Then we need to set dir of the Fabric root rootDir: componentDir !== contextDir || componentDir !== pageDir ? componentDir : dir, // If dir !== contextDir || pageDir // then set contextual theme around content needsTheme: componentDir !== contextDir, }; }; var FabricBase = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (props, ref) { var className = props.className, theme = props.theme, applyTheme = props.applyTheme, applyThemeToBody = props.applyThemeToBody, styles = props.styles; var classNames = getClassNames(styles, { theme: theme, applyTheme: applyTheme, className: className, }); var rootElement = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); useApplyThemeToBody(applyThemeToBody, classNames, rootElement); return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, useRenderedContent(props, classNames, rootElement, ref)); }); FabricBase.displayName = 'FabricBase'; function useRenderedContent(props, _a, rootElement, ref) { var root = _a.root; var _b = props.as, Root = _b === void 0 ? 'div' : _b, dir = props.dir, theme = props.theme; var divProps = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"], ['dir']); var _c = getDir(props), rootDir = _c.rootDir, needsTheme = _c.needsTheme; var renderedContent = (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Utilities__WEBPACK_IMPORTED_MODULE_2__["FocusRectsProvider"], { providerRef: rootElement }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](Root, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ dir: rootDir }, divProps, { className: root, ref: Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_4__["useMergedRefs"])(rootElement, ref) })))); // Create the contextual theme if component direction does not match parent direction. if (needsTheme) { // Disabling ThemeProvider here because theme doesn't need to be re-provided by ThemeProvider if dir has changed. renderedContent = ( // eslint-disable-next-line deprecation/deprecation react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Utilities__WEBPACK_IMPORTED_MODULE_2__["Customizer"], { settings: { theme: getFabricTheme(theme, dir === 'rtl') } }, renderedContent)); } return renderedContent; } function useApplyThemeToBody(applyThemeToBody, _a, rootElement) { var bodyThemed = _a.bodyThemed; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (applyThemeToBody) { var currentDoc_1 = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getDocument"])(rootElement.current); if (currentDoc_1) { currentDoc_1.body.classList.add(bodyThemed); return function () { currentDoc_1.body.classList.remove(bodyThemed); }; } } }, [bodyThemed, applyThemeToBody, rootElement]); return rootElement; } //# sourceMappingURL=Fabric.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Fabric/Fabric.js ***! \**********************************************************************/ /*! exports provided: Fabric */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fabric", function() { return Fabric; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Fabric_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Fabric.base */ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js"); /* harmony import */ var _Fabric_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fabric.styles */ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.styles.js"); /** * @deprecated This component is deprecated as of `@fluentui/react` version 8. Use `ThemeProvider` instead. */ var Fabric = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Fabric_base__WEBPACK_IMPORTED_MODULE_1__["FabricBase"], _Fabric_styles__WEBPACK_IMPORTED_MODULE_2__["getStyles"], undefined, { scope: 'Fabric', }); //# sourceMappingURL=Fabric.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.styles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Fabric/Fabric.styles.js ***! \*****************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var inheritFont = { fontFamily: 'inherit' }; var GlobalClassNames = { root: 'ms-Fabric', bodyThemed: 'ms-Fabric-bodyThemed', }; var getStyles = function (props) { var applyTheme = props.applyTheme, className = props.className, preventBlanketFontInheritance = props.preventBlanketFontInheritance, theme = props.theme; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.medium, { color: theme.palette.neutralPrimary, }, !preventBlanketFontInheritance && { '& button': inheritFont, '& input': inheritFont, '& textarea': inheritFont, }, // apply theme to only if applyTheme is true applyTheme && { color: theme.semanticColors.bodyText, backgroundColor: theme.semanticColors.bodyBackground, }, className, ], bodyThemed: [ { backgroundColor: theme.semanticColors.bodyBackground, }, ], }; }; //# sourceMappingURL=Fabric.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.types.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Fabric/Fabric.types.js ***! \****************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Fabric.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Fabric/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Fabric/index.js ***! \*********************************************************************/ /*! exports provided: Fabric, FabricBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Fabric__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Fabric */ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Fabric", function() { return _Fabric__WEBPACK_IMPORTED_MODULE_0__["Fabric"]; }); /* harmony import */ var _Fabric_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Fabric.base */ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FabricBase", function() { return _Fabric_base__WEBPACK_IMPORTED_MODULE_1__["FabricBase"]; }); /* harmony import */ var _Fabric_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fabric.types */ "./node_modules/@fluentui/react/lib/components/Fabric/Fabric.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.base.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/Facepile.base.js ***! \*******************************************************************************/ /*! exports provided: FacepileBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FacepileBase", function() { return FacepileBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Facepile_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Facepile.types */ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.types.js"); /* harmony import */ var _FacepileButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FacepileButton */ "./node_modules/@fluentui/react/lib/components/Facepile/FacepileButton.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _Persona__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Persona */ "./node_modules/@fluentui/react/lib/Persona.js"); /* harmony import */ var _PersonaCoin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../PersonaCoin */ "./node_modules/@fluentui/react/lib/PersonaCoin.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); /** * FacePile with no default styles. * [Use the `styles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Component-Styling) */ var FacepileBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FacepileBase, _super); function FacepileBase(props) { var _this = _super.call(this, props) || this; _this._classNames = getClassNames(_this.props.styles, { theme: _this.props.theme, className: _this.props.className, }); _this._getPersonaControl = function (persona) { var _a = _this.props, getPersonaProps = _a.getPersonaProps, personaSize = _a.personaSize; var personaStyles = { details: { flex: '1 0 auto', }, }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Persona__WEBPACK_IMPORTED_MODULE_6__["Persona"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ imageInitials: persona.imageInitials, imageUrl: persona.imageUrl, initialsColor: persona.initialsColor, allowPhoneInitials: persona.allowPhoneInitials, text: persona.personaName, size: personaSize }, (getPersonaProps ? getPersonaProps(persona) : null), { styles: personaStyles }))); }; _this._getPersonaCoinControl = function (persona) { var _a = _this.props, getPersonaProps = _a.getPersonaProps, personaSize = _a.personaSize; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaCoin"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ imageInitials: persona.imageInitials, imageUrl: persona.imageUrl, initialsColor: persona.initialsColor, allowPhoneInitials: persona.allowPhoneInitials, text: persona.personaName, size: personaSize }, (getPersonaProps ? getPersonaProps(persona) : null)))); }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this._ariaDescriptionId = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])(); return _this; } FacepileBase.prototype.render = function () { var overflowButtonProps = this.props.overflowButtonProps; var _a = this.props, chevronButtonProps = _a.chevronButtonProps, // eslint-disable-line deprecation/deprecation maxDisplayablePersonas = _a.maxDisplayablePersonas, personas = _a.personas, overflowPersonas = _a.overflowPersonas, showAddButton = _a.showAddButton, ariaLabel = _a.ariaLabel, _b = _a.showTooltip, showTooltip = _b === void 0 ? true : _b; var _classNames = this._classNames; // Add a check to make sure maxDisplayalePersonas is defined to cover the edge case of it being 0. var numPersonasToShow = typeof maxDisplayablePersonas === 'number' ? Math.min(personas.length, maxDisplayablePersonas) : personas.length; // Added for deprecating chevronButtonProps. Can remove after v1.0 if (chevronButtonProps && !overflowButtonProps) { overflowButtonProps = chevronButtonProps; } var hasOverflowPersonas = overflowPersonas && overflowPersonas.length > 0; var personasPrimary = hasOverflowPersonas ? personas : personas.slice(0, numPersonasToShow); var personasOverflow = (hasOverflowPersonas ? overflowPersonas : personas.slice(numPersonasToShow)) || []; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _classNames.root }, this.onRenderAriaDescription(), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _classNames.itemContainer }, showAddButton ? this._getAddNewElement() : null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", { className: _classNames.members, "aria-label": ariaLabel }, this._onRenderVisiblePersonas(personasPrimary, personasOverflow.length === 0 && personas.length === 1, showTooltip)), overflowButtonProps ? this._getOverflowElement(personasOverflow) : null))); }; FacepileBase.prototype.onRenderAriaDescription = function () { var ariaDescription = this.props.ariaDescription; var _classNames = this._classNames; // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan, // otherwise it will be assigned to descriptionSpan. return (ariaDescription && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _classNames.screenReaderOnly, id: this._ariaDescriptionId }, ariaDescription))); }; FacepileBase.prototype._onRenderVisiblePersonas = function (personas, singlePersona, showTooltip) { var _this = this; var _a = this.props, _b = _a.onRenderPersona, onRenderPersona = _b === void 0 ? this._getPersonaControl : _b, _c = _a.onRenderPersonaCoin, onRenderPersonaCoin = _c === void 0 ? this._getPersonaCoinControl : _c, onRenderPersonaWrapper = _a.onRenderPersonaWrapper; return personas.map(function (persona, index) { var personaControl = singlePersona ? onRenderPersona(persona, _this._getPersonaControl) : onRenderPersonaCoin(persona, _this._getPersonaCoinControl); var defaultPersonaRender = persona.onClick ? function () { return _this._getElementWithOnClickEvent(personaControl, persona, showTooltip, index); } : function () { return _this._getElementWithoutOnClickEvent(personaControl, persona, showTooltip, index); }; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { key: (singlePersona ? 'persona' : 'personaCoin') + "-" + index, className: _this._classNames.member }, onRenderPersonaWrapper ? onRenderPersonaWrapper(persona, defaultPersonaRender) : defaultPersonaRender())); }); }; FacepileBase.prototype._getElementWithOnClickEvent = function (personaControl, persona, showTooltip, index) { var keytipProps = persona.keytipProps; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FacepileButton__WEBPACK_IMPORTED_MODULE_4__["FacepileButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(persona, _Utilities__WEBPACK_IMPORTED_MODULE_2__["buttonProperties"]), this._getElementProps(persona, showTooltip, index), { keytipProps: keytipProps, // eslint-disable-next-line react/jsx-no-bind onClick: this._onPersonaClick.bind(this, persona) }), personaControl)); }; FacepileBase.prototype._getElementWithoutOnClickEvent = function (personaControl, persona, showTooltip, index) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(persona, _Utilities__WEBPACK_IMPORTED_MODULE_2__["buttonProperties"]), this._getElementProps(persona, showTooltip, index)), personaControl)); }; FacepileBase.prototype._getElementProps = function (persona, showTooltip, index) { var _classNames = this._classNames; return { key: (persona.imageUrl ? 'i' : '') + index, 'data-is-focusable': true, className: _classNames.itemButton, title: showTooltip ? persona.personaName : undefined, onMouseMove: this._onPersonaMouseMove.bind(this, persona), onMouseOut: this._onPersonaMouseOut.bind(this, persona), }; }; FacepileBase.prototype._getOverflowElement = function (personasOverflow) { switch (this.props.overflowButtonType) { case _Facepile_types__WEBPACK_IMPORTED_MODULE_3__["OverflowButtonType"].descriptive: return this._getDescriptiveOverflowElement(personasOverflow); case _Facepile_types__WEBPACK_IMPORTED_MODULE_3__["OverflowButtonType"].downArrow: return this._getIconElement('ChevronDown'); case _Facepile_types__WEBPACK_IMPORTED_MODULE_3__["OverflowButtonType"].more: return this._getIconElement('More'); default: return null; } }; FacepileBase.prototype._getDescriptiveOverflowElement = function (personasOverflow) { var personaSize = this.props.personaSize; if (!personasOverflow || personasOverflow.length < 1) { return null; } var personaNames = personasOverflow.map(function (p) { return p.personaName; }).join(', '); var overflowButtonProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ title: personaNames }, this.props.overflowButtonProps); var numPersonasNotPictured = Math.max(personasOverflow.length, 0); var _classNames = this._classNames; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FacepileButton__WEBPACK_IMPORTED_MODULE_4__["FacepileButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, overflowButtonProps, { ariaDescription: overflowButtonProps.title, className: _classNames.descriptiveOverflowButton }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaCoin"], { size: personaSize, onRenderInitials: this._renderInitialsNotPictured(numPersonasNotPictured), initialsColor: _PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaInitialsColor"].transparent }))); }; FacepileBase.prototype._getIconElement = function (icon) { var _a = this.props, overflowButtonProps = _a.overflowButtonProps, personaSize = _a.personaSize; var overflowInitialsIcon = true; var _classNames = this._classNames; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FacepileButton__WEBPACK_IMPORTED_MODULE_4__["FacepileButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, overflowButtonProps, { className: _classNames.overflowButton }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaCoin"], { size: personaSize, onRenderInitials: this._renderInitials(icon, overflowInitialsIcon), initialsColor: _PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaInitialsColor"].transparent }))); }; FacepileBase.prototype._getAddNewElement = function () { var _a = this.props, addButtonProps = _a.addButtonProps, personaSize = _a.personaSize; var _classNames = this._classNames; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_FacepileButton__WEBPACK_IMPORTED_MODULE_4__["FacepileButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, addButtonProps, { className: _classNames.addButton }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaCoin"], { size: personaSize, onRenderInitials: this._renderInitials('AddFriend') }))); }; FacepileBase.prototype._onPersonaClick = function (persona, ev) { persona.onClick(ev, persona); ev.preventDefault(); ev.stopPropagation(); }; FacepileBase.prototype._onPersonaMouseMove = function (persona, ev) { if (persona.onMouseMove) { persona.onMouseMove(ev, persona); } }; FacepileBase.prototype._onPersonaMouseOut = function (persona, ev) { if (persona.onMouseOut) { persona.onMouseOut(ev, persona); } }; FacepileBase.prototype._renderInitials = function (iconName, overflowButton) { var _classNames = this._classNames; return function () { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { iconName: iconName, className: overflowButton ? _classNames.overflowInitialsIcon : '' }); }; }; FacepileBase.prototype._renderInitialsNotPictured = function (numPersonasNotPictured) { var _classNames = this._classNames; return function () { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _classNames.overflowInitialsIcon }, numPersonasNotPictured < 100 ? '+' + numPersonasNotPictured : '99+')); }; }; FacepileBase.defaultProps = { maxDisplayablePersonas: 5, personas: [], overflowPersonas: [], personaSize: _PersonaCoin__WEBPACK_IMPORTED_MODULE_7__["PersonaSize"].size32, }; return FacepileBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=Facepile.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/Facepile.js ***! \**************************************************************************/ /*! exports provided: Facepile */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Facepile", function() { return Facepile; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Facepile_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Facepile.base */ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.base.js"); /* harmony import */ var _Facepile_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Facepile.styles */ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.styles.js"); /** * The Facepile shows a list of faces or initials in a horizontal lockup. Each circle represents a person. */ var Facepile = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_Facepile_base__WEBPACK_IMPORTED_MODULE_1__["FacepileBase"], _Facepile_styles__WEBPACK_IMPORTED_MODULE_2__["styles"], undefined, { scope: 'Facepile', }); //# sourceMappingURL=Facepile.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.styles.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/Facepile.styles.js ***! \*********************************************************************************/ /*! exports provided: styles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-Facepile', addButton: 'ms-Facepile-addButton ms-Facepile-itemButton', descriptiveOverflowButton: 'ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton', itemButton: 'ms-Facepile-itemButton ms-Facepile-person', itemContainer: 'ms-Facepile-itemContainer', members: 'ms-Facepile-members', member: 'ms-Facepile-member', overflowButton: 'ms-Facepile-overflowButton ms-Facepile-itemButton', }; var styles = function (props) { var _a; var className = props.className, theme = props.theme, _b = props.spacingAroundItemButton, spacingAroundItemButton = _b === void 0 ? 2 : _b; var palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); var ItemButtonStyles = { textAlign: 'center', padding: 0, borderRadius: '50%', verticalAlign: 'top', display: 'inline', backgroundColor: 'transparent', border: 'none', selectors: { '&::-moz-focus-inner': { padding: 0, border: 0, }, }, }; return { root: [ classNames.root, theme.fonts.medium, { width: 'auto', }, className, ], addButton: [ classNames.addButton, Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme, { inset: -1 }), ItemButtonStyles, { fontSize: fonts.medium.fontSize, color: palette.white, backgroundColor: palette.themePrimary, marginRight: spacingAroundItemButton * 2 + 'px', selectors: { '&:hover': { backgroundColor: palette.themeDark, }, '&:focus': { backgroundColor: palette.themeDark, }, '&:active': { backgroundColor: palette.themeDarker, }, '&:disabled': { backgroundColor: palette.neutralTertiaryAlt, }, }, }, ], descriptiveOverflowButton: [ classNames.descriptiveOverflowButton, Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme, { inset: -1 }), ItemButtonStyles, { fontSize: fonts.small.fontSize, color: palette.neutralSecondary, backgroundColor: palette.neutralLighter, marginLeft: spacingAroundItemButton * 2 + "px", }, ], itemButton: [classNames.itemButton, ItemButtonStyles], itemContainer: [ classNames.itemContainer, { display: 'flex', }, ], members: [ classNames.members, { display: 'flex', overflow: 'hidden', listStyleType: 'none', padding: 0, margin: "-" + spacingAroundItemButton + "px", }, ], member: [ classNames.member, { display: 'inline-flex', flex: '0 0 auto', margin: spacingAroundItemButton + "px", }, ], overflowButton: [ classNames.overflowButton, Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme, { inset: -1 }), ItemButtonStyles, { fontSize: fonts.medium.fontSize, color: palette.neutralSecondary, backgroundColor: palette.neutralLighter, marginLeft: spacingAroundItemButton * 2 + "px", }, ], overflowInitialsIcon: [ { color: palette.neutralPrimary, selectors: (_a = {}, _a[_Styling__WEBPACK_IMPORTED_MODULE_0__["HighContrastSelector"]] = { color: 'WindowText', }, _a), }, ], screenReaderOnly: _Styling__WEBPACK_IMPORTED_MODULE_0__["hiddenContentStyle"], }; }; //# sourceMappingURL=Facepile.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.types.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/Facepile.types.js ***! \********************************************************************************/ /*! exports provided: OverflowButtonType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OverflowButtonType", function() { return OverflowButtonType; }); /** * {@docCategory Facepile} */ var OverflowButtonType; (function (OverflowButtonType) { /** No overflow */ OverflowButtonType[OverflowButtonType["none"] = 0] = "none"; /** +1 overflow icon */ OverflowButtonType[OverflowButtonType["descriptive"] = 1] = "descriptive"; /** More overflow icon */ OverflowButtonType[OverflowButtonType["more"] = 2] = "more"; /** Chevron overflow icon */ OverflowButtonType[OverflowButtonType["downArrow"] = 3] = "downArrow"; })(OverflowButtonType || (OverflowButtonType = {})); //# sourceMappingURL=Facepile.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/FacepileButton.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/FacepileButton.js ***! \********************************************************************************/ /*! exports provided: FacepileButton */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FacepileButton", function() { return FacepileButton; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib/Button.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _FacepileButton_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FacepileButton.styles */ "./node_modules/@fluentui/react/lib/components/Facepile/FacepileButton.styles.js"); var FacepileButton = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FacepileButton, _super); function FacepileButton() { return _super !== null && _super.apply(this, arguments) || this; } FacepileButton.prototype.render = function () { var _a = this.props, className = _a.className, styles = _a.styles, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["className", "styles"]); var customStyles = Object(_FacepileButton_styles__WEBPACK_IMPORTED_MODULE_4__["getStyles"])(this.props.theme, className, styles); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Button__WEBPACK_IMPORTED_MODULE_2__["BaseButton"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rest, { variantClassName: "ms-Button--facepile", styles: customStyles, onRenderDescription: _Utilities__WEBPACK_IMPORTED_MODULE_3__["nullRender"] }))); }; FacepileButton = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([ Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["customizable"])('FacepileButton', ['theme', 'styles'], true) ], FacepileButton); return FacepileButton; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=FacepileButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/FacepileButton.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/FacepileButton.styles.js ***! \***************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Button_BaseButton_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button/BaseButton.styles */ "./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"); var getStyles = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["memoizeFunction"])(function (theme, className, customStyles) { var baseButtonStyles = Object(_Button_BaseButton_styles__WEBPACK_IMPORTED_MODULE_3__["getStyles"])(theme); var customButtonStyles = Object(_Styling__WEBPACK_IMPORTED_MODULE_1__["concatStyleSets"])(baseButtonStyles, customStyles); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, customButtonStyles), { root: [baseButtonStyles.root, className, theme.fonts.medium, customStyles && customStyles.root] }); }); //# sourceMappingURL=FacepileButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/Facepile/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/Facepile/index.js ***! \***********************************************************************/ /*! exports provided: OverflowButtonType, FacepileBase, Facepile */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Facepile_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Facepile.types */ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverflowButtonType", function() { return _Facepile_types__WEBPACK_IMPORTED_MODULE_0__["OverflowButtonType"]; }); /* harmony import */ var _Facepile_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Facepile.base */ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.base.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FacepileBase", function() { return _Facepile_base__WEBPACK_IMPORTED_MODULE_1__["FacepileBase"]; }); /* harmony import */ var _Facepile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Facepile */ "./node_modules/@fluentui/react/lib/components/Facepile/Facepile.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Facepile", function() { return _Facepile__WEBPACK_IMPORTED_MODULE_2__["Facepile"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.js ***! \******************************************************************************************/ /*! exports provided: BaseFloatingPicker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseFloatingPicker", function() { return BaseFloatingPicker; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _BaseFloatingPicker_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseFloatingPicker.scss */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.scss.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib/common/DirectionalHint.js"); /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib/Callout.js"); /* harmony import */ var _Suggestions_SuggestionsControl__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Suggestions/SuggestionsControl */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.js"); var styles = _BaseFloatingPicker_scss__WEBPACK_IMPORTED_MODULE_2__; var BaseFloatingPicker = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BaseFloatingPicker, _super); function BaseFloatingPicker(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; _this.root = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.suggestionsControl = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.SuggestionsControlOfProperType = _Suggestions_SuggestionsControl__WEBPACK_IMPORTED_MODULE_6__["SuggestionsControl"]; _this.isComponentMounted = false; _this.onQueryStringChanged = function (queryString) { if (queryString !== _this.state.queryString) { _this.setState({ queryString: queryString, }); if (_this.props.onInputChanged) { _this.props.onInputChanged(queryString); } _this.updateValue(queryString); } }; _this.hidePicker = function () { var wasShownBeforeUpdate = _this.isSuggestionsShown; _this.setState({ suggestionsVisible: false, }); if (_this.props.onSuggestionsHidden && wasShownBeforeUpdate) { _this.props.onSuggestionsHidden(); } }; _this.showPicker = function (updateValue) { if (updateValue === void 0) { updateValue = false; } var wasShownBeforeUpdate = _this.isSuggestionsShown; _this.setState({ suggestionsVisible: true, }); // Update the suggestions if updateValue == true var value = _this.props.inputElement ? _this.props.inputElement.value : ''; if (updateValue) { _this.updateValue(value); } if (_this.props.onSuggestionsShown && !wasShownBeforeUpdate) { _this.props.onSuggestionsShown(); } }; _this.completeSuggestion = function () { if (_this.suggestionsControl.current && _this.suggestionsControl.current.hasSuggestionSelected()) { _this.onChange(_this.suggestionsControl.current.currentSuggestion.item); } }; _this.onSuggestionClick = function (ev, item, index) { _this.onChange(item); _this._updateSuggestionsVisible(false /*shouldShow*/); }; _this.onSuggestionRemove = function (ev, item, index) { if (_this.props.onRemoveSuggestion) { _this.props.onRemoveSuggestion(item); } if (_this.suggestionsControl.current) { _this.suggestionsControl.current.removeSuggestion(index); } }; _this.onKeyDown = function (ev) { if (!_this.state.suggestionsVisible || (_this.props.inputElement && !_this.props.inputElement.contains(ev.target))) { return; } // eslint-disable-next-line deprecation/deprecation var keyCode = ev.which; switch (keyCode) { case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].escape: _this.hidePicker(); ev.preventDefault(); ev.stopPropagation(); break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].tab: case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].enter: if (!ev.shiftKey && !ev.ctrlKey && _this.suggestionsControl.current && _this.suggestionsControl.current.handleKeyDown(keyCode)) { ev.preventDefault(); ev.stopPropagation(); } else { _this._onValidateInput(); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].del: if (_this.props.onRemoveSuggestion && _this.suggestionsControl.current && _this.suggestionsControl.current.hasSuggestionSelected() && _this.suggestionsControl.current.currentSuggestion && ev.shiftKey) { _this.props.onRemoveSuggestion(_this.suggestionsControl.current.currentSuggestion.item); _this.suggestionsControl.current.removeSuggestion(); _this.forceUpdate(); ev.stopPropagation(); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].up: if (_this.suggestionsControl.current && _this.suggestionsControl.current.handleKeyDown(keyCode)) { ev.preventDefault(); ev.stopPropagation(); _this._updateActiveDescendant(); } break; case _Utilities__WEBPACK_IMPORTED_MODULE_3__["KeyCodes"].down: if (_this.suggestionsControl.current && _this.suggestionsControl.current.handleKeyDown(keyCode)) { ev.preventDefault(); ev.stopPropagation(); _this._updateActiveDescendant(); } break; } }; _this._onValidateInput = function () { if (_this.state.queryString && _this.props.onValidateInput && _this.props.createGenericItem) { var itemToConvert = _this.props.createGenericItem(_this.state.queryString, _this.props.onValidateInput(_this.state.queryString)); var convertedItems = _this.suggestionStore.convertSuggestionsToSuggestionItems([itemToConvert]); _this.onChange(convertedItems[0].item); } }; _this._async = new _Utilities__WEBPACK_IMPORTED_MODULE_3__["Async"](_this); Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["initializeComponentRef"])(_this); _this.suggestionStore = basePickerProps.suggestionsStore; _this.state = { queryString: '', didBind: false, }; return _this; } Object.defineProperty(BaseFloatingPicker.prototype, "inputText", { get: function () { return this.state.queryString; }, enumerable: false, configurable: true }); Object.defineProperty(BaseFloatingPicker.prototype, "suggestions", { get: function () { return this.suggestionStore.suggestions; }, enumerable: false, configurable: true }); BaseFloatingPicker.prototype.forceResolveSuggestion = function () { if (this.suggestionsControl.current && this.suggestionsControl.current.hasSuggestionSelected()) { this.completeSuggestion(); } else { this._onValidateInput(); } }; Object.defineProperty(BaseFloatingPicker.prototype, "currentSelectedSuggestionIndex", { get: function () { return this.suggestionsControl.current ? this.suggestionsControl.current.currentSuggestionIndex : -1; }, enumerable: false, configurable: true }); Object.defineProperty(BaseFloatingPicker.prototype, "isSuggestionsShown", { get: function () { return this.state.suggestionsVisible === undefined ? false : this.state.suggestionsVisible; }, enumerable: false, configurable: true }); BaseFloatingPicker.prototype.componentDidMount = function () { this._bindToInputElement(); this.isComponentMounted = true; this._onResolveSuggestions = this._async.debounce(this._onResolveSuggestions, this.props.resolveDelay); }; BaseFloatingPicker.prototype.componentDidUpdate = function () { this._bindToInputElement(); }; BaseFloatingPicker.prototype.componentWillUnmount = function () { this._unbindFromInputElement(); this.isComponentMounted = false; }; BaseFloatingPicker.prototype.updateSuggestions = function (suggestions, forceUpdate) { if (forceUpdate === void 0) { forceUpdate = false; } this.suggestionStore.updateSuggestions(suggestions); if (forceUpdate) { this.forceUpdate(); } }; BaseFloatingPicker.prototype.render = function () { var className = this.props.className; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this.root, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_3__["css"])('ms-BasePicker ms-BaseFloatingPicker', className ? className : '') }, this.renderSuggestions())); }; BaseFloatingPicker.prototype.renderSuggestions = function () { var TypedSuggestionsControl = this.SuggestionsControlOfProperType; if (this.props.suggestionItems) { this.suggestionStore.updateSuggestions(this.props.suggestionItems); } return this.state.suggestionsVisible ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Callout__WEBPACK_IMPORTED_MODULE_5__["Callout"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ className: styles.callout, isBeakVisible: false, gapSpace: 5, target: this.props.inputElement, onDismiss: this.hidePicker, directionalHint: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_4__["DirectionalHint"].bottomLeftEdge, directionalHintForRTL: _common_DirectionalHint__WEBPACK_IMPORTED_MODULE_4__["DirectionalHint"].bottomRightEdge, calloutWidth: this.props.calloutWidth ? this.props.calloutWidth : 0 }, this.props.pickerCalloutProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TypedSuggestionsControl, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ onRenderSuggestion: this.props.onRenderSuggestionsItem, onSuggestionClick: this.onSuggestionClick, onSuggestionRemove: this.onSuggestionRemove, suggestions: this.suggestionStore.getSuggestions(), componentRef: this.suggestionsControl, completeSuggestion: this.completeSuggestion, shouldLoopSelection: false }, this.props.pickerSuggestionsProps)))) : null; }; BaseFloatingPicker.prototype.onSelectionChange = function () { this.forceUpdate(); }; BaseFloatingPicker.prototype.updateValue = function (updatedValue) { if (updatedValue === '') { this.updateSuggestionWithZeroState(); } else { this._onResolveSuggestions(updatedValue); } }; BaseFloatingPicker.prototype.updateSuggestionWithZeroState = function () { if (this.props.onZeroQuerySuggestion) { var onEmptyInputFocus = this.props.onZeroQuerySuggestion; var suggestions = onEmptyInputFocus(this.props.selectedItems); this.updateSuggestionsList(suggestions); } else { this.hidePicker(); } }; BaseFloatingPicker.prototype.updateSuggestionsList = function (suggestions) { var _this = this; // Check to see if the returned value is an array, if it is then just pass it into the next function. // If the returned value is not an array then check to see if it's a promise or PromiseLike. // If it is then resolve it asynchronously. if (Array.isArray(suggestions)) { this.updateSuggestions(suggestions, true /*forceUpdate*/); } else if (suggestions && suggestions.then) { // Ensure that the promise will only use the callback if it was the most recent one. this.currentPromise = suggestions; suggestions.then(function (newSuggestions) { // Only update if the next promise has not yet resolved and // the floating picker is still mounted. if (suggestions === _this.currentPromise && _this.isComponentMounted) { _this.updateSuggestions(newSuggestions, true /*forceUpdate*/); } }); } }; BaseFloatingPicker.prototype.onChange = function (item) { if (this.props.onChange) { this.props.onChange(item); } }; BaseFloatingPicker.prototype._updateActiveDescendant = function () { if (this.props.inputElement && this.suggestionsControl.current && this.suggestionsControl.current.selectedElement) { var selectedElId = this.suggestionsControl.current.selectedElement.getAttribute('id'); if (selectedElId) { this.props.inputElement.setAttribute('aria-activedescendant', selectedElId); } } }; BaseFloatingPicker.prototype._onResolveSuggestions = function (updatedValue) { var suggestions = this.props.onResolveSuggestions(updatedValue, this.props.selectedItems); this._updateSuggestionsVisible(true /*shouldShow*/); if (suggestions !== null) { this.updateSuggestionsList(suggestions); } }; BaseFloatingPicker.prototype._updateSuggestionsVisible = function (shouldShow) { if (shouldShow) { this.showPicker(); } else { this.hidePicker(); } }; BaseFloatingPicker.prototype._bindToInputElement = function () { if (this.props.inputElement && !this.state.didBind) { this.props.inputElement.addEventListener('keydown', this.onKeyDown); this.setState({ didBind: true }); } }; BaseFloatingPicker.prototype._unbindFromInputElement = function () { if (this.props.inputElement && this.state.didBind) { this.props.inputElement.removeEventListener('keydown', this.onKeyDown); this.setState({ didBind: false }); } }; return BaseFloatingPicker; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=BaseFloatingPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.scss.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.scss.js ***! \***********************************************************************************************/ /*! exports provided: callout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "callout", function() { return callout; }); /* harmony import */ var _microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); /* eslint-disable */ Object(_microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__["loadStyles"])([{ "rawString": ".callout_ad5629e1 .ms-Suggestions-itemButton{padding:0;border:none}.callout_ad5629e1 .ms-Suggestions{min-width:300px}" }]); var callout = "callout_ad5629e1"; //# sourceMappingURL=BaseFloatingPicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.types.js ***! \************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=BaseFloatingPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/FloatingPeoplePicker.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/FloatingPeoplePicker.js ***! \*********************************************************************************************************/ /*! exports provided: BaseFloatingPeoplePicker, FloatingPeoplePicker, createItem */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseFloatingPeoplePicker", function() { return BaseFloatingPeoplePicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatingPeoplePicker", function() { return FloatingPeoplePicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createItem", function() { return createItem; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _BaseFloatingPicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../BaseFloatingPicker */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.js"); /* harmony import */ var _PeoplePickerItems_SuggestionItemDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PeoplePickerItems/SuggestionItemDefault */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.js"); /* harmony import */ var _PeoplePicker_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PeoplePicker.scss */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js"); /** * {@docCategory FloatingPeoplePicker} */ var BaseFloatingPeoplePicker = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BaseFloatingPeoplePicker, _super); function BaseFloatingPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return BaseFloatingPeoplePicker; }(_BaseFloatingPicker__WEBPACK_IMPORTED_MODULE_2__["BaseFloatingPicker"])); var FloatingPeoplePicker = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatingPeoplePicker, _super); function FloatingPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } FloatingPeoplePicker.defaultProps = { onRenderSuggestionsItem: function (props, itemProps) { return Object(_PeoplePickerItems_SuggestionItemDefault__WEBPACK_IMPORTED_MODULE_3__["SuggestionItemNormal"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, itemProps)); }, createGenericItem: createItem, }; return FloatingPeoplePicker; }(BaseFloatingPeoplePicker)); function createItem(name, isValid) { var personaToConvert = { key: name, primaryText: name, imageInitials: '!', isValid: isValid, }; if (!isValid) { personaToConvert.imageInitials = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["getInitials"])(name, Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["getRTL"])()); } return personaToConvert; } //# sourceMappingURL=FloatingPeoplePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js ***! \******************************************************************************************************/ /*! exports provided: resultContent, resultItem, peoplePickerPersona, peoplePicker, peoplePickerPersonaContent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resultContent", function() { return resultContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resultItem", function() { return resultItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "peoplePickerPersona", function() { return peoplePickerPersona; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "peoplePicker", function() { return peoplePicker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "peoplePickerPersonaContent", function() { return peoplePickerPersonaContent; }); /* harmony import */ var _microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); /* eslint-disable */ Object(_microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__["loadStyles"])([{ "rawString": ".resultContent_f73be5be{display:table-row}.resultContent_f73be5be .resultItem_f73be5be{display:table-cell;vertical-align:bottom}.peoplePickerPersona_f73be5be{width:180px}.peoplePickerPersona_f73be5be .ms-Persona-details{width:100%}.peoplePicker_f73be5be .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_f73be5be{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}" }]); var resultContent = "resultContent_f73be5be"; var resultItem = "resultItem_f73be5be"; var peoplePickerPersona = "peoplePickerPersona_f73be5be"; var peoplePicker = "peoplePicker_f73be5be"; var peoplePickerPersonaContent = "peoplePickerPersonaContent_f73be5be"; //# sourceMappingURL=PeoplePicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.js": /*!****************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.js ***! \****************************************************************************************************************************/ /*! exports provided: SuggestionItemNormal */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionItemNormal", function() { return SuggestionItemNormal; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Persona__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Persona */ "./node_modules/@fluentui/react/lib/Persona.js"); /* harmony import */ var _PeoplePicker_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../PeoplePicker.scss */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js"); var SuggestionItemNormal = function (personaProps, suggestionItemProps) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-PeoplePicker-personaContent', _PeoplePicker_scss__WEBPACK_IMPORTED_MODULE_4__["peoplePickerPersonaContent"]) }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Persona__WEBPACK_IMPORTED_MODULE_3__["Persona"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ presence: personaProps.presence !== undefined ? personaProps.presence : _Persona__WEBPACK_IMPORTED_MODULE_3__["PersonaPresence"].none, size: _Persona__WEBPACK_IMPORTED_MODULE_3__["PersonaSize"].size40, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-PeoplePicker-Persona', _PeoplePicker_scss__WEBPACK_IMPORTED_MODULE_4__["peoplePickerPersona"]), showSecondaryText: true }, personaProps)))); }; //# sourceMappingURL=SuggestionItemDefault.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/Suggestions.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/Suggestions.types.js ***! \*****************************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=Suggestions.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.js ***! \******************************************************************************************************/ /*! exports provided: SuggestionItemType, SuggestionsHeaderFooterItem, SuggestionsControl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionItemType", function() { return SuggestionItemType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionsHeaderFooterItem", function() { return SuggestionsHeaderFooterItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionsControl", function() { return SuggestionsControl; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _SuggestionsCore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SuggestionsCore */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.js"); /* harmony import */ var _SuggestionsControl_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SuggestionsControl.scss */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.scss.js"); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var styles = _SuggestionsControl_scss__WEBPACK_IMPORTED_MODULE_4__; var SuggestionItemType; (function (SuggestionItemType) { SuggestionItemType[SuggestionItemType["header"] = 0] = "header"; SuggestionItemType[SuggestionItemType["suggestion"] = 1] = "suggestion"; SuggestionItemType[SuggestionItemType["footer"] = 2] = "footer"; })(SuggestionItemType || (SuggestionItemType = {})); var SuggestionsHeaderFooterItem = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SuggestionsHeaderFooterItem, _super); function SuggestionsHeaderFooterItem(props) { var _this = _super.call(this, props) || this; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); return _this; } SuggestionsHeaderFooterItem.prototype.render = function () { var _a; var _b = this.props, renderItem = _b.renderItem, onExecute = _b.onExecute, isSelected = _b.isSelected, id = _b.id, className = _b.className; return onExecute ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: id, onClick: onExecute, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-Suggestions-sectionButton', className, styles.actionButton, (_a = {}, _a['is-selected ' + styles.buttonSelected] = isSelected, _a)) }, renderItem())) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: id, className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-Suggestions-section', className, styles.suggestionsTitle) }, renderItem())); }; return SuggestionsHeaderFooterItem; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); /** * Class when used with SuggestionsStore, renders a suggestions control with customizable headers and footers */ var SuggestionsControl = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SuggestionsControl, _super); function SuggestionsControl(suggestionsProps) { var _this = _super.call(this, suggestionsProps) || this; _this._selectedElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this._suggestions = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.SuggestionsOfProperType = _SuggestionsCore__WEBPACK_IMPORTED_MODULE_3__["SuggestionsCore"]; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this.state = { selectedHeaderIndex: -1, selectedFooterIndex: -1, suggestions: suggestionsProps.suggestions, }; return _this; } SuggestionsControl.prototype.componentDidMount = function () { this.resetSelectedItem(); }; SuggestionsControl.prototype.componentDidUpdate = function (oldProps) { var _this = this; this.scrollSelected(); if (oldProps.suggestions && oldProps.suggestions !== this.props.suggestions) { this.setState({ suggestions: this.props.suggestions }, function () { _this.resetSelectedItem(); }); } }; SuggestionsControl.prototype.componentWillUnmount = function () { var _a; (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.deselectAllSuggestions(); }; SuggestionsControl.prototype.render = function () { var _a = this.props, className = _a.className, headerItemsProps = _a.headerItemsProps, footerItemsProps = _a.footerItemsProps, suggestionsAvailableAlertText = _a.suggestionsAvailableAlertText; var screenReaderTextStyles = Object(_Styling__WEBPACK_IMPORTED_MODULE_5__["mergeStyles"])(_Styling__WEBPACK_IMPORTED_MODULE_5__["hiddenContentStyle"]); var shouldAlertSuggestionsAvailableText = this.state.suggestions && this.state.suggestions.length > 0 && suggestionsAvailableAlertText; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-Suggestions', className ? className : '', styles.root) }, headerItemsProps && this.renderHeaderItems(), this._renderSuggestions(), footerItemsProps && this.renderFooterItems(), shouldAlertSuggestionsAvailableText ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { role: "alert", "aria-live": "polite", className: screenReaderTextStyles }, suggestionsAvailableAlertText)) : null)); }; Object.defineProperty(SuggestionsControl.prototype, "currentSuggestion", { get: function () { var _a; return ((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.getCurrentItem()) || undefined; }, enumerable: false, configurable: true }); Object.defineProperty(SuggestionsControl.prototype, "currentSuggestionIndex", { get: function () { return this._suggestions.current ? this._suggestions.current.currentIndex : -1; }, enumerable: false, configurable: true }); Object.defineProperty(SuggestionsControl.prototype, "selectedElement", { get: function () { var _a; return this._selectedElement.current ? this._selectedElement.current : (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.selectedElement; }, enumerable: false, configurable: true }); SuggestionsControl.prototype.hasSuggestionSelected = function () { var _a; return ((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.hasSuggestionSelected()) || false; }; SuggestionsControl.prototype.hasSelection = function () { var _a = this.state, selectedHeaderIndex = _a.selectedHeaderIndex, selectedFooterIndex = _a.selectedFooterIndex; return selectedHeaderIndex !== -1 || this.hasSuggestionSelected() || selectedFooterIndex !== -1; }; SuggestionsControl.prototype.executeSelectedAction = function () { var _a; var _b = this.props, headerItemsProps = _b.headerItemsProps, footerItemsProps = _b.footerItemsProps; var _c = this.state, selectedHeaderIndex = _c.selectedHeaderIndex, selectedFooterIndex = _c.selectedFooterIndex; if (headerItemsProps && selectedHeaderIndex !== -1 && selectedHeaderIndex < headerItemsProps.length) { var selectedHeaderItem = headerItemsProps[selectedHeaderIndex]; if (selectedHeaderItem.onExecute) { selectedHeaderItem.onExecute(); } } else if ((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.hasSuggestionSelected()) { this.props.completeSuggestion(); } else if (footerItemsProps && selectedFooterIndex !== -1 && selectedFooterIndex < footerItemsProps.length) { var selectedFooterItem = footerItemsProps[selectedFooterIndex]; if (selectedFooterItem.onExecute) { selectedFooterItem.onExecute(); } } }; SuggestionsControl.prototype.removeSuggestion = function (index) { var _a, _b; (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.removeSuggestion(index ? index : (_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.currentIndex); }; /** * Handles the key down, returns true, if the event was handled, false otherwise * @param keyCode - The keyCode to handle */ SuggestionsControl.prototype.handleKeyDown = function (keyCode) { var _a, _b, _c, _d; var _e = this.state, selectedHeaderIndex = _e.selectedHeaderIndex, selectedFooterIndex = _e.selectedFooterIndex; var isKeyDownHandled = false; if (keyCode === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].down) { if (selectedHeaderIndex === -1 && !((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.hasSuggestionSelected()) && selectedFooterIndex === -1) { this.selectFirstItem(); } else if (selectedHeaderIndex !== -1) { this.selectNextItem(SuggestionItemType.header); isKeyDownHandled = true; } else if ((_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.hasSuggestionSelected()) { this.selectNextItem(SuggestionItemType.suggestion); isKeyDownHandled = true; } else if (selectedFooterIndex !== -1) { this.selectNextItem(SuggestionItemType.footer); isKeyDownHandled = true; } } else if (keyCode === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].up) { if (selectedHeaderIndex === -1 && !((_c = this._suggestions.current) === null || _c === void 0 ? void 0 : _c.hasSuggestionSelected()) && selectedFooterIndex === -1) { this.selectLastItem(); } else if (selectedHeaderIndex !== -1) { this.selectPreviousItem(SuggestionItemType.header); isKeyDownHandled = true; } else if ((_d = this._suggestions.current) === null || _d === void 0 ? void 0 : _d.hasSuggestionSelected()) { this.selectPreviousItem(SuggestionItemType.suggestion); isKeyDownHandled = true; } else if (selectedFooterIndex !== -1) { this.selectPreviousItem(SuggestionItemType.footer); isKeyDownHandled = true; } } else if (keyCode === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].enter || keyCode === _Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].tab) { if (this.hasSelection()) { this.executeSelectedAction(); isKeyDownHandled = true; } } return isKeyDownHandled; }; // TODO get the element to scroll into view properly regardless of direction. SuggestionsControl.prototype.scrollSelected = function () { if (this._selectedElement.current) { this._selectedElement.current.scrollIntoView(false); } }; SuggestionsControl.prototype.renderHeaderItems = function () { var _this = this; var _a = this.props, headerItemsProps = _a.headerItemsProps, suggestionsHeaderContainerAriaLabel = _a.suggestionsHeaderContainerAriaLabel; var selectedHeaderIndex = this.state.selectedHeaderIndex; return headerItemsProps ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-Suggestions-headerContainer', styles.suggestionsContainer), id: "suggestionHeader-list", role: "list", "aria-label": suggestionsHeaderContainerAriaLabel }, headerItemsProps.map(function (headerItemProps, index) { var isSelected = selectedHeaderIndex !== -1 && selectedHeaderIndex === index; return headerItemProps.shouldShow() ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: isSelected ? _this._selectedElement : undefined, id: 'sug-header' + index, key: 'sug-header' + index, role: "listitem", "aria-label": headerItemProps.ariaLabel }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SuggestionsHeaderFooterItem, { id: 'sug-header-item' + index, isSelected: isSelected, renderItem: headerItemProps.renderItem, onExecute: headerItemProps.onExecute, className: headerItemProps.className }))) : null; }))) : null; }; SuggestionsControl.prototype.renderFooterItems = function () { var _this = this; var _a = this.props, footerItemsProps = _a.footerItemsProps, suggestionsFooterContainerAriaLabel = _a.suggestionsFooterContainerAriaLabel; var selectedFooterIndex = this.state.selectedFooterIndex; return footerItemsProps ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-Suggestions-footerContainer', styles.suggestionsContainer), id: "suggestionFooter-list", role: "list", "aria-label": suggestionsFooterContainerAriaLabel }, footerItemsProps.map(function (footerItemProps, index) { var isSelected = selectedFooterIndex !== -1 && selectedFooterIndex === index; return footerItemProps.shouldShow() ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: isSelected ? _this._selectedElement : undefined, id: 'sug-footer' + index, key: 'sug-footer' + index, role: "listitem", "aria-label": footerItemProps.ariaLabel }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SuggestionsHeaderFooterItem, { id: 'sug-footer-item' + index, isSelected: isSelected, renderItem: footerItemProps.renderItem, onExecute: footerItemProps.onExecute, className: footerItemProps.className }))) : null; }))) : null; }; SuggestionsControl.prototype._renderSuggestions = function () { var TypedSuggestions = this.SuggestionsOfProperType; return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TypedSuggestions, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ ref: this._suggestions }, this.props, { suggestions: this.state.suggestions })); }; /** * Selects the next selectable item */ SuggestionsControl.prototype.selectNextItem = function (itemType, originalItemType) { // If the recursive calling has not found a selectable item in the other suggestion item type groups // And the method is being called again with the original item type, // Select the first selectable item of this suggestion item type group (could be the currently selected item) if (itemType === originalItemType) { this._selectNextItemOfItemType(itemType); return; } var startedItemType = originalItemType !== undefined ? originalItemType : itemType; // Try to set the selection to the next selectable item, of the same suggestion item type group // If this is the original item type, use the current index var selectionChanged = this._selectNextItemOfItemType(itemType, startedItemType === itemType ? this._getCurrentIndexForType(itemType) : undefined); // If the selection did not change, try to select from the next suggestion type group if (!selectionChanged) { this.selectNextItem(this._getNextItemSectionType(itemType), startedItemType); } }; /** * Selects the previous selectable item */ SuggestionsControl.prototype.selectPreviousItem = function (itemType, originalItemType) { // If the recursive calling has not found a selectable item in the other suggestion item type groups // And the method is being called again with the original item type, // Select the last selectable item of this suggestion item type group (could be the currently selected item) if (itemType === originalItemType) { this._selectPreviousItemOfItemType(itemType); return; } var startedItemType = originalItemType !== undefined ? originalItemType : itemType; // Try to set the selection to the previous selectable item, of the same suggestion item type group var selectionChanged = this._selectPreviousItemOfItemType(itemType, startedItemType === itemType ? this._getCurrentIndexForType(itemType) : undefined); // If the selection did not change, try to select from the previous suggestion type group if (!selectionChanged) { this.selectPreviousItem(this._getPreviousItemSectionType(itemType), startedItemType); } }; /** * Resets the selected state and selects the first selectable item */ SuggestionsControl.prototype.resetSelectedItem = function () { var _a; this.setState({ selectedHeaderIndex: -1, selectedFooterIndex: -1 }); (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.deselectAllSuggestions(); // Select the first item if the shouldSelectFirstItem prop is not set or it is set and it returns true if (this.props.shouldSelectFirstItem === undefined || this.props.shouldSelectFirstItem()) { this.selectFirstItem(); } }; /** * Selects the first item */ SuggestionsControl.prototype.selectFirstItem = function () { if (this._selectNextItemOfItemType(SuggestionItemType.header)) { return; } if (this._selectNextItemOfItemType(SuggestionItemType.suggestion)) { return; } this._selectNextItemOfItemType(SuggestionItemType.footer); }; /** * Selects the last item */ SuggestionsControl.prototype.selectLastItem = function () { if (this._selectPreviousItemOfItemType(SuggestionItemType.footer)) { return; } if (this._selectPreviousItemOfItemType(SuggestionItemType.suggestion)) { return; } this._selectPreviousItemOfItemType(SuggestionItemType.header); }; /** * Selects the next item in the suggestion item type group, given the current index * If none is able to be selected, returns false, otherwise returns true * @param itemType - The suggestion item type * @param currentIndex - The current index, default is -1 */ SuggestionsControl.prototype._selectNextItemOfItemType = function (itemType, currentIndex) { var _a, _b; if (currentIndex === void 0) { currentIndex = -1; } if (itemType === SuggestionItemType.suggestion) { if (this.state.suggestions.length > currentIndex + 1) { (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.setSelectedSuggestion(currentIndex + 1); this.setState({ selectedHeaderIndex: -1, selectedFooterIndex: -1 }); return true; } } else { var isHeader = itemType === SuggestionItemType.header; var itemProps = isHeader ? this.props.headerItemsProps : this.props.footerItemsProps; if (itemProps && itemProps.length > currentIndex + 1) { for (var i = currentIndex + 1; i < itemProps.length; i++) { var item = itemProps[i]; if (item.onExecute && item.shouldShow()) { this.setState({ selectedHeaderIndex: isHeader ? i : -1 }); this.setState({ selectedFooterIndex: isHeader ? -1 : i }); (_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.deselectAllSuggestions(); return true; } } } } return false; }; /** * Selects the previous item in the suggestion item type group, given the current index * If none is able to be selected, returns false, otherwise returns true * @param itemType - The suggestion item type * @param currentIndex - The current index. If none is provided, the default is the items length of specified type */ SuggestionsControl.prototype._selectPreviousItemOfItemType = function (itemType, currentIndex) { var _a, _b; if (itemType === SuggestionItemType.suggestion) { var index = currentIndex !== undefined ? currentIndex : this.state.suggestions.length; if (index > 0) { (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.setSelectedSuggestion(index - 1); this.setState({ selectedHeaderIndex: -1, selectedFooterIndex: -1 }); return true; } } else { var isHeader = itemType === SuggestionItemType.header; var itemProps = isHeader ? this.props.headerItemsProps : this.props.footerItemsProps; if (itemProps) { var index = currentIndex !== undefined ? currentIndex : itemProps.length; if (index > 0) { for (var i = index - 1; i >= 0; i--) { var item = itemProps[i]; if (item.onExecute && item.shouldShow()) { this.setState({ selectedHeaderIndex: isHeader ? i : -1 }); this.setState({ selectedFooterIndex: isHeader ? -1 : i }); (_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.deselectAllSuggestions(); return true; } } } } } return false; }; SuggestionsControl.prototype._getCurrentIndexForType = function (itemType) { switch (itemType) { case SuggestionItemType.header: return this.state.selectedHeaderIndex; case SuggestionItemType.suggestion: return this._suggestions.current.currentIndex; case SuggestionItemType.footer: return this.state.selectedFooterIndex; } }; SuggestionsControl.prototype._getNextItemSectionType = function (itemType) { switch (itemType) { case SuggestionItemType.header: return SuggestionItemType.suggestion; case SuggestionItemType.suggestion: return SuggestionItemType.footer; case SuggestionItemType.footer: return SuggestionItemType.header; } }; SuggestionsControl.prototype._getPreviousItemSectionType = function (itemType) { switch (itemType) { case SuggestionItemType.header: return SuggestionItemType.footer; case SuggestionItemType.suggestion: return SuggestionItemType.header; case SuggestionItemType.footer: return SuggestionItemType.suggestion; } }; return SuggestionsControl; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=SuggestionsControl.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.scss.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.scss.js ***! \***********************************************************************************************************/ /*! exports provided: root, actionButton, buttonSelected, suggestionsTitle, suggestionsSpinner, itemButton, screenReaderOnly */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "root", function() { return root; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "actionButton", function() { return actionButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buttonSelected", function() { return buttonSelected; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "suggestionsTitle", function() { return suggestionsTitle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "suggestionsSpinner", function() { return suggestionsSpinner; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemButton", function() { return itemButton; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "screenReaderOnly", function() { return screenReaderOnly; }); /* harmony import */ var _microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); /* eslint-disable */ Object(_microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__["loadStyles"])([{ "rawString": ".root_ade399af{min-width:260px}.actionButton_ade399af{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_ade399af{text-align:left}html[dir=rtl] .actionButton_ade399af{text-align:right}.actionButton_ade399af:hover{background-color:" }, { "theme": "neutralLighter", "defaultValue": "#f3f2f1" }, { "rawString": ";cursor:pointer}.actionButton_ade399af:active,.actionButton_ade399af:focus{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.actionButton_ade399af .ms-Button-icon{font-size:16px;width:25px}.actionButton_ade399af .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_ade399af .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_ade399af{background-color:" }, { "theme": "themeLighter", "defaultValue": "#deecf9" }, { "rawString": "}.buttonSelected_ade399af:hover{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": ";cursor:pointer}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_ade399af{font-size:12px}.suggestionsSpinner_ade399af{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_ade399af{padding-left:14px}html[dir=rtl] .suggestionsSpinner_ade399af{padding-right:14px}html[dir=ltr] .suggestionsSpinner_ade399af{text-align:left}html[dir=rtl] .suggestionsSpinner_ade399af{text-align:right}.suggestionsSpinner_ade399af .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_ade399af .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_ade399af .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_ade399af{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_ade399af{color:WindowText}}.screenReaderOnly_ade399af{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}" }]); var root = "root_ade399af"; var actionButton = "actionButton_ade399af"; var buttonSelected = "buttonSelected_ade399af"; var suggestionsTitle = "suggestionsTitle_ade399af"; var suggestionsSpinner = "suggestionsSpinner_ade399af"; var itemButton = "itemButton_ade399af"; var screenReaderOnly = "screenReaderOnly_ade399af"; //# sourceMappingURL=SuggestionsControl.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.js ***! \***************************************************************************************************/ /*! exports provided: SuggestionsCore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionsCore", function() { return SuggestionsCore; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Pickers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Pickers */ "./node_modules/@fluentui/react/lib/Pickers.js"); /* harmony import */ var _SuggestionsCore_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SuggestionsCore.scss */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.scss.js"); var styles = _SuggestionsCore_scss__WEBPACK_IMPORTED_MODULE_4__; /** * Class when used with SuggestionsStore, renders a basic suggestions control */ var SuggestionsCore = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SuggestionsCore, _super); function SuggestionsCore(suggestionsProps) { var _this = _super.call(this, suggestionsProps) || this; _this._selectedElement = react__WEBPACK_IMPORTED_MODULE_1__["createRef"](); _this.SuggestionsItemOfProperType = _Pickers__WEBPACK_IMPORTED_MODULE_3__["SuggestionsItem"]; _this._onClickTypedSuggestionsItem = function (item, index) { return function (ev) { _this.props.onSuggestionClick(ev, item, index); }; }; _this._onRemoveTypedSuggestionsItem = function (item, index) { return function (ev) { var onSuggestionRemove = _this.props.onSuggestionRemove; onSuggestionRemove(ev, item, index); ev.stopPropagation(); }; }; Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["initializeComponentRef"])(_this); _this.currentIndex = -1; return _this; } /** * Increments the selected suggestion index */ SuggestionsCore.prototype.nextSuggestion = function () { var suggestions = this.props.suggestions; if (suggestions && suggestions.length > 0) { if (this.currentIndex === -1) { this.setSelectedSuggestion(0); return true; } else if (this.currentIndex < suggestions.length - 1) { this.setSelectedSuggestion(this.currentIndex + 1); return true; } else if (this.props.shouldLoopSelection && this.currentIndex === suggestions.length - 1) { this.setSelectedSuggestion(0); return true; } } return false; }; /** * Decrements the selected suggestion index */ SuggestionsCore.prototype.previousSuggestion = function () { var suggestions = this.props.suggestions; if (suggestions && suggestions.length > 0) { if (this.currentIndex === -1) { this.setSelectedSuggestion(suggestions.length - 1); return true; } else if (this.currentIndex > 0) { this.setSelectedSuggestion(this.currentIndex - 1); return true; } else if (this.props.shouldLoopSelection && this.currentIndex === 0) { this.setSelectedSuggestion(suggestions.length - 1); return true; } } return false; }; Object.defineProperty(SuggestionsCore.prototype, "selectedElement", { get: function () { return this._selectedElement.current || undefined; }, enumerable: false, configurable: true }); SuggestionsCore.prototype.getCurrentItem = function () { return this.props.suggestions[this.currentIndex]; }; SuggestionsCore.prototype.getSuggestionAtIndex = function (index) { return this.props.suggestions[index]; }; SuggestionsCore.prototype.hasSuggestionSelected = function () { return this.currentIndex !== -1 && this.currentIndex < this.props.suggestions.length; }; SuggestionsCore.prototype.removeSuggestion = function (index) { this.props.suggestions.splice(index, 1); }; SuggestionsCore.prototype.deselectAllSuggestions = function () { if (this.currentIndex > -1 && this.props.suggestions[this.currentIndex]) { this.props.suggestions[this.currentIndex].selected = false; this.currentIndex = -1; this.forceUpdate(); } }; SuggestionsCore.prototype.setSelectedSuggestion = function (index) { var suggestions = this.props.suggestions; if (index > suggestions.length - 1 || index < 0) { this.currentIndex = 0; this.currentSuggestion.selected = false; this.currentSuggestion = suggestions[0]; this.currentSuggestion.selected = true; } else { if (this.currentIndex > -1 && suggestions[this.currentIndex]) { suggestions[this.currentIndex].selected = false; } suggestions[index].selected = true; this.currentIndex = index; this.currentSuggestion = suggestions[index]; } this.forceUpdate(); }; SuggestionsCore.prototype.componentDidUpdate = function () { this.scrollSelected(); }; SuggestionsCore.prototype.render = function () { var _this = this; var _a = this.props, onRenderSuggestion = _a.onRenderSuggestion, suggestionsItemClassName = _a.suggestionsItemClassName, resultsMaximumNumber = _a.resultsMaximumNumber, showRemoveButtons = _a.showRemoveButtons, suggestionsContainerAriaLabel = _a.suggestionsContainerAriaLabel; var TypedSuggestionsItem = this.SuggestionsItemOfProperType; var suggestions = this.props.suggestions; if (resultsMaximumNumber) { suggestions = suggestions.slice(0, resultsMaximumNumber); } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["css"])('ms-Suggestions-container', styles.suggestionsContainer), id: "suggestion-list", role: "listbox", "aria-label": suggestionsContainerAriaLabel }, suggestions.map(function (suggestion, index) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: suggestion.selected || index === _this.currentIndex ? _this._selectedElement : undefined, key: suggestion.item.key ? suggestion.item.key : index, id: 'sug-' + index }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TypedSuggestionsItem, { id: 'sug-item' + index, suggestionModel: suggestion, RenderSuggestion: onRenderSuggestion, onClick: _this._onClickTypedSuggestionsItem(suggestion.item, index), className: suggestionsItemClassName, showRemoveButton: showRemoveButtons, onRemoveItem: _this._onRemoveTypedSuggestionsItem(suggestion.item, index), isSelectedOverride: index === _this.currentIndex }))); }))); }; // TODO get the element to scroll into view properly regardless of direction. SuggestionsCore.prototype.scrollSelected = function () { var _a; if (((_a = this._selectedElement.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView) !== undefined) { this._selectedElement.current.scrollIntoView(false); } }; return SuggestionsCore; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); //# sourceMappingURL=SuggestionsCore.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.scss.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.scss.js ***! \********************************************************************************************************/ /*! exports provided: suggestionsContainer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "suggestionsContainer", function() { return suggestionsContainer; }); /* harmony import */ var _microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); /* eslint-disable */ Object(_microsoft_load_themed_styles__WEBPACK_IMPORTED_MODULE_0__["loadStyles"])([{ "rawString": ".suggestionsContainer_44c59fda{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_44c59fda .ms-Suggestion-item:hover{background-color:" }, { "theme": "neutralLighter", "defaultValue": "#f3f2f1" }, { "rawString": ";cursor:pointer}.suggestionsContainer_44c59fda .is-suggested{background-color:" }, { "theme": "themeLighter", "defaultValue": "#deecf9" }, { "rawString": "}.suggestionsContainer_44c59fda .is-suggested:hover{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": ";cursor:pointer}" }]); var suggestionsContainer = "suggestionsContainer_44c59fda"; //# sourceMappingURL=SuggestionsCore.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsStore.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsStore.js ***! \****************************************************************************************************/ /*! exports provided: SuggestionsStore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuggestionsStore", function() { return SuggestionsStore; }); var SuggestionsStore = /** @class */ (function () { function SuggestionsStore(options) { var _this = this; this._isSuggestionModel = function (value) { return value.item !== undefined; }; this._ensureSuggestionModel = function (suggestion) { if (_this._isSuggestionModel(suggestion)) { return suggestion; } else { return { item: suggestion, selected: false, ariaLabel: _this.getAriaLabel !== undefined ? _this.getAriaLabel(suggestion) : suggestion.name || suggestion.text || // eslint-disable-next-line deprecation/deprecation suggestion.primaryText, }; } }; this.suggestions = []; this.getAriaLabel = options && options.getAriaLabel; } SuggestionsStore.prototype.updateSuggestions = function (newSuggestions) { if (newSuggestions && newSuggestions.length > 0) { this.suggestions = this.convertSuggestionsToSuggestionItems(newSuggestions); } else { this.suggestions = []; } }; SuggestionsStore.prototype.getSuggestions = function () { return this.suggestions; }; SuggestionsStore.prototype.getSuggestionAtIndex = function (index) { return this.suggestions[index]; }; SuggestionsStore.prototype.removeSuggestion = function (index) { this.suggestions.splice(index, 1); }; SuggestionsStore.prototype.convertSuggestionsToSuggestionItems = function (suggestions) { return Array.isArray(suggestions) ? suggestions.map(this._ensureSuggestionModel) : []; }; return SuggestionsStore; }()); //# sourceMappingURL=SuggestionsStore.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FloatingPicker/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FloatingPicker/index.js ***! \*****************************************************************************/ /*! exports provided: BaseFloatingPicker, BaseFloatingPeoplePicker, FloatingPeoplePicker, createItem, SuggestionsStore, SuggestionItemType, SuggestionsHeaderFooterItem, SuggestionsControl, SuggestionsCore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _BaseFloatingPicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseFloatingPicker */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseFloatingPicker", function() { return _BaseFloatingPicker__WEBPACK_IMPORTED_MODULE_0__["BaseFloatingPicker"]; }); /* harmony import */ var _BaseFloatingPicker_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseFloatingPicker.types */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/BaseFloatingPicker.types.js"); /* empty/unused harmony star reexport *//* harmony import */ var _PeoplePicker_FloatingPeoplePicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PeoplePicker/FloatingPeoplePicker */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/PeoplePicker/FloatingPeoplePicker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseFloatingPeoplePicker", function() { return _PeoplePicker_FloatingPeoplePicker__WEBPACK_IMPORTED_MODULE_2__["BaseFloatingPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FloatingPeoplePicker", function() { return _PeoplePicker_FloatingPeoplePicker__WEBPACK_IMPORTED_MODULE_2__["FloatingPeoplePicker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createItem", function() { return _PeoplePicker_FloatingPeoplePicker__WEBPACK_IMPORTED_MODULE_2__["createItem"]; }); /* harmony import */ var _Suggestions_SuggestionsStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Suggestions/SuggestionsStore */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsStore.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsStore", function() { return _Suggestions_SuggestionsStore__WEBPACK_IMPORTED_MODULE_3__["SuggestionsStore"]; }); /* harmony import */ var _Suggestions_SuggestionsControl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Suggestions/SuggestionsControl */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsControl.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionItemType", function() { return _Suggestions_SuggestionsControl__WEBPACK_IMPORTED_MODULE_4__["SuggestionItemType"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsHeaderFooterItem", function() { return _Suggestions_SuggestionsControl__WEBPACK_IMPORTED_MODULE_4__["SuggestionsHeaderFooterItem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsControl", function() { return _Suggestions_SuggestionsControl__WEBPACK_IMPORTED_MODULE_4__["SuggestionsControl"]; }); /* harmony import */ var _Suggestions_SuggestionsCore__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Suggestions/SuggestionsCore */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/SuggestionsCore.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SuggestionsCore", function() { return _Suggestions_SuggestionsCore__WEBPACK_IMPORTED_MODULE_5__["SuggestionsCore"]; }); /* harmony import */ var _Suggestions_Suggestions_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Suggestions/Suggestions.types */ "./node_modules/@fluentui/react/lib/components/FloatingPicker/Suggestions/Suggestions.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js ***! \************************************************************************************/ /*! exports provided: FocusTrapZone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FocusTrapZone", function() { return FocusTrapZone; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib/index.js"); /* harmony import */ var _WindowProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../WindowProvider */ "./node_modules/@fluentui/react/lib/WindowProvider.js"); var COMPONENT_NAME = 'FocusTrapZone'; var DEFAULT_PROPS = { disabled: false, disableFirstFocus: false, forceFocusInsideTrap: true, isClickableOutsideFocusTrap: false, }; var useComponentRef = function (componentRef, previouslyFocusedElement, focusFTZ) { react__WEBPACK_IMPORTED_MODULE_1__["useImperativeHandle"](componentRef, function () { return ({ get previouslyFocusedElement() { return previouslyFocusedElement; }, focus: focusFTZ, }); }, [focusFTZ, previouslyFocusedElement]); }; var FocusTrapZone = react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function (propsWithoutDefaults, ref) { var _a; var root = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var firstBumper = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var lastBumper = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null); var mergedRootRef = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useMergedRefs"])(root, ref); var doc = Object(_WindowProvider__WEBPACK_IMPORTED_MODULE_4__["useDocument"])(); var isFirstRender = (_a = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["usePrevious"])(false)) !== null && _a !== void 0 ? _a : true; var props = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getPropsWithDefaults"])(DEFAULT_PROPS, propsWithoutDefaults); var internalState = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useConst"])({ hasFocus: false, focusStackId: Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useId"])('ftz-', props.id), }); var children = props.children, componentRef = props.componentRef, disabled = props.disabled, disableFirstFocus = props.disableFirstFocus, forceFocusInsideTrap = props.forceFocusInsideTrap, focusPreviouslyFocusedInnerElement = props.focusPreviouslyFocusedInnerElement, // eslint-disable-next-line deprecation/deprecation firstFocusableSelector = props.firstFocusableSelector, firstFocusableTarget = props.firstFocusableTarget, // eslint-disable-next-line deprecation/deprecation _b = props.disableRestoreFocus, // eslint-disable-next-line deprecation/deprecation disableRestoreFocus = _b === void 0 ? props.ignoreExternalFocusing : _b, isClickableOutsideFocusTrap = props.isClickableOutsideFocusTrap, enableAriaHiddenSiblings = props.enableAriaHiddenSiblings; var bumperProps = { 'aria-hidden': true, style: { pointerEvents: 'none', position: 'fixed', // 'fixed' prevents browsers from scrolling to bumpers when viewport does not contain them }, tabIndex: disabled ? -1 : 0, 'data-is-visible': true, 'data-is-focus-trap-zone-bumper': true, }; var focusElementAsync = react__WEBPACK_IMPORTED_MODULE_1__["useCallback"](function (element) { if (element !== firstBumper.current && element !== lastBumper.current) { Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["focusAsync"])(element); } }, []); /** * Callback to force focus into FTZ (named to avoid overlap with global focus() callback). * useEventCallback always returns the same callback reference but updates the implementation * every render to avoid stale captured values. */ var focusFTZ = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useEventCallback"])(function () { if (!root.current) { return; // not done mounting } var previouslyFocusedElementInTrapZone = internalState.previouslyFocusedElementInTrapZone; if (focusPreviouslyFocusedInnerElement && previouslyFocusedElementInTrapZone && Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(root.current, previouslyFocusedElementInTrapZone)) { // focus on the last item that had focus in the zone before we left the zone focusElementAsync(previouslyFocusedElementInTrapZone); return; } var firstFocusableChild = null; if (typeof firstFocusableTarget === 'string') { firstFocusableChild = root.current.querySelector(firstFocusableTarget); } else if (firstFocusableTarget) { firstFocusableChild = firstFocusableTarget(root.current); } else if (firstFocusableSelector) { var focusSelector = typeof firstFocusableSelector === 'string' ? firstFocusableSelector : firstFocusableSelector(); firstFocusableChild = root.current.querySelector('.' + focusSelector); } // Fall back to first element if query selector did not match any elements. if (!firstFocusableChild) { firstFocusableChild = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNextElement"])(root.current, root.current.firstChild, false, false, false, true); } if (firstFocusableChild) { focusElementAsync(firstFocusableChild); } }); /** Used in root div focus/blur handlers */ var focusBumper = function (isFirstBumper) { if (disabled || !root.current) { return; } var nextFocusable = isFirstBumper === internalState.hasFocus ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getLastTabbable"])(root.current, lastBumper.current, true, false) : Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getFirstTabbable"])(root.current, firstBumper.current, true, false); if (nextFocusable) { if (nextFocusable === firstBumper.current || nextFocusable === lastBumper.current) { // This can happen when FTZ contains no tabbable elements. // focusFTZ() will take care of finding a focusable element in FTZ. focusFTZ(); } else { nextFocusable.focus(); } } }; /** Root div blur handler (doesn't need useCallback since it's for a native element) */ var onRootBlurCapture = function (ev) { var _a; (_a = props.onBlurCapture) === null || _a === void 0 ? void 0 : _a.call(props, ev); var relatedTarget = ev.relatedTarget; if (ev.relatedTarget === null) { // In IE11, due to lack of support, event.relatedTarget is always // null making every onBlur call to be "outside" of the root // even when it's not. Using document.activeElement is another way // for us to be able to get what the relatedTarget without relying // on the event relatedTarget = doc.activeElement; } if (!Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(root.current, relatedTarget)) { internalState.hasFocus = false; } }; /** Root div focus handler (doesn't need useCallback since it's for a native element) */ var onRootFocusCapture = function (ev) { var _a; (_a = props.onFocusCapture) === null || _a === void 0 ? void 0 : _a.call(props, ev); if (ev.target === firstBumper.current) { focusBumper(true); } else if (ev.target === lastBumper.current) { focusBumper(false); } internalState.hasFocus = true; if (ev.target !== ev.currentTarget && !(ev.target === firstBumper.current || ev.target === lastBumper.current)) { // every time focus changes within the trap zone, remember the focused element so that // it can be restored if focus leaves the pane and returns via keystroke (i.e. via a call to this.focus(true)) internalState.previouslyFocusedElementInTrapZone = ev.target; } }; /** Called to restore focus on unmount or props change. (useEventCallback ensures latest prop values are used.) */ var returnFocusToInitiator = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useEventCallback"])(function (elementToFocusOnDismiss) { FocusTrapZone.focusStack = FocusTrapZone.focusStack.filter(function (value) { return internalState.focusStackId !== value; }); if (!doc) { return; } var activeElement = doc.activeElement; if (!disableRestoreFocus && typeof (elementToFocusOnDismiss === null || elementToFocusOnDismiss === void 0 ? void 0 : elementToFocusOnDismiss.focus) === 'function' && // only restore focus if the current focused element is within the FTZ, or if nothing is focused (Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(root.current, activeElement) || activeElement === doc.body)) { focusElementAsync(elementToFocusOnDismiss); } }); /** Called in window event handlers. (useEventCallback ensures latest prop values are used.) */ var forceFocusOrClickInTrap = Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useEventCallback"])(function (ev) { // be sure to use the latest values here if (disabled) { return; } if (internalState.focusStackId === FocusTrapZone.focusStack.slice(-1)[0]) { var targetElement = ev.target; if (targetElement && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(root.current, targetElement)) { if (doc && doc.activeElement === doc.body) { setTimeout(function () { if (doc && doc.activeElement === doc.body) { focusFTZ(); internalState.hasFocus = true; // set focus here since we stop event propagation } }, 0); } else { focusFTZ(); internalState.hasFocus = true; // set focus here since we stop event propagation } ev.preventDefault(); ev.stopPropagation(); } } }); // Update window event handlers when relevant props change react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { var disposables = []; if (forceFocusInsideTrap) { disposables.push(Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["on"])(window, 'focus', forceFocusOrClickInTrap, true)); } if (!isClickableOutsideFocusTrap) { disposables.push(Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["on"])(window, 'click', forceFocusOrClickInTrap, true)); } return function () { disposables.forEach(function (dispose) { return dispose(); }); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when these two props change }, [forceFocusInsideTrap, isClickableOutsideFocusTrap]); // On prop change or first render, focus the FTZ and update focusStack if appropriate react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { // Do nothing if disabled, or if it's a re-render and forceFocusInsideTrap is false // (to match existing behavior, the FTZ handles first focus even if forceFocusInsideTrap // is false, though it's debatable whether it should do this) if (disabled || (!isFirstRender && !forceFocusInsideTrap) || !root.current) { return; } // Transition from forceFocusInsideTrap / FTZ disabled to enabled (or initial mount) FocusTrapZone.focusStack.push(internalState.focusStackId); var elementToFocusOnDismiss = props.elementToFocusOnDismiss || doc.activeElement; if (!disableFirstFocus && !Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["elementContains"])(root.current, elementToFocusOnDismiss)) { focusFTZ(); } // To match existing behavior, always return focus on cleanup (even if we didn't handle // initial focus), but it's debatable whether that's correct return function () { return returnFocusToInitiator(elementToFocusOnDismiss); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when these two props change }, [forceFocusInsideTrap, disabled]); // Handle modalization separately from first focus react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { if (!disabled && enableAriaHiddenSiblings) { var unmodalize = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["modalize"])(root.current); return unmodalize; } }, [disabled, enableAriaHiddenSiblings, root]); // Cleanup lifecyle method for internalState. Object(_fluentui_react_hooks__WEBPACK_IMPORTED_MODULE_3__["useUnmount"])(function () { // Dispose of element references so the DOM Nodes can be garbage-collected delete internalState.previouslyFocusedElementInTrapZone; }); useComponentRef(componentRef, internalState.previouslyFocusedElementInTrapZone, focusFTZ); return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "aria-labelledby": props.ariaLabelledBy }, Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getNativeProps"])(props, _Utilities__WEBPACK_IMPORTED_MODULE_2__["divProperties"]), { ref: mergedRootRef, onFocusCapture: onRootFocusCapture, onBlurCapture: onRootBlurCapture }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, bumperProps, { ref: firstBumper })), children, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, bumperProps, { ref: lastBumper })))); }); FocusTrapZone.displayName = COMPONENT_NAME; FocusTrapZone.focusStack = []; //# sourceMappingURL=FocusTrapZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.types.js ***! \******************************************************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); //# sourceMappingURL=FocusTrapZone.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/FocusTrapZone/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/FocusTrapZone/index.js ***! \****************************************************************************/ /*! exports provided: FocusTrapZone */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _FocusTrapZone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FocusTrapZone */ "./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FocusTrapZone", function() { return _FocusTrapZone__WEBPACK_IMPORTED_MODULE_0__["FocusTrapZone"]; }); /* harmony import */ var _FocusTrapZone_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FocusTrapZone.types */ "./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.types.js"); /* empty/unused harmony star reexport */ //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.base.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.base.js ***! \*************************************************************************************/ /*! exports provided: GroupFooterBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupFooterBase", function() { return GroupFooterBase; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _GroupSpacer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_1__["classNamesFunction"])(); var GroupFooterBase = function (props) { var group = props.group, groupLevel = props.groupLevel, footerText = props.footerText, indentWidth = props.indentWidth, styles = props.styles, theme = props.theme; var classNames = getClassNames(styles, { theme: theme }); if (group && footerText) { return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: classNames.root }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_GroupSpacer__WEBPACK_IMPORTED_MODULE_2__["GroupSpacer"], { indentWidth: indentWidth, count: groupLevel }), footerText)); } return null; }; //# sourceMappingURL=GroupFooter.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.js ***! \********************************************************************************/ /*! exports provided: GroupFooter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupFooter", function() { return GroupFooter; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _GroupFooter_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GroupFooter.styles */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.styles.js"); /* harmony import */ var _GroupFooter_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GroupFooter.base */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.base.js"); var GroupFooter = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_GroupFooter_base__WEBPACK_IMPORTED_MODULE_2__["GroupFooterBase"], _GroupFooter_styles__WEBPACK_IMPORTED_MODULE_1__["getStyles"], undefined, { scope: 'GroupFooter', }); //# sourceMappingURL=GroupFooter.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/GroupedList/GroupFooter.styles.js ***! \***************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); var GlobalClassNames = { root: 'ms-groupFooter', }; var getStyles = function (props) { var theme = props.theme, className = props.className; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); return { root: [ theme.fonts.medium, classNames.root, { position: 'relative', padding: '5px 38px', }, className, ], }; }; //# sourceMappingURL=GroupFooter.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.base.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.base.js ***! \*************************************************************************************/ /*! exports provided: GroupHeaderBase */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupHeaderBase", function() { return GroupHeaderBase; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib/Selection.js"); /* harmony import */ var _Check__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Check */ "./node_modules/@fluentui/react/lib/Check.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib/Icon.js"); /* harmony import */ var _GroupSpacer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); /* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Spinner */ "./node_modules/@fluentui/react/lib/Spinner.js"); /* harmony import */ var _DetailsList_DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../DetailsList/DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js"); var getClassNames = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["classNamesFunction"])(); var GroupHeaderBase = /** @class */ (function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GroupHeaderBase, _super); function GroupHeaderBase(props) { var _this = _super.call(this, props) || this; _this._toggleCollapse = function () { var _a = _this.props, group = _a.group, onToggleCollapse = _a.onToggleCollapse, isGroupLoading = _a.isGroupLoading; var isCollapsed = _this.state.isCollapsed; var newCollapsed = !isCollapsed; var newLoadingVisible = !newCollapsed && isGroupLoading && isGroupLoading(group); _this.setState({ isCollapsed: newCollapsed, isLoadingVisible: newLoadingVisible, }); if (onToggleCollapse) { onToggleCollapse(group); } }; _this._onKeyUp = function (ev) { var _a = _this.props, group = _a.group, onGroupHeaderKeyUp = _a.onGroupHeaderKeyUp; if (onGroupHeaderKeyUp) { onGroupHeaderKeyUp(ev, group); } if (!ev.defaultPrevented) { // eslint-disable-next-line deprecation/deprecation var shouldOpen = _this.state.isCollapsed && ev.which === Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTLSafeKeyCode"])(_Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].right, _this.props.theme); // eslint-disable-next-line deprecation/deprecation var shouldClose = !_this.state.isCollapsed && ev.which === Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTLSafeKeyCode"])(_Utilities__WEBPACK_IMPORTED_MODULE_2__["KeyCodes"].left, _this.props.theme); if (shouldClose || shouldOpen) { _this._toggleCollapse(); ev.stopPropagation(); ev.preventDefault(); } } }; _this._onToggleClick = function (ev) { _this._toggleCollapse(); ev.stopPropagation(); ev.preventDefault(); }; _this._onHeaderClick = function () { var _a = _this.props, group = _a.group, onGroupHeaderClick = _a.onGroupHeaderClick; if (onGroupHeaderClick) { onGroupHeaderClick(group); } }; _this._onRenderTitle = function (props) { var group = props.group; if (!group) { return null; } var onRenderName = props.onRenderName ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(props.onRenderName, _this._onRenderName) : _this._onRenderName; return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _this._classNames.title, id: _this._id, onClick: _this._onHeaderClick, role: "gridcell", "aria-colspan": _this.props.ariaColSpan, "data-selection-invoke": true }, onRenderName(props))); }; _this._onRenderName = function (props) { var group = props.group; if (!group) { return null; } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", null, group.name), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: _this._classNames.headerCount }, "(", group.count, group.hasMoreData && '+', ")"))); }; _this._id = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getId"])('GroupHeader'); _this.state = { isCollapsed: (_this.props.group && _this.props.group.isCollapsed), isLoadingVisible: false, }; return _this; } GroupHeaderBase.getDerivedStateFromProps = function (nextProps, previousState) { if (nextProps.group) { var newCollapsed = nextProps.group.isCollapsed; var isGroupLoading = nextProps.isGroupLoading; var newLoadingVisible = !newCollapsed && isGroupLoading && isGroupLoading(nextProps.group); return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, previousState), { isCollapsed: newCollapsed || false, isLoadingVisible: newLoadingVisible || false }); } return previousState; }; GroupHeaderBase.prototype.render = function () { var _a = this.props, group = _a.group, _b = _a.groupLevel, groupLevel = _b === void 0 ? 0 : _b, viewport = _a.viewport, selectionMode = _a.selectionMode, loadingText = _a.loadingText, // eslint-disable-next-line deprecation/deprecation _c = _a.isSelected, // eslint-disable-next-line deprecation/deprecation isSelected = _c === void 0 ? false : _c, _d = _a.selected, selected = _d === void 0 ? false : _d, indentWidth = _a.indentWidth, onRenderGroupHeaderCheckbox = _a.onRenderGroupHeaderCheckbox, _e = _a.isCollapsedGroupSelectVisible, isCollapsedGroupSelectVisible = _e === void 0 ? true : _e, expandButtonProps = _a.expandButtonProps, expandButtonIcon = _a.expandButtonIcon, selectAllButtonProps = _a.selectAllButtonProps, theme = _a.theme, styles = _a.styles, className = _a.className, compact = _a.compact, ariaLevel = _a.ariaLevel, ariaPosInSet = _a.ariaPosInSet, ariaSetSize = _a.ariaSetSize, ariaRowIndex = _a.ariaRowIndex, useFastIcons = _a.useFastIcons; var onRenderTitle = this.props.onRenderTitle ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(this.props.onRenderTitle, this._onRenderTitle) : this._onRenderTitle; var defaultCheckboxRender = useFastIcons ? this._fastDefaultCheckboxRender : this._defaultCheckboxRender; var onRenderCheckbox = onRenderGroupHeaderCheckbox ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(onRenderGroupHeaderCheckbox, defaultCheckboxRender) : defaultCheckboxRender; var _f = this.state, isCollapsed = _f.isCollapsed, isLoadingVisible = _f.isLoadingVisible; var canSelectGroup = selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_3__["SelectionMode"].multiple; var isSelectionCheckVisible = canSelectGroup && (isCollapsedGroupSelectVisible || !(group && group.isCollapsed)); var currentlySelected = selected || isSelected; var isRTL = Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["getRTL"])(theme); this._classNames = getClassNames(styles, { theme: theme, className: className, selected: currentlySelected, isCollapsed: isCollapsed, compact: compact, }); if (!group) { return null; } return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.root, style: viewport ? { minWidth: viewport.width } : {}, role: "row", "aria-level": ariaLevel, "aria-setsize": ariaSetSize, "aria-posinset": ariaPosInSet, "aria-rowindex": ariaRowIndex, "data-is-focusable": true, onKeyUp: this._onKeyUp, "aria-label": group.ariaLabel, "aria-labelledby": group.ariaLabel ? undefined : this._id, "aria-expanded": !this.state.isCollapsed, "aria-selected": canSelectGroup ? currentlySelected : undefined, "data-selection-index": group.startIndex, "data-selection-span": group.count }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.groupHeaderContainer, role: "presentation" }, isSelectionCheckVisible ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "gridcell" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-is-focusable": false, type: "button", className: this._classNames.check, role: "checkbox", id: this._id + "-check", "aria-checked": currentlySelected, "aria-labelledby": this._id + "-check " + this._id, "data-selection-toggle": true }, selectAllButtonProps), onRenderCheckbox({ checked: currentlySelected, theme: theme }, onRenderCheckbox)))) : ( // To make the group header align properly with the column headers, this spacer // needs to be the same width as the check cell in the column header. selectionMode !== _Selection__WEBPACK_IMPORTED_MODULE_3__["SelectionMode"].none && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_GroupSpacer__WEBPACK_IMPORTED_MODULE_6__["GroupSpacer"], { indentWidth: _DetailsList_DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_8__["CHECK_CELL_WIDTH"], count: 1 })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_GroupSpacer__WEBPACK_IMPORTED_MODULE_6__["GroupSpacer"], { indentWidth: indentWidth, count: groupLevel }), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.dropIcon, role: "presentation" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { iconName: "Tag" })), react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "gridcell" }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-is-focusable": false, "data-selection-disabled": true, type: "button", className: this._classNames.expand, onClick: this._onToggleClick, "aria-expanded": !this.state.isCollapsed }, expandButtonProps), react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { className: this._classNames.expandIsCollapsed, iconName: expandButtonIcon || (isRTL ? 'ChevronLeftMed' : 'ChevronRightMed') }))), onRenderTitle(this.props), isLoadingVisible && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Spinner__WEBPACK_IMPORTED_MODULE_7__["Spinner"], { label: loadingText })))); }; GroupHeaderBase.prototype._defaultCheckboxRender = function (checkboxProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Check__WEBPACK_IMPORTED_MODULE_4__["Check"], { checked: checkboxProps.checked }); }; GroupHeaderBase.prototype._fastDefaultCheckboxRender = function (checkboxProps) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](FastCheck, { theme: checkboxProps.theme, checked: checkboxProps.checked }); }; GroupHeaderBase.defaultProps = { expandButtonProps: { 'aria-label': 'expand collapse group' }, }; return GroupHeaderBase; }(react__WEBPACK_IMPORTED_MODULE_1__["Component"])); var FastCheck = react__WEBPACK_IMPORTED_MODULE_1__["memo"](function (props) { return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Check__WEBPACK_IMPORTED_MODULE_4__["Check"], { theme: props.theme, checked: props.checked, className: props.className, useFastIcons: true }); }); //# sourceMappingURL=GroupHeader.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.js ***! \********************************************************************************/ /*! exports provided: GroupHeader */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupHeader", function() { return GroupHeader; }); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _GroupHeader_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GroupHeader.styles */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.styles.js"); /* harmony import */ var _GroupHeader_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GroupHeader.base */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.base.js"); var GroupHeader = Object(_Utilities__WEBPACK_IMPORTED_MODULE_0__["styled"])(_GroupHeader_base__WEBPACK_IMPORTED_MODULE_2__["GroupHeaderBase"], _GroupHeader_styles__WEBPACK_IMPORTED_MODULE_1__["getStyles"], undefined, { scope: 'GroupHeader', }); //# sourceMappingURL=GroupHeader.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.styles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib/components/GroupedList/GroupHeader.styles.js ***! \***************************************************************************************/ /*! exports provided: getStyles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyles", function() { return getStyles; }); /* harmony import */ var _Styling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib/Styling.js"); /* harmony import */ var _Utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib/Utilities.js"); /* harmony import */ var _DetailsList_DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../DetailsList/DetailsRow.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRow.styles.js"); /* harmony import */ var _DetailsList_DetailsRowCheck_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DetailsList/DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib/components/DetailsList/DetailsRowCheck.styles.js"); /* harmony import */ var _GroupSpacer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib/components/GroupedList/GroupSpacer.js"); // For every group level there is a GroupSpacer added. Importing this const to have the source value in one place. var GlobalClassNames = { root: 'ms-GroupHeader', compact: 'ms-GroupHeader--compact', check: 'ms-GroupHeader-check', dropIcon: 'ms-GroupHeader-dropIcon', expand: 'ms-GroupHeader-expand', isCollapsed: 'is-collapsed', title: 'ms-GroupHeader-title', isSelected: 'is-selected', iconTag: 'ms-Icon--Tag', group: 'ms-GroupedList-group', isDropping: 'is-dropping', }; var beziers = { easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)', easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', }; var DEFAULT_GROUP_HEADER_HEIGHT = 48; var COMPACT_GROUP_HEADER_HEIGHT = 40; var getStyles = function (props) { var _a, _b, _c, _d, _e; var theme = props.theme, className = props.className, selected = props.selected, isCollapsed = props.isCollapsed, compact = props.compact; // padding from the source to align GroupHeader title with DetailsRow's first cell. var cellLeftPadding = _DetailsList_DetailsRow_styles__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CELL_STYLE_PROPS"].cellLeftPadding; var finalRowHeight = compact ? COMPACT_GROUP_HEADER_HEIGHT : DEFAULT_GROUP_HEADER_HEIGHT; var semanticColors = theme.semanticColors, palette = theme.palette, fonts = theme.fonts; var classNames = Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getGlobalClassNames"])(GlobalClassNames, theme); var checkExpandResetStyles = [ Object(_Styling__WEBPACK_IMPORTED_MODULE_0__["getFocusStyle"])(theme), { cursor: 'default', background: 'none', backgroundColor: 'transparent', border: 'none', padding: 0, // cancel default