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,IACJC,GAAI,IACJlF,EAAG,IACHmB,IAAKsK,EACLhlB,MAAO,CACLqlB,mB,UCjHNE,EAAOlc,QApBP,SAAcmc,EAAOC,EAAWhgB,GAC9B,GAAoC,mBAAzB/M,MAAMoN,UAAU4f,KACzB,OAAOF,EAAME,KAAKD,EAAWhgB,GAG/BA,EAAUA,GAAWpN,KACrB,IACI4B,EADAzB,EAASgtB,EAAMhtB,OAGnB,GAAyB,mBAAditB,EACT,MAAM,IAAIE,UAAUF,EAAY,sBAGlC,IAAKxrB,EAAI,EAAGA,EAAIzB,EAAQyB,IACtB,GAAIwrB,EAAU7sB,KAAK6M,EAAS+f,EAAMvrB,GAAIA,EAAGurB,GACvC,OAAOA,EAAMvrB,K","sources":["webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/components/DropdownMenu.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/components/DropdownMenuStateless.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/components/context/DropdownItemClickManager.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/components/context/DropdownItemFocusManager.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/components/context/DropdownItemSelectionCache.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/styled/WidthConstrainer.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/util/contextNamespace.js","webpack:///./node_modules/@atlaskit/dropdown-menu/dist/esm/util/keys.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsContext.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsContextConsumer.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsEvent.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/UIAnalyticsEvent.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/createAndFireEvent.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/withAnalyticsContext.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/analytics-next/dist/esm/withAnalyticsEvents.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/icon/cjs/components/Icon.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/icon/cjs/constants.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/icon/glyph/chevron-down.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/theme/dist/es2019/utils/getTheme.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/theme/dist/es2019/utils/themed.js","webpack:///./node_modules/@atlaskit/dropdown-menu/node_modules/@atlaskit/theme/dist/es2019/colors.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/components/Droplist.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/components/Element.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/components/Group.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/components/Item.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/styled/Droplist.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/styled/Group.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/styled/Item.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/theme/item-theme.js","webpack:///./node_modules/@atlaskit/droplist/dist/esm/utils/index.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsContext.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsContextConsumer.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsEvent.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/UIAnalyticsEvent.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/createAndFireEvent.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/withAnalyticsContext.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/analytics-next/dist/esm/withAnalyticsEvents.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/icon/cjs/components/Icon.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/icon/cjs/constants.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/icon/glyph/checkbox.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/icon/glyph/radio.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/item/dist/esm/util/theme.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/spinner/dist/es2019/constants.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/spinner/dist/es2019/spinner.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/colors.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/components/Theme.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/constants.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/utils/createTheme.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/utils/math.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/utils/getTheme.js","webpack:///./node_modules/@atlaskit/droplist/node_modules/@atlaskit/theme/dist/es2019/utils/themed.js","webpack:///./node_modules/@atlaskit/layer/dist/esm/components/Layer.js","webpack:///./node_modules/@atlaskit/layer/dist/esm/components/internal/ScrollBlock.js","webpack:///./node_modules/@atlaskit/layer/dist/esm/components/internal/helpers.js","webpack:///./node_modules/@atlaskit/layer/dist/esm/styledContentContainer.js","webpack:///./node_modules/@atlaskit/spinner/dist/es2019/constants.js","webpack:///./node_modules/@atlaskit/spinner/dist/es2019/spinner.js","webpack:///./node_modules/array-find/find.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport StatelessMenu from './DropdownMenuStateless';\n\nvar DropdownMenu =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DropdownMenu, _Component);\n\n function DropdownMenu() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, DropdownMenu);\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropdownMenu)).call.apply(_getPrototypeOf2, [this].concat(_args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n isOpen: _this.props.defaultOpen,\n items: _toConsumableArray(_this.props.items)\n });\n\n _defineProperty(_assertThisInitialized(_this), \"findActivatedGroup\", function (item) {\n return _this.state.items.filter(function (group) {\n return group.items.indexOf(item) > -1;\n })[0];\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemActivation\", function (attrs) {\n var activatedItem = attrs.item;\n\n var activatedGroup = _this.findActivatedGroup(activatedItem);\n\n var items = _toConsumableArray(_this.state.items);\n\n switch (activatedItem.type) {\n case 'checkbox':\n activatedItem.isChecked = !activatedItem.isChecked;\n\n _this.props.onItemActivated({\n item: activatedItem\n });\n\n _this.setState({\n items: items\n });\n\n break;\n\n case 'radio':\n activatedGroup.items.forEach(function (i) {\n if (i === activatedItem) {\n i.isChecked = true; // eslint-disable-line no-param-reassign\n } else {\n i.isChecked = false; // eslint-disable-line no-param-reassign\n }\n });\n\n _this.props.onItemActivated({\n item: activatedItem\n });\n\n _this.setState({\n items: items\n });\n\n break;\n\n case 'link':\n default:\n _this.props.onItemActivated({\n item: activatedItem\n });\n\n _this.close();\n\n break;\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOpenChange\", function (attrs) {\n var _this$props;\n\n if (_this.state.isOpen === attrs.isOpen) return;\n\n _this.setState({\n isOpen: attrs.isOpen\n });\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n (_this$props = _this.props).onOpenChange.apply(_this$props, [attrs].concat(args));\n });\n\n _defineProperty(_assertThisInitialized(_this), \"close\", function () {\n var _this$props2;\n\n if (_this.state.isOpen === false) return;\n\n _this.setState({\n isOpen: false\n });\n\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n (_this$props2 = _this.props).onOpenChange.apply(_this$props2, [{\n isOpen: false\n }].concat(args));\n });\n\n return _this;\n }\n\n _createClass(DropdownMenu, [{\n key: \"UNSAFE_componentWillReceiveProps\",\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.items !== this.state.items) {\n this.setState({\n items: _toConsumableArray(nextProps.items)\n });\n }\n\n if (nextProps.isOpen !== this.props.isOpen) {\n this.setState({\n isOpen: nextProps.isOpen\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var isOpen = this.state.isOpen;\n var _this$props3 = this.props,\n appearance = _this$props3.appearance,\n boundariesElement = _this$props3.boundariesElement,\n children = _this$props3.children,\n isLoading = _this$props3.isLoading,\n items = _this$props3.items,\n position = _this$props3.position,\n isMenuFixed = _this$props3.isMenuFixed,\n shouldAllowMultilineItems = _this$props3.shouldAllowMultilineItems,\n shouldFitContainer = _this$props3.shouldFitContainer,\n shouldFlip = _this$props3.shouldFlip,\n testId = _this$props3.testId,\n trigger = _this$props3.trigger,\n triggerButtonProps = _this$props3.triggerButtonProps,\n triggerType = _this$props3.triggerType,\n onPositioned = _this$props3.onPositioned;\n return React.createElement(StatelessMenu, {\n appearance: appearance,\n boundariesElement: boundariesElement,\n isOpen: isOpen,\n isLoading: isLoading,\n items: items,\n onItemActivated: this.handleItemActivation,\n onOpenChange: this.handleOpenChange,\n position: position,\n isMenuFixed: isMenuFixed,\n shouldAllowMultilineItems: shouldAllowMultilineItems,\n shouldFitContainer: shouldFitContainer,\n shouldFlip: shouldFlip,\n trigger: trigger,\n triggerButtonProps: triggerButtonProps,\n triggerType: triggerType,\n onPositioned: onPositioned,\n testId: testId\n }, children);\n }\n }]);\n\n return DropdownMenu;\n}(Component);\n\n_defineProperty(DropdownMenu, \"defaultProps\", {\n appearance: 'default',\n boundariesElement: 'viewport',\n defaultOpen: false,\n isLoading: false,\n isOpen: false,\n items: [],\n onItemActivated: function onItemActivated() {},\n onOpenChange: function onOpenChange() {},\n position: 'bottom left',\n isMenuFixed: false,\n shouldAllowMultilineItems: false,\n shouldFitContainer: false,\n shouldFlip: true,\n triggerType: 'default',\n onPositioned: function onPositioned() {}\n});\n\nexport { DropdownMenu as default };","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/* eslint-disable react/no-array-index-key */\nimport React, { Component, Fragment } from 'react';\nimport { findDOMNode } from 'react-dom';\nimport { uid } from 'react-uid';\nimport { withAnalyticsContext, withAnalyticsEvents, createAndFireEvent } from '@atlaskit/analytics-next';\nimport Button from '@atlaskit/button';\nimport Droplist, { Item, Group } from '@atlaskit/droplist';\nimport ExpandIcon from '@atlaskit/icon/glyph/chevron-down';\nimport { name as packageName, version as packageVersion } from '../version.json';\nimport DropdownItemFocusManager from './context/DropdownItemFocusManager';\nimport DropdownItemClickManager from './context/DropdownItemClickManager';\nimport DropdownItemSelectionCache from './context/DropdownItemSelectionCache';\nimport WidthConstrainer from '../styled/WidthConstrainer';\nimport { KEY_DOWN, KEY_SPACE, KEY_ENTER } from '../util/keys';\n\nvar DropdownMenuStateless =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DropdownMenuStateless, _Component);\n\n function DropdownMenuStateless() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, DropdownMenuStateless);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropdownMenuStateless)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"domItemsList\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"focusedItem\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"triggerContainer\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"sourceOfIsOpen\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"dropdownListPositioned\", false);\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n id: uid({\n id: _this.constructor.name\n }),\n autoFocusDropdownItems: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidMount\", function () {\n if (_this.isUsingDeprecatedAPI()) {\n if (process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'production' && !process.env.CI) {\n // eslint-disable-next-line no-console\n console.log('DropdownMenu.items is deprecated. Please switch to the declarative API.');\n }\n\n if (_this.domItemsList) {\n _this.focusFirstItem();\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidUpdate\", function (prevProp) {\n if (_this.isUsingDeprecatedAPI() && _this.props.isOpen && !prevProp.isOpen) {\n _this.focusFirstItem();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getNextFocusable\", function (indexItem, available) {\n if (!_this.domItemsList) {\n return null;\n }\n\n var currentItem = typeof indexItem !== 'number' ? -1 : indexItem;\n var latestAvailable = typeof available !== 'number' ? currentItem : available;\n\n if (currentItem < _this.domItemsList.length - 1) {\n currentItem++;\n\n if (_this.domItemsList[currentItem].getAttribute('aria-hidden') !== 'true') {\n return currentItem;\n }\n\n return _this.getNextFocusable(currentItem, latestAvailable);\n }\n\n return latestAvailable;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getPrevFocusable\", function (indexItem, available) {\n if (!_this.domItemsList) {\n return null;\n }\n\n var currentItem = typeof indexItem !== 'number' ? -1 : indexItem;\n var latestAvailable = typeof available !== 'number' ? currentItem : available;\n\n if (currentItem && currentItem > 0) {\n currentItem--;\n\n if (_this.domItemsList[currentItem].getAttribute('aria-hidden') !== 'true') {\n return currentItem;\n }\n\n return _this.getPrevFocusable(currentItem, latestAvailable);\n }\n\n return latestAvailable || currentItem;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focusFirstItem\", function () {\n if (_this.sourceOfIsOpen === 'keydown') {\n _this.focusItem(_this.getNextFocusable());\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focusNextItem\", function () {\n _this.focusItem(_this.getNextFocusable(_this.focusedItem));\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focusPreviousItem\", function () {\n _this.focusItem(_this.getPrevFocusable(_this.focusedItem));\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focusItem\", function (index) {\n if (!_this.domItemsList || !index) {\n return;\n }\n\n _this.focusedItem = index;\n\n _this.domItemsList[_this.focusedItem].focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isTargetChildItem\", function (target) {\n if (!target) return false;\n var isDroplistItem = target.getAttribute('data-role') === 'droplistItem'; // eslint-disable-next-line react/no-find-dom-node\n\n var thisDom = findDOMNode(_assertThisInitialized(_this));\n return isDroplistItem && thisDom ? thisDom.contains(target) : false;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyboardInteractionForClosed\", function (event) {\n if (_this.props.isOpen) {\n return;\n }\n\n switch (event.key) {\n case KEY_DOWN:\n case KEY_SPACE:\n case KEY_ENTER:\n event.preventDefault();\n\n _this.open({\n event: event,\n source: 'keydown'\n });\n\n break;\n\n default:\n break;\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyboardInteractionsDeprecated\", function (event) {\n // KeyboardEvent.target is typed as an EventTarget but we need to access methods on it which\n // are specific to Element. Due limitations of the HTML spec flow doesn't know that an\n // EventTarget can have these methods, so we cast it to Element through Object. This is the\n // safest thing we can do in this situation.\n // https://flow.org/en/docs/types/casting/#toc-type-casting-through-any\n var target = event.target;\n\n if (_this.props.isOpen) {\n if (_this.isTargetChildItem(target)) {\n switch (event.key) {\n case 'ArrowUp':\n event.preventDefault();\n\n _this.focusPreviousItem();\n\n break;\n\n case 'ArrowDown':\n event.preventDefault();\n\n _this.focusNextItem();\n\n break;\n\n case 'Tab':\n event.preventDefault();\n\n _this.close({\n event: event\n });\n\n break;\n\n default:\n break;\n }\n } else if (event.key === 'ArrowDown') {\n _this.sourceOfIsOpen = 'keydown';\n\n _this.focusFirstItem();\n } else if (event.key === 'Tab') {\n _this.close({\n event: event\n });\n }\n } else {\n switch (event.key) {\n case KEY_DOWN:\n case KEY_SPACE:\n case KEY_ENTER:\n event.preventDefault();\n\n _this.open({\n event: event,\n source: 'keydown'\n });\n\n break;\n\n default:\n break;\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"domMenuContainer\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handleClickDeprecated\", function (event) {\n var menuContainer = _this.domMenuContainer; // Casting target to Element. See comment in `handleKeyboardInteractionsDeprecated`.\n\n var target = event.target;\n\n if (!menuContainer || menuContainer && !menuContainer.contains(target)) {\n _this.toggle({\n source: 'click',\n event: event\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"isUsingDeprecatedAPI\", function () {\n return Boolean(_this.props.items.length);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleClick\", function (event) {\n // For any clicks we don't want autofocus\n _this.setState({\n autoFocusDropdownItems: false\n });\n\n if (_this.isUsingDeprecatedAPI()) {\n _this.handleClickDeprecated(event);\n\n return;\n }\n\n var _assertThisInitialize = _assertThisInitialized(_this),\n triggerContainer = _assertThisInitialize.triggerContainer; // Casting target to Element. See comment in `handleKeyboardInteractionsDeprecated`.\n\n\n var target = event.target;\n\n if (triggerContainer && triggerContainer.contains(target) && // $FlowFixMe - disabled is not in Element\n target.disabled !== true) {\n var isOpen = _this.props.isOpen;\n _this.sourceOfIsOpen = 'mouse';\n\n _this.props.onOpenChange({\n isOpen: !isOpen,\n event: event\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"triggerContent\", function () {\n var _this$props = _this.props,\n children = _this$props.children,\n trigger = _this$props.trigger,\n isOpen = _this$props.isOpen,\n triggerButtonProps = _this$props.triggerButtonProps,\n triggerType = _this$props.triggerType,\n testId = _this$props.testId;\n var insideTriggerContent = _this.isUsingDeprecatedAPI() ? children : trigger;\n\n if (triggerType !== 'button') {\n return insideTriggerContent;\n }\n\n var triggerProps = _objectSpread({}, triggerButtonProps);\n\n var defaultButtonProps = {\n 'aria-controls': _this.state.id,\n 'aria-expanded': isOpen,\n 'aria-haspopup': true,\n isSelected: isOpen\n };\n\n if (!triggerProps.iconAfter && !triggerProps.iconBefore) {\n triggerProps.iconAfter = React.createElement(ExpandIcon, {\n size: \"medium\",\n label: \"\"\n });\n }\n\n return React.createElement(Button, _extends({}, defaultButtonProps, triggerProps, {\n testId: testId && \"\".concat(testId, \"--trigger\")\n }), insideTriggerContent);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"open\", function (attrs) {\n _this.sourceOfIsOpen = attrs.source;\n\n _this.props.onOpenChange({\n isOpen: true,\n event: attrs.event\n }); // Dropdown opened via keyboard gets auto focussed\n\n\n _this.setState({\n autoFocusDropdownItems: _this.sourceOfIsOpen === 'keydown'\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"close\", function (attrs) {\n _this.sourceOfIsOpen = null;\n\n _this.props.onOpenChange({\n isOpen: false,\n event: attrs.event\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"toggle\", function (attrs) {\n if (attrs.source === 'keydown') return;\n\n if (_this.props.isOpen) {\n _this.close(attrs);\n } else {\n _this.open(attrs);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemClicked\", function (event) {\n _this.props.onOpenChange({\n isOpen: false,\n event: event\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderTrigger\", function () {\n var triggerContent = _this.triggerContent();\n\n return _this.isUsingDeprecatedAPI() ? triggerContent : React.createElement(\"div\", {\n ref: function ref(_ref) {\n _this.triggerContainer = _ref;\n }\n }, triggerContent);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderItems\", function (items) {\n return items.map(function (item, itemIndex) {\n return React.createElement(Item, _extends({}, item, {\n key: itemIndex,\n onActivate: function onActivate(_ref2) {\n var event = _ref2.event;\n\n _this.props.onItemActivated({\n item: item,\n event: event\n });\n }\n }), item.content);\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderGroups\", function (groups) {\n return groups.map(function (group, groupIndex) {\n return React.createElement(Group, {\n heading: group.heading,\n elemAfter: group.elemAfter,\n key: groupIndex\n }, _this.renderItems(group.items));\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderDeprecated\", function () {\n var _this$props2 = _this.props,\n items = _this$props2.items,\n shouldFitContainer = _this$props2.shouldFitContainer;\n var id = _this.state.id;\n return React.createElement(\"div\", {\n id: id,\n ref: function ref(_ref3) {\n _this.domMenuContainer = _ref3;\n _this.domItemsList = _ref3 ? _ref3.querySelectorAll('[data-role=\"droplistItem\"]') : null;\n },\n role: \"menu\",\n style: shouldFitContainer ? null : {\n maxWidth: 300\n }\n }, _this.renderGroups(items));\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onDroplistPositioned\", function () {\n _this.dropdownListPositioned = true; // Trigger render so item focus manager can auto focus for keyboard trigger\n\n _this.setState({\n autoFocusDropdownItems: _this.sourceOfIsOpen === 'keydown'\n });\n\n if (_this.props.onPositioned) _this.props.onPositioned();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"renderDropdownItems\", function () {\n if (_this.sourceOfIsOpen === 'keydown' && _this.dropdownListPositioned) {\n return React.createElement(DropdownItemFocusManager, {\n autoFocus: _this.state.autoFocusDropdownItems,\n close: _this.close\n }, _this.props.children);\n }\n\n return React.createElement(Fragment, null, _this.props.children);\n });\n\n return _this;\n }\n\n _createClass(DropdownMenuStateless, [{\n key: \"render\",\n value: function render() {\n var _this$props3 = this.props,\n appearance = _this$props3.appearance,\n boundariesElement = _this$props3.boundariesElement,\n isLoading = _this$props3.isLoading,\n isOpen = _this$props3.isOpen,\n onOpenChange = _this$props3.onOpenChange,\n position = _this$props3.position,\n isMenuFixed = _this$props3.isMenuFixed,\n shouldAllowMultilineItems = _this$props3.shouldAllowMultilineItems,\n shouldFitContainer = _this$props3.shouldFitContainer,\n shouldFlip = _this$props3.shouldFlip,\n testId = _this$props3.testId;\n var id = this.state.id;\n var isDeprecated = this.isUsingDeprecatedAPI();\n var deprecatedProps = isDeprecated ? {\n onKeyDown: this.handleKeyboardInteractionsDeprecated,\n shouldAllowMultilineItems: shouldAllowMultilineItems\n } : {\n onKeyDown: this.handleKeyboardInteractionForClosed\n };\n return React.createElement(DropdownItemSelectionCache, null, React.createElement(Droplist, _extends({\n appearance: appearance,\n boundariesElement: boundariesElement,\n isLoading: isLoading,\n isOpen: isOpen,\n onClick: this.handleClick,\n onOpenChange: onOpenChange,\n position: position,\n isMenuFixed: isMenuFixed,\n shouldFitContainer: shouldFitContainer,\n shouldFlip: shouldFlip,\n trigger: this.renderTrigger(),\n onPositioned: this.onDroplistPositioned\n }, deprecatedProps, {\n analyticsContext: {\n componentName: 'dropdownMenu',\n packageName: packageName,\n packageVersion: packageVersion\n },\n testId: testId\n }), isDeprecated ? this.renderDeprecated() : React.createElement(WidthConstrainer, {\n id: id,\n role: \"menu\",\n shouldFitContainer: shouldFitContainer\n }, React.createElement(DropdownItemClickManager, {\n onItemClicked: this.handleItemClicked\n }, this.renderDropdownItems()))));\n }\n }]);\n\n return DropdownMenuStateless;\n}(Component);\n\n_defineProperty(DropdownMenuStateless, \"defaultProps\", {\n appearance: 'default',\n boundariesElement: 'viewport',\n isLoading: false,\n isOpen: false,\n items: [],\n onItemActivated: function onItemActivated() {},\n onOpenChange: function onOpenChange() {},\n position: 'bottom left',\n isMenuFixed: false,\n shouldAllowMultilineItems: false,\n shouldFitContainer: false,\n shouldFlip: true,\n triggerType: 'default',\n onPositioned: function onPositioned() {}\n});\n\nexport { DropdownMenuStateless as DropdownMenuStatelessWithoutAnalytics };\nvar createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');\nexport default withAnalyticsContext({\n componentName: 'dropdownMenu',\n packageName: packageName,\n packageVersion: packageVersion\n})(withAnalyticsEvents({\n onOpenChange: createAndFireEventOnAtlaskit({\n action: 'toggled',\n actionSubject: 'dropdownMenu',\n attributes: {\n componentName: 'dropdownMenu',\n packageName: packageName,\n packageVersion: packageVersion\n }\n })\n})(DropdownMenuStateless));","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { clickManagerContext } from '../../util/contextNamespace';\n\nvar DropdownItemClickManager =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DropdownItemClickManager, _Component);\n\n function DropdownItemClickManager() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, DropdownItemClickManager);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropdownItemClickManager)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemClicked\", function (event) {\n _this.props.onItemClicked(event);\n });\n\n return _this;\n }\n\n _createClass(DropdownItemClickManager, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return _defineProperty({}, clickManagerContext, {\n itemClicked: this.handleItemClicked\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.children;\n }\n }]);\n\n return DropdownItemClickManager;\n}(Component);\n\n_defineProperty(DropdownItemClickManager, \"childContextTypes\", _defineProperty({}, clickManagerContext, PropTypes.object));\n\nexport { DropdownItemClickManager as default };","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { focusManagerContext } from '../../util/contextNamespace';\nimport { KEY_DOWN, KEY_UP, KEY_TAB } from '../../util/keys';\n\nvar DropdownItemFocusManager =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DropdownItemFocusManager, _Component);\n\n function DropdownItemFocusManager() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, DropdownItemFocusManager);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropdownItemFocusManager)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"registeredItems\", []);\n\n _defineProperty(_assertThisInitialized(_this), \"focusedItemId\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemRegistered\", function (itemId, itemNode) {\n _this.registeredItems.push({\n itemId: itemId,\n itemNode: itemNode\n });\n\n if (_this.props.autoFocus && _this.registeredItems.length === 1) {\n _this.focusedItemId = itemId;\n itemNode.focus();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemDeregistered\", function (itemId) {\n _this.registeredItems = _this.registeredItems.filter(function (item) {\n return item.itemId !== itemId;\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemFocused\", function (itemId) {\n _this.focusedItemId = itemId;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemUpdated\", function (itemId, itemNode) {\n var matchingIndex = -1;\n\n for (var i = 0; i < _this.registeredItems.length; i++) {\n if (_this.registeredItems[i].itemId === itemId) {\n matchingIndex = i;\n break;\n }\n }\n\n if (matchingIndex === -1) {\n _this.handleItemRegistered(itemId, itemNode);\n\n return;\n }\n\n _this.registeredItems[matchingIndex].itemNode = itemNode;\n\n if (_this.focusedItemIndex() === matchingIndex) {\n itemNode.focus();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focusedItemIndex\", function () {\n var _assertThisInitialize = _assertThisInitialized(_this),\n focusedItemId = _assertThisInitialize.focusedItemId,\n registeredItems = _assertThisInitialize.registeredItems;\n\n for (var i = 0; i < registeredItems.length; i++) {\n if (registeredItems[i].itemId === focusedItemId) {\n return i;\n }\n }\n\n return -1;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyboard\", function (event) {\n var key = event.key,\n shiftKey = event.shiftKey;\n\n var focusedItemIndex = _this.focusedItemIndex();\n\n if (key === KEY_UP || key === KEY_DOWN) {\n // We prevent default here to avoid page scrolling when up/down\n // pressed while dropdown is focused.\n event.preventDefault();\n\n if (focusedItemIndex < 0) {\n return;\n }\n\n var nextItemIndex = key === KEY_UP ? Math.max(0, focusedItemIndex - 1) : Math.min(_this.registeredItems.length - 1, focusedItemIndex + 1);\n\n _this.registeredItems[nextItemIndex].itemNode.focus();\n }\n\n if (key === KEY_TAB) {\n if (!shiftKey && focusedItemIndex === _this.registeredItems.length - 1) {\n if (_this.props.close) _this.props.close({\n event: event,\n source: 'keydown'\n });\n }\n\n if (shiftKey && focusedItemIndex === 0) {\n if (_this.props.close) _this.props.close({\n event: event,\n source: 'keydown'\n });\n }\n }\n });\n\n return _this;\n }\n\n _createClass(DropdownItemFocusManager, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return _defineProperty({}, focusManagerContext, {\n itemFocused: this.handleItemFocused,\n registerItem: this.handleItemRegistered,\n deregisterItem: this.handleItemDeregistered,\n updateItem: this.handleItemUpdated\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n return React.createElement(\"div\", {\n onKeyDown: this.handleKeyboard\n }, this.props.children);\n }\n }]);\n\n return DropdownItemFocusManager;\n}(Component);\n\n_defineProperty(DropdownItemFocusManager, \"childContextTypes\", _defineProperty({}, focusManagerContext, PropTypes.object));\n\nexport { DropdownItemFocusManager as default };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport find from 'array-find';\nimport { selectionCacheContext } from '../../util/contextNamespace';\n\nvar isItemInList = function isItemInList(itemList, itemId, groupId) {\n return Boolean(find(itemList, function (item) {\n return item.id === itemId && item.groupId === groupId;\n }));\n};\n\nvar DropdownItemSelectionCache =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DropdownItemSelectionCache, _Component);\n\n function DropdownItemSelectionCache() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, DropdownItemSelectionCache);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropdownItemSelectionCache)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n lastCacheUpdate: 0\n });\n\n _defineProperty(_assertThisInitialized(_this), \"selectedItems\", []);\n\n _defineProperty(_assertThisInitialized(_this), \"alreadyDefaultedItems\", []);\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemSelectionsChanged\", function (groupId, newGroupSelections) {\n var newSelectedItems = [].concat(_toConsumableArray(_this.selectedItems.filter(function (item) {\n return item.groupId !== groupId;\n })), _toConsumableArray(newGroupSelections));\n _this.selectedItems = newSelectedItems; // We store selectedItems in an instance variable (this.selectedItems) instead of state,\n // because if multiple children update the cache at the same time it causes unexpected\n // behaviour due to the asynchronous behaviour of setState. So we need to trigger setState\n // with a different value to cause the children to be updated with their new selection values.\n\n _this.setState({\n lastCacheUpdate: Date.now()\n });\n });\n\n return _this;\n }\n\n _createClass(DropdownItemSelectionCache, [{\n key: \"getChildContext\",\n // eslint-disable-line react/sort-comp\n value: function getChildContext() {\n var _this2 = this;\n\n return _defineProperty({}, selectionCacheContext, {\n // This function returns true/false describing whether the supplied navigation item\n // (which must have a unique item and group ID) is currently selected - this is used\n // by radio and checkbox dropdown items to retreive their 'selected' state when they\n // re-mount, which happens when the dropdown is closed and then re-opened.\n isItemSelected: function isItemSelected(groupId, itemId) {\n return isItemInList(_this2.selectedItems, itemId, groupId);\n },\n itemsInGroup: function itemsInGroup(groupId) {\n return _this2.selectedItems.filter(function (item) {\n return item.groupId === groupId;\n });\n },\n itemSelectionsChanged: this.handleItemSelectionsChanged,\n hasItemAlreadyHadDefaultSelectedApplied: function hasItemAlreadyHadDefaultSelectedApplied(groupId, itemId) {\n return isItemInList(_this2.alreadyDefaultedItems, itemId, groupId);\n },\n markItemAsDefaultApplied: function markItemAsDefaultApplied(groupId, itemId) {\n _this2.alreadyDefaultedItems.push({\n id: itemId,\n groupId: groupId\n });\n }\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n return React.createElement(\"div\", null, this.props.children);\n }\n }]);\n\n return DropdownItemSelectionCache;\n}(Component);\n\n_defineProperty(DropdownItemSelectionCache, \"childContextTypes\", _defineProperty({}, selectionCacheContext, PropTypes.shape({\n isItemSelected: PropTypes.func,\n itemsInGroup: PropTypes.func,\n itemSelectionsChanged: PropTypes.func\n})));\n\nexport { DropdownItemSelectionCache as default };","import styled from 'styled-components';\nexport default styled.div.withConfig({\n displayName: \"WidthConstrainer\",\n componentId: \"sc-15doeus-0\"\n})([\"\\n \", \";\\n\"], function (_ref) {\n var shouldFitContainer = _ref.shouldFitContainer;\n return shouldFitContainer ? '' : 'max-width: 300px;';\n});","var prefix = function prefix(key) {\n return \"@atlaskit-private-do-not-use/dropdown-menu:\".concat(key);\n};\n\nexport var focusManagerContext = prefix('focus-manager');\nexport var selectionCacheContext = prefix('selection-cache');\nexport var selectionManagerContext = prefix('selection-manager');\nexport var clickManagerContext = prefix('click-manager');","export var KEY_UP = 'ArrowUp';\nexport var KEY_DOWN = 'ArrowDown';\nexport var KEY_SPACE = ' ';\nexport var KEY_ENTER = 'Enter';\nexport var KEY_TAB = 'Tab';\nexport var KEY_ESC = 'Escape';","import { __extends, __read, __spread } from \"tslib\";\nimport React, { Children, Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { AnalyticsReactContext } from './AnalyticsReactContext';\nvar ContextTypes = {\n getAtlaskitAnalyticsContext: PropTypes.func,\n getAtlaskitAnalyticsEventHandlers: PropTypes.func,\n};\nvar AnalyticsContext = /** @class */ (function (_super) {\n __extends(AnalyticsContext, _super);\n function AnalyticsContext(props) {\n var _this = _super.call(this, props) || this;\n _this.getChildContext = function () { return ({\n getAtlaskitAnalyticsContext: _this.getAnalyticsContext,\n }); };\n _this.getAnalyticsContext = function () {\n var data = _this.props.data;\n var getAtlaskitAnalyticsContext = _this.context.getAtlaskitAnalyticsContext;\n var ancestorData = (typeof getAtlaskitAnalyticsContext === 'function' &&\n getAtlaskitAnalyticsContext()) ||\n [];\n return __spread(ancestorData, [data]);\n };\n _this.getAnalyticsEventHandlers = function () {\n var getAtlaskitAnalyticsEventHandlers = _this.context.getAtlaskitAnalyticsEventHandlers;\n var ancestorHandlers = (typeof getAtlaskitAnalyticsEventHandlers === 'function' &&\n getAtlaskitAnalyticsEventHandlers()) ||\n [];\n return ancestorHandlers;\n };\n _this.state = {\n getAtlaskitAnalyticsContext: _this.getAnalyticsContext,\n getAtlaskitAnalyticsEventHandlers: _this.getAnalyticsEventHandlers,\n };\n return _this;\n }\n AnalyticsContext.prototype.render = function () {\n var children = this.props.children;\n return (React.createElement(AnalyticsReactContext.Provider, { value: this.state }, Children.only(children)));\n };\n AnalyticsContext.contextTypes = ContextTypes;\n AnalyticsContext.childContextTypes = ContextTypes;\n return AnalyticsContext;\n}(Component));\nexport default AnalyticsContext;\n//# sourceMappingURL=AnalyticsContext.js.map","import { __assign, __extends, __read, __spread } from \"tslib\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport UIAnalyticsEvent from './UIAnalyticsEvent';\n/**\n * This component is used to grab the analytics functions off context.\n * It uses legacy context, but provides an API similar to 16.3 context.\n * This makes it easier to use with the forward ref API.\n */\nvar AnalyticsContextConsumer = /** @class */ (function (_super) {\n __extends(AnalyticsContextConsumer, _super);\n function AnalyticsContextConsumer(props) {\n var _this = _super.call(this, props) || this;\n /**\n * Store references to the original and patched event props so we can\n * determine when to update the patched props\n */\n _this.originalEventProps = {};\n _this.patchedEventProps = {};\n // Update patched event props only if the original props have changed\n _this.updatePatchedEventProps = function (props) {\n var changedPropCallbacks = Object.keys(_this.props.createEventMap).filter(function (p) { return _this.originalEventProps[p] !== props[p]; });\n if (changedPropCallbacks.length > 0) {\n _this.patchedEventProps = __assign(__assign({}, _this.patchedEventProps), _this.mapCreateEventsToProps(changedPropCallbacks, props));\n changedPropCallbacks.forEach(function (p) {\n _this.originalEventProps[p] = props[p];\n });\n }\n return _this.patchedEventProps;\n };\n _this.mapCreateEventsToProps = function (changedPropNames, props) {\n return changedPropNames.reduce(function (modified, propCallbackName) {\n var _a;\n var eventCreator = _this.props.createEventMap[propCallbackName];\n var providedCallback = props[propCallbackName];\n if (!['object', 'function'].includes(typeof eventCreator)) {\n return modified;\n }\n var modifiedCallback = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var analyticsEvent = typeof eventCreator === 'function'\n ? eventCreator(_this.createAnalyticsEvent, props)\n : _this.createAnalyticsEvent(eventCreator);\n if (providedCallback) {\n providedCallback.apply(void 0, __spread(args, [analyticsEvent]));\n }\n };\n return __assign(__assign({}, modified), (_a = {}, _a[propCallbackName] = modifiedCallback, _a));\n }, {});\n };\n _this.createAnalyticsEvent = function (payload) {\n var _a = _this.context, getAtlaskitAnalyticsEventHandlers = _a.getAtlaskitAnalyticsEventHandlers, getAtlaskitAnalyticsContext = _a.getAtlaskitAnalyticsContext;\n return new UIAnalyticsEvent({\n context: (typeof getAtlaskitAnalyticsContext === 'function' &&\n getAtlaskitAnalyticsContext()) ||\n [],\n handlers: (typeof getAtlaskitAnalyticsEventHandlers === 'function' &&\n getAtlaskitAnalyticsEventHandlers()) ||\n [],\n payload: payload,\n });\n };\n Object.keys(_this.props.createEventMap).forEach(function (p) {\n _this.originalEventProps[p] = props.wrappedComponentProps[p];\n });\n _this.patchedEventProps = _this.mapCreateEventsToProps(Object.keys(_this.props.createEventMap), props.wrappedComponentProps);\n return _this;\n }\n AnalyticsContextConsumer.prototype.render = function () {\n var patchedEventProps = this.updatePatchedEventProps(this.props.wrappedComponentProps);\n return this.props.children({\n createAnalyticsEvent: this.createAnalyticsEvent,\n patchedEventProps: patchedEventProps,\n });\n };\n AnalyticsContextConsumer.contextTypes = {\n getAtlaskitAnalyticsEventHandlers: PropTypes.func,\n getAtlaskitAnalyticsContext: PropTypes.func,\n };\n AnalyticsContextConsumer.defaultProps = {\n createEventMap: {},\n };\n return AnalyticsContextConsumer;\n}(React.Component));\nexport default AnalyticsContextConsumer;\n//# sourceMappingURL=AnalyticsContextConsumer.js.map","import { __assign } from \"tslib\";\nvar AnalyticsEvent = /** @class */ (function () {\n function AnalyticsEvent(props) {\n var _this = this;\n this.clone = function () {\n // We stringify and parse here to get a hacky \"deep clone\" of the object.\n // This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,\n // but none of those need to be represented in our payload, so we consider this fine\n var payload = JSON.parse(JSON.stringify(_this.payload));\n return new AnalyticsEvent({ payload: payload });\n };\n this.payload = props.payload;\n }\n AnalyticsEvent.prototype.update = function (updater) {\n if (typeof updater === 'function') {\n this.payload = updater(this.payload);\n }\n if (typeof updater === 'object') {\n this.payload = __assign(__assign({}, this.payload), updater);\n }\n return this;\n };\n return AnalyticsEvent;\n}());\nexport default AnalyticsEvent;\n//# sourceMappingURL=AnalyticsEvent.js.map","import { __extends, __read, __spread } from \"tslib\";\nimport AnalyticsEvent from './AnalyticsEvent';\nvar UIAnalyticsEvent = /** @class */ (function (_super) {\n __extends(UIAnalyticsEvent, _super);\n function UIAnalyticsEvent(props) {\n var _this = _super.call(this, props) || this;\n _this.clone = function () {\n if (_this.hasFired) {\n // eslint-disable-next-line no-console\n console.warn(\"Cannot clone an event after it's been fired.\");\n return null;\n }\n var context = __spread(_this.context);\n var handlers = __spread(_this.handlers);\n /**\n * A hacky \"deep clone\" of the object. This is limited in that it wont\n * support functions, regexs, Maps, Sets, etc, but none of those need to\n * be represented in our payload.\n */\n var payload = JSON.parse(JSON.stringify(_this.payload));\n return new UIAnalyticsEvent({ context: context, handlers: handlers, payload: payload });\n };\n _this.fire = function (channel) {\n if (_this.hasFired) {\n // eslint-disable-next-line no-console\n console.warn('Cannot fire an event twice.');\n return;\n }\n _this.handlers.forEach(function (handler) { return handler(_this, channel); });\n _this.hasFired = true;\n };\n _this.context = props.context || [];\n _this.handlers = props.handlers || [];\n _this.hasFired = false;\n return _this;\n }\n UIAnalyticsEvent.prototype.update = function (updater) {\n if (this.hasFired) {\n // eslint-disable-next-line no-console\n console.warn(\"Cannot update an event after it's been fired.\");\n return this;\n }\n return _super.prototype.update.call(this, updater);\n };\n return UIAnalyticsEvent;\n}(AnalyticsEvent));\nexport default UIAnalyticsEvent;\n//# sourceMappingURL=UIAnalyticsEvent.js.map","export default (function (channel) { return function (payload) { return function (createAnalyticsEvent) {\n var consumerEvent = createAnalyticsEvent(payload);\n var clonedEvent = consumerEvent.clone();\n if (clonedEvent) {\n clonedEvent.fire(channel);\n }\n return consumerEvent;\n}; }; });\n//# sourceMappingURL=createAndFireEvent.js.map","import { __assign, __rest } from \"tslib\";\nimport React from 'react';\nimport AnalyticsContext from './AnalyticsContext';\nvar withAnalyticsContext = function (defaultData) { return function (WrappedComponent) {\n var WithAnalyticsContext = React.forwardRef(function (props, ref) {\n var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = __rest(props, [\"analyticsContext\"]);\n var analyticsData = __assign(__assign({}, defaultData), analyticsContext);\n return (React.createElement(AnalyticsContext, { data: analyticsData },\n React.createElement(WrappedComponent, __assign({}, rest, { ref: ref }))));\n });\n // @ts-ignore\n WithAnalyticsContext.displayName = \"WithAnalyticsContext(\" + (WrappedComponent.displayName ||\n WrappedComponent.name) + \")\";\n return WithAnalyticsContext;\n}; };\nexport default withAnalyticsContext;\n//# sourceMappingURL=withAnalyticsContext.js.map","import { __assign } from \"tslib\";\nimport React from 'react';\nimport AnalyticsContextConsumer from './AnalyticsContextConsumer';\nvar withAnalyticsEvents = function (createEventMap) { return function (WrappedComponent) {\n var WithAnalyticsEvents = React.forwardRef(function (props, ref) { return (React.createElement(AnalyticsContextConsumer, { createEventMap: createEventMap, wrappedComponentProps: props }, function (_a) {\n var createAnalyticsEvent = _a.createAnalyticsEvent, patchedEventProps = _a.patchedEventProps;\n return (React.createElement(WrappedComponent, __assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, ref: ref })));\n })); });\n // @ts-ignore\n WithAnalyticsEvents.displayName = \"WithAnalyticsEvents(\" + (WrappedComponent.displayName ||\n WrappedComponent.name) + \")\";\n return WithAnalyticsEvents;\n}; };\nexport default withAnalyticsEvents;\n//# sourceMappingURL=withAnalyticsEvents.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar react_1 = tslib_1.__importDefault(require(\"react\"));\nvar styled_components_1 = tslib_1.__importDefault(require(\"styled-components\"));\nvar uuid_1 = tslib_1.__importDefault(require(\"uuid\"));\nvar colors_1 = require(\"@atlaskit/theme/colors\");\nvar constants_1 = require(\"../constants\");\nvar getSize = function (_a) {\n var size = _a.size;\n return size ? \"height: \" + constants_1.sizes[size] + \"; width: \" + constants_1.sizes[size] + \";\" : null;\n};\nexports.IconWrapper = styled_components_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject([\"\\n \", \";\\n color: \", \";\\n display: inline-block;\\n fill: \", \";\\n flex-shrink: 0;\\n line-height: 1;\\n\\n > svg {\\n \", \";\\n max-height: 100%;\\n max-width: 100%;\\n overflow: hidden;\\n pointer-events: none;\\n vertical-align: bottom;\\n }\\n\\n /**\\n * Stop-color doesn't properly apply in chrome when the inherited/current color changes.\\n * We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS\\n * rule) and then override it with currentColor for the color changes to be picked up.\\n */\\n stop {\\n stop-color: currentColor;\\n }\\n\"], [\"\\n \", \";\\n color: \", \";\\n display: inline-block;\\n fill: \", \";\\n flex-shrink: 0;\\n line-height: 1;\\n\\n > svg {\\n \", \";\\n max-height: 100%;\\n max-width: 100%;\\n overflow: hidden;\\n pointer-events: none;\\n vertical-align: bottom;\\n }\\n\\n /**\\n * Stop-color doesn't properly apply in chrome when the inherited/current color changes.\\n * We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS\\n * rule) and then override it with currentColor for the color changes to be picked up.\\n */\\n stop {\\n stop-color: currentColor;\\n }\\n\"])), getSize, function (p) { return p.primaryColor || 'currentColor'; }, function (p) { return p.secondaryColor || colors_1.background; }, getSize);\n/**\n * Icons need unique gradient IDs across instances for different gradient definitions to work\n * correctly.\n * A step in the icon build process replaces linear gradient IDs and their references in paths\n * to a placeholder string so we can replace them with a dynamic ID here.\n * Replacing the original IDs with placeholders in the build process is more robust than not\n * using placeholders as we do not have to rely on regular expressions to find specific element\n * to replace.\n */\nfunction insertDynamicGradientID(svgStr, label) {\n var id = uuid_1.default();\n var replacedSvgStr = svgStr\n .replace(/id=\"([^\"]+)-idPlaceholder\"/g, \"id=$1-\" + id)\n .replace(/fill=\"url\\(#([^\"]+)-idPlaceholder\\)\"/g, \"fill=\\\"url(#$1-\" + id + \")\\\"\");\n return replacedSvgStr;\n}\nvar Icon = function (props) {\n var Glyph = props.glyph, dangerouslySetGlyph = props.dangerouslySetGlyph, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, size = props.size, testId = props.testId, label = props.label;\n var glyphProps = dangerouslySetGlyph\n ? {\n dangerouslySetInnerHTML: {\n __html: insertDynamicGradientID(dangerouslySetGlyph, label),\n },\n }\n : { children: Glyph ? react_1.default.createElement(Glyph, { role: \"presentation\" }) : null };\n return (react_1.default.createElement(exports.IconWrapper, tslib_1.__assign({ primaryColor: primaryColor, secondaryColor: secondaryColor, size: size, \"data-testid\": testId, role: label ? 'img' : 'presentation', \"aria-label\": label ? label : undefined }, glyphProps)));\n};\nexports.default = Icon;\nvar templateObject_1;\n//# sourceMappingURL=Icon.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sizes = {\n small: '16px',\n medium: '24px',\n large: '32px',\n xlarge: '48px',\n};\nexports.sizeMap = {\n small: 'small',\n medium: 'medium',\n large: 'large',\n xlarge: 'xlarge',\n};\n//# sourceMappingURL=constants.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Icon = _interopRequireDefault(require(\"../cjs/components/Icon\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar ChevronDownIcon = function ChevronDownIcon(props) {\n return _react.default.createElement(_Icon.default, _extends({\n dangerouslySetGlyph: \"\"\n }, props));\n};\n\nChevronDownIcon.displayName = 'ChevronDownIcon';\nvar _default = ChevronDownIcon;\nexports.default = _default;","// ideally this would be fetched from ../constants but that causes a\n// circular dep loop. This will be refactored as part of a breaking\n// change in the future.\nconst DEFAULT_THEME_MODE = 'light';\nconst THEME_MODES = ['light', 'dark'];\n// Resolves the different types of theme objects in the current API\nexport default function getTheme(props) {\n if (props && props.theme) {\n // Theme is the global Atlaskit theme\n if ('__ATLASKIT_THEME__' in props.theme) {\n return props.theme.__ATLASKIT_THEME__;\n }\n // User has provided alternative modes\n else if ('mode' in props.theme && THEME_MODES.includes(props.theme.mode)) {\n return props.theme;\n }\n }\n // If format not supported (or no theme provided), return standard theme\n return { mode: DEFAULT_THEME_MODE };\n}\n//# sourceMappingURL=getTheme.js.map","/* eslint-disable prefer-rest-params */\nimport getTheme from './getTheme';\n// Unpack custom variants, and get correct value for the current theme\nfunction themedVariants(variantProp, variants) {\n return (props) => {\n const theme = getTheme(props);\n if (props && props[variantProp] && variants) {\n const modes = variants[props[variantProp]];\n if (modes && modes[theme.mode]) {\n const value = modes[theme.mode];\n if (value)\n return value; // TS believes value can be undefined\n }\n }\n return '';\n };\n}\nexport default function themed(modesOrVariant, variantModes) {\n if (typeof modesOrVariant === 'string') {\n return themedVariants(modesOrVariant, variantModes);\n }\n const modes = modesOrVariant;\n return (props) => {\n // Get theme from the user's props\n const theme = getTheme(props);\n // User isn't required to provide both light and dark values\n if (theme.mode in modes) {\n const value = modes[theme.mode]; // TS believes value can be undefined\n if (value)\n return value;\n }\n return '';\n };\n}\n//# sourceMappingURL=themed.js.map","import themed from './utils/themed';\n// Reds\nexport const R50 = '#FFEBE6';\nexport const R75 = '#FFBDAD';\nexport const R100 = '#FF8F73';\nexport const R200 = '#FF7452';\nexport const R300 = '#FF5630';\nexport const R400 = '#DE350B';\nexport const R500 = '#BF2600';\n// Yellows\nexport const Y50 = '#FFFAE6';\nexport const Y75 = '#FFF0B3';\nexport const Y100 = '#FFE380';\nexport const Y200 = '#FFC400';\nexport const Y300 = '#FFAB00';\nexport const Y400 = '#FF991F';\nexport const Y500 = '#FF8B00';\n// Greens\nexport const G50 = '#E3FCEF';\nexport const G75 = '#ABF5D1';\nexport const G100 = '#79F2C0';\nexport const G200 = '#57D9A3';\nexport const G300 = '#36B37E';\nexport const G400 = '#00875A';\nexport const G500 = '#006644';\n// Blues\nexport const B50 = '#DEEBFF';\nexport const B75 = '#B3D4FF';\nexport const B100 = '#4C9AFF';\nexport const B200 = '#2684FF';\nexport const B300 = '#0065FF';\nexport const B400 = '#0052CC';\nexport const B500 = '#0747A6';\n// Purples\nexport const P50 = '#EAE6FF';\nexport const P75 = '#C0B6F2';\nexport const P100 = '#998DD9';\nexport const P200 = '#8777D9';\nexport const P300 = '#6554C0';\nexport const P400 = '#5243AA';\nexport const P500 = '#403294';\n// Teals\nexport const T50 = '#E6FCFF';\nexport const T75 = '#B3F5FF';\nexport const T100 = '#79E2F2';\nexport const T200 = '#00C7E6';\nexport const T300 = '#00B8D9';\nexport const T400 = '#00A3BF';\nexport const T500 = '#008DA6';\n// Neutrals\nexport const N0 = '#FFFFFF';\nexport const N10 = '#FAFBFC';\nexport const N20 = '#F4F5F7';\nexport const N30 = '#EBECF0';\nexport const N40 = '#DFE1E6';\nexport const N50 = '#C1C7D0';\nexport const N60 = '#B3BAC5';\nexport const N70 = '#A5ADBA';\nexport const N80 = '#97A0AF';\nexport const N90 = '#8993A4';\nexport const N100 = '#7A869A';\nexport const N200 = '#6B778C';\nexport const N300 = '#5E6C84';\nexport const N400 = '#505F79';\nexport const N500 = '#42526E';\nexport const N600 = '#344563';\nexport const N700 = '#253858';\nexport const N800 = '#172B4D';\n// ATTENTION: update the tints if you update this\nexport const N900 = '#091E42';\n// Each tint is made of N900 and an alpha channel\nexport const N10A = 'rgba(9, 30, 66, 0.02)';\nexport const N20A = 'rgba(9, 30, 66, 0.04)';\nexport const N30A = 'rgba(9, 30, 66, 0.08)';\nexport const N40A = 'rgba(9, 30, 66, 0.13)';\nexport const N50A = 'rgba(9, 30, 66, 0.25)';\nexport const N60A = 'rgba(9, 30, 66, 0.31)';\nexport const N70A = 'rgba(9, 30, 66, 0.36)';\nexport const N80A = 'rgba(9, 30, 66, 0.42)';\nexport const N90A = 'rgba(9, 30, 66, 0.48)';\nexport const N100A = 'rgba(9, 30, 66, 0.54)';\nexport const N200A = 'rgba(9, 30, 66, 0.60)';\nexport const N300A = 'rgba(9, 30, 66, 0.66)';\nexport const N400A = 'rgba(9, 30, 66, 0.71)';\nexport const N500A = 'rgba(9, 30, 66, 0.77)';\nexport const N600A = 'rgba(9, 30, 66, 0.82)';\nexport const N700A = 'rgba(9, 30, 66, 0.89)';\nexport const N800A = 'rgba(9, 30, 66, 0.95)';\n// Dark Mode Neutrals\nexport const DN900 = '#E6EDFA';\nexport const DN800 = '#DCE5F5';\nexport const DN700 = '#CED9EB';\nexport const DN600 = '#B8C7E0';\nexport const DN500 = '#ABBBD6';\nexport const DN400 = '#9FB0CC';\nexport const DN300 = '#8C9CB8';\nexport const DN200 = '#7988A3';\nexport const DN100 = '#67758F';\nexport const DN90 = '#56637A';\nexport const DN80 = '#455166';\nexport const DN70 = '#3B475C';\nexport const DN60 = '#313D52';\nexport const DN50 = '#283447';\nexport const DN40 = '#202B3D';\nexport const DN30 = '#1B2638';\nexport const DN20 = '#121A29';\nexport const DN10 = '#0E1624';\n// ATTENTION: update the tints if you update this\nexport const DN0 = '#0D1424';\n// Each dark tint is made of DN0 and an alpha channel\nexport const DN800A = 'rgba(13, 20, 36, 0.06)';\nexport const DN700A = 'rgba(13, 20, 36, 0.14)';\nexport const DN600A = 'rgba(13, 20, 36, 0.18)';\nexport const DN500A = 'rgba(13, 20, 36, 0.29)';\nexport const DN400A = 'rgba(13, 20, 36, 0.36)';\nexport const DN300A = 'rgba(13, 20, 36, 0.40)';\nexport const DN200A = 'rgba(13, 20, 36, 0.47)';\nexport const DN100A = 'rgba(13, 20, 36, 0.53)';\nexport const DN90A = 'rgba(13, 20, 36, 0.63)';\nexport const DN80A = 'rgba(13, 20, 36, 0.73)';\nexport const DN70A = 'rgba(13, 20, 36, 0.78)';\nexport const DN60A = 'rgba(13, 20, 36, 0.81)';\nexport const DN50A = 'rgba(13, 20, 36, 0.85)';\nexport const DN40A = 'rgba(13, 20, 36, 0.89)';\nexport const DN30A = 'rgba(13, 20, 36, 0.92)';\nexport const DN20A = 'rgba(13, 20, 36, 0.95)';\nexport const DN10A = 'rgba(13, 20, 36, 0.97)';\n// Themed colors\nexport const background = themed({ light: N0, dark: DN30 });\nexport const backgroundActive = themed({ light: B50, dark: B75 });\nexport const backgroundHover = themed({ light: N30, dark: DN70 });\nexport const backgroundOnLayer = themed({ light: N0, dark: DN50 });\nexport const text = themed({ light: N900, dark: DN600 });\nexport const textHover = themed({ light: N800, dark: DN600 });\nexport const textActive = themed({ light: B400, dark: B400 });\nexport const subtleText = themed({ light: N200, dark: DN300 });\nexport const placeholderText = themed({ light: N100, dark: DN200 });\nexport const heading = themed({ light: N800, dark: DN600 });\nexport const subtleHeading = themed({ light: N200, dark: DN300 });\nexport const codeBlock = themed({ light: N20, dark: DN50 });\nexport const link = themed({ light: B400, dark: B100 });\nexport const linkHover = themed({ light: B300, dark: B200 });\nexport const linkActive = themed({ light: B500, dark: B100 });\nexport const linkOutline = themed({ light: B100, dark: B200 });\nexport const primary = themed({ light: B400, dark: B100 });\nexport const blue = themed({ light: B400, dark: B100 });\nexport const teal = themed({ light: T300, dark: T200 });\nexport const purple = themed({ light: P300, dark: P100 });\nexport const red = themed({ light: R300, dark: R300 });\nexport const yellow = themed({ light: Y300, dark: Y300 });\nexport const green = themed({ light: G300, dark: G300 });\nexport const skeleton = () => N20A;\n//# sourceMappingURL=colors.js.map","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/* eslint-disable react/prop-types */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider } from 'styled-components';\nimport { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';\nimport Layer from '@atlaskit/layer';\nimport Spinner from '@atlaskit/spinner';\nimport { gridSize } from '@atlaskit/theme/constants';\nimport Wrapper, { Content, SpinnerContainer, Trigger } from '../styled/Droplist';\nimport itemTheme from '../theme/item-theme';\nimport { name as packageName, version as packageVersion } from '../version.json';\nvar halfFocusRing = 1;\nvar dropOffset = \"0, \".concat(gridSize(), \"px\");\n\nif (process.env.NODE_ENV !== 'production' && !process.env.CI) {\n // eslint-disable-next-line no-console\n console.warn('@atlaskit/droplist has been deprecated. It is an internal component and should not be used directly.');\n}\n\nvar Droplist =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Droplist, _Component);\n\n function Droplist() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Droplist);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Droplist)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidMount\", function () {\n _this.setContentWidth(); // We use a captured event here to avoid a radio or checkbox dropdown item firing its\n // click event first, which would cause a re-render of the element and prevent Droplist\n // from detecting the actual source of this original click event.\n\n\n document.addEventListener('click', _this.handleClickOutside, true);\n document.addEventListener('keydown', _this.handleEsc);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidUpdate\", function () {\n if (_this.props.isOpen) {\n _this.setContentWidth();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentWillUnmount\", function () {\n document.removeEventListener('click', _this.handleClickOutside, true);\n document.removeEventListener('keydown', _this.handleEsc);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setContentWidth\", function () {\n var _assertThisInitialize = _assertThisInitialized(_this),\n dropContentRef = _assertThisInitialize.dropContentRef,\n triggerRef = _assertThisInitialize.triggerRef;\n\n var shouldFitContainer = _this.props.shouldFitContainer; // We need to manually set the content width to match the trigger width\n // if props.shouldFitContainer is true\n\n if (shouldFitContainer && dropContentRef && triggerRef) {\n dropContentRef.style.width = \"\".concat(triggerRef.offsetWidth - halfFocusRing * 2, \"px\");\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleEsc\", function (event) {\n if ((event.key === 'Escape' || event.key === 'Esc') && _this.props.isOpen) {\n _this.close(event);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleClickOutside\", function (event) {\n if (_this.props.isOpen) {\n if (event.target instanceof Node) {\n // Rather than check for the target within the entire Droplist, we specify the trigger/content.\n // This aids with future effort in scroll-locking Droplist when isMenuFixed is enabled; the scroll\n // blanket which stretches to the viewport should not stop 'close' from being triggered.\n var withinTrigger = _this.triggerRef && _this.triggerRef.contains(event.target);\n\n var withinContent = _this.dropContentRef && _this.dropContentRef.contains(event.target);\n\n if (!withinTrigger && !withinContent) {\n _this.close(event);\n }\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"close\", function (event) {\n if (_this.props.onOpenChange) {\n _this.props.onOpenChange({\n isOpen: false,\n event: event\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleContentRef\", function (ref) {\n _this.dropContentRef = ref; // If the dropdown has just been opened, we focus on the containing element so the\n // user can tab to the first dropdown item. We will only receive this ref if isOpen\n // is true or null, so no need to check for truthiness here.\n\n if (ref) {\n ref.focus();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleTriggerRef\", function (ref) {\n _this.triggerRef = ref;\n });\n\n return _this;\n }\n\n _createClass(Droplist, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n shouldAllowMultilineItems: this.props.shouldAllowMultilineItems\n };\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n appearance = _this$props.appearance,\n boundariesElement = _this$props.boundariesElement,\n children = _this$props.children,\n isLoading = _this$props.isLoading,\n isOpen = _this$props.isOpen,\n maxHeight = _this$props.maxHeight,\n onClick = _this$props.onClick,\n onKeyDown = _this$props.onKeyDown,\n position = _this$props.position,\n isMenuFixed = _this$props.isMenuFixed,\n shouldFitContainer = _this$props.shouldFitContainer,\n shouldFlip = _this$props.shouldFlip,\n trigger = _this$props.trigger,\n onPositioned = _this$props.onPositioned,\n testId = _this$props.testId;\n var layerContent = isOpen ? React.createElement(Content, {\n \"data-role\": \"droplistContent\",\n \"data-testid\": testId && \"\".concat(testId, \"--content\"),\n isTall: appearance === 'tall',\n innerRef: this.handleContentRef,\n maxHeight: maxHeight\n }, isLoading ? React.createElement(SpinnerContainer, null, React.createElement(Spinner, {\n size: \"small\"\n })) : React.createElement(ThemeProvider, {\n theme: itemTheme\n }, React.createElement(\"div\", null, children))) : null;\n return React.createElement(Wrapper, {\n fit: shouldFitContainer,\n onClick: onClick,\n onKeyDown: onKeyDown\n }, React.createElement(Layer, {\n autoFlip: shouldFlip,\n boundariesElement: boundariesElement,\n content: layerContent,\n offset: dropOffset,\n position: position,\n isAlwaysFixed: isOpen && isMenuFixed,\n onPositioned: onPositioned\n }, React.createElement(Trigger, {\n fit: shouldFitContainer,\n innerRef: this.handleTriggerRef\n }, trigger)));\n }\n }]);\n\n return Droplist;\n}(Component);\n\n_defineProperty(Droplist, \"defaultProps\", {\n appearance: 'default',\n boundariesElement: 'viewport',\n children: null,\n isLoading: false,\n isOpen: false,\n onClick: function onClick() {},\n onKeyDown: function onKeyDown() {},\n onOpenChange: function onOpenChange() {},\n position: 'bottom left',\n isMenuFixed: false,\n shouldAllowMultilineItems: false,\n shouldFitContainer: false,\n shouldFlip: true,\n trigger: null,\n onPositioned: function onPositioned() {}\n});\n\n_defineProperty(Droplist, \"childContextTypes\", {\n shouldAllowMultilineItems: PropTypes.bool\n});\n\nexport { Droplist as DroplistWithoutAnalytics };\nvar createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');\nexport default withAnalyticsContext({\n componentName: 'droplist',\n packageName: packageName,\n packageVersion: packageVersion\n})(withAnalyticsEvents({\n onOpenChange: createAndFireEventOnAtlaskit({\n action: 'toggled',\n actionSubject: 'droplist',\n attributes: {\n componentName: 'droplist',\n packageName: packageName,\n packageVersion: packageVersion\n }\n })\n})(Droplist));","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/* eslint-disable react/prop-types */\nimport React, { PureComponent } from 'react';\nimport { Anchor, Span } from '../styled/Item';\nexport var supportsVoiceOver = function supportsVoiceOver() {\n return /Mac OS X/.test(navigator.userAgent);\n};\nexport var getAriaRoles = function getAriaRoles() {\n return {\n checkbox: supportsVoiceOver() ? 'checkbox' : 'menuitemcheckbox',\n link: 'menuitem',\n option: 'option',\n radio: supportsVoiceOver() ? 'radio' : 'menuitemradio'\n };\n};\nexport var baseTypes = {\n default: 'link',\n values: ['link', 'radio', 'checkbox', 'option']\n};\n\nvar Element =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(Element, _PureComponent);\n\n function Element() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Element);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Element)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseDown\", function (e) {\n e.preventDefault();\n\n _this.props.handleMouseDown();\n });\n\n return _this;\n }\n\n _createClass(Element, [{\n key: \"render\",\n value: function render() {\n var props = this.props;\n var isActive = props.isActive,\n isChecked = props.isChecked,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n isHidden = props.isHidden,\n isSelected = props.isSelected,\n isPrimary = props.isPrimary;\n var type = this.props.type || '';\n var appearanceProps = {\n isActive: isActive,\n isChecked: isChecked,\n isDisabled: isDisabled,\n isFocused: isFocused,\n isHidden: isHidden,\n isSelected: isSelected,\n isPrimary: isPrimary\n };\n var ariaProps = {\n 'aria-checked': !!isChecked,\n 'aria-disabled': !!isDisabled,\n 'aria-hidden': !!isHidden,\n 'aria-selected': !!isSelected\n };\n var ariaRoles = getAriaRoles();\n var commonProps = {\n 'data-role': 'droplistItem',\n onClick: props.handleClick,\n onKeyPress: props.handleKeyPress,\n onMouseDown: this.handleMouseDown,\n onMouseOut: props.handleMouseOut,\n onMouseOver: props.handleMouseOver,\n onMouseUp: props.handleMouseUp,\n role: ariaRoles[type],\n title: props.title,\n tabIndex: props.type === 'option' ? null : 0\n };\n var testingProps = process.env.NODE_ENV === 'test' ? {\n 'data-test-active': isActive,\n 'data-test-checked': isChecked,\n 'data-test-disabled': isDisabled,\n 'data-test-hidden': isHidden,\n 'data-test-selected': isSelected\n } : {};\n\n var consolidatedProps = _objectSpread({}, appearanceProps, ariaProps, commonProps, testingProps);\n\n if (props.href && !isDisabled) {\n return React.createElement(Anchor, _extends({\n href: props.href,\n target: props.target\n }, consolidatedProps), props.children);\n }\n\n return React.createElement(Span, consolidatedProps, props.children);\n }\n }]);\n\n return Element;\n}(PureComponent);\n\nexport { Element as default };","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/* eslint-disable react/prop-types */\nimport React, { PureComponent } from 'react';\nimport Group, { Heading, HeadingAfter, HeadingText } from '../styled/Group';\n\nvar DroplistGroup =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(DroplistGroup, _PureComponent);\n\n function DroplistGroup() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, DroplistGroup);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DroplistGroup)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n ariaLabel: _this.props.heading\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidMount\", function () {\n if (_this.props.heading || _this.props.elemAfter) {\n _this.setState({\n ariaLabel: _this.getAriaLabel()\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidUpdate\", function () {\n if (_this.props.heading || _this.props.elemAfter) {\n // eslint-disable-next-line react/no-did-update-set-state\n _this.setState({\n ariaLabel: _this.getAriaLabel()\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getAriaLabel\", function () {\n var _this$props = _this.props,\n elemAfter = _this$props.elemAfter,\n heading = _this$props.heading;\n var afterText = elemAfter && typeof elemAfter === 'string' ? elemAfter : _this.headingElement && _this.headingElement.textContent;\n return \"\".concat(heading || '', \" \").concat(afterText || '');\n });\n\n return _this;\n }\n\n _createClass(DroplistGroup, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n children = _this$props2.children,\n elemAfter = _this$props2.elemAfter,\n heading = _this$props2.heading;\n var ariaLabel = this.state.ariaLabel;\n return React.createElement(Group, {\n \"aria-label\": ariaLabel,\n role: \"group\"\n }, heading ? React.createElement(Heading, {\n \"aria-hidden\": \"true\",\n \"data-role\": \"droplistGroupHeading\"\n }, React.createElement(HeadingText, null, heading), elemAfter ? React.createElement(HeadingAfter, {\n innerRef: function innerRef(r) {\n _this2.headingElement = r;\n }\n }, elemAfter) : null) : null, children);\n }\n }]);\n\n return DroplistGroup;\n}(PureComponent);\n\nDroplistGroup.displayName = 'Group';\nexport default DroplistGroup;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/* eslint-disable react/prop-types */\nimport React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';\nimport Checkbox from '@atlaskit/icon/glyph/checkbox';\nimport Radio from '@atlaskit/icon/glyph/radio';\nimport Tooltip from '@atlaskit/tooltip';\nimport { After, Before, Content, ContentWrapper, Description, InputWrapper } from '../styled/Item';\nimport { getInputBackground, getInputFill } from '../utils';\nimport { name as packageName, version as packageVersion } from '../version.json';\nimport Element from './Element';\nvar inputTypes = {\n checkbox: Checkbox,\n radio: Radio\n};\n\nvar Item =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(Item, _PureComponent);\n\n function Item() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Item);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Item)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n isHovered: false,\n isPressed: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentDidMount\", function () {\n return document.addEventListener('mouseup', _this.handleMouseUp);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"componentWillUnmount\", function () {\n return document.removeEventListener('mouseup', _this.handleMouseUp);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"guardedActivate\", function (event) {\n var _this$props = _this.props,\n isDisabled = _this$props.isDisabled,\n onActivate = _this$props.onActivate;\n if (!isDisabled && onActivate) onActivate({\n item: _assertThisInitialized(_this),\n event: event\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleClick\", function (event) {\n return _this.guardedActivate(event);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyPress\", function (event) {\n var keyIsValid = ['Enter', ' '].indexOf(event.key) > -1;\n if (keyIsValid) _this.guardedActivate(event);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseDown\", function () {\n return _this.setState({\n isPressed: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseUp\", function () {\n return _this.setState({\n isPressed: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseOut\", function () {\n return _this.setState({\n isHovered: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleMouseOver\", function () {\n return _this.setState({\n isHovered: true\n });\n });\n\n return _this;\n }\n\n _createClass(Item, [{\n key: \"render\",\n value: function render() {\n var props = this.props;\n var _this$state = this.state,\n isHovered = _this$state.isHovered,\n isPressed = _this$state.isPressed;\n var type = props.type || '';\n var hasInput = ['checkbox', 'radio'].indexOf(type) > -1;\n var Input = inputTypes[type];\n var appearanceProps = {\n isActive: props.type === 'link' && props.isActive || props.type === 'option' && props.isSelected,\n isChecked: ['checkbox', 'radio'].indexOf(type) > -1 && props.isChecked,\n isDisabled: props.isDisabled,\n isFocused: props.isFocused,\n isHidden: props.isHidden,\n isHovered: isHovered,\n isPressed: isPressed,\n isSelected: type === 'option' && props.isSelected,\n isPrimary: props.appearance === 'primary'\n };\n var element = React.createElement(Element, _extends({}, appearanceProps, {\n handleClick: this.handleClick,\n handleKeyPress: this.handleKeyPress,\n handleMouseOut: this.handleMouseOut,\n handleMouseOver: this.handleMouseOver,\n handleMouseUp: this.handleMouseUp,\n handleMouseDown: this.handleMouseDown,\n href: props.href,\n target: props.target,\n title: props.title,\n type: props.type\n }), hasInput && React.createElement(InputWrapper, appearanceProps, React.createElement(Input, {\n label: \"\",\n primaryColor: getInputBackground(appearanceProps),\n secondaryColor: getInputFill(appearanceProps),\n size: \"medium\"\n })), !!props.elemBefore && React.createElement(Before, null, props.elemBefore), React.createElement(ContentWrapper, null, React.createElement(Content, {\n allowMultiline: this.context.shouldAllowMultilineItems\n }, props.children), !!props.description && React.createElement(Description, null, props.description)), !!props.elemAfter && React.createElement(After, null, props.elemAfter));\n return React.createElement(\"span\", {\n role: \"presentation\"\n }, props.tooltipDescription ? React.createElement(Tooltip, {\n content: props.tooltipDescription,\n position: props.tooltipPosition\n }, element) : element);\n }\n }]);\n\n return Item;\n}(PureComponent);\n\n_defineProperty(Item, \"defaultProps\", {\n appearance: 'default',\n children: null,\n description: '',\n elemAfter: null,\n elemBefore: null,\n href: null,\n isActive: false,\n isChecked: false,\n isDisabled: false,\n isFocused: false,\n isHidden: false,\n isSelected: false,\n itemContext: 'menu',\n onActivate: function onActivate() {},\n target: null,\n title: null,\n tooltipDescription: null,\n tooltipPosition: 'right',\n type: 'link'\n});\n\n_defineProperty(Item, \"contextTypes\", {\n shouldAllowMultilineItems: PropTypes.bool\n});\n\nexport { Item as DroplistItemWithoutAnalytics };\nvar createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');\nexport default withAnalyticsContext({\n componentName: 'droplistItem',\n packageName: packageName,\n packageVersion: packageVersion\n})(withAnalyticsEvents({\n onActivate: createAndFireEventOnAtlaskit({\n action: 'selected',\n actionSubject: 'droplistItem',\n attributes: {\n componentName: 'droplistItem',\n packageName: packageName,\n packageVersion: packageVersion\n }\n })\n})(Item));","import styled, { css } from 'styled-components';\nimport { backgroundOnLayer, N50A, N60A } from '@atlaskit/theme/colors';\nimport { borderRadius, gridSize } from '@atlaskit/theme/constants';\nimport { divide, multiply } from '@atlaskit/theme/math';\n/* When dropdown contains more than 9 elements (droplist items, droplist groups),\n * it should have scroll and cut off half of the 10th item to indicate that there are more\n * items then are seen. This was previously calculated by mapping over children, but with\n * the current composed API it is simpler to just assume 9 items. */\n\nvar getMaxHeight = function getMaxHeight(_ref) {\n var isTall = _ref.isTall,\n maxHeight = _ref.maxHeight;\n if (maxHeight) return \"\".concat(maxHeight, \"px\");\n var heightWithoutPadding = 17;\n var verticalPadding = gridSize();\n var height = heightWithoutPadding + verticalPadding * 2;\n var defaultMaxHeight = 9.5 * height + verticalPadding / 2;\n return isTall ? '90vh' : \"\".concat(defaultMaxHeight, \"px\");\n};\n\nexport default styled.div.withConfig({\n displayName: \"Droplist\",\n componentId: \"sc-1z05y4v-0\"\n})([\"\\n display: inline-flex;\\n\\n \", \";\\n\"], function (props) {\n return props.fit && \"\\n display: block;\\n flex: 1 1 auto;\\n \";\n});\nvar backgroundColor = backgroundOnLayer;\nvar boxShadow = css([\"\\n box-shadow: 0 \", \"px \", \"px -\", \"px\\n \", \",\\n 0 0 1px \", \";\\n\"], divide(gridSize, 2), gridSize, divide(gridSize, 4), N50A, N60A);\nexport var Content = styled.div.withConfig({\n displayName: \"Droplist__Content\",\n componentId: \"sc-1z05y4v-1\"\n})([\"\\n background: \", \";\\n border-radius: \", \"px;\\n \", \";\\n box-sizing: border-box;\\n overflow: auto;\\n padding: \", \"px 0;\\n max-height: \", \";\\n\"], backgroundColor, borderRadius, boxShadow, divide(gridSize, 2), getMaxHeight);\nexport var SpinnerContainer = styled.div.withConfig({\n displayName: \"Droplist__SpinnerContainer\",\n componentId: \"sc-1z05y4v-2\"\n})([\"\\n display: flex;\\n justify-content: center;\\n min-width: \", \"px;\\n padding: \", \"px;\\n\"], multiply(gridSize, 20), multiply(gridSize, 2.5));\nexport var Trigger = styled.div.withConfig({\n displayName: \"Droplist__Trigger\",\n componentId: \"sc-1z05y4v-3\"\n})([\"\\n display: inline-flex;\\n transition-duration: 0.2s;\\n transition: box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);\\n\\n \", \";\\n\"], function (props) {\n return props.fit && \"\\n box-sizing: border-box;\\n display: block;\\n \";\n});","import styled from 'styled-components';\nimport { DN300, N300 } from '@atlaskit/theme/colors';\nimport { themed } from '@atlaskit/theme/components';\nimport { gridSize } from '@atlaskit/theme/constants';\nimport { multiply } from '@atlaskit/theme/math';\nexport default styled.div.withConfig({\n displayName: \"Group\",\n componentId: \"sc-1q26u8b-0\"\n})([\"\\n box-sizing: border-box;\\n display: block;\\n margin-top: \", \"px;\\n\\n &:first-child {\\n margin-top: 0;\\n }\\n\"], gridSize);\nexport var Heading = styled.div.withConfig({\n displayName: \"Group__Heading\",\n componentId: \"sc-1q26u8b-1\"\n})([\"\\n align-items: baseline;\\n color: \", \";\\n display: flex;\\n flex: 1 1 auto;\\n font-weight: normal;\\n font-size: 14px;\\n line-height: 1;\\n margin: 0;\\n padding: \", \"px \", \"px;\\n\"], themed({\n light: N300,\n dark: DN300\n}), gridSize, multiply(gridSize, 1.5));\nexport var HeadingAfter = styled.div.withConfig({\n displayName: \"Group__HeadingAfter\",\n componentId: \"sc-1q26u8b-2\"\n})([\"\\n flex: 0 0 auto;\\n\"]);\nexport var HeadingText = styled.div.withConfig({\n displayName: \"Group__HeadingText\",\n componentId: \"sc-1q26u8b-3\"\n})([\"\\n flex: 1 1 auto;\\n font-size: 12px;\\n text-transform: uppercase;\\n\"]);","import styled, { css } from 'styled-components';\nimport * as colors from '@atlaskit/theme/colors';\nimport { themed } from '@atlaskit/theme/components';\nimport { fontSize, gridSize } from '@atlaskit/theme/constants';\nimport { divide, multiply } from '@atlaskit/theme/math';\nvar activeBackgroundColor = themed({\n light: colors.B75,\n dark: colors.DN30\n});\nvar hoverBackgroundColor = themed({\n light: colors.N20,\n dark: colors.DN60\n});\nvar selectedBackgroundColor = themed({\n light: colors.N0,\n dark: colors.DN30\n});\nvar activePrimaryTextColor = themed({\n light: colors.N800,\n dark: colors.DN300\n});\nvar defaultPrimaryTextColor = themed({\n light: colors.N800,\n dark: colors.DN600\n});\nvar disabledPrimaryTextColor = themed({\n light: colors.N70,\n dark: colors.DN70\n});\nvar primaryPrimaryTextColor = themed({\n light: colors.B400,\n dark: colors.B400\n});\nvar selectedPrimaryTextColor = themed({\n light: colors.N800,\n dark: colors.N800\n});\nvar focusedStyles = css([\"\\n box-shadow: 0 0 0 2px \", \"\\n inset;\\n outline: none;\\n outline-offset: 0;\\n position: relative; /* prevents bgcolor of a hovered element from obfuscating focus ring of a focused sibling element */\\n\"], themed({\n light: colors.B100,\n dark: colors.B75\n}));\nvar activeStyles = css([\"\\n &,\\n &:hover {\\n background-color: \", \";\\n color: \", \";\\n }\\n\"], selectedBackgroundColor, selectedPrimaryTextColor);\nvar primaryStyles = css([\"\\n color: \", \";\\n\"], primaryPrimaryTextColor);\n\nvar sharedStyles = function sharedStyles(props) {\n return css([\"\\n align-items: center;\\n box-sizing: border-box;\\n color: \", \";\\n cursor: \", \";\\n display: \", \";\\n flex-wrap: nowrap;\\n font-size: \", \"px;\\n font-weight: normal;\\n padding: 0 \", \"px;\\n text-decoration: none;\\n\\n &:hover {\\n background-color: \", \";\\n color: \", \";\\n text-decoration: none;\\n\\n \", \";\\n }\\n &:active {\\n background-color: \", \";\\n color: \", \";\\n\\n \", \";\\n }\\n &:focus {\\n \", \";\\n }\\n\\n \", \" \", \" \", \";\\n\"], props.isDisabled ? disabledPrimaryTextColor : defaultPrimaryTextColor, props.isDisabled ? 'not-allowed' : 'pointer', props.isHidden ? 'none' : 'flex', fontSize, multiply(gridSize, 1.5), !props.isDisabled && hoverBackgroundColor, props.isDisabled ? disabledPrimaryTextColor : defaultPrimaryTextColor, props.isPrimary && primaryStyles, !props.isDisabled && activeBackgroundColor, !props.isDisabled && activePrimaryTextColor, props.isPrimary && primaryStyles, focusedStyles, props.isFocused && focusedStyles, props.isActive && activeStyles, props.isPrimary && primaryStyles);\n};\n\nexport var Anchor = styled.a.withConfig({\n displayName: \"Item__Anchor\",\n componentId: \"aiqnor-0\"\n})([\"\\n \", \";\\n\"], function (props) {\n return sharedStyles(props);\n});\nexport var Span = styled.span.withConfig({\n displayName: \"Item__Span\",\n componentId: \"aiqnor-1\"\n})([\"\\n \", \";\\n\"], function (props) {\n return sharedStyles(props);\n}); // Checkbox/Radio wrapper -- sits left of the children\n\nexport var InputWrapper = styled.span.withConfig({\n displayName: \"Item__InputWrapper\",\n componentId: \"aiqnor-2\"\n})([\"\\n display: flex;\\n margin: 0 2px;\\n\"]); // Elements injected before/after the children\n\nexport var Before = styled.span.withConfig({\n displayName: \"Item__Before\",\n componentId: \"aiqnor-3\"\n})([\"\\n display: flex;\\n\"]);\nexport var After = styled.span.withConfig({\n displayName: \"Item__After\",\n componentId: \"aiqnor-4\"\n})([\"\\n align-items: center;\\n display: flex;\\n\"]); // Alignment and layout for the children\n\nexport var ContentWrapper = styled.span.withConfig({\n displayName: \"Item__ContentWrapper\",\n componentId: \"aiqnor-5\"\n})([\"\\n display: flex;\\n flex-direction: column;\\n margin: 0 \", \"px;\\n padding: \", \"px 0;\\n overflow: hidden;\\n\\n &:first-child {\\n margin: 0;\\n }\\n\"], gridSize, gridSize);\nexport var Content = styled.span.withConfig({\n displayName: \"Item__Content\",\n componentId: \"aiqnor-6\"\n})([\"\\n flex: 1 1 auto;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n \", \";\\n\"], function (props) {\n return props.allowMultiline && css([\"\\n white-space: normal;\\n \"]);\n}); // Description is a block element below the children, like a subtitle\n\nexport var Description = styled.span.withConfig({\n displayName: \"Item__Description\",\n componentId: \"aiqnor-7\"\n})([\"\\n color: \", \";\\n flex: 1 1 auto;\\n font-size: 12px;\\n line-height: 16 / 12;\\n margin-top: \", \"px;\\n\"], colors.subtleText, divide(gridSize, 2)); // NOTE: Exposed as a named export for this package\n\nexport var SecondaryText = styled.span.withConfig({\n displayName: \"Item__SecondaryText\",\n componentId: \"aiqnor-8\"\n})([\"\\n color: \", \";\\n\"], colors.subtleText);","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport { itemThemeNamespace } from '@atlaskit/item';\nimport * as colors from '@atlaskit/theme/colors';\nimport { themed } from '@atlaskit/theme/components';\nimport { gridSize } from '@atlaskit/theme/constants';\nimport { multiply } from '@atlaskit/theme/math';\nvar dropdownPadding = {\n bottom: gridSize,\n left: multiply(gridSize, 1.5),\n right: multiply(gridSize, 1.5),\n top: gridSize\n};\nvar droplistItemTheme = {\n padding: {\n default: dropdownPadding,\n compact: dropdownPadding\n },\n borderRadius: function borderRadius() {\n return 0;\n },\n default: {\n background: themed({\n light: colors.N0,\n dark: colors.DN50\n }),\n text: themed({\n light: colors.N800,\n dark: colors.DN600\n }),\n secondaryText: themed({\n light: colors.N200,\n dark: colors.DN300\n })\n },\n hover: {\n background: themed({\n light: colors.N20,\n dark: colors.DN70\n }),\n text: themed({\n light: colors.N800,\n dark: colors.DN600\n }),\n secondaryText: themed({\n light: colors.N200,\n dark: colors.DN300\n })\n },\n active: {\n background: themed({\n light: colors.B75,\n dark: colors.B75\n }),\n text: themed({\n light: colors.N800,\n dark: colors.B400\n }),\n secondaryText: themed({\n light: colors.N200,\n dark: colors.DN300\n })\n },\n selected: {\n background: 'transparent',\n text: themed({\n light: colors.N800,\n dark: colors.DN600\n }),\n secondaryText: themed({\n light: colors.N200,\n dark: colors.DN300\n })\n },\n disabled: {\n background: 'transparent',\n text: themed({\n light: colors.N70,\n dark: colors.DN80\n }),\n secondaryText: themed({\n light: colors.N50,\n dark: colors.DN70\n })\n },\n focus: {\n outline: themed({\n light: colors.B100,\n dark: colors.B75\n })\n }\n};\nexport default _defineProperty({}, itemThemeNamespace, droplistItemTheme);","import * as colors from '@atlaskit/theme/colors';\nexport function getInputBackground(_ref) {\n var isChecked = _ref.isChecked,\n isDisabled = _ref.isDisabled,\n isHovered = _ref.isHovered,\n isPressed = _ref.isPressed;\n var background = colors.N40;\n if (isHovered) background = colors.N50;\n if (isPressed) background = colors.B200;\n if (isChecked) background = colors.B400;\n if (isDisabled) background = colors.N20;\n if (isChecked && isDisabled) background = colors.N600;\n return background;\n}\nexport function getInputFill(appearanceProps) {\n return appearanceProps.isChecked ? colors.N0 : 'transparent';\n}","import { __extends, __read, __spread } from \"tslib\";\nimport React, { Children, Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { AnalyticsReactContext } from './AnalyticsReactContext';\nvar ContextTypes = {\n getAtlaskitAnalyticsContext: PropTypes.func,\n getAtlaskitAnalyticsEventHandlers: PropTypes.func,\n};\nvar AnalyticsContext = /** @class */ (function (_super) {\n __extends(AnalyticsContext, _super);\n function AnalyticsContext(props) {\n var _this = _super.call(this, props) || this;\n _this.getChildContext = function () { return ({\n getAtlaskitAnalyticsContext: _this.getAnalyticsContext,\n }); };\n _this.getAnalyticsContext = function () {\n var data = _this.props.data;\n var getAtlaskitAnalyticsContext = _this.context.getAtlaskitAnalyticsContext;\n var ancestorData = (typeof getAtlaskitAnalyticsContext === 'function' &&\n getAtlaskitAnalyticsContext()) ||\n [];\n return __spread(ancestorData, [data]);\n };\n _this.getAnalyticsEventHandlers = function () {\n var getAtlaskitAnalyticsEventHandlers = _this.context.getAtlaskitAnalyticsEventHandlers;\n var ancestorHandlers = (typeof getAtlaskitAnalyticsEventHandlers === 'function' &&\n getAtlaskitAnalyticsEventHandlers()) ||\n [];\n return ancestorHandlers;\n };\n _this.state = {\n getAtlaskitAnalyticsContext: _this.getAnalyticsContext,\n getAtlaskitAnalyticsEventHandlers: _this.getAnalyticsEventHandlers,\n };\n return _this;\n }\n AnalyticsContext.prototype.render = function () {\n var children = this.props.children;\n return (React.createElement(AnalyticsReactContext.Provider, { value: this.state }, Children.only(children)));\n };\n AnalyticsContext.contextTypes = ContextTypes;\n AnalyticsContext.childContextTypes = ContextTypes;\n return AnalyticsContext;\n}(Component));\nexport default AnalyticsContext;\n//# sourceMappingURL=AnalyticsContext.js.map","import { __assign, __extends, __read, __spread } from \"tslib\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport UIAnalyticsEvent from './UIAnalyticsEvent';\n/**\n * This component is used to grab the analytics functions off context.\n * It uses legacy context, but provides an API similar to 16.3 context.\n * This makes it easier to use with the forward ref API.\n */\nvar AnalyticsContextConsumer = /** @class */ (function (_super) {\n __extends(AnalyticsContextConsumer, _super);\n function AnalyticsContextConsumer(props) {\n var _this = _super.call(this, props) || this;\n /**\n * Store references to the original and patched event props so we can\n * determine when to update the patched props\n */\n _this.originalEventProps = {};\n _this.patchedEventProps = {};\n // Update patched event props only if the original props have changed\n _this.updatePatchedEventProps = function (props) {\n var changedPropCallbacks = Object.keys(_this.props.createEventMap).filter(function (p) { return _this.originalEventProps[p] !== props[p]; });\n if (changedPropCallbacks.length > 0) {\n _this.patchedEventProps = __assign(__assign({}, _this.patchedEventProps), _this.mapCreateEventsToProps(changedPropCallbacks, props));\n changedPropCallbacks.forEach(function (p) {\n _this.originalEventProps[p] = props[p];\n });\n }\n return _this.patchedEventProps;\n };\n _this.mapCreateEventsToProps = function (changedPropNames, props) {\n return changedPropNames.reduce(function (modified, propCallbackName) {\n var _a;\n var eventCreator = _this.props.createEventMap[propCallbackName];\n var providedCallback = props[propCallbackName];\n if (!['object', 'function'].includes(typeof eventCreator)) {\n return modified;\n }\n var modifiedCallback = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var analyticsEvent = typeof eventCreator === 'function'\n ? eventCreator(_this.createAnalyticsEvent, props)\n : _this.createAnalyticsEvent(eventCreator);\n if (providedCallback) {\n providedCallback.apply(void 0, __spread(args, [analyticsEvent]));\n }\n };\n return __assign(__assign({}, modified), (_a = {}, _a[propCallbackName] = modifiedCallback, _a));\n }, {});\n };\n _this.createAnalyticsEvent = function (payload) {\n var _a = _this.context, getAtlaskitAnalyticsEventHandlers = _a.getAtlaskitAnalyticsEventHandlers, getAtlaskitAnalyticsContext = _a.getAtlaskitAnalyticsContext;\n return new UIAnalyticsEvent({\n context: (typeof getAtlaskitAnalyticsContext === 'function' &&\n getAtlaskitAnalyticsContext()) ||\n [],\n handlers: (typeof getAtlaskitAnalyticsEventHandlers === 'function' &&\n getAtlaskitAnalyticsEventHandlers()) ||\n [],\n payload: payload,\n });\n };\n Object.keys(_this.props.createEventMap).forEach(function (p) {\n _this.originalEventProps[p] = props.wrappedComponentProps[p];\n });\n _this.patchedEventProps = _this.mapCreateEventsToProps(Object.keys(_this.props.createEventMap), props.wrappedComponentProps);\n return _this;\n }\n AnalyticsContextConsumer.prototype.render = function () {\n var patchedEventProps = this.updatePatchedEventProps(this.props.wrappedComponentProps);\n return this.props.children({\n createAnalyticsEvent: this.createAnalyticsEvent,\n patchedEventProps: patchedEventProps,\n });\n };\n AnalyticsContextConsumer.contextTypes = {\n getAtlaskitAnalyticsEventHandlers: PropTypes.func,\n getAtlaskitAnalyticsContext: PropTypes.func,\n };\n AnalyticsContextConsumer.defaultProps = {\n createEventMap: {},\n };\n return AnalyticsContextConsumer;\n}(React.Component));\nexport default AnalyticsContextConsumer;\n//# sourceMappingURL=AnalyticsContextConsumer.js.map","import { __assign } from \"tslib\";\nvar AnalyticsEvent = /** @class */ (function () {\n function AnalyticsEvent(props) {\n var _this = this;\n this.clone = function () {\n // We stringify and parse here to get a hacky \"deep clone\" of the object.\n // This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,\n // but none of those need to be represented in our payload, so we consider this fine\n var payload = JSON.parse(JSON.stringify(_this.payload));\n return new AnalyticsEvent({ payload: payload });\n };\n this.payload = props.payload;\n }\n AnalyticsEvent.prototype.update = function (updater) {\n if (typeof updater === 'function') {\n this.payload = updater(this.payload);\n }\n if (typeof updater === 'object') {\n this.payload = __assign(__assign({}, this.payload), updater);\n }\n return this;\n };\n return AnalyticsEvent;\n}());\nexport default AnalyticsEvent;\n//# sourceMappingURL=AnalyticsEvent.js.map","import { __extends, __read, __spread } from \"tslib\";\nimport AnalyticsEvent from './AnalyticsEvent';\nvar UIAnalyticsEvent = /** @class */ (function (_super) {\n __extends(UIAnalyticsEvent, _super);\n function UIAnalyticsEvent(props) {\n var _this = _super.call(this, props) || this;\n _this.clone = function () {\n if (_this.hasFired) {\n // eslint-disable-next-line no-console\n console.warn(\"Cannot clone an event after it's been fired.\");\n return null;\n }\n var context = __spread(_this.context);\n var handlers = __spread(_this.handlers);\n /**\n * A hacky \"deep clone\" of the object. This is limited in that it wont\n * support functions, regexs, Maps, Sets, etc, but none of those need to\n * be represented in our payload.\n */\n var payload = JSON.parse(JSON.stringify(_this.payload));\n return new UIAnalyticsEvent({ context: context, handlers: handlers, payload: payload });\n };\n _this.fire = function (channel) {\n if (_this.hasFired) {\n // eslint-disable-next-line no-console\n console.warn('Cannot fire an event twice.');\n return;\n }\n _this.handlers.forEach(function (handler) { return handler(_this, channel); });\n _this.hasFired = true;\n };\n _this.context = props.context || [];\n _this.handlers = props.handlers || [];\n _this.hasFired = false;\n return _this;\n }\n UIAnalyticsEvent.prototype.update = function (updater) {\n if (this.hasFired) {\n // eslint-disable-next-line no-console\n console.warn(\"Cannot update an event after it's been fired.\");\n return this;\n }\n return _super.prototype.update.call(this, updater);\n };\n return UIAnalyticsEvent;\n}(AnalyticsEvent));\nexport default UIAnalyticsEvent;\n//# sourceMappingURL=UIAnalyticsEvent.js.map","export default (function (channel) { return function (payload) { return function (createAnalyticsEvent) {\n var consumerEvent = createAnalyticsEvent(payload);\n var clonedEvent = consumerEvent.clone();\n if (clonedEvent) {\n clonedEvent.fire(channel);\n }\n return consumerEvent;\n}; }; });\n//# sourceMappingURL=createAndFireEvent.js.map","import { __assign, __rest } from \"tslib\";\nimport React from 'react';\nimport AnalyticsContext from './AnalyticsContext';\nvar withAnalyticsContext = function (defaultData) { return function (WrappedComponent) {\n var WithAnalyticsContext = React.forwardRef(function (props, ref) {\n var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = __rest(props, [\"analyticsContext\"]);\n var analyticsData = __assign(__assign({}, defaultData), analyticsContext);\n return (React.createElement(AnalyticsContext, { data: analyticsData },\n React.createElement(WrappedComponent, __assign({}, rest, { ref: ref }))));\n });\n // @ts-ignore\n WithAnalyticsContext.displayName = \"WithAnalyticsContext(\" + (WrappedComponent.displayName ||\n WrappedComponent.name) + \")\";\n return WithAnalyticsContext;\n}; };\nexport default withAnalyticsContext;\n//# sourceMappingURL=withAnalyticsContext.js.map","import { __assign } from \"tslib\";\nimport React from 'react';\nimport AnalyticsContextConsumer from './AnalyticsContextConsumer';\nvar withAnalyticsEvents = function (createEventMap) { return function (WrappedComponent) {\n var WithAnalyticsEvents = React.forwardRef(function (props, ref) { return (React.createElement(AnalyticsContextConsumer, { createEventMap: createEventMap, wrappedComponentProps: props }, function (_a) {\n var createAnalyticsEvent = _a.createAnalyticsEvent, patchedEventProps = _a.patchedEventProps;\n return (React.createElement(WrappedComponent, __assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, ref: ref })));\n })); });\n // @ts-ignore\n WithAnalyticsEvents.displayName = \"WithAnalyticsEvents(\" + (WrappedComponent.displayName ||\n WrappedComponent.name) + \")\";\n return WithAnalyticsEvents;\n}; };\nexport default withAnalyticsEvents;\n//# sourceMappingURL=withAnalyticsEvents.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar react_1 = tslib_1.__importDefault(require(\"react\"));\nvar styled_components_1 = tslib_1.__importDefault(require(\"styled-components\"));\nvar uuid_1 = tslib_1.__importDefault(require(\"uuid\"));\nvar colors_1 = require(\"@atlaskit/theme/colors\");\nvar constants_1 = require(\"../constants\");\nvar getSize = function (_a) {\n var size = _a.size;\n return size ? \"height: \" + constants_1.sizes[size] + \"; width: \" + constants_1.sizes[size] + \";\" : null;\n};\nexports.IconWrapper = styled_components_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject([\"\\n \", \";\\n color: \", \";\\n display: inline-block;\\n fill: \", \";\\n flex-shrink: 0;\\n line-height: 1;\\n\\n > svg {\\n \", \";\\n max-height: 100%;\\n max-width: 100%;\\n overflow: hidden;\\n pointer-events: none;\\n vertical-align: bottom;\\n }\\n\\n /**\\n * Stop-color doesn't properly apply in chrome when the inherited/current color changes.\\n * We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS\\n * rule) and then override it with currentColor for the color changes to be picked up.\\n */\\n stop {\\n stop-color: currentColor;\\n }\\n\"], [\"\\n \", \";\\n color: \", \";\\n display: inline-block;\\n fill: \", \";\\n flex-shrink: 0;\\n line-height: 1;\\n\\n > svg {\\n \", \";\\n max-height: 100%;\\n max-width: 100%;\\n overflow: hidden;\\n pointer-events: none;\\n vertical-align: bottom;\\n }\\n\\n /**\\n * Stop-color doesn't properly apply in chrome when the inherited/current color changes.\\n * We have to initially set stop-color to inherit (either via DOM attribute or an initial CSS\\n * rule) and then override it with currentColor for the color changes to be picked up.\\n */\\n stop {\\n stop-color: currentColor;\\n }\\n\"])), getSize, function (p) { return p.primaryColor || 'currentColor'; }, function (p) { return p.secondaryColor || colors_1.background; }, getSize);\n/**\n * Icons need unique gradient IDs across instances for different gradient definitions to work\n * correctly.\n * A step in the icon build process replaces linear gradient IDs and their references in paths\n * to a placeholder string so we can replace them with a dynamic ID here.\n * Replacing the original IDs with placeholders in the build process is more robust than not\n * using placeholders as we do not have to rely on regular expressions to find specific element\n * to replace.\n */\nfunction insertDynamicGradientID(svgStr, label) {\n var id = uuid_1.default();\n var replacedSvgStr = svgStr\n .replace(/id=\"([^\"]+)-idPlaceholder\"/g, \"id=$1-\" + id)\n .replace(/fill=\"url\\(#([^\"]+)-idPlaceholder\\)\"/g, \"fill=\\\"url(#$1-\" + id + \")\\\"\");\n return replacedSvgStr;\n}\nvar Icon = function (props) {\n var Glyph = props.glyph, dangerouslySetGlyph = props.dangerouslySetGlyph, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, size = props.size, testId = props.testId, label = props.label;\n var glyphProps = dangerouslySetGlyph\n ? {\n dangerouslySetInnerHTML: {\n __html: insertDynamicGradientID(dangerouslySetGlyph, label),\n },\n }\n : { children: Glyph ? react_1.default.createElement(Glyph, { role: \"presentation\" }) : null };\n return (react_1.default.createElement(exports.IconWrapper, tslib_1.__assign({ primaryColor: primaryColor, secondaryColor: secondaryColor, size: size, \"data-testid\": testId, role: label ? 'img' : 'presentation', \"aria-label\": label ? label : undefined }, glyphProps)));\n};\nexports.default = Icon;\nvar templateObject_1;\n//# sourceMappingURL=Icon.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sizes = {\n small: '16px',\n medium: '24px',\n large: '32px',\n xlarge: '48px',\n};\nexports.sizeMap = {\n small: 'small',\n medium: 'medium',\n large: 'large',\n xlarge: 'xlarge',\n};\n//# sourceMappingURL=constants.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Icon = _interopRequireDefault(require(\"../cjs/components/Icon\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar CheckboxIcon = function CheckboxIcon(props) {\n return _react.default.createElement(_Icon.default, _extends({\n dangerouslySetGlyph: \"\"\n }, props));\n};\n\nCheckboxIcon.displayName = 'CheckboxIcon';\nvar _default = CheckboxIcon;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Icon = _interopRequireDefault(require(\"../cjs/components/Icon\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar RadioIcon = function RadioIcon(props) {\n return _react.default.createElement(_Icon.default, _extends({\n dangerouslySetGlyph: \"\"\n }, props));\n};\n\nRadioIcon.displayName = 'RadioIcon';\nvar _default = RadioIcon;\nexports.default = _default;","import { gridSize as akGridSize, borderRadius } from '@atlaskit/theme/constants';\nimport * as colors from '@atlaskit/theme/colors';\nexport var themeNamespace = '@atlaskit-shared-theme/item'; // Used for Group titles and Item descriptions\n\nexport var compactSmallFontSize = 10;\nexport var compactLineHeight = 1.2;\nexport var gridSize = akGridSize();\nexport var defaultTheme = {\n afterItemSpacing: {\n compact: akGridSize(),\n default: akGridSize()\n },\n beforeItemSpacing: {\n compact: akGridSize(),\n default: akGridSize()\n },\n borderRadius: borderRadius(),\n focus: {\n outline: colors.B100\n },\n height: {\n compact: 0,\n default: 0\n },\n width: {\n compact: 'auto',\n default: 'auto'\n },\n padding: {\n default: {\n bottom: akGridSize() / 2,\n left: akGridSize() / 2,\n right: akGridSize() / 2,\n top: akGridSize() / 2\n },\n compact: {\n bottom: akGridSize(),\n left: akGridSize(),\n right: akGridSize(),\n top: akGridSize()\n }\n },\n default: {\n background: colors.background,\n text: colors.text,\n secondaryText: colors.N200\n },\n selected: {\n background: colors.backgroundActive,\n text: colors.N500,\n secondaryText: colors.N200\n },\n active: {\n background: colors.backgroundActive,\n text: colors.textActive,\n secondaryText: colors.N200\n },\n hover: {\n background: colors.backgroundHover,\n text: colors.textHover,\n secondaryText: colors.N200\n },\n disabled: {\n background: colors.N0,\n text: colors.N200,\n secondaryText: colors.N200\n },\n // same as hover in this case\n dragging: {\n background: colors.N20,\n text: colors.N800,\n secondaryText: colors.N200\n }\n};\n\nvar isValidCssValue = function isValidCssValue(value) {\n return value !== undefined && value !== null && value !== '';\n}; // Returns the theme that contains the requested theme key(s), preferring the user-supplied\n// theme if it is provided.\n\n\nexport var themeWithKeys = function themeWithKeys(maybeTheme, key, parentKey) {\n if (parentKey) {\n return maybeTheme && maybeTheme[parentKey] && isValidCssValue(maybeTheme[parentKey][key]) ? maybeTheme : defaultTheme;\n }\n\n return maybeTheme && isValidCssValue(maybeTheme[key]) ? maybeTheme : defaultTheme;\n}; // Returns the theme value for the requested key(s), falling back to the default theme if the\n// user-supplied theme doesn't exist or doesn't contain the requested key(s)\n\nexport var getThemeStyle = function getThemeStyle(maybeTheme, key, parentKey) {\n var theme = themeWithKeys(maybeTheme, key, parentKey);\n return parentKey ? theme[parentKey][key] : theme[key];\n};","export const presetSizes = {\n xsmall: 8,\n small: 16,\n medium: 24,\n large: 48,\n xlarge: 96,\n};\n//# sourceMappingURL=constants.js.map","/** @jsx jsx */\nimport React from 'react';\nimport { css, jsx, keyframes } from '@emotion/core';\nimport { DN500, DN900, N0, N500 } from '@atlaskit/theme/colors';\nimport GlobalTheme from '@atlaskit/theme/components';\nimport { presetSizes } from './constants';\nconst rotate = keyframes `\n to { transform: rotate(360deg); }\n`;\n// There are three parts to the load in animation:\n// 1. Fade in\n// 2. Accelerated spin\n// 3. Stretch the spinner line\nconst loadIn = keyframes `\n from {\n transform: rotate(50deg);\n opacity: 0;\n stroke-dashoffset: 60;\n }\n to {\n transform: rotate(230deg);\n opacity: 1;\n stroke-dashoffset: 50;\n }\n`;\nfunction getStrokeColor({ mode, appearance, }) {\n if (mode === 'light') {\n return appearance === 'inherit' ? N500 : N0;\n }\n // Dark mode: colours provided by Jake Miller\n return appearance === 'inherit' ? DN900 : DN500;\n}\nexport default React.memo(React.forwardRef(function Spinner({ testId, appearance = 'inherit', delay = 0, size: providedSize = 'medium', }, ref) {\n const size = typeof providedSize === 'number'\n ? providedSize\n : presetSizes[providedSize];\n return (jsx(GlobalTheme.Consumer, null, (tokens) => {\n const strokeColor = getStrokeColor({\n mode: tokens.mode,\n appearance,\n });\n // The Spinner animation uses a combination of two\n // css animations on two separate elements.\n return (jsx(\"svg\", { focusable: \"false\", height: size, width: size, viewBox: \"0 0 16 16\", xmlns: \"http://www.w3.org/2000/svg\", \"data-testid\": testId, ref: ref, css: css `\n /* align better inline with text */\n vertical-align: middle;\n /* We are going to animate this in */\n opacity: 0;\n\n animation: ${loadIn} 1s ease-in-out;\n /* When the animation completes, stay at the last frame of the animation */\n animation-fill-mode: forwards;\n animation-delay: ${delay}ms;\n ` },\n jsx(\"circle\", { cx: \"8\", cy: \"8\", r: \"7\", css: css `\n fill: none;\n stroke: ${strokeColor};\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-dasharray: 60;\n stroke-dashoffset: inherit;\n transform-origin: center;\n animation: ${rotate} 0.86s infinite;\n animation-delay: ${delay}ms;\n animation-timing-function: cubic-bezier(0.4, 0.15, 0.6, 0.85);\n ` })));\n }));\n}));\n//# sourceMappingURL=spinner.js.map","import themed from './utils/themed';\n// Reds\nexport const R50 = '#FFEBE6';\nexport const R75 = '#FFBDAD';\nexport const R100 = '#FF8F73';\nexport const R200 = '#FF7452';\nexport const R300 = '#FF5630';\nexport const R400 = '#DE350B';\nexport const R500 = '#BF2600';\n// Yellows\nexport const Y50 = '#FFFAE6';\nexport const Y75 = '#FFF0B3';\nexport const Y100 = '#FFE380';\nexport const Y200 = '#FFC400';\nexport const Y300 = '#FFAB00';\nexport const Y400 = '#FF991F';\nexport const Y500 = '#FF8B00';\n// Greens\nexport const G50 = '#E3FCEF';\nexport const G75 = '#ABF5D1';\nexport const G100 = '#79F2C0';\nexport const G200 = '#57D9A3';\nexport const G300 = '#36B37E';\nexport const G400 = '#00875A';\nexport const G500 = '#006644';\n// Blues\nexport const B50 = '#DEEBFF';\nexport const B75 = '#B3D4FF';\nexport const B100 = '#4C9AFF';\nexport const B200 = '#2684FF';\nexport const B300 = '#0065FF';\nexport const B400 = '#0052CC';\nexport const B500 = '#0747A6';\n// Purples\nexport const P50 = '#EAE6FF';\nexport const P75 = '#C0B6F2';\nexport const P100 = '#998DD9';\nexport const P200 = '#8777D9';\nexport const P300 = '#6554C0';\nexport const P400 = '#5243AA';\nexport const P500 = '#403294';\n// Teals\nexport const T50 = '#E6FCFF';\nexport const T75 = '#B3F5FF';\nexport const T100 = '#79E2F2';\nexport const T200 = '#00C7E6';\nexport const T300 = '#00B8D9';\nexport const T400 = '#00A3BF';\nexport const T500 = '#008DA6';\n// Neutrals\nexport const N0 = '#FFFFFF';\nexport const N10 = '#FAFBFC';\nexport const N20 = '#F4F5F7';\nexport const N30 = '#EBECF0';\nexport const N40 = '#DFE1E6';\nexport const N50 = '#C1C7D0';\nexport const N60 = '#B3BAC5';\nexport const N70 = '#A5ADBA';\nexport const N80 = '#97A0AF';\nexport const N90 = '#8993A4';\nexport const N100 = '#7A869A';\nexport const N200 = '#6B778C';\nexport const N300 = '#5E6C84';\nexport const N400 = '#505F79';\nexport const N500 = '#42526E';\nexport const N600 = '#344563';\nexport const N700 = '#253858';\nexport const N800 = '#172B4D';\n// ATTENTION: update the tints if you update this\nexport const N900 = '#091E42';\n// Each tint is made of N900 and an alpha channel\nexport const N10A = 'rgba(9, 30, 66, 0.02)';\nexport const N20A = 'rgba(9, 30, 66, 0.04)';\nexport const N30A = 'rgba(9, 30, 66, 0.08)';\nexport const N40A = 'rgba(9, 30, 66, 0.13)';\nexport const N50A = 'rgba(9, 30, 66, 0.25)';\nexport const N60A = 'rgba(9, 30, 66, 0.31)';\nexport const N70A = 'rgba(9, 30, 66, 0.36)';\nexport const N80A = 'rgba(9, 30, 66, 0.42)';\nexport const N90A = 'rgba(9, 30, 66, 0.48)';\nexport const N100A = 'rgba(9, 30, 66, 0.54)';\nexport const N200A = 'rgba(9, 30, 66, 0.60)';\nexport const N300A = 'rgba(9, 30, 66, 0.66)';\nexport const N400A = 'rgba(9, 30, 66, 0.71)';\nexport const N500A = 'rgba(9, 30, 66, 0.77)';\nexport const N600A = 'rgba(9, 30, 66, 0.82)';\nexport const N700A = 'rgba(9, 30, 66, 0.89)';\nexport const N800A = 'rgba(9, 30, 66, 0.95)';\n// Dark Mode Neutrals\nexport const DN900 = '#E6EDFA';\nexport const DN800 = '#DCE5F5';\nexport const DN700 = '#CED9EB';\nexport const DN600 = '#B8C7E0';\nexport const DN500 = '#ABBBD6';\nexport const DN400 = '#9FB0CC';\nexport const DN300 = '#8C9CB8';\nexport const DN200 = '#7988A3';\nexport const DN100 = '#67758F';\nexport const DN90 = '#56637A';\nexport const DN80 = '#455166';\nexport const DN70 = '#3B475C';\nexport const DN60 = '#313D52';\nexport const DN50 = '#283447';\nexport const DN40 = '#202B3D';\nexport const DN30 = '#1B2638';\nexport const DN20 = '#121A29';\nexport const DN10 = '#0E1624';\n// ATTENTION: update the tints if you update this\nexport const DN0 = '#0D1424';\n// Each dark tint is made of DN0 and an alpha channel\nexport const DN800A = 'rgba(13, 20, 36, 0.06)';\nexport const DN700A = 'rgba(13, 20, 36, 0.14)';\nexport const DN600A = 'rgba(13, 20, 36, 0.18)';\nexport const DN500A = 'rgba(13, 20, 36, 0.29)';\nexport const DN400A = 'rgba(13, 20, 36, 0.36)';\nexport const DN300A = 'rgba(13, 20, 36, 0.40)';\nexport const DN200A = 'rgba(13, 20, 36, 0.47)';\nexport const DN100A = 'rgba(13, 20, 36, 0.53)';\nexport const DN90A = 'rgba(13, 20, 36, 0.63)';\nexport const DN80A = 'rgba(13, 20, 36, 0.73)';\nexport const DN70A = 'rgba(13, 20, 36, 0.78)';\nexport const DN60A = 'rgba(13, 20, 36, 0.81)';\nexport const DN50A = 'rgba(13, 20, 36, 0.85)';\nexport const DN40A = 'rgba(13, 20, 36, 0.89)';\nexport const DN30A = 'rgba(13, 20, 36, 0.92)';\nexport const DN20A = 'rgba(13, 20, 36, 0.95)';\nexport const DN10A = 'rgba(13, 20, 36, 0.97)';\n// Themed colors\nexport const background = themed({ light: N0, dark: DN30 });\nexport const backgroundActive = themed({ light: B50, dark: B75 });\nexport const backgroundHover = themed({ light: N30, dark: DN70 });\nexport const backgroundOnLayer = themed({ light: N0, dark: DN50 });\nexport const text = themed({ light: N900, dark: DN600 });\nexport const textHover = themed({ light: N800, dark: DN600 });\nexport const textActive = themed({ light: B400, dark: B400 });\nexport const subtleText = themed({ light: N200, dark: DN300 });\nexport const placeholderText = themed({ light: N100, dark: DN200 });\nexport const heading = themed({ light: N800, dark: DN600 });\nexport const subtleHeading = themed({ light: N200, dark: DN300 });\nexport const codeBlock = themed({ light: N20, dark: DN50 });\nexport const link = themed({ light: B400, dark: B100 });\nexport const linkHover = themed({ light: B300, dark: B200 });\nexport const linkActive = themed({ light: B500, dark: B100 });\nexport const linkOutline = themed({ light: B100, dark: B200 });\nexport const primary = themed({ light: B400, dark: B100 });\nexport const blue = themed({ light: B400, dark: B100 });\nexport const teal = themed({ light: T300, dark: T200 });\nexport const purple = themed({ light: P300, dark: P100 });\nexport const red = themed({ light: R300, dark: R300 });\nexport const yellow = themed({ light: Y300, dark: Y300 });\nexport const green = themed({ light: G300, dark: G300 });\nexport const skeleton = () => N20A;\n//# sourceMappingURL=colors.js.map","import { createTheme } from '../utils/createTheme';\n// Create default global light theme\nexport default createTheme(() => ({\n mode: 'light',\n}));\n//# sourceMappingURL=Theme.js.map","import { css } from 'styled-components';\nimport { B100, N30A, skeleton as skeletonColor } from './colors';\nexport const FLATTENED = '__FLATTENED__';\nexport const CHANNEL = '__ATLASKIT_THEME__';\nexport const DEFAULT_THEME_MODE = 'light';\nexport const THEME_MODES = ['light', 'dark'];\n/*\n These theme values are expressed as functions so that if we decide to make\n them dependent on props in the future, it wouldn't require a significant\n refactor everywhere they are being used.\n*/\nexport const borderRadius = () => 3;\nexport const gridSize = () => 8;\nexport const fontSize = () => 14;\nexport const fontSizeSmall = () => 11;\nexport const fontFamily = () => `-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif`;\nexport const codeFontFamily = () => `'SFMono-Medium', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace`;\nexport const focusRing = (color = B100, outlineWidth = gridSize() / 4) => `\n &:focus {\n outline: none;\n box-shadow: 0px 0px 0px ${outlineWidth}px ${color};\n }\n`;\nexport const noFocusRing = () => `\n box-shadow: none;\n`;\nexport const layers = {\n card: () => 100,\n dialog: () => 300,\n navigation: () => 200,\n layer: () => 400,\n blanket: () => 500,\n modal: () => 510,\n flag: () => 600,\n spotlight: () => 700,\n tooltip: () => 800,\n};\nexport const visuallyHidden = () => ({\n border: '0 !important',\n clip: 'rect(1px, 1px, 1px, 1px) !important',\n height: '1px !important',\n overflow: 'hidden !important',\n padding: '0 !important',\n position: 'absolute !important',\n width: '1px !important',\n whiteSpace: 'nowrap !important',\n});\n/**\n * Deprecated Styled Components mixin.\n * Use visuallyHidden instead.\n * @deprecated\n */\nexport const assistive = () => css `\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n height: 1px !important;\n overflow: hidden !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n white-space: nowrap !important;\n`;\nexport const skeletonShimmer = () => ({\n css: {\n backgroundColor: skeletonColor(),\n animationDuration: '1.5s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear',\n animationDirection: 'alternate',\n },\n keyframes: {\n from: {\n backgroundColor: skeletonColor(),\n },\n to: {\n backgroundColor: N30A,\n },\n },\n});\n//# sourceMappingURL=constants.js.map","import React, { createContext, useContext, useCallback, } from 'react';\n/*\ncreateTheme is used to create a set of Providers and Consumers for theming components.\n- Takes a default theme function; this theme function gets a set of props, and returns tokens\n based on those props. An example of this default theme function is one that produces the standard\n appearance of the component\n- Returns two things - a Provider that allow for additional themes to be applied, and a Consumer\n that can get the current theme and fetch it.\n*/\nexport function createTheme(defaultGetTokens) {\n const emptyThemeFn = (getTokens, props) => getTokens(props);\n /* Internally, Theme uses React Context, with internal providers and consumers.\n The React Context passes only a function that gets props, and turns them into tokens. This\n function gets mixed as more Providers with their own themes are added. This mixed function\n is ultimately picked up by Consumers, which implement a context consumer internally to fetch\n the theme. */\n const ThemeContext = createContext(defaultGetTokens);\n // The Theme Consumer takes a function as its child - this function takes tokens, and the\n // return value is generally a set of nodes with the tokens applied appropriately.\n function Consumer(props) {\n const { children, ...themeProps } = props;\n const theme = useContext(ThemeContext);\n const themeFn = theme || emptyThemeFn;\n // @ts-ignore See issue for more info: https://github.com/Microsoft/TypeScript/issues/10727\n // Argument of type 'Pick ReactNode; }, Exclude>' is not assignable to parameter of type 'ThemeProps'.ts(2345)\n const tokens = themeFn(themeProps);\n // We add a fragment to ensure we don't break people upgrading.\n // Previously they may have been able to pass in undefined without things blowing up.\n return React.createElement(React.Fragment, null, children(tokens));\n }\n /* The Theme Provider takes regular nodes as its child, but also takes a *theme function*\n - The theme function takes a set of props, as well as a function (getTokens) that can\n turn props into tokens.\n - The getTokens function isn't called immediately - instead the props are passed\n through a mix of parent theming functions\n Children of this provider will receive this mixed theme\n */\n function Provider(props) {\n const themeFn = useContext(ThemeContext);\n const valueFn = props.value || emptyThemeFn;\n const mixedFn = useCallback((themeProps) => valueFn(themeFn, themeProps), [themeFn, valueFn]);\n return (React.createElement(ThemeContext.Provider, { value: mixedFn }, props.children));\n }\n return { Consumer, Provider };\n}\n//# sourceMappingURL=createTheme.js.map","// If a generic is used here, props can be inferred never and passed up (even with defaults)\nexport function add(fn, addend) {\n return (props) => fn(props) + addend;\n}\nexport function subtract(fn, subtrahend) {\n return (props) => fn(props) - subtrahend;\n}\nexport function multiply(fn, factor) {\n return (props) => fn(props) * factor;\n}\nexport function divide(fn, divisor) {\n return (props) => fn(props) / divisor;\n}\n//# sourceMappingURL=math.js.map","// ideally this would be fetched from ../constants but that causes a\n// circular dep loop. This will be refactored as part of a breaking\n// change in the future.\nconst DEFAULT_THEME_MODE = 'light';\nconst THEME_MODES = ['light', 'dark'];\n// Resolves the different types of theme objects in the current API\nexport default function getTheme(props) {\n if (props && props.theme) {\n // Theme is the global Atlaskit theme\n if ('__ATLASKIT_THEME__' in props.theme) {\n return props.theme.__ATLASKIT_THEME__;\n }\n // User has provided alternative modes\n else if ('mode' in props.theme && THEME_MODES.includes(props.theme.mode)) {\n return props.theme;\n }\n }\n // If format not supported (or no theme provided), return standard theme\n return { mode: DEFAULT_THEME_MODE };\n}\n//# sourceMappingURL=getTheme.js.map","/* eslint-disable prefer-rest-params */\nimport getTheme from './getTheme';\n// Unpack custom variants, and get correct value for the current theme\nfunction themedVariants(variantProp, variants) {\n return (props) => {\n const theme = getTheme(props);\n if (props && props[variantProp] && variants) {\n const modes = variants[props[variantProp]];\n if (modes && modes[theme.mode]) {\n const value = modes[theme.mode];\n if (value)\n return value; // TS believes value can be undefined\n }\n }\n return '';\n };\n}\nexport default function themed(modesOrVariant, variantModes) {\n if (typeof modesOrVariant === 'string') {\n return themedVariants(modesOrVariant, variantModes);\n }\n const modes = modesOrVariant;\n return (props) => {\n // Get theme from the user's props\n const theme = getTheme(props);\n // User isn't required to provide both light and dark values\n if (theme.mode in modes) {\n const value = modes[theme.mode]; // TS believes value can be undefined\n if (value)\n return value;\n }\n return '';\n };\n}\n//# sourceMappingURL=themed.js.map","import _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/* eslint-disable react/prop-types */\nimport React, { Component } from 'react';\nimport styled from 'styled-components';\nimport rafSchedule from 'raf-schd';\nimport Popper from 'popper.js'; // eslint-disable-line import/extensions\n\nimport ScrollBlock from './internal/ScrollBlock';\nimport { getFlipBehavior, positionPropToPopperPosition } from './internal/helpers';\nimport ContentContainer from '../styledContentContainer'; // We create a dummy target when making the menu fixed so that we can force popper.js to use fixed positioning\n// without affecting child layout of the actual target since children of fixed position elements can't use percentage\n// heights/widths.\n\nvar FixedTarget = styled.div.withConfig({\n displayName: \"Layer__FixedTarget\",\n componentId: \"qunuuz-0\"\n})([\"\\n \", \";\\n\"], function (_ref) {\n var fixedOffset = _ref.fixedOffset,\n targetRef = _ref.targetRef;\n\n if (fixedOffset && targetRef) {\n var actualTarget = targetRef.firstChild;\n var rect = actualTarget.getBoundingClientRect();\n return \"\\n position: fixed;\\n top: \".concat(fixedOffset.top, \"px;\\n left: \").concat(fixedOffset.left, \"px;\\n height: \").concat(rect.height, \"px;\\n width: \").concat(rect.width, \"px;\\n z-index: -1;\\n \");\n }\n\n return 'display: none;';\n});\n\nif (process.env.NODE_ENV !== 'production' && !process.env.CI) {\n // eslint-disable-next-line no-console\n console.warn('@atlaskit/layer has been deprecated. It is an internal component and should not be used directly.');\n}\n\nvar Layer =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Layer, _Component);\n\n // working with extract-react-types\n function Layer(props) {\n var _this;\n\n _classCallCheck(this, Layer);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Layer).call(this, props));\n\n _defineProperty(_assertThisInitialized(_this), \"popper\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"targetRef\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"contentRef\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"fixedRef\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"extractStyles\", function (state) {\n if (state) {\n var popperHeight = state.offsets.popper.height;\n var left = Math.round(state.offsets.popper.left); // The offset position is sometimes an object and sometimes just a string...\n\n var cssPosition = _typeof(state.offsets.popper.position) === 'object' ? state.offsets.popper.position.position : state.offsets.popper.position;\n\n var top = _this.fixPositionTopUnderflow(state.offsets.popper.top, cssPosition);\n\n var originalHeight = _this.state.originalHeight || popperHeight;\n\n var maxHeight = _this.calculateMaxHeight(originalHeight, popperHeight, top, cssPosition);\n\n _this.setState({\n // position: fixed or absolute\n cssPosition: cssPosition,\n hasExtractedStyles: true,\n transform: \"translate3d(\".concat(left, \"px, \").concat(top, \"px, 0px)\"),\n // state.flipped is either true or undefined\n flipped: !!state.flipped,\n actualPosition: state.position,\n originalPosition: state.originalPosition,\n originalHeight: originalHeight,\n maxHeight: maxHeight\n });\n }\n });\n\n _this.state = {\n hasExtractedStyles: false,\n position: null,\n transform: null,\n flipped: false,\n actualPosition: null,\n // We set these default offsets to prevent a flash of popper content in the wrong position\n // which can cause incorrect height calculations. Popper will calculate these values\n offsets: {\n popper: {\n left: -9999,\n top: -9999\n }\n },\n originalPosition: null,\n // fix Safari parent width: https://product-fabric.atlassian.net/browse/ED-1784\n cssPosition: 'absolute',\n originalHeight: null,\n maxHeight: null,\n fixedOffset: null\n };\n _this.extractStyles = rafSchedule(_this.extractStyles.bind(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(Layer, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.applyPopper(this.props);\n this.calculateFixedOffset(this.props);\n }\n }, {\n key: \"UNSAFE_componentWillReceiveProps\",\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n this.applyPopper(nextProps);\n this.calculateFixedOffset(nextProps);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this$props = this.props,\n onFlippedChange = _this$props.onFlippedChange,\n onPositioned = _this$props.onPositioned;\n var _this$state = this.state,\n flipped = _this$state.flipped,\n actualPosition = _this$state.actualPosition,\n originalPosition = _this$state.originalPosition,\n hasExtractedStyles = _this$state.hasExtractedStyles;\n\n if (prevState.flipped !== flipped && onFlippedChange) {\n onFlippedChange({\n flipped: flipped,\n actualPosition: actualPosition,\n originalPosition: originalPosition\n });\n } // This flag is set the first time the position is calculated from Popper and applied to the content\n\n\n if (!prevState.hasExtractedStyles && hasExtractedStyles && onPositioned) {\n onPositioned();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.extractStyles.cancel();\n\n if (this.popper) {\n this.popper.destroy();\n }\n }\n /* Calculate the max height of the popper if it's height is greater than the viewport to prevent\n * the bottom of the popper not being viewable.\n * Only works if the popper uses viewport as the boundary and has a fixed position ancestor.\n */\n\n }, {\n key: \"calculateMaxHeight\",\n value: function calculateMaxHeight(originalHeight, currentHeight, positionTop, cssPosition) {\n var DocumentElementClientHeight = 0;\n\n if (document.documentElement) {\n DocumentElementClientHeight = document.documentElement.clientHeight;\n }\n\n if (cssPosition !== 'fixed' || this.props.boundariesElement !== 'viewport') {\n return null;\n }\n\n var viewportHeight = Math.max(DocumentElementClientHeight, window.innerHeight || 0);\n return viewportHeight < originalHeight && currentHeight + positionTop >= viewportHeight - 50 ? // allow some spacing either side of viewport height\n viewportHeight - 12 : null;\n }\n /* Popper may return either a fixed or absolute position which would be applied to the\n * content style. In order to overcome clipping issues for overflow containing blocks when\n * the position is absolute, we create a fixed position wrapper.\n */\n\n }, {\n key: \"calculateFixedOffset\",\n value: function calculateFixedOffset(props) {\n var isAlwaysFixed = props.isAlwaysFixed;\n\n if (isAlwaysFixed && this.targetRef) {\n var actualTarget = this.targetRef.firstChild;\n this.setState({\n fixedOffset: {\n top: actualTarget.getBoundingClientRect().top,\n left: actualTarget.getBoundingClientRect().left\n }\n });\n } else if (!isAlwaysFixed && this.state.fixedOffset !== null) {\n this.setState({\n fixedOffset: null\n });\n }\n }\n /* Clamp fixed position to the window for fixed position poppers that flow off the top of the\n * window.\n * A fixed position popper is a popper who has an ancestor with position: fixed.\n *\n * It is too difficult to fix this for non-fixed position poppers without re-implementing popper's\n * offset functionality or fixing the issue upstream.\n */\n // eslint-disable-next-line class-methods-use-this\n\n }, {\n key: \"fixPositionTopUnderflow\",\n value: function fixPositionTopUnderflow(popperTop, cssPosition) {\n return popperTop >= 0 || cssPosition !== 'fixed' ? Math.round(popperTop) : 0;\n }\n }, {\n key: \"applyPopper\",\n value: function applyPopper(props) {\n if (!this.fixedRef || !this.targetRef || !this.contentRef) {\n return;\n }\n\n if (this.popper) {\n this.popper.destroy();\n } // \"new Popper(...)\" operation is very expensive when called on virtual DOM.\n // This condition reduces the number of calls so we can run our tests faster\n // (time was reduced from 100s to 13s).\n\n\n if (!props.content) {\n return;\n } // we wrap our target in a div so that we can safely get a reference to it, but we pass the\n // actual target to popper\n\n\n var actualTarget = props.isAlwaysFixed ? this.fixedRef : this.targetRef.firstChild;\n var popperOpts = {\n placement: positionPropToPopperPosition(props.position),\n onCreate: this.extractStyles,\n onUpdate: this.extractStyles,\n modifiers: {\n applyStyle: {\n enabled: false\n },\n hide: {\n enabled: false\n },\n offset: {\n enabled: true,\n offset: this.props.offset\n },\n flip: {\n enabled: !!this.props.autoFlip,\n flipVariations: true,\n boundariesElement: this.props.boundariesElement,\n padding: 0 // leave 0 pixels between popper and the boundariesElement\n\n },\n preventOverflow: {\n enabled: !!this.props.autoFlip,\n escapeWithReference: !(this.props.boundariesElement === 'scrollParent')\n }\n },\n positionFixed: props.isAlwaysFixed\n };\n var flipBehavior = getFlipBehavior(props);\n\n if (flipBehavior) {\n popperOpts.modifiers.flip.behavior = flipBehavior;\n }\n\n this.popper = new Popper(actualTarget, this.contentRef, popperOpts);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n zIndex = _this$props2.zIndex,\n lockScroll = _this$props2.lockScroll;\n var _this$state2 = this.state,\n cssPosition = _this$state2.cssPosition,\n transform = _this$state2.transform,\n hasExtractedStyles = _this$state2.hasExtractedStyles,\n maxHeight = _this$state2.maxHeight,\n fixedOffset = _this$state2.fixedOffset;\n var opacity = hasExtractedStyles ? {} : {\n opacity: 0\n };\n return React.createElement(\"div\", null, React.createElement(\"div\", {\n ref: function ref(_ref2) {\n _this2.targetRef = _ref2;\n }\n }, this.props.children), React.createElement(FixedTarget, {\n targetRef: this.targetRef,\n fixedOffset: fixedOffset\n }, React.createElement(\"div\", {\n style: {\n height: '100%',\n width: '100%'\n },\n ref: function ref(_ref3) {\n _this2.fixedRef = _ref3;\n }\n })), lockScroll && React.createElement(ScrollBlock, null), React.createElement(ContentContainer, {\n maxHeight: maxHeight\n }, React.createElement(\"div\", {\n ref: function ref(_ref4) {\n _this2.contentRef = _ref4;\n },\n style: _objectSpread({\n top: 0,\n left: 0,\n position: cssPosition,\n transform: transform,\n zIndex: zIndex\n }, opacity)\n }, this.props.content)));\n }\n }]);\n\n return Layer;\n}(Component);\n\n_defineProperty(Layer, \"defaultProps\", {\n autoFlip: true,\n boundariesElement: 'viewport',\n children: null,\n content: null,\n offset: '0, 0',\n onFlippedChange: function onFlippedChange() {},\n position: 'right middle',\n zIndex: 400,\n lockScroll: false,\n isAlwaysFixed: false,\n onPositioned: function onPositioned() {}\n});\n\nexport { Layer as default };","import React from 'react';\nimport styled from 'styled-components';\nimport ScrollLock from 'react-scrolllock';\nvar Blanket = styled.div.withConfig({\n displayName: \"ScrollBlock__Blanket\",\n componentId: \"sc-1xiww8k-0\"\n})([\"\\n position: fixed;\\n top: 0;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n background: transparent;\\n\"]);\nexport default function ScrollBlock() {\n return React.createElement(Blanket, null, React.createElement(ScrollLock, null));\n}","var positionMap = {\n 'top left': {\n position: 'top-start',\n animation: 'top'\n },\n 'top center': {\n position: 'top',\n animation: 'top'\n },\n 'top right': {\n position: 'top-end',\n animation: 'top'\n },\n 'right top': {\n position: 'right-start',\n animation: 'right'\n },\n 'right middle': {\n position: 'right',\n animation: 'right'\n },\n 'right bottom': {\n position: 'right-end',\n animation: 'right'\n },\n 'bottom left': {\n position: 'bottom-start',\n animation: 'bottom'\n },\n 'bottom center': {\n position: 'bottom',\n animation: 'bottom'\n },\n 'bottom right': {\n position: 'bottom-end',\n animation: 'bottom'\n },\n 'left top': {\n position: 'left-start',\n animation: 'left'\n },\n 'left middle': {\n position: 'left',\n animation: 'left'\n },\n 'left bottom': {\n position: 'left-end',\n animation: 'left'\n }\n};\nexport var POSITION_ATTRIBUTE_ENUM = {\n values: ['top left', 'top center', 'top right', 'right top', 'right middle', 'right bottom', 'bottom left', 'bottom center', 'bottom right', 'left top', 'left middle', 'left bottom'],\n default: 'right middle'\n};\n\nfunction positionToPopper(position) {\n return position && positionMap[position] ? positionMap[position].position : null;\n}\n/* Convert the autoFlip property into the array format that Popper expects.\n * The first item must not include the edge-position variation, or Popper will not understand it.\n */\n\n\nexport function getFlipBehavior(props) {\n return props.position && Array.isArray(props.autoFlip) ? [props.position.split(' ')[0]].concat(props.autoFlip) : null;\n}\nexport function positionPropToPopperPosition(position) {\n return positionToPopper(position) || positionMap[POSITION_ATTRIBUTE_ENUM.default].position;\n}","import styled from 'styled-components';\nexport default styled.div.withConfig({\n displayName: \"styledContentContainer\",\n componentId: \"p0j3f7-0\"\n})([\"\\n [data-role='droplistContent'] {\\n \", \";\\n }\\n\"], function (_ref) {\n var maxHeight = _ref.maxHeight;\n return maxHeight ? \"max-height: \".concat(maxHeight, \"px\") : '';\n});","export const presetSizes = {\n xsmall: 8,\n small: 16,\n medium: 24,\n large: 48,\n xlarge: 96\n};","/** @jsx jsx */\nimport React from 'react';\nimport { css, jsx, keyframes } from '@emotion/core';\nimport { DN500, DN900, N0, N500 } from '@atlaskit/theme/colors';\nimport { useGlobalTheme } from '@atlaskit/theme/components';\nimport { presetSizes } from './constants';\n\n/**\n * Returns the appropriate circle stroke color.\n */\nfunction getStrokeColor({\n mode,\n appearance\n}) {\n if (mode === 'light') {\n return appearance === 'inherit' ? `var(--ds-text-subtle, ${N500})` : `var(--ds-text-inverse, ${N0})`;\n }\n\n return appearance === 'inherit' ? `var(--ds-text-subtle, ${DN900})` : `var(--ds-text-inverse, ${DN500})`;\n}\n\nconst rotate = keyframes({\n to: {\n transform: 'rotate(360deg)'\n }\n});\nconst rotateStyles = css({\n animation: `${rotate} 0.86s infinite`,\n animationTimingFunction: 'cubic-bezier(0.4, 0.15, 0.6, 0.85)',\n transformOrigin: 'center'\n});\n/**\n * There are three parts to the load in animation:\n * 1. Fade in\n * 2. Accelerated spin\n * 3. Stretch the spinner line\n */\n\nconst loadIn = keyframes({\n from: {\n transform: 'rotate(50deg)',\n opacity: 0,\n strokeDashoffset: 60\n },\n to: {\n transform: 'rotate(230deg)',\n opacity: 1,\n strokeDashoffset: 50\n }\n});\nconst loadInStyles = css({\n animation: `${loadIn} 1s ease-in-out`,\n\n /**\n * When the animation completes, stay at the last frame of the animation.\n */\n animationFillMode: 'forwards',\n\n /**\n * We are going to animate this in.\n */\n opacity: 0\n});\nconst wrapperStyles = css({\n display: 'inline-flex',\n\n /**\n * Align better inline with text.\n */\n verticalAlign: 'middle'\n});\nconst circleStyles = css({\n fill: 'none',\n strokeDasharray: 60,\n strokeDashoffset: 'inherit',\n strokeLinecap: 'round',\n strokeWidth: 1.5,\n '@media screen and (forced-colors: active)': {\n filter: 'grayscale(100%)',\n stroke: 'CanvasText'\n }\n});\nexport default /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function Spinner({\n testId,\n appearance = 'inherit',\n delay = 0,\n size: providedSize = 'medium'\n}, ref) {\n const size = typeof providedSize === 'number' ? providedSize : presetSizes[providedSize];\n const animationDelay = `${delay}ms`;\n const {\n mode\n } = useGlobalTheme();\n const stroke = getStrokeColor({\n mode,\n appearance\n });\n /**\n * The Spinner animation uses a combination of two\n * css animations on two separate elements.\n */\n\n return jsx(\"span\", {\n /**\n * This span exists to off-load animations from the circle element,\n * which were causing performance issues (style recalculations)\n * on Safari and older versions of Chrome.\n *\n * This can be removed and styles placed back on the circle element once\n * Safari fixes this bug and off-loads rendering to the GPU from the CPU.\n */\n css: [wrapperStyles, rotateStyles],\n \"data-testid\": testId && `${testId}-wrapper`,\n style: {\n animationDelay,\n width: size,\n height: size\n }\n }, jsx(\"svg\", {\n height: size,\n width: size,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"data-testid\": testId,\n ref: ref,\n css: loadInStyles,\n style: {\n animationDelay\n }\n }, jsx(\"circle\", {\n cx: \"8\",\n cy: \"8\",\n r: \"7\",\n css: circleStyles,\n style: {\n stroke\n }\n })));\n}));","'use strict';\n\nfunction find(array, predicate, context) {\n if (typeof Array.prototype.find === 'function') {\n return array.find(predicate, context);\n }\n\n context = context || this;\n var length = array.length;\n var i;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(predicate + ' is not a function');\n }\n\n for (i = 0; i < length; i++) {\n if (predicate.call(context, array[i], i, array)) {\n return array[i];\n }\n }\n}\n\nmodule.exports = find;\n"],"names":["DropdownMenu","_Component","_getPrototypeOf2","_this","this","_len","arguments","length","_args","Array","_key","call","apply","concat","isOpen","props","defaultOpen","items","item","state","filter","group","indexOf","attrs","activatedItem","activatedGroup","findActivatedGroup","type","isChecked","onItemActivated","setState","forEach","i","close","_this$props","_len2","args","_key2","onOpenChange","_this$props2","_len3","_key3","key","value","nextProps","_this$props3","appearance","boundariesElement","children","isLoading","position","isMenuFixed","shouldAllowMultilineItems","shouldFitContainer","shouldFlip","testId","trigger","triggerButtonProps","triggerType","onPositioned","handleItemActivation","handleOpenChange","Component","DropdownMenuStateless","id","constructor","name","autoFocusDropdownItems","isUsingDeprecatedAPI","domItemsList","focusFirstItem","prevProp","indexItem","available","currentItem","latestAvailable","getAttribute","getNextFocusable","getPrevFocusable","sourceOfIsOpen","focusItem","focusedItem","index","focus","target","isDroplistItem","thisDom","findDOMNode","contains","event","preventDefault","open","source","isTargetChildItem","focusPreviousItem","focusNextItem","menuContainer","domMenuContainer","toggle","Boolean","handleClickDeprecated","triggerContainer","disabled","insideTriggerContent","triggerProps","defaultButtonProps","isSelected","iconAfter","iconBefore","size","label","triggerContent","ref","_ref","map","itemIndex","onActivate","_ref2","content","groups","groupIndex","heading","elemAfter","renderItems","_ref3","querySelectorAll","role","style","maxWidth","renderGroups","dropdownListPositioned","autoFocus","Fragment","isDeprecated","deprecatedProps","onKeyDown","handleKeyboardInteractionsDeprecated","handleKeyboardInteractionForClosed","onClick","handleClick","renderTrigger","onDroplistPositioned","analyticsContext","componentName","packageName","packageVersion","renderDeprecated","onItemClicked","handleItemClicked","renderDropdownItems","createAndFireEventOnAtlaskit","action","actionSubject","attributes","DropdownItemClickManager","itemClicked","DropdownItemFocusManager","itemId","itemNode","registeredItems","push","focusedItemId","matchingIndex","focusedItemIndex","handleItemRegistered","_assertThisInitialize","shiftKey","nextItemIndex","Math","max","min","itemFocused","handleItemFocused","registerItem","deregisterItem","handleItemDeregistered","updateItem","handleItemUpdated","handleKeyboard","isItemInList","itemList","groupId","DropdownItemSelectionCache","lastCacheUpdate","newGroupSelections","newSelectedItems","selectedItems","Date","now","_this2","isItemSelected","itemsInGroup","itemSelectionsChanged","handleItemSelectionsChanged","hasItemAlreadyHadDefaultSelectedApplied","alreadyDefaultedItems","markItemAsDefaultApplied","displayName","componentId","prefix","focusManagerContext","selectionCacheContext","clickManagerContext","KEY_UP","KEY_DOWN","KEY_SPACE","KEY_ENTER","KEY_TAB","ContextTypes","getAtlaskitAnalyticsContext","getAtlaskitAnalyticsEventHandlers","_super","AnalyticsContext","getChildContext","getAnalyticsContext","data","context","ancestorData","__spread","getAnalyticsEventHandlers","__extends","prototype","render","Children","contextTypes","childContextTypes","AnalyticsContextConsumer","originalEventProps","patchedEventProps","updatePatchedEventProps","changedPropCallbacks","Object","keys","createEventMap","p","__assign","mapCreateEventsToProps","changedPropNames","reduce","modified","propCallbackName","_a","eventCreator","providedCallback","includes","_i","analyticsEvent","createAnalyticsEvent","payload","handlers","wrappedComponentProps","defaultProps","AnalyticsEvent","clone","JSON","parse","stringify","update","updater","UIAnalyticsEvent","hasFired","console","warn","fire","channel","handler","consumerEvent","clonedEvent","defaultData","WrappedComponent","WithAnalyticsContext","rest","__rest","analyticsData","WithAnalyticsEvents","defineProperty","exports","templateObject_1","tslib_1","react_1","__importDefault","styled_components_1","uuid_1","colors_1","constants_1","getSize","sizes","IconWrapper","default","span","__makeTemplateObject","primaryColor","secondaryColor","background","svgStr","Glyph","glyph","dangerouslySetGlyph","glyphProps","dangerouslySetInnerHTML","__html","replace","createElement","undefined","small","medium","large","xlarge","sizeMap","_react","_interopRequireDefault","_Icon","obj","__esModule","_extends","assign","hasOwnProperty","ChevronDownIcon","_default","THEME_MODES","getTheme","theme","__ATLASKIT_THEME__","mode","themed","modesOrVariant","variantModes","variantProp","variants","modes","R50","R75","R100","R200","R300","R400","R500","Y50","Y75","Y100","Y200","Y300","Y400","Y500","G50","G75","G100","G200","G300","G400","G500","B50","B75","B100","B200","B300","B400","B500","P50","P75","P100","P200","P300","P400","P500","T50","T75","T100","T200","T300","T400","T500","N0","N10","N20","N30","N40","N50","N60","N70","N80","N90","N100","N200","N300","N400","N500","N600","N700","N800","N900","N10A","N20A","N30A","N40A","N50A","N60A","N70A","N80A","N90A","N100A","N200A","N300A","N400A","N500A","N600A","N700A","N800A","DN900","DN800","DN700","DN600","DN500","DN400","DN300","DN200","DN100","DN90","DN80","DN70","DN60","DN50","DN40","DN30","DN20","DN10","DN0","DN800A","DN700A","DN600A","DN500A","DN400A","DN300A","DN200A","DN100A","DN90A","DN80A","DN70A","DN60A","DN50A","DN40A","DN30A","DN20A","DN10A","light","dark","backgroundActive","backgroundHover","backgroundOnLayer","textHover","textActive","subtleText","placeholderText","subtleHeading","codeBlock","linkHover","linkActive","linkOutline","primary","blue","teal","purple","red","yellow","green","skeleton","dropOffset","Droplist","setContentWidth","document","addEventListener","handleClickOutside","handleEsc","removeEventListener","dropContentRef","triggerRef","width","offsetWidth","halfFocusRing","Node","withinTrigger","withinContent","maxHeight","layerContent","isTall","innerRef","handleContentRef","ThemeProvider","fit","autoFlip","offset","isAlwaysFixed","handleTriggerRef","supportsVoiceOver","test","navigator","userAgent","Element","_PureComponent","e","handleMouseDown","isActive","isDisabled","isFocused","isHidden","isPrimary","appearanceProps","ariaProps","ariaRoles","checkbox","link","option","radio","commonProps","onKeyPress","handleKeyPress","onMouseDown","onMouseOut","handleMouseOut","onMouseOver","handleMouseOver","onMouseUp","handleMouseUp","title","tabIndex","consolidatedProps","href","PureComponent","DroplistGroup","ariaLabel","getAriaLabel","afterText","headingElement","textContent","r","inputTypes","Item","isHovered","isPressed","guardedActivate","_this$state","hasInput","Input","element","g","elemBefore","allowMultiline","description","tooltipDescription","tooltipPosition","itemContext","backgroundColor","boxShadow","css","Content","verticalPadding","SpinnerContainer","Trigger","Heading","HeadingAfter","HeadingText","activeBackgroundColor","hoverBackgroundColor","selectedBackgroundColor","activePrimaryTextColor","defaultPrimaryTextColor","disabledPrimaryTextColor","primaryPrimaryTextColor","selectedPrimaryTextColor","focusedStyles","activeStyles","primaryStyles","sharedStyles","Anchor","Span","InputWrapper","Before","After","ContentWrapper","Description","dropdownPadding","bottom","left","right","top","droplistItemTheme","padding","compact","borderRadius","text","secondaryText","hover","active","selected","outline","getInputBackground","getInputFill","CheckboxIcon","RadioIcon","themeNamespace","presetSizes","xsmall","rotate","keyframes","loadIn","delay","providedSize","jsx","tokens","strokeColor","getStrokeColor","focusable","height","viewBox","xmlns","cx","cy","gridSize","fontSize","createTheme","defaultGetTokens","emptyThemeFn","getTokens","ThemeContext","createContext","Consumer","themeProps","useContext","Provider","themeFn","valueFn","mixedFn","useCallback","multiply","fn","factor","divide","divisor","FixedTarget","fixedOffset","targetRef","rect","firstChild","getBoundingClientRect","Layer","popperHeight","offsets","popper","round","cssPosition","fixPositionTopUnderflow","originalHeight","calculateMaxHeight","hasExtractedStyles","transform","flipped","actualPosition","originalPosition","extractStyles","bind","applyPopper","calculateFixedOffset","prevProps","prevState","onFlippedChange","cancel","destroy","currentHeight","positionTop","DocumentElementClientHeight","documentElement","clientHeight","viewportHeight","window","innerHeight","actualTarget","popperTop","fixedRef","contentRef","popperOpts","placement","onCreate","onUpdate","modifiers","applyStyle","enabled","hide","flip","flipVariations","preventOverflow","escapeWithReference","positionFixed","flipBehavior","behavior","zIndex","lockScroll","_this$state2","opacity","_ref4","Blanket","ScrollBlock","positionMap","animation","getFlipBehavior","isArray","split","positionPropToPopperPosition","positionToPopper","to","rotateStyles","animationTimingFunction","transformOrigin","from","strokeDashoffset","loadInStyles","animationFillMode","wrapperStyles","display","verticalAlign","circleStyles","fill","strokeDasharray","strokeLinecap","strokeWidth","stroke","animationDelay","module","array","predicate","find","TypeError"],"sourceRoot":""}