"use strict";
(self["webpackChunk_aws_amazon_codeguru_extension"] = self["webpackChunk_aws_amazon_codeguru_extension"] || []).push([["node_modules_cloudscape-design_global-styles_dist_index_js"],{

/***/ "./node_modules/@cloudscape-design/global-styles/dist/index.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@cloudscape-design/global-styles/dist/index.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Density": () => (/* binding */ Density),
/* harmony export */   "Mode": () => (/* binding */ Mode),
/* harmony export */   "applyDensity": () => (/* binding */ applyDensity),
/* harmony export */   "applyMode": () => (/* binding */ applyMode),
/* harmony export */   "disableMotion": () => (/* binding */ disableMotion)
/* harmony export */ });
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
var Mode;
(function (Mode) {
    Mode["Light"] = "light";
    Mode["Dark"] = "dark";
})(Mode || (Mode = {}));
var Density;
(function (Density) {
    Density["Comfortable"] = "comfortable";
    Density["Compact"] = "compact";
})(Density || (Density = {}));
function hasValue(allValues, mode) {
    return Object.keys(allValues).some(function (key) { return allValues[key] === mode; });
}
function toggleClass(target, className, enabled) {
    // NB: classList.toggle does not support second argument in IE
    if (enabled) {
        target.classList.add(className);
    }
    else {
        target.classList.remove(className);
    }
}
function applyMode(mode, target) {
    if (target === void 0) { target = document.body; }
    if (mode && !hasValue(Mode, mode)) {
        console.warn("Mode \"".concat(mode, "\" is not supported"));
        return;
    }
    toggleClass(target, 'awsui-dark-mode', mode === Mode.Dark);
}
function applyDensity(density, target) {
    if (target === void 0) { target = document.body; }
    if (density && !hasValue(Density, density)) {
        console.warn("Density \"".concat(density, "\" is not supported"));
        return;
    }
    toggleClass(target, 'awsui-compact-mode', density === Density.Compact);
}
function disableMotion(disabled, target) {
    if (target === void 0) { target = document.body; }
    toggleClass(target, 'awsui-motion-disabled', disabled);
}


/***/ })

}]);
//# sourceMappingURL=node_modules_cloudscape-design_global-styles_dist_index_js.49bd81ccb2dba12e6001.js.map