@fluentui/react-button 0.20.0 → 0.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +46 -1
- package/CHANGELOG.md +29 -2
- package/dist/demo-app.js +38 -38
- package/dist-storybook/iframe.html +1 -1
- package/dist-storybook/{main.58c37029a4231428e662.bundle.js → main.87dadd1789d336577e59.bundle.js} +758 -299
- package/dist-storybook/main.87dadd1789d336577e59.bundle.js.map +1 -0
- package/dist-storybook/{runtime~main.58c37029a4231428e662.bundle.js → runtime~main.87dadd1789d336577e59.bundle.js} +1 -1
- package/dist-storybook/{runtime~main.58c37029a4231428e662.bundle.js.map → runtime~main.87dadd1789d336577e59.bundle.js.map} +1 -1
- package/dist-storybook/{vendors~main.58c37029a4231428e662.bundle.js → vendors~main.87dadd1789d336577e59.bundle.js} +174 -174
- package/dist-storybook/{vendors~main.58c37029a4231428e662.bundle.js.map → vendors~main.87dadd1789d336577e59.bundle.js.map} +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +13 -13
- package/dist-storybook/main.58c37029a4231428e662.bundle.js.map +0 -1
package/dist/demo-app.js
CHANGED
@@ -87,85 +87,85 @@
|
|
87
87
|
/******/ ({
|
88
88
|
|
89
89
|
/***/ "../../node_modules/@fluentui/keyboard-key/lib/codes.js":
|
90
|
-
|
91
|
-
!*** /mnt/
|
92
|
-
|
90
|
+
/*!***************************************************************************!*\
|
91
|
+
!*** /mnt/vss/_work/1/s/node_modules/@fluentui/keyboard-key/lib/codes.js ***!
|
92
|
+
\***************************************************************************/
|
93
93
|
/*! exports provided: codes */
|
94
94
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
95
95
|
|
96
96
|
"use strict";
|
97
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"codes\", function() { return codes; });\n/**\n * Mapping from numeric key code to key name. If the value is an array, the first element is the\n * primary key name, and the second element is the key name when shift is pressed.\n */\nvar codes = {\n // ----------------------------------------\n // By Code\n // ----------------------------------------\n 3: 'Cancel',\n 6: 'Help',\n 8: 'Backspace',\n 9: 'Tab',\n 12: 'Clear',\n 13: 'Enter',\n 16: 'Shift',\n 17: 'Control',\n 18: 'Alt',\n 19: 'Pause',\n 20: 'CapsLock',\n 27: 'Escape',\n 28: 'Convert',\n 29: 'NonConvert',\n 30: 'Accept',\n 31: 'ModeChange',\n 32: ' ',\n 33: 'PageUp',\n 34: 'PageDown',\n 35: 'End',\n 36: 'Home',\n 37: 'ArrowLeft',\n 38: 'ArrowUp',\n 39: 'ArrowRight',\n 40: 'ArrowDown',\n 41: 'Select',\n 42: 'Print',\n 43: 'Execute',\n 44: 'PrintScreen',\n 45: 'Insert',\n 46: 'Delete',\n 48: ['0', ')'],\n 49: ['1', '!'],\n 50: ['2', '@'],\n 51: ['3', '#'],\n 52: ['4', '$'],\n 53: ['5', '%'],\n 54: ['6', '^'],\n 55: ['7', '&'],\n 56: ['8', '*'],\n 57: ['9', '('],\n 65: ['a', 'A'],\n 66: ['b', 'B'],\n 67: ['c', 'C'],\n 68: ['d', 'D'],\n 69: ['e', 'E'],\n 70: ['f', 'F'],\n 71: ['g', 'G'],\n 72: ['h', 'H'],\n 73: ['i', 'I'],\n 74: ['j', 'J'],\n 75: ['k', 'K'],\n 76: ['l', 'L'],\n 77: ['m', 'M'],\n 78: ['n', 'N'],\n 79: ['o', 'O'],\n 80: ['p', 'P'],\n 81: ['q', 'Q'],\n 82: ['r', 'R'],\n 83: ['s', 'S'],\n 84: ['t', 'T'],\n 85: ['u', 'U'],\n 86: ['v', 'V'],\n 87: ['w', 'W'],\n 88: ['x', 'X'],\n 89: ['y', 'Y'],\n 90: ['z', 'Z'],\n 91: 'OS',\n 93: 'ContextMenu',\n 112: 'F1',\n 113: 'F2',\n 114: 'F3',\n 115: 'F4',\n 116: 'F5',\n 117: 'F6',\n 118: 'F7',\n 119: 'F8',\n 120: 'F9',\n 121: 'F10',\n 122: 'F11',\n 123: 'F12',\n 124: 'F13',\n 125: 'F14',\n 126: 'F15',\n 127: 'F16',\n 128: 'F17',\n 129: 'F18',\n 130: 'F19',\n 131: 'F20',\n 132: 'F21',\n 133: 'F22',\n 134: 'F23',\n 135: 'F24',\n 144: 'NumLock',\n 145: 'ScrollLock',\n 181: 'VolumeMute',\n 182: 'VolumeDown',\n 183: 'VolumeUp',\n 186: [';', ':'],\n 187: ['=', '+'],\n 188: [',', '<'],\n 189: ['-', '_'],\n 190: ['.', '>'],\n 191: ['/', '?'],\n 192: ['`', '~'],\n 219: ['[', '{'],\n 220: ['\\\\', '|'],\n 221: [']', '}'],\n 222: [\"'\", '\"'],\n 224: 'Meta',\n 225: 'AltGraph',\n 246: 'Attn',\n 247: 'CrSel',\n 248: 'ExSel',\n 249: 'EraseEof',\n 250: 'Play',\n 251: 'ZoomOut',\n};\n//# sourceMappingURL=codes.js.map\n\n//# sourceURL=webpack:////mnt/
|
97
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"codes\", function() { return codes; });\n/**\n * Mapping from numeric key code to key name. If the value is an array, the first element is the\n * primary key name, and the second element is the key name when shift is pressed.\n */\nvar codes = {\n // ----------------------------------------\n // By Code\n // ----------------------------------------\n 3: 'Cancel',\n 6: 'Help',\n 8: 'Backspace',\n 9: 'Tab',\n 12: 'Clear',\n 13: 'Enter',\n 16: 'Shift',\n 17: 'Control',\n 18: 'Alt',\n 19: 'Pause',\n 20: 'CapsLock',\n 27: 'Escape',\n 28: 'Convert',\n 29: 'NonConvert',\n 30: 'Accept',\n 31: 'ModeChange',\n 32: ' ',\n 33: 'PageUp',\n 34: 'PageDown',\n 35: 'End',\n 36: 'Home',\n 37: 'ArrowLeft',\n 38: 'ArrowUp',\n 39: 'ArrowRight',\n 40: 'ArrowDown',\n 41: 'Select',\n 42: 'Print',\n 43: 'Execute',\n 44: 'PrintScreen',\n 45: 'Insert',\n 46: 'Delete',\n 48: ['0', ')'],\n 49: ['1', '!'],\n 50: ['2', '@'],\n 51: ['3', '#'],\n 52: ['4', '$'],\n 53: ['5', '%'],\n 54: ['6', '^'],\n 55: ['7', '&'],\n 56: ['8', '*'],\n 57: ['9', '('],\n 65: ['a', 'A'],\n 66: ['b', 'B'],\n 67: ['c', 'C'],\n 68: ['d', 'D'],\n 69: ['e', 'E'],\n 70: ['f', 'F'],\n 71: ['g', 'G'],\n 72: ['h', 'H'],\n 73: ['i', 'I'],\n 74: ['j', 'J'],\n 75: ['k', 'K'],\n 76: ['l', 'L'],\n 77: ['m', 'M'],\n 78: ['n', 'N'],\n 79: ['o', 'O'],\n 80: ['p', 'P'],\n 81: ['q', 'Q'],\n 82: ['r', 'R'],\n 83: ['s', 'S'],\n 84: ['t', 'T'],\n 85: ['u', 'U'],\n 86: ['v', 'V'],\n 87: ['w', 'W'],\n 88: ['x', 'X'],\n 89: ['y', 'Y'],\n 90: ['z', 'Z'],\n 91: 'OS',\n 93: 'ContextMenu',\n 112: 'F1',\n 113: 'F2',\n 114: 'F3',\n 115: 'F4',\n 116: 'F5',\n 117: 'F6',\n 118: 'F7',\n 119: 'F8',\n 120: 'F9',\n 121: 'F10',\n 122: 'F11',\n 123: 'F12',\n 124: 'F13',\n 125: 'F14',\n 126: 'F15',\n 127: 'F16',\n 128: 'F17',\n 129: 'F18',\n 130: 'F19',\n 131: 'F20',\n 132: 'F21',\n 133: 'F22',\n 134: 'F23',\n 135: 'F24',\n 144: 'NumLock',\n 145: 'ScrollLock',\n 181: 'VolumeMute',\n 182: 'VolumeDown',\n 183: 'VolumeUp',\n 186: [';', ':'],\n 187: ['=', '+'],\n 188: [',', '<'],\n 189: ['-', '_'],\n 190: ['.', '>'],\n 191: ['/', '?'],\n 192: ['`', '~'],\n 219: ['[', '{'],\n 220: ['\\\\', '|'],\n 221: [']', '}'],\n 222: [\"'\", '\"'],\n 224: 'Meta',\n 225: 'AltGraph',\n 246: 'Attn',\n 247: 'CrSel',\n 248: 'ExSel',\n 249: 'EraseEof',\n 250: 'Play',\n 251: 'ZoomOut',\n};\n//# sourceMappingURL=codes.js.map\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/@fluentui/keyboard-key/lib/codes.js?");
|
98
98
|
|
99
99
|
/***/ }),
|
100
100
|
|
101
101
|
/***/ "../../node_modules/@fluentui/keyboard-key/lib/index.js":
|
102
|
-
|
103
|
-
!*** /mnt/
|
104
|
-
|
102
|
+
/*!***************************************************************************!*\
|
103
|
+
!*** /mnt/vss/_work/1/s/node_modules/@fluentui/keyboard-key/lib/index.js ***!
|
104
|
+
\***************************************************************************/
|
105
105
|
/*! exports provided: getCode, getKey, keyboardKey, SpacebarKey, Digit0Key, Digit1Key, Digit2Key, Digit3Key, Digit4Key, Digit5Key, Digit6Key, Digit7Key, Digit8Key, Digit9Key, TildeKey, GraveAccentKey, ExclamationPointKey, AtSignKey, PoundSignKey, PercentSignKey, CaretKey, AmpersandKey, PlusSignKey, MinusSignKey, EqualsSignKey, DivisionSignKey, MultiplicationSignKey, CommaKey, DecimalKey, ColonKey, SemicolonKey, PipeKey, BackSlashKey, QuestionMarkKey, SingleQuoteKey, DoubleQuoteKey, LeftCurlyBraceKey, RightCurlyBraceKey, LeftParenthesisKey, RightParenthesisKey, LeftAngleBracketKey, RightAngleBracketKey, LeftSquareBracketKey, RightSquareBracketKey, ArrowDownKey, ArrowLeftKey, ArrowRightKey, ArrowUpKey, EndKey, EnterKey, HomeKey, PageDownKey, PageUpKey, TabKey */
|
106
106
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
107
107
|
|
108
108
|
"use strict";
|
109
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCode\", function() { return getCode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getKey\", function() { return getKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"keyboardKey\", function() { return keyboardKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SpacebarKey\", function() { return SpacebarKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit0Key\", function() { return Digit0Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit1Key\", function() { return Digit1Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit2Key\", function() { return Digit2Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit3Key\", function() { return Digit3Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit4Key\", function() { return Digit4Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit5Key\", function() { return Digit5Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit6Key\", function() { return Digit6Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit7Key\", function() { return Digit7Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit8Key\", function() { return Digit8Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit9Key\", function() { return Digit9Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TildeKey\", function() { return TildeKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GraveAccentKey\", function() { return GraveAccentKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ExclamationPointKey\", function() { return ExclamationPointKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AtSignKey\", function() { return AtSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PoundSignKey\", function() { return PoundSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PercentSignKey\", function() { return PercentSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CaretKey\", function() { return CaretKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AmpersandKey\", function() { return AmpersandKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PlusSignKey\", function() { return PlusSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MinusSignKey\", function() { return MinusSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EqualsSignKey\", function() { return EqualsSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DivisionSignKey\", function() { return DivisionSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MultiplicationSignKey\", function() { return MultiplicationSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CommaKey\", function() { return CommaKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DecimalKey\", function() { return DecimalKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ColonKey\", function() { return ColonKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SemicolonKey\", function() { return SemicolonKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PipeKey\", function() { return PipeKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BackSlashKey\", function() { return BackSlashKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"QuestionMarkKey\", function() { return QuestionMarkKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SingleQuoteKey\", function() { return SingleQuoteKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DoubleQuoteKey\", function() { return DoubleQuoteKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftCurlyBraceKey\", function() { return LeftCurlyBraceKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightCurlyBraceKey\", function() { return RightCurlyBraceKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftParenthesisKey\", function() { return LeftParenthesisKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightParenthesisKey\", function() { return RightParenthesisKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftAngleBracketKey\", function() { return LeftAngleBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightAngleBracketKey\", function() { return RightAngleBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftSquareBracketKey\", function() { return LeftSquareBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightSquareBracketKey\", function() { return RightSquareBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowDownKey\", function() { return ArrowDownKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowLeftKey\", function() { return ArrowLeftKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowRightKey\", function() { return ArrowRightKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowUpKey\", function() { return ArrowUpKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EndKey\", function() { return EndKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EnterKey\", function() { return EnterKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"HomeKey\", function() { return HomeKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PageDownKey\", function() { return PageDownKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PageUpKey\", function() { return PageUpKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TabKey\", function() { return TabKey; });\n/* harmony import */ var _codes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./codes */ \"../../node_modules/@fluentui/keyboard-key/lib/codes.js\");\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nvar isObject = function (val) {\n return val !== null && !Array.isArray(val) && typeof val === 'object';\n};\n/**\n * Get the `keyCode` or `which` value from a keyboard event or `key` name.\n * If an object is provided, the precedence of properties is `keyCode`, `which`, `key`.\n * @param eventOrKey - A keyboard event-like object or `key` name. If an object, at least one of\n * `key`, `keyCode`, or `which` must be defined.\n */\nfunction getCode(eventOrKey) {\n if (isObject(eventOrKey)) {\n // eslint-disable-next-line deprecation/deprecation, @typescript-eslint/no-explicit-any\n return eventOrKey.keyCode || eventOrKey.which || keyboardKey[eventOrKey.key];\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return keyboardKey[eventOrKey];\n}\n/**\n * Get the key name from a keyboard event, `keyCode`, or `which` value.\n * If an object is provided, the precedence of properties is `key`, `keyCode`, `which`.\n * @param eventOrCode - A keyboard event-like object or key code. If an object, at least one of\n * `key`, `keyCode`, or `which` must be defined.\n */\nfunction getKey(eventOrCode) {\n var isEvent = isObject(eventOrCode);\n var event = eventOrCode;\n // handle events with a `key` already defined\n if (isEvent && event.key) {\n return event.key;\n }\n // eslint-disable-next-line deprecation/deprecation\n var name = _codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"][(isEvent ? event.keyCode || event.which : eventOrCode)];\n if (Array.isArray(name)) {\n if (isEvent) {\n name = name[event.shiftKey ? 1 : 0];\n }\n else {\n name = name[0];\n }\n }\n return name;\n}\n/**\n * Mapping of keyboard keys with aliases and codes.\n */\nvar keyboardKey = {};\n// Populate names on keyboardKey.\nfor (var code in _codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"]) {\n if (_codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"].hasOwnProperty(code)) {\n var value = _codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"][code];\n if (typeof value === 'string') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n keyboardKey[value] = Number(code);\n }\n else {\n // Array of valid values which map to the same code.\n for (var i = 0; i < value.length; i++) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n keyboardKey[value[i]] = Number(code);\n }\n }\n }\n}\n// As single exports for keys that normally have special functionality attached to them.\nvar SpacebarKey = keyboardKey[' '];\nvar Digit0Key = keyboardKey['0'];\nvar Digit1Key = keyboardKey['1'];\nvar Digit2Key = keyboardKey['2'];\nvar Digit3Key = keyboardKey['3'];\nvar Digit4Key = keyboardKey['4'];\nvar Digit5Key = keyboardKey['5'];\nvar Digit6Key = keyboardKey['6'];\nvar Digit7Key = keyboardKey['7'];\nvar Digit8Key = keyboardKey['8'];\nvar Digit9Key = keyboardKey['9'];\nvar TildeKey = keyboardKey['~'];\nvar GraveAccentKey = keyboardKey['`'];\nvar ExclamationPointKey = keyboardKey['!'];\nvar AtSignKey = keyboardKey['@'];\nvar PoundSignKey = keyboardKey['#'];\nvar PercentSignKey = keyboardKey['%'];\nvar CaretKey = keyboardKey['^'];\nvar AmpersandKey = keyboardKey['&'];\nvar PlusSignKey = keyboardKey['+'];\nvar MinusSignKey = keyboardKey['-'];\nvar EqualsSignKey = keyboardKey['='];\nvar DivisionSignKey = keyboardKey['/'];\nvar MultiplicationSignKey = keyboardKey['*'];\nvar CommaKey = keyboardKey[','];\nvar DecimalKey = keyboardKey['.'];\nvar ColonKey = keyboardKey[':'];\nvar SemicolonKey = keyboardKey[';'];\nvar PipeKey = keyboardKey['|'];\nvar BackSlashKey = keyboardKey['\\\\'];\nvar QuestionMarkKey = keyboardKey['?'];\nvar SingleQuoteKey = keyboardKey[\"'\"];\nvar DoubleQuoteKey = keyboardKey['\"'];\nvar LeftCurlyBraceKey = keyboardKey['{'];\nvar RightCurlyBraceKey = keyboardKey['}'];\nvar LeftParenthesisKey = keyboardKey['('];\nvar RightParenthesisKey = keyboardKey[')'];\nvar LeftAngleBracketKey = keyboardKey['<'];\nvar RightAngleBracketKey = keyboardKey['>'];\nvar LeftSquareBracketKey = keyboardKey['['];\nvar RightSquareBracketKey = keyboardKey[']'];\nvar ArrowDownKey = keyboardKey.ArrowDown;\nvar ArrowLeftKey = keyboardKey.ArrowLeft;\nvar ArrowRightKey = keyboardKey.ArrowRight;\nvar ArrowUpKey = keyboardKey.ArrowUp;\nvar EndKey = keyboardKey.End;\nvar EnterKey = keyboardKey.Enter;\nvar HomeKey = keyboardKey.Home;\nvar PageDownKey = keyboardKey.PageDown;\nvar PageUpKey = keyboardKey.PageUp;\nvar TabKey = keyboardKey.Tab;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:////mnt/work/5/s/node_modules/@fluentui/keyboard-key/lib/index.js?");
|
109
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCode\", function() { return getCode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getKey\", function() { return getKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"keyboardKey\", function() { return keyboardKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SpacebarKey\", function() { return SpacebarKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit0Key\", function() { return Digit0Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit1Key\", function() { return Digit1Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit2Key\", function() { return Digit2Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit3Key\", function() { return Digit3Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit4Key\", function() { return Digit4Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit5Key\", function() { return Digit5Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit6Key\", function() { return Digit6Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit7Key\", function() { return Digit7Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit8Key\", function() { return Digit8Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Digit9Key\", function() { return Digit9Key; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TildeKey\", function() { return TildeKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GraveAccentKey\", function() { return GraveAccentKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ExclamationPointKey\", function() { return ExclamationPointKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AtSignKey\", function() { return AtSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PoundSignKey\", function() { return PoundSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PercentSignKey\", function() { return PercentSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CaretKey\", function() { return CaretKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AmpersandKey\", function() { return AmpersandKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PlusSignKey\", function() { return PlusSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MinusSignKey\", function() { return MinusSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EqualsSignKey\", function() { return EqualsSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DivisionSignKey\", function() { return DivisionSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MultiplicationSignKey\", function() { return MultiplicationSignKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CommaKey\", function() { return CommaKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DecimalKey\", function() { return DecimalKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ColonKey\", function() { return ColonKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SemicolonKey\", function() { return SemicolonKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PipeKey\", function() { return PipeKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BackSlashKey\", function() { return BackSlashKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"QuestionMarkKey\", function() { return QuestionMarkKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SingleQuoteKey\", function() { return SingleQuoteKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DoubleQuoteKey\", function() { return DoubleQuoteKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftCurlyBraceKey\", function() { return LeftCurlyBraceKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightCurlyBraceKey\", function() { return RightCurlyBraceKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftParenthesisKey\", function() { return LeftParenthesisKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightParenthesisKey\", function() { return RightParenthesisKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftAngleBracketKey\", function() { return LeftAngleBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightAngleBracketKey\", function() { return RightAngleBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeftSquareBracketKey\", function() { return LeftSquareBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RightSquareBracketKey\", function() { return RightSquareBracketKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowDownKey\", function() { return ArrowDownKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowLeftKey\", function() { return ArrowLeftKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowRightKey\", function() { return ArrowRightKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ArrowUpKey\", function() { return ArrowUpKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EndKey\", function() { return EndKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EnterKey\", function() { return EnterKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"HomeKey\", function() { return HomeKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PageDownKey\", function() { return PageDownKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PageUpKey\", function() { return PageUpKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TabKey\", function() { return TabKey; });\n/* harmony import */ var _codes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./codes */ \"../../node_modules/@fluentui/keyboard-key/lib/codes.js\");\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nvar isObject = function (val) {\n return val !== null && !Array.isArray(val) && typeof val === 'object';\n};\n/**\n * Get the `keyCode` or `which` value from a keyboard event or `key` name.\n * If an object is provided, the precedence of properties is `keyCode`, `which`, `key`.\n * @param eventOrKey - A keyboard event-like object or `key` name. If an object, at least one of\n * `key`, `keyCode`, or `which` must be defined.\n */\nfunction getCode(eventOrKey) {\n if (isObject(eventOrKey)) {\n // eslint-disable-next-line deprecation/deprecation, @typescript-eslint/no-explicit-any\n return eventOrKey.keyCode || eventOrKey.which || keyboardKey[eventOrKey.key];\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return keyboardKey[eventOrKey];\n}\n/**\n * Get the key name from a keyboard event, `keyCode`, or `which` value.\n * If an object is provided, the precedence of properties is `key`, `keyCode`, `which`.\n * @param eventOrCode - A keyboard event-like object or key code. If an object, at least one of\n * `key`, `keyCode`, or `which` must be defined.\n */\nfunction getKey(eventOrCode) {\n var isEvent = isObject(eventOrCode);\n var event = eventOrCode;\n // handle events with a `key` already defined\n if (isEvent && event.key) {\n return event.key;\n }\n // eslint-disable-next-line deprecation/deprecation\n var name = _codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"][(isEvent ? event.keyCode || event.which : eventOrCode)];\n if (Array.isArray(name)) {\n if (isEvent) {\n name = name[event.shiftKey ? 1 : 0];\n }\n else {\n name = name[0];\n }\n }\n return name;\n}\n/**\n * Mapping of keyboard keys with aliases and codes.\n */\nvar keyboardKey = {};\n// Populate names on keyboardKey.\nfor (var code in _codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"]) {\n if (_codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"].hasOwnProperty(code)) {\n var value = _codes__WEBPACK_IMPORTED_MODULE_0__[\"codes\"][code];\n if (typeof value === 'string') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n keyboardKey[value] = Number(code);\n }\n else {\n // Array of valid values which map to the same code.\n for (var i = 0; i < value.length; i++) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n keyboardKey[value[i]] = Number(code);\n }\n }\n }\n}\n// As single exports for keys that normally have special functionality attached to them.\nvar SpacebarKey = keyboardKey[' '];\nvar Digit0Key = keyboardKey['0'];\nvar Digit1Key = keyboardKey['1'];\nvar Digit2Key = keyboardKey['2'];\nvar Digit3Key = keyboardKey['3'];\nvar Digit4Key = keyboardKey['4'];\nvar Digit5Key = keyboardKey['5'];\nvar Digit6Key = keyboardKey['6'];\nvar Digit7Key = keyboardKey['7'];\nvar Digit8Key = keyboardKey['8'];\nvar Digit9Key = keyboardKey['9'];\nvar TildeKey = keyboardKey['~'];\nvar GraveAccentKey = keyboardKey['`'];\nvar ExclamationPointKey = keyboardKey['!'];\nvar AtSignKey = keyboardKey['@'];\nvar PoundSignKey = keyboardKey['#'];\nvar PercentSignKey = keyboardKey['%'];\nvar CaretKey = keyboardKey['^'];\nvar AmpersandKey = keyboardKey['&'];\nvar PlusSignKey = keyboardKey['+'];\nvar MinusSignKey = keyboardKey['-'];\nvar EqualsSignKey = keyboardKey['='];\nvar DivisionSignKey = keyboardKey['/'];\nvar MultiplicationSignKey = keyboardKey['*'];\nvar CommaKey = keyboardKey[','];\nvar DecimalKey = keyboardKey['.'];\nvar ColonKey = keyboardKey[':'];\nvar SemicolonKey = keyboardKey[';'];\nvar PipeKey = keyboardKey['|'];\nvar BackSlashKey = keyboardKey['\\\\'];\nvar QuestionMarkKey = keyboardKey['?'];\nvar SingleQuoteKey = keyboardKey[\"'\"];\nvar DoubleQuoteKey = keyboardKey['\"'];\nvar LeftCurlyBraceKey = keyboardKey['{'];\nvar RightCurlyBraceKey = keyboardKey['}'];\nvar LeftParenthesisKey = keyboardKey['('];\nvar RightParenthesisKey = keyboardKey[')'];\nvar LeftAngleBracketKey = keyboardKey['<'];\nvar RightAngleBracketKey = keyboardKey['>'];\nvar LeftSquareBracketKey = keyboardKey['['];\nvar RightSquareBracketKey = keyboardKey[']'];\nvar ArrowDownKey = keyboardKey.ArrowDown;\nvar ArrowLeftKey = keyboardKey.ArrowLeft;\nvar ArrowRightKey = keyboardKey.ArrowRight;\nvar ArrowUpKey = keyboardKey.ArrowUp;\nvar EndKey = keyboardKey.End;\nvar EnterKey = keyboardKey.Enter;\nvar HomeKey = keyboardKey.Home;\nvar PageDownKey = keyboardKey.PageDown;\nvar PageUpKey = keyboardKey.PageUp;\nvar TabKey = keyboardKey.Tab;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/@fluentui/keyboard-key/lib/index.js?");
|
110
110
|
|
111
111
|
/***/ }),
|
112
112
|
|
113
113
|
/***/ "../../node_modules/@microsoft/load-themed-styles/lib-es6/index.js":
|
114
|
-
|
115
|
-
!*** /mnt/
|
116
|
-
|
114
|
+
/*!**************************************************************************************!*\
|
115
|
+
!*** /mnt/vss/_work/1/s/node_modules/@microsoft/load-themed-styles/lib-es6/index.js ***!
|
116
|
+
\**************************************************************************************/
|
117
117
|
/*! exports provided: loadStyles, configureLoadStyles, configureRunMode, flush, loadTheme, clearStyles, detokenize, splitStyles */
|
118
118
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
119
119
|
|
120
120
|
"use strict";
|
121
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadStyles\", function() { return loadStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"configureLoadStyles\", function() { return configureLoadStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"configureRunMode\", function() { return configureRunMode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"flush\", function() { return flush; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadTheme\", function() { return loadTheme; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearStyles\", function() { return clearStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detokenize\", function() { return detokenize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"splitStyles\", function() { return splitStyles; });\n/**\n * An IThemingInstruction can specify a rawString to be preserved or a theme slot and a default value\n * to use if that slot is not specified by the theme.\n */\nvar __assign = (undefined && undefined.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n// Store the theming state in __themeState__ global scope for reuse in the case of duplicate\n// load-themed-styles hosted on the page.\nvar _root = (typeof window === 'undefined') ? global : window; // eslint-disable-line @typescript-eslint/no-explicit-any\n// Nonce string to inject into script tag if one provided. This is used in CSP (Content Security Policy).\nvar _styleNonce = _root && _root.CSPSettings && _root.CSPSettings.nonce;\nvar _themeState = initializeThemeState();\n/**\n * Matches theming tokens. For example, \"[theme: themeSlotName, default: #FFF]\" (including the quotes).\n */\nvar _themeTokenRegex = /[\\'\\\"]\\[theme:\\s*(\\w+)\\s*(?:\\,\\s*default:\\s*([\\\\\"\\']?[\\.\\,\\(\\)\\#\\-\\s\\w]*[\\.\\,\\(\\)\\#\\-\\w][\\\"\\']?))?\\s*\\][\\'\\\"]/g;\nvar now = function () { return (typeof performance !== 'undefined' && !!performance.now) ? performance.now() : Date.now(); };\nfunction measure(func) {\n var start = now();\n func();\n var end = now();\n _themeState.perf.duration += end - start;\n}\n/**\n * initialize global state object\n */\nfunction initializeThemeState() {\n var state = _root.__themeState__ || {\n theme: undefined,\n lastStyleElement: undefined,\n registeredStyles: []\n };\n if (!state.runState) {\n state = __assign({}, (state), { perf: {\n count: 0,\n duration: 0\n }, runState: {\n flushTimer: 0,\n mode: 0 /* sync */,\n buffer: []\n } });\n }\n if (!state.registeredThemableStyles) {\n state = __assign({}, (state), { registeredThemableStyles: [] });\n }\n _root.__themeState__ = state;\n return state;\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load\n * event is fired.\n * @param {string | ThemableArray} styles Themable style text to register.\n * @param {boolean} loadAsync When true, always load styles in async mode, irrespective of current sync mode.\n */\nfunction loadStyles(styles, loadAsync) {\n if (loadAsync === void 0) { loadAsync = false; }\n measure(function () {\n var styleParts = Array.isArray(styles) ? styles : splitStyles(styles);\n var _a = _themeState.runState, mode = _a.mode, buffer = _a.buffer, flushTimer = _a.flushTimer;\n if (loadAsync || mode === 1 /* async */) {\n buffer.push(styleParts);\n if (!flushTimer) {\n _themeState.runState.flushTimer = asyncLoadStyles();\n }\n }\n else {\n applyThemableStyles(styleParts);\n }\n });\n}\n/**\n * Allows for customizable loadStyles logic. e.g. for server side rendering application\n * @param {(processedStyles: string, rawStyles?: string | ThemableArray) => void}\n * a loadStyles callback that gets called when styles are loaded or reloaded\n */\nfunction configureLoadStyles(loadStylesFn) {\n _themeState.loadStyles = loadStylesFn;\n}\n/**\n * Configure run mode of load-themable-styles\n * @param mode load-themable-styles run mode, async or sync\n */\nfunction configureRunMode(mode) {\n _themeState.runState.mode = mode;\n}\n/**\n * external code can call flush to synchronously force processing of currently buffered styles\n */\nfunction flush() {\n measure(function () {\n var styleArrays = _themeState.runState.buffer.slice();\n _themeState.runState.buffer = [];\n var mergedStyleArray = [].concat.apply([], styleArrays);\n if (mergedStyleArray.length > 0) {\n applyThemableStyles(mergedStyleArray);\n }\n });\n}\n/**\n * register async loadStyles\n */\nfunction asyncLoadStyles() {\n return setTimeout(function () {\n _themeState.runState.flushTimer = 0;\n flush();\n }, 0);\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load event\n * is fired.\n * @param {string} styleText Style to register.\n * @param {IStyleRecord} styleRecord Existing style record to re-apply.\n */\nfunction applyThemableStyles(stylesArray, styleRecord) {\n if (_themeState.loadStyles) {\n _themeState.loadStyles(resolveThemableArray(stylesArray).styleString, stylesArray);\n }\n else {\n registerStyles(stylesArray);\n }\n}\n/**\n * Registers a set theme tokens to find and replace. If styles were already registered, they will be\n * replaced.\n * @param {theme} theme JSON object of theme tokens to values.\n */\nfunction loadTheme(theme) {\n _themeState.theme = theme;\n // reload styles.\n reloadStyles();\n}\n/**\n * Clear already registered style elements and style records in theme_State object\n * @param option - specify which group of registered styles should be cleared.\n * Default to be both themable and non-themable styles will be cleared\n */\nfunction clearStyles(option) {\n if (option === void 0) { option = 3 /* all */; }\n if (option === 3 /* all */ || option === 2 /* onlyNonThemable */) {\n clearStylesInternal(_themeState.registeredStyles);\n _themeState.registeredStyles = [];\n }\n if (option === 3 /* all */ || option === 1 /* onlyThemable */) {\n clearStylesInternal(_themeState.registeredThemableStyles);\n _themeState.registeredThemableStyles = [];\n }\n}\nfunction clearStylesInternal(records) {\n records.forEach(function (styleRecord) {\n var styleElement = styleRecord && styleRecord.styleElement;\n if (styleElement && styleElement.parentElement) {\n styleElement.parentElement.removeChild(styleElement);\n }\n });\n}\n/**\n * Reloads styles.\n */\nfunction reloadStyles() {\n if (_themeState.theme) {\n var themableStyles = [];\n for (var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++) {\n var styleRecord = _a[_i];\n themableStyles.push(styleRecord.themableStyle);\n }\n if (themableStyles.length > 0) {\n clearStyles(1 /* onlyThemable */);\n applyThemableStyles([].concat.apply([], themableStyles));\n }\n }\n}\n/**\n * Find theme tokens and replaces them with provided theme values.\n * @param {string} styles Tokenized styles to fix.\n */\nfunction detokenize(styles) {\n if (styles) {\n styles = resolveThemableArray(splitStyles(styles)).styleString;\n }\n return styles;\n}\n/**\n * Resolves ThemingInstruction objects in an array and joins the result into a string.\n * @param {ThemableArray} splitStyleArray ThemableArray to resolve and join.\n */\nfunction resolveThemableArray(splitStyleArray) {\n var theme = _themeState.theme;\n var themable = false;\n // Resolve the array of theming instructions to an array of strings.\n // Then join the array to produce the final CSS string.\n var resolvedArray = (splitStyleArray || []).map(function (currentValue) {\n var themeSlot = currentValue.theme;\n if (themeSlot) {\n themable = true;\n // A theming annotation. Resolve it.\n var themedValue = theme ? theme[themeSlot] : undefined;\n var defaultValue = currentValue.defaultValue || 'inherit';\n // Warn to console if we hit an unthemed value even when themes are provided, but only if \"DEBUG\" is true.\n // Allow the themedValue to be undefined to explicitly request the default value.\n if (theme && !themedValue && console && !(themeSlot in theme) && typeof DEBUG !== 'undefined' && DEBUG) {\n console.warn(\"Theming value not provided for \\\"\" + themeSlot + \"\\\". Falling back to \\\"\" + defaultValue + \"\\\".\");\n }\n return themedValue || defaultValue;\n }\n else {\n // A non-themable string. Preserve it.\n return currentValue.rawString;\n }\n });\n return {\n styleString: resolvedArray.join(''),\n themable: themable\n };\n}\n/**\n * Split tokenized CSS into an array of strings and theme specification objects\n * @param {string} styles Tokenized styles to split.\n */\nfunction splitStyles(styles) {\n var result = [];\n if (styles) {\n var pos = 0; // Current position in styles.\n var tokenMatch = void 0; // eslint-disable-line no-restricted-syntax\n while ((tokenMatch = _themeTokenRegex.exec(styles))) {\n var matchIndex = tokenMatch.index;\n if (matchIndex > pos) {\n result.push({\n rawString: styles.substring(pos, matchIndex)\n });\n }\n result.push({\n theme: tokenMatch[1],\n defaultValue: tokenMatch[2] // May be undefined\n });\n // index of the first character after the current match\n pos = _themeTokenRegex.lastIndex;\n }\n // Push the rest of the string after the last match.\n result.push({\n rawString: styles.substring(pos)\n });\n }\n return result;\n}\n/**\n * Registers a set of style text. If it is registered too early, we will register it when the\n * window.load event is fired.\n * @param {ThemableArray} styleArray Array of IThemingInstruction objects to register.\n * @param {IStyleRecord} styleRecord May specify a style Element to update.\n */\nfunction registerStyles(styleArray) {\n if (typeof document === 'undefined') {\n return;\n }\n var head = document.getElementsByTagName('head')[0];\n var styleElement = document.createElement('style');\n var _a = resolveThemableArray(styleArray), styleString = _a.styleString, themable = _a.themable;\n styleElement.setAttribute('data-load-themed-styles', 'true');\n styleElement.type = 'text/css';\n if (_styleNonce) {\n styleElement.setAttribute('nonce', _styleNonce);\n }\n styleElement.appendChild(document.createTextNode(styleString));\n _themeState.perf.count++;\n head.appendChild(styleElement);\n var ev = document.createEvent('HTMLEvents');\n ev.initEvent('styleinsert', true /* bubbleEvent */, false /* cancelable */);\n ev.args = {\n newStyle: styleElement\n };\n document.dispatchEvent(ev);\n var record = {\n styleElement: styleElement,\n themableStyle: styleArray\n };\n if (themable) {\n _themeState.registeredThemableStyles.push(record);\n }\n else {\n _themeState.registeredStyles.push(record);\n }\n}\n//# sourceMappingURL=index.js.map\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:////mnt/work/5/s/node_modules/@microsoft/load-themed-styles/lib-es6/index.js?");
|
121
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadStyles\", function() { return loadStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"configureLoadStyles\", function() { return configureLoadStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"configureRunMode\", function() { return configureRunMode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"flush\", function() { return flush; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadTheme\", function() { return loadTheme; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearStyles\", function() { return clearStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detokenize\", function() { return detokenize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"splitStyles\", function() { return splitStyles; });\n/**\n * An IThemingInstruction can specify a rawString to be preserved or a theme slot and a default value\n * to use if that slot is not specified by the theme.\n */\nvar __assign = (undefined && undefined.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n// Store the theming state in __themeState__ global scope for reuse in the case of duplicate\n// load-themed-styles hosted on the page.\nvar _root = (typeof window === 'undefined') ? global : window; // eslint-disable-line @typescript-eslint/no-explicit-any\n// Nonce string to inject into script tag if one provided. This is used in CSP (Content Security Policy).\nvar _styleNonce = _root && _root.CSPSettings && _root.CSPSettings.nonce;\nvar _themeState = initializeThemeState();\n/**\n * Matches theming tokens. For example, \"[theme: themeSlotName, default: #FFF]\" (including the quotes).\n */\nvar _themeTokenRegex = /[\\'\\\"]\\[theme:\\s*(\\w+)\\s*(?:\\,\\s*default:\\s*([\\\\\"\\']?[\\.\\,\\(\\)\\#\\-\\s\\w]*[\\.\\,\\(\\)\\#\\-\\w][\\\"\\']?))?\\s*\\][\\'\\\"]/g;\nvar now = function () { return (typeof performance !== 'undefined' && !!performance.now) ? performance.now() : Date.now(); };\nfunction measure(func) {\n var start = now();\n func();\n var end = now();\n _themeState.perf.duration += end - start;\n}\n/**\n * initialize global state object\n */\nfunction initializeThemeState() {\n var state = _root.__themeState__ || {\n theme: undefined,\n lastStyleElement: undefined,\n registeredStyles: []\n };\n if (!state.runState) {\n state = __assign({}, (state), { perf: {\n count: 0,\n duration: 0\n }, runState: {\n flushTimer: 0,\n mode: 0 /* sync */,\n buffer: []\n } });\n }\n if (!state.registeredThemableStyles) {\n state = __assign({}, (state), { registeredThemableStyles: [] });\n }\n _root.__themeState__ = state;\n return state;\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load\n * event is fired.\n * @param {string | ThemableArray} styles Themable style text to register.\n * @param {boolean} loadAsync When true, always load styles in async mode, irrespective of current sync mode.\n */\nfunction loadStyles(styles, loadAsync) {\n if (loadAsync === void 0) { loadAsync = false; }\n measure(function () {\n var styleParts = Array.isArray(styles) ? styles : splitStyles(styles);\n var _a = _themeState.runState, mode = _a.mode, buffer = _a.buffer, flushTimer = _a.flushTimer;\n if (loadAsync || mode === 1 /* async */) {\n buffer.push(styleParts);\n if (!flushTimer) {\n _themeState.runState.flushTimer = asyncLoadStyles();\n }\n }\n else {\n applyThemableStyles(styleParts);\n }\n });\n}\n/**\n * Allows for customizable loadStyles logic. e.g. for server side rendering application\n * @param {(processedStyles: string, rawStyles?: string | ThemableArray) => void}\n * a loadStyles callback that gets called when styles are loaded or reloaded\n */\nfunction configureLoadStyles(loadStylesFn) {\n _themeState.loadStyles = loadStylesFn;\n}\n/**\n * Configure run mode of load-themable-styles\n * @param mode load-themable-styles run mode, async or sync\n */\nfunction configureRunMode(mode) {\n _themeState.runState.mode = mode;\n}\n/**\n * external code can call flush to synchronously force processing of currently buffered styles\n */\nfunction flush() {\n measure(function () {\n var styleArrays = _themeState.runState.buffer.slice();\n _themeState.runState.buffer = [];\n var mergedStyleArray = [].concat.apply([], styleArrays);\n if (mergedStyleArray.length > 0) {\n applyThemableStyles(mergedStyleArray);\n }\n });\n}\n/**\n * register async loadStyles\n */\nfunction asyncLoadStyles() {\n return setTimeout(function () {\n _themeState.runState.flushTimer = 0;\n flush();\n }, 0);\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load event\n * is fired.\n * @param {string} styleText Style to register.\n * @param {IStyleRecord} styleRecord Existing style record to re-apply.\n */\nfunction applyThemableStyles(stylesArray, styleRecord) {\n if (_themeState.loadStyles) {\n _themeState.loadStyles(resolveThemableArray(stylesArray).styleString, stylesArray);\n }\n else {\n registerStyles(stylesArray);\n }\n}\n/**\n * Registers a set theme tokens to find and replace. If styles were already registered, they will be\n * replaced.\n * @param {theme} theme JSON object of theme tokens to values.\n */\nfunction loadTheme(theme) {\n _themeState.theme = theme;\n // reload styles.\n reloadStyles();\n}\n/**\n * Clear already registered style elements and style records in theme_State object\n * @param option - specify which group of registered styles should be cleared.\n * Default to be both themable and non-themable styles will be cleared\n */\nfunction clearStyles(option) {\n if (option === void 0) { option = 3 /* all */; }\n if (option === 3 /* all */ || option === 2 /* onlyNonThemable */) {\n clearStylesInternal(_themeState.registeredStyles);\n _themeState.registeredStyles = [];\n }\n if (option === 3 /* all */ || option === 1 /* onlyThemable */) {\n clearStylesInternal(_themeState.registeredThemableStyles);\n _themeState.registeredThemableStyles = [];\n }\n}\nfunction clearStylesInternal(records) {\n records.forEach(function (styleRecord) {\n var styleElement = styleRecord && styleRecord.styleElement;\n if (styleElement && styleElement.parentElement) {\n styleElement.parentElement.removeChild(styleElement);\n }\n });\n}\n/**\n * Reloads styles.\n */\nfunction reloadStyles() {\n if (_themeState.theme) {\n var themableStyles = [];\n for (var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++) {\n var styleRecord = _a[_i];\n themableStyles.push(styleRecord.themableStyle);\n }\n if (themableStyles.length > 0) {\n clearStyles(1 /* onlyThemable */);\n applyThemableStyles([].concat.apply([], themableStyles));\n }\n }\n}\n/**\n * Find theme tokens and replaces them with provided theme values.\n * @param {string} styles Tokenized styles to fix.\n */\nfunction detokenize(styles) {\n if (styles) {\n styles = resolveThemableArray(splitStyles(styles)).styleString;\n }\n return styles;\n}\n/**\n * Resolves ThemingInstruction objects in an array and joins the result into a string.\n * @param {ThemableArray} splitStyleArray ThemableArray to resolve and join.\n */\nfunction resolveThemableArray(splitStyleArray) {\n var theme = _themeState.theme;\n var themable = false;\n // Resolve the array of theming instructions to an array of strings.\n // Then join the array to produce the final CSS string.\n var resolvedArray = (splitStyleArray || []).map(function (currentValue) {\n var themeSlot = currentValue.theme;\n if (themeSlot) {\n themable = true;\n // A theming annotation. Resolve it.\n var themedValue = theme ? theme[themeSlot] : undefined;\n var defaultValue = currentValue.defaultValue || 'inherit';\n // Warn to console if we hit an unthemed value even when themes are provided, but only if \"DEBUG\" is true.\n // Allow the themedValue to be undefined to explicitly request the default value.\n if (theme && !themedValue && console && !(themeSlot in theme) && typeof DEBUG !== 'undefined' && DEBUG) {\n console.warn(\"Theming value not provided for \\\"\" + themeSlot + \"\\\". Falling back to \\\"\" + defaultValue + \"\\\".\");\n }\n return themedValue || defaultValue;\n }\n else {\n // A non-themable string. Preserve it.\n return currentValue.rawString;\n }\n });\n return {\n styleString: resolvedArray.join(''),\n themable: themable\n };\n}\n/**\n * Split tokenized CSS into an array of strings and theme specification objects\n * @param {string} styles Tokenized styles to split.\n */\nfunction splitStyles(styles) {\n var result = [];\n if (styles) {\n var pos = 0; // Current position in styles.\n var tokenMatch = void 0; // eslint-disable-line no-restricted-syntax\n while ((tokenMatch = _themeTokenRegex.exec(styles))) {\n var matchIndex = tokenMatch.index;\n if (matchIndex > pos) {\n result.push({\n rawString: styles.substring(pos, matchIndex)\n });\n }\n result.push({\n theme: tokenMatch[1],\n defaultValue: tokenMatch[2] // May be undefined\n });\n // index of the first character after the current match\n pos = _themeTokenRegex.lastIndex;\n }\n // Push the rest of the string after the last match.\n result.push({\n rawString: styles.substring(pos)\n });\n }\n return result;\n}\n/**\n * Registers a set of style text. If it is registered too early, we will register it when the\n * window.load event is fired.\n * @param {ThemableArray} styleArray Array of IThemingInstruction objects to register.\n * @param {IStyleRecord} styleRecord May specify a style Element to update.\n */\nfunction registerStyles(styleArray) {\n if (typeof document === 'undefined') {\n return;\n }\n var head = document.getElementsByTagName('head')[0];\n var styleElement = document.createElement('style');\n var _a = resolveThemableArray(styleArray), styleString = _a.styleString, themable = _a.themable;\n styleElement.setAttribute('data-load-themed-styles', 'true');\n styleElement.type = 'text/css';\n if (_styleNonce) {\n styleElement.setAttribute('nonce', _styleNonce);\n }\n styleElement.appendChild(document.createTextNode(styleString));\n _themeState.perf.count++;\n head.appendChild(styleElement);\n var ev = document.createEvent('HTMLEvents');\n ev.initEvent('styleinsert', true /* bubbleEvent */, false /* cancelable */);\n ev.args = {\n newStyle: styleElement\n };\n document.dispatchEvent(ev);\n var record = {\n styleElement: styleElement,\n themableStyle: styleArray\n };\n if (themable) {\n _themeState.registeredThemableStyles.push(record);\n }\n else {\n _themeState.registeredStyles.push(record);\n }\n}\n//# sourceMappingURL=index.js.map\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/@microsoft/load-themed-styles/lib-es6/index.js?");
|
122
122
|
|
123
123
|
/***/ }),
|
124
124
|
|
125
125
|
/***/ "../../node_modules/@microsoft/load-themed-styles/lib/index.js":
|
126
|
-
|
127
|
-
!*** /mnt/
|
128
|
-
|
126
|
+
/*!**********************************************************************************!*\
|
127
|
+
!*** /mnt/vss/_work/1/s/node_modules/@microsoft/load-themed-styles/lib/index.js ***!
|
128
|
+
\**********************************************************************************/
|
129
129
|
/*! no static exports found */
|
130
130
|
/***/ (function(module, exports, __webpack_require__) {
|
131
131
|
|
132
132
|
"use strict";
|
133
|
-
eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * An IThemingInstruction can specify a rawString to be preserved or a theme slot and a default value\n * to use if that slot is not specified by the theme.\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Store the theming state in __themeState__ global scope for reuse in the case of duplicate\n// load-themed-styles hosted on the page.\nvar _root = (typeof window === 'undefined') ? global : window; // eslint-disable-line @typescript-eslint/no-explicit-any\n// Nonce string to inject into script tag if one provided. This is used in CSP (Content Security Policy).\nvar _styleNonce = _root && _root.CSPSettings && _root.CSPSettings.nonce;\nvar _themeState = initializeThemeState();\n/**\n * Matches theming tokens. For example, \"[theme: themeSlotName, default: #FFF]\" (including the quotes).\n */\nvar _themeTokenRegex = /[\\'\\\"]\\[theme:\\s*(\\w+)\\s*(?:\\,\\s*default:\\s*([\\\\\"\\']?[\\.\\,\\(\\)\\#\\-\\s\\w]*[\\.\\,\\(\\)\\#\\-\\w][\\\"\\']?))?\\s*\\][\\'\\\"]/g;\nvar now = function () { return (typeof performance !== 'undefined' && !!performance.now) ? performance.now() : Date.now(); };\nfunction measure(func) {\n var start = now();\n func();\n var end = now();\n _themeState.perf.duration += end - start;\n}\n/**\n * initialize global state object\n */\nfunction initializeThemeState() {\n var state = _root.__themeState__ || {\n theme: undefined,\n lastStyleElement: undefined,\n registeredStyles: []\n };\n if (!state.runState) {\n state = __assign({}, (state), { perf: {\n count: 0,\n duration: 0\n }, runState: {\n flushTimer: 0,\n mode: 0 /* sync */,\n buffer: []\n } });\n }\n if (!state.registeredThemableStyles) {\n state = __assign({}, (state), { registeredThemableStyles: [] });\n }\n _root.__themeState__ = state;\n return state;\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load\n * event is fired.\n * @param {string | ThemableArray} styles Themable style text to register.\n * @param {boolean} loadAsync When true, always load styles in async mode, irrespective of current sync mode.\n */\nfunction loadStyles(styles, loadAsync) {\n if (loadAsync === void 0) { loadAsync = false; }\n measure(function () {\n var styleParts = Array.isArray(styles) ? styles : splitStyles(styles);\n var _a = _themeState.runState, mode = _a.mode, buffer = _a.buffer, flushTimer = _a.flushTimer;\n if (loadAsync || mode === 1 /* async */) {\n buffer.push(styleParts);\n if (!flushTimer) {\n _themeState.runState.flushTimer = asyncLoadStyles();\n }\n }\n else {\n applyThemableStyles(styleParts);\n }\n });\n}\nexports.loadStyles = loadStyles;\n/**\n * Allows for customizable loadStyles logic. e.g. for server side rendering application\n * @param {(processedStyles: string, rawStyles?: string | ThemableArray) => void}\n * a loadStyles callback that gets called when styles are loaded or reloaded\n */\nfunction configureLoadStyles(loadStylesFn) {\n _themeState.loadStyles = loadStylesFn;\n}\nexports.configureLoadStyles = configureLoadStyles;\n/**\n * Configure run mode of load-themable-styles\n * @param mode load-themable-styles run mode, async or sync\n */\nfunction configureRunMode(mode) {\n _themeState.runState.mode = mode;\n}\nexports.configureRunMode = configureRunMode;\n/**\n * external code can call flush to synchronously force processing of currently buffered styles\n */\nfunction flush() {\n measure(function () {\n var styleArrays = _themeState.runState.buffer.slice();\n _themeState.runState.buffer = [];\n var mergedStyleArray = [].concat.apply([], styleArrays);\n if (mergedStyleArray.length > 0) {\n applyThemableStyles(mergedStyleArray);\n }\n });\n}\nexports.flush = flush;\n/**\n * register async loadStyles\n */\nfunction asyncLoadStyles() {\n return setTimeout(function () {\n _themeState.runState.flushTimer = 0;\n flush();\n }, 0);\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load event\n * is fired.\n * @param {string} styleText Style to register.\n * @param {IStyleRecord} styleRecord Existing style record to re-apply.\n */\nfunction applyThemableStyles(stylesArray, styleRecord) {\n if (_themeState.loadStyles) {\n _themeState.loadStyles(resolveThemableArray(stylesArray).styleString, stylesArray);\n }\n else {\n registerStyles(stylesArray);\n }\n}\n/**\n * Registers a set theme tokens to find and replace. If styles were already registered, they will be\n * replaced.\n * @param {theme} theme JSON object of theme tokens to values.\n */\nfunction loadTheme(theme) {\n _themeState.theme = theme;\n // reload styles.\n reloadStyles();\n}\nexports.loadTheme = loadTheme;\n/**\n * Clear already registered style elements and style records in theme_State object\n * @param option - specify which group of registered styles should be cleared.\n * Default to be both themable and non-themable styles will be cleared\n */\nfunction clearStyles(option) {\n if (option === void 0) { option = 3 /* all */; }\n if (option === 3 /* all */ || option === 2 /* onlyNonThemable */) {\n clearStylesInternal(_themeState.registeredStyles);\n _themeState.registeredStyles = [];\n }\n if (option === 3 /* all */ || option === 1 /* onlyThemable */) {\n clearStylesInternal(_themeState.registeredThemableStyles);\n _themeState.registeredThemableStyles = [];\n }\n}\nexports.clearStyles = clearStyles;\nfunction clearStylesInternal(records) {\n records.forEach(function (styleRecord) {\n var styleElement = styleRecord && styleRecord.styleElement;\n if (styleElement && styleElement.parentElement) {\n styleElement.parentElement.removeChild(styleElement);\n }\n });\n}\n/**\n * Reloads styles.\n */\nfunction reloadStyles() {\n if (_themeState.theme) {\n var themableStyles = [];\n for (var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++) {\n var styleRecord = _a[_i];\n themableStyles.push(styleRecord.themableStyle);\n }\n if (themableStyles.length > 0) {\n clearStyles(1 /* onlyThemable */);\n applyThemableStyles([].concat.apply([], themableStyles));\n }\n }\n}\n/**\n * Find theme tokens and replaces them with provided theme values.\n * @param {string} styles Tokenized styles to fix.\n */\nfunction detokenize(styles) {\n if (styles) {\n styles = resolveThemableArray(splitStyles(styles)).styleString;\n }\n return styles;\n}\nexports.detokenize = detokenize;\n/**\n * Resolves ThemingInstruction objects in an array and joins the result into a string.\n * @param {ThemableArray} splitStyleArray ThemableArray to resolve and join.\n */\nfunction resolveThemableArray(splitStyleArray) {\n var theme = _themeState.theme;\n var themable = false;\n // Resolve the array of theming instructions to an array of strings.\n // Then join the array to produce the final CSS string.\n var resolvedArray = (splitStyleArray || []).map(function (currentValue) {\n var themeSlot = currentValue.theme;\n if (themeSlot) {\n themable = true;\n // A theming annotation. Resolve it.\n var themedValue = theme ? theme[themeSlot] : undefined;\n var defaultValue = currentValue.defaultValue || 'inherit';\n // Warn to console if we hit an unthemed value even when themes are provided, but only if \"DEBUG\" is true.\n // Allow the themedValue to be undefined to explicitly request the default value.\n if (theme && !themedValue && console && !(themeSlot in theme) && typeof DEBUG !== 'undefined' && DEBUG) {\n console.warn(\"Theming value not provided for \\\"\" + themeSlot + \"\\\". Falling back to \\\"\" + defaultValue + \"\\\".\");\n }\n return themedValue || defaultValue;\n }\n else {\n // A non-themable string. Preserve it.\n return currentValue.rawString;\n }\n });\n return {\n styleString: resolvedArray.join(''),\n themable: themable\n };\n}\n/**\n * Split tokenized CSS into an array of strings and theme specification objects\n * @param {string} styles Tokenized styles to split.\n */\nfunction splitStyles(styles) {\n var result = [];\n if (styles) {\n var pos = 0; // Current position in styles.\n var tokenMatch = void 0; // eslint-disable-line no-restricted-syntax\n while ((tokenMatch = _themeTokenRegex.exec(styles))) {\n var matchIndex = tokenMatch.index;\n if (matchIndex > pos) {\n result.push({\n rawString: styles.substring(pos, matchIndex)\n });\n }\n result.push({\n theme: tokenMatch[1],\n defaultValue: tokenMatch[2] // May be undefined\n });\n // index of the first character after the current match\n pos = _themeTokenRegex.lastIndex;\n }\n // Push the rest of the string after the last match.\n result.push({\n rawString: styles.substring(pos)\n });\n }\n return result;\n}\nexports.splitStyles = splitStyles;\n/**\n * Registers a set of style text. If it is registered too early, we will register it when the\n * window.load event is fired.\n * @param {ThemableArray} styleArray Array of IThemingInstruction objects to register.\n * @param {IStyleRecord} styleRecord May specify a style Element to update.\n */\nfunction registerStyles(styleArray) {\n if (typeof document === 'undefined') {\n return;\n }\n var head = document.getElementsByTagName('head')[0];\n var styleElement = document.createElement('style');\n var _a = resolveThemableArray(styleArray), styleString = _a.styleString, themable = _a.themable;\n styleElement.setAttribute('data-load-themed-styles', 'true');\n styleElement.type = 'text/css';\n if (_styleNonce) {\n styleElement.setAttribute('nonce', _styleNonce);\n }\n styleElement.appendChild(document.createTextNode(styleString));\n _themeState.perf.count++;\n head.appendChild(styleElement);\n var ev = document.createEvent('HTMLEvents');\n ev.initEvent('styleinsert', true /* bubbleEvent */, false /* cancelable */);\n ev.args = {\n newStyle: styleElement\n };\n document.dispatchEvent(ev);\n var record = {\n styleElement: styleElement,\n themableStyle: styleArray\n };\n if (themable) {\n _themeState.registeredThemableStyles.push(record);\n }\n else {\n _themeState.registeredStyles.push(record);\n }\n}\n//# sourceMappingURL=index.js.map\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:////mnt/work/5/s/node_modules/@microsoft/load-themed-styles/lib/index.js?");
|
133
|
+
eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * An IThemingInstruction can specify a rawString to be preserved or a theme slot and a default value\n * to use if that slot is not specified by the theme.\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Store the theming state in __themeState__ global scope for reuse in the case of duplicate\n// load-themed-styles hosted on the page.\nvar _root = (typeof window === 'undefined') ? global : window; // eslint-disable-line @typescript-eslint/no-explicit-any\n// Nonce string to inject into script tag if one provided. This is used in CSP (Content Security Policy).\nvar _styleNonce = _root && _root.CSPSettings && _root.CSPSettings.nonce;\nvar _themeState = initializeThemeState();\n/**\n * Matches theming tokens. For example, \"[theme: themeSlotName, default: #FFF]\" (including the quotes).\n */\nvar _themeTokenRegex = /[\\'\\\"]\\[theme:\\s*(\\w+)\\s*(?:\\,\\s*default:\\s*([\\\\\"\\']?[\\.\\,\\(\\)\\#\\-\\s\\w]*[\\.\\,\\(\\)\\#\\-\\w][\\\"\\']?))?\\s*\\][\\'\\\"]/g;\nvar now = function () { return (typeof performance !== 'undefined' && !!performance.now) ? performance.now() : Date.now(); };\nfunction measure(func) {\n var start = now();\n func();\n var end = now();\n _themeState.perf.duration += end - start;\n}\n/**\n * initialize global state object\n */\nfunction initializeThemeState() {\n var state = _root.__themeState__ || {\n theme: undefined,\n lastStyleElement: undefined,\n registeredStyles: []\n };\n if (!state.runState) {\n state = __assign({}, (state), { perf: {\n count: 0,\n duration: 0\n }, runState: {\n flushTimer: 0,\n mode: 0 /* sync */,\n buffer: []\n } });\n }\n if (!state.registeredThemableStyles) {\n state = __assign({}, (state), { registeredThemableStyles: [] });\n }\n _root.__themeState__ = state;\n return state;\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load\n * event is fired.\n * @param {string | ThemableArray} styles Themable style text to register.\n * @param {boolean} loadAsync When true, always load styles in async mode, irrespective of current sync mode.\n */\nfunction loadStyles(styles, loadAsync) {\n if (loadAsync === void 0) { loadAsync = false; }\n measure(function () {\n var styleParts = Array.isArray(styles) ? styles : splitStyles(styles);\n var _a = _themeState.runState, mode = _a.mode, buffer = _a.buffer, flushTimer = _a.flushTimer;\n if (loadAsync || mode === 1 /* async */) {\n buffer.push(styleParts);\n if (!flushTimer) {\n _themeState.runState.flushTimer = asyncLoadStyles();\n }\n }\n else {\n applyThemableStyles(styleParts);\n }\n });\n}\nexports.loadStyles = loadStyles;\n/**\n * Allows for customizable loadStyles logic. e.g. for server side rendering application\n * @param {(processedStyles: string, rawStyles?: string | ThemableArray) => void}\n * a loadStyles callback that gets called when styles are loaded or reloaded\n */\nfunction configureLoadStyles(loadStylesFn) {\n _themeState.loadStyles = loadStylesFn;\n}\nexports.configureLoadStyles = configureLoadStyles;\n/**\n * Configure run mode of load-themable-styles\n * @param mode load-themable-styles run mode, async or sync\n */\nfunction configureRunMode(mode) {\n _themeState.runState.mode = mode;\n}\nexports.configureRunMode = configureRunMode;\n/**\n * external code can call flush to synchronously force processing of currently buffered styles\n */\nfunction flush() {\n measure(function () {\n var styleArrays = _themeState.runState.buffer.slice();\n _themeState.runState.buffer = [];\n var mergedStyleArray = [].concat.apply([], styleArrays);\n if (mergedStyleArray.length > 0) {\n applyThemableStyles(mergedStyleArray);\n }\n });\n}\nexports.flush = flush;\n/**\n * register async loadStyles\n */\nfunction asyncLoadStyles() {\n return setTimeout(function () {\n _themeState.runState.flushTimer = 0;\n flush();\n }, 0);\n}\n/**\n * Loads a set of style text. If it is registered too early, we will register it when the window.load event\n * is fired.\n * @param {string} styleText Style to register.\n * @param {IStyleRecord} styleRecord Existing style record to re-apply.\n */\nfunction applyThemableStyles(stylesArray, styleRecord) {\n if (_themeState.loadStyles) {\n _themeState.loadStyles(resolveThemableArray(stylesArray).styleString, stylesArray);\n }\n else {\n registerStyles(stylesArray);\n }\n}\n/**\n * Registers a set theme tokens to find and replace. If styles were already registered, they will be\n * replaced.\n * @param {theme} theme JSON object of theme tokens to values.\n */\nfunction loadTheme(theme) {\n _themeState.theme = theme;\n // reload styles.\n reloadStyles();\n}\nexports.loadTheme = loadTheme;\n/**\n * Clear already registered style elements and style records in theme_State object\n * @param option - specify which group of registered styles should be cleared.\n * Default to be both themable and non-themable styles will be cleared\n */\nfunction clearStyles(option) {\n if (option === void 0) { option = 3 /* all */; }\n if (option === 3 /* all */ || option === 2 /* onlyNonThemable */) {\n clearStylesInternal(_themeState.registeredStyles);\n _themeState.registeredStyles = [];\n }\n if (option === 3 /* all */ || option === 1 /* onlyThemable */) {\n clearStylesInternal(_themeState.registeredThemableStyles);\n _themeState.registeredThemableStyles = [];\n }\n}\nexports.clearStyles = clearStyles;\nfunction clearStylesInternal(records) {\n records.forEach(function (styleRecord) {\n var styleElement = styleRecord && styleRecord.styleElement;\n if (styleElement && styleElement.parentElement) {\n styleElement.parentElement.removeChild(styleElement);\n }\n });\n}\n/**\n * Reloads styles.\n */\nfunction reloadStyles() {\n if (_themeState.theme) {\n var themableStyles = [];\n for (var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++) {\n var styleRecord = _a[_i];\n themableStyles.push(styleRecord.themableStyle);\n }\n if (themableStyles.length > 0) {\n clearStyles(1 /* onlyThemable */);\n applyThemableStyles([].concat.apply([], themableStyles));\n }\n }\n}\n/**\n * Find theme tokens and replaces them with provided theme values.\n * @param {string} styles Tokenized styles to fix.\n */\nfunction detokenize(styles) {\n if (styles) {\n styles = resolveThemableArray(splitStyles(styles)).styleString;\n }\n return styles;\n}\nexports.detokenize = detokenize;\n/**\n * Resolves ThemingInstruction objects in an array and joins the result into a string.\n * @param {ThemableArray} splitStyleArray ThemableArray to resolve and join.\n */\nfunction resolveThemableArray(splitStyleArray) {\n var theme = _themeState.theme;\n var themable = false;\n // Resolve the array of theming instructions to an array of strings.\n // Then join the array to produce the final CSS string.\n var resolvedArray = (splitStyleArray || []).map(function (currentValue) {\n var themeSlot = currentValue.theme;\n if (themeSlot) {\n themable = true;\n // A theming annotation. Resolve it.\n var themedValue = theme ? theme[themeSlot] : undefined;\n var defaultValue = currentValue.defaultValue || 'inherit';\n // Warn to console if we hit an unthemed value even when themes are provided, but only if \"DEBUG\" is true.\n // Allow the themedValue to be undefined to explicitly request the default value.\n if (theme && !themedValue && console && !(themeSlot in theme) && typeof DEBUG !== 'undefined' && DEBUG) {\n console.warn(\"Theming value not provided for \\\"\" + themeSlot + \"\\\". Falling back to \\\"\" + defaultValue + \"\\\".\");\n }\n return themedValue || defaultValue;\n }\n else {\n // A non-themable string. Preserve it.\n return currentValue.rawString;\n }\n });\n return {\n styleString: resolvedArray.join(''),\n themable: themable\n };\n}\n/**\n * Split tokenized CSS into an array of strings and theme specification objects\n * @param {string} styles Tokenized styles to split.\n */\nfunction splitStyles(styles) {\n var result = [];\n if (styles) {\n var pos = 0; // Current position in styles.\n var tokenMatch = void 0; // eslint-disable-line no-restricted-syntax\n while ((tokenMatch = _themeTokenRegex.exec(styles))) {\n var matchIndex = tokenMatch.index;\n if (matchIndex > pos) {\n result.push({\n rawString: styles.substring(pos, matchIndex)\n });\n }\n result.push({\n theme: tokenMatch[1],\n defaultValue: tokenMatch[2] // May be undefined\n });\n // index of the first character after the current match\n pos = _themeTokenRegex.lastIndex;\n }\n // Push the rest of the string after the last match.\n result.push({\n rawString: styles.substring(pos)\n });\n }\n return result;\n}\nexports.splitStyles = splitStyles;\n/**\n * Registers a set of style text. If it is registered too early, we will register it when the\n * window.load event is fired.\n * @param {ThemableArray} styleArray Array of IThemingInstruction objects to register.\n * @param {IStyleRecord} styleRecord May specify a style Element to update.\n */\nfunction registerStyles(styleArray) {\n if (typeof document === 'undefined') {\n return;\n }\n var head = document.getElementsByTagName('head')[0];\n var styleElement = document.createElement('style');\n var _a = resolveThemableArray(styleArray), styleString = _a.styleString, themable = _a.themable;\n styleElement.setAttribute('data-load-themed-styles', 'true');\n styleElement.type = 'text/css';\n if (_styleNonce) {\n styleElement.setAttribute('nonce', _styleNonce);\n }\n styleElement.appendChild(document.createTextNode(styleString));\n _themeState.perf.count++;\n head.appendChild(styleElement);\n var ev = document.createEvent('HTMLEvents');\n ev.initEvent('styleinsert', true /* bubbleEvent */, false /* cancelable */);\n ev.args = {\n newStyle: styleElement\n };\n document.dispatchEvent(ev);\n var record = {\n styleElement: styleElement,\n themableStyle: styleArray\n };\n if (themable) {\n _themeState.registeredThemableStyles.push(record);\n }\n else {\n _themeState.registeredStyles.push(record);\n }\n}\n//# sourceMappingURL=index.js.map\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ \"../../node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/@microsoft/load-themed-styles/lib/index.js?");
|
134
134
|
|
135
135
|
/***/ }),
|
136
136
|
|
137
137
|
/***/ "../../node_modules/css-loader/dist/cjs.js?!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/lib/loader.js!../react-icons/src/utils/SvgIcon.scss":
|
138
|
-
|
139
|
-
!*** /mnt/
|
140
|
-
|
138
|
+
/*!*************************************************************************************************************************************************************************************************************************************!*\
|
139
|
+
!*** /mnt/vss/_work/1/s/node_modules/css-loader/dist/cjs.js??ref--6-1!/mnt/vss/_work/1/s/node_modules/postcss-loader/src??ref--6-2!/mnt/vss/_work/1/s/node_modules/sass-loader/lib/loader.js!../react-icons/src/utils/SvgIcon.scss ***!
|
140
|
+
\*************************************************************************************************************************************************************************************************************************************/
|
141
141
|
/*! no static exports found */
|
142
142
|
/***/ (function(module, exports, __webpack_require__) {
|
143
143
|
|
144
|
-
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".Wo9UYLJv_xWoAJHqNO64J {\\n display: inline-block;\\n vertical-align: middle;\\n speak: none;\\n width: 1em;\\n height: 1em; }\\n\\n.eYsKdatj7Bw33Wu9i-l54 {\\n height: 100%;\\n fill: currentColor;\\n vertical-align: top; }\\n\", \"\"]);\n// Exports\nexports.locals = {\n\t\"root\": \"Wo9UYLJv_xWoAJHqNO64J\",\n\t\"svg\": \"eYsKdatj7Bw33Wu9i-l54\"\n};\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///../react-icons/src/utils/SvgIcon.scss?/mnt/
|
144
|
+
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".Wo9UYLJv_xWoAJHqNO64J {\\n display: inline-block;\\n vertical-align: middle;\\n speak: none;\\n width: 1em;\\n height: 1em; }\\n\\n.eYsKdatj7Bw33Wu9i-l54 {\\n height: 100%;\\n fill: currentColor;\\n vertical-align: top; }\\n\", \"\"]);\n// Exports\nexports.locals = {\n\t\"root\": \"Wo9UYLJv_xWoAJHqNO64J\",\n\t\"svg\": \"eYsKdatj7Bw33Wu9i-l54\"\n};\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///../react-icons/src/utils/SvgIcon.scss?/mnt/vss/_work/1/s/node_modules/css-loader/dist/cjs.js??ref--6-1!/mnt/vss/_work/1/s/node_modules/postcss-loader/src??ref--6-2!/mnt/vss/_work/1/s/node_modules/sass-loader/lib/loader.js");
|
145
145
|
|
146
146
|
/***/ }),
|
147
147
|
|
148
148
|
/***/ "../../node_modules/css-loader/dist/runtime/api.js":
|
149
|
-
|
150
|
-
!*** /mnt/
|
151
|
-
|
149
|
+
/*!**********************************************************************!*\
|
150
|
+
!*** /mnt/vss/_work/1/s/node_modules/css-loader/dist/runtime/api.js ***!
|
151
|
+
\**********************************************************************/
|
152
152
|
/*! no static exports found */
|
153
153
|
/***/ (function(module, exports, __webpack_require__) {
|
154
154
|
|
155
155
|
"use strict";
|
156
|
-
eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}\n\n//# sourceURL=webpack:////mnt/
|
156
|
+
eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/css-loader/dist/runtime/api.js?");
|
157
157
|
|
158
158
|
/***/ }),
|
159
159
|
|
160
160
|
/***/ "../../node_modules/tslib/tslib.es6.js":
|
161
|
-
|
162
|
-
!*** /mnt/
|
163
|
-
|
161
|
+
/*!**********************************************************!*\
|
162
|
+
!*** /mnt/vss/_work/1/s/node_modules/tslib/tslib.es6.js ***!
|
163
|
+
\**********************************************************/
|
164
164
|
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
|
165
165
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
166
166
|
|
167
167
|
"use strict";
|
168
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__extends\", function() { return __extends; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__assign\", function() { return __assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__rest\", function() { return __rest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__decorate\", function() { return __decorate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__param\", function() { return __param; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__metadata\", function() { return __metadata; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__awaiter\", function() { return __awaiter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__generator\", function() { return __generator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__exportStar\", function() { return __exportStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__values\", function() { return __values; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__read\", function() { return __read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spread\", function() { return __spread; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spreadArrays\", function() { return __spreadArrays; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__await\", function() { return __await; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncGenerator\", function() { return __asyncGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncDelegator\", function() { return __asyncDelegator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncValues\", function() { return __asyncValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__makeTemplateObject\", function() { return __makeTemplateObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importStar\", function() { return __importStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importDefault\", function() { return __importDefault; });\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nfunction __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nfunction __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nfunction __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nfunction __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\n\n//# sourceURL=webpack:////mnt/work/5/s/node_modules/tslib/tslib.es6.js?");
|
168
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__extends\", function() { return __extends; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__assign\", function() { return __assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__rest\", function() { return __rest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__decorate\", function() { return __decorate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__param\", function() { return __param; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__metadata\", function() { return __metadata; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__awaiter\", function() { return __awaiter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__generator\", function() { return __generator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__exportStar\", function() { return __exportStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__values\", function() { return __values; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__read\", function() { return __read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spread\", function() { return __spread; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spreadArrays\", function() { return __spreadArrays; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__await\", function() { return __await; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncGenerator\", function() { return __asyncGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncDelegator\", function() { return __asyncDelegator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncValues\", function() { return __asyncValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__makeTemplateObject\", function() { return __makeTemplateObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importStar\", function() { return __importStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importDefault\", function() { return __importDefault; });\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nfunction __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nfunction __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nfunction __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nfunction __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\n\n//# sourceURL=webpack:////mnt/vss/_work/1/s/node_modules/tslib/tslib.es6.js?");
|
169
169
|
|
170
170
|
/***/ }),
|
171
171
|
|
@@ -932,7 +932,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ts
|
|
932
932
|
/***/ (function(module, exports, __webpack_require__) {
|
933
933
|
|
934
934
|
"use strict";
|
935
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/react-hooks', '7.14.
|
935
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/react-hooks', '7.14.1');\n\n\n//# sourceURL=webpack:///../react-hooks/src/version.ts?");
|
936
936
|
|
937
937
|
/***/ }),
|
938
938
|
|
@@ -24763,7 +24763,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__webp
|
|
24763
24763
|
/*! no static exports found */
|
24764
24764
|
/***/ (function(module, exports, __webpack_require__) {
|
24765
24765
|
|
24766
|
-
eval("var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../../node_modules/postcss-loader/src??ref--6-2!../../../../node_modules/sass-loader/lib/loader.js!./SvgIcon.scss */ \"../../node_modules/css-loader/dist/cjs.js?!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/lib/loader.js!../react-icons/src/utils/SvgIcon.scss\");\nvar loader = __webpack_require__(/*! /mnt/
|
24766
|
+
eval("var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../../node_modules/postcss-loader/src??ref--6-2!../../../../node_modules/sass-loader/lib/loader.js!./SvgIcon.scss */ \"../../node_modules/css-loader/dist/cjs.js?!../../node_modules/postcss-loader/src/index.js?!../../node_modules/sass-loader/lib/loader.js!../react-icons/src/utils/SvgIcon.scss\");\nvar loader = __webpack_require__(/*! /mnt/vss/_work/1/s/node_modules/@microsoft/load-themed-styles/lib/index.js */ \"../../node_modules/@microsoft/load-themed-styles/lib/index.js\");\n\nif(typeof content === \"string\") content = [[module.i, content]];\n\n// add the styles to the DOM\nfor (var i = 0; i < content.length; i++) loader.loadStyles(content[i][1], false);\n\nif(content.locals) module.exports = content.locals;\n\n//# sourceURL=webpack:///../react-icons/src/utils/SvgIcon.scss?");
|
24767
24767
|
|
24768
24768
|
/***/ }),
|
24769
24769
|
|
@@ -24799,7 +24799,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ts
|
|
24799
24799
|
/***/ (function(module, exports, __webpack_require__) {
|
24800
24800
|
|
24801
24801
|
"use strict";
|
24802
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-icons', '0.4.
|
24802
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-icons', '0.4.3');\n\n\n//# sourceURL=webpack:///../react-icons/src/version.ts?");
|
24803
24803
|
|
24804
24804
|
/***/ }),
|
24805
24805
|
|
@@ -25207,7 +25207,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar th
|
|
25207
25207
|
/***/ (function(module, exports, __webpack_require__) {
|
25208
25208
|
|
25209
25209
|
"use strict";
|
25210
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-theme-provider', '0.
|
25210
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-theme-provider', '0.19.2');\n\n\n//# sourceURL=webpack:///../react-theme-provider/src/version.ts?");
|
25211
25211
|
|
25212
25212
|
/***/ }),
|
25213
25213
|
|
@@ -25567,7 +25567,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ut
|
|
25567
25567
|
/***/ (function(module, exports, __webpack_require__) {
|
25568
25568
|
|
25569
25569
|
"use strict";
|
25570
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.js\");\nvar utilities_1 = __webpack_require__(/*! @uifabric/utilities */ \"../utilities/src/index.ts\");\nvar load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ \"../../node_modules/@microsoft/load-themed-styles/lib-es6/index.js\");\nvar createTheme_1 = __webpack_require__(/*! @fluentui/theme/lib/createTheme */ \"../theme/src/createTheme.ts\");\nvar createTheme_2 = __webpack_require__(/*! @fluentui/theme/lib/createTheme */ \"../theme/src/createTheme.ts\");\nexports.createTheme = createTheme_2.createTheme;\nvar _theme = createTheme_1.createTheme({});\nvar _onThemeChangeCallbacks = [];\nexports.ThemeSettingName = 'theme';\nfunction initializeThemeInCustomizations() {\n var _a;\n var _b, _c;\n
|
25570
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.js\");\nvar utilities_1 = __webpack_require__(/*! @uifabric/utilities */ \"../utilities/src/index.ts\");\nvar load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ \"../../node_modules/@microsoft/load-themed-styles/lib-es6/index.js\");\nvar createTheme_1 = __webpack_require__(/*! @fluentui/theme/lib/createTheme */ \"../theme/src/createTheme.ts\");\nvar createTheme_2 = __webpack_require__(/*! @fluentui/theme/lib/createTheme */ \"../theme/src/createTheme.ts\");\nexports.createTheme = createTheme_2.createTheme;\nvar _theme = createTheme_1.createTheme({});\nvar _onThemeChangeCallbacks = [];\nexports.ThemeSettingName = 'theme';\nfunction initializeThemeInCustomizations() {\n var _a;\n var _b, _c, _d, _e;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var win = utilities_1.getWindow();\n if ((_c = (_b = win) === null || _b === void 0 ? void 0 : _b.FabricConfig) === null || _c === void 0 ? void 0 : _c.legacyTheme) {\n // does everything the `else` clause does and more, such as invoke legacy theming\n loadTheme(win.FabricConfig.legacyTheme);\n }\n else if (!utilities_1.Customizations.getSettings([exports.ThemeSettingName]).theme) {\n if ((_e = (_d = win) === null || _d === void 0 ? void 0 : _d.FabricConfig) === null || _e === void 0 ? void 0 : _e.theme) {\n _theme = createTheme_1.createTheme(win.FabricConfig.theme);\n }\n // Set the default theme.\n utilities_1.Customizations.applySettings((_a = {}, _a[exports.ThemeSettingName] = _theme, _a));\n }\n}\nexports.initializeThemeInCustomizations = initializeThemeInCustomizations;\ninitializeThemeInCustomizations();\n/**\n * Gets the theme object\n * @param depComments - Whether to include deprecated tags as comments for deprecated slots.\n */\nfunction getTheme(depComments) {\n if (depComments === void 0) { depComments = false; }\n if (depComments === true) {\n _theme = createTheme_1.createTheme({}, depComments);\n }\n return _theme;\n}\nexports.getTheme = getTheme;\n/**\n * Registers a callback that gets called whenever the theme changes.\n * This should only be used when the component cannot automatically get theme changes through its state.\n * This will not register duplicate callbacks.\n */\nfunction registerOnThemeChangeCallback(callback) {\n if (_onThemeChangeCallbacks.indexOf(callback) === -1) {\n _onThemeChangeCallbacks.push(callback);\n }\n}\nexports.registerOnThemeChangeCallback = registerOnThemeChangeCallback;\n/**\n * See registerOnThemeChangeCallback().\n * Removes previously registered callbacks.\n */\nfunction removeOnThemeChangeCallback(callback) {\n var i = _onThemeChangeCallbacks.indexOf(callback);\n if (i === -1) {\n return;\n }\n _onThemeChangeCallbacks.splice(i, 1);\n}\nexports.removeOnThemeChangeCallback = removeOnThemeChangeCallback;\n/**\n * Applies the theme, while filling in missing slots.\n * @param theme - Partial theme object.\n * @param depComments - Whether to include deprecated tags as comments for deprecated slots.\n */\nfunction loadTheme(theme, depComments) {\n var _a;\n if (depComments === void 0) { depComments = false; }\n _theme = createTheme_1.createTheme(theme, depComments);\n // Invoke the legacy method of theming the page as well.\n load_themed_styles_1.loadTheme(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, _theme.palette), _theme.semanticColors), _theme.effects), _loadFonts(_theme)));\n utilities_1.Customizations.applySettings((_a = {}, _a[exports.ThemeSettingName] = _theme, _a));\n _onThemeChangeCallbacks.forEach(function (callback) {\n try {\n callback(_theme);\n }\n catch (e) {\n // don't let a bad callback break everything else\n }\n });\n return _theme;\n}\nexports.loadTheme = loadTheme;\n/**\n * Loads font variables into a JSON object.\n * @param theme - The theme object\n */\nfunction _loadFonts(theme) {\n var lines = {};\n for (var _i = 0, _a = Object.keys(theme.fonts); _i < _a.length; _i++) {\n var fontName = _a[_i];\n var font = theme.fonts[fontName];\n for (var _b = 0, _c = Object.keys(font); _b < _c.length; _b++) {\n var propName = _c[_b];\n var name = fontName + propName.charAt(0).toUpperCase() + propName.slice(1);\n var value = font[propName];\n if (propName === 'fontSize' && typeof value === 'number') {\n // if it's a number, convert it to px by default like our theming system does\n value = value + 'px';\n }\n lines[name] = value;\n }\n }\n return lines;\n}\n\n\n//# sourceURL=webpack:///../styling/src/styles/theme.ts?");
|
25571
25571
|
|
25572
25572
|
/***/ }),
|
25573
25573
|
|
@@ -25639,7 +25639,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar bu
|
|
25639
25639
|
/***/ (function(module, exports, __webpack_require__) {
|
25640
25640
|
|
25641
25641
|
"use strict";
|
25642
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/styling', '7.
|
25642
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/styling', '7.20.1');\n\n\n//# sourceURL=webpack:///../styling/src/version.ts?");
|
25643
25643
|
|
25644
25644
|
/***/ }),
|
25645
25645
|
|
@@ -27055,7 +27055,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ge
|
|
27055
27055
|
/***/ (function(module, exports, __webpack_require__) {
|
27056
27056
|
|
27057
27057
|
"use strict";
|
27058
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Selection_types_1 = __webpack_require__(/*! ./Selection.types */ \"../utilities/src/selection/Selection.types.ts\");\nvar EventGroup_1 = __webpack_require__(/*! ../EventGroup */ \"../utilities/src/EventGroup.ts\");\n/**\n * {@docCategory Selection}\n */\nvar Selection = /** @class */ (function () {\n /**\n * Create a new Selection. If `TItem` does not have a `key` property, you must provide an options\n * object with a `getKey` implementation. Providing options is optional otherwise.\n * (At most one `options` object is accepted.)\n */\n function Selection() {\n var options = []; // Otherwise, arguments require options with `getKey`.\n for (var _i = 0 // Otherwise, arguments require options with `getKey`.\n ; _i < arguments.length // Otherwise, arguments require options with `getKey`.\n ; _i++ // Otherwise, arguments require options with `getKey`.\n ) {\n options[_i] = arguments[_i]; // Otherwise, arguments require options with `getKey`.\n }\n var _a = options[0] || {}, onSelectionChanged = _a.onSelectionChanged, getKey = _a.getKey, _b = _a.canSelectItem, canSelectItem = _b === void 0 ? function () { return true; } : _b, items = _a.items, _c = _a.selectionMode, selectionMode = _c === void 0 ? Selection_types_1.SelectionMode.multiple : _c;\n this.mode = selectionMode;\n this._getKey = getKey || defaultGetKey;\n this._changeEventSuppressionCount = 0;\n this._exemptedCount = 0;\n this._anchoredIndex = 0;\n this._unselectableCount = 0;\n this._onSelectionChanged = onSelectionChanged;\n this._canSelectItem = canSelectItem;\n this._isModal = false;\n this.setItems(items || [], true);\n this.count = this.getSelectedCount();\n }\n Selection.prototype.canSelectItem = function (item, index) {\n if (typeof index === 'number' && index < 0) {\n return false;\n }\n return this._canSelectItem(item, index);\n };\n Selection.prototype.getKey = function (item, index) {\n var key = this._getKey(item, index);\n return typeof key === 'number' || key ? \"\" + key : '';\n };\n Selection.prototype.setChangeEvents = function (isEnabled, suppressChange) {\n this._changeEventSuppressionCount += isEnabled ? -1 : 1;\n if (this._changeEventSuppressionCount === 0 && this._hasChanged) {\n this._hasChanged = false;\n if (!suppressChange) {\n this._change();\n }\n }\n };\n Selection.prototype.isModal = function () {\n return this._isModal;\n };\n Selection.prototype.setModal = function (isModal) {\n if (this._isModal !== isModal) {\n this.setChangeEvents(false);\n this._isModal = isModal;\n if (!isModal) {\n this.setAllSelected(false);\n }\n this._change();\n this.setChangeEvents(true);\n }\n };\n /**\n * Selection needs the items, call this method to set them. If the set\n * of items is the same, this will re-evaluate selection and index maps.\n * Otherwise, shouldClear should be set to true, so that selection is\n * cleared.\n */\n Selection.prototype.setItems = function (items, shouldClear) {\n if (shouldClear === void 0) { shouldClear = true; }\n var newKeyToIndexMap = {};\n var newUnselectableIndices = {};\n var hasSelectionChanged = false;\n this.setChangeEvents(false);\n // Reset the unselectable count.\n this._unselectableCount = 0;\n // Build lookup table for quick selection evaluation.\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n if (item) {\n var key = this.getKey(item, i);\n if (key) {\n newKeyToIndexMap[key] = i;\n }\n }\n newUnselectableIndices[i] = item && !this.canSelectItem(item);\n if (newUnselectableIndices[i]) {\n this._unselectableCount++;\n }\n }\n if (shouldClear || items.length === 0) {\n this._setAllSelected(false, true);\n }\n // Check the exemption list for discrepencies.\n var newExemptedIndicies = {};\n var newExemptedCount = 0;\n for (var indexProperty in this._exemptedIndices) {\n if (this._exemptedIndices.hasOwnProperty(indexProperty)) {\n var index = Number(indexProperty);\n var item = this._items[index];\n var exemptKey = item ? this.getKey(item, Number(index)) : undefined;\n var newIndex = exemptKey ? newKeyToIndexMap[exemptKey] : index;\n if (newIndex === undefined) {\n // The item has likely been replaced or removed.\n hasSelectionChanged = true;\n }\n else {\n // We know the new index of the item. update the existing exemption table.\n newExemptedIndicies[newIndex] = true;\n newExemptedCount++;\n hasSelectionChanged = hasSelectionChanged || newIndex !== index;\n }\n }\n }\n if (this._items && this._exemptedCount === 0 && items.length !== this._items.length && this._isAllSelected) {\n // If everything was selected but the number of items has changed, selection has changed.\n hasSelectionChanged = true;\n }\n this._exemptedIndices = newExemptedIndicies;\n this._exemptedCount = newExemptedCount;\n this._keyToIndexMap = newKeyToIndexMap;\n this._unselectableIndices = newUnselectableIndices;\n this._items = items;\n this._selectedItems = null;\n if (hasSelectionChanged) {\n this._updateCount();\n this._change();\n }\n this.setChangeEvents(true);\n };\n Selection.prototype.getItems = function () {\n return this._items;\n };\n Selection.prototype.getSelection = function () {\n if (!this._selectedItems) {\n this._selectedItems = [];\n var items = this._items;\n if (items) {\n for (var i = 0; i < items.length; i++) {\n if (this.isIndexSelected(i)) {\n this._selectedItems.push(items[i]);\n }\n }\n }\n }\n return this._selectedItems;\n };\n Selection.prototype.getSelectedCount = function () {\n return this._isAllSelected\n ? this._items.length - this._exemptedCount - this._unselectableCount\n : this._exemptedCount;\n };\n Selection.prototype.getSelectedIndices = function () {\n if (!this._selectedIndices) {\n this._selectedIndices = [];\n var items = this._items;\n if (items) {\n for (var i = 0; i < items.length; i++) {\n if (this.isIndexSelected(i)) {\n this._selectedIndices.push(i);\n }\n }\n }\n }\n return this._selectedIndices;\n };\n Selection.prototype.isRangeSelected = function (fromIndex, count) {\n if (count === 0) {\n return false;\n }\n var endIndex = fromIndex + count;\n for (var i = fromIndex; i < endIndex; i++) {\n if (!this.isIndexSelected(i)) {\n return false;\n }\n }\n return true;\n };\n Selection.prototype.isAllSelected = function () {\n var selectableCount = this._items.length - this._unselectableCount;\n // In single mode, we can only have a max of 1 item.\n if (this.mode === Selection_types_1.SelectionMode.single) {\n selectableCount = Math.min(selectableCount, 1);\n }\n return ((this.count > 0 && this._isAllSelected && this._exemptedCount === 0) ||\n (!this._isAllSelected && this._exemptedCount === selectableCount && selectableCount > 0));\n };\n Selection.prototype.isKeySelected = function (key) {\n var index = this._keyToIndexMap[key];\n return this.isIndexSelected(index);\n };\n Selection.prototype.isIndexSelected = function (index) {\n return !!((this.count > 0 && this._isAllSelected && !this._exemptedIndices[index] && !this._unselectableIndices[index]) ||\n (!this._isAllSelected && this._exemptedIndices[index]));\n };\n Selection.prototype.setAllSelected = function (isAllSelected) {\n if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) {\n return;\n }\n var selectableCount = this._items ? this._items.length - this._unselectableCount : 0;\n this.setChangeEvents(false);\n if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) {\n this._exemptedIndices = {};\n if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) {\n this._exemptedCount = 0;\n this._isAllSelected = isAllSelected;\n this._change();\n }\n this._updateCount();\n }\n this.setChangeEvents(true);\n };\n Selection.prototype.setKeySelected = function (key, isSelected, shouldAnchor) {\n var index = this._keyToIndexMap[key];\n if (index >= 0) {\n this.setIndexSelected(index, isSelected, shouldAnchor);\n }\n };\n Selection.prototype.setIndexSelected = function (index, isSelected, shouldAnchor) {\n if (this.mode === Selection_types_1.SelectionMode.none) {\n return;\n }\n // Clamp the index.\n index = Math.min(Math.max(0, index), this._items.length - 1);\n // No-op on out of bounds selections.\n if (index < 0 || index >= this._items.length) {\n return;\n }\n this.setChangeEvents(false);\n var isExempt = this._exemptedIndices[index];\n var canSelect = !this._unselectableIndices[index];\n if (canSelect) {\n if (isSelected && this.mode === Selection_types_1.SelectionMode.single) {\n // If this is single-select, the previous selection should be removed.\n this._setAllSelected(false, true);\n }\n // Determine if we need to remove the exemption.\n if (isExempt && ((isSelected && this._isAllSelected) || (!isSelected && !this._isAllSelected))) {\n delete this._exemptedIndices[index];\n this._exemptedCount--;\n }\n // Determine if we need to add the exemption.\n if (!isExempt && ((isSelected && !this._isAllSelected) || (!isSelected && this._isAllSelected))) {\n this._exemptedIndices[index] = true;\n this._exemptedCount++;\n }\n if (shouldAnchor) {\n this._anchoredIndex = index;\n }\n }\n this._updateCount();\n this.setChangeEvents(true);\n };\n Selection.prototype.selectToKey = function (key, clearSelection) {\n this.selectToIndex(this._keyToIndexMap[key], clearSelection);\n };\n Selection.prototype.selectToIndex = function (index, clearSelection) {\n if (this.mode === Selection_types_1.SelectionMode.none) {\n return;\n }\n if (this.mode === Selection_types_1.SelectionMode.single) {\n this.setIndexSelected(index, true, true);\n return;\n }\n var anchorIndex = this._anchoredIndex || 0;\n var startIndex = Math.min(index, anchorIndex);\n var endIndex = Math.max(index, anchorIndex);\n this.setChangeEvents(false);\n if (clearSelection) {\n this._setAllSelected(false, true);\n }\n for (; startIndex <= endIndex; startIndex++) {\n this.setIndexSelected(startIndex, true, false);\n }\n this.setChangeEvents(true);\n };\n Selection.prototype.toggleAllSelected = function () {\n this.setAllSelected(!this.isAllSelected());\n };\n Selection.prototype.toggleKeySelected = function (key) {\n this.setKeySelected(key, !this.isKeySelected(key), true);\n };\n Selection.prototype.toggleIndexSelected = function (index) {\n this.setIndexSelected(index, !this.isIndexSelected(index), true);\n };\n Selection.prototype.toggleRangeSelected = function (fromIndex, count) {\n if (this.mode === Selection_types_1.SelectionMode.none) {\n return;\n }\n var isRangeSelected = this.isRangeSelected(fromIndex, count);\n var endIndex = fromIndex + count;\n if (this.mode === Selection_types_1.SelectionMode.single && count > 1) {\n return;\n }\n this.setChangeEvents(false);\n for (var i = fromIndex; i < endIndex; i++) {\n this.setIndexSelected(i, !isRangeSelected, false);\n }\n this.setChangeEvents(true);\n };\n Selection.prototype._updateCount = function (preserveModalState) {\n if (preserveModalState === void 0) { preserveModalState = false; }\n var count = this.getSelectedCount();\n if (count !== this.count) {\n this.count = count;\n this._change();\n }\n if (!this.count && !preserveModalState) {\n this.setModal(false);\n }\n };\n Selection.prototype._setAllSelected = function (isAllSelected, preserveModalState) {\n if (preserveModalState === void 0) { preserveModalState = false; }\n if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) {\n return;\n }\n var selectableCount = this._items ? this._items.length - this._unselectableCount : 0;\n this.setChangeEvents(false);\n if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) {\n this._exemptedIndices = {};\n if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) {\n this._exemptedCount = 0;\n this._isAllSelected = isAllSelected;\n this._change();\n }\n this._updateCount(preserveModalState);\n }\n this.setChangeEvents(true);\n };\n Selection.prototype._change = function () {\n if (this._changeEventSuppressionCount === 0) {\n this._selectedItems = null;\n this._selectedIndices = undefined;\n EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_CHANGE);\n if (this._onSelectionChanged) {\n this._onSelectionChanged();\n }\n }\n else {\n this._hasChanged = true;\n }\n };\n return Selection;\n}());\nexports.Selection = Selection;\nfunction defaultGetKey(item, index) {\n // 0 may be used as a key\n var _a = (item || {}).key, key = _a === void 0 ? \"\" + index : _a;\n return key;\n}\n\n\n//# sourceURL=webpack:///../utilities/src/selection/Selection.ts?");
|
27058
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Selection_types_1 = __webpack_require__(/*! ./Selection.types */ \"../utilities/src/selection/Selection.types.ts\");\nvar EventGroup_1 = __webpack_require__(/*! ../EventGroup */ \"../utilities/src/EventGroup.ts\");\n/**\n * {@docCategory Selection}\n */\nvar Selection = /** @class */ (function () {\n /**\n * Create a new Selection. If `TItem` does not have a `key` property, you must provide an options\n * object with a `getKey` implementation. Providing options is optional otherwise.\n * (At most one `options` object is accepted.)\n */\n function Selection() {\n var options = []; // Otherwise, arguments require options with `getKey`.\n for (var _i = 0 // Otherwise, arguments require options with `getKey`.\n ; _i < arguments.length // Otherwise, arguments require options with `getKey`.\n ; _i++ // Otherwise, arguments require options with `getKey`.\n ) {\n options[_i] = arguments[_i]; // Otherwise, arguments require options with `getKey`.\n }\n var _a = options[0] || {}, onSelectionChanged = _a.onSelectionChanged, onItemsChanged = _a.onItemsChanged, getKey = _a.getKey, _b = _a.canSelectItem, canSelectItem = _b === void 0 ? function () { return true; } : _b, items = _a.items, _c = _a.selectionMode, selectionMode = _c === void 0 ? Selection_types_1.SelectionMode.multiple : _c;\n this.mode = selectionMode;\n this._getKey = getKey || defaultGetKey;\n this._changeEventSuppressionCount = 0;\n this._exemptedCount = 0;\n this._anchoredIndex = 0;\n this._unselectableCount = 0;\n this._onSelectionChanged = onSelectionChanged;\n this._onItemsChanged = onItemsChanged;\n this._canSelectItem = canSelectItem;\n this._keyToIndexMap = {};\n this._isModal = false;\n this.setItems(items || [], true);\n this.count = this.getSelectedCount();\n }\n Selection.prototype.canSelectItem = function (item, index) {\n if (typeof index === 'number' && index < 0) {\n return false;\n }\n return this._canSelectItem(item, index);\n };\n Selection.prototype.getKey = function (item, index) {\n var key = this._getKey(item, index);\n return typeof key === 'number' || key ? \"\" + key : '';\n };\n Selection.prototype.setChangeEvents = function (isEnabled, suppressChange) {\n this._changeEventSuppressionCount += isEnabled ? -1 : 1;\n if (this._changeEventSuppressionCount === 0 && this._hasChanged) {\n this._hasChanged = false;\n if (!suppressChange) {\n this._change();\n }\n }\n };\n Selection.prototype.isModal = function () {\n return this._isModal;\n };\n Selection.prototype.setModal = function (isModal) {\n if (this._isModal !== isModal) {\n this.setChangeEvents(false);\n this._isModal = isModal;\n if (!isModal) {\n this.setAllSelected(false);\n }\n this._change();\n this.setChangeEvents(true);\n }\n };\n /**\n * Selection needs the items, call this method to set them. If the set\n * of items is the same, this will re-evaluate selection and index maps.\n * Otherwise, shouldClear should be set to true, so that selection is\n * cleared.\n */\n Selection.prototype.setItems = function (items, shouldClear) {\n if (shouldClear === void 0) { shouldClear = true; }\n var newKeyToIndexMap = {};\n var newUnselectableIndices = {};\n var hasSelectionChanged = false;\n this.setChangeEvents(false);\n // Reset the unselectable count.\n this._unselectableCount = 0;\n var haveItemsChanged = false;\n // Build lookup table for quick selection evaluation.\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n if (item) {\n var key = this.getKey(item, i);\n if (key) {\n if (!haveItemsChanged && (!(key in this._keyToIndexMap) || this._keyToIndexMap[key] !== i)) {\n haveItemsChanged = true;\n }\n newKeyToIndexMap[key] = i;\n }\n }\n newUnselectableIndices[i] = item && !this.canSelectItem(item);\n if (newUnselectableIndices[i]) {\n this._unselectableCount++;\n }\n }\n if (shouldClear || items.length === 0) {\n this._setAllSelected(false, true);\n }\n // Check the exemption list for discrepencies.\n var newExemptedIndicies = {};\n var newExemptedCount = 0;\n for (var indexProperty in this._exemptedIndices) {\n if (this._exemptedIndices.hasOwnProperty(indexProperty)) {\n var index = Number(indexProperty);\n var item = this._items[index];\n var exemptKey = item ? this.getKey(item, Number(index)) : undefined;\n var newIndex = exemptKey ? newKeyToIndexMap[exemptKey] : index;\n if (newIndex === undefined) {\n // The item has likely been replaced or removed.\n hasSelectionChanged = true;\n }\n else {\n // We know the new index of the item. update the existing exemption table.\n newExemptedIndicies[newIndex] = true;\n newExemptedCount++;\n hasSelectionChanged = hasSelectionChanged || newIndex !== index;\n }\n }\n }\n if (this._items && this._exemptedCount === 0 && items.length !== this._items.length && this._isAllSelected) {\n // If everything was selected but the number of items has changed, selection has changed.\n hasSelectionChanged = true;\n }\n if (!haveItemsChanged) {\n for (var _i = 0, _a = Object.keys(this._keyToIndexMap); _i < _a.length; _i++) {\n var key = _a[_i];\n if (!(key in newKeyToIndexMap)) {\n haveItemsChanged = true;\n break;\n }\n }\n }\n this._exemptedIndices = newExemptedIndicies;\n this._exemptedCount = newExemptedCount;\n this._keyToIndexMap = newKeyToIndexMap;\n this._unselectableIndices = newUnselectableIndices;\n this._items = items;\n this._selectedItems = null;\n if (hasSelectionChanged) {\n this._updateCount();\n }\n if (haveItemsChanged) {\n EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_ITEMS_CHANGE);\n if (this._onItemsChanged) {\n this._onItemsChanged();\n }\n }\n if (hasSelectionChanged) {\n this._change();\n }\n this.setChangeEvents(true);\n };\n Selection.prototype.getItems = function () {\n return this._items;\n };\n Selection.prototype.getSelection = function () {\n if (!this._selectedItems) {\n this._selectedItems = [];\n var items = this._items;\n if (items) {\n for (var i = 0; i < items.length; i++) {\n if (this.isIndexSelected(i)) {\n this._selectedItems.push(items[i]);\n }\n }\n }\n }\n return this._selectedItems;\n };\n Selection.prototype.getSelectedCount = function () {\n return this._isAllSelected\n ? this._items.length - this._exemptedCount - this._unselectableCount\n : this._exemptedCount;\n };\n Selection.prototype.getSelectedIndices = function () {\n if (!this._selectedIndices) {\n this._selectedIndices = [];\n var items = this._items;\n if (items) {\n for (var i = 0; i < items.length; i++) {\n if (this.isIndexSelected(i)) {\n this._selectedIndices.push(i);\n }\n }\n }\n }\n return this._selectedIndices;\n };\n Selection.prototype.getItemIndex = function (key) {\n var index = this._keyToIndexMap[key];\n return (index !== null && index !== void 0 ? index : -1);\n };\n Selection.prototype.isRangeSelected = function (fromIndex, count) {\n if (count === 0) {\n return false;\n }\n var endIndex = fromIndex + count;\n for (var i = fromIndex; i < endIndex; i++) {\n if (!this.isIndexSelected(i)) {\n return false;\n }\n }\n return true;\n };\n Selection.prototype.isAllSelected = function () {\n var selectableCount = this._items.length - this._unselectableCount;\n // In single mode, we can only have a max of 1 item.\n if (this.mode === Selection_types_1.SelectionMode.single) {\n selectableCount = Math.min(selectableCount, 1);\n }\n return ((this.count > 0 && this._isAllSelected && this._exemptedCount === 0) ||\n (!this._isAllSelected && this._exemptedCount === selectableCount && selectableCount > 0));\n };\n Selection.prototype.isKeySelected = function (key) {\n var index = this._keyToIndexMap[key];\n return this.isIndexSelected(index);\n };\n Selection.prototype.isIndexSelected = function (index) {\n return !!((this.count > 0 && this._isAllSelected && !this._exemptedIndices[index] && !this._unselectableIndices[index]) ||\n (!this._isAllSelected && this._exemptedIndices[index]));\n };\n Selection.prototype.setAllSelected = function (isAllSelected) {\n if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) {\n return;\n }\n var selectableCount = this._items ? this._items.length - this._unselectableCount : 0;\n this.setChangeEvents(false);\n if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) {\n this._exemptedIndices = {};\n if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) {\n this._exemptedCount = 0;\n this._isAllSelected = isAllSelected;\n this._change();\n }\n this._updateCount();\n }\n this.setChangeEvents(true);\n };\n Selection.prototype.setKeySelected = function (key, isSelected, shouldAnchor) {\n var index = this._keyToIndexMap[key];\n if (index >= 0) {\n this.setIndexSelected(index, isSelected, shouldAnchor);\n }\n };\n Selection.prototype.setIndexSelected = function (index, isSelected, shouldAnchor) {\n if (this.mode === Selection_types_1.SelectionMode.none) {\n return;\n }\n // Clamp the index.\n index = Math.min(Math.max(0, index), this._items.length - 1);\n // No-op on out of bounds selections.\n if (index < 0 || index >= this._items.length) {\n return;\n }\n this.setChangeEvents(false);\n var isExempt = this._exemptedIndices[index];\n var canSelect = !this._unselectableIndices[index];\n if (canSelect) {\n if (isSelected && this.mode === Selection_types_1.SelectionMode.single) {\n // If this is single-select, the previous selection should be removed.\n this._setAllSelected(false, true);\n }\n // Determine if we need to remove the exemption.\n if (isExempt && ((isSelected && this._isAllSelected) || (!isSelected && !this._isAllSelected))) {\n delete this._exemptedIndices[index];\n this._exemptedCount--;\n }\n // Determine if we need to add the exemption.\n if (!isExempt && ((isSelected && !this._isAllSelected) || (!isSelected && this._isAllSelected))) {\n this._exemptedIndices[index] = true;\n this._exemptedCount++;\n }\n if (shouldAnchor) {\n this._anchoredIndex = index;\n }\n }\n this._updateCount();\n this.setChangeEvents(true);\n };\n Selection.prototype.selectToKey = function (key, clearSelection) {\n this.selectToIndex(this._keyToIndexMap[key], clearSelection);\n };\n Selection.prototype.selectToIndex = function (index, clearSelection) {\n if (this.mode === Selection_types_1.SelectionMode.none) {\n return;\n }\n if (this.mode === Selection_types_1.SelectionMode.single) {\n this.setIndexSelected(index, true, true);\n return;\n }\n var anchorIndex = this._anchoredIndex || 0;\n var startIndex = Math.min(index, anchorIndex);\n var endIndex = Math.max(index, anchorIndex);\n this.setChangeEvents(false);\n if (clearSelection) {\n this._setAllSelected(false, true);\n }\n for (; startIndex <= endIndex; startIndex++) {\n this.setIndexSelected(startIndex, true, false);\n }\n this.setChangeEvents(true);\n };\n Selection.prototype.toggleAllSelected = function () {\n this.setAllSelected(!this.isAllSelected());\n };\n Selection.prototype.toggleKeySelected = function (key) {\n this.setKeySelected(key, !this.isKeySelected(key), true);\n };\n Selection.prototype.toggleIndexSelected = function (index) {\n this.setIndexSelected(index, !this.isIndexSelected(index), true);\n };\n Selection.prototype.toggleRangeSelected = function (fromIndex, count) {\n if (this.mode === Selection_types_1.SelectionMode.none) {\n return;\n }\n var isRangeSelected = this.isRangeSelected(fromIndex, count);\n var endIndex = fromIndex + count;\n if (this.mode === Selection_types_1.SelectionMode.single && count > 1) {\n return;\n }\n this.setChangeEvents(false);\n for (var i = fromIndex; i < endIndex; i++) {\n this.setIndexSelected(i, !isRangeSelected, false);\n }\n this.setChangeEvents(true);\n };\n Selection.prototype._updateCount = function (preserveModalState) {\n if (preserveModalState === void 0) { preserveModalState = false; }\n var count = this.getSelectedCount();\n if (count !== this.count) {\n this.count = count;\n this._change();\n }\n if (!this.count && !preserveModalState) {\n this.setModal(false);\n }\n };\n Selection.prototype._setAllSelected = function (isAllSelected, preserveModalState) {\n if (preserveModalState === void 0) { preserveModalState = false; }\n if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) {\n return;\n }\n var selectableCount = this._items ? this._items.length - this._unselectableCount : 0;\n this.setChangeEvents(false);\n if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) {\n this._exemptedIndices = {};\n if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) {\n this._exemptedCount = 0;\n this._isAllSelected = isAllSelected;\n this._change();\n }\n this._updateCount(preserveModalState);\n }\n this.setChangeEvents(true);\n };\n Selection.prototype._change = function () {\n if (this._changeEventSuppressionCount === 0) {\n this._selectedItems = null;\n this._selectedIndices = undefined;\n EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_CHANGE);\n if (this._onSelectionChanged) {\n this._onSelectionChanged();\n }\n }\n else {\n this._hasChanged = true;\n }\n };\n return Selection;\n}());\nexports.Selection = Selection;\nfunction defaultGetKey(item, index) {\n // 0 may be used as a key\n var _a = (item || {}).key, key = _a === void 0 ? \"\" + index : _a;\n return key;\n}\n\n\n//# sourceURL=webpack:///../utilities/src/selection/Selection.ts?");
|
27059
27059
|
|
27060
27060
|
/***/ }),
|
27061
27061
|
|
@@ -27067,7 +27067,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Se
|
|
27067
27067
|
/***/ (function(module, exports, __webpack_require__) {
|
27068
27068
|
|
27069
27069
|
"use strict";
|
27070
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SELECTION_CHANGE = 'change';\n/**\n * {@docCategory Selection}\n */\nvar SelectionMode;\n(function (SelectionMode) {\n SelectionMode[SelectionMode[\"none\"] = 0] = \"none\";\n SelectionMode[SelectionMode[\"single\"] = 1] = \"single\";\n SelectionMode[SelectionMode[\"multiple\"] = 2] = \"multiple\";\n})(SelectionMode = exports.SelectionMode || (exports.SelectionMode = {}));\n/**\n * {@docCategory Selection}\n */\nvar SelectionDirection;\n(function (SelectionDirection) {\n SelectionDirection[SelectionDirection[\"horizontal\"] = 0] = \"horizontal\";\n SelectionDirection[SelectionDirection[\"vertical\"] = 1] = \"vertical\";\n})(SelectionDirection = exports.SelectionDirection || (exports.SelectionDirection = {}));\n\n\n//# sourceURL=webpack:///../utilities/src/selection/Selection.types.ts?");
|
27070
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SELECTION_CHANGE = 'change';\nexports.SELECTION_ITEMS_CHANGE = 'items-change';\n/**\n * {@docCategory Selection}\n */\nvar SelectionMode;\n(function (SelectionMode) {\n SelectionMode[SelectionMode[\"none\"] = 0] = \"none\";\n SelectionMode[SelectionMode[\"single\"] = 1] = \"single\";\n SelectionMode[SelectionMode[\"multiple\"] = 2] = \"multiple\";\n})(SelectionMode = exports.SelectionMode || (exports.SelectionMode = {}));\n/**\n * {@docCategory Selection}\n */\nvar SelectionDirection;\n(function (SelectionDirection) {\n SelectionDirection[SelectionDirection[\"horizontal\"] = 0] = \"horizontal\";\n SelectionDirection[SelectionDirection[\"vertical\"] = 1] = \"vertical\";\n})(SelectionDirection = exports.SelectionDirection || (exports.SelectionDirection = {}));\n\n\n//# sourceURL=webpack:///../utilities/src/selection/Selection.types.ts?");
|
27071
27071
|
|
27072
27072
|
/***/ }),
|
27073
27073
|
|
@@ -27151,7 +27151,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Re
|
|
27151
27151
|
/***/ (function(module, exports, __webpack_require__) {
|
27152
27152
|
|
27153
27153
|
"use strict";
|
27154
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/utilities', '7.
|
27154
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/utilities', '7.34.0');\n\n\n//# sourceURL=webpack:///../utilities/src/version.ts?");
|
27155
27155
|
|
27156
27156
|
/***/ }),
|
27157
27157
|
|
@@ -27715,7 +27715,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ts
|
|
27715
27715
|
/***/ (function(module, exports, __webpack_require__) {
|
27716
27716
|
|
27717
27717
|
"use strict";
|
27718
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-button', '0.
|
27718
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-button', '0.20.2');\n\n\n//# sourceURL=webpack:///./src/version.ts?");
|
27719
27719
|
|
27720
27720
|
/***/ }),
|
27721
27721
|
|