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AM,IAAIC,UAAU,wI,iECAP,SAASC,EAAcjN,GACpC,IAAK,IAAIsM,EAAI,EAAGA,EAAI9N,UAAUC,OAAQ6N,IAAK,CACzC,IAAIY,EAAyB,MAAhB1O,UAAU8N,GAAa9M,OAAOhB,UAAU8N,IAAM,GACvDa,EAAU3N,OAAO8B,KAAK4L,GAEkB,mBAAjC1N,OAAO4N,uBAChBD,EAAQE,KAAKvO,MAAMqO,EAAS3N,OAAO4N,sBAAsBF,GAAQ1L,QAAO,SAAU8L,GAChF,OAAO9N,OAAOY,yBAAyB8M,EAAQI,GAAKC,eAIxDJ,EAAQlM,SAAQ,SAAU9B,IACxB,OAAea,EAAQb,EAAK+N,EAAO/N,OAIvC,OAAOa,I,iFCbM,SAASwN,EAAmBpB,GACzC,OAAO,OAAkBA,KAAQ,OAAgBA,KAAQ,OAA2BA,KAAQ,W,gDCJ/E,SAASqB,EAA4BC,EAAGC,GACrD,GAAKD,EAAL,CACA,GAAiB,iBAANA,EAAgB,OAAO,OAAiBA,EAAGC,GACtD,IAAIC,EAAIpO,OAAOC,UAAUoO,SAAShP,KAAK6O,GAAGI,MAAM,GAAI,GAEpD,MADU,WAANF,GAAkBF,EAAEtR,cAAawR,EAAIF,EAAEtR,YAAYqP,MAC7C,QAANmC,GAAqB,QAANA,EAAoBjP,MAAMmO,KAAKY,GACxC,cAANE,GAAqB,2CAA2CG,KAAKH,IAAW,OAAiBF,EAAGC,QAAxG","sources":["webpack:///./node_modules/@atlaskit/analytics-next/dist/es2019/components/AnalyticsListener/LegacyAnalyticsListener.js","webpack:///./node_modules/@atlaskit/analytics-next/dist/es2019/components/AnalyticsListener/index.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/theme/dist/es2019/utils/createTheme.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/theme/dist/es2019/components/Theme.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsContext.js","webpack:///./node_modules/@babel/runtime/helpers/esm/superPropBase.js","webpack:///./node_modules/@babel/runtime/helpers/esm/get.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/dist/esm/AnalyticsEvent.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/dist/esm/UIAnalyticsEvent.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/dist/esm/withAnalyticsEvents.js","webpack:///./node_modules/@atlaskit/textfield/dist/esm/components/Input.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/theme/dist/es2019/constants.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/theme/dist/es2019/utils/getTheme.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/theme/dist/es2019/utils/themed.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/theme/dist/es2019/colors.js","webpack:///./node_modules/@atlaskit/textfield/dist/esm/component-tokens.js","webpack:///./node_modules/@atlaskit/textfield/dist/esm/theme.js","webpack:///./node_modules/@atlaskit/textfield/dist/esm/components/Textfield.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/dist/esm/createAndFireEvent.js","webpack:///./node_modules/@atlaskit/textfield/node_modules/@atlaskit/analytics-next/dist/esm/withAnalyticsContext.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectSpread.js","webpack:///./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.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 getAtlaskitAnalyticsEventHandlers: PropTypes.func,\n getAtlaskitAnalyticsContext: PropTypes.func\n};\n\nconst noop = () => []; // eslint-disable-next-line @repo/internal/react/no-class-components\n\n\nclass AnalyticsListener extends Component {\n constructor(props) {\n super(props);\n\n _defineProperty(this, \"getChildContext\", () => ({\n getAtlaskitAnalyticsEventHandlers: this.getAnalyticsEventHandlers,\n getAtlaskitAnalyticsContext: this.getAtlaskitAnalyticsContext\n }));\n\n _defineProperty(this, \"getAnalyticsEventHandlers\", () => {\n const {\n channel,\n onEvent\n } = this.props;\n const {\n getAtlaskitAnalyticsEventHandlers = noop\n } = this.context;\n\n const handler = (event, eventChannel) => {\n if (channel === '*' || channel === eventChannel) {\n onEvent(event, eventChannel);\n }\n };\n\n return [handler, ...getAtlaskitAnalyticsEventHandlers()];\n });\n\n _defineProperty(this, \"getAtlaskitAnalyticsContext\", () => {\n const {\n getAtlaskitAnalyticsContext = noop\n } = this.context;\n return getAtlaskitAnalyticsContext();\n });\n\n this.contextValue = {\n getAtlaskitAnalyticsContext: this.getAtlaskitAnalyticsContext,\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(AnalyticsListener, \"contextTypes\", ContextTypes);\n\n_defineProperty(AnalyticsListener, \"childContextTypes\", ContextTypes);\n\nexport default AnalyticsListener;","import LegacyAnalyticsListener from './LegacyAnalyticsListener';\nimport ModernAnalyticsListener from './ModernAnalyticsListener';\nlet ExportedAnalyticsListener;\n\nif (typeof process !== 'undefined' && process.env['ANALYTICS_NEXT_MODERN_CONTEXT']) {\n ExportedAnalyticsListener = ModernAnalyticsListener;\n} else {\n ExportedAnalyticsListener = LegacyAnalyticsListener;\n}\n\nexport default ExportedAnalyticsListener;","import React, { createContext, useContext, useCallback, } from 'react';\n/*\ncreateTheme is used to create a set of Providers and Consumers for theming components.\n- Takes a default theme function; this theme function gets a set of props, and returns tokens\n based on those props. An example of this default theme function is one that produces the standard\n appearance of the component\n- Returns two things - a Provider that allow for additional themes to be applied, and a Consumer\n that can get the current theme and fetch it.\n*/\nexport function createTheme(defaultGetTokens) {\n const emptyThemeFn = (getTokens, props) => getTokens(props);\n /* Internally, Theme uses React Context, with internal providers and consumers.\n The React Context passes only a function that gets props, and turns them into tokens. This\n function gets mixed as more Providers with their own themes are added. This mixed function\n is ultimately picked up by Consumers, which implement a context consumer internally to fetch\n the theme. */\n const ThemeContext = createContext(defaultGetTokens);\n // The Theme Consumer takes a function as its child - this function takes tokens, and the\n // return value is generally a set of nodes with the tokens applied appropriately.\n function Consumer(props) {\n const { children, ...themeProps } = props;\n const theme = useContext(ThemeContext);\n const themeFn = theme || emptyThemeFn;\n // @ts-ignore See issue for more info: https://github.com/Microsoft/TypeScript/issues/10727\n // Argument of type 'Pick ReactNode; }, Exclude>' is not assignable to parameter of type 'ThemeProps'.ts(2345)\n const tokens = themeFn(themeProps);\n // We add a fragment to ensure we don't break people upgrading.\n // Previously they may have been able to pass in undefined without things blowing up.\n return React.createElement(React.Fragment, null, children(tokens));\n }\n /* The Theme Provider takes regular nodes as its child, but also takes a *theme function*\n - The theme function takes a set of props, as well as a function (getTokens) that can\n turn props into tokens.\n - The getTokens function isn't called immediately - instead the props are passed\n through a mix of parent theming functions\n Children of this provider will receive this mixed theme\n */\n function Provider(props) {\n const themeFn = useContext(ThemeContext);\n const valueFn = props.value || emptyThemeFn;\n const mixedFn = useCallback((themeProps) => valueFn(themeFn, themeProps), [themeFn, valueFn]);\n return (React.createElement(ThemeContext.Provider, { value: mixedFn }, props.children));\n }\n return { Consumer, Provider };\n}\n//# sourceMappingURL=createTheme.js.map","import { createTheme } from '../utils/createTheme';\n// Create default global light theme\nexport default createTheme(() => ({\n mode: 'light',\n}));\n//# sourceMappingURL=Theme.js.map","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport { Children, Component } from 'react';\nimport PropTypes from 'prop-types';\nvar ContextTypes = {\n getAtlaskitAnalyticsContext: PropTypes.func\n};\n\nvar AnalyticsContext =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(AnalyticsContext, _Component);\n\n function AnalyticsContext() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, AnalyticsContext);\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(AnalyticsContext)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"getChildContext\", function () {\n return {\n getAtlaskitAnalyticsContext: _this.getAnalyticsContext\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getAnalyticsContext\", function () {\n var data = _this.props.data;\n var getAtlaskitAnalyticsContext = _this.context.getAtlaskitAnalyticsContext;\n var ancestorData = typeof getAtlaskitAnalyticsContext === 'function' && getAtlaskitAnalyticsContext() || [];\n return [].concat(_toConsumableArray(ancestorData), [data]);\n });\n\n return _this;\n }\n\n _createClass(AnalyticsContext, [{\n key: \"render\",\n value: function render() {\n return Children.only(this.props.children);\n }\n }]);\n\n return AnalyticsContext;\n}(Component);\n\n_defineProperty(AnalyticsContext, \"contextTypes\", ContextTypes);\n\n_defineProperty(AnalyticsContext, \"childContextTypes\", ContextTypes);\n\nexport { AnalyticsContext as default };","import getPrototypeOf from \"./getPrototypeOf.js\";\nexport default function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}","import superPropBase from \"./superPropBase.js\";\nexport default function _get() {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get.bind();\n } else {\n _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get.apply(this, arguments);\n}","import _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nvar AnalyticsEvent =\n/*#__PURE__*/\nfunction () {\n function AnalyticsEvent(props) {\n var _this = this;\n\n _classCallCheck(this, AnalyticsEvent);\n\n _defineProperty(this, \"payload\", void 0);\n\n _defineProperty(this, \"clone\", function () {\n // We stringify and parse here to get a hacky \"deep clone\" of the object.\n // This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,\n // but none of those need to be represented in our payload, so we consider this fine\n var payload = JSON.parse(JSON.stringify(_this.payload));\n return new AnalyticsEvent({\n payload: payload\n });\n });\n\n this.payload = props.payload;\n }\n\n _createClass(AnalyticsEvent, [{\n key: \"update\",\n value: function update(updater) {\n if (typeof updater === 'function') {\n this.payload = updater(this.payload);\n } else if (_typeof(updater) === 'object') {\n this.payload = _objectSpread({}, this.payload, updater);\n }\n\n return this;\n }\n }]);\n\n return AnalyticsEvent;\n}();\n\nexport { AnalyticsEvent as default };","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport AnalyticsEvent from './AnalyticsEvent';\nvar _console = console,\n warn = _console.warn;\n\nvar UIAnalyticsEvent =\n/*#__PURE__*/\nfunction (_AnalyticsEvent) {\n _inherits(UIAnalyticsEvent, _AnalyticsEvent);\n\n function UIAnalyticsEvent(props) {\n var _this;\n\n _classCallCheck(this, UIAnalyticsEvent);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(UIAnalyticsEvent).call(this, props));\n\n _defineProperty(_assertThisInitialized(_this), \"context\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlers\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"hasFired\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"clone\", function () {\n if (_this.hasFired) {\n warn(\"Cannot clone an event after it's been fired.\");\n return null;\n }\n\n var context = _toConsumableArray(_this.context);\n\n var handlers = _toConsumableArray(_this.handlers); // We stringify and parse here to get a hacky \"deep clone\" of the object.\n // This has some limitations in that it wont support functions, regexs, Maps, Sets, etc,\n // but none of those need to be represented in our payload, so we consider this fine\n\n\n var payload = JSON.parse(JSON.stringify(_this.payload));\n return new UIAnalyticsEvent({\n context: context,\n handlers: handlers,\n payload: payload\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"fire\", function (channel) {\n if (_this.hasFired) {\n warn('Cannot fire an event twice.');\n return;\n }\n\n _this.handlers.forEach(function (handler) {\n handler(_assertThisInitialized(_this), channel);\n });\n\n _this.hasFired = true;\n });\n\n _this.context = props.context || [];\n _this.handlers = props.handlers || [];\n _this.hasFired = false;\n return _this;\n }\n\n _createClass(UIAnalyticsEvent, [{\n key: \"update\",\n value: function update(updater) {\n if (this.hasFired) {\n warn(\"Cannot update an event after it's been fired.\");\n return this;\n }\n\n return _get(_getPrototypeOf(UIAnalyticsEvent.prototype), \"update\", this).call(this, updater);\n }\n }]);\n\n return UIAnalyticsEvent;\n}(AnalyticsEvent);\n\nexport { UIAnalyticsEvent as default };","import _extends from \"@babel/runtime/helpers/extends\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport UIAnalyticsEvent from './UIAnalyticsEvent';\n\n// This component is used to grab the analytics functions off context.\n// It uses legacy context, but provides an API similar to 16.3 context.\n// This makes it easier to use with the forward ref API.\nvar AnalyticsContextConsumer =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(AnalyticsContextConsumer, _Component);\n\n // Store references to the original and patched event props so we can determine when to update\n // the patched props\n function AnalyticsContextConsumer(_props) {\n var _this;\n\n _classCallCheck(this, AnalyticsContextConsumer);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(AnalyticsContextConsumer).call(this, _props));\n\n _defineProperty(_assertThisInitialized(_this), \"originalEventProps\", {});\n\n _defineProperty(_assertThisInitialized(_this), \"patchedEventProps\", {});\n\n _defineProperty(_assertThisInitialized(_this), \"updatePatchedEventProps\", function (props) {\n var changedPropCallbacks = Object.keys(_this.props.createEventMap).filter(function (p) {\n return _this.originalEventProps[p] !== props[p];\n });\n\n if (changedPropCallbacks.length > 0) {\n _this.patchedEventProps = _objectSpread({}, _this.patchedEventProps, _this.mapCreateEventsToProps(changedPropCallbacks, props));\n changedPropCallbacks.forEach(function (p) {\n _this.originalEventProps[p] = props[p];\n });\n }\n\n return _this.patchedEventProps;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"mapCreateEventsToProps\", function (changedPropNames, props) {\n return changedPropNames.reduce(function (modified, propCallbackName) {\n var eventCreator = _this.props.createEventMap[propCallbackName];\n var providedCallback = props[propCallbackName];\n\n if (!['object', 'function'].includes(_typeof(eventCreator))) {\n return modified;\n }\n\n var modifiedCallback = function modifiedCallback() {\n var analyticsEvent = typeof eventCreator === 'function' ? eventCreator(_this.createAnalyticsEvent, props) : _this.createAnalyticsEvent(eventCreator);\n\n if (providedCallback) {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n providedCallback.apply(void 0, args.concat([analyticsEvent]));\n }\n };\n\n return _objectSpread({}, modified, _defineProperty({}, propCallbackName, modifiedCallback));\n }, {});\n });\n\n _defineProperty(_assertThisInitialized(_this), \"createAnalyticsEvent\", function (payload) {\n var _this$context = _this.context,\n getAtlaskitAnalyticsEventHandlers = _this$context.getAtlaskitAnalyticsEventHandlers,\n getAtlaskitAnalyticsContext = _this$context.getAtlaskitAnalyticsContext;\n var context = typeof getAtlaskitAnalyticsContext === 'function' && getAtlaskitAnalyticsContext() || [];\n var handlers = typeof getAtlaskitAnalyticsEventHandlers === 'function' && getAtlaskitAnalyticsEventHandlers() || [];\n return new UIAnalyticsEvent({\n context: context,\n handlers: handlers,\n payload: payload\n });\n });\n\n Object.keys(_this.props.createEventMap).forEach(function (p) {\n _this.originalEventProps[p] = _props.wrappedComponentProps[p];\n });\n _this.patchedEventProps = _this.mapCreateEventsToProps(Object.keys(_this.props.createEventMap), _props.wrappedComponentProps);\n return _this;\n } // Update patched event props only if the original props have changed\n\n\n _createClass(AnalyticsContextConsumer, [{\n key: \"render\",\n value: function render() {\n var patchedEventProps = this.updatePatchedEventProps(this.props.wrappedComponentProps);\n return this.props.children({\n createAnalyticsEvent: this.createAnalyticsEvent,\n patchedEventProps: patchedEventProps\n });\n }\n }]);\n\n return AnalyticsContextConsumer;\n}(Component);\n\n_defineProperty(AnalyticsContextConsumer, \"contextTypes\", {\n getAtlaskitAnalyticsEventHandlers: PropTypes.func,\n getAtlaskitAnalyticsContext: PropTypes.func\n});\n\n_defineProperty(AnalyticsContextConsumer, \"defaultProps\", {\n createEventMap: {}\n});\n\nexport default function withAnalyticsEvents() {\n var createEventMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return function (WrappedComponent) {\n // $FlowFixMe - flow 0.67 doesn't know about forwardRef\n var WithAnalyticsEvents = React.forwardRef(function (props, ref) {\n return React.createElement(AnalyticsContextConsumer, {\n createEventMap: createEventMap,\n wrappedComponentProps: props\n }, function (_ref) {\n var createAnalyticsEvent = _ref.createAnalyticsEvent,\n patchedEventProps = _ref.patchedEventProps;\n return React.createElement(WrappedComponent, _extends({}, props, patchedEventProps, {\n createAnalyticsEvent: createAnalyticsEvent,\n ref: ref\n }));\n });\n });\n WithAnalyticsEvents.displayName = \"WithAnalyticsEvents(\".concat(WrappedComponent.displayName || WrappedComponent.name, \")\");\n return WithAnalyticsEvents;\n };\n}\nexport var withAnalyticsForSumTypeProps = withAnalyticsEvents;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport { jsx as ___EmotionJSX } from \"@emotion/core\";\nimport React from 'react';\nexport default (function (_ref) {\n var appearance = _ref.appearance,\n elemAfterInput = _ref.elemAfterInput,\n elemBeforeInput = _ref.elemBeforeInput,\n forwardedRef = _ref.forwardedRef,\n isCompact = _ref.isCompact,\n isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n isHovered = _ref.isHovered,\n isInvalid = _ref.isInvalid,\n isMonospaced = _ref.isMonospaced,\n isReadOnly = _ref.isReadOnly,\n isRequired = _ref.isRequired,\n onMouseDown = _ref.onMouseDown,\n onMouseEnter = _ref.onMouseEnter,\n onMouseLeave = _ref.onMouseLeave,\n theme = _ref.theme,\n rest = _objectWithoutProperties(_ref, [\"appearance\", \"elemAfterInput\", \"elemBeforeInput\", \"forwardedRef\", \"isCompact\", \"isDisabled\", \"isFocused\", \"isHovered\", \"isInvalid\", \"isMonospaced\", \"isReadOnly\", \"isRequired\", \"onMouseDown\", \"onMouseEnter\", \"onMouseLeave\", \"theme\"]);\n\n return (// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n ___EmotionJSX(\"div\", {\n css: theme.container,\n onMouseDown: onMouseDown,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave\n }, elemBeforeInput, ___EmotionJSX(\"input\", _extends({\n ref: forwardedRef,\n disabled: isDisabled,\n readOnly: isReadOnly,\n required: isRequired,\n css: theme.input\n }, rest)), elemAfterInput)\n );\n});","import { css } from 'styled-components';\nimport { B100, N30A, skeleton as skeletonColor } from './colors';\nexport const FLATTENED = '__FLATTENED__';\nexport const CHANNEL = '__ATLASKIT_THEME__';\nexport const DEFAULT_THEME_MODE = 'light';\nexport const THEME_MODES = ['light', 'dark'];\n/*\n These theme values are expressed as functions so that if we decide to make\n them dependent on props in the future, it wouldn't require a significant\n refactor everywhere they are being used.\n*/\nexport const borderRadius = () => 3;\nexport const gridSize = () => 8;\nexport const fontSize = () => 14;\nexport const fontSizeSmall = () => 11;\nexport const fontFamily = () => `-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif`;\nexport const codeFontFamily = () => `'SFMono-Medium', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace`;\nexport const focusRing = (color = B100, outlineWidth = gridSize() / 4) => `\n &:focus {\n outline: none;\n box-shadow: 0px 0px 0px ${outlineWidth}px ${color};\n }\n`;\nexport const noFocusRing = () => `\n box-shadow: none;\n`;\nexport const layers = {\n card: () => 100,\n dialog: () => 300,\n navigation: () => 200,\n layer: () => 400,\n blanket: () => 500,\n modal: () => 510,\n flag: () => 600,\n spotlight: () => 700,\n tooltip: () => 800,\n};\nexport const visuallyHidden = () => ({\n border: '0 !important',\n clip: 'rect(1px, 1px, 1px, 1px) !important',\n height: '1px !important',\n overflow: 'hidden !important',\n padding: '0 !important',\n position: 'absolute !important',\n width: '1px !important',\n whiteSpace: 'nowrap !important',\n});\n/**\n * Deprecated Styled Components mixin.\n * Use visuallyHidden instead.\n * @deprecated\n */\nexport const assistive = () => css `\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n height: 1px !important;\n overflow: hidden !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n white-space: nowrap !important;\n`;\nexport const skeletonShimmer = () => ({\n css: {\n backgroundColor: skeletonColor(),\n animationDuration: '1.5s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear',\n animationDirection: 'alternate',\n },\n keyframes: {\n from: {\n backgroundColor: skeletonColor(),\n },\n to: {\n backgroundColor: N30A,\n },\n },\n});\n//# sourceMappingURL=constants.js.map","// ideally this would be fetched from ../constants but that causes a\n// circular dep loop. This will be refactored as part of a breaking\n// change in the future.\nconst DEFAULT_THEME_MODE = 'light';\nconst THEME_MODES = ['light', 'dark'];\n// Resolves the different types of theme objects in the current API\nexport default function getTheme(props) {\n if (props && props.theme) {\n // Theme is the global Atlaskit theme\n if ('__ATLASKIT_THEME__' in props.theme) {\n return props.theme.__ATLASKIT_THEME__;\n }\n // User has provided alternative modes\n else if ('mode' in props.theme && THEME_MODES.includes(props.theme.mode)) {\n return props.theme;\n }\n }\n // If format not supported (or no theme provided), return standard theme\n return { mode: DEFAULT_THEME_MODE };\n}\n//# sourceMappingURL=getTheme.js.map","/* eslint-disable prefer-rest-params */\nimport getTheme from './getTheme';\n// Unpack custom variants, and get correct value for the current theme\nfunction themedVariants(variantProp, variants) {\n return (props) => {\n const theme = getTheme(props);\n if (props && props[variantProp] && variants) {\n const modes = variants[props[variantProp]];\n if (modes && modes[theme.mode]) {\n const value = modes[theme.mode];\n if (value)\n return value; // TS believes value can be undefined\n }\n }\n return '';\n };\n}\nexport default function themed(modesOrVariant, variantModes) {\n if (typeof modesOrVariant === 'string') {\n return themedVariants(modesOrVariant, variantModes);\n }\n const modes = modesOrVariant;\n return (props) => {\n // Get theme from the user's props\n const theme = getTheme(props);\n // User isn't required to provide both light and dark values\n if (theme.mode in modes) {\n const value = modes[theme.mode]; // TS believes value can be undefined\n if (value)\n return value;\n }\n return '';\n };\n}\n//# sourceMappingURL=themed.js.map","import themed from './utils/themed';\n// Reds\nexport const R50 = '#FFEBE6';\nexport const R75 = '#FFBDAD';\nexport const R100 = '#FF8F73';\nexport const R200 = '#FF7452';\nexport const R300 = '#FF5630';\nexport const R400 = '#DE350B';\nexport const R500 = '#BF2600';\n// Yellows\nexport const Y50 = '#FFFAE6';\nexport const Y75 = '#FFF0B3';\nexport const Y100 = '#FFE380';\nexport const Y200 = '#FFC400';\nexport const Y300 = '#FFAB00';\nexport const Y400 = '#FF991F';\nexport const Y500 = '#FF8B00';\n// Greens\nexport const G50 = '#E3FCEF';\nexport const G75 = '#ABF5D1';\nexport const G100 = '#79F2C0';\nexport const G200 = '#57D9A3';\nexport const G300 = '#36B37E';\nexport const G400 = '#00875A';\nexport const G500 = '#006644';\n// Blues\nexport const B50 = '#DEEBFF';\nexport const B75 = '#B3D4FF';\nexport const B100 = '#4C9AFF';\nexport const B200 = '#2684FF';\nexport const B300 = '#0065FF';\nexport const B400 = '#0052CC';\nexport const B500 = '#0747A6';\n// Purples\nexport const P50 = '#EAE6FF';\nexport const P75 = '#C0B6F2';\nexport const P100 = '#998DD9';\nexport const P200 = '#8777D9';\nexport const P300 = '#6554C0';\nexport const P400 = '#5243AA';\nexport const P500 = '#403294';\n// Teals\nexport const T50 = '#E6FCFF';\nexport const T75 = '#B3F5FF';\nexport const T100 = '#79E2F2';\nexport const T200 = '#00C7E6';\nexport const T300 = '#00B8D9';\nexport const T400 = '#00A3BF';\nexport const T500 = '#008DA6';\n// Neutrals\nexport const N0 = '#FFFFFF';\nexport const N10 = '#FAFBFC';\nexport const N20 = '#F4F5F7';\nexport const N30 = '#EBECF0';\nexport const N40 = '#DFE1E6';\nexport const N50 = '#C1C7D0';\nexport const N60 = '#B3BAC5';\nexport const N70 = '#A5ADBA';\nexport const N80 = '#97A0AF';\nexport const N90 = '#8993A4';\nexport const N100 = '#7A869A';\nexport const N200 = '#6B778C';\nexport const N300 = '#5E6C84';\nexport const N400 = '#505F79';\nexport const N500 = '#42526E';\nexport const N600 = '#344563';\nexport const N700 = '#253858';\nexport const N800 = '#172B4D';\n// ATTENTION: update the tints if you update this\nexport const N900 = '#091E42';\n// Each tint is made of N900 and an alpha channel\nexport const N10A = 'rgba(9, 30, 66, 0.02)';\nexport const N20A = 'rgba(9, 30, 66, 0.04)';\nexport const N30A = 'rgba(9, 30, 66, 0.08)';\nexport const N40A = 'rgba(9, 30, 66, 0.13)';\nexport const N50A = 'rgba(9, 30, 66, 0.25)';\nexport const N60A = 'rgba(9, 30, 66, 0.31)';\nexport const N70A = 'rgba(9, 30, 66, 0.36)';\nexport const N80A = 'rgba(9, 30, 66, 0.42)';\nexport const N90A = 'rgba(9, 30, 66, 0.48)';\nexport const N100A = 'rgba(9, 30, 66, 0.54)';\nexport const N200A = 'rgba(9, 30, 66, 0.60)';\nexport const N300A = 'rgba(9, 30, 66, 0.66)';\nexport const N400A = 'rgba(9, 30, 66, 0.71)';\nexport const N500A = 'rgba(9, 30, 66, 0.77)';\nexport const N600A = 'rgba(9, 30, 66, 0.82)';\nexport const N700A = 'rgba(9, 30, 66, 0.89)';\nexport const N800A = 'rgba(9, 30, 66, 0.95)';\n// Dark Mode Neutrals\nexport const DN900 = '#E6EDFA';\nexport const DN800 = '#DCE5F5';\nexport const DN700 = '#CED9EB';\nexport const DN600 = '#B8C7E0';\nexport const DN500 = '#ABBBD6';\nexport const DN400 = '#9FB0CC';\nexport const DN300 = '#8C9CB8';\nexport const DN200 = '#7988A3';\nexport const DN100 = '#67758F';\nexport const DN90 = '#56637A';\nexport const DN80 = '#455166';\nexport const DN70 = '#3B475C';\nexport const DN60 = '#313D52';\nexport const DN50 = '#283447';\nexport const DN40 = '#202B3D';\nexport const DN30 = '#1B2638';\nexport const DN20 = '#121A29';\nexport const DN10 = '#0E1624';\n// ATTENTION: update the tints if you update this\nexport const DN0 = '#0D1424';\n// Each dark tint is made of DN0 and an alpha channel\nexport const DN800A = 'rgba(13, 20, 36, 0.06)';\nexport const DN700A = 'rgba(13, 20, 36, 0.14)';\nexport const DN600A = 'rgba(13, 20, 36, 0.18)';\nexport const DN500A = 'rgba(13, 20, 36, 0.29)';\nexport const DN400A = 'rgba(13, 20, 36, 0.36)';\nexport const DN300A = 'rgba(13, 20, 36, 0.40)';\nexport const DN200A = 'rgba(13, 20, 36, 0.47)';\nexport const DN100A = 'rgba(13, 20, 36, 0.53)';\nexport const DN90A = 'rgba(13, 20, 36, 0.63)';\nexport const DN80A = 'rgba(13, 20, 36, 0.73)';\nexport const DN70A = 'rgba(13, 20, 36, 0.78)';\nexport const DN60A = 'rgba(13, 20, 36, 0.81)';\nexport const DN50A = 'rgba(13, 20, 36, 0.85)';\nexport const DN40A = 'rgba(13, 20, 36, 0.89)';\nexport const DN30A = 'rgba(13, 20, 36, 0.92)';\nexport const DN20A = 'rgba(13, 20, 36, 0.95)';\nexport const DN10A = 'rgba(13, 20, 36, 0.97)';\n// Themed colors\nexport const background = themed({ light: N0, dark: DN30 });\nexport const backgroundActive = themed({ light: B50, dark: B75 });\nexport const backgroundHover = themed({ light: N30, dark: DN70 });\nexport const backgroundOnLayer = themed({ light: N0, dark: DN50 });\nexport const text = themed({ light: N900, dark: DN600 });\nexport const textHover = themed({ light: N800, dark: DN600 });\nexport const textActive = themed({ light: B400, dark: B400 });\nexport const subtleText = themed({ light: N200, dark: DN300 });\nexport const placeholderText = themed({ light: N100, dark: DN200 });\nexport const heading = themed({ light: N800, dark: DN600 });\nexport const subtleHeading = themed({ light: N200, dark: DN300 });\nexport const codeBlock = themed({ light: N20, dark: DN50 });\nexport const link = themed({ light: B400, dark: B100 });\nexport const linkHover = themed({ light: B300, dark: B200 });\nexport const linkActive = themed({ light: B500, dark: B100 });\nexport const linkOutline = themed({ light: B100, dark: B200 });\nexport const primary = themed({ light: B400, dark: B100 });\nexport const blue = themed({ light: B400, dark: B100 });\nexport const teal = themed({ light: T300, dark: T200 });\nexport const purple = themed({ light: P300, dark: P100 });\nexport const red = themed({ light: R300, dark: R300 });\nexport const yellow = themed({ light: Y300, dark: Y300 });\nexport const green = themed({ light: G300, dark: G300 });\nexport const skeleton = () => N20A;\n//# sourceMappingURL=colors.js.map","import { colors } from '@atlaskit/theme'; // The following are the name for color mappings in @atlaskit/themes\n// The exports are the functions, not the objects, so could not be used here\n\nexport var disabledBackgroundColor = {\n light: colors.N20,\n dark: colors.DN20\n}; // For validation red is the new 'yellow' which was { light: colors.Y300, dark: colors.Y300 }\n\nexport var invalidBorderColor = {\n light: colors.R400,\n dark: colors.R400\n}; // The following do not yet have a darkmode 'map': N20A, N10\n\nexport var defaultBackgroundColor = {\n light: colors.N10,\n dark: colors.DN10\n};\nexport var defaultBackgroundColorFocus = {\n light: colors.N0,\n dark: colors.DN10\n};\nexport var defaultBackgroundColorHover = {\n light: colors.N30,\n dark: colors.DN30\n};\nexport var defaultBorderColor = {\n light: colors.N40,\n dark: colors.DN40\n};\nexport var defaultBorderColorFocus = {\n light: colors.B100,\n dark: colors.B75\n};\nexport var transparent = {\n light: 'transparent',\n dark: 'transparent'\n};\nexport var textColor = {\n light: colors.N900,\n dark: colors.DN600\n};\nexport var disabledTextColor = {\n light: colors.N70,\n dark: colors.DN90\n};\nexport var placeholderTextColor = {\n light: colors.N100,\n dark: colors.DN90\n};","import _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport { createTheme, codeFontFamily, gridSize, fontSize } from '@atlaskit/theme';\nimport * as componentTokens from './component-tokens';\nvar disabledRules = {\n light: {\n backgroundColor: componentTokens.defaultBackgroundColor.light,\n backgroundColorFocus: componentTokens.disabledBackgroundColor.light,\n backgroundColorHover: componentTokens.disabledBackgroundColor.light,\n borderColor: componentTokens.defaultBorderColor.light,\n borderColorFocus: componentTokens.defaultBorderColorFocus.light,\n textColor: componentTokens.disabledTextColor.light\n },\n dark: {\n backgroundColor: componentTokens.defaultBackgroundColor.dark,\n backgroundColorFocus: componentTokens.disabledBackgroundColor.dark,\n backgroundColorHover: componentTokens.disabledBackgroundColor.dark,\n borderColor: componentTokens.defaultBorderColor.dark,\n borderColorFocus: componentTokens.defaultBorderColorFocus.dark,\n textColor: componentTokens.disabledTextColor.dark\n }\n};\nvar invalidRules = {\n light: {\n backgroundColor: componentTokens.defaultBackgroundColor.light,\n backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.light,\n backgroundColorHover: componentTokens.defaultBackgroundColorHover.light,\n borderColor: componentTokens.invalidBorderColor.light,\n borderColorFocus: componentTokens.defaultBorderColorFocus.light\n },\n dark: {\n backgroundColor: componentTokens.defaultBackgroundColor.dark,\n backgroundColorFocus: componentTokens.defaultBackgroundColorFocus.dark,\n backgroundColorHover: componentTokens.defaultBackgroundColorHover.dark,\n borderColor: componentTokens.invalidBorderColor.dark,\n borderColorFocus: componentTokens.defaultBorderColorFocus.dark\n }\n};\nvar backgroundColor = {\n standard: componentTokens.defaultBackgroundColor,\n subtle: componentTokens.transparent,\n none: componentTokens.transparent\n};\nvar backgroundColorFocus = {\n standard: componentTokens.defaultBackgroundColorFocus,\n subtle: componentTokens.defaultBackgroundColorFocus,\n none: componentTokens.transparent\n};\nvar backgroundColorHover = {\n standard: componentTokens.defaultBackgroundColorHover,\n subtle: componentTokens.defaultBackgroundColorHover,\n none: componentTokens.transparent\n};\nvar borderColor = {\n standard: componentTokens.defaultBorderColor,\n subtle: componentTokens.transparent,\n none: componentTokens.transparent\n};\nvar borderColorFocus = {\n standard: componentTokens.defaultBorderColorFocus,\n subtle: componentTokens.defaultBorderColorFocus,\n none: componentTokens.transparent\n};\n\nvar getContainerBackgroundColor = function getContainerBackgroundColor(_ref) {\n var appearance = _ref.appearance,\n isFocused = _ref.isFocused,\n isHovered = _ref.isHovered,\n isDisabled = _ref.isDisabled,\n isInvalid = _ref.isInvalid,\n mode = _ref.mode;\n\n if (isDisabled) {\n // switch on focus then switch on hover\n if (isFocused) {\n return {\n backgroundColor: disabledRules[mode].backgroundColorFocus\n };\n }\n\n if (isHovered) {\n return {\n backgroundColor: disabledRules[mode].backgroundColorHover\n };\n }\n\n return {\n backgroundColor: disabledRules[mode].backgroundColor\n };\n }\n\n if (isInvalid) {\n // switch on focus then switch on hover\n if (isFocused) {\n return {\n backgroundColor: invalidRules[mode].backgroundColorFocus\n };\n }\n\n if (isHovered) {\n return {\n backgroundColor: invalidRules[mode].backgroundColorHover\n };\n }\n\n return {\n backgroundColor: invalidRules[mode].backgroundColor\n };\n } // switch on appearance then focus then switch on hover\n\n\n if (isFocused) {\n return {\n backgroundColor: backgroundColorFocus[appearance][mode]\n };\n }\n\n if (isHovered) {\n return {\n backgroundColor: backgroundColorHover[appearance][mode]\n };\n }\n\n return {\n backgroundColor: backgroundColor[appearance][mode]\n };\n};\n\nvar getContainerBorderColor = function getContainerBorderColor(_ref2) {\n var appearance = _ref2.appearance,\n isFocused = _ref2.isFocused,\n isDisabled = _ref2.isDisabled,\n isInvalid = _ref2.isInvalid,\n mode = _ref2.mode;\n\n if (isDisabled) {\n // switch on focus then switch on hover\n if (isFocused) {\n return {\n borderColor: disabledRules[mode].borderColorFocus\n };\n }\n\n return {\n borderColor: disabledRules[mode].borderColor\n };\n }\n\n if (isInvalid) {\n // switch on focus then switch on hover\n if (isFocused) {\n return {\n borderColor: invalidRules[mode].borderColorFocus\n };\n }\n\n return {\n borderColor: invalidRules[mode].borderColor\n };\n } // switch on appearance then focus then switch on hover\n\n\n if (isFocused) {\n return {\n borderColor: borderColorFocus[appearance][mode]\n };\n }\n\n return {\n borderColor: borderColor[appearance][mode]\n };\n};\n\nvar getPlaceholderColor = function getPlaceholderColor(_ref3) {\n var isDisabled = _ref3.isDisabled,\n mode = _ref3.mode;\n return isDisabled ? disabledRules[mode].textColor : componentTokens.placeholderTextColor[mode];\n}; // can't group these placeholder styles into one block because browsers drop\n// entire style blocks when any single selector fails to parse\n\n\nvar getPlaceholderStyle = function getPlaceholderStyle(props) {\n return {\n '&::-webkit-input-placeholder': {\n /* WebKit, Blink, Edge */\n color: getPlaceholderColor(props)\n },\n '&::-moz-placeholder': {\n /* Mozilla Firefox 19+ */\n color: getPlaceholderColor(props),\n opacity: 1\n },\n '&::-ms-input-placeholder': {\n /* Microsoft Edge */\n color: getPlaceholderColor(props)\n },\n '&:-ms-input-placeholder': {\n /* Internet Explorer 10-11 */\n color: getPlaceholderColor(props)\n }\n };\n};\n\nvar getMaxWidth = function getMaxWidth(_ref4) {\n var width = _ref4.width;\n if (!width) return \"100%\";\n\n switch (width) {\n case 'xsmall':\n return '80px';\n\n case 'small':\n return '160px';\n\n case 'medium':\n return '240px';\n\n case 'large':\n return '320px';\n\n case 'xlarge':\n return '480px';\n\n default:\n return \"\".concat(width, \"px\");\n }\n};\n\nexport var Theme = createTheme(function (props) {\n return {\n container: _objectSpread({\n alignItems: 'center'\n }, getContainerBackgroundColor(props), getContainerBorderColor(props), {\n borderRadius: '3px',\n borderWidth: '2px',\n borderStyle: props.appearance === 'none' ? 'none' : 'solid',\n boxSizing: 'border-box',\n color: props.isDisabled ? disabledRules[props.mode].textColor : componentTokens.textColor[props.mode],\n cursor: props.isDisabled ? 'not-allowed' : 'text',\n display: 'flex',\n flex: '1 1 100%',\n fontSize: \"\".concat(fontSize(), \"px\"),\n justifyContent: 'space-between',\n maxWidth: getMaxWidth(props),\n overflow: 'hidden',\n transition: \"background-color 0.2s ease-in-out, border-color 0.2s ease-in-out\",\n wordWrap: 'break-word',\n verticalAlign: 'top',\n pointerEvents: 'auto'\n }),\n input: _objectSpread({\n backgroundColor: 'transparent',\n border: 0,\n color: 'inherit',\n cursor: 'inherit',\n fontFamily: props.isMonospaced ? codeFontFamily() : 'inherit',\n fontSize: \"\".concat(fontSize(), \"px\"),\n minWidth: '0',\n outline: 'none',\n padding: \"\".concat(props.isCompact ? gridSize() / 2 : gridSize(), \"px \").concat(gridSize() - 2, \"px\"),\n width: '100%',\n height: \"\".concat(gridSize() * 2.5 / fontSize(), \"em\"),\n lineHeight: gridSize() * 2.5 / fontSize(),\n '&[disabled]': {\n // Safari puts on some difficult to remove styles, mainly for disabled inputs\n // but we want full control so need to override them in all cases\n WebkitTextFillColor: 'unset',\n WebkitOpacity: 1\n },\n '&::-ms-clear': {\n display: 'none'\n },\n '&:invalid': {\n boxShadow: 'none'\n }\n }, getPlaceholderStyle(props))\n };\n});\nexport var themeTokens = {\n backgroundColor: backgroundColor,\n backgroundColorFocus: backgroundColorFocus,\n backgroundColorHover: backgroundColorHover,\n borderColor: borderColor,\n borderColorFocus: borderColorFocus,\n placeholderTextColor: componentTokens.placeholderTextColor,\n textColor: componentTokens.textColor,\n invalidRules: invalidRules,\n disabledRules: disabledRules\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport { jsx as ___EmotionJSX } from \"@emotion/core\";\nimport GlobalTheme from '@atlaskit/theme';\nimport React, { Component } from 'react';\nimport { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';\nimport { name as packageName, version as packageVersion } from '../version.json';\nimport Input from './Input';\nimport { Theme } from '../theme';\n\nvar Textfield =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Textfield, _Component);\n\n function Textfield() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Textfield);\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(Textfield)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n isFocused: false,\n isHovered: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"input\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnFocus\", function (e) {\n _this.setState({\n isFocused: true\n });\n\n if (_this.props.onFocus) {\n _this.props.onFocus(e);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnBlur\", function (e) {\n _this.setState({\n isFocused: false\n });\n\n if (_this.props.onBlur) {\n _this.props.onBlur(e);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnMouseDown\", function (e) {\n /** Running e.preventDefault() on the INPUT prevents double click behaviour */\n // $FlowFixMe - tagName does not exist in event.target\n if (e.target.tagName !== 'INPUT') {\n e.preventDefault();\n }\n\n if (_this.input && !_this.props.isDisabled && document.activeElement !== _this.input) {\n _this.input.focus();\n }\n\n if (_this.props.onMouseDown) {\n _this.props.onMouseDown(e);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMouseEnter\", function () {\n if (!_this.props.isDisabled) {\n _this.setState({\n isHovered: true\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onMouseLeave\", function () {\n if (!_this.props.isDisabled) {\n _this.setState({\n isHovered: false\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setInputRef\", function (input) {\n _this.input = input;\n var forwardedRef = _this.props.forwardedRef;\n\n if (forwardedRef && _typeof(forwardedRef) === 'object') {\n forwardedRef.current = input;\n }\n\n if (forwardedRef && typeof forwardedRef === 'function') {\n forwardedRef(input);\n }\n });\n\n return _this;\n }\n\n _createClass(Textfield, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$state = this.state,\n isFocused = _this$state.isFocused,\n isHovered = _this$state.isHovered;\n\n var _this$props = this.props,\n appearance = _this$props.appearance,\n createAnalyticsEvent = _this$props.createAnalyticsEvent,\n forwardedRef = _this$props.forwardedRef,\n isCompact = _this$props.isCompact,\n isDisabled = _this$props.isDisabled,\n isInvalid = _this$props.isInvalid,\n isMonospaced = _this$props.isMonospaced,\n theme = _this$props.theme,\n width = _this$props.width,\n rest = _objectWithoutProperties(_this$props, [\"appearance\", \"createAnalyticsEvent\", \"forwardedRef\", \"isCompact\", \"isDisabled\", \"isInvalid\", \"isMonospaced\", \"theme\", \"width\"]);\n\n return ___EmotionJSX(Theme.Provider, {\n value: theme\n }, ___EmotionJSX(GlobalTheme.Consumer, null, function (_ref) {\n var mode = _ref.mode;\n return ___EmotionJSX(Theme.Consumer, {\n appearance: appearance,\n mode: mode,\n width: width,\n isDisabled: isDisabled,\n isCompact: isCompact,\n isMonospaced: isMonospaced,\n isFocused: isFocused,\n isHovered: isHovered,\n isInvalid: isInvalid\n }, function (tokens) {\n return ___EmotionJSX(Input, _extends({}, rest, {\n theme: tokens,\n isDisabled: isDisabled,\n isFocused: isFocused,\n isHovered: isHovered,\n onMouseEnter: _this2.onMouseEnter,\n onMouseLeave: _this2.onMouseLeave,\n forwardedRef: _this2.setInputRef,\n onFocus: _this2.handleOnFocus,\n onBlur: _this2.handleOnBlur,\n onMouseDown: _this2.handleOnMouseDown\n }));\n });\n }));\n }\n }]);\n\n return Textfield;\n}(Component); // $ExpectError - flow 0.67 doesn't know about forwardRef\n\n\n_defineProperty(Textfield, \"defaultProps\", {\n appearance: 'standard',\n isCompact: false,\n isMonospaced: false,\n isInvalid: false\n});\n\nvar ForwardRefTextfield = React.forwardRef(function (props, ref) {\n return ___EmotionJSX(Textfield, _extends({}, props, {\n forwardedRef: ref\n }));\n});\nexport { ForwardRefTextfield as TextFieldWithoutAnalytics };\nvar createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');\nexport default withAnalyticsContext({\n componentName: 'textField',\n packageName: packageName,\n packageVersion: packageVersion\n})(withAnalyticsEvents({\n onBlur: createAndFireEventOnAtlaskit({\n action: 'blurred',\n actionSubject: 'textField',\n attributes: {\n componentName: 'textField',\n packageName: packageName,\n packageVersion: packageVersion\n }\n }),\n onFocus: createAndFireEventOnAtlaskit({\n action: 'focused',\n actionSubject: 'textField',\n attributes: {\n componentName: 'textField',\n packageName: packageName,\n packageVersion: packageVersion\n }\n })\n})(ForwardRefTextfield));","export default (function (channel) {\n return function (payload) {\n return function (createAnalyticsEvent) {\n var consumerEvent = createAnalyticsEvent(payload);\n consumerEvent.clone().fire(channel);\n return consumerEvent;\n };\n };\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport React from 'react';\nimport AnalyticsContext from './AnalyticsContext';\nexport default function withAnalyticsContext() {\n var defaultData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return function (WrappedComponent) {\n // $FlowFixMe - flow 0.67 doesn't know about forwardRef\n var WithAnalyticsContext = React.forwardRef(function (props, ref) {\n // eslint-disable-next-line react/prop-types\n var _props$analyticsConte = props.analyticsContext,\n analyticsContext = _props$analyticsConte === void 0 ? {} : _props$analyticsConte,\n others = _objectWithoutProperties(props, [\"analyticsContext\"]);\n\n var data = _objectSpread({}, defaultData, analyticsContext);\n\n return React.createElement(AnalyticsContext, {\n data: data\n }, React.createElement(WrappedComponent, _extends({}, others, {\n ref: ref\n })));\n });\n WithAnalyticsContext.displayName = \"WithAnalyticsContext(\".concat(WrappedComponent.displayName || WrappedComponent.name, \")\");\n return WithAnalyticsContext;\n };\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import defineProperty from \"./defineProperty.js\";\nexport default function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? Object(arguments[i]) : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys.push.apply(ownKeys, 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}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}"],"names":["ContextTypes","getAtlaskitAnalyticsEventHandlers","getAtlaskitAnalyticsContext","noop","AnalyticsListener","Component","constructor","props","super","this","getAnalyticsEventHandlers","channel","onEvent","context","event","eventChannel","contextValue","render","children","value","ExportedAnalyticsListener","createTheme","defaultGetTokens","emptyThemeFn","getTokens","ThemeContext","createContext","Consumer","themeProps","tokens","useContext","Provider","themeFn","valueFn","mixedFn","useCallback","mode","AnalyticsContext","_Component","_getPrototypeOf2","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getAnalyticsContext","data","ancestorData","key","Children","_superPropBase","object","property","Object","prototype","hasOwnProperty","getPrototypeOf","_get","Reflect","get","bind","target","receiver","base","desc","getOwnPropertyDescriptor","AnalyticsEvent","payload","JSON","parse","stringify","updater","warn","console","UIAnalyticsEvent","_AnalyticsEvent","hasFired","handlers","forEach","handler","AnalyticsContextConsumer","_props","changedPropCallbacks","keys","createEventMap","filter","p","originalEventProps","patchedEventProps","mapCreateEventsToProps","changedPropNames","reduce","modified","propCallbackName","eventCreator","providedCallback","includes","analyticsEvent","createAnalyticsEvent","_this$context","wrappedComponentProps","updatePatchedEventProps","_ref","appearance","elemAfterInput","elemBeforeInput","forwardedRef","isDisabled","isCompact","isReadOnly","isFocused","isHovered","isInvalid","isMonospaced","isRequired","onMouseDown","onMouseEnter","onMouseLeave","theme","rest","css","container","ref","disabled","readOnly","required","input","getTheme","__ATLASKIT_THEME__","themed","modesOrVariant","variantModes","variantProp","variants","modes","R300","R400","Y300","G300","B75","B200","B400","N0","N20","N30","N100","N200","N800","N900","DN600","DN300","DN90","DN50","DN30","DN10","light","dark","disabledBackgroundColor","defaultBackgroundColor","defaultBackgroundColorFocus","defaultBackgroundColorHover","defaultBorderColor","defaultBorderColorFocus","transparent","textColor","placeholderTextColor","disabledRules","backgroundColor","backgroundColorFocus","backgroundColorHover","borderColor","borderColorFocus","invalidRules","standard","subtle","none","getContainerBorderColor","_ref2","getPlaceholderColor","_ref3","getPlaceholderStyle","color","opacity","getMaxWidth","_ref4","width","alignItems","borderRadius","borderWidth","borderStyle","boxSizing","cursor","display","flex","fontSize","justifyContent","maxWidth","overflow","transition","wordWrap","verticalAlign","pointerEvents","border","fontFamily","minWidth","outline","padding","gridSize","height","lineHeight","WebkitTextFillColor","WebkitOpacity","boxShadow","Textfield","e","setState","onFocus","onBlur","tagName","preventDefault","document","activeElement","focus","current","_this2","_this$state","state","_this$props","Input","setInputRef","handleOnFocus","handleOnBlur","handleOnMouseDown","ForwardRefTextfield","createAndFireEventOnAtlaskit","consumerEvent","clone","fire","defaultData","undefined","WrappedComponent","WithAnalyticsContext","_props$analyticsConte","analyticsContext","others","displayName","name","withAnalyticsContext","componentName","packageName","packageVersion","WithAnalyticsEvents","withAnalyticsEvents","action","actionSubject","attributes","_arrayLikeToArray","arr","len","i","arr2","_arrayWithoutHoles","isArray","_iterableToArray","iter","Symbol","iterator","from","_nonIterableSpread","TypeError","_objectSpread","source","ownKeys","getOwnPropertySymbols","push","sym","enumerable","_toConsumableArray","_unsupportedIterableToArray","o","minLen","n","toString","slice","test"],"sourceRoot":""}