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,EACfkG,EAAQ,EAAUS","sources":["webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/components/AnalyticsContext/LegacyAnalyticsContext.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/components/AnalyticsContext/index.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/events/AnalyticsEvent.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/events/UIAnalyticsEvent.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/hooks/useAnalyticsEvents.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/hooks/useAnalyticsContext.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/utils/createTheme.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/components/Theme.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/utils.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/elements/IconWrapper.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/utils/getTheme.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/utils/themed.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/colors.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/theme.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/CheckboxIcon.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/constants.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/elements/Label.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/elements/LabelText.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/elements/CheckboxWrapper.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/elements/HiddenCheckbox.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/elements/RequiredIndicator.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/theme/dist/es2019/utils/math.js","webpack:///./node_modules/@atlaskit/checkbox/dist/es2019/Checkbox.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/utils/createAndFireEvent.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/hocs/withAnalyticsContext.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/hocs/withAnalyticsEvents.js","webpack:///./node_modules/@atlaskit/checkbox/node_modules/@atlaskit/analytics-next/dist/es2019/hooks/usePatchedProps.js","webpack:///./node_modules/@atlaskit/icon/glyph/checkbox-indeterminate.js","webpack:///./node_modules/@atlaskit/icon/glyph/checkbox.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';\nconst ContextTypes = {\n getAtlaskitAnalyticsContext: PropTypes.func,\n getAtlaskitAnalyticsEventHandlers: PropTypes.func\n};\n\nconst noop = () => []; // eslint-disable-next-line @repo/internal/react/no-class-components\n\n\nclass AnalyticsContext extends Component {\n constructor(props) {\n super(props);\n\n _defineProperty(this, \"getChildContext\", () => ({\n getAtlaskitAnalyticsContext: this.getAnalyticsContext\n }));\n\n _defineProperty(this, \"getAnalyticsContext\", () => {\n const {\n data\n } = this.props;\n const {\n getAtlaskitAnalyticsContext = noop\n } = this.context;\n return [...getAtlaskitAnalyticsContext(), data];\n });\n\n _defineProperty(this, \"getAnalyticsEventHandlers\", () => {\n const {\n getAtlaskitAnalyticsEventHandlers = noop\n } = this.context;\n return getAtlaskitAnalyticsEventHandlers();\n });\n\n this.contextValue = {\n getAtlaskitAnalyticsContext: this.getAnalyticsContext,\n getAtlaskitAnalyticsEventHandlers: this.getAnalyticsEventHandlers\n };\n }\n\n render() {\n const {\n children\n } = this.props;\n return /*#__PURE__*/React.createElement(AnalyticsReactContext.Provider, {\n value: this.contextValue\n }, children);\n }\n\n}\n\n_defineProperty(AnalyticsContext, \"contextTypes\", ContextTypes);\n\n_defineProperty(AnalyticsContext, \"childContextTypes\", ContextTypes);\n\nexport default AnalyticsContext;","import LegacyAnalyticsContext from './LegacyAnalyticsContext';\nimport ModernAnalyticsContext from './ModernAnalyticsContext';\nlet ExportedAnalyticsContext;\n\nif (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {\n ExportedAnalyticsContext = ModernAnalyticsContext;\n} else {\n ExportedAnalyticsContext = LegacyAnalyticsContext;\n}\n\nexport default ExportedAnalyticsContext;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nexport const isAnalyticsEvent = obj => {\n var _obj$constructor;\n\n return obj instanceof AnalyticsEvent || !!(obj !== null && obj !== void 0 && obj._isAnalyticsEvent) || // Backwards compatibility with older analytics-next packages\n (obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'AnalyticsEvent';\n};\nexport default class AnalyticsEvent {\n constructor(props) {\n _defineProperty(this, \"_isAnalyticsEvent\", true);\n\n _defineProperty(this, \"clone\", () => {\n // just a shallow clone, don't change sub refs unless you want to\n // affect the original's too\n const payload = { ...this.payload\n };\n return new AnalyticsEvent({\n payload\n });\n });\n\n this.payload = props.payload;\n }\n\n update(updater) {\n if (typeof updater === 'function') {\n this.payload = updater(this.payload);\n }\n\n if (typeof updater === 'object') {\n this.payload = { ...this.payload,\n ...updater\n };\n }\n\n return this;\n }\n\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport AnalyticsEvent from './AnalyticsEvent';\nexport const isUIAnalyticsEvent = obj => {\n var _obj$constructor;\n\n return obj instanceof UIAnalyticsEvent || !!(obj !== null && obj !== void 0 && obj._isUIAnalyticsEvent) || // Backwards compatibility with older analytics-next packages\n (obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'UIAnalyticsEvent';\n};\nexport default class UIAnalyticsEvent extends AnalyticsEvent {\n constructor(props) {\n super(props);\n\n _defineProperty(this, \"_isUIAnalyticsEvent\", true);\n\n _defineProperty(this, \"clone\", () => {\n if (this.hasFired) {\n if (process.env.NODE_ENV !== 'production' && !process.env.CI) {\n // eslint-disable-next-line no-console\n console.warn(\"Cannot clone an event after it's been fired.\");\n }\n\n return null;\n }\n\n const context = [...this.context];\n const handlers = [...this.handlers];\n /**\n * A hacky \"deep clone\" of the object. This is limited in that it wont\n * support functions, regexs, Maps, Sets, etc, but none of those need to\n * be represented in our payload.\n */\n\n const payload = JSON.parse(JSON.stringify(this.payload));\n return new UIAnalyticsEvent({\n context,\n handlers,\n payload\n });\n });\n\n _defineProperty(this, \"fire\", channel => {\n if (this.hasFired) {\n if (process.env.NODE_ENV !== 'production' && !process.env.CI) {\n // eslint-disable-next-line no-console\n console.warn('Cannot fire an event twice.');\n }\n\n return;\n }\n\n this.handlers.forEach(handler => handler(this, channel));\n this.hasFired = true;\n });\n\n this.context = props.context || [];\n this.handlers = props.handlers || [];\n this.hasFired = false;\n }\n\n update(updater) {\n if (this.hasFired) {\n if (process.env.NODE_ENV !== 'production' && !process.env.CI) {\n // eslint-disable-next-line no-console\n console.warn(\"Cannot update an event after it's been fired.\");\n }\n\n return this;\n }\n\n return super.update(updater);\n }\n\n}","import { useCallbackOne } from 'use-memo-one';\nimport UIAnalyticsEvent from '../events/UIAnalyticsEvent';\nimport { useAnalyticsContext } from './useAnalyticsContext';\nexport function useAnalyticsEvents() {\n const analyticsContext = useAnalyticsContext();\n const createAnalyticsEvent = useCallbackOne(payload => {\n return new UIAnalyticsEvent({\n context: analyticsContext.getAtlaskitAnalyticsContext(),\n handlers: analyticsContext.getAtlaskitAnalyticsEventHandlers(),\n payload\n });\n }, [analyticsContext]);\n return {\n createAnalyticsEvent\n };\n}","import { useContext } from 'react';\nimport { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';\nexport const useAnalyticsContext = () => {\n return useContext(AnalyticsReactContext);\n};","import React, { createContext, useContext, useCallback } from 'react';\n\n/**\n * createTheme is used to create a set of Providers and Consumers for theming components.\n * - Takes a default theme function; this theme function gets a set of props, and returns tokens\n * based on those props. An example of this default theme function is one that produces the standard\n * appearance of the component\n * - Returns three things - a Provider that allow for additional themes to be applied, a Consumer\n * that can get the current theme and fetch it, and a custom hook - useTheme which provides an alternate (although functionally the same) API\n * to the Consumer.\n **/\nexport function createTheme(defaultGetTokens) {\n const emptyThemeFn = (getTokens, props) => getTokens(props);\n /**\n * Internally, Theme uses React Context, with internal providers and consumers.\n * The React Context passes only a function that gets props, and turns them into tokens. This\n * function gets mixed as more Providers with their own themes are added. This mixed function\n * is ultimately picked up by Consumers, which implement a context consumer internally to fetch\n * the theme.\n **/\n\n\n const ThemeContext = /*#__PURE__*/createContext(defaultGetTokens);\n\n function useTheme(themeProps) {\n const theme = useContext(ThemeContext);\n const themeFn = theme || emptyThemeFn;\n const tokens = themeFn(themeProps);\n return tokens;\n } // The Theme Consumer takes a function as its child - this function takes tokens, and the\n // return value is generally a set of nodes with the tokens applied appropriately.\n\n\n function Consumer(props) {\n const {\n children,\n ...themeProps\n } = props; // @ts-ignore See issue for more info: https://github.com/Microsoft/TypeScript/issues/10727\n // Argument of type 'Pick ReactNode; }, Exclude>' is not assignable to parameter of type 'ThemeProps'.ts(2345)\n\n const tokens = useTheme(themeProps); // We add a fragment to ensure we don't break people upgrading.\n // Previously they may have been able to pass in undefined without things blowing up.\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, children(tokens));\n }\n /**\n * The Theme Provider takes regular nodes as its children, but also takes a *theme function*\n * - The theme function takes a set of props, as well as a function (getTokens) that can turn props into tokens.\n * - The getTokens function isn't called immediately - instead the props are passed\n * through a mix of parent theming functions\n * Children of this provider will receive this mixed theme\n */\n\n\n function Provider(props) {\n const themeFn = useContext(ThemeContext);\n const valueFn = props.value || emptyThemeFn;\n const mixedFn = useCallback(themeProps => valueFn(themeFn, themeProps), [themeFn, valueFn]);\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: mixedFn\n }, props.children);\n }\n\n return {\n Consumer,\n Provider,\n useTheme\n };\n}","import { createTheme } from '../utils/createTheme';\n// Create default global light theme\nconst {\n Provider,\n Consumer,\n useTheme\n} = createTheme(() => ({\n mode: 'light'\n}));\nexport const useGlobalTheme = () => {\n return useTheme();\n};\nexport default {\n Provider,\n Consumer\n};","export const defaultAttributesFn = p => ({});\nexport const createExtender = function createExtender(defaults,\n/** We're defaulting to an Object.create call here to circumvent\n * the fact that {} can't be reconciled\n * with a type that extends Record\n *\n * By doing this, we are intentionally disallowing users\n * from nullifying a particular component in the tree.\n * This can be reverted with additional logic,\n * at such a time as this nullification becomes an actual usecase.\n * */\noverrides = Object.create(Object.prototype)) {\n if (!defaults) {\n throw new Error('a default set of overrides *must* be passed in as the first argument');\n }\n\n return function getOverrides(key) {\n const {\n cssFn: defaultCssFn,\n attributesFn: defaultAttributesFn,\n component: defaultComponent\n } = defaults[key];\n\n if (!overrides[key]) {\n return {\n cssFn: defaultCssFn,\n attributesFn: defaultAttributesFn,\n component: defaultComponent\n };\n }\n\n const {\n cssFn: customCssFn,\n attributesFn: customAttributesFn,\n component: customComponent\n } = overrides[key];\n\n const composedCssFn = state => {\n return customCssFn(defaultCssFn(state), state);\n };\n\n return {\n cssFn: customCssFn ? composedCssFn : defaultCssFn,\n attributesFn: customAttributesFn || defaultAttributesFn,\n component: customComponent || defaultComponent\n };\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\n\n/** @jsx jsx */\nimport { jsx } from '@emotion/core';\nimport { defaultAttributesFn } from '../utils';\n\nconst disabledBorder = iconTokens => ({\n stroke: iconTokens.borderColor.disabled,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst activeBorder = iconTokens => ({\n stroke: iconTokens.borderColor.active,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst hoveredAndCheckedBorder = iconTokens => ({\n stroke: iconTokens.borderColor.hoveredAndChecked,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst hoveredBorder = iconTokens => ({\n stroke: iconTokens.borderColor.hovered,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst checkedBorder = iconTokens => ({\n stroke: iconTokens.borderColor.checked,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst focusedBorder = iconTokens => ({\n stroke: iconTokens.borderColor.focused,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst invalidBorder = iconTokens => ({\n stroke: iconTokens.borderColor.invalid,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst invalidAndCheckedBorder = iconTokens => ({\n stroke: iconTokens.borderColor.invalidAndChecked,\n strokeWidth: iconTokens.borderWidth\n});\n\nconst getBorderColor = ({\n tokens,\n ...props\n}) => {\n // Being disabled removes borders in all states\n if (props.isDisabled) {\n return disabledBorder(tokens.icon);\n } // Being takes precedence\n\n\n if (props.isActive) {\n return activeBorder(tokens.icon);\n } // Then being focused\n\n\n if (props.isFocused) {\n return focusedBorder(tokens.icon);\n } // Then being invalid\n\n\n if (props.isInvalid) {\n if (props.isChecked) {\n return invalidAndCheckedBorder(tokens.icon);\n }\n\n return invalidBorder(tokens.icon);\n } // Then hoverstates\n\n\n if (props.isHovered) {\n if (props.isChecked) {\n return hoveredAndCheckedBorder(tokens.icon);\n }\n\n return hoveredBorder(tokens.icon);\n }\n\n if (props.isChecked) {\n return checkedBorder(tokens.icon);\n }\n\n return {\n stroke: tokens.icon.borderColor.rest,\n strokeWidth: tokens.icon.borderWidth\n };\n};\n\nconst getTickColor = props => {\n const {\n isChecked,\n isDisabled,\n isActive,\n tokens: {\n icon\n }\n } = props;\n let color = icon.tickColor.checked;\n\n if (isDisabled && isChecked) {\n color = icon.tickColor.disabledAndChecked;\n } else if (isActive && isChecked && !isDisabled) {\n color = icon.tickColor.activeAndChecked;\n } else if (!isChecked) {\n color = icon.tickColor.rest;\n }\n\n return color;\n};\n\nconst getBoxColor = props => {\n const {\n isChecked,\n isDisabled,\n isActive,\n isHovered,\n tokens: {\n icon\n }\n } = props; // set the default\n\n let color = icon.boxColor.rest;\n\n if (isDisabled) {\n color = icon.boxColor.disabled;\n } else if (isActive) {\n color = icon.boxColor.active;\n } else if (isHovered && isChecked) {\n color = icon.boxColor.hoveredAndChecked;\n } else if (isHovered) {\n color = icon.boxColor.hovered;\n } else if (isChecked) {\n color = icon.boxColor.checked;\n }\n\n return color;\n};\n\nexport const iconWrapperCSS = props => ({\n lineHeight: 0,\n flexShrink: 0,\n color: getBoxColor(props),\n fill: getTickColor(props),\n transition: 'all 0.2s ease-in-out;',\n\n /* This is adding a property to the inner svg, to add a border to the checkbox */\n '& rect:first-of-type': {\n transition: 'stroke 0.2s ease-in-out;',\n ...getBorderColor(props)\n },\n\n /**\n * Need to set the Icon component wrapper to flex to avoid a scrollbar bug which\n * happens when checkboxes are flex items in a parent with overflow.\n * See AK-6321 for more details.\n **/\n '> span': {\n display: 'flex'\n }\n});\nexport function IconWrapper({\n attributesFn,\n cssFn,\n children,\n ...props\n}) {\n return jsx(\"span\", _extends({\n css: cssFn(props)\n }, attributesFn(props), {\n children: children\n }));\n}\nexport default {\n component: IconWrapper,\n cssFn: iconWrapperCSS,\n attributesFn: defaultAttributesFn\n};","// ideally this would be fetched from ../constants but that causes a\n// circular dep loop. This will be refactored as part of a breaking\n// change in the future.\nconst DEFAULT_THEME_MODE = 'light';\nconst THEME_MODES = ['light', 'dark']; // Resolves the different types of theme objects in the current API\n\nexport default function getTheme(props) {\n if (props && props.theme) {\n // Theme is the global Atlaskit theme\n if ('__ATLASKIT_THEME__' in props.theme) {\n return props.theme.__ATLASKIT_THEME__;\n } // User has provided alternative modes\n else if ('mode' in props.theme && THEME_MODES.includes(props.theme.mode)) {\n return props.theme;\n }\n } // If format not supported (or no theme provided), return standard theme\n\n\n return {\n mode: DEFAULT_THEME_MODE\n };\n}","/* eslint-disable prefer-rest-params */\nimport getTheme from './getTheme';\n\n// Unpack custom variants, and get correct value for the current theme\nfunction themedVariants(variantProp, variants) {\n return props => {\n const theme = getTheme(props);\n\n if (props && props[variantProp] && variants) {\n const modes = variants[props[variantProp]];\n\n if (modes && modes[theme.mode]) {\n const value = modes[theme.mode];\n\n if (value) {\n return value;\n } // TS believes value can be undefined\n\n }\n }\n\n return '';\n };\n}\n\nexport default function themed(modesOrVariant, variantModes) {\n if (typeof modesOrVariant === 'string') {\n return themedVariants(modesOrVariant, variantModes);\n }\n\n const modes = modesOrVariant;\n return props => {\n // Get theme from the user's props\n const theme = getTheme(props); // User isn't required to provide both light and dark values\n\n if (theme.mode in modes) {\n const value = modes[theme.mode]; // TS believes value can be undefined\n\n if (value) {\n return value;\n }\n }\n\n return '';\n };\n}","import themed from './utils/themed'; // Reds\n\nexport const R50 = '#FFEBE6';\nexport const R75 = '#FFBDAD';\nexport const R100 = '#FF8F73';\nexport const R200 = '#FF7452';\nexport const R300 = '#FF5630';\nexport const R400 = '#DE350B';\nexport const R500 = '#BF2600'; // Yellows\n\nexport const Y50 = '#FFFAE6';\nexport const Y75 = '#FFF0B3';\nexport const Y100 = '#FFE380';\nexport const Y200 = '#FFC400';\nexport const Y300 = '#FFAB00';\nexport const Y400 = '#FF991F';\nexport const Y500 = '#FF8B00'; // Greens\n\nexport const G50 = '#E3FCEF';\nexport const G75 = '#ABF5D1';\nexport const G100 = '#79F2C0';\nexport const G200 = '#57D9A3';\nexport const G300 = '#36B37E';\nexport const G400 = '#00875A';\nexport const G500 = '#006644'; // Blues\n\nexport const B50 = '#DEEBFF';\nexport const B75 = '#B3D4FF';\nexport const B100 = '#4C9AFF';\nexport const B200 = '#2684FF';\nexport const B300 = '#0065FF';\nexport const B400 = '#0052CC';\nexport const B500 = '#0747A6'; // Purples\n\nexport const P50 = '#EAE6FF';\nexport const P75 = '#C0B6F2';\nexport const P100 = '#998DD9';\nexport const P200 = '#8777D9';\nexport const P300 = '#6554C0';\nexport const P400 = '#5243AA';\nexport const P500 = '#403294'; // Teals\n\nexport const T50 = '#E6FCFF';\nexport const T75 = '#B3F5FF';\nexport const T100 = '#79E2F2';\nexport const T200 = '#00C7E6';\nexport const T300 = '#00B8D9';\nexport const T400 = '#00A3BF';\nexport const T500 = '#008DA6'; // Neutrals\n\nexport const N0 = '#FFFFFF';\nexport const N10 = '#FAFBFC';\nexport const N20 = '#F4F5F7';\nexport const N30 = '#EBECF0';\nexport const N40 = '#DFE1E6';\nexport const N50 = '#C1C7D0';\nexport const N60 = '#B3BAC5';\nexport const N70 = '#A5ADBA';\nexport const N80 = '#97A0AF';\nexport const N90 = '#8993A4';\nexport const N100 = '#7A869A';\nexport const N200 = '#6B778C';\nexport const N300 = '#5E6C84';\nexport const N400 = '#505F79';\nexport const N500 = '#42526E';\nexport const N600 = '#344563';\nexport const N700 = '#253858';\nexport const N800 = '#172B4D'; // ATTENTION: update the tints if you update this\n\nexport const N900 = '#091E42'; // Each tint is made of N900 and an alpha channel\n\nexport const N10A = 'rgba(9, 30, 66, 0.02)';\nexport const N20A = 'rgba(9, 30, 66, 0.04)';\nexport const N30A = 'rgba(9, 30, 66, 0.08)';\nexport const N40A = 'rgba(9, 30, 66, 0.13)';\nexport const N50A = 'rgba(9, 30, 66, 0.25)';\nexport const N60A = 'rgba(9, 30, 66, 0.31)';\nexport const N70A = 'rgba(9, 30, 66, 0.36)';\nexport const N80A = 'rgba(9, 30, 66, 0.42)';\nexport const N90A = 'rgba(9, 30, 66, 0.48)';\nexport const N100A = 'rgba(9, 30, 66, 0.54)';\nexport const N200A = 'rgba(9, 30, 66, 0.60)';\nexport const N300A = 'rgba(9, 30, 66, 0.66)';\nexport const N400A = 'rgba(9, 30, 66, 0.71)';\nexport const N500A = 'rgba(9, 30, 66, 0.77)';\nexport const N600A = 'rgba(9, 30, 66, 0.82)';\nexport const N700A = 'rgba(9, 30, 66, 0.89)';\nexport const N800A = 'rgba(9, 30, 66, 0.95)'; // Dark Mode Neutrals\n\nexport const DN900 = '#E6EDFA';\nexport const DN800 = '#DCE5F5';\nexport const DN700 = '#CED9EB';\nexport const DN600 = '#B8C7E0';\nexport const DN500 = '#ABBBD6';\nexport const DN400 = '#9FB0CC';\nexport const DN300 = '#8C9CB8';\nexport const DN200 = '#7988A3';\nexport const DN100 = '#67758F';\nexport const DN90 = '#56637A';\nexport const DN80 = '#455166';\nexport const DN70 = '#3B475C';\nexport const DN60 = '#313D52';\nexport const DN50 = '#283447';\nexport const DN40 = '#202B3D';\nexport const DN30 = '#1B2638';\nexport const DN20 = '#121A29';\nexport const DN10 = '#0E1624'; // ATTENTION: update the tints if you update this\n\nexport const DN0 = '#0D1424'; // Each dark tint is made of DN0 and an alpha channel\n\nexport const DN800A = 'rgba(13, 20, 36, 0.06)';\nexport const DN700A = 'rgba(13, 20, 36, 0.14)';\nexport const DN600A = 'rgba(13, 20, 36, 0.18)';\nexport const DN500A = 'rgba(13, 20, 36, 0.29)';\nexport const DN400A = 'rgba(13, 20, 36, 0.36)';\nexport const DN300A = 'rgba(13, 20, 36, 0.40)';\nexport const DN200A = 'rgba(13, 20, 36, 0.47)';\nexport const DN100A = 'rgba(13, 20, 36, 0.53)';\nexport const DN90A = 'rgba(13, 20, 36, 0.63)';\nexport const DN80A = 'rgba(13, 20, 36, 0.73)';\nexport const DN70A = 'rgba(13, 20, 36, 0.78)';\nexport const DN60A = 'rgba(13, 20, 36, 0.81)';\nexport const DN50A = 'rgba(13, 20, 36, 0.85)';\nexport const DN40A = 'rgba(13, 20, 36, 0.89)';\nexport const DN30A = 'rgba(13, 20, 36, 0.92)';\nexport const DN20A = 'rgba(13, 20, 36, 0.95)';\nexport const DN10A = 'rgba(13, 20, 36, 0.97)'; // Themed colors\n\nexport const background = themed({\n light: N0,\n dark: DN30\n});\nexport const backgroundActive = themed({\n light: B50,\n dark: B75\n});\nexport const backgroundHover = themed({\n light: N30,\n dark: DN70\n});\nexport const backgroundOnLayer = themed({\n light: N0,\n dark: DN50\n});\nexport const text = themed({\n light: N900,\n dark: DN600\n});\nexport const textHover = themed({\n light: N800,\n dark: DN600\n});\nexport const textActive = themed({\n light: B400,\n dark: B400\n});\nexport const subtleText = themed({\n light: N200,\n dark: DN300\n});\nexport const placeholderText = themed({\n light: N100,\n dark: DN200\n});\nexport const heading = themed({\n light: N800,\n dark: DN600\n});\nexport const subtleHeading = themed({\n light: N200,\n dark: DN300\n});\nexport const codeBlock = themed({\n light: N20,\n dark: DN50\n});\nexport const link = themed({\n light: B400,\n dark: B100\n});\nexport const linkHover = themed({\n light: B300,\n dark: B200\n});\nexport const linkActive = themed({\n light: B500,\n dark: B100\n});\nexport const linkOutline = themed({\n light: B100,\n dark: B200\n});\nexport const primary = themed({\n light: B400,\n dark: B100\n});\nexport const blue = themed({\n light: B400,\n dark: B100\n});\nexport const teal = themed({\n light: T300,\n dark: T200\n});\nexport const purple = themed({\n light: P300,\n dark: P100\n});\nexport const red = themed({\n light: R300,\n dark: R300\n});\nexport const yellow = themed({\n light: Y300,\n dark: Y300\n});\nexport const green = themed({\n light: G300,\n dark: G300\n});\nexport const skeleton = () => N20A;","import * as colors from '@atlaskit/theme/colors';\nimport { createTheme } from '@atlaskit/theme/components';\nexport const componentTokens = {\n label: {\n textColor: {\n rest: {\n light: colors.N900,\n dark: colors.DN600\n },\n disabled: {\n light: colors.N80,\n dark: colors.N80\n }\n },\n spacing: {\n top: '2px',\n right: '4px',\n bottom: '2px',\n left: '4px'\n }\n },\n icon: {\n borderWidth: '2px',\n borderColor: {\n rest: {\n light: colors.N40,\n dark: colors.DN80\n },\n disabled: {\n light: '',\n dark: ''\n },\n checked: {\n light: 'currentColor',\n dark: 'currentColor'\n },\n active: {\n light: 'currentColor',\n dark: 'currentColor'\n },\n invalid: {\n light: colors.R300,\n dark: colors.R300\n },\n invalidAndChecked: {\n light: colors.R300,\n dark: colors.R300\n },\n focused: {\n light: colors.B100,\n dark: colors.B75\n },\n hovered: {\n light: colors.N40,\n dark: colors.DN200\n },\n hoveredAndChecked: {\n light: 'currentColor',\n dark: 'currentColor'\n }\n },\n boxColor: {\n rest: {\n light: colors.N10,\n dark: colors.DN10\n },\n disabled: {\n light: colors.N20,\n dark: colors.DN10\n },\n active: {\n light: colors.B50,\n dark: colors.B200\n },\n hoveredAndChecked: {\n light: colors.B300,\n dark: colors.B75\n },\n hovered: {\n light: colors.N30,\n dark: colors.DN30\n },\n checked: {\n light: colors.B400,\n dark: colors.B400\n }\n },\n tickColor: {\n rest: {\n light: 'transparent',\n dark: 'transparent'\n },\n disabledAndChecked: {\n light: colors.N70,\n dark: colors.DN90\n },\n activeAndChecked: {\n light: colors.B400,\n dark: colors.DN10\n },\n checked: {\n light: colors.N10,\n dark: colors.DN10\n }\n },\n size: 'medium'\n },\n requiredIndicator: {\n textColor: {\n rest: colors.R500\n }\n }\n};\n/**\n * This function traverses the passed in object (first argument)\n * and tries to find the specified key (second argument) assumed to be at the outer most leaf nodes\n * ```\n * const x = { b: { light: y, dark: z }}\n * evaluateMode(x, 'light')\n * ```\n * If such a value exists, a requisite object is returned with the leaf node reduced to value of the specified 2nd argument.\n * i.e. { b: y }\n */\n\nconst evaluateMode = function (obj, mode) {\n const traverse = function traverse(obj) {\n return Object.keys(obj).reduce((acc, curr) => {\n const value = obj[curr];\n /** Return the value immediately if the value is:\n * not an object\n * an array\n * null\n * undefined\n */\n\n if (typeof value !== 'object' || typeof value == null || Array.isArray(value)) {\n acc[curr] = value;\n } else if (Object.keys(value).includes(mode)) {\n // if the object contains a member corresponding to the passed in mode argument\n // return the value of that member.\n acc[curr] = value[mode];\n } else {\n // otherwise keep traversing the object\n acc[curr] = traverse(obj[curr]);\n } // return the accumulator\n\n\n return acc;\n }, {});\n };\n\n return traverse(obj);\n};\n\nconst defaultThemeFn = ({\n tokens,\n mode\n}) => {\n return evaluateMode(tokens, mode);\n};\n\nexport default createTheme(defaultThemeFn);","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport memoize from 'memoize-one';\nimport Icon from '@atlaskit/icon/glyph/checkbox';\nimport IconIndeterminate from '@atlaskit/icon/glyph/checkbox-indeterminate';\nimport GlobalTheme from '@atlaskit/theme/components';\nimport { IconWrapperOverrides } from './elements';\nimport Theme, { componentTokens } from './theme';\nimport { createExtender } from './utils';\nconst defaults = {\n IconWrapper: IconWrapperOverrides,\n IconIndeterminate: {\n component: IconIndeterminate\n },\n Icon: {\n component: Icon\n }\n};\nexport default class CheckboxIcon extends Component {\n constructor(props) {\n super(props);\n this.createExtender = memoize(createExtender).bind(this);\n }\n\n render() {\n const {\n isChecked,\n isDisabled,\n isInvalid,\n isActive,\n isFocused,\n isHovered,\n isIndeterminate,\n overrides,\n primaryColor,\n secondaryColor,\n theme\n } = this.props; // @ts-ignore\n\n const getOverrides = this.createExtender(defaults, overrides);\n const {\n component: IconWrapper,\n ...iconWrapperOverrides\n } = getOverrides('IconWrapper');\n const {\n component: IconIndeterminate\n } = getOverrides('IconIndeterminate');\n const {\n component: Icon\n } = getOverrides('Icon');\n return /*#__PURE__*/React.createElement(Theme.Provider, {\n value: theme\n }, /*#__PURE__*/React.createElement(GlobalTheme.Consumer, null, ({\n mode\n }) => /*#__PURE__*/React.createElement(Theme.Consumer, {\n mode: mode,\n tokens: componentTokens\n }, tokens => /*#__PURE__*/React.createElement(IconWrapper, _extends({}, iconWrapperOverrides, {\n tokens: tokens,\n isChecked: isChecked,\n isDisabled: isDisabled,\n isFocused: isFocused,\n isActive: isActive,\n isHovered: isHovered,\n isInvalid: isInvalid\n }), isIndeterminate ? /*#__PURE__*/React.createElement(IconIndeterminate, {\n primaryColor: primaryColor,\n secondaryColor: secondaryColor,\n size: tokens.icon.size,\n label: \"\"\n }) : /*#__PURE__*/React.createElement(Icon, {\n primaryColor: primaryColor,\n secondaryColor: secondaryColor,\n size: tokens.icon.size,\n label: \"\"\n })))));\n }\n\n}\n\n_defineProperty(CheckboxIcon, \"defaultProps\", {\n primaryColor: 'inherit',\n secondaryColor: 'inherit',\n isIndeterminate: false,\n theme: (current, props) => current(props)\n});","import { token } from '@atlaskit/tokens';\nimport { B100, N30A, skeleton as skeletonColor } from './colors';\nexport const FLATTENED = '__FLATTENED__';\nexport const CHANNEL = '__ATLASKIT_THEME__';\nexport const DEFAULT_THEME_MODE = 'light';\nexport const THEME_MODES = ['light', 'dark'];\n/*\n These theme values are expressed as functions so that if we decide to make\n them dependent on props in the future, it wouldn't require a significant\n refactor everywhere they are being used.\n*/\n\nexport const borderRadius = () => 3;\nexport const gridSize = () => 8;\nexport const fontSize = () => 14;\nexport const fontSizeSmall = () => 11;\nexport const fontFamily = () => `-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif`;\nexport const codeFontFamily = () => `'SFMono-Medium', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace`;\nexport const focusRing = (color = B100, outlineWidth = gridSize() / 4) => `\n &:focus {\n outline: none;\n box-shadow: 0px 0px 0px ${outlineWidth}px ${color};\n }\n`;\nexport const noFocusRing = () => `\n box-shadow: none;\n`;\nexport const layers = {\n card: () => 100,\n navigation: () => 200,\n dialog: () => 300,\n layer: () => 400,\n blanket: () => 500,\n modal: () => 510,\n flag: () => 600,\n spotlight: () => 700,\n tooltip: () => 800\n};\nexport const visuallyHidden = () => ({\n border: '0 !important',\n clip: 'rect(1px, 1px, 1px, 1px) !important',\n height: '1px !important',\n overflow: 'hidden !important',\n padding: '0 !important',\n position: 'absolute !important',\n width: '1px !important',\n whiteSpace: 'nowrap !important'\n});\n/**\n * Deprecated Styled Components mixin.\n * Use visuallyHidden instead.\n * @deprecated\n */\n\nexport const assistive = visuallyHidden;\nexport const skeletonShimmer = () => ({\n css: {\n backgroundColor: token('color.background.subtleNeutral.resting', skeletonColor()),\n animationDuration: '1.5s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear',\n animationDirection: 'alternate'\n },\n keyframes: {\n from: {\n backgroundColor: token('color.background.subtleNeutral.resting', skeletonColor())\n },\n to: {\n backgroundColor: token('color.background.subtleNeutral.hover', N30A)\n }\n }\n});","import _extends from \"@babel/runtime/helpers/extends\";\n\n/** @jsx jsx */\nimport { jsx } from '@emotion/core';\nimport { fontFamily } from '@atlaskit/theme/constants';\nimport { defaultAttributesFn } from '../utils';\nexport const labelCSS = ({\n isDisabled,\n tokens\n}) => ({\n fontFamily: fontFamily(),\n alignItems: 'flex-start',\n display: 'flex',\n color: isDisabled ? tokens.label.textColor.disabled : tokens.label.textColor.rest,\n ...(isDisabled && {\n cursor: 'not-allowed'\n })\n});\nexport function Label({\n attributesFn,\n children,\n isDisabled,\n onMouseUp,\n onMouseDown,\n onMouseLeave,\n onMouseEnter,\n tokens,\n cssFn,\n testId\n}) {\n return jsx(\"label\", _extends({}, attributesFn({\n isDisabled\n }), {\n onMouseUp: onMouseUp,\n onMouseDown: onMouseDown,\n onMouseLeave: onMouseLeave,\n onMouseEnter: onMouseEnter,\n css: cssFn({\n isDisabled,\n tokens\n }),\n \"data-testid\": testId\n }), children);\n}\nexport default {\n component: Label,\n cssFn: labelCSS,\n attributesFn: defaultAttributesFn\n};","import _extends from \"@babel/runtime/helpers/extends\";\n\n/** @jsx jsx */\nimport { jsx } from '@emotion/core';\nimport { defaultAttributesFn } from '../utils';\nexport const labelTextCSS = ({\n tokens\n}) => ({\n paddingTop: tokens.label.spacing.top,\n paddingRight: tokens.label.spacing.right,\n paddingBottom: tokens.label.spacing.bottom,\n paddingLeft: tokens.label.spacing.left\n});\nexport function LabelText({\n attributesFn,\n tokens,\n children,\n cssFn\n}) {\n return jsx(\"span\", _extends({}, attributesFn(), {\n css: cssFn({\n tokens\n })\n }), children);\n}\nexport default {\n component: LabelText,\n cssFn: labelTextCSS,\n attributesFn: defaultAttributesFn\n};","/** @jsx jsx */\nimport { jsx } from '@emotion/core';\nexport default (({\n children\n}) => jsx(\"span\", {\n css: {\n display: 'flex;',\n flexShrink: 0,\n position: 'relative'\n }\n}, children));","import _extends from \"@babel/runtime/helpers/extends\";\n\n/** @jsx jsx */\nimport { forwardRef } from 'react';\nimport { jsx } from '@emotion/core';\nexport default /*#__PURE__*/forwardRef(({\n createAnalyticsEvent,\n attributesFn,\n testId,\n ...props\n}, ref) => jsx(\"input\", _extends({\n type: \"checkbox\"\n}, attributesFn({\n disabled: props.disabled,\n checked: props.checked,\n required: props.required\n}), props, {\n ref: ref,\n css: {\n left: '50%',\n margin: 0,\n opacity: 0,\n padding: 0,\n position: 'absolute',\n transform: 'translate(-50%, -50%)',\n top: '50%',\n pointerEvents: 'none'\n },\n \"data-testid\": testId\n})));","import _extends from \"@babel/runtime/helpers/extends\";\n\n/** @jsx jsx */\nimport { jsx } from '@emotion/core';\nimport { gridSize } from '@atlaskit/theme/constants';\nimport { multiply } from '@atlaskit/theme/math';\nexport default (({\n tokens,\n ...props\n}) => jsx(\"span\", _extends({\n css: {\n color: tokens.requiredIndicator.textColor.rest,\n paddingLeft: `${multiply(gridSize, 0.25)}px;`\n }\n}, props)));","// If a generic is used here, props can be inferred never and passed up (even with defaults)\nexport function add(fn, addend) {\n return props => fn(props) + addend;\n}\nexport function subtract(fn, subtrahend) {\n return props => fn(props) - subtrahend;\n}\nexport function multiply(fn, factor) {\n return props => fn(props) * factor;\n}\nexport function divide(fn, divisor) {\n return props => fn(props) / divisor;\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport memoize from 'memoize-one';\nimport { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';\nimport GlobalTheme from '@atlaskit/theme/components';\nimport CheckboxIcon from './CheckboxIcon';\nimport { CheckboxWrapper, HiddenCheckbox, LabelOverrides, LabelTextOverrides, RequiredIndicator } from './elements';\nimport Theme, { componentTokens } from './theme';\nimport { createExtender } from './utils';\nimport { name as packageName, version as packageVersion } from './version.json';\nconst defaults = {\n Label: LabelOverrides,\n LabelText: LabelTextOverrides,\n HiddenCheckbox: {\n attributesFn: () => ({})\n }\n};\n\nclass Checkbox extends Component {\n constructor(props) {\n super(props);\n\n _defineProperty(this, \"state\", {\n isActive: false,\n isFocused: false,\n isHovered: false,\n isMouseDown: false,\n isChecked: this.props.isChecked !== undefined ? this.props.isChecked : this.props.defaultChecked\n });\n\n _defineProperty(this, \"checkbox\", undefined);\n\n _defineProperty(this, \"actionKeys\", [' ']);\n\n _defineProperty(this, \"onChange\", event => {\n if (this.props.isDisabled) {\n return null;\n }\n\n event.persist();\n\n if (event.target.checked !== undefined) {\n this.setState({\n isChecked: event.target.checked\n });\n }\n\n if (this.props.onChange) {\n this.props.onChange(event);\n }\n\n return true;\n });\n\n _defineProperty(this, \"blur\", () => {\n if (this.checkbox && this.checkbox.blur) {\n this.checkbox.blur();\n }\n });\n\n _defineProperty(this, \"focus\", () => {\n if (this.checkbox && this.checkbox.focus) {\n this.checkbox.focus();\n }\n });\n\n _defineProperty(this, \"onBlur\", () => this.setState({\n // onBlur is called after onMouseDown if the checkbox was focused, however\n // in this case on blur is called immediately after, and we need to check\n // whether the mouse is down.\n isActive: this.state.isMouseDown && this.state.isActive,\n isFocused: false\n }));\n\n _defineProperty(this, \"onFocus\", () => this.setState({\n isFocused: true\n }));\n\n _defineProperty(this, \"onMouseLeave\", () => this.setState({\n isActive: false,\n isHovered: false\n }));\n\n _defineProperty(this, \"onMouseEnter\", () => this.setState({\n isHovered: true\n }));\n\n _defineProperty(this, \"onMouseUp\", () => this.setState({\n isActive: false,\n isMouseDown: false\n }));\n\n _defineProperty(this, \"onMouseDown\", () => this.setState({\n isActive: true,\n isMouseDown: true\n }));\n\n _defineProperty(this, \"onKeyDown\", event => {\n if (event.key in this.actionKeys) {\n this.setState({\n isActive: true\n });\n }\n });\n\n _defineProperty(this, \"onKeyUp\", event => {\n if (event.key in this.actionKeys) {\n this.setState({\n isActive: false\n });\n }\n });\n\n this.createExtender = memoize(createExtender);\n }\n\n componentDidMount() {\n const {\n isIndeterminate\n } = this.props; // there is no HTML attribute for indeterminate, and thus no prop equivalent.\n // it must be set via the ref.\n\n if (this.checkbox) {\n this.checkbox.indeterminate = !!isIndeterminate;\n\n if (this.props.inputRef) {\n this.props.inputRef(this.checkbox);\n }\n }\n }\n\n componentDidUpdate(prevProps) {\n const {\n isIndeterminate\n } = this.props;\n\n if (prevProps.isIndeterminate !== isIndeterminate && this.checkbox) {\n this.checkbox.indeterminate = !!isIndeterminate;\n }\n }\n\n render() {\n const {\n isDisabled,\n isInvalid,\n isIndeterminate,\n label,\n name,\n overrides,\n value,\n isRequired,\n //props not passed into HiddenCheckbox\n isChecked: propsIsChecked,\n theme,\n testId\n } = this.props;\n const isChecked = this.props.isChecked === undefined ? this.state.isChecked : propsIsChecked;\n const {\n isFocused,\n isActive,\n isHovered\n } = this.state;\n const getOverrides = createExtender(defaults, overrides);\n const {\n component: Label,\n ...labelOverrides\n } = getOverrides('Label');\n const {\n component: LabelText,\n ...labelTextOverrides\n } = getOverrides('LabelText');\n const {\n attributesFn: hiddenCheckboxAttributesFn\n } = getOverrides('HiddenCheckbox');\n return /*#__PURE__*/React.createElement(Theme.Provider, {\n value: theme\n }, /*#__PURE__*/React.createElement(GlobalTheme.Consumer, null, ({\n mode\n }) => /*#__PURE__*/React.createElement(Theme.Consumer, {\n mode: mode,\n tokens: componentTokens\n }, tokens => /*#__PURE__*/React.createElement(Label, _extends({}, labelOverrides, {\n isDisabled: isDisabled,\n onMouseDown: this.onMouseDown,\n onMouseEnter: this.onMouseEnter,\n onMouseLeave: this.onMouseLeave,\n onMouseUp: this.onMouseUp,\n tokens: tokens,\n testId: testId && `${testId}--checkbox-label`\n }), /*#__PURE__*/React.createElement(CheckboxWrapper, null, /*#__PURE__*/React.createElement(HiddenCheckbox, {\n disabled: isDisabled,\n checked: isChecked,\n onChange: this.onChange,\n onBlur: this.onBlur,\n onFocus: this.onFocus,\n onKeyUp: this.onKeyUp,\n onKeyDown: this.onKeyDown,\n value: value,\n name: name,\n ref: r => this.checkbox = r,\n required: isRequired,\n attributesFn: hiddenCheckboxAttributesFn,\n testId: testId && `${testId}--hidden-checkbox`\n }), /*#__PURE__*/React.createElement(CheckboxIcon, {\n theme: theme,\n overrides: {\n IconWrapper: overrides && overrides.IconWrapper,\n Icon: overrides && overrides.Icon,\n IconIndeterminate: overrides && overrides.IconIndeterminate\n },\n isChecked: isChecked,\n isDisabled: isDisabled,\n isFocused: isFocused,\n isActive: isActive,\n isHovered: isHovered,\n isInvalid: isInvalid,\n isIndeterminate: isIndeterminate,\n primaryColor: \"inherit\",\n secondaryColor: \"inherit\",\n label: \"\"\n })), /*#__PURE__*/React.createElement(LabelText, _extends({}, labelTextOverrides, {\n tokens: tokens\n }), label, isRequired && /*#__PURE__*/React.createElement(RequiredIndicator, {\n tokens: tokens,\n \"aria-hidden\": \"true\"\n }, \"*\"))))));\n }\n\n}\n\n_defineProperty(Checkbox, \"defaultProps\", {\n isDisabled: false,\n isInvalid: false,\n defaultChecked: false,\n isIndeterminate: false,\n theme: (current, props) => current(props)\n});\n\nexport { Checkbox as CheckboxWithoutAnalytics };\nconst createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');\nexport default withAnalyticsContext({\n componentName: 'checkbox',\n packageName,\n packageVersion\n})(withAnalyticsEvents({\n onChange: createAndFireEventOnAtlaskit({\n action: 'changed',\n actionSubject: 'checkbox',\n attributes: {\n componentName: 'checkbox',\n packageName,\n packageVersion\n }\n })\n})(Checkbox));","export default (channel => payload => createAnalyticsEvent => {\n const consumerEvent = createAnalyticsEvent(payload);\n const clonedEvent = consumerEvent.clone();\n\n if (clonedEvent) {\n clonedEvent.fire(channel);\n }\n\n return consumerEvent;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { forwardRef, useMemo } from 'react';\nimport AnalyticsContext from '../components/AnalyticsContext';\n\nconst withAnalyticsContext = defaultData => WrappedComponent => {\n const WithAnalyticsContext = /*#__PURE__*/forwardRef(({\n analyticsContext,\n ...rest\n }, ref) => {\n const analyticsData = useMemo(() => ({ ...defaultData,\n ...analyticsContext\n }), [analyticsContext]);\n return /*#__PURE__*/React.createElement(AnalyticsContext, {\n data: analyticsData\n }, /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, rest, {\n ref: ref\n })));\n }); // @ts-ignore\n\n WithAnalyticsContext.displayName = `WithAnalyticsContext(${// @ts-ignore disneyName doesn't exist on type\n WrappedComponent.displayName || WrappedComponent.name})`;\n return WithAnalyticsContext;\n};\n\nexport default withAnalyticsContext;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { forwardRef } from 'react';\nimport { useAnalyticsEvents } from '../hooks/useAnalyticsEvents';\nimport { usePatchedProps } from '../hooks/usePatchedProps';\n\nconst withAnalyticsEvents = (createEventMap = {}) => WrappedComponent => {\n const WithAnalyticsEvents = /*#__PURE__*/forwardRef((props, ref) => {\n const {\n patchedEventProps\n } = usePatchedProps(createEventMap, props);\n const {\n createAnalyticsEvent\n } = useAnalyticsEvents();\n return /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, props, patchedEventProps, {\n createAnalyticsEvent: createAnalyticsEvent,\n ref: ref\n }));\n }); // @ts-ignore\n\n WithAnalyticsEvents.displayName = `WithAnalyticsEvents(${// @ts-ignore disneyName doesn't exist on type\n WrappedComponent.displayName || WrappedComponent.name})`;\n return WithAnalyticsEvents;\n};\n\nexport default withAnalyticsEvents;","import { useMemo, useRef } from 'react';\nimport { useAnalyticsEvents } from './useAnalyticsEvents';\nexport function usePatchedProps(createEventMap = {}, wrappedComponentProps) {\n const {\n createAnalyticsEvent\n } = useAnalyticsEvents();\n const handlerCache = useRef({});\n const patchedProps = useMemo(() => {\n const cache = handlerCache.current; // Clean up no longer used handlers in cache\n\n Object.keys(cache).filter(key => !(key in createEventMap)).forEach(key => delete cache[key]);\n return Object.keys(createEventMap).reduce((p, k) => {\n const eventCreator = createEventMap[k];\n\n if (!['object', 'function'].includes(typeof eventCreator)) {\n return p;\n }\n\n const propValue = wrappedComponentProps[k];\n\n if (k in cache && cache[k].eventCreator === eventCreator && cache[k].propValue === propValue) {\n return { ...p,\n [k]: cache[k].wrappedCallback\n };\n }\n\n const wrappedCallback = (...args) => {\n const analyticsEvent = typeof eventCreator === 'function' ? eventCreator(createAnalyticsEvent, wrappedComponentProps) : createAnalyticsEvent(eventCreator);\n\n if (propValue && typeof propValue === 'function') {\n propValue(...args, analyticsEvent);\n }\n };\n\n cache[k] = {\n eventCreator,\n wrappedCallback,\n propValue\n };\n return { ...p,\n [k]: wrappedCallback\n };\n }, {});\n }, [createEventMap, wrappedComponentProps, createAnalyticsEvent, handlerCache]);\n return {\n patchedEventProps: patchedProps\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _base = require(\"@atlaskit/icon/base\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst CheckboxIndeterminateIcon = props => /*#__PURE__*/_react.default.createElement(_base.Icon, Object.assign({\n dangerouslySetGlyph: ``\n}, props));\n\nCheckboxIndeterminateIcon.displayName = 'CheckboxIndeterminateIcon';\nvar _default = CheckboxIndeterminateIcon;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _base = require(\"@atlaskit/icon/base\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst CheckboxIcon = props => /*#__PURE__*/_react.default.createElement(_base.Icon, Object.assign({\n dangerouslySetGlyph: ``\n}, props));\n\nCheckboxIcon.displayName = 'CheckboxIcon';\nvar _default = CheckboxIcon;\nexports.default = _default;"],"names":["ContextTypes","getAtlaskitAnalyticsContext","getAtlaskitAnalyticsEventHandlers","noop","AnalyticsContext","Component","constructor","props","super","this","getAnalyticsContext","data","context","contextValue","getAnalyticsEventHandlers","render","children","value","ExportedAnalyticsContext","AnalyticsEvent","payload","update","updater","UIAnalyticsEvent","hasFired","handlers","JSON","parse","stringify","channel","forEach","handler","useAnalyticsEvents","analyticsContext","useContext","createAnalyticsEvent","createTheme","defaultGetTokens","emptyThemeFn","getTokens","ThemeContext","createContext","useTheme","themeProps","Consumer","tokens","Provider","themeFn","valueFn","mixedFn","useCallback","mode","defaultAttributesFn","p","createExtender","defaults","overrides","Object","create","prototype","Error","key","cssFn","defaultCssFn","attributesFn","component","defaultComponent","customCssFn","customAttributesFn","customComponent","state","getBorderColor","isDisabled","stroke","iconTokens","icon","borderColor","disabled","strokeWidth","borderWidth","isActive","active","activeBorder","isFocused","focused","focusedBorder","isInvalid","isChecked","invalidAndChecked","invalidAndCheckedBorder","invalid","invalidBorder","isHovered","hoveredAndChecked","hoveredAndCheckedBorder","hovered","hoveredBorder","checked","checkedBorder","rest","getTickColor","color","tickColor","disabledAndChecked","activeAndChecked","getBoxColor","boxColor","jsx","css","lineHeight","flexShrink","fill","transition","display","THEME_MODES","getTheme","theme","__ATLASKIT_THEME__","includes","themed","modesOrVariant","variantModes","variantProp","variants","modes","R300","Y300","G300","B50","B75","B200","B300","B400","N0","N10","N20","N30","N40","N80","N200","N800","N900","DN600","DN300","DN200","DN50","DN30","DN10","componentTokens","light","dark","label","textColor","spacing","top","right","bottom","left","size","requiredIndicator","obj","traverse","keys","reduce","acc","curr","Array","isArray","evaluateMode","IconWrapper","IconIndeterminate","Icon","CheckboxIcon","bind","isIndeterminate","primaryColor","secondaryColor","getOverrides","iconWrapperOverrides","current","gridSize","onMouseUp","onMouseDown","onMouseLeave","onMouseEnter","testId","fontFamily","alignItems","cursor","paddingTop","paddingRight","paddingBottom","paddingLeft","position","forwardRef","ref","type","required","margin","opacity","padding","transform","pointerEvents","fn","Label","LabelText","HiddenCheckbox","Checkbox","isMouseDown","undefined","defaultChecked","event","persist","target","setState","onChange","checkbox","blur","focus","actionKeys","componentDidMount","indeterminate","inputRef","componentDidUpdate","prevProps","name","isRequired","propsIsChecked","labelOverrides","labelTextOverrides","hiddenCheckboxAttributesFn","CheckboxWrapper","onBlur","onFocus","onKeyUp","onKeyDown","r","RequiredIndicator","createAndFireEventOnAtlaskit","consumerEvent","clonedEvent","clone","fire","defaultData","componentName","packageName","packageVersion","WrappedComponent","WithAnalyticsContext","analyticsData","useMemo","displayName","createEventMap","WithAnalyticsEvents","patchedEventProps","wrappedComponentProps","handlerCache","useRef","cache","filter","k","eventCreator","propValue","wrappedCallback","args","analyticsEvent","usePatchedProps","action","actionSubject","attributes","exports","_react","__esModule","default","_base","CheckboxIndeterminateIcon","createElement","assign","dangerouslySetGlyph","_default"],"sourceRoot":""}