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SAAU1G,GAC/C+F,EAAa0D,EAAKhK,MAAQ,SAC1BmD,EAAQ6G,EAAK7G,OAAS,QACtBkD,EAAuB,iBAAT2D,EAAoBA,EAAOA,EAAK3D,MAAQ,MACtDuD,EAAQzG,EAAQ,KAAO5C,EAAMI,OAAO2F,WAAWA,IAAeA,GAAc,IAAMW,EAClFkD,EAAkB5F,GAAcwF,EAAsBC,EAAMzJ,GAC5DsE,EAAasF,GAAmB5J,EAAMoE,IAAIC,sBAAwBrE,EAAMI,OAAOsJ,YAAY1J,EAAMoE,IAAIC,sBAmCzG,MAjCa,QAATyB,GAA2B,WAATA,GAA8B,SAATA,GAA4B,UAATA,GAC5D3B,EAAOI,KAAK,UAAYuB,EAAO,KAAOuD,EAAQ,KAE1CO,GACFzF,EAAOI,MAAK,QAAgBD,EAAYsF,KAExB,QAAT9D,GAA2B,UAATA,GAC3B3B,EAAOI,MAAK,IAAAjE,KAAI,CAAC,iBAAkB,IAAK,KAAMwF,EAAMuD,IAEhDO,GACFzF,EAAOI,MAAK,QAAgBD,EAAYsF,KAExB,aAAT9D,GACT3B,EAAOI,MAAK,IAAAjE,KAAI,CAAC,eAAgB,iBAAkB,KAAM+I,EAAOA,IAE5DO,GACFzF,EAAOI,MAAK,QAAgBD,EAAYsF,KAExB,eAAT9D,GACT3B,EAAOI,MAAK,IAAAjE,KAAI,CAAC,cAAe,kBAAmB,KAAM+I,EAAOA,IAE5DO,GACFzF,EAAOI,MAAK,QAAgBD,EAAYsF,KAExB,YAAT9D,IAET3B,EAAOI,MAAK,IAAAjE,KAAI,CAAC,UAAW,KAAM+I,IAE9BO,GACFzF,EAAOI,MAAK,QAAgBD,EAAYsF,KAIrCzF","sources":["webpack://ace-industrial-academy/./node_modules/grommet/es6/components/Keyboard/Keyboard.js","webpack://ace-industrial-academy/./node_modules/grommet/es6/components/Box/StyledBox.js","webpack://ace-industrial-academy/./node_modules/grommet/es6/utils/animation.js","webpack://ace-industrial-academy/./node_modules/grommet/es6/components/Box/propTypes.js","webpack://ace-industrial-academy/./node_modules/grommet/es6/components/Box/Box.js","webpack://ace-industrial-academy/./node_modules/grommet/es6/utils/border.js"],"sourcesContent":["var _excluded = [\"capture\", \"target\", \"children\", \"onKeyDown\"];\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nimport { Children, cloneElement, useCallback, useEffect } from 'react';\nimport { KeyboardPropTypes } from './propTypes';\nvar KEYS = {\n 8: 'onBackspace',\n 9: 'onTab',\n 13: 'onEnter',\n 27: 'onEsc',\n 32: 'onSpace',\n 37: 'onLeft',\n 38: 'onUp',\n 39: 'onRight',\n 40: 'onDown',\n 188: 'onComma',\n 16: 'onShift'\n};\n\nvar Keyboard = function Keyboard(_ref) {\n var capture = _ref.capture,\n target = _ref.target,\n children = _ref.children,\n onKeyDown = _ref.onKeyDown,\n restProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var onKeyDownHandler = useCallback(function (event) {\n var key = event.keyCode ? event.keyCode : event.which;\n var callbackName = KEYS[key];\n\n for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n rest[_key - 1] = arguments[_key];\n }\n\n if (callbackName && restProps[callbackName]) {\n restProps[callbackName].apply(restProps, [event].concat(rest));\n }\n\n if (onKeyDown) {\n onKeyDown.apply(void 0, [event].concat(rest));\n }\n }, [onKeyDown, restProps]);\n useEffect(function () {\n if (target === 'document') {\n document.addEventListener('keydown', onKeyDownHandler, capture);\n }\n\n return function () {\n if (target === 'document') {\n document.removeEventListener('keydown', onKeyDownHandler, capture);\n }\n };\n }, [capture, onKeyDownHandler, target]);\n return target === 'document' ? children : /*#__PURE__*/cloneElement(Children.only(children), {\n onKeyDown: onKeyDownHandler\n });\n};\n\nexport { Keyboard };","var _FLEX_MAP;\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nimport styled, { css } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { alignContentStyle, alignStyle, backgroundStyle, borderStyle, breakpointStyle, edgeStyle, fillStyle, focusStyle, genericStyles, getBreakpointStyle, getHoverIndicatorStyle, heightStyle, overflowStyle, parseMetricToNum, responsiveBorderStyle, widthStyle } from '../../utils';\nimport { roundStyle } from '../../utils/styles';\nimport { animationBounds, animationObjectStyle } from '../../utils/animation';\nvar BASIS_MAP = {\n auto: 'auto',\n full: '100%',\n '1/2': '50%',\n '1/4': '25%',\n '2/4': '50%',\n '3/4': '75%',\n '1/3': '33.33%',\n '2/3': '66.66%'\n};\nvar basisStyle = css([\"flex-basis:\", \";\"], function (props) {\n return BASIS_MAP[props.basis] || props.theme.global.size[props.basis] || props.basis;\n}); // min-width and min-height needed because of this\n// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size\n// we assume we are in the context of a Box going the other direction\n// TODO: revisit this\n\nvar directionStyle = function directionStyle(direction, theme) {\n var styles = [css([\"min-width:0;min-height:0;flex-direction:\", \";\"], direction === 'row-responsive' ? 'row' : direction)];\n\n if (direction === 'row-responsive' && theme.box.responsiveBreakpoint) {\n var breakpoint = getBreakpointStyle(theme, theme.box.responsiveBreakpoint);\n\n if (breakpoint) {\n styles.push(breakpointStyle(breakpoint, \"\\n flex-direction: column;\\n flex-basis: auto;\\n justify-content: flex-start;\\n align-items: stretch;\\n \"));\n }\n }\n\n return styles;\n};\n\nvar elevationStyle = function elevationStyle(elevation) {\n return css([\"box-shadow:\", \";\"], function (props) {\n return props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][elevation];\n });\n};\n\nvar FLEX_MAP = (_FLEX_MAP = {}, _FLEX_MAP[true] = '1 1', _FLEX_MAP[false] = '0 0', _FLEX_MAP.grow = '1 0', _FLEX_MAP.shrink = '0 1', _FLEX_MAP);\n\nvar flexGrowShrinkProp = function flexGrowShrinkProp(flex) {\n if (typeof flex === 'boolean' || typeof flex === 'string') {\n return FLEX_MAP[flex];\n }\n\n return (flex.grow ? flex.grow : 0) + \" \" + (flex.shrink ? flex.shrink : 0);\n};\n\nvar flexStyle = css([\"flex:\", \";\"], function (props) {\n return \"\" + flexGrowShrinkProp(props.flex) + (props.flex !== true && !props.basis ? ' auto' : '');\n});\nvar JUSTIFY_MAP = {\n around: 'space-around',\n between: 'space-between',\n center: 'center',\n end: 'flex-end',\n evenly: 'space-evenly',\n start: 'flex-start'\n};\nvar justifyStyle = css([\"justify-content:\", \";\"], function (props) {\n return JUSTIFY_MAP[props.justify];\n});\nvar WRAP_MAP = {\n \"true\": 'wrap',\n reverse: 'wrap-reverse'\n};\nvar wrapStyle = css([\"flex-wrap:\", \";\"], function (props) {\n return WRAP_MAP[props.wrapProp];\n});\n\nvar animationItemStyle = function animationItemStyle(item, theme) {\n if (typeof item === 'string') {\n return animationObjectStyle({\n type: item\n }, theme);\n }\n\n if (Array.isArray(item)) {\n return item.reduce(function (style, a, index) {\n return css([\"\", \"\", \" \", \"\"], style, index > 0 ? ',' : '', animationItemStyle(a, theme));\n }, '');\n }\n\n if (typeof item === 'object') {\n return animationObjectStyle(item, theme);\n }\n\n return '';\n};\n\nvar animationAncilaries = function animationAncilaries(animation) {\n if (animation.type === 'flipIn' || animation.type === 'flipOut') {\n return 'perspective: 1000px; transform-style: preserve-3d;';\n }\n\n return '';\n};\n\nvar animationObjectInitialStyle = function animationObjectInitialStyle(animation) {\n var bounds = animationBounds(animation.type, animation.size);\n\n if (bounds) {\n return bounds[0] + \" \" + animationAncilaries(animation);\n }\n\n return '';\n};\n\nvar animationInitialStyle = function animationInitialStyle(item) {\n if (typeof item === 'string') {\n return animationObjectInitialStyle({\n type: item\n });\n }\n\n if (Array.isArray(item)) {\n return item.map(function (a) {\n return typeof a === 'string' ? animationObjectInitialStyle({\n type: a\n }) : animationObjectInitialStyle(a);\n }).join('');\n }\n\n if (typeof item === 'object') {\n return animationObjectInitialStyle(item);\n }\n\n return '';\n};\n\nvar animationStyle = css([\"\", \";\"], function (props) {\n return css([\"\", \" animation:\", \";\"], animationInitialStyle(props.animation), animationItemStyle(props.animation, props.theme));\n});\nvar interactiveStyle = css([\"cursor:pointer;&:hover{\", \" \", \"}\"], function (props) {\n var _props$kindProp;\n\n return ((_props$kindProp = props.kindProp) == null ? void 0 : _props$kindProp.hover) && getHoverIndicatorStyle(props.kindProp.hover, props.theme);\n}, function (props) {\n return props.hoverIndicator && getHoverIndicatorStyle(props.hoverIndicator, props.theme);\n}); // NOTE: basis must be after flex! Otherwise, flex overrides basis\n\nvar StyledBox = styled.div.withConfig({\n displayName: \"StyledBox\",\n componentId: \"sc-13pk1d4-0\"\n})([\"display:flex;box-sizing:border-box;\", \";\", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \"\"], function (props) {\n return !props.basis && 'max-width: 100%;';\n}, genericStyles, function (props) {\n return props.align && alignStyle;\n}, function (props) {\n return props.alignContent && alignContentStyle;\n}, function (props) {\n return props.background && backgroundStyle(props.background, props.theme);\n}, function (props) {\n return props.border && (Array.isArray(props.border) ? props.border.map(function (border) {\n return borderStyle(border, props.responsive, props.theme);\n }) : borderStyle(props.border, props.responsive, props.theme));\n}, function (props) {\n return props.directionProp && directionStyle(props.directionProp, props.theme);\n}, function (props) {\n return props.heightProp && heightStyle(props.heightProp, props.theme);\n}, function (props) {\n return props.widthProp && widthStyle(props.widthProp, props.theme);\n}, function (props) {\n return props.flex !== undefined && flexStyle;\n}, function (props) {\n return props.basis && basisStyle;\n}, function (props) {\n return props.fillProp && fillStyle(props.fillProp);\n}, function (props) {\n return props.justify && justifyStyle;\n}, function (props) {\n return props.pad && edgeStyle('padding', props.pad, props.responsive, props.theme.box.responsiveBreakpoint, props.theme);\n}, function (props) {\n return props.round && roundStyle(props.round, props.responsive, props.theme);\n}, function (props) {\n return props.wrapProp && wrapStyle;\n}, function (props) {\n return props.overflowProp && overflowStyle(props.overflowProp);\n}, function (props) {\n return props.elevationProp && elevationStyle(props.elevationProp);\n}, function (props) {\n return props.animation && animationStyle;\n}, function (props) {\n return props.onClick && interactiveStyle;\n}, function (props) {\n return props.onClick && props.focus && props.focusIndicator !== false && focusStyle();\n}, function (props) {\n return props.theme.box && props.theme.box.extend;\n}, function (props) {\n return props.kindProp && props.kindProp.extend;\n});\n\nvar gapStyle = function gapStyle(directionProp, gap, responsive, border, theme) {\n var metric = theme.global.edgeSize[gap] || gap;\n var breakpoint = getBreakpointStyle(theme, theme.box.responsiveBreakpoint);\n var responsiveMetric = responsive && breakpoint && breakpoint.edgeSize[gap];\n var styles = [];\n\n if (directionProp === 'column' || directionProp === 'column-reverse') {\n styles.push(\"height: \" + metric + \";\");\n\n if (responsiveMetric) {\n styles.push(breakpointStyle(breakpoint, \"height: \" + responsiveMetric + \";\"));\n }\n } else {\n styles.push(\"width: \" + metric + \";\");\n\n if (responsiveMetric) {\n if (directionProp === 'row' || directionProp === 'row-reverse') {\n styles.push(breakpointStyle(breakpoint, \"width: \" + responsiveMetric + \";\"));\n } else if (directionProp === 'row-responsive') {\n styles.push(breakpointStyle(breakpoint, \"\\n width: auto;\\n height: \" + responsiveMetric + \";\\n \"));\n }\n }\n }\n\n if (border === 'between' || border && border.side === 'between') {\n var borderSize = border.size || 'xsmall';\n var borderMetric = theme.global.borderSize[borderSize] || borderSize;\n var borderOffset = parseMetricToNum(metric) / 2 - parseMetricToNum(borderMetric) / 2 + \"px\";\n var responsiveBorderMetric = responsive && breakpoint && (breakpoint.borderSize[borderSize] || borderSize);\n var responsiveBorderOffset = responsiveBorderMetric && parseMetricToNum(responsiveMetric) / 2 - parseMetricToNum(responsiveBorderMetric) / 2 + \"px\";\n\n if (directionProp === 'column' || directionProp === 'column-reverse') {\n var adjustedBorder = typeof border === 'string' ? 'top' : _extends({}, border, {\n side: 'top'\n });\n styles.push(css([\"position:relative;&:after{content:'';position:absolute;width:100%;top:\", \";\", \"}\"], borderOffset, borderStyle(adjustedBorder, responsive, theme)));\n\n if (responsiveBorderOffset) {\n styles.push(breakpointStyle(breakpoint, \"\\n &:after {\\n content: '';\\n top: \" + responsiveBorderOffset + \";\\n }\"));\n }\n } else {\n var _adjustedBorder = typeof border === 'string' ? 'left' : _extends({}, border, {\n side: 'left'\n });\n\n styles.push(css([\"position:relative;&:after{content:'';position:absolute;height:100%;left:\", \";\", \"}\"], borderOffset, borderStyle(_adjustedBorder, directionProp !== 'row-responsive' && responsive, theme)));\n\n if (responsiveBorderOffset) {\n if (directionProp === 'row' || directionProp === 'row-reverse') {\n styles.push(breakpointStyle(breakpoint, \"\\n &:after {\\n content: '';\\n left: \" + responsiveBorderOffset + \";\\n }\"));\n } else if (directionProp === 'row-responsive') {\n var adjustedBorder2 = typeof border === 'string' ? 'top' : _extends({}, border, {\n side: 'top'\n });\n styles.push(breakpointStyle(breakpoint, \"\\n &:after {\\n content: '';\\n height: auto;\\n left: unset;\\n width: 100%;\\n top: \" + responsiveBorderOffset + \";\\n border-left: none;\\n \" + responsiveBorderStyle(adjustedBorder2, theme) + \"\\n }\"));\n }\n }\n }\n }\n\n return styles;\n};\n\nStyledBox.defaultProps = {};\nObject.setPrototypeOf(StyledBox.defaultProps, defaultProps);\nvar StyledBoxGap = styled.div.withConfig({\n displayName: \"StyledBox__StyledBoxGap\",\n componentId: \"sc-13pk1d4-1\"\n})([\"flex:0 0 auto;align-self:stretch;\", \";\"], function (props) {\n return props.gap && gapStyle(props.directionProp, props.gap, props.responsive, props.border, props.theme);\n});\nStyledBoxGap.defaultProps = {};\nObject.setPrototypeOf(StyledBoxGap.defaultProps, defaultProps);\nexport { StyledBox, StyledBoxGap };","import { css, keyframes } from 'styled-components';\nvar PULSE_SIZES = {\n xsmall: 1.001,\n small: 1.01,\n medium: 1.1,\n large: 1.5,\n xlarge: 2\n};\nvar SLIDE_SIZES = {\n xsmall: 1,\n small: 5,\n medium: 10,\n large: 50,\n xlarge: 200\n};\nvar JIGGLE_SIZES = {\n xsmall: 0.1,\n small: 1,\n medium: 5,\n large: 400,\n xlarge: 1000\n};\nvar ZOOM_SIZES = {\n xsmall: 0.001,\n small: 0.01,\n medium: 0.05,\n large: 0.1,\n xlarge: 0.5\n};\nexport var animationBounds = function animationBounds(type, size) {\n if (size === void 0) {\n size = 'medium';\n }\n\n if (type === 'draw') {\n return ['', \"stroke-dashoffset: 0\"];\n }\n\n if (type === 'fadeIn') {\n return ['opacity: 0;', 'opacity: 1;'];\n }\n\n if (type === 'fadeOut') {\n return ['opacity: 1;', 'opacity: 0;'];\n }\n\n if (type === 'jiggle') {\n var deg = JIGGLE_SIZES[size];\n return [\"transform: rotate(-\" + deg + \"deg);\", \"transform: rotate(\" + deg + \"deg);\"];\n }\n\n if (type === 'pulse') {\n return ['transform: scale(1);', \"transform: scale(\" + PULSE_SIZES[size] + \")\"];\n }\n\n if (type === 'rotateRight') {\n return [\"transform: rotate(0deg);\", \"transform: rotate(359deg);\"];\n }\n\n if (type === 'rotateLeft') {\n return [\"transform: rotate(0deg);\", \"transform: rotate(-359deg);\"];\n }\n\n if (type === 'flipIn') {\n return ['transform: rotateY(90deg);', 'transform: rotateY(0);'];\n }\n\n if (type === 'flipOut') {\n return ['transform: rotateY(0);', 'transform: rotateY(90deg);'];\n }\n\n if (type === 'slideDown') {\n return [\"transform: translateY(-\" + SLIDE_SIZES[size] + \"%);\", 'transform: none;'];\n }\n\n if (type === 'slideLeft') {\n return [\"transform: translateX(\" + SLIDE_SIZES[size] + \"%);\", 'transform: none;'];\n }\n\n if (type === 'slideRight') {\n return [\"transform: translateX(-\" + SLIDE_SIZES[size] + \"%);\", 'transform: none;'];\n }\n\n if (type === 'slideUp') {\n return [\"transform: translateY(\" + SLIDE_SIZES[size] + \"%);\", 'transform: none;'];\n }\n\n if (type === 'zoomIn') {\n return [\"transform: scale(\" + (1 - ZOOM_SIZES[size]) + \");\", 'transform: none;'];\n }\n\n if (type === 'zoomOut') {\n return [\"transform: scale(\" + (1 + ZOOM_SIZES[size]) + \");\", 'transform: none;'];\n }\n\n return [];\n};\nexport var normalizeTiming = function normalizeTiming(time, defaultTiming) {\n return typeof time === 'number' ? time / 1000.0 + \"s\" : time || defaultTiming;\n};\nexport var animationEnding = function animationEnding(type) {\n if (type === 'draw') {\n return 'linear forwards';\n }\n\n if (type === 'jiggle') {\n return 'alternate infinite';\n }\n\n if (type === 'pulse') {\n return 'alternate infinite';\n }\n\n if (type === 'rotateRight' || type === 'rotateLeft') {\n return 'infinite linear';\n }\n\n return 'forwards';\n};\nexport var animationObjectStyle = function animationObjectStyle(animation, theme, themeObj) {\n var bounds = animationBounds(animation.type, animation.size);\n var animationTheme = themeObj && themeObj.animation || theme.global.animation;\n\n if (bounds) {\n var animationTransition = css([\"from{\", \";}to{\", \";}\"], bounds[0], bounds[1]);\n\n var defaultDuration = function defaultDuration() {\n return normalizeTiming(animationTheme[animation.type] ? animationTheme[animation.type].duration : animation.duration, animationTheme.duration);\n };\n\n return css([\"\", \" \", \" \", \" \", \"\"], keyframes([\"\", \"\"], animationTransition), normalizeTiming(animation.duration, defaultDuration()), normalizeTiming(animation.delay, '0s'), animationEnding(animation.type));\n }\n\n return '';\n};","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nimport PropTypes from 'prop-types';\nimport { backgroundDoc, elevationPropType, genericProps, heightPropType, hoverIndicatorPropType, padPropType, roundPropType, widthPropType } from '../../utils/general-prop-types';\nvar OVERFLOW_VALUES = ['auto', 'hidden', 'scroll', 'visible'];\nvar ANIMATION_TYPE = PropTypes.oneOf(['fadeIn', 'fadeOut', 'jiggle', 'pulse', 'rotateLeft', 'rotateRight', 'slideUp', 'slideDown', 'slideLeft', 'slideRight', 'zoomIn', 'zoomOut']);\nvar ANIMATION_SHAPE = PropTypes.shape({\n type: ANIMATION_TYPE,\n delay: PropTypes.number,\n duration: PropTypes.number,\n size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge'])\n});\nvar BORDER_SHAPE = PropTypes.shape({\n color: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n dark: PropTypes.string,\n light: PropTypes.string\n })]),\n side: PropTypes.oneOf(['top', 'left', 'bottom', 'right', 'start', 'end', 'horizontal', 'vertical', 'all', 'between']),\n size: PropTypes.oneOfType([PropTypes.oneOf(['xsmall', 'small', 'medium', 'large', 'xlarge']), PropTypes.string]),\n style: PropTypes.oneOf(['solid', 'dashed', 'dotted', 'double', 'groove', 'ridge', 'inset', 'outset', 'hidden'])\n}); // if you update values here, make sure to update in Drop/doc too.\n\nvar overflowPropType = PropTypes.oneOfType([PropTypes.oneOf(OVERFLOW_VALUES), PropTypes.shape({\n horizontal: PropTypes.oneOf(OVERFLOW_VALUES),\n vertical: PropTypes.oneOf(OVERFLOW_VALUES)\n}), PropTypes.string]);\nvar PropType = {};\n\nif (process.env.NODE_ENV !== 'production') {\n PropType = _extends({}, genericProps, {\n align: PropTypes.oneOfType([PropTypes.oneOf(['baseline', 'center', 'end', 'start', 'stretch']), PropTypes.string]),\n alignContent: PropTypes.oneOfType([PropTypes.oneOf(['around', 'baseline', 'between', 'center', 'evenly', 'end', 'start', 'stretch']), PropTypes.string]),\n animation: PropTypes.oneOfType([ANIMATION_TYPE, ANIMATION_SHAPE, PropTypes.arrayOf(PropTypes.oneOfType([ANIMATION_TYPE, ANIMATION_SHAPE]))]),\n background: backgroundDoc,\n basis: PropTypes.oneOfType([PropTypes.oneOf(['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'full', '1/2', '1/3', '2/3', '1/4', '2/4', '3/4', 'auto']), PropTypes.string]),\n border: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['top', 'left', 'bottom', 'right', 'start', 'end', 'horizontal', 'vertical', 'all', 'between']), BORDER_SHAPE, PropTypes.arrayOf(BORDER_SHAPE)]),\n direction: PropTypes.oneOf(['row', 'column', 'row-responsive', 'row-reverse', 'column-reverse']),\n elevation: elevationPropType,\n flex: PropTypes.oneOfType([PropTypes.oneOf(['grow', 'shrink']), PropTypes.bool, PropTypes.shape({\n grow: PropTypes.number,\n shrink: PropTypes.number\n })]),\n fill: PropTypes.oneOfType([PropTypes.oneOf(['horizontal', 'vertical']), PropTypes.bool]),\n focusIndicator: PropTypes.bool,\n gap: PropTypes.oneOfType([PropTypes.oneOf(['none', 'xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge']), PropTypes.string]),\n height: heightPropType,\n hoverIndicator: hoverIndicatorPropType,\n justify: PropTypes.oneOf(['around', 'between', 'center', 'end', 'evenly', 'start', 'stretch']),\n onClick: PropTypes.func,\n overflow: overflowPropType,\n pad: padPropType,\n responsive: PropTypes.bool,\n round: roundPropType,\n tag: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n as: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n width: widthPropType,\n wrap: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['reverse'])])\n });\n}\n\nexport var BoxPropTypes = PropType;","var _excluded = [\"a11yTitle\", \"background\", \"border\", \"children\", \"direction\", \"elevation\", \"fill\", \"gap\", \"kind\", \"onBlur\", \"onClick\", \"onFocus\", \"overflow\", \"responsive\", \"tag\", \"as\", \"wrap\", \"width\", \"height\", \"tabIndex\"];\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nimport React, { Children, forwardRef, useContext, useMemo, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { backgroundIsDark } from '../../utils';\nimport { Keyboard } from '../Keyboard';\nimport { StyledBox, StyledBoxGap } from './StyledBox';\nimport { BoxPropTypes } from './propTypes';\nvar Box = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var a11yTitle = _ref.a11yTitle,\n background = _ref.background,\n border = _ref.border,\n children = _ref.children,\n _ref$direction = _ref.direction,\n direction = _ref$direction === void 0 ? 'column' : _ref$direction,\n elevation = _ref.elevation,\n fill = _ref.fill,\n gap = _ref.gap,\n kind = _ref.kind,\n _onBlur = _ref.onBlur,\n onClick = _ref.onClick,\n _onFocus = _ref.onFocus,\n overflow = _ref.overflow,\n _ref$responsive = _ref.responsive,\n responsive = _ref$responsive === void 0 ? true : _ref$responsive,\n tag = _ref.tag,\n as = _ref.as,\n wrap = _ref.wrap,\n width = _ref.width,\n height = _ref.height,\n tabIndex = _ref.tabIndex,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var theme = useContext(ThemeContext) || defaultProps.theme;\n var focusable = useMemo(function () {\n return onClick && !(tabIndex < 0);\n }, [onClick, tabIndex]);\n\n var _useState = useState(),\n focus = _useState[0],\n setFocus = _useState[1];\n\n var clickProps = useMemo(function () {\n if (focusable) {\n return {\n onClick: onClick,\n onFocus: function onFocus(event) {\n setFocus(true);\n if (_onFocus) _onFocus(event);\n },\n onBlur: function onBlur(event) {\n setFocus(false);\n if (_onBlur) _onBlur(event);\n }\n };\n }\n\n var result = {};\n if (_onBlur) result.onBlur = _onBlur;\n if (onClick) result.onClick = onClick;\n if (_onFocus) result.onFocus = _onFocus;\n return result;\n }, [focusable, onClick, _onFocus, _onBlur]);\n var adjustedTabIndex = useMemo(function () {\n if (tabIndex !== undefined) return tabIndex;\n if (focusable) return 0;\n return undefined;\n }, [focusable, tabIndex]);\n\n if ((border === 'between' || border && border.side === 'between') && !gap) {\n console.warn('Box must have a gap to use border between');\n }\n\n var contents = children;\n\n if (gap && gap !== 'none') {\n var boxAs = !as && tag ? tag : as;\n contents = [];\n var firstIndex;\n Children.forEach(children, function (child, index) {\n if (child) {\n if (firstIndex === undefined) {\n firstIndex = index;\n } else {\n contents.push( /*#__PURE__*/React.createElement(StyledBoxGap // eslint-disable-next-line react/no-array-index-key\n , {\n key: \"gap-\" + index,\n as: boxAs === 'span' ? boxAs : 'div',\n gap: gap,\n directionProp: direction,\n responsive: responsive,\n border: border\n }));\n }\n }\n\n contents.push(child);\n });\n } // construct a new theme object in case we have a background that wants\n // to change the background color context\n\n\n var nextTheme = useMemo(function () {\n var result;\n\n if (background || theme.darkChanged) {\n var dark = backgroundIsDark(background, theme);\n var darkChanged = dark !== undefined && dark !== theme.dark;\n\n if (darkChanged || theme.darkChanged) {\n result = _extends({}, theme);\n result.dark = dark === undefined ? theme.dark : dark;\n result.background = background;\n } else if (background) {\n // This allows DataTable to intelligently set the background\n // of a pinned header or footer.\n result = _extends({}, theme);\n result.background = background;\n }\n }\n\n return result || theme;\n }, [background, theme]);\n var content = /*#__PURE__*/React.createElement(StyledBox, _extends({\n as: !as && tag ? tag : as,\n \"aria-label\": a11yTitle,\n background: background,\n border: border,\n ref: ref,\n directionProp: direction,\n elevationProp: elevation,\n fillProp: fill,\n focus: focus,\n kindProp: kind,\n overflowProp: overflow,\n wrapProp: wrap,\n widthProp: width,\n heightProp: height,\n responsive: responsive,\n tabIndex: adjustedTabIndex\n }, clickProps, rest), /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: nextTheme\n }, contents));\n\n if (onClick) {\n content = /*#__PURE__*/React.createElement(Keyboard, {\n onEnter: onClick\n }, content);\n }\n\n return content;\n});\nBox.displayName = 'Box';\nBox.propTypes = BoxPropTypes;\nexport { Box };","import { css } from 'styled-components';\nimport { normalizeColor } from './colors';\nimport { breakpointStyle } from './mixins';\nexport var responsiveBorderStyle = function responsiveBorderStyle(data, theme) {\n var color = normalizeColor(data.color || 'border', theme);\n var borderSize = data.size || 'xsmall';\n var style = data.style || 'solid';\n var side = typeof data === 'string' ? data : data.side || 'all';\n var breakpoint = theme.box.responsiveBreakpoint && theme.global.breakpoints[theme.box.responsiveBreakpoint];\n if (!breakpoint.borderSize) breakpoint.borderSize = theme.global.borderSize;\n var value = breakpoint && (breakpoint.borderSize[borderSize] || borderSize) && style + \" \" + (breakpoint.borderSize[borderSize] || borderSize) + \" \" + color;\n if (!value) return undefined;\n if (side === 'top' || side === 'bottom' || side === 'left' || side === 'right') return \"border-\" + side + \": \" + value + \";\";\n if (side === 'end' || side === 'start') return \"border-inline-\" + side + \": \" + value + \";\";\n if (side === 'vertical') return \"\\n border-left: \" + value + \";\\n border-right: \" + value + \";\\n \";\n if (side === 'horizontal') return \"\\n border-top: \" + value + \";\\n border-bottom: \" + value + \";\\n \";\n if (side === 'between') return undefined; // no-op\n\n return \"border: \" + value + \";\";\n};\nexport var borderStyle = function borderStyle(data, responsive, theme) {\n var styles = [];\n var color = normalizeColor(data.color || 'border', theme);\n var borderSize = data.size || 'xsmall';\n var style = data.style || 'solid';\n var side = typeof data === 'string' ? data : data.side || 'all';\n var value = style + \" \" + (theme.global.borderSize[borderSize] || borderSize) + \" \" + color;\n var responsiveStyle = responsive && responsiveBorderStyle(data, theme);\n var breakpoint = responsiveStyle && theme.box.responsiveBreakpoint && theme.global.breakpoints[theme.box.responsiveBreakpoint];\n\n if (side === 'top' || side === 'bottom' || side === 'left' || side === 'right') {\n styles.push(\"border-\" + side + \": \" + value + \";\");\n\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'end' || side === 'start') {\n styles.push(css([\"border-inline-\", \":\", \";\"], side, value));\n\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'vertical') {\n styles.push(css([\"border-left:\", \";border-right:\", \";\"], value, value));\n\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'horizontal') {\n styles.push(css([\"border-top:\", \";border-bottom:\", \";\"], value, value));\n\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n } else if (side === 'between') {// no-op\n } else {\n styles.push(css([\"border:\", \";\"], value));\n\n if (responsiveStyle) {\n styles.push(breakpointStyle(breakpoint, responsiveStyle));\n }\n }\n\n return styles;\n};"],"names":["_excluded","_FLEX_MAP","KEYS","Keyboard","_ref","capture","target","children","onKeyDown","restProps","source","excluded","key","i","sourceKeys","Object","keys","length","indexOf","_objectWithoutPropertiesLoose","onKeyDownHandler","useCallback","event","keyCode","which","callbackName","_len","arguments","rest","Array","_key","apply","concat","useEffect","document","addEventListener","removeEventListener","cloneElement","Children","PULSE_SIZES","xsmall","small","medium","large","xlarge","SLIDE_SIZES","JIGGLE_SIZES","ZOOM_SIZES","animationBounds","type","size","deg","normalizeTiming","time","defaultTiming","animationObjectStyle","animation","theme","themeObj","bounds","animationTheme","global","animationTransition","css","keyframes","duration","delay","_extends","assign","prototype","hasOwnProperty","call","this","BASIS_MAP","auto","full","basisStyle","props","basis","FLEX_MAP","grow","shrink","flexStyle","flex","JUSTIFY_MAP","around","between","center","end","evenly","start","justifyStyle","justify","WRAP_MAP","reverse","wrapStyle","wrapProp","animationItemStyle","item","isArray","reduce","style","a","index","animationObjectInitialStyle","animationAncilaries","animationStyle","map","join","interactiveStyle","_props$kindProp","kindProp","hover","hoverIndicator","StyledBox","displayName","componentId","align","alignContent","background","border","responsive","directionProp","direction","styles","box","responsiveBreakpoint","breakpoint","push","directionStyle","heightProp","widthProp","undefined","fillProp","pad","round","overflowProp","elevationProp","elevation","dark","onClick","focus","focusIndicator","extend","defaultProps","setPrototypeOf","StyledBoxGap","gap","metric","edgeSize","responsiveMetric","side","borderSize","borderMetric","borderOffset","responsiveBorderMetric","responsiveBorderOffset","adjustedBorder","_adjustedBorder","adjustedBorder2","gapStyle","OVERFLOW_VALUES","ANIMATION_TYPE","color","light","horizontal","vertical","BoxPropTypes","Box","forwardRef","ref","a11yTitle","_ref$direction","fill","kind","_onBlur","onBlur","_onFocus","onFocus","overflow","_ref$responsive","tag","as","wrap","width","height","tabIndex","useContext","ThemeContext","focusable","useMemo","_useState","useState","setFocus","clickProps","result","adjustedTabIndex","console","warn","contents","firstIndex","boxAs","child","nextTheme","darkChanged","content","value","onEnter","propTypes","responsiveBorderStyle","data","breakpoints","borderStyle","responsiveStyle"],"sourceRoot":""}