{"version":3,"sources":["webpack:///(webpack)/buildin/amd-options.js","webpack:///./node_modules/xtend/immutable.js","webpack:///./node_modules/classnames/index.js","webpack:///./node_modules/@charlietango/use-client-hydrated/lib/useClientHydrated.esm.js","webpack:///./node_modules/react-responsive-modal/lib/index.es.js","webpack:///./node_modules/react-minimalist-portal/lib/portal.js","webpack:///./node_modules/no-scroll/index.js","webpack:///./node_modules/focus-trap-react/dist/focus-trap-react.js","webpack:///./node_modules/focus-trap/index.js","webpack:///./node_modules/tabbable/index.js","webpack:///./node_modules/@charlietango/use-id/lib/useId.esm.js"],"names":["module","exports","__webpack_amd_options__","target","i","arguments","length","source","key","hasOwnProperty","call","Object","prototype","hasOwn","classNames","classes","arg","argType","_typeof","push","Array","isArray","inner","apply","toString","includes","join","default","define","window","clientHydrated","_classCallCheck","instance","Constructor","TypeError","_defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","_defineProperty","obj","value","_objectSpread","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","forEach","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","_setPrototypeOf","p","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","CloseIcon","_ref","styles","closeIconSize","closeIconSvgPath","onClickCloseIcon","id","createElement","className","closeButton","style","onClick","closeIcon","xmlns","width","height","viewBox","propTypes","object","isRequired","number","node","func","string","defaultProps","_modals","modalManager","modal","indexOf","index","splice","css","ref","insertAt","document","head","getElementsByTagName","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","styleInject","Modal","_Component","_getPrototypeOf2","_this","this","_len","args","_key","showPortal","open","blockScroll","addEventListener","handleKeydown","unblockScroll","removeEventListener","event","shouldClose","onOverlayClick","closeOnOverlayClick","onClose","keyCode","onEscKeyDown","closeOnEsc","onEntered","onExited","setState","off","protoProps","staticProps","subClass","superClass","create","constructor","_inherits","on","nextProps","prevState","handleOpen","prevProps","state","handleClose","_this$props","center","showCloseIcon","animationDuration","container","focusTrapped","focusTrapOptions","overlayId","modalId","closeIconId","in","appear","transitionEnter","appearActive","transitionEnterActive","enter","enterActive","exit","transitionExit","exitActive","transitionExitActive","timeout","handleEntered","handleExited","overlay","overlayCenter","handleClickOverlay","onMouseDown","handleModalEvent","onMouseUp","clickOutsideDeactivates","children","handleClickCloseIcon","bool","d","_createClass","defineProperties","_react","_propTypes2","_interopRequireDefault","_reactDom2","__esModule","useCreatePortal","createPortal","isBrowser","Portal","body","renderLayer","unmountComponentAtNode","removeChild","unstable_renderSubtreeIntoContainer","Component","root","scrollbarSize","scrollTop","isOn","options","doc","documentElement","pageYOffset","scrollHeight","innerHeight","dummyScroller","setAttribute","offsetWidth","clientWidth","getScrollbarSize","position","top","overflow","scroll","noScroll","toggle","React","createFocusTrap","checkedProps","FocusTrap","_React$Component","setNode","el","previouslyFocusedElement","activeElement","specifiedFocusTrapOptions","tailoredFocusTrapOptions","returnFocusOnDeactivate","optionName","focusTrap","_createFocusTrap","active","activate","paused","pause","config","returnFocus","deactivate","unpause","focus","elementProps","prop","tag","tabbable","xtend","listeningFocusTrap","delay","fn","setTimeout","element","userOptions","querySelector","escapeDeactivates","firstTabbableNode","lastTabbableNode","nodeFocusedBeforeActivation","mostRecentlyFocusedNode","trap","activateOptions","updateTabbableNodes","onActivate","addListeners","removeListeners","deactivateOptions","onDeactivate","undefined","tryFocus","getInitialFocusNode","checkFocusIn","checkPointerDown","checkClick","checkKey","getNodeForOption","optionValue","Error","contains","e","isFocusable","preventDefault","Document","stopImmediatePropagation","isEscapeEvent","isTabEvent","shiftKey","checkTab","tabbableNodes","tagName","toLowerCase","select","isSelectableInput","candidateSelectors","candidateSelector","matches","Element","msMatchesSelector","webkitMatchesSelector","candidate","candidateTabindex","regularTabbables","orderedTabbables","untouchabilityChecker","UntouchabilityChecker","ownerDocument","candidates","querySelectorAll","includeContainer","slice","unshift","isNodeMatchingSelectorTabbable","getTabindex","documentOrder","tabIndex","sort","sortOrderedTabbables","map","a","isNodeMatchingSelectorFocusable","isInput","isRadio","name","checked","nodes","getCheckedRadio","isTabbableRadio","isNonTabbableRadio","disabled","isHiddenInput","isUntouchable","isTabbable","focusableCandidateSelector","tabindexAttr","parseInt","getAttribute","isNaN","contentEditable","isContentEditable","b","elementDocument","cache","hasDisplayNone","nodeComputedStyle","nodeType","Node","ELEMENT_NODE","cached","list","predicate","find","item","result","defaultView","getComputedStyle","display","parentNode","computedStyle","visibility","Context","fallbackId","localGenerateId","IdProvider","generateId","current","Provider","prefix","_useState","setId"],"mappings":"6EAAA,YACAA,EAAOC,QAAUC,I,iCCDjBF,EAAOC,QAIP,WAGI,IAFA,IAAIE,EAAS,GAEJC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACvC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACRE,EAAeC,KAAKH,EAAQC,KAC5BL,EAAOK,GAAOD,EAAOC,IAKjC,OAAOL,GAfX,IAAIM,EAAiBE,OAAOC,UAAUH,gB;;;;;GCKrC,WACA,aAEA,IAAII,EAAS,GAAGJ,eAGhB,SAASK,IAGR,IAFA,IAAIC,EAAU,GAELX,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIY,EAAMX,UAAUD,GACpB,GAAKY,EAAL,CAEA,IAAIC,EAAOC,EAAUF,GAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BF,EAAQI,KAAKH,QACP,GAAII,MAAMC,QAAQL,IACxB,GAAIA,EAAIV,OAAQ,CACf,IAAIgB,EAAQR,EAAWS,MAAM,KAAMP,GAC/BM,GACHP,EAAQI,KAAKG,SAGT,GAAgB,WAAZL,EAAsB,CAChC,GAAID,EAAIQ,WAAab,OAAOC,UAAUY,WAAaR,EAAIQ,SAASA,WAAWC,SAAS,iBAAkB,CACrGV,EAAQI,KAAKH,EAAIQ,YACjB,SAGD,IAAK,IAAIhB,KAAOQ,EACXH,EAAOH,KAAKM,EAAKR,IAAQQ,EAAIR,IAChCO,EAAQ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,CAClDtU,MAAOoU,GACN5U,EAAMkJ,WA2BI,IApBH,SAAe6L,GACzB,IAAIrV,EAAiB,cACjBkV,EAAa,qBAAWJ,GAExBQ,EAAY,mBAASJ,EAAaA,IAAelV,EAAiBgV,SAAoB7F,GACtF1M,EAAK6S,EAAU,GACfC,EAAQD,EAAU,GAUtB,GARA,qBAAU,WAEH7S,GACH8S,EAAMP,OAGP,IAEEvS,EACL,OAAO4S,EAASA,EAAS,IAAM5S,EAAKA","file":"static/scripts/11-fe79eb1e102215c0e5e1.js","sourcesContent":["/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n","module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import { useEffect } from 'react';\n\nvar clientHydrated = false;\n/**\n * Returns false when serverside rendering and during the first render pass (hydration) in the client.\n * Use this to modify behavior of components when they can be certain they are running client side.\n * Like check a media query during the initial render.\n * */\n\nfunction useClientHydrated() {\n useEffect(function () {\n if (!clientHydrated) clientHydrated = true;\n }, []);\n return clientHydrated;\n}\n\nexport default useClientHydrated;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { polyfill } from 'react-lifecycles-compat';\nimport Portal from 'react-minimalist-portal';\nimport CSSTransition from 'react-transition-group/CSSTransition';\nimport cx from 'classnames';\nimport noScroll from 'no-scroll';\nimport FocusTrap from 'focus-trap-react';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nvar CloseIcon = function CloseIcon(_ref) {\n var classes = _ref.classes,\n classNames = _ref.classNames,\n styles = _ref.styles,\n closeIconSize = _ref.closeIconSize,\n closeIconSvgPath = _ref.closeIconSvgPath,\n onClickCloseIcon = _ref.onClickCloseIcon,\n id = _ref.id;\n return React.createElement(\"button\", {\n className: cx(classes.closeButton, classNames.closeButton),\n style: styles.closeButton,\n onClick: onClickCloseIcon,\n id: id\n }, React.createElement(\"svg\", {\n className: cx(classes.closeIcon, classNames.closeIcon),\n style: styles.closeIcon,\n xmlns: \"http://www.w3.org/2000/svg\",\n width: closeIconSize,\n height: closeIconSize,\n viewBox: \"0 0 36 36\"\n }, closeIconSvgPath));\n};\n\nCloseIcon.propTypes = {\n classNames: PropTypes.object.isRequired,\n styles: PropTypes.object.isRequired,\n classes: PropTypes.object.isRequired,\n closeIconSize: PropTypes.number.isRequired,\n closeIconSvgPath: PropTypes.node.isRequired,\n onClickCloseIcon: PropTypes.func.isRequired,\n id: PropTypes.string\n};\nCloseIcon.defaultProps = {\n id: null\n};\n\nvar _modals = [];\n/**\n * Handle the order of the modals.\n * Inspired by the material-ui implementation.\n */\n\nvar modalManager = {\n /**\n * Return the modals array\n */\n modals: function modals() {\n return _modals;\n },\n\n /**\n * Register a new modal\n */\n add: function add(modal) {\n if (_modals.indexOf(modal) === -1) {\n _modals.push(modal);\n }\n },\n\n /**\n * Remove a modal\n */\n remove: function remove(modal) {\n var index = _modals.indexOf(modal);\n\n if (index !== -1) {\n _modals.splice(index, 1);\n }\n },\n\n /**\n * Check if the modal is the first one on the screen\n */\n isTopModal: function isTopModal(modal) {\n return !!_modals.length && _modals[_modals.length - 1] === modal;\n }\n};\n\nfunction styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar css = \".styles_overlay__CLSq- {\\n background: rgba(0, 0, 0, 0.75);\\n display: flex;\\n align-items: flex-start;\\n position: fixed;\\n top: 0;\\n left: 0;\\n right: 0;\\n bottom: 0;\\n overflow-y: auto;\\n overflow-x: hidden;\\n z-index: 1000;\\n padding: 1.2rem;\\n}\\n.styles_overlayCenter__YHoO7 {\\n align-items: center;\\n}\\n.styles_modal__gNwvD {\\n max-width: 800px;\\n position: relative;\\n padding: 1.2rem;\\n background: #ffffff;\\n background-clip: padding-box;\\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.25);\\n margin: auto;\\n}\\n.styles_closeButton__20ID4 {\\n position: absolute;\\n top: 14px;\\n right: 14px;\\n border: none;\\n padding: 0;\\n background-color: transparent;\\n display: flex;\\n}\\n.styles_closeIcon__1QwbI {\\n}\\n.styles_transitionEnter__3j_-a {\\n opacity: 0.01;\\n}\\n.styles_transitionEnterActive___eQs7 {\\n opacity: 1;\\n transition: opacity 500ms cubic-bezier(0.23, 1, 0.32, 1);\\n}\\n.styles_transitionExit__1KmEf {\\n opacity: 1;\\n}\\n.styles_transitionExitActive__1nQXw {\\n opacity: 0.01;\\n transition: opacity 500ms cubic-bezier(0.23, 1, 0.32, 1);\\n}\\n\";\nvar cssClasses = {\"overlay\":\"styles_overlay__CLSq-\",\"overlayCenter\":\"styles_overlayCenter__YHoO7\",\"modal\":\"styles_modal__gNwvD\",\"closeButton\":\"styles_closeButton__20ID4\",\"closeIcon\":\"styles_closeIcon__1QwbI\",\"transitionEnter\":\"styles_transitionEnter__3j_-a\",\"transitionEnterActive\":\"styles_transitionEnterActive___eQs7\",\"transitionExit\":\"styles_transitionExit__1KmEf\",\"transitionExitActive\":\"styles_transitionExitActive__1nQXw\"};\nstyleInject(css,{\"insertAt\":\"top\"});\n\nvar Modal =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Modal, _Component);\n\n function Modal() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Modal);\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(Modal)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"shouldClose\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n showPortal: _this.props.open\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleOpen\", function () {\n modalManager.add(_assertThisInitialized(_assertThisInitialized(_this)));\n\n if (_this.props.blockScroll) {\n Modal.blockScroll();\n }\n\n document.addEventListener('keydown', _this.handleKeydown);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleClose\", function () {\n modalManager.remove(_assertThisInitialized(_assertThisInitialized(_this)));\n\n if (_this.props.blockScroll) {\n _this.unblockScroll();\n }\n\n document.removeEventListener('keydown', _this.handleKeydown);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleClickOverlay\", function (event) {\n if (_this.shouldClose === null) {\n _this.shouldClose = true;\n }\n\n if (!_this.shouldClose) {\n _this.shouldClose = null;\n return;\n }\n\n if (_this.props.onOverlayClick) {\n _this.props.onOverlayClick(event);\n }\n\n if (_this.props.closeOnOverlayClick) {\n _this.props.onClose(event);\n }\n\n _this.shouldClose = null;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleClickCloseIcon\", function (event) {\n _this.props.onClose(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleKeydown\", function (event) {\n // Only the last modal need to be escaped when pressing the esc key\n if (event.keyCode !== 27 || !modalManager.isTopModal(_assertThisInitialized(_assertThisInitialized(_this)))) {\n return;\n }\n\n if (_this.props.onEscKeyDown) {\n _this.props.onEscKeyDown(event);\n }\n\n if (_this.props.closeOnEsc) {\n _this.props.onClose(event);\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleModalEvent\", function () {\n _this.shouldClose = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleEntered\", function () {\n if (_this.props.onEntered) {\n _this.props.onEntered();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleExited\", function () {\n if (_this.props.onExited) {\n _this.props.onExited();\n }\n\n _this.setState({\n showPortal: false\n });\n\n if (_this.props.blockScroll) {\n _this.unblockScroll();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"unblockScroll\", function () {\n // Restore the scroll only if there is no modal on the screen\n if (modalManager.modals().length === 0) {\n noScroll.off();\n }\n });\n\n return _this;\n }\n\n _createClass(Modal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // Block scroll when initial prop is open\n if (this.props.open) {\n this.handleOpen();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (prevState.showPortal && !this.state.showPortal) {\n this.handleClose();\n } else if (!prevProps.open && this.props.open) {\n this.handleOpen();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.open) {\n this.handleClose();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n open = _this$props.open,\n center = _this$props.center,\n classes = _this$props.classes,\n classNames = _this$props.classNames,\n styles = _this$props.styles,\n showCloseIcon = _this$props.showCloseIcon,\n closeIconSize = _this$props.closeIconSize,\n closeIconSvgPath = _this$props.closeIconSvgPath,\n animationDuration = _this$props.animationDuration,\n container = _this$props.container,\n focusTrapped = _this$props.focusTrapped,\n focusTrapOptions = _this$props.focusTrapOptions,\n overlayId = _this$props.overlayId,\n modalId = _this$props.modalId,\n closeIconId = _this$props.closeIconId;\n var showPortal = this.state.showPortal;\n\n if (!showPortal) {\n return null;\n }\n\n return React.createElement(Portal, {\n container: container\n }, React.createElement(CSSTransition, {\n in: open,\n appear: true,\n classNames: {\n appear: classNames.transitionEnter || classes.transitionEnter,\n appearActive: classNames.transitionEnterActive || classes.transitionEnterActive,\n enter: classNames.transitionEnter || classes.transitionEnter,\n enterActive: classNames.transitionEnterActive || classes.transitionEnterActive,\n exit: classNames.transitionExit || classes.transitionExit,\n exitActive: classNames.transitionExitActive || classes.transitionExitActive\n },\n timeout: animationDuration,\n onEntered: this.handleEntered,\n onExited: this.handleExited\n }, React.createElement(\"div\", {\n className: cx(classes.overlay, center ? classes.overlayCenter : null, classNames.overlay),\n onClick: this.handleClickOverlay,\n style: styles.overlay,\n id: overlayId\n }, focusTrapped ? React.createElement(\"div\", {\n className: cx(classes.modal, classNames.modal),\n style: styles.modal,\n onMouseDown: this.handleModalEvent,\n onMouseUp: this.handleModalEvent,\n onClick: this.handleModalEvent,\n id: modalId\n }, React.createElement(FocusTrap, {\n focusTrapOptions: _objectSpread({}, {\n clickOutsideDeactivates: true\n }, focusTrapOptions)\n }, this.props.children, showCloseIcon && React.createElement(CloseIcon, {\n classes: classes,\n classNames: classNames,\n styles: styles,\n closeIconSize: closeIconSize,\n closeIconSvgPath: closeIconSvgPath,\n onClickCloseIcon: this.handleClickCloseIcon,\n id: closeIconId\n }))) : React.createElement(\"div\", {\n className: cx(classes.modal, classNames.modal),\n style: styles.modal,\n onMouseDown: this.handleModalEvent,\n onMouseUp: this.handleModalEvent,\n onClick: this.handleModalEvent,\n id: modalId\n }, this.props.children, showCloseIcon && React.createElement(CloseIcon, {\n classes: classes,\n classNames: classNames,\n styles: styles,\n closeIconSize: closeIconSize,\n closeIconSvgPath: closeIconSvgPath,\n onClickCloseIcon: this.handleClickCloseIcon,\n id: closeIconId\n })))));\n }\n }], [{\n key: \"blockScroll\",\n value: function blockScroll() {\n noScroll.on();\n }\n }, {\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (!prevState.showPortal && nextProps.open) {\n return {\n showPortal: true\n };\n }\n\n return null;\n }\n }]);\n\n return Modal;\n}(Component);\n\nModal.propTypes = {\n /**\n * Is the modal closable when user press esc key.\n */\n closeOnEsc: PropTypes.bool,\n\n /**\n * Is the modal closable when user click on overlay.\n */\n closeOnOverlayClick: PropTypes.bool,\n\n /**\n * Callback fired when the Modal is open and the animation is finished.\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired when the Modal has exited and the animation is finished.\n */\n onExited: PropTypes.func,\n\n /**\n * Callback fired when the Modal is requested to be closed by a click on the overlay or when user press esc key.\n */\n onClose: PropTypes.func.isRequired,\n\n /**\n * Callback fired when the escape key is pressed.\n */\n onEscKeyDown: PropTypes.func,\n\n /**\n * Callback fired when the overlay is clicked.\n */\n onOverlayClick: PropTypes.func,\n\n /**\n * Control if the modal is open or not.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * An object containing classNames to style the modal, can have properties 'overlay' (classname for overlay div), 'modal' (classname for modal content div), 'closeButton' (classname for the button that contain the close icon), 'closeIcon' (classname for close icon svg). You can customize the transition with 'transitionEnter', 'transitionEnterActive', 'transitionExit', 'transitionExitActive'\n */\n classNames: PropTypes.object,\n\n /**\n * An object containing the styles objects to style the modal, can have properties 'overlay', 'modal', 'closeButton', 'closeIcon'.\n */\n styles: PropTypes.object,\n\n /**\n * The content of the modal.\n */\n children: PropTypes.node,\n\n /**\n * @internal\n */\n classes: PropTypes.object,\n\n /**\n * Should the dialog be centered.\n */\n center: PropTypes.bool,\n\n /**\n * Show the close icon.\n */\n showCloseIcon: PropTypes.bool,\n\n /**\n * Close icon size.\n */\n closeIconSize: PropTypes.number,\n\n /**\n * A valid svg path to show as icon.\n */\n closeIconSvgPath: PropTypes.node,\n\n /**\n * Animation duration in milliseconds.\n */\n animationDuration: PropTypes.number,\n\n /**\n * You can specify a container prop which should be of type `Element`. The portal will be rendered inside that element. The default behavior will create a div node and render it at the at the end of document.body.\n */\n container: PropTypes.object,\n // eslint-disable-line\n\n /**\n * Whether to block scrolling when dialog is open\n */\n blockScroll: PropTypes.bool,\n\n /**\n * When the modal is open, trap focus within it\n */\n focusTrapped: PropTypes.bool,\n\n /**\n * Options to be passed to the focus trap, details available at https://github.com/davidtheclark/focus-trap#focustrap--createfocustrapelement-createoptions\n */\n focusTrapOptions: PropTypes.object,\n\n /**\n * id attribute for overlay\n */\n overlayId: PropTypes.string,\n\n /**\n * id attribute for modal\n */\n modalId: PropTypes.string,\n\n /**\n * id attribute for close icon\n */\n closeIconId: PropTypes.string\n};\nModal.defaultProps = {\n classes: cssClasses,\n closeOnEsc: true,\n closeOnOverlayClick: true,\n onEntered: null,\n onExited: null,\n onEscKeyDown: null,\n onOverlayClick: null,\n showCloseIcon: true,\n closeIconSize: 28,\n closeIconSvgPath: React.createElement(\"path\", {\n d: \"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z\"\n }),\n classNames: {},\n styles: {},\n children: null,\n center: false,\n animationDuration: 500,\n blockScroll: true,\n focusTrapped: false,\n focusTrapOptions: {},\n overlayId: null,\n modalId: null,\n closeIconId: null\n};\npolyfill(Modal);\n\nexport default Modal;\n//# sourceMappingURL=index.es.js.map\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar useCreatePortal = typeof _reactDom2.default.createPortal === 'function';\nvar isBrowser = typeof window !== 'undefined';\n\nvar Portal = function (_Component) {\n _inherits(Portal, _Component);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n\n _createClass(Portal, [{\n key: 'componentWillMount',\n value: function componentWillMount() {\n if (isBrowser) {\n if (!this.props.container) {\n this.container = document.createElement('div');\n document.body.appendChild(this.container);\n } else {\n this.container = this.props.container;\n }\n this.renderLayer();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.renderLayer();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (!useCreatePortal) {\n _reactDom2.default.unmountComponentAtNode(this.container);\n }\n if (!this.props.container) {\n document.body.removeChild(this.container);\n }\n }\n }, {\n key: 'renderLayer',\n value: function renderLayer() {\n if (!useCreatePortal) {\n _reactDom2.default.unstable_renderSubtreeIntoContainer(this, this.props.children, this.container);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n if (useCreatePortal) {\n return _reactDom2.default.createPortal(this.props.children, this.container);\n }\n return null;\n }\n }]);\n\n return Portal;\n}(_react.Component);\n\nPortal.propTypes = {\n children: _propTypes2.default.node, // eslint-disable-line\n container: _propTypes2.default.object // eslint-disable-line\n};\n\nexports.default = Portal;","(function(root) {\n var isOn = false;\n var scrollbarSize;\n var scrollTop;\n\n function getScrollbarSize() {\n if (typeof scrollbarSize !== 'undefined') return scrollbarSize;\n\n var doc = document.documentElement;\n var dummyScroller = document.createElement('div');\n dummyScroller.setAttribute('style', 'width:99px;height:99px;' + 'position:absolute;top:-9999px;overflow:scroll;');\n doc.appendChild(dummyScroller);\n scrollbarSize = dummyScroller.offsetWidth - dummyScroller.clientWidth;\n doc.removeChild(dummyScroller);\n return scrollbarSize;\n }\n\n function hasScrollbar() {\n return document.documentElement.scrollHeight > window.innerHeight;\n }\n\n function on(options) {\n if (typeof document === 'undefined' || isOn) return;\n var doc = document.documentElement;\n scrollTop = window.pageYOffset;\n if (hasScrollbar()) {\n doc.style.width = 'calc(100% - '+ getScrollbarSize() +'px)';\n } else {\n doc.style.width = '100%';\n }\n doc.style.position = 'fixed';\n doc.style.top = -scrollTop + 'px';\n doc.style.overflow = 'hidden';\n isOn = true;\n }\n\n function off() {\n if (typeof document === 'undefined' || !isOn) return;\n var doc = document.documentElement;\n doc.style.width = '';\n doc.style.position = '';\n doc.style.top = '';\n doc.style.overflow = '';\n window.scroll(0, scrollTop);\n isOn = false;\n }\n\n function toggle() {\n if (isOn) {\n off();\n return;\n }\n on();\n }\n\n var noScroll = {\n on: on,\n off: off,\n toggle: toggle,\n };\n\n if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\n module.exports = noScroll;\n } else {\n root.noScroll = noScroll;\n }\n})(this);\n","'use strict';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar React = require('react');\nvar createFocusTrap = require('focus-trap');\n\nvar checkedProps = ['active', 'paused', 'tag', 'focusTrapOptions', '_createFocusTrap'];\n\nvar FocusTrap = function (_React$Component) {\n _inherits(FocusTrap, _React$Component);\n\n function FocusTrap(props) {\n _classCallCheck(this, FocusTrap);\n\n var _this = _possibleConstructorReturn(this, (FocusTrap.__proto__ || Object.getPrototypeOf(FocusTrap)).call(this, props));\n\n _this.setNode = function (el) {\n _this.node = el;\n };\n\n if (typeof document !== 'undefined') {\n _this.previouslyFocusedElement = document.activeElement;\n }\n return _this;\n }\n\n _createClass(FocusTrap, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n // We need to hijack the returnFocusOnDeactivate option,\n // because React can move focus into the element before we arrived at\n // this lifecycle hook (e.g. with autoFocus inputs). So the component\n // captures the previouslyFocusedElement in componentWillMount,\n // then (optionally) returns focus to it in componentWillUnmount.\n var specifiedFocusTrapOptions = this.props.focusTrapOptions;\n var tailoredFocusTrapOptions = {\n returnFocusOnDeactivate: false\n };\n for (var optionName in specifiedFocusTrapOptions) {\n if (!specifiedFocusTrapOptions.hasOwnProperty(optionName)) continue;\n if (optionName === 'returnFocusOnDeactivate') continue;\n tailoredFocusTrapOptions[optionName] = specifiedFocusTrapOptions[optionName];\n }\n\n this.focusTrap = this.props._createFocusTrap(this.node, tailoredFocusTrapOptions);\n if (this.props.active) {\n this.focusTrap.activate();\n }\n if (this.props.paused) {\n this.focusTrap.pause();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n if (prevProps.active && !this.props.active) {\n var returnFocusOnDeactivate = this.props.focusTrapOptions.returnFocusOnDeactivate;\n\n var returnFocus = returnFocusOnDeactivate || false;\n var config = { returnFocus: returnFocus };\n this.focusTrap.deactivate(config);\n } else if (!prevProps.active && this.props.active) {\n this.focusTrap.activate();\n }\n\n if (prevProps.paused && !this.props.paused) {\n this.focusTrap.unpause();\n } else if (!prevProps.paused && this.props.paused) {\n this.focusTrap.pause();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.focusTrap.deactivate();\n if (this.props.focusTrapOptions.returnFocusOnDeactivate !== false && this.previouslyFocusedElement && this.previouslyFocusedElement.focus) {\n this.previouslyFocusedElement.focus();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var elementProps = {\n ref: this.setNode\n };\n\n // This will get id, className, style, etc. -- arbitrary element props\n for (var prop in this.props) {\n if (!this.props.hasOwnProperty(prop)) continue;\n if (checkedProps.indexOf(prop) !== -1) continue;\n elementProps[prop] = this.props[prop];\n }\n\n return React.createElement(this.props.tag, elementProps, this.props.children);\n }\n }]);\n\n return FocusTrap;\n}(React.Component);\n\nFocusTrap.defaultProps = {\n active: true,\n tag: 'div',\n paused: false,\n focusTrapOptions: {},\n _createFocusTrap: createFocusTrap\n};\n\nmodule.exports = FocusTrap;","var tabbable = require('tabbable');\nvar xtend = require('xtend');\n\nvar listeningFocusTrap = null;\n\nfunction focusTrap(element, userOptions) {\n var doc = document;\n var container =\n typeof element === 'string' ? doc.querySelector(element) : element;\n\n var config = xtend(\n {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true\n },\n userOptions\n );\n\n var state = {\n firstTabbableNode: null,\n lastTabbableNode: null,\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false\n };\n\n var trap = {\n activate: activate,\n deactivate: deactivate,\n pause: pause,\n unpause: unpause\n };\n\n return trap;\n\n function activate(activateOptions) {\n if (state.active) return;\n\n updateTabbableNodes();\n\n state.active = true;\n state.paused = false;\n state.nodeFocusedBeforeActivation = doc.activeElement;\n\n var onActivate =\n activateOptions && activateOptions.onActivate\n ? activateOptions.onActivate\n : config.onActivate;\n if (onActivate) {\n onActivate();\n }\n\n addListeners();\n return trap;\n }\n\n function deactivate(deactivateOptions) {\n if (!state.active) return;\n\n removeListeners();\n state.active = false;\n state.paused = false;\n\n var onDeactivate =\n deactivateOptions && deactivateOptions.onDeactivate !== undefined\n ? deactivateOptions.onDeactivate\n : config.onDeactivate;\n if (onDeactivate) {\n onDeactivate();\n }\n\n var returnFocus =\n deactivateOptions && deactivateOptions.returnFocus !== undefined\n ? deactivateOptions.returnFocus\n : config.returnFocusOnDeactivate;\n if (returnFocus) {\n delay(function() {\n tryFocus(state.nodeFocusedBeforeActivation);\n });\n }\n\n return trap;\n }\n\n function pause() {\n if (state.paused || !state.active) return;\n state.paused = true;\n removeListeners();\n }\n\n function unpause() {\n if (!state.paused || !state.active) return;\n state.paused = false;\n addListeners();\n }\n\n function addListeners() {\n if (!state.active) return;\n\n // There can be only one listening focus trap at a time\n if (listeningFocusTrap) {\n listeningFocusTrap.pause();\n }\n listeningFocusTrap = trap;\n\n updateTabbableNodes();\n\n // Delay ensures that the focused element doesn't capture the event\n // that caused the focus trap activation.\n delay(function() {\n tryFocus(getInitialFocusNode());\n });\n doc.addEventListener('focusin', checkFocusIn, true);\n doc.addEventListener('mousedown', checkPointerDown, true);\n doc.addEventListener('touchstart', checkPointerDown, true);\n doc.addEventListener('click', checkClick, true);\n doc.addEventListener('keydown', checkKey, true);\n\n return trap;\n }\n\n function removeListeners() {\n if (!state.active || listeningFocusTrap !== trap) return;\n\n doc.removeEventListener('focusin', checkFocusIn, true);\n doc.removeEventListener('mousedown', checkPointerDown, true);\n doc.removeEventListener('touchstart', checkPointerDown, true);\n doc.removeEventListener('click', checkClick, true);\n doc.removeEventListener('keydown', checkKey, true);\n\n listeningFocusTrap = null;\n\n return trap;\n }\n\n function getNodeForOption(optionName) {\n var optionValue = config[optionName];\n var node = optionValue;\n if (!optionValue) {\n return null;\n }\n if (typeof optionValue === 'string') {\n node = doc.querySelector(optionValue);\n if (!node) {\n throw new Error('`' + optionName + '` refers to no known node');\n }\n }\n if (typeof optionValue === 'function') {\n node = optionValue();\n if (!node) {\n throw new Error('`' + optionName + '` did not return a node');\n }\n }\n return node;\n }\n\n function getInitialFocusNode() {\n var node;\n if (getNodeForOption('initialFocus') !== null) {\n node = getNodeForOption('initialFocus');\n } else if (container.contains(doc.activeElement)) {\n node = doc.activeElement;\n } else {\n node = state.firstTabbableNode || getNodeForOption('fallbackFocus');\n }\n\n if (!node) {\n throw new Error(\n \"You can't have a focus-trap without at least one focusable element\"\n );\n }\n\n return node;\n }\n\n // This needs to be done on mousedown and touchstart instead of click\n // so that it precedes the focus event.\n function checkPointerDown(e) {\n if (container.contains(e.target)) return;\n if (config.clickOutsideDeactivates) {\n deactivate({\n returnFocus: !tabbable.isFocusable(e.target)\n });\n } else {\n e.preventDefault();\n }\n }\n\n // In case focus escapes the trap for some strange reason, pull it back in.\n function checkFocusIn(e) {\n // In Firefox when you Tab out of an iframe the Document is briefly focused.\n if (container.contains(e.target) || e.target instanceof Document) {\n return;\n }\n e.stopImmediatePropagation();\n tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n }\n\n function checkKey(e) {\n if (config.escapeDeactivates !== false && isEscapeEvent(e)) {\n e.preventDefault();\n deactivate();\n return;\n }\n if (isTabEvent(e)) {\n checkTab(e);\n return;\n }\n }\n\n // Hijack Tab events on the first and last focusable nodes of the trap,\n // in order to prevent focus from escaping. If it escapes for even a\n // moment it can end up scrolling the page and causing confusion so we\n // kind of need to capture the action at the keydown phase.\n function checkTab(e) {\n updateTabbableNodes();\n if (e.shiftKey && e.target === state.firstTabbableNode) {\n e.preventDefault();\n tryFocus(state.lastTabbableNode);\n return;\n }\n if (!e.shiftKey && e.target === state.lastTabbableNode) {\n e.preventDefault();\n tryFocus(state.firstTabbableNode);\n return;\n }\n }\n\n function checkClick(e) {\n if (config.clickOutsideDeactivates) return;\n if (container.contains(e.target)) return;\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n\n function updateTabbableNodes() {\n var tabbableNodes = tabbable(container);\n state.firstTabbableNode = tabbableNodes[0] || getInitialFocusNode();\n state.lastTabbableNode =\n tabbableNodes[tabbableNodes.length - 1] || getInitialFocusNode();\n }\n\n function tryFocus(node) {\n if (node === doc.activeElement) return;\n if (!node || !node.focus) {\n tryFocus(getInitialFocusNode());\n return;\n }\n\n node.focus();\n state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n }\n}\n\nfunction isSelectableInput(node) {\n return (\n node.tagName &&\n node.tagName.toLowerCase() === 'input' &&\n typeof node.select === 'function'\n );\n}\n\nfunction isEscapeEvent(e) {\n return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;\n}\n\nfunction isTabEvent(e) {\n return e.key === 'Tab' || e.keyCode === 9;\n}\n\nfunction delay(fn) {\n return setTimeout(fn, 0);\n}\n\nmodule.exports = focusTrap;\n","var candidateSelectors = [\n 'input',\n 'select',\n 'textarea',\n 'a[href]',\n 'button',\n '[tabindex]',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]:not([contenteditable=\"false\"])',\n];\nvar candidateSelector = candidateSelectors.join(',');\n\nvar matches = typeof Element === 'undefined'\n ? function () {}\n : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\n\nfunction tabbable(el, options) {\n options = options || {};\n\n var elementDocument = el.ownerDocument || el;\n var regularTabbables = [];\n var orderedTabbables = [];\n\n var untouchabilityChecker = new UntouchabilityChecker(elementDocument);\n var candidates = el.querySelectorAll(candidateSelector);\n\n if (options.includeContainer) {\n if (matches.call(el, candidateSelector)) {\n candidates = Array.prototype.slice.apply(candidates);\n candidates.unshift(el);\n }\n }\n\n var i, candidate, candidateTabindex;\n for (i = 0; i < candidates.length; i++) {\n candidate = candidates[i];\n\n if (!isNodeMatchingSelectorTabbable(candidate, untouchabilityChecker)) continue;\n\n candidateTabindex = getTabindex(candidate);\n if (candidateTabindex === 0) {\n regularTabbables.push(candidate);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n node: candidate,\n });\n }\n }\n\n var tabbableNodes = orderedTabbables\n .sort(sortOrderedTabbables)\n .map(function(a) { return a.node })\n .concat(regularTabbables);\n\n return tabbableNodes;\n}\n\ntabbable.isTabbable = isTabbable;\ntabbable.isFocusable = isFocusable;\n\nfunction isNodeMatchingSelectorTabbable(node, untouchabilityChecker) {\n if (\n !isNodeMatchingSelectorFocusable(node, untouchabilityChecker)\n || isNonTabbableRadio(node)\n || getTabindex(node) < 0\n ) {\n return false;\n }\n return true;\n}\n\nfunction isTabbable(node, untouchabilityChecker) {\n if (!node) throw new Error('No node provided');\n if (matches.call(node, candidateSelector) === false) return false;\n return isNodeMatchingSelectorTabbable(node, untouchabilityChecker);\n}\n\nfunction isNodeMatchingSelectorFocusable(node, untouchabilityChecker) {\n untouchabilityChecker = untouchabilityChecker || new UntouchabilityChecker(node.ownerDocument || node);\n if (\n node.disabled\n || isHiddenInput(node)\n || untouchabilityChecker.isUntouchable(node)\n ) {\n return false;\n }\n return true;\n}\n\nvar focusableCandidateSelector = candidateSelectors.concat('iframe').join(',');\nfunction isFocusable(node, untouchabilityChecker) {\n if (!node) throw new Error('No node provided');\n if (matches.call(node, focusableCandidateSelector) === false) return false;\n return isNodeMatchingSelectorFocusable(node, untouchabilityChecker);\n}\n\nfunction getTabindex(node) {\n var tabindexAttr = parseInt(node.getAttribute('tabindex'), 10);\n if (!isNaN(tabindexAttr)) return tabindexAttr;\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n if (isContentEditable(node)) return 0;\n return node.tabIndex;\n}\n\nfunction sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n}\n\n// Array.prototype.find not available in IE.\nfunction find(list, predicate) {\n for (var i = 0, length = list.length; i < length; i++) {\n if (predicate(list[i])) return list[i];\n }\n}\n\nfunction isContentEditable(node) {\n return node.contentEditable === 'true';\n}\n\nfunction isInput(node) {\n return node.tagName === 'INPUT';\n}\n\nfunction isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n}\n\nfunction isRadio(node) {\n return isInput(node) && node.type === 'radio';\n}\n\nfunction isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n}\n\nfunction getCheckedRadio(nodes) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked) {\n return nodes[i];\n }\n }\n}\n\nfunction isTabbableRadio(node) {\n if (!node.name) return true;\n // This won't account for the edge case where you have radio groups with the same\n // in separate forms on the same page.\n var radioSet = node.ownerDocument.querySelectorAll('input[type=\"radio\"][name=\"' + node.name + '\"]');\n var checked = getCheckedRadio(radioSet);\n return !checked || checked === node;\n}\n\n// An element is \"untouchable\" if *it or one of its ancestors* has\n// `visibility: hidden` or `display: none`.\nfunction UntouchabilityChecker(elementDocument) {\n this.doc = elementDocument;\n // Node cache must be refreshed on every check, in case\n // the content of the element has changed. The cache contains tuples\n // mapping nodes to their boolean result.\n this.cache = [];\n}\n\n// getComputedStyle accurately reflects `visibility: hidden` of ancestors\n// but not `display: none`, so we need to recursively check parents.\nUntouchabilityChecker.prototype.hasDisplayNone = function hasDisplayNone(node, nodeComputedStyle) {\n if (node.nodeType !== Node.ELEMENT_NODE) return false;\n\n // Search for a cached result.\n var cached = find(this.cache, function(item) {\n return item === node;\n });\n if (cached) return cached[1];\n\n nodeComputedStyle = nodeComputedStyle || this.doc.defaultView.getComputedStyle(node);\n\n var result = false;\n\n if (nodeComputedStyle.display === 'none') {\n result = true;\n } else if (node.parentNode) {\n result = this.hasDisplayNone(node.parentNode);\n }\n\n this.cache.push([node, result]);\n\n return result;\n}\n\nUntouchabilityChecker.prototype.isUntouchable = function isUntouchable(node) {\n if (node === this.doc.documentElement) return false;\n var computedStyle = this.doc.defaultView.getComputedStyle(node);\n if (this.hasDisplayNone(node, computedStyle)) return true;\n return computedStyle.visibility === 'hidden';\n}\n\nmodule.exports = tabbable;\n","import { useRef, useCallback, createElement, useContext, useState, useEffect, createContext } from 'react';\nimport useClientHydrated from '@charlietango/use-client-hydrated';\n\nvar Context = /*#__PURE__*/createContext(undefined);\n// Client side fallback \"id\" for cases where the application is not surrounded with an \nvar fallbackId = 0;\n\nvar localGenerateId = function localGenerateId() {\n return (++fallbackId).toString();\n};\n\nvar resetLocalId = function resetLocalId() {\n return fallbackId = 0;\n};\nvar IdProvider = function IdProvider(props) {\n var ref = useRef(0);\n var generateId = useCallback(function () {\n return (++ref.current).toString();\n }, []);\n return /*#__PURE__*/createElement(Context.Provider, {\n value: generateId\n }, props.children);\n};\n/**\n * Return a deterministic Id for this Hook. Optionally add prefix to the id\n * @param prefix\n */\n\nvar useId = function useId(prefix) {\n var clientHydrated = useClientHydrated();\n var generateId = useContext(Context); // Prefer generating the id from the IdProvider context, but fallback to the localGenerateId method\n\n var _useState = useState(generateId ? generateId() : clientHydrated ? localGenerateId() : undefined),\n id = _useState[0],\n setId = _useState[1];\n\n useEffect(function () {\n // If the Provider is not included, we fallback to generating an id as a client effect.\n if (!id) {\n setId(localGenerateId());\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, []); // If the id isn't set yet, return undefined.\n\n if (!id) return undefined;\n return prefix ? prefix + \"_\" + id : id;\n};\n\nexport default useId;\nexport { IdProvider, resetLocalId };\n"],"sourceRoot":""}