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,GAAU,KAItJ,IAAK,IAAIzF,EAAOzC,UAAUpE,OAAQlD,EAAO,IAAIiK,MAAMF,EAAO,EAAIA,EAAO,EAAI,GAAIG,EAAO,EAAGA,EAAOH,EAAMG,IAClGlK,EAAKkK,EAAO,GAAK5C,UAAU4C,GAG7B,OAAOoF,EAAS3I,WAAM,EAAQ,CAAC/B,EAAO4K,EAAUC,GAAezS,OAAOgD,GAXtE,CAYF,CAGF,uBCjCA,OAOC,WACA,aAEA,IAAI0P,EAAS,CAAC,EAAEC,eAEhB,SAASrQ,IAGR,IAFA,IAAIsQ,EAAU,GAELvI,EAAI,EAAGA,EAAIC,UAAUpE,OAAQmE,IAAK,CAC1C,IAAIwI,EAAMvI,UAAUD,GACpB,GAAKwI,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BF,EAAQpM,KAAKqM,QACP,GAAI5F,MAAMwE,QAAQoB,IACxB,GAAIA,EAAI3M,OAAQ,CACf,IAAI6M,EAAQzQ,EAAWqH,MAAM,KAAMkJ,GAC/BE,GACHH,EAAQpM,KAAKuM,EAEf,OACM,GAAgB,WAAZD,EACV,GAAID,EAAIG,WAAa3J,OAAO4J,UAAUD,SACrC,IAAK,IAAI3Q,KAAOwQ,EACXH,EAAOQ,KAAKL,EAAKxQ,IAAQwQ,EAAIxQ,IAChCuQ,EAAQpM,KAAKnE,QAIfuQ,EAAQpM,KAAKqM,EAAIG,WArBD,CAwBnB,CAEA,OAAOJ,EAAQO,KAAK,IACrB,CAEqCC,EAAOC,SAC3C/Q,EAAWgR,QAAUhR,EACrB8Q,EAAOC,QAAU/Q,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIF,CAlDA","sources":["../node_modules/@carbon/ibmdotcom-react/es/components/HorizontalRule/HorizontalRule.js","../node_modules/@carbon/ibmdotcom-react/es/components/TableOfContents/TOCDesktop.js","../node_modules/@carbon/icons-react/es/table-of-contents/20.js","../node_modules/@carbon/ibmdotcom-react/es/components/TableOfContents/TOCMobile.js","../node_modules/@carbon/ibmdotcom-react/es/components/TableOfContents/TableOfContents.js","../node_modules/carbon-components-react/es/components/Accordion/Accordion.js","../node_modules/carbon-components-react/es/components/Accordion/index.js","../node_modules/carbon-components-react/es/components/Text/TextDirectionContext.js","../node_modules/carbon-components-react/es/components/Text/Text.js","../node_modules/carbon-components-react/es/components/Accordion/AccordionItem.js","../node_modules/carbon-components-react/es/components/AccordionItem/index.js","../node_modules/carbon-components-react/es/tools/events.js","../node_modules/carbon-components-react/es/components/FeatureFlags/index.js","../node_modules/carbon-components-react/es/components/Button/Button.js","../node_modules/carbon-components-react/es/tools/toggleClass.js","../node_modules/carbon-components-react/es/prop-types/types.js","../node_modules/carbon-components-react/es/internal/keyboard/keys.js","../node_modules/carbon-components-react/es/internal/keyboard/match.js","../node_modules/carbon-components-react/es/internal/environment.js","../node_modules/carbon-components-react/es/internal/useId.js","../node_modules/carbon-components-react/es/tools/setupGetInstanceId.js","../node_modules/carbon-components-react/es/internal/usePrefix.js","../node_modules/carbon-components-react/es/prop-types/deprecate.js","../node_modules/classnames/index.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n/**\n * Copyright IBM Corp. 2016, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport classnames from 'classnames';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport settings from 'carbon-components/es/globals/js/settings';\nvar stablePrefix = ddsSettings.stablePrefix;\nvar prefix = settings.prefix;\n\n/**\n * Horizontal Rule component.\n */\nvar HorizontalRule = function HorizontalRule(_ref) {\n var _classnames;\n var type = _ref.type,\n size = _ref.size,\n contrast = _ref.contrast,\n weight = _ref.weight;\n return /*#__PURE__*/React.createElement(\"hr\", {\n \"data-autoid\": \"\".concat(stablePrefix, \"--hr\"),\n className: classnames(\"\".concat(prefix, \"--hr\"), (_classnames = {}, _defineProperty(_classnames, \"\".concat(prefix, \"--hr--\").concat(type), type), _defineProperty(_classnames, \"\".concat(prefix, \"--hr--\").concat(contrast), contrast), _defineProperty(_classnames, \"\".concat(prefix, \"--hr--\").concat(size), size), _defineProperty(_classnames, \"\".concat(prefix, \"--hr--\").concat(weight), weight), _classnames))\n });\n};\nHorizontalRule.propTypes = {\n /**\n * Type of HR. Choose from:\n *\n * | Name | Description |\n * | -------- | ------------------------------------------------------------------------------ |\n * | `solid` | Default type variant of the horizontal rule |\n * | `dashed` | Dashed/dotted type variant (type is applied in conjuction with `fluid` size) |\n */\n type: PropTypes.oneOf(['solid', 'dashed']),\n /**\n * Length of the HR. Choose from:\n *\n * | Name | Description |\n * | -------- | ------------------------------------------------------------------- |\n * | `fluid` | Default size variant - horizontal rule takes full width of the grid |\n * | `small` | Shorter fixed-length variant with a max-width of 32px |\n * | `medium` | Medium fixed-length variant with a max-width of 48px |\n * | `large` | Longer fixed-length variant with a max-width of 64px |\n */\n size: PropTypes.oneOf(['fluid', 'small', 'medium', 'large']),\n /**\n * Contrast of the HR. Choose from:\n *\n * | Name | Description |\n * | ----------------- | ------------------------------ |\n * | `medium-contrast` | Default contrast color variant |\n * | `low-contrast` | Lighter contrast color variant |\n * | `high-contrast` | Darker contrast color variant |\n */\n contrast: PropTypes.oneOf(['medium-contrast', 'low-contrast', 'high-contrast']),\n /**\n * Weight of the HR. Choose from:\n *\n * | Name | Description |\n * | ------- | ------------------------------------------------------------------------------------ |\n * | `thin` | Default weight variant |\n * | `thick` | Slightly thicker weight variant (this only applied in conjunction with `fluid` size) |\n */\n weight: PropTypes.oneOf(['thin', 'thick'])\n};\nexport default HorizontalRule;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n/**\n * Copyright IBM Corp. 2016, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport classNames from 'classnames';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport smoothScroll from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll';\nvar stablePrefix = ddsSettings.stablePrefix;\nvar prefix = settings.prefix;\n\n/**\n * DesktopMenu Component.\n */\nvar TOCDesktop = function TOCDesktop(_ref) {\n var menuItems = _ref.menuItems,\n selectedId = _ref.selectedId;\n /**\n * Render menu items\n *\n * @param {Array} items menu items array\n * @param {string} activeId selected item id\n * @returns {*} JSX Object\n */\n var renderMenuItems = function renderMenuItems(items, activeId) {\n return items.map(function (item, index) {\n if ((item === null || item === void 0 ? void 0 : item.id) !== 'menuLabel') {\n var isActive = activeId === item.id;\n return /*#__PURE__*/React.createElement(\"li\", {\n key: index,\n \"data-autoid\": \"\".concat(stablePrefix, \"--tableofcontents__desktop__item-\").concat(item.id),\n className: classNames(\"\".concat(prefix, \"--tableofcontents__desktop__item\"), _defineProperty({}, \"\".concat(prefix, \"--tableofcontents__desktop__item--active\"), isActive))\n }, /*#__PURE__*/React.createElement(\"a\", _extends({}, isActive ? {\n 'aria-current': 'location'\n } : {}, {\n onClick: function onClick(e) {\n return handleOnClick(e, item.id);\n },\n href: \"#\".concat(item.id)\n }), item.title));\n }\n });\n };\n\n /**\n * Handle OnClick\n *\n * @param {*} e event object\n * @param {*} id menu item id\n */\n var handleOnClick = function handleOnClick(e, id) {\n e.preventDefault();\n var selector = \"a[name=\\\"\".concat(id, \"\\\"]\");\n var masthead = e.target.ownerDocument.querySelector(\".\".concat(prefix, \"--masthead\"));\n smoothScroll(null, selector, masthead === null || masthead === void 0 ? void 0 : masthead.offsetHeight);\n triggerFocus(selector);\n };\n\n /**\n * Trigger the focus on screen readers, so they can read the target paragraph\n *\n * @param {*} elem Selector to find the item\n */\n function triggerFocus(elem) {\n var element = document.querySelector(elem);\n var handleFocusOut = function handleFocusOut(event) {\n var focusoutTarget = event.target;\n focusoutTarget.removeAttribute('tabindex');\n };\n element.setAttribute('tabindex', '0');\n element.focus({\n preventScroll: true\n });\n element.addEventListener('focusout', handleFocusOut, {\n once: true\n });\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__desktop\"),\n \"data-autoid\": \"\".concat(stablePrefix, \"--tableofcontents__desktop\")\n }, /*#__PURE__*/React.createElement(\"ul\", null, renderMenuItems(menuItems, selectedId)));\n};\nTOCDesktop.propTypes = {\n /**\n * Array of menu item objects to render within the side nav.\n * Each items has the following structure:\n *\n * | Properties Name | Data Type | Description |\n * | --------------- | --------- | --------------- |\n * | title | String | Menu title text |\n * | id | String | Menu id |\n */\n menuItems: PropTypes.array,\n /**\n * Id of a menu item.\n */\n selectedId: PropTypes.string\n};\nexport default TOCDesktop;","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-9ecdf98c.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path;\n\nvar _excluded = [\"children\"];\nvar TableOfContents20 = /*#__PURE__*/React.forwardRef(function TableOfContents20(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 6H22V8H4zM4 12H22V14H4zM4 18H22V20H4zM4 24H22V26H4zM26 6H28V8H26zM26 12H28V14H26zM26 18H28V20H26zM26 24H28V26H26z\"\n })), children);\n});\n\nexport { TableOfContents20 as default };\n","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n/**\n * Copyright IBM Corp. 2016, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport React, { useState, useEffect } from 'react';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport PropTypes from 'prop-types';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport smoothScroll from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll';\nimport TableOfContents20 from '@carbon/icons-react/es/table-of-contents/20';\nvar stablePrefix = ddsSettings.stablePrefix;\nvar prefix = settings.prefix;\n\n/**\n * Mobile Component.\n */\nvar TOCMobile = function TOCMobile(_ref) {\n var menuItems = _ref.menuItems,\n selectedId = _ref.selectedId,\n menuLabel = _ref.menuLabel,\n updateState = _ref.updateState;\n var _useState = useState('menuLabel'),\n _useState2 = _slicedToArray(_useState, 2),\n selectedOption = _useState2[0],\n setSelectedOption = _useState2[1];\n useEffect(function () {\n setSelectedOption(selectedId);\n }, [selectedId]);\n\n /**\n * Handle onChange event of select\n *\n * @param {*} e event object\n */\n var handleChange = function handleChange(e) {\n var id = e.target.value;\n var filteredItems = menuItems.filter(function (menu) {\n return menu.id === id;\n });\n var title = filteredItems[0].title;\n updateState(id, title);\n var selector = \"a[name=\\\"\".concat(id, \"\\\"]\");\n smoothScroll(null, selector, 50);\n triggerFocus(selector);\n };\n\n /**\n * Trigger the focus on screen readers, so they can read the target paragraph\n *\n * @param {*} elem Selector to find the item\n */\n function triggerFocus(elem) {\n var element = document.querySelector(elem);\n if (element) {\n var handleFocusOut = function handleFocusOut(event) {\n var focusoutTarget = event.target;\n focusoutTarget.removeAttribute('tabindex');\n };\n element.setAttribute('tabindex', '0');\n element.focus({\n preventScroll: true\n });\n element.addEventListener('focusout', handleFocusOut, {\n once: true\n });\n }\n }\n\n /**\n * Handle OnBlur event\n *\n * @returns {null} Returns null for blur events\n */\n var handleOnBlur = function handleOnBlur() {\n return null;\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__mobile\"),\n \"data-autoid\": \"\".concat(stablePrefix, \"--tableofcontents__mobile\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__mobile__select__wrapper\")\n }, /*#__PURE__*/React.createElement(\"select\", {\n \"aria-label\": menuLabel,\n className: \"\".concat(prefix, \"--tableofcontents__mobile__select\"),\n onBlur: handleOnBlur,\n value: selectedOption,\n onChange: function onChange(e) {\n return handleChange(e);\n }\n }, renderOptions(menuItems, menuLabel)), /*#__PURE__*/React.createElement(TableOfContents20, {\n className: \"\".concat(prefix, \"--tableofcontents__mobile__select__icon\"),\n \"aria-label\": \"menu icon\"\n }, /*#__PURE__*/React.createElement(\"title\", null, \"menu icon\"))));\n};\n\n/**\n * Render options for select\n *\n * @param {Array} options menu item arrray\n * @param {Array} label menu label\n * @returns {*} JSX Object\n */\nvar renderOptions = function renderOptions(options, label) {\n var labelObj = {\n title: \"\".concat(label, \" ...\"),\n id: 'menuLabel'\n };\n options.findIndex(function (x) {\n return x.id === labelObj.id;\n }) === -1 ? options.unshift(labelObj) : null;\n return options.map(function (option, index) {\n if (option) {\n return /*#__PURE__*/React.createElement(\"option\", {\n className: \"\".concat(prefix, \"--tableofcontents__mobile__select__option\"),\n \"data-autoid\": \"\".concat(stablePrefix, \"--tableofcontents__mobile__select__option-\").concat(option.id),\n key: index,\n value: option.id,\n defaultValue: index === 0,\n disabled: index === 0,\n hidden: index === 0\n }, option.title);\n }\n });\n};\nTOCMobile.propTypes = {\n /**\n * Array of menu item objects to render within the side nav.\n * Each items has the following structure:\n *\n * | Properties Name | Data Type | Description |\n * | --------------- | --------- | --------------- |\n * | title | String | Menu title text |\n * | id | String | Menu id |\n */\n menuItems: PropTypes.array,\n /**\n * Id of a menu item.\n */\n selectedId: PropTypes.string,\n /**\n * Menu label for mobile menu.\n */\n menuLabel: PropTypes.string,\n /**\n * Function to update parent state.\n */\n updateState: PropTypes.func\n};\nexport default TOCMobile;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n/**\n * Copyright IBM Corp. 2016, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport React, { useEffect, useState } from 'react';\nimport classNames from 'classnames';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { HorizontalRule } from '../HorizontalRule';\nimport PropTypes from 'prop-types';\nimport settings from 'carbon-components/es/globals/js/settings';\nimport TOCDesktop from './TOCDesktop';\nimport TOCMobile from './TOCMobile';\nvar stablePrefix = ddsSettings.stablePrefix;\nvar prefix = settings.prefix;\n\n/**\n * loops into the array of elements and returns the values\n *\n * @private\n * @returns {Array} returns element name and data title\n */\nvar _findMenuItems = function _findMenuItems() {\n var eles = document.querySelectorAll('a[name]');\n var menuItems = [];\n eles.forEach(function (element) {\n if (element.getAttribute('name') !== 'menuLabel') {\n menuItems.push({\n id: element.getAttribute('name'),\n title: element.getAttribute('data-title') || ''\n });\n }\n });\n return menuItems;\n};\n\n/**\n * Table of Contents pattern.\n */\nvar TableOfContents = function TableOfContents(_ref) {\n var menuItems = _ref.menuItems,\n children = _ref.children,\n menuLabel = _ref.menuLabel,\n theme = _ref.theme,\n stickyOffset = _ref.stickyOffset,\n menuRule = _ref.menuRule,\n headingContent = _ref.headingContent;\n var _useState = useState([]),\n _useState2 = _slicedToArray(_useState, 2),\n useMenuItems = _useState2[0],\n setUseMenuItems = _useState2[1];\n var _useState3 = useState(''),\n _useState4 = _slicedToArray(_useState3, 2),\n selectedId = _useState4[0],\n setSelectedId = _useState4[1];\n var _useState5 = useState(''),\n _useState6 = _slicedToArray(_useState5, 2),\n selectedTitle = _useState6[0],\n setSelectedTitle = _useState6[1];\n useEffect(function () {\n setUseMenuItems(menuItems !== null && menuItems !== void 0 && menuItems.length ? _toConsumableArray(menuItems) : _findMenuItems());\n }, [children, menuItems]);\n useEffect(function () {\n var id = useMenuItems[0] ? useMenuItems[0].id : '';\n var title = useMenuItems[0] ? useMenuItems[0].title : '';\n if (id === 'menuLabel' && useMenuItems[1]) {\n id = useMenuItems[1].id;\n title = useMenuItems[1].title;\n }\n setSelectedId(id);\n setSelectedTitle(title);\n }, [useMenuItems]);\n useEffect(function () {\n /**\n * Function to be added to eventListener and cleaned later on\n */\n var handleRAF = function handleRAF() {\n window.requestAnimationFrame(setSelectedItem);\n };\n window.addEventListener('scroll', handleRAF);\n return function () {\n return window.removeEventListener('scroll', handleRAF);\n };\n });\n\n /**\n * Set selected id & title\n *\n */\n var setSelectedItem = function setSelectedItem() {\n var elems = getElemsInView();\n if (elems) {\n var _filteredItems$;\n var id = elems || useMenuItems[0].id;\n var filteredItems = useMenuItems.filter(function (menu) {\n if (id !== 'undefined') {\n return menu.id === id;\n }\n });\n var title = (_filteredItems$ = filteredItems[0]) === null || _filteredItems$ === void 0 ? void 0 : _filteredItems$.title;\n if (title !== undefined) {\n setSelectedId(id);\n setSelectedTitle(title);\n }\n }\n };\n\n /**\n * Check whether provided anchor tags are in visible viewport\n *\n * @returns {string} name attribute\n */\n var getElemsInView = function getElemsInView() {\n var items = _toConsumableArray(document.querySelectorAll('a[name]')).map(function (elem, index, arr) {\n return {\n elem: elem,\n height: arr[index + 1] ? arr[index + 1].getBoundingClientRect().y - elem.getBoundingClientRect().y : null,\n position: elem.getBoundingClientRect().y\n };\n }).filter(function (elem, index, arr) {\n return elem.height === null ? arr[index - 1].position < arr[index - 1].height : elem.position - 50 - stickyOffset > -elem.height;\n });\n\n // Sets last section as active at the end of page in case there is not enough height for it to dynamically activate\n var bottomReached = document.documentElement.scrollTop + document.documentElement.clientHeight === document.documentElement.scrollHeight;\n return !bottomReached ? items[0].elem.getAttribute('name') : items[items.length - 1].elem.getAttribute('name');\n };\n\n /**\n * Sets the selected menu item\n *\n * @param {*} id selected id of menu item\n * @param {*} title selected title of menu item\n */\n var updateState = function updateState(id, title) {\n setSelectedId(id);\n setSelectedTitle(title);\n };\n\n /**\n * Validate if the Menu Items has Id and Title filled\n *\n * @param {Array} menuItems array of Items\n * @returns {Array} filtered array of items\n */\n var validateMenuItems = function validateMenuItems(menuItems) {\n return menuItems.filter(function (item) {\n var _item$title, _item$id;\n return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.trim().length) && (item === null || item === void 0 ? void 0 : (_item$id = item.id) === null || _item$id === void 0 ? void 0 : _item$id.trim().length);\n });\n };\n\n /**\n * Props for TOCDesktop and TOCMobile\n *\n * @type {{\n * updateState: Function,\n * selectedId: string,\n * menuItems: Array,\n * selectedTitle: string,\n * menuLabel: string\n * children: object\n * }}\n */\n var props = {\n menuItems: validateMenuItems(useMenuItems),\n selectedId: selectedId,\n selectedTitle: selectedTitle,\n menuLabel: menuLabel,\n updateState: updateState,\n children: children.length > 1 ? children[0] : null\n };\n\n /**\n * Render TableOfContents pattern\n *\n * @returns {*} JSX Object\n */\n return /*#__PURE__*/React.createElement(\"section\", {\n \"data-autoid\": \"\".concat(stablePrefix, \"--tableofcontents\"),\n className: classNames(\"\".concat(prefix, \"--tableofcontents\"), _defineProperty({}, \"\".concat(prefix, \"--tableofcontents--\").concat(theme), theme))\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(stablePrefix, \"-ce--table-of-contents__container\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__sidebar\")\n }, headingContent && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__desktop__children\")\n }, headingContent, menuRule && /*#__PURE__*/React.createElement(HorizontalRule, null)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__mobile-top\")\n }), /*#__PURE__*/React.createElement(\"div\", {\n style: {\n position: 'sticky',\n top: stickyOffset ? \"\".concat(stickyOffset, \"px\") : 0\n }\n }, /*#__PURE__*/React.createElement(TOCDesktop, _extends({\n menuRule: menuRule,\n headingContent: headingContent\n }, props)), /*#__PURE__*/React.createElement(TOCMobile, props))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__content\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__content-wrapper\")\n }, headingContent !== undefined ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tableofcontents__children__mobile\")\n }, headingContent), children) : children))));\n};\nTableOfContents.propTypes = {\n /**\n * Array of menu item objects to render within the side nav.\n * Each items has the following structure:\n *\n * | Properties Name | Data Type | Description |\n * | --------------- | --------- | --------------- |\n * | title | String | Menu title text |\n * | id | String | Menu id |\n *\n * If `menuItems` is not passed in as a prop, the menu items are dynamically\n * generated based on anchor links that exist on the page. The anchor links should\n * follow the following format:\n *\n * ```html\n * <a name=\"name-of-section\" data-title=\"Lorem Ipsum\"></a>\n * ```\n */\n menuItems: PropTypes.arrayOf(PropTypes.shape({\n title: PropTypes.string.isRequired,\n id: PropTypes.string.isRequired\n })),\n /**\n * Content to display next to the side nav.\n */\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n /**\n * Placeholder value for menu label.\n */\n menuLabel: PropTypes.string,\n /**\n * Defines the color theme for the pattern. Choose from:\n *\n * | Name | Description |\n * | --------------- | ---------------------------------------- |\n * | white / default | White theme applied to pattern |\n * | g10 | Gray 10 (g10) theme applied to pattern |\n * | g100 | Gray 100 (g100) theme applied to pattern |\n */\n theme: PropTypes.oneOf(['white', 'g10', 'g100']),\n /**\n * Defines the offset for the sticky column.\n */\n stickyOffset: PropTypes.number,\n /**\n * Defines if the menu ruler will be rendered.\n */\n menuRule: PropTypes.bool,\n /**\n * Content to be displayed above the navigation menu.\n */\n headingContent: PropTypes.node\n};\nTableOfContents.defaultProps = {\n menuItems: null,\n menuLabel: 'Jump to',\n theme: 'white',\n stickyOffset: null\n};\nexport default TableOfContents;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"align\", \"children\", \"className\", \"disabled\", \"size\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport { usePrefix } from '../../internal/usePrefix';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport * as FeatureFlags from '@carbon/feature-flags';\n\nfunction Accordion(_ref) {\n var _cx;\n\n var _ref$align = _ref.align,\n align = _ref$align === void 0 ? 'end' : _ref$align,\n children = _ref.children,\n customClassName = _ref.className,\n _ref$disabled = _ref.disabled,\n disabled = _ref$disabled === void 0 ? false : _ref$disabled,\n _ref$size = _ref.size,\n size = _ref$size === void 0 ? 'md' : _ref$size,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx(\"\".concat(prefix, \"--accordion\"), customClassName, (_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--accordion--\").concat(align), align), _defineProperty(_cx, \"\".concat(prefix, \"--accordion--\").concat(size), size), _cx));\n return /*#__PURE__*/React.createElement(\"ul\", _extends({\n className: className\n }, rest), disabled ? React.Children.toArray(children).map(function (child) {\n return /*#__PURE__*/React.cloneElement(child, {\n disabled: disabled\n });\n }) : children);\n}\n\nAccordion.propTypes = {\n /**\n * Specify the alignment of the accordion heading title and chevron.\n */\n align: PropTypes.oneOf(['start', 'end']),\n\n /**\n * Pass in the children that will be rendered within the Accordion\n */\n children: PropTypes.node,\n\n /**\n * Specify an optional className to be applied to the container node\n */\n className: PropTypes.string,\n\n /**\n * Specify whether an individual AccordionItem should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Specify the size of the Accordion. Currently supports the following:\n */\n size: FeatureFlags.enabled('enable-v11-release') ? PropTypes.oneOf(['sm', 'md', 'lg']) : PropTypes.oneOf(['sm', 'md', 'lg', 'xl'])\n};\nexport default Accordion;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport Accordion from './Accordion';\nexport default Accordion;\nexport { default as AccordionItem } from './AccordionItem';\nexport { default as AccordionSkeleton } from './Accordion.Skeleton';","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { createContext } from 'react';\nexport var TextDirectionContext = /*#__PURE__*/createContext(null);","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"as\", \"children\", \"dir\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React, { useContext } from 'react';\nimport { TextDirectionContext } from './TextDirectionContext';\n\nfunction Text(_ref) {\n var _ref$as = _ref.as,\n BaseComponent = _ref$as === void 0 ? 'span' : _ref$as,\n children = _ref.children,\n _ref$dir = _ref.dir,\n dir = _ref$dir === void 0 ? 'auto' : _ref$dir,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var context = useContext(TextDirectionContext);\n var textProps = {};\n\n var value = _objectSpread({}, context);\n\n if (!context) {\n textProps.dir = dir;\n value.direction = dir;\n } else {\n var parentDirection = context.direction,\n getTextDirection = context.getTextDirection;\n\n if (getTextDirection && getTextDirection.current) {\n var text = getTextFromChildren(children);\n var override = getTextDirection.current(text);\n\n if (parentDirection !== override) {\n textProps.dir = override;\n value.direction = override;\n } else if (parentDirection === 'auto') {\n textProps.dir = override;\n }\n } else if (parentDirection !== dir) {\n textProps.dir = dir;\n value.direction = dir;\n } else if (parentDirection === 'auto') {\n textProps.dir = dir;\n }\n }\n\n return /*#__PURE__*/React.createElement(TextDirectionContext.Provider, {\n value: value\n }, /*#__PURE__*/React.createElement(BaseComponent, _extends({}, rest, textProps), children));\n}\n\nText.propTypes = {\n /**\n * Provide a custom element type used to render the outermost node\n */\n as: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.elementType]),\n\n /**\n * Provide child elements or text to be rendered inside of this component\n */\n children: PropTypes.node.isRequired,\n\n /**\n * Specify the text direction to be used for this component and any of its\n * children\n */\n dir: PropTypes.oneOf(['ltr', 'rtl', 'auto'])\n};\n\nfunction getTextFromChildren(children) {\n if (typeof children === 'string') {\n return children;\n }\n\n var text = React.Children.map(children, function (child) {\n if (typeof child === 'string') {\n return child;\n }\n\n return null;\n }).filter(function (text) {\n return text !== null;\n });\n\n if (text.length === 1) {\n return text[0];\n }\n\n return text;\n}\n\nexport { Text };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nvar _excluded = [\"children\", \"className\", \"iconDescription\", \"open\", \"onHeadingClick\", \"renderExpando\", \"renderToggle\", \"title\", \"disabled\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { ChevronRight16 } from '@carbon/icons-react';\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\nimport { Text } from '../Text';\nimport { match, keys } from '../../internal/keyboard';\nimport { useId } from '../../internal/useId';\nimport deprecate from '../../prop-types/deprecate';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar defaultRenderToggle = function defaultRenderToggle(props) {\n return /*#__PURE__*/React.createElement(\"button\", _extends({\n type: \"button\"\n }, props));\n};\n\nfunction AccordionItem(_ref) {\n var _cx;\n\n var children = _ref.children,\n customClassName = _ref.className,\n iconDescription = _ref.iconDescription,\n _ref$open = _ref.open,\n open = _ref$open === void 0 ? false : _ref$open,\n onHeadingClick = _ref.onHeadingClick,\n _ref$renderExpando = _ref.renderExpando,\n renderExpando = _ref$renderExpando === void 0 ? defaultRenderToggle : _ref$renderExpando,\n renderToggle = _ref.renderToggle,\n _ref$title = _ref.title,\n title = _ref$title === void 0 ? 'title' : _ref$title,\n disabled = _ref.disabled,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _useState = useState(open),\n _useState2 = _slicedToArray(_useState, 2),\n isOpen = _useState2[0],\n setIsOpen = _useState2[1];\n\n var _useState3 = useState(open),\n _useState4 = _slicedToArray(_useState3, 2),\n prevIsOpen = _useState4[0],\n setPrevIsOpen = _useState4[1];\n\n var _useState5 = useState(''),\n _useState6 = _slicedToArray(_useState5, 2),\n animation = _useState6[0],\n setAnimation = _useState6[1];\n\n var id = useId('accordion-item');\n var prefix = usePrefix();\n var className = cx((_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--accordion__item\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--accordion__item--active\"), isOpen), _defineProperty(_cx, \"\".concat(prefix, \"--accordion__item--\").concat(animation), animation), _defineProperty(_cx, \"\".concat(prefix, \"--accordion__item--disabled\"), disabled), _defineProperty(_cx, customClassName, !!customClassName), _cx));\n var Toggle = renderToggle || renderExpando; // remove renderExpando in next major release\n\n if (open !== prevIsOpen) {\n setAnimation(isOpen ? 'collapsing' : 'expanding');\n setIsOpen(open);\n setPrevIsOpen(open);\n } // When the AccordionItem heading is clicked, toggle the open state of the\n // panel\n\n\n function onClick(event) {\n var nextValue = !isOpen;\n setAnimation(isOpen ? 'collapsing' : 'expanding');\n setIsOpen(nextValue);\n\n if (onHeadingClick) {\n // TODO: normalize signature, potentially:\n // onHeadingClick :: (event: Event, state: { isOpen: Boolean }) => any\n onHeadingClick({\n isOpen: nextValue,\n event: event\n });\n }\n } // If the AccordionItem is open, and the user hits the ESC key, then close it\n\n\n function onKeyDown(event) {\n if (isOpen && match(event, keys.Escape)) {\n setIsOpen(false);\n }\n }\n\n function handleAnimationEnd(event) {\n if (rest.handleAnimationEnd) {\n rest.handleAnimationEnd(event);\n }\n\n setAnimation('');\n }\n\n return /*#__PURE__*/React.createElement(\"li\", _extends({\n className: className\n }, rest, {\n onAnimationEnd: handleAnimationEnd\n }), /*#__PURE__*/React.createElement(Toggle, {\n disabled: disabled,\n \"aria-controls\": id,\n \"aria-expanded\": isOpen,\n className: \"\".concat(prefix, \"--accordion__heading\"),\n onClick: onClick,\n onKeyDown: onKeyDown,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(ChevronRight16, {\n className: \"\".concat(prefix, \"--accordion__arrow\")\n }), /*#__PURE__*/React.createElement(Text, {\n as: \"div\",\n className: \"\".concat(prefix, \"--accordion__title\")\n }, title)), /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n className: \"\".concat(prefix, \"--accordion__content\")\n }, children));\n}\n\nAccordionItem.propTypes = {\n /**\n * Provide the contents of your AccordionItem\n */\n children: PropTypes.node,\n\n /**\n * Specify an optional className to be applied to the container node\n */\n className: PropTypes.string,\n\n /**\n * Specify whether an individual AccordionItem should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * The description of the expand icon.\n */\n iconDescription: deprecate(PropTypes.string, 'The `iconDescription` prop has been deprecated as it is no longer ' + 'required. Feel free to remove this prop from <AccordionItem>. This ' + 'prop will be removed in the next major release of ' + '`carbon-components-react`'),\n\n /**\n * The handler of the massaged `click` event.\n */\n onClick: PropTypes.func,\n\n /**\n * The handler of the massaged `click` event on the heading.\n */\n onHeadingClick: PropTypes.func,\n\n /**\n * `true` to open the expand.\n */\n open: PropTypes.bool,\n\n /**\n * The callback function to render the expand button.\n * Can be a React component class.\n */\n renderExpando: deprecate(PropTypes.func, 'The `renderExpando` prop has been deprecated and will be removed in the next major release of Carbon. Use the `renderToggle` prop instead.'),\n\n /**\n * The callback function to render the expand button.\n * Can be a React component class.\n */\n renderToggle: PropTypes.func,\n\n /**\n * The accordion title.\n */\n title: PropTypes.node\n};\nexport default AccordionItem;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// Alias for import paths for build tools that rely on this\nimport { AccordionItem } from '../Accordion';\nexport default AccordionItem;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Generic utility to compose event handlers so that consumers can supply their\n * own event listeners on table components. The default heuristic here is to\n * iterate through the given functions until `preventDefault` is called on the\n * given event.\n *\n * @param {Array<Function>} fns array of functions to apply to the event\n * @returns {Function}\n */\nexport var composeEventHandlers = function composeEventHandlers(fns) {\n return function (event) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n for (var i = 0; i < fns.length; i++) {\n if (event.defaultPrevented) {\n break;\n }\n\n if (typeof fns[i] === 'function') {\n fns[i].apply(fns, [event].concat(args));\n }\n }\n };\n};","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n\n/**\n * Copyright IBM Corp. 2015, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { FeatureFlags as GlobalFeatureFlags, createScope } from '@carbon/feature-flags';\nimport PropTypes from 'prop-types';\nimport React, { createContext, useContext, useEffect, useRef, useState } from 'react';\n/**\n * Our FeatureFlagContext is used alongside the FeatureFlags component to enable\n * or disable feature flags in a given React tree\n */\n\nvar FeatureFlagContext = /*#__PURE__*/createContext(GlobalFeatureFlags);\n/**\n * Supports an object of feature flag values with the `flags` prop, merging them\n * along with the current `FeatureFlagContext` to provide consumers to check if\n * a feature flag is enabled or disabled in a given React tree\n */\n\nfunction FeatureFlags(_ref) {\n var children = _ref.children,\n _ref$flags = _ref.flags,\n flags = _ref$flags === void 0 ? {} : _ref$flags;\n var parentScope = useContext(FeatureFlagContext);\n\n var _useState = useState(parentScope),\n _useState2 = _slicedToArray(_useState, 2),\n prevParentScope = _useState2[0],\n setPrevParentScope = _useState2[1];\n\n var _useState3 = useState(function () {\n var scope = createScope(flags);\n scope.mergeWithScope(parentScope);\n return scope;\n }),\n _useState4 = _slicedToArray(_useState3, 2),\n scope = _useState4[0],\n updateScope = _useState4[1];\n\n if (parentScope !== prevParentScope) {\n var _scope = createScope(flags);\n\n _scope.mergeWithScope(parentScope);\n\n updateScope(_scope);\n setPrevParentScope(parentScope);\n } // We use a custom hook to detect if any of the keys or their values change\n // for flags that are passed in. If they have changed, then we re-create the\n // FeatureFlagScope using the new flags\n\n\n useChangedValue(flags, isEqual, function (changedFlags) {\n var scope = createScope(changedFlags);\n scope.mergeWithScope(parentScope);\n updateScope(scope);\n });\n return /*#__PURE__*/React.createElement(FeatureFlagContext.Provider, {\n value: scope\n }, children);\n}\n\nFeatureFlags.propTypes = {\n children: PropTypes.node,\n\n /**\n * Provide the feature flags to enabled or disabled in the current React tree\n */\n flags: PropTypes.objectOf(PropTypes.bool)\n};\n/**\n * This hook will store previous versions of the given `value` and compare the\n * current value to the previous one using the `compare` function. If the\n * compare function returns true, then the given `callback` is invoked in an\n * effect.\n *\n * @param {any} value\n * @param {Function} compare\n * @param {Function} callback\n */\n\nfunction useChangedValue(value, compare, callback) {\n var initialRender = useRef(false);\n var savedCallback = useRef(callback);\n\n var _useState5 = useState(value),\n _useState6 = _slicedToArray(_useState5, 2),\n prevValue = _useState6[0],\n setPrevValue = _useState6[1];\n\n if (!compare(prevValue, value)) {\n setPrevValue(value);\n }\n\n useEffect(function () {\n savedCallback.current = callback;\n });\n useEffect(function () {\n // We only want the callback triggered after the first render\n if (initialRender.current) {\n savedCallback.current(prevValue);\n }\n }, [prevValue]);\n useEffect(function () {\n initialRender.current = true;\n }, []);\n}\n/**\n * Access whether a given flag is enabled or disabled in a given\n * FeatureFlagContext\n *\n * @returns {boolean}\n */\n\n\nfunction useFeatureFlag(flag) {\n var scope = useContext(FeatureFlagContext);\n return scope.enabled(flag);\n}\n/**\n * Access all feature flag information for the given FeatureFlagContext\n *\n * @returns {FeatureFlagScope}\n */\n\n\nfunction useFeatureFlags() {\n return useContext(FeatureFlagContext);\n}\n/**\n * Compare two objects and determine if they are equal. This is a shallow\n * comparison since the objects we are comparing are objects with boolean flags\n * from the flags prop in the `FeatureFlags` component\n *\n * @param {object} a\n * @param {object} b\n * @returns {boolean}\n */\n\n\nfunction isEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n for (var _i = 0, _Object$keys = Object.keys(a); _i < _Object$keys.length; _i++) {\n var key = _Object$keys[_i];\n\n if (a[key] !== b[key]) {\n return false;\n }\n }\n\n for (var _i2 = 0, _Object$keys2 = Object.keys(b); _i2 < _Object$keys2.length; _i2++) {\n var _key = _Object$keys2[_i2];\n\n if (b[_key] !== a[_key]) {\n return false;\n }\n }\n\n return true;\n}\n\nexport { FeatureFlags, FeatureFlagContext, useFeatureFlags, useFeatureFlag };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"as\", \"children\", \"className\", \"dangerDescription\", \"disabled\", \"hasIconOnly\", \"href\", \"iconDescription\", \"isExpressive\", \"isSelected\", \"kind\", \"onBlur\", \"onClick\", \"onFocus\", \"onMouseEnter\", \"onMouseLeave\", \"renderIcon\", \"size\", \"small\", \"tabIndex\", \"tooltipAlignment\", \"tooltipPosition\", \"type\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React, { useState, useEffect, useRef } from 'react';\nimport classNames from 'classnames';\nimport { ButtonKinds } from '../../prop-types/types';\nimport deprecate from '../../prop-types/deprecate';\nimport { composeEventHandlers } from '../../tools/events';\nimport { keys, matches } from '../../internal/keyboard';\nimport { usePrefix } from '../../internal/usePrefix';\nimport { useId } from '../../internal/useId';\nimport toggleClass from '../../tools/toggleClass';\nimport { useFeatureFlag } from '../FeatureFlags';\nimport * as FeatureFlags from '@carbon/feature-flags';\nvar Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {\n var _classNames;\n\n var as = _ref.as,\n children = _ref.children,\n className = _ref.className,\n _ref$dangerDescriptio = _ref.dangerDescription,\n dangerDescription = _ref$dangerDescriptio === void 0 ? 'danger' : _ref$dangerDescriptio,\n _ref$disabled = _ref.disabled,\n disabled = _ref$disabled === void 0 ? false : _ref$disabled,\n _ref$hasIconOnly = _ref.hasIconOnly,\n hasIconOnly = _ref$hasIconOnly === void 0 ? false : _ref$hasIconOnly,\n href = _ref.href,\n iconDescription = _ref.iconDescription,\n _ref$isExpressive = _ref.isExpressive,\n isExpressive = _ref$isExpressive === void 0 ? false : _ref$isExpressive,\n isSelected = _ref.isSelected,\n _ref$kind = _ref.kind,\n kind = _ref$kind === void 0 ? 'primary' : _ref$kind,\n onBlur = _ref.onBlur,\n onClick = _ref.onClick,\n onFocus = _ref.onFocus,\n onMouseEnter = _ref.onMouseEnter,\n onMouseLeave = _ref.onMouseLeave,\n ButtonImageElement = _ref.renderIcon,\n _ref$size = _ref.size,\n size = _ref$size === void 0 ? FeatureFlags.enabled('enable-v11-release') ? 'lg' : 'default' : _ref$size,\n small = _ref.small,\n _ref$tabIndex = _ref.tabIndex,\n tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,\n _ref$tooltipAlignment = _ref.tooltipAlignment,\n tooltipAlignment = _ref$tooltipAlignment === void 0 ? 'center' : _ref$tooltipAlignment,\n _ref$tooltipPosition = _ref.tooltipPosition,\n tooltipPosition = _ref$tooltipPosition === void 0 ? 'top' : _ref$tooltipPosition,\n _ref$type = _ref.type,\n type = _ref$type === void 0 ? 'button' : _ref$type,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n allowTooltipVisibility = _useState2[0],\n setAllowTooltipVisibility = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isHovered = _useState4[0],\n setIsHovered = _useState4[1];\n\n var _useState5 = useState(false),\n _useState6 = _slicedToArray(_useState5, 2),\n isFocused = _useState6[0],\n setIsFocused = _useState6[1];\n\n var tooltipRef = useRef(null);\n var tooltipTimeout = useRef(null);\n var prefix = usePrefix();\n\n var closeTooltips = function closeTooltips(evt) {\n var _document;\n\n var tooltipNode = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelectorAll(\".\".concat(prefix, \"--tooltip--a11y\"));\n\n _toConsumableArray(tooltipNode).map(function (node) {\n toggleClass(node, \"\".concat(prefix, \"--tooltip--hidden\"), node !== evt.currentTarget);\n });\n };\n\n var handleFocus = function handleFocus(evt) {\n if (hasIconOnly) {\n closeTooltips(evt);\n setIsFocused(true);\n setAllowTooltipVisibility(true);\n }\n };\n\n var handleBlur = function handleBlur() {\n if (hasIconOnly) {\n setIsHovered(false);\n setIsFocused(false);\n setAllowTooltipVisibility(false);\n }\n };\n\n var handleMouseEnter = function handleMouseEnter(evt) {\n if (hasIconOnly) {\n tooltipTimeout.current && clearTimeout(tooltipTimeout.current);\n\n if (evt.target === tooltipRef.current) {\n setAllowTooltipVisibility(true);\n return;\n }\n\n closeTooltips(evt);\n setAllowTooltipVisibility(true);\n }\n };\n\n var handleMouseLeave = function handleMouseLeave() {\n if (!isFocused && hasIconOnly) {\n tooltipTimeout.current = setTimeout(function () {\n setAllowTooltipVisibility(false);\n setIsHovered(false);\n }, 100);\n }\n };\n\n var handleClick = function handleClick(evt) {\n // Prevent clicks on the tooltip from triggering the button click event\n setAllowTooltipVisibility(false);\n\n if (evt.target === tooltipRef.current) {\n evt.preventDefault();\n return;\n }\n };\n\n useEffect(function () {\n var handleEscKeyDown = function handleEscKeyDown(event) {\n if (matches(event, [keys.Escape])) {\n setAllowTooltipVisibility(false);\n setIsHovered(false);\n }\n };\n\n document.addEventListener('keydown', handleEscKeyDown);\n return function () {\n return document.removeEventListener('keydown', handleEscKeyDown);\n };\n }, []);\n var enabled = useFeatureFlag('enable-v11-release');\n var buttonClasses = classNames(className, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefix, \"--btn\"), true), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--sm\"), size === 'small' && !isExpressive || size === 'sm' && !isExpressive || small && !isExpressive), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--md\"), size === 'field' && !isExpressive || size === 'md' && !isExpressive), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--lg\"), enabled ? size === 'xl' : size === 'lg'), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--xl\"), enabled ? size === '2xl' : size === 'xl'), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--\").concat(kind), kind), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--disabled\"), disabled), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--expressive\"), isExpressive), _defineProperty(_classNames, \"\".concat(prefix, \"--tooltip--visible\"), isHovered), _defineProperty(_classNames, \"\".concat(prefix, \"--tooltip--hidden\"), hasIconOnly && !allowTooltipVisibility), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--icon-only\"), hasIconOnly), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--selected\"), hasIconOnly && isSelected && kind === 'ghost'), _defineProperty(_classNames, \"\".concat(prefix, \"--tooltip__trigger\"), hasIconOnly), _defineProperty(_classNames, \"\".concat(prefix, \"--tooltip--a11y\"), hasIconOnly), _defineProperty(_classNames, \"\".concat(prefix, \"--btn--icon-only--\").concat(tooltipPosition), hasIconOnly && tooltipPosition), _defineProperty(_classNames, \"\".concat(prefix, \"--tooltip--align-\").concat(tooltipAlignment), hasIconOnly && tooltipAlignment), _classNames));\n var commonProps = {\n tabIndex: tabIndex,\n className: buttonClasses,\n ref: ref\n };\n var buttonImage = !ButtonImageElement ? null : /*#__PURE__*/React.createElement(ButtonImageElement, {\n \"aria-label\": iconDescription,\n className: \"\".concat(prefix, \"--btn__icon\"),\n \"aria-hidden\": \"true\"\n });\n var dangerButtonVariants = ['danger', 'danger--tertiary', 'danger--ghost'];\n var component = 'button';\n var assistiveId = useId('danger-description');\n var otherProps = {\n disabled: disabled,\n type: type,\n 'aria-describedby': dangerButtonVariants.includes(kind) ? assistiveId : null,\n 'aria-pressed': hasIconOnly && kind === 'ghost' ? isSelected : null\n };\n var anchorProps = {\n href: href\n };\n var assistiveText;\n\n if (hasIconOnly) {\n assistiveText = /*#__PURE__*/React.createElement(\"div\", {\n ref: tooltipRef,\n onMouseEnter: handleMouseEnter,\n className: \"\".concat(prefix, \"--assistive-text\")\n }, iconDescription);\n } else if (dangerButtonVariants.includes(kind)) {\n assistiveText = /*#__PURE__*/React.createElement(\"span\", {\n id: assistiveId,\n className: \"\".concat(prefix, \"--visually-hidden\")\n }, dangerDescription);\n } else {\n assistiveText = null;\n }\n\n if (as) {\n component = as;\n otherProps = _objectSpread(_objectSpread({}, otherProps), anchorProps);\n } else if (href && !disabled) {\n component = 'a';\n otherProps = anchorProps;\n }\n\n return /*#__PURE__*/React.createElement(component, _objectSpread(_objectSpread(_objectSpread({\n onMouseEnter: composeEventHandlers([onMouseEnter, handleMouseEnter]),\n onMouseLeave: composeEventHandlers([onMouseLeave, handleMouseLeave]),\n onFocus: composeEventHandlers([onFocus, handleFocus]),\n onBlur: composeEventHandlers([onBlur, handleBlur]),\n onClick: composeEventHandlers([onClick, handleClick])\n }, rest), commonProps), otherProps), assistiveText, children, buttonImage);\n});\nButton.displayName = 'Button';\nButton.propTypes = {\n /**\n * Specify how the button itself should be rendered.\n * Make sure to apply all props to the root node and render children appropriately\n */\n as: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.elementType]),\n\n /**\n * Specify the content of your Button\n */\n children: PropTypes.node,\n\n /**\n * Specify an optional className to be added to your Button\n */\n className: PropTypes.string,\n\n /**\n * Specify the message read by screen readers for the danger button variant\n */\n dangerDescription: PropTypes.string,\n\n /**\n * Specify whether the Button should be disabled, or not\n */\n disabled: PropTypes.bool,\n\n /**\n * Specify if the button is an icon-only button\n */\n hasIconOnly: PropTypes.bool,\n\n /**\n * Optionally specify an href for your Button to become an `<a>` element\n */\n href: PropTypes.string,\n\n /**\n * If specifying the `renderIcon` prop, provide a description for that icon that can\n * be read by screen readers\n */\n iconDescription: function iconDescription(props) {\n if (props.renderIcon && !props.children && !props.iconDescription) {\n return new Error('renderIcon property specified without also providing an iconDescription property.');\n }\n\n return undefined;\n },\n\n /**\n * Specify whether the Button is expressive, or not\n */\n isExpressive: PropTypes.bool,\n\n /**\n * Specify whether the Button is currently selected. Only applies to the Ghost variant.\n */\n isSelected: PropTypes.bool,\n\n /**\n * Specify the kind of Button you want to create\n */\n kind: PropTypes.oneOf(ButtonKinds),\n\n /**\n * Provide an optional function to be called when the button element\n * loses focus\n */\n onBlur: PropTypes.func,\n\n /**\n * Provide an optional function to be called when the button element\n * is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * Provide an optional function to be called when the button element\n * receives focus\n */\n onFocus: PropTypes.func,\n\n /**\n * Provide an optional function to be called when the mouse\n * enters the button element\n */\n onMouseEnter: PropTypes.func,\n\n /**\n * Provide an optional function to be called when the mouse\n * leaves the button element\n */\n onMouseLeave: PropTypes.func,\n\n /**\n * Optional prop to allow overriding the icon rendering.\n * Can be a React component class\n */\n renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n\n /**\n * Optional prop to specify the role of the Button\n */\n role: PropTypes.string,\n\n /**\n * Specify the size of the button, from the following list of sizes:\n */\n size: FeatureFlags.enabled('enable-v11-release') ? PropTypes.oneOf(['sm', 'md', 'lg', 'xl', '2xl']) : PropTypes.oneOf(['default', 'field', 'small', 'sm', 'md', 'lg', 'xl', '2xl']),\n\n /**\n * Deprecated in v10 in favor of `size`.\n * Specify whether the Button should be a small variant\n */\n small: deprecate(PropTypes.bool, \"\\nThe prop `small` for Button has been deprecated in favor of `size`. Please use `size=\\\"sm\\\"` instead.\"),\n\n /**\n * Optional prop to specify the tabIndex of the Button\n */\n tabIndex: PropTypes.number,\n\n /**\n * Specify the alignment of the tooltip to the icon-only button.\n * Can be one of: start, center, or end.\n */\n tooltipAlignment: PropTypes.oneOf(['start', 'center', 'end']),\n\n /**\n * Specify the direction of the tooltip for icon-only buttons.\n * Can be either top, right, bottom, or left.\n */\n tooltipPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']),\n\n /**\n * Optional prop to specify the type of the Button\n */\n type: PropTypes.oneOf(['button', 'reset', 'submit'])\n};\nexport default Button;","/**\n * Adds or removes a CSS class to an element.\n * @param {Element} element An element.\n * @param {string} name A CSS class name.\n * @param {boolean} add `true` to add the given CSS class to given the element. Otherwise to remove.\n */\nexport default function toggleClass(element, name, add) {\n if (element.classList.contains(name) === !add) {\n element.classList[add ? 'add' : 'remove'](name);\n }\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nexport var ButtonKinds = ['primary', 'secondary', 'danger', 'ghost', 'danger--primary', 'danger--ghost', 'danger--tertiary', 'tertiary'];","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nexport var Tab = {\n key: 'Tab',\n which: 9,\n keyCode: 9\n};\nexport var Enter = {\n key: 'Enter',\n which: 13,\n keyCode: 13\n};\nexport var Escape = {\n key: ['Escape', // IE11 Escape\n 'Esc'],\n which: 27,\n keyCode: 27\n};\nexport var Space = {\n key: ' ',\n which: 32,\n keyCode: 32\n};\nexport var PageUp = {\n key: 'PageUp',\n which: 33,\n keyCode: 33\n};\nexport var PageDown = {\n key: 'PageDown',\n which: 34,\n keyCode: 34\n};\nexport var End = {\n key: 'End',\n which: 35,\n keyCode: 35\n};\nexport var Home = {\n key: 'Home',\n which: 36,\n keyCode: 36\n};\nexport var ArrowLeft = {\n key: 'ArrowLeft',\n which: 37,\n keyCode: 37\n};\nexport var ArrowUp = {\n key: 'ArrowUp',\n which: 38,\n keyCode: 38\n};\nexport var ArrowRight = {\n key: 'ArrowRight',\n which: 39,\n keyCode: 39\n};\nexport var ArrowDown = {\n key: 'ArrowDown',\n which: 40,\n keyCode: 40\n};\nexport var Delete = {\n key: 'Delete',\n which: 8 || 46,\n keyCode: 8 || 46\n};","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * @typedef Key\n * @property key {Array<string>|string}\n * @property which {number}\n * @property keyCode {number}\n */\n\n/**\n * Check to see if at least one key code matches the key code of the\n * given event.\n *\n * @example\n * import * as keys from '../keys';\n * import { matches } from '../match';\n *\n * function handleOnKeyDown(event) {\n * if (matches(event, [keys.Enter, keys.Space]) {\n * // ...\n * }\n * }\n *\n * @param {Event} event\n * @param {Array<Key>} keysToMatch\n * @returns {boolean}\n */\nexport function matches(event, keysToMatch) {\n for (var i = 0; i < keysToMatch.length; i++) {\n if (match(event, keysToMatch[i])) {\n return true;\n }\n }\n\n return false;\n}\n/**\n * Check to see if the given key matches the corresponding keyboard event. Also\n * supports passing in the value directly if you can't used the given event.\n *\n * @example\n * import * as keys from '../keys';\n * import { matches } from '../match';\n *\n * function handleOnKeyDown(event) {\n * if (match(event, keys.Enter) {\n * // ...\n * }\n * }\n *\n * @param {Event|number|string} eventOrCode\n * @param {Key} key\n * @returns {boolean}\n */\n\nexport function match(eventOrCode) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n key = _ref.key,\n which = _ref.which,\n keyCode = _ref.keyCode;\n\n if (typeof eventOrCode === 'string') {\n return eventOrCode === key;\n }\n\n if (typeof eventOrCode === 'number') {\n return eventOrCode === which || eventOrCode === keyCode;\n }\n\n if (eventOrCode.key && Array.isArray(key)) {\n return key.indexOf(eventOrCode.key) !== -1;\n }\n\n return eventOrCode.key === key || eventOrCode.which === which || eventOrCode.keyCode === keyCode;\n}\n/**\n * Get a string character for a given event or event code (useful for synthetic\n * events)\n *\n * @param {Event|number} eventOrCode\n * @returns {string}\n */\n\nexport function getCharacterFor(eventOrCode) {\n if (typeof eventOrCode === 'number') {\n return String.fromCharCode(eventOrCode);\n }\n\n return eventOrCode.key || String.fromCharCode(eventOrCode.which || eventOrCode.keyCode);\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Indicate whether current execution environment can access the DOM.\n *\n * @see https://github.com/facebook/fbjs/blob/4d1751311d3f67af2dcce2e40df8512a23c7b9c6/packages/fbjs/src/core/ExecutionEnvironment.js#L12\n */\nexport var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// This file was heavily inspired by Reach UI and their work on their auto-id\n// package\n// https://github.com/reach/reach-ui/blob/86a046f54d53b6420e392b3fa56dd991d9d4e458/packages/auto-id/src/index.ts\n//\n// The problem that this solves is an id mismatch when auto-generating\n// ids on both the server and the client. When using server-side rendering,\n// there can be the chance of a mismatch between what the server renders and\n// what the client renders when the id value is auto-generated.\n//\n// To get around this, we set the initial value of the `id` to `null` and then\n// conditionally use `useLayoutEffect` on the client and `useEffect` on the\n// server. On the client, `useLayoutEffect` will patch up the id to the correct\n// value. On the server, `useEffect` will not run.\n//\n// This ensures that we won't encounter a mismatch in ids between server and\n// client, at the cost of runtime patching of the id value in\n// `useLayoutEffect`\nimport { useEffect, useLayoutEffect, useState } from 'react';\nimport setupGetInstanceId from '../tools/setupGetInstanceId';\nimport { canUseDOM } from './environment';\nvar getId = setupGetInstanceId();\nvar useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\nvar serverHandoffCompleted = false;\n/**\n * Generate a unique ID with an optional prefix prepended to it\n * @param {string} [prefix]\n * @returns {string}\n */\n\nexport function useId() {\n var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'id';\n\n var _useState = useState(function () {\n if (serverHandoffCompleted) {\n return \"\".concat(prefix, \"-\").concat(getId());\n }\n\n return null;\n }),\n _useState2 = _slicedToArray(_useState, 2),\n id = _useState2[0],\n setId = _useState2[1];\n\n useIsomorphicLayoutEffect(function () {\n if (id === null) {\n setId(\"\".concat(prefix, \"-\").concat(getId()));\n }\n }, [getId]);\n useEffect(function () {\n if (serverHandoffCompleted === false) {\n serverHandoffCompleted = true;\n }\n }, []);\n return id;\n}\n/**\n * Generate a unique id if a given `id` is not provided\n * @param {string} id\n * @returns {string}\n */\n\nexport function useFallbackId(id) {\n var fallback = useId();\n return id !== null && id !== void 0 ? id : fallback;\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Generic utility to initialize a method that will return a unique instance id\n * for a component.\n */\nexport default function setupGetInstanceId() {\n var instanceId = 0;\n return function getInstanceId() {\n return ++instanceId;\n };\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { settings } from 'carbon-components';\nimport React from 'react';\nexport var PrefixContext = /*#__PURE__*/React.createContext(settings.prefix);\nexport function usePrefix() {\n return React.useContext(PrefixContext);\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { warning } from '../internal/warning';\nvar didWarnAboutDeprecation = {};\nexport default function deprecate(propType, message) {\n function checker(props, propName, componentName) {\n if (props[propName] === undefined) {\n return;\n }\n\n if (!didWarnAboutDeprecation[componentName] || !didWarnAboutDeprecation[componentName][propName]) {\n didWarnAboutDeprecation[componentName] = _objectSpread(_objectSpread({}, didWarnAboutDeprecation[componentName]), {}, _defineProperty({}, propName, true));\n process.env.NODE_ENV !== \"production\" ? warning(false, message || \"The prop `\".concat(propName, \"` has been deprecated for the \") + \"\".concat(componentName, \" component. It will be removed in the next major \") + \"release\") : void 0;\n }\n\n for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n\n return propType.apply(void 0, [props, propName, componentName].concat(rest));\n }\n\n return checker;\n}","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["stablePrefix","ddsSettings","prefix","settings","HorizontalRule","_ref","_classnames","type","size","contrast","weight","React","concat","className","classnames","_defineProperty","propTypes","PropTypes","TOCDesktop","activeId","menuItems","selectedId","handleOnClick","e","id","preventDefault","selector","masthead","target","ownerDocument","querySelector","smoothScroll","offsetHeight","elem","element","document","handleFocusOut","event","removeAttribute","setAttribute","focus","preventScroll","addEventListener","once","triggerFocus","map","item","index","isActive","key","classNames","_extends","onClick","href","title","_path","_excluded","TableOfContents20","ref","children","rest","_objectWithoutProperties","Icon","width","height","viewBox","xmlns","fill","d","TOCMobile","menuLabel","updateState","_useState","useState","_useState2","_slicedToArray","selectedOption","setSelectedOption","useEffect","handleChange","value","filter","menu","onBlur","onChange","renderOptions","options","label","labelObj","findIndex","x","unshift","option","defaultValue","disabled","hidden","TableOfContents","theme","stickyOffset","menuRule","headingContent","useMenuItems","setUseMenuItems","_useState3","_useState4","setSelectedId","_useState5","_useState6","selectedTitle","setSelectedTitle","length","_toConsumableArray","eles","querySelectorAll","forEach","getAttribute","push","_findMenuItems","handleRAF","window","requestAnimationFrame","setSelectedItem","removeEventListener","elems","getElemsInView","_filteredItems$","undefined","items","arr","getBoundingClientRect","y","position","documentElement","scrollTop","clientHeight","scrollHeight","props","_item$title","_item$id","trim","validateMenuItems","style","top","defaultProps","Accordion","_cx","_ref$align","align","customClassName","_ref$disabled","_ref$size","usePrefix","cx","child","FeatureFlags","TextDirectionContext","createContext","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","enumerable","apply","Text","_ref$as","as","BaseComponent","_ref$dir","dir","context","useContext","textProps","i","arguments","source","getOwnPropertyDescriptors","defineProperties","defineProperty","_objectSpread","parentDirection","direction","getTextDirection","current","text","getTextFromChildren","override","Provider","defaultRenderToggle","AccordionItem","_ref$open","iconDescription","open","onHeadingClick","_ref$renderExpando","renderExpando","renderToggle","_ref$title","isOpen","setIsOpen","prevIsOpen","setPrevIsOpen","animation","setAnimation","useId","Toggle","onAnimationEnd","handleAnimationEnd","nextValue","onKeyDown","match","ChevronRight16","deprecate","composeEventHandlers","fns","_len","args","Array","_key","defaultPrevented","FeatureFlagContext","GlobalFeatureFlags","Button","_classNames","_ref$dangerDescriptio","dangerDescription","_ref$hasIconOnly","hasIconOnly","_ref$isExpressive","isExpressive","isSelected","_ref$kind","kind","onFocus","onMouseEnter","onMouseLeave","ButtonImageElement","renderIcon","small","_ref$tabIndex","tabIndex","_ref$tooltipAlignment","tooltipAlignment","_ref$tooltipPosition","tooltipPosition","_ref$type","allowTooltipVisibility","setAllowTooltipVisibility","isHovered","setIsHovered","isFocused","setIsFocused","tooltipRef","useRef","tooltipTimeout","closeTooltips","evt","_document","tooltipNode","node","name","add","currentTarget","classList","contains","handleMouseEnter","clearTimeout","handleEscKeyDown","matches","flag","assistiveText","enabled","commonProps","buttonImage","dangerButtonVariants","component","assistiveId","otherProps","includes","anchorProps","setTimeout","displayName","Error","role","Escape","which","keyCode","keysToMatch","eventOrCode","isArray","indexOf","canUseDOM","createElement","getId","instanceId","setupGetInstanceId","useIsomorphicLayoutEffect","useLayoutEffect","serverHandoffCompleted","setId","PrefixContext","didWarnAboutDeprecation","propType","message","propName","componentName","hasOwn","hasOwnProperty","classes","arg","argType","inner","toString","prototype","call","join","module","exports","default"],"sourceRoot":""}