{"version":3,"sources":["webpack:///./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack:///./node_modules/@instructure/ui-utils/es/ms.js","webpack:///./node_modules/@instructure/ui-dom-utils/es/getClassList.js","webpack:///./node_modules/@instructure/ui-motion/es/Transition/BaseTransition.js","webpack:///./node_modules/@instructure/ui-motion/es/Transition/theme.js","webpack:///./node_modules/@instructure/ui-motion/es/Transition/index.js","webpack:///./node_modules/@instructure/ui-react-utils/es/polyfill.js"],"names":["componentWillMount","state","this","constructor","getDerivedStateFromProps","props","undefined","setState","componentWillReceiveProps","nextProps","updater","prevState","bind","componentWillUpdate","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","__suppressDeprecationWarning","polyfill","Component","prototype","isReactComponent","Error","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","componentName","displayName","name","newApiName","componentDidUpdate","maybeSnapshot","snapshot","call","ms","val","_parseUnit","parseUnit","_parseUnit2","num","unit","classListShimmed","apiForEmptyNode","toArray","contains","add","remove","getClassList","element","node","findDOMNode","classListApi","shimClassListForIE","classList","forEach","method","className","document","createElementNS","descr","Object","getOwnPropertyDescriptor","HTMLElement","defineProperty","SVGElement","STATES","EXITED","EXITING","ENTERING","ENTERED","_React$Component","BaseTransition","_super","_this","_len","arguments","length","args","Array","_key","apply","concat","_timeouts","transitioning","startTransition","transitionIn","transitionOnStart","_this$props","transitionEnter","transitionExit","enter","exit","transition","toState","fromState","transitionCallback","transitionDuration","_unmounted","transitionClassName","getTransitionClassName","prevTransitionClassName","baseTransitionClassName","transitionEnabled","onTransition","push","setTimeout","initialState","_assertThisInitialize","onEnter","onEntering","onEntered","enterDelay","_assertThisInitialize2","onExit","onExiting","onExited","exitDelay","key","value","in","transitionOnMount","cancelPrematurely","clearTransition","timeout","clearTimeout","_this2","keys","transitionState","exitedClassName","enteringClassName","enteredClassName","exitingClassName","safeCloneElement","ensureSingleChild","children","unmountOnExit","renderChildren","propTypes","bool","number","string","func","defaultProps","component","states","transitions","_ref","duration","timing","_dec","_dec2","_class","_class2","_temp","styles","componentId","template","theme","testable","_Component","Transition","handleExited","type","handleEntered","classNames","createElement","assign","exited","exiting","entering","entered","oneOf"],"mappings":";AAAA;AAAA;AAOA,SAASA,IAEP,IAAIC,EAAQC,KAAKC,YAAYC,yBAAyBF,KAAKG,MAAOH,KAAKD;AACzD,OAAVA,QAA4BK,IAAVL,GACpBC,KAAKK,SAASN,GAIlB,SAASO,EAA0BC,GAGjC,SAASC,EAAQC,GACf,IAAIV,EAAQC,KAAKC,YAAYC,yBAAyBK,EAAWE;AACjE,OAAiB,OAAVV,QAA4BK,IAAVL,EAAsBA,EAAQ,KAGzDC,KAAKK,SAASG,EAAQE,KAAKV,OAG7B,SAASW,EAAoBJ,EAAWK,GACtC,IACE,IAAIC,EAAYb,KAAKG;AACrB,IAAIM,EAAYT,KAAKD;AACrBC,KAAKG,MAAQI;AACbP,KAAKD,MAAQa;AACbZ,KAAKc,4BAA8B;AACnCd,KAAKe,wBAA0Bf,KAAKgB,wBAClCH,EACAJ,GAEF,QACAT,KAAKG,MAAQU;AACbb,KAAKD,MAAQU,GAMjBX,EAAmBmB,6BAA+B;AAClDX,EAA0BW,6BAA+B;AACzDN,EAAoBM,6BAA+B;AAEnD,SAASC,EAASC,GAChB,IAAIC,EAAYD,EAAUC;AAE1B,IAAKA,IAAcA,EAAUC,iBAC3B,MAAM,IAAIC,MAAM;AAGlB,GACgD,oBAAvCH,EAAUjB,0BAC4B,oBAAtCkB,EAAUJ,wBAEjB,OAAOG;AAMT,IAAII,EAAqB;AACzB,IAAIC,EAA4B;AAChC,IAAIC,EAAsB;AACkB,oBAAjCL,EAAUtB,mBACnByB,EAAqB,qBACmC,oBAAxCH,EAAUM,4BAC1BH,EAAqB;AAE4B,oBAAxCH,EAAUd,0BACnBkB,EAA4B,4BACmC,oBAA/CJ,EAAUO,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BC,eAAgB,KAChBmB,QAAS,aACTC,WAAY,aACZC,UAAW,aACXG,OAAQ,aACRC,UAAW,aACXC,SAAU,aACVZ,aAAc,SAAsBV,EAASC,KAC7CwC,SAAU,MACTkB,EAAQR,OAAS,EAAeA,OAAQS,KAAWF,IAAWA,I;ACnOjE;AAAA;AAwBO,IAAIxI,EAAW,WACpB,OAAO,cAAUiE,WAAM,EAAQL","file":"1-c-c62473714a.js","sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport { parseUnit } from './parseUnit';\n/**\n * ---\n * category: utilities\n * ---\n * Converts a unit value time combination (s, ms) to a number representing ms\n *\n * @module ms\n *\n * Example inputs:\n * - '100s'\n * - '20ms'\n *\n * @param {String} val\n * @returns {Number} Returns numerical representation of milliseconds\n*/\n\nfunction ms(val) {\n if (!val || typeof val === 'number') {\n return val;\n }\n\n var _parseUnit = parseUnit(val),\n _parseUnit2 = _slicedToArray(_parseUnit, 2),\n num = _parseUnit2[0],\n unit = _parseUnit2[1];\n\n if (unit === 'ms') {\n return num;\n } else if (unit === 's') {\n return num * 1000;\n } else {\n return num;\n }\n}\n\nexport default ms;\nexport { ms };","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport { findDOMNode } from './findDOMNode';\nvar classListShimmed = false;\nvar apiForEmptyNode = {\n toArray: function toArray() {\n return [];\n },\n contains: function contains() {\n return false;\n },\n add: function add() {},\n remove: function remove() {}\n};\n/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Produces a classList object containing functions\n * for both adding and removing classes from an element.\n * Also provides a contains function to query if the\n * element contains a specified class name.\n *\n * @param {ReactComponent|DomNode} element - component or DOM node\n * @return {Object} object containing classList functions 'contains', 'add', and 'remove'\n */\n\nfunction getClassList(element) {\n var node = findDOMNode(element);\n if (!node) return apiForEmptyNode;\n var classListApi = {\n toArray: function toArray() {\n shimClassListForIE();\n return _toConsumableArray(node.classList);\n }\n };\n ['contains', 'add', 'remove'].forEach(function (method) {\n classListApi[method] = function (className) {\n shimClassListForIE();\n return node.classList[method](className);\n };\n });\n return classListApi;\n}\n\nfunction shimClassListForIE() {\n // IE 11 doesn't support classList on SVG elements\n\n /* istanbul ignore if */\n if (!classListShimmed) {\n if (!('classList' in document.createElementNS('http://www.w3.org/2000/svg', 'g'))) {\n var descr = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'classList');\n Object.defineProperty(SVGElement.prototype, 'classList', descr);\n }\n\n classListShimmed = true;\n }\n}\n\nexport default getClassList;\nexport { getClassList };","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { getClassList } from '@instructure/ui-dom-utils';\nimport { ensureSingleChild, polyfill, safeCloneElement } from '@instructure/ui-react-utils';\nvar STATES = {\n EXITED: -2,\n EXITING: -1,\n ENTERING: 1,\n ENTERED: 2\n};\n/**\n---\nprivate: true\n---\n Note: this is forked from https://github.com/react-bootstrap/react-overlays/blob/master/src/Transition.js\n so that it works with css modules. The internals are pretty different now, but it has roughly the same api.\n**/\n\nvar BaseTransition = /*#__PURE__*/function (_React$Component) {\n _inherits(BaseTransition, _React$Component);\n\n var _super = _createSuper(BaseTransition);\n\n function BaseTransition() {\n var _this;\n\n _classCallCheck(this, BaseTransition);\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 = _super.call.apply(_super, [this].concat(args));\n _this._timeouts = [];\n _this.state = {\n transitioning: false\n };\n\n _this.startTransition = function (transitionIn, transitionOnStart) {\n var _this$props = _this.props,\n transitionEnter = _this$props.transitionEnter,\n transitionExit = _this$props.transitionExit;\n\n if (transitionIn) {\n _this.enter(transitionEnter && transitionOnStart ? STATES.EXITED : null);\n } else {\n _this.exit(transitionExit && transitionOnStart ? STATES.ENTERED : null);\n }\n };\n\n _this.transition = function (toState, fromState, transitionCallback) {\n var transitionDuration = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;\n if (_this._unmounted) return;\n var classList = getClassList(_assertThisInitialized(_this));\n\n var transitionClassName = _this.getTransitionClassName(toState);\n\n var prevTransitionClassName = _this.getTransitionClassName(fromState);\n\n var baseTransitionClassName = _this.props.transitionClassName;\n\n if (fromState && transitionDuration && _this.transitionEnabled(toState)) {\n classList.add(baseTransitionClassName);\n } else {\n classList.remove(baseTransitionClassName);\n }\n\n if (prevTransitionClassName) {\n classList.remove(prevTransitionClassName);\n }\n\n if (transitionClassName) {\n classList.add(transitionClassName);\n }\n\n if (toState && fromState) {\n _this.props.onTransition(toState, fromState);\n }\n\n _this._timeouts.push(setTimeout(function () {\n if (_this._unmounted) return;\n\n if (typeof transitionCallback === 'function') {\n transitionCallback();\n }\n }, transitionDuration));\n };\n\n _this.enter = function (initialState) {\n if (_this.state.transitioning || _this._unmounted) return;\n\n var _assertThisInitialize = _assertThisInitialized(_this),\n props = _assertThisInitialize.props;\n\n props.onEnter();\n\n if (props.transitionEnter) {\n _this.setState({\n transitioning: true\n }, function () {\n var enter = function enter() {\n props.onEntering();\n\n _this.transition(STATES.ENTERED, STATES.ENTERING, function () {\n _this.setState({\n transitioning: false\n }, function () {\n props.onEntered();\n });\n });\n };\n\n if (initialState) {\n _this.transition(initialState, null, function () {\n _this.transition(STATES.ENTERING, initialState, enter, props.enterDelay);\n });\n } else {\n enter();\n }\n });\n } else {\n _this.setState({\n transitioning: false\n }, function () {\n _this.transition(STATES.ENTERED, STATES.EXITED);\n\n props.onEntered();\n });\n }\n };\n\n _this.exit = function (initialState) {\n if (_this.state.transitioning) return;\n\n var _assertThisInitialize2 = _assertThisInitialized(_this),\n props = _assertThisInitialize2.props;\n\n props.onExit();\n\n if (props.transitionExit) {\n _this.setState({\n transitioning: true\n }, function () {\n var exit = function exit() {\n props.onExiting();\n\n _this.transition(STATES.EXITED, STATES.EXITING, function () {\n _this.setState({\n transitioning: false\n }, function () {\n props.onExited();\n });\n });\n };\n\n if (initialState) {\n _this.transition(initialState, null, function () {\n _this.transition(STATES.EXITING, initialState, exit, props.exitDelay);\n });\n } else {\n exit();\n }\n });\n } else {\n _this.setState({\n transitioning: false\n }, function () {\n _this.transition(STATES.EXITED, STATES.ENTERED);\n\n props.onExited();\n });\n }\n };\n\n return _this;\n }\n\n _createClass(BaseTransition, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.startTransition(this.props.in, this.props.transitionOnMount);\n }\n }, {\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate(prevProps, prevState) {\n if (this.props.in !== prevProps.in && prevState.transitioning) {\n // direction changed before previous transition finished\n return true;\n }\n\n return null;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState, cancelPrematurely) {\n if (cancelPrematurely) {\n this.clearTransition(prevProps.transitionClassName);\n }\n\n if (this.props.transitionClassName !== prevProps.transitionClassName) {\n this.clearTransition(prevProps.transitionClassName);\n }\n\n if (prevProps.in !== this.props.in) {\n this.startTransition(this.props.in, true);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._timeouts.forEach(function (timeout) {\n clearTimeout(timeout);\n });\n\n this._unmounted = true;\n }\n }, {\n key: \"clearTransition\",\n value: function clearTransition(transitionClassName) {\n var _this2 = this;\n\n if (this._unmounted) return;\n this.setState({\n transitioning: false\n }, function () {\n if (_this2._unmounted) return;\n var classList = getClassList(_this2);\n Object.keys(STATES).forEach(function (state) {\n classList.remove(_this2.getTransitionClassName(state));\n });\n classList.remove(transitionClassName);\n });\n }\n }, {\n key: \"transitionEnabled\",\n value: function transitionEnabled(toState) {\n var props = this.props;\n\n switch (toState) {\n case STATES.EXITED:\n case STATES.EXITING:\n return props.transitionExit;\n\n case STATES.ENTERED:\n case STATES.ENTERING:\n return props.transitionEnter;\n\n default:\n return false;\n }\n }\n }, {\n key: \"getTransitionClassName\",\n value: function getTransitionClassName(transitionState) {\n var props = this.props;\n\n switch (transitionState) {\n case STATES.EXITED:\n return props.exitedClassName;\n\n case STATES.ENTERING:\n return props.enteringClassName;\n\n case STATES.ENTERED:\n return props.enteredClassName;\n\n case STATES.EXITING:\n return props.exitingClassName;\n\n default:\n return null;\n }\n }\n }, {\n key: \"renderChildren\",\n value: function renderChildren() {\n return safeCloneElement(ensureSingleChild(this.props.children), {\n 'aria-hidden': !this.props.in ? true : null\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n if (!this.props.in && this.props.unmountOnExit && !this.state.transitioning) {\n return null;\n } else {\n return this.renderChildren();\n }\n }\n }]);\n\n BaseTransition.displayName = \"BaseTransition\";\n return BaseTransition;\n}(React.Component);\n\nBaseTransition.propTypes = {\n /**\n * Show the component? Triggers the enter or exit animation.\n */\n in: PropTypes.bool,\n\n /**\n * Unmount the component (remove it from the DOM) when it is not shown.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Run the enter animation when the component mounts, if it is initially\n * shown\n */\n transitionOnMount: PropTypes.bool,\n\n /**\n * Run the enter animation\n */\n transitionEnter: PropTypes.bool,\n\n /**\n * Run the exit animation\n */\n transitionExit: PropTypes.bool,\n\n /**\n * A Timeout for the animation, in milliseconds, to ensure that a node doesn't\n * transition indefinately if the browser transitionEnd events are\n * canceled or interrupted.\n *\n * By default this is set to a high number (5 seconds) as a failsafe. You should consider\n * setting this to the duration of your animation (or a bit above it).\n */\n enterDelay: PropTypes.number,\n\n /**\n * A Timeout for the animation, in milliseconds, to ensure that a node doesn't\n * transition indefinately if the browser transitionEnd events are\n * canceled or interrupted.\n *\n * By default this is set to a high number (5 seconds) as a failsafe. You should consider\n * setting this to the duration of your animation (or a bit above it).\n */\n exitDelay: PropTypes.number,\n\n /**\n * the base CSS class for the transition (transitions go here)\n */\n transitionClassName: PropTypes.string,\n\n /**\n * CSS class or classes applied when the component is exited\n */\n exitedClassName: PropTypes.string,\n\n /**\n * CSS class or classes applied while the component is exiting\n */\n exitingClassName: PropTypes.string,\n\n /**\n * CSS class or classes applied when the component is entered\n */\n enteredClassName: PropTypes.string,\n\n /**\n * CSS class or classes applied while the component is entering\n */\n enteringClassName: PropTypes.string,\n\n /**\n * Callback fired when transitioning to the next state\n */\n onTransition: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" classes are applied\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" classes are applied\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"enter\" classes are applied\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" classes are applied\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" classes are applied\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" classes are applied\n */\n onExited: PropTypes.func,\n children: PropTypes.node,\n className: PropTypes.string\n};\nBaseTransition.defaultProps = {\n in: false,\n component: 'div',\n unmountOnExit: false,\n transitionOnMount: false,\n transitionEnter: true,\n transitionExit: true,\n enterDelay: 300,\n exitDelay: 300,\n onEnter: function onEnter() {},\n onEntering: function onEntering() {},\n onEntered: function onEntered() {},\n onExit: function onExit() {},\n onExiting: function onExiting() {},\n onExited: function onExited() {},\n onTransition: function onTransition(toState, fromState) {},\n className: void 0,\n children: null,\n transitionClassName: void 0,\n exitedClassName: void 0,\n exitingClassName: void 0,\n enteredClassName: void 0,\n enteringClassName: void 0\n};\nBaseTransition.states = STATES;\npolyfill(BaseTransition);\nexport default BaseTransition;\nexport { BaseTransition };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport default function (_ref) {\n var transitions = _ref.transitions;\n return {\n duration: transitions.duration,\n timing: transitions.timing\n };\n}","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar _dec, _dec2, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { themeable } from '@instructure/ui-themeable';\nimport { ms } from '@instructure/ui-utils';\nimport { testable } from '@instructure/ui-testable';\nimport { BaseTransition } from './BaseTransition';\nvar styles = {\n componentId: 'eJkkQ',\n template: function template(theme) {\n return \"\\n\\n.eJkkQ_bGBk{transform:translateZ(0)}\\n\\n.eJkkQ_ddDm{transition:opacity \".concat(theme.duration || 'inherit', \" \").concat(theme.timing || 'inherit', \",transform \").concat(theme.duration || 'inherit', \" \").concat(theme.timing || 'inherit', \"}\\n\\n.eJkkQ_cpZA,.eJkkQ_fTmM{opacity:0.01}\\n\\n.eJkkQ_bEpV,.eJkkQ_NoZX{opacity:1}\\n\\n.eJkkQ_fOgU{transition:opacity \").concat(theme.duration || 'inherit', \" \").concat(theme.timing || 'inherit', \",transform \").concat(theme.duration || 'inherit', \" \").concat(theme.timing || 'inherit', \"}\\n\\n.eJkkQ_ZDum,.eJkkQ_fihg{opacity:0.01;transform:scale(0.01) translateZ(0)}\\n\\n.eJkkQ_eqrf,.eJkkQ_ftWB{opacity:1;transform:scale(1) translateZ(0)}\\n\\n.eJkkQ_dlJm,.eJkkQ_cPWt,.eJkkQ_bewW,.eJkkQ_bHhn{transition:opacity \").concat(theme.duration || 'inherit', \" \").concat(theme.timing || 'inherit', \",transform \").concat(theme.duration || 'inherit', \" \").concat(theme.timing || 'inherit', \"}\\n\\n.eJkkQ_bOBe,.eJkkQ_eKZC,.eJkkQ_cusP,.eJkkQ_djUe{opacity:0.01}\\n\\n.eJkkQ_cusP,.eJkkQ_dWfS{transform:translate3d(100%,0,0)}\\n\\n.eJkkQ_eKZC,.eJkkQ_chud{transform:translate3d(-100%,0,0)}\\n\\n.eJkkQ_djUe,.eJkkQ_fDdb{transform:translate3d(0,-100%,0)}\\n\\n.eJkkQ_bOBe,.eJkkQ_cYey{transform:translate3d(0,100%,0)}\\n\\n.eJkkQ_diPG,.eJkkQ_fEMB,.eJkkQ_eOlt,.eJkkQ_fvoZ,.eJkkQ_bIuM,.eJkkQ_fyZW,.eJkkQ_cuyj,.eJkkQ_gaix{opacity:1;transform:translateZ(0)}\");\n },\n 'root': 'eJkkQ_bGBk',\n 'fade': 'eJkkQ_ddDm',\n 'fade--exited': 'eJkkQ_cpZA',\n 'fade--exiting': 'eJkkQ_fTmM',\n 'fade--entered': 'eJkkQ_bEpV',\n 'fade--entering': 'eJkkQ_NoZX',\n 'scale': 'eJkkQ_fOgU',\n 'scale--exited': 'eJkkQ_ZDum',\n 'scale--exiting': 'eJkkQ_fihg',\n 'scale--entered': 'eJkkQ_eqrf',\n 'scale--entering': 'eJkkQ_ftWB',\n 'slide-down': 'eJkkQ_dlJm',\n 'slide-left': 'eJkkQ_cPWt',\n 'slide-right': 'eJkkQ_bewW',\n 'slide-up': 'eJkkQ_bHhn',\n 'slide-down--exited': 'eJkkQ_bOBe',\n 'slide-left--exited': 'eJkkQ_eKZC',\n 'slide-right--exited': 'eJkkQ_cusP',\n 'slide-up--exited': 'eJkkQ_djUe',\n 'slide-right--exiting': 'eJkkQ_dWfS',\n 'slide-left--exiting': 'eJkkQ_chud',\n 'slide-up--exiting': 'eJkkQ_fDdb',\n 'slide-down--exiting': 'eJkkQ_cYey',\n 'slide-down--entered': 'eJkkQ_diPG',\n 'slide-down--entering': 'eJkkQ_fEMB',\n 'slide-left--entered': 'eJkkQ_eOlt',\n 'slide-left--entering': 'eJkkQ_fvoZ',\n 'slide-right--entered': 'eJkkQ_bIuM',\n 'slide-right--entering': 'eJkkQ_fyZW',\n 'slide-up--entered': 'eJkkQ_cuyj',\n 'slide-up--entering': 'eJkkQ_gaix'\n};\nimport theme from './theme';\n/**\n---\ncategory: components/utilities\n---\n@module Transition\n**/\n\nvar Transition = (_dec = testable(), _dec2 = themeable(theme, styles), _dec(_class = _dec2(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(Transition, _Component);\n\n var _super = _createSuper(Transition);\n\n function Transition() {\n var _this;\n\n _classCallCheck(this, Transition);\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 = _super.call.apply(_super, [this].concat(args));\n\n _this.handleExited = function () {\n if (typeof _this.props.onExited === 'function') {\n _this.props.onExited(_this.props.type);\n }\n };\n\n _this.handleEntered = function () {\n if (typeof _this.props.onEntered === 'function') {\n _this.props.onEntered(_this.props.type);\n }\n };\n\n return _this;\n }\n\n _createClass(Transition, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n type = _this$props.type,\n children = _this$props.children,\n props = _objectWithoutProperties(_this$props, [\"type\", \"children\"]);\n\n var duration = ms(this.theme.duration);\n var classNames = type ? {\n 'exited': styles[\"\".concat(type, \"--exited\")],\n 'exiting': styles[\"\".concat(type, \"--exiting\")],\n 'entering': styles[\"\".concat(type, \"--entered\")],\n 'entered': styles[\"\".concat(type, \"--entering\")]\n } : {};\n return /*#__PURE__*/React.createElement(BaseTransition, Object.assign({}, props, {\n enterDelay: duration,\n exitDelay: duration,\n transitionClassName: styles[type],\n exitedClassName: classNames.exited,\n exitingClassName: classNames.exiting,\n enteredClassName: classNames.entering,\n enteringClassName: classNames.entered,\n onEntered: this.handleEntered,\n onExited: this.handleExited\n }), children);\n }\n }]);\n\n Transition.displayName = \"Transition\";\n return Transition;\n}(Component), _class2.propTypes = {\n type: PropTypes.oneOf(['fade', 'scale', 'slide-down', 'slide-up', 'slide-left', 'slide-right']),\n\n /**\n * A single element to animate in and out\n */\n children: PropTypes.element,\n\n /**\n * Show the component; triggers the enter or exit animation\n */\n in: PropTypes.bool,\n\n /**\n * Unmount the component (remove it from the DOM) when it is not shown\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Run the enter animation when the component mounts, if it is initially\n * shown\n */\n transitionOnMount: PropTypes.bool,\n\n /**\n * Run the enter animation\n */\n transitionEnter: PropTypes.bool,\n\n /**\n * Run the exit animation\n */\n transitionExit: PropTypes.bool,\n\n /**\n * Callback fired when transitioning to the next state\n */\n onTransition: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" classes are applied\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" classes are applied\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"enter\" classes are applied\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" classes are applied\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" classes are applied\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" classes are applied\n */\n onExited: PropTypes.func\n}, _class2.defaultProps = {\n type: 'fade',\n in: false,\n unmountOnExit: false,\n transitionOnMount: false,\n transitionEnter: true,\n transitionExit: true,\n onEnter: function onEnter() {},\n onEntering: function onEntering() {},\n onEntered: function onEntered() {},\n onExit: function onExit() {},\n onExiting: function onExiting() {},\n onExited: function onExited() {},\n onTransition: function onTransition(toState, fromState) {},\n children: null\n}, _class2.states = BaseTransition.states, _temp)) || _class) || _class);\nexport default Transition;\nexport { Transition };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport { polyfill as _polyfill } from 'react-lifecycles-compat';\nexport var polyfill = function polyfill() {\n return _polyfill.apply(void 0, arguments);\n};"],"sourceRoot":""}