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EAAMmE,QACdf,GAAU,OAAG,UAAU,QAAW8S,EAAQ,UAAWvU,GACrDrB,GAAO,OAAkB2V,EAAejW,GACxCiB,GAAc,OAAiBjB,GACnC,OAAoB,gBAAoBiB,GAAa,OAAS,CAAC,EAAGX,EAAM,CACtEqB,UAAWyB,EACXnD,IAAKA,IACH,KAAoByB,GAAYyC,EAAUzC,EAChD,IACAuU,EAAcxV,aAAe,CAAC,KAAM,WAAY,YAAa,UAAW,UACxEwV,EAAcvV,YAAc,gBAC5BuV,EAActV,UAWV,CAAC,EACL,K","sources":["webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/addons/Radio/Radio.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/addons/TextArea/TextArea.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/collections/Menu/Menu.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/collections/Menu/MenuHeader.js","webpack://artfully-walls/./node_modules/lodash-es/_asciiWords.js","webpack://artfully-walls/./node_modules/lodash-es/_hasUnicodeWord.js","webpack://artfully-walls/./node_modules/lodash-es/_unicodeWords.js","webpack://artfully-walls/./node_modules/lodash-es/words.js","webpack://artfully-walls/./node_modules/lodash-es/_createCompounder.js","webpack://artfully-walls/./node_modules/lodash-es/_castSlice.js","webpack://artfully-walls/./node_modules/lodash-es/_asciiToArray.js","webpack://artfully-walls/./node_modules/lodash-es/_unicodeToArray.js","webpack://artfully-walls/./node_modules/lodash-es/_stringToArray.js","webpack://artfully-walls/./node_modules/lodash-es/_createCaseFirst.js","webpack://artfully-walls/./node_modules/lodash-es/upperFirst.js","webpack://artfully-walls/./node_modules/lodash-es/startCase.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/collections/Menu/MenuItem.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/collections/Menu/MenuMenu.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/lib/eventStack/index.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/lib/hooks/useForceUpdate.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/lib/hooks/usePrevious.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/lib/isRefObject.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Checkbox/Checkbox.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/Modal.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/utils/index.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/ModalActions.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/ModalContent.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/ModalDescription.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/lib/hooks/useClassNamesOnNode.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/ModalDimmer.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Modal/ModalHeader.js","webpack://artfully-walls/./node_modules/@fluentui/react-component-event-listener/dist/es/index.js","webpack://artfully-walls/./node_modules/@fluentui/react-component-event-listener/dist/es/useEventListener.js","webpack://artfully-walls/./node_modules/@fluentui/react-component-event-listener/dist/es/EventListener.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Sidebar/Sidebar.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Sidebar/SidebarPushable.js","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Sidebar/SidebarPusher.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { getUnhandledProps } from '../../lib';\nimport Checkbox from '../../modules/Checkbox';\n\n/**\n * A Radio is sugar for .\n * Useful for exclusive groups of sliders or toggles.\n * @see Checkbox\n * @see Form\n */\nvar Radio = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var slider = props.slider,\n toggle = props.toggle,\n _props$type = props.type,\n type = _props$type === void 0 ? 'radio' : _props$type;\n var rest = getUnhandledProps(Radio, props);\n // radio, slider, toggle are exclusive\n // use an undefined radio if slider or toggle are present\n var radio = !(slider || toggle) || undefined;\n return /*#__PURE__*/React.createElement(Checkbox, _extends({}, rest, {\n type: type,\n radio: radio,\n slider: slider,\n toggle: toggle,\n ref: ref\n }));\n});\nRadio.handledProps = [\"slider\", \"toggle\", \"type\"];\nRadio.displayName = 'Radio';\nRadio.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** Format to emphasize the current selection state. */\n slider: Checkbox.propTypes.slider,\n /** Format to show an on or off choice. */\n toggle: Checkbox.propTypes.toggle,\n /** HTML input type, either checkbox or radio. */\n type: Checkbox.propTypes.type\n} : {};\nexport default Radio;","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _invoke from \"lodash-es/invoke\";\nimport _get from \"lodash-es/get\";\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { getComponentType, getUnhandledProps, useMergedRefs } from '../../lib';\n\n/**\n * A TextArea can be used to allow for extended user input.\n * @see Form\n */\nvar TextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _props$rows = props.rows,\n rows = _props$rows === void 0 ? 3 : _props$rows,\n value = props.value;\n var elementRef = useMergedRefs(ref, React.useRef());\n var handleChange = function handleChange(e) {\n var newValue = _get(e, 'target.value');\n _invoke(props, 'onChange', e, _extends({}, props, {\n value: newValue\n }));\n };\n var handleInput = function handleInput(e) {\n var newValue = _get(e, 'target.value');\n _invoke(props, 'onInput', e, _extends({}, props, {\n value: newValue\n }));\n };\n var rest = getUnhandledProps(TextArea, props);\n var ElementType = getComponentType(props, {\n defaultAs: 'textarea'\n });\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n onChange: handleChange,\n onInput: handleInput,\n ref: elementRef,\n rows: rows,\n value: value\n }));\n});\nTextArea.handledProps = [\"as\", \"onChange\", \"onInput\", \"rows\", \"value\"];\nTextArea.displayName = 'TextArea';\nTextArea.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /**\n * Called on change.\n * @param {SyntheticEvent} event - The React SyntheticEvent object\n * @param {object} data - All props and the event value.\n */\n onChange: PropTypes.func,\n /**\n * Called on input.\n * @param {SyntheticEvent} event - The React SyntheticEvent object\n * @param {object} data - All props and the event value.\n */\n onInput: PropTypes.func,\n /** Indicates row count for a TextArea. */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** The value of the textarea. */\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n} : {};\nexport default TextArea;","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _without from \"lodash-es/without\";\nimport _invoke from \"lodash-es/invoke\";\nimport _map from \"lodash-es/map\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, createShorthandFactory, getComponentType, getUnhandledProps, SUI, useKeyOnly, useKeyOrValueAndKey, useValueAndKey, useWidthProp, useAutoControlledValue } from '../../lib';\nimport MenuHeader from './MenuHeader';\nimport MenuItem from './MenuItem';\nimport MenuMenu from './MenuMenu';\n\n/**\n * A menu displays grouped navigation actions.\n * @see Dropdown\n */\nvar Menu = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var attached = props.attached,\n borderless = props.borderless,\n children = props.children,\n className = props.className,\n color = props.color,\n compact = props.compact,\n fixed = props.fixed,\n floated = props.floated,\n fluid = props.fluid,\n icon = props.icon,\n inverted = props.inverted,\n items = props.items,\n pagination = props.pagination,\n pointing = props.pointing,\n secondary = props.secondary,\n size = props.size,\n stackable = props.stackable,\n tabular = props.tabular,\n text = props.text,\n vertical = props.vertical,\n widths = props.widths;\n var _useAutoControlledVal = useAutoControlledValue({\n state: props.activeIndex,\n defaultState: props.defaultActiveIndex,\n initialState: -1\n }),\n activeIndex = _useAutoControlledVal[0],\n setActiveIndex = _useAutoControlledVal[1];\n var classes = cx('ui', color, size, useKeyOnly(borderless, 'borderless'), useKeyOnly(compact, 'compact'), useKeyOnly(fluid, 'fluid'), useKeyOnly(inverted, 'inverted'), useKeyOnly(pagination, 'pagination'), useKeyOnly(pointing, 'pointing'), useKeyOnly(secondary, 'secondary'), useKeyOnly(stackable, 'stackable'), useKeyOnly(text, 'text'), useKeyOnly(vertical, 'vertical'), useKeyOrValueAndKey(attached, 'attached'), useKeyOrValueAndKey(floated, 'floated'), useKeyOrValueAndKey(icon, 'icon'), useKeyOrValueAndKey(tabular, 'tabular'), useValueAndKey(fixed, 'fixed'), useWidthProp(widths, 'item'), className, 'menu');\n var rest = getUnhandledProps(Menu, props);\n var ElementType = getComponentType(props);\n if (!childrenUtils.isNil(children)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), children);\n }\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), _map(items, function (item, index) {\n return MenuItem.create(item, {\n defaultProps: {\n active: parseInt(activeIndex, 10) === index,\n index: index\n },\n overrideProps: function overrideProps(predefinedProps) {\n return {\n onClick: function onClick(e, itemProps) {\n var itemIndex = itemProps.index;\n setActiveIndex(itemIndex);\n _invoke(predefinedProps, 'onClick', e, itemProps);\n _invoke(props, 'onItemClick', e, itemProps);\n }\n };\n }\n });\n }));\n});\nMenu.handledProps = [\"activeIndex\", \"as\", \"attached\", \"borderless\", \"children\", \"className\", \"color\", \"compact\", \"defaultActiveIndex\", \"fixed\", \"floated\", \"fluid\", \"icon\", \"inverted\", \"items\", \"onItemClick\", \"pagination\", \"pointing\", \"secondary\", \"size\", \"stackable\", \"tabular\", \"text\", \"vertical\", \"widths\"];\nMenu.displayName = 'Menu';\nMenu.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Index of the currently active item. */\n activeIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** A menu may be attached to other content segments. */\n attached: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['top', 'bottom'])]),\n /** A menu item or menu can have no borders. */\n borderless: PropTypes.bool,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Additional colors can be specified. */\n color: PropTypes.oneOf(SUI.COLORS),\n /** A menu can take up only the space necessary to fit its content. */\n compact: PropTypes.bool,\n /** Initial activeIndex value. */\n defaultActiveIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** A menu can be fixed to a side of its context. */\n fixed: PropTypes.oneOf(['left', 'right', 'bottom', 'top']),\n /** A menu can be floated. */\n floated: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['right'])]),\n /** A vertical menu may take the size of its container. */\n fluid: PropTypes.bool,\n /** A menu may have just icons (bool) or labeled icons. */\n icon: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['labeled'])]),\n /** A menu may have its colors inverted to show greater contrast. */\n inverted: PropTypes.bool,\n /** Shorthand array of props for Menu. */\n items: customPropTypes.collectionShorthand,\n /**\n * onClick handler for MenuItem. Mutually exclusive with children.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All item props.\n */\n onItemClick: customPropTypes.every([customPropTypes.disallow(['children']), PropTypes.func]),\n /** A pagination menu is specially formatted to present links to pages of content. */\n pagination: PropTypes.bool,\n /** A menu can point to show its relationship to nearby content. */\n pointing: PropTypes.bool,\n /** A menu can adjust its appearance to de-emphasize its contents. */\n secondary: PropTypes.bool,\n /** A menu can vary in size. */\n size: PropTypes.oneOf(_without(SUI.SIZES, 'medium', 'big')),\n /** A menu can stack at mobile resolutions. */\n stackable: PropTypes.bool,\n /** A menu can be formatted to show tabs of information. */\n tabular: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['right'])]),\n /** A menu can be formatted for text content. */\n text: PropTypes.bool,\n /** A vertical menu displays elements vertically. */\n vertical: PropTypes.bool,\n /** A menu can have its items divided evenly. */\n widths: PropTypes.oneOf(SUI.WIDTHS)\n} : {};\nMenu.Header = MenuHeader;\nMenu.Item = MenuItem;\nMenu.Menu = MenuMenu;\nMenu.create = createShorthandFactory(Menu, function (items) {\n return {\n items: items\n };\n});\nexport default Menu;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, getComponentType, getUnhandledProps } from '../../lib';\n\n/**\n * A menu item may include a header or may itself be a header.\n */\nvar MenuHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('header', className);\n var rest = getUnhandledProps(MenuHeader, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nMenuHeader.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nMenuHeader.displayName = 'MenuHeader';\nMenuHeader.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nexport default MenuHeader;","/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\n\nexport default asciiWords;\n","/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\n\nexport default hasUnicodeWord;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\nexport default unicodeWords;\n","import asciiWords from './_asciiWords.js';\nimport hasUnicodeWord from './_hasUnicodeWord.js';\nimport toString from './toString.js';\nimport unicodeWords from './_unicodeWords.js';\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\n\nexport default words;\n","import arrayReduce from './_arrayReduce.js';\nimport deburr from './deburr.js';\nimport words from './words.js';\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\";\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\n\nexport default createCompounder;\n","import baseSlice from './_baseSlice.js';\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nexport default castSlice;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nexport default asciiToArray;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nexport default unicodeToArray;\n","import asciiToArray from './_asciiToArray.js';\nimport hasUnicode from './_hasUnicode.js';\nimport unicodeToArray from './_unicodeToArray.js';\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nexport default stringToArray;\n","import castSlice from './_castSlice.js';\nimport hasUnicode from './_hasUnicode.js';\nimport stringToArray from './_stringToArray.js';\nimport toString from './toString.js';\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n}\n\nexport default createCaseFirst;\n","import createCaseFirst from './_createCaseFirst.js';\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\nexport default upperFirst;\n","import createCompounder from './_createCompounder.js';\nimport upperFirst from './upperFirst.js';\n\n/**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\nvar startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n});\n\nexport default startCase;\n","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _startCase from \"lodash-es/startCase\";\nimport _invoke from \"lodash-es/invoke\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getComponentType, getUnhandledProps, SUI, useKeyOnly, useKeyOrValueAndKey, useEventCallback } from '../../lib';\nimport Icon from '../../elements/Icon';\n\n/**\n * A menu can contain an item.\n */\nvar MenuItem = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var active = props.active,\n children = props.children,\n className = props.className,\n color = props.color,\n content = props.content,\n disabled = props.disabled,\n fitted = props.fitted,\n header = props.header,\n icon = props.icon,\n link = props.link,\n name = props.name,\n onClick = props.onClick,\n position = props.position;\n var classes = cx(color, position, useKeyOnly(active, 'active'), useKeyOnly(disabled, 'disabled'), useKeyOnly(icon === true || icon && !(name || content), 'icon'), useKeyOnly(header, 'header'), useKeyOnly(link, 'link'), useKeyOrValueAndKey(fitted, 'fitted'), 'item', className);\n var ElementType = getComponentType(props, {\n getDefault: function getDefault() {\n if (onClick) return 'a';\n }\n });\n var rest = getUnhandledProps(MenuItem, props);\n var handleClick = useEventCallback(function (e) {\n if (!disabled) {\n _invoke(props, 'onClick', e, props);\n }\n });\n if (!childrenUtils.isNil(children)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n onClick: handleClick,\n ref: ref\n }), children);\n }\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n onClick: handleClick,\n ref: ref\n }), Icon.create(icon, {\n autoGenerateKey: false\n }), childrenUtils.isNil(content) ? _startCase(name) : content);\n});\nMenuItem.handledProps = [\"active\", \"as\", \"children\", \"className\", \"color\", \"content\", \"disabled\", \"fitted\", \"header\", \"icon\", \"index\", \"link\", \"name\", \"onClick\", \"position\"];\nMenuItem.displayName = 'MenuItem';\nMenuItem.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** A menu item can be active. */\n active: PropTypes.bool,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Additional colors can be specified. */\n color: PropTypes.oneOf(SUI.COLORS),\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** A menu item can be disabled. */\n disabled: PropTypes.bool,\n /** A menu item or menu can remove element padding, vertically or horizontally. */\n fitted: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['horizontally', 'vertically'])]),\n /** A menu item may include a header or may itself be a header. */\n header: PropTypes.bool,\n /** MenuItem can be only icon. */\n icon: PropTypes.oneOfType([PropTypes.bool, customPropTypes.itemShorthand]),\n /** MenuItem index inside Menu. */\n index: PropTypes.number,\n /** A menu item can be link. */\n link: PropTypes.bool,\n /** Internal name of the MenuItem. */\n name: PropTypes.string,\n /**\n * Called on click. When passed, the component will render as an `a`\n * tag by default instead of a `div`.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onClick: PropTypes.func,\n /** A menu item can take left or right position. */\n position: PropTypes.oneOf(['left', 'right'])\n} : {};\nMenuItem.create = createShorthandFactory(MenuItem, function (val) {\n return {\n content: val,\n name: val\n };\n});\nexport default MenuItem;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, getComponentType, getUnhandledProps } from '../../lib';\n\n/**\n * A menu can contain a sub menu.\n */\nvar MenuMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n className = props.className,\n content = props.content,\n position = props.position;\n var classes = cx(position, 'menu', className);\n var rest = getUnhandledProps(MenuMenu, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nMenuMenu.handledProps = [\"as\", \"children\", \"className\", \"content\", \"position\"];\nMenuMenu.displayName = 'MenuMenu';\nMenuMenu.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** A sub menu can take left or right position. */\n position: PropTypes.oneOf(['left', 'right'])\n} : {};\nexport default MenuMenu;","import { instance } from '@semantic-ui-react/event-stack';\nexport default instance;","\"use client\";\n\nimport * as React from 'react';\n\n/**\n * Returns a callback that causes force render of a component.\n */\nexport default function useForceUpdate() {\n return React.useReducer(function (x) {\n return x + 1;\n }, 0)[1];\n}","\"use client\";\n\nimport * as React from 'react';\n\n/**\n * Hook keeping track of a given value from a previous execution of the component the Hook is used in.\n *\n * @see https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state\n */\nfunction usePrevious(value) {\n var ref = React.useRef();\n React.useEffect(function () {\n ref.current = value;\n });\n return ref.current;\n}\nexport default usePrevious;","/** Checks that the passed object is a valid React ref object. */\nexport default function isRefObject(ref) {\n // https://github.com/facebook/react/blob/v16.8.2/packages/react-reconciler/src/ReactFiberCommitWork.js#L665\n // eslint-disable-next-line no-prototype-builtins\n return ref !== null && typeof ref === 'object' && ref.hasOwnProperty('current');\n}","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _invoke from \"lodash-es/invoke\";\nimport _get from \"lodash-es/get\";\nimport _isNil from \"lodash-es/isNil\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { createHTMLLabel, customPropTypes, getComponentType, getUnhandledProps, htmlInputAttrs, partitionHTMLProps, useKeyOnly, useAutoControlledValue, useMergedRefs, useIsomorphicLayoutEffect } from '../../lib';\n/**\n * A checkbox allows a user to select a value from a small set of options, often binary.\n * @see Form\n * @see Radio\n */\nvar Checkbox = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n disabled = props.disabled,\n label = props.label,\n id = props.id,\n name = props.name,\n radio = props.radio,\n readOnly = props.readOnly,\n slider = props.slider,\n tabIndex = props.tabIndex,\n toggle = props.toggle,\n _props$type = props.type,\n type = _props$type === void 0 ? 'checkbox' : _props$type,\n value = props.value;\n var _useAutoControlledVal = useAutoControlledValue({\n state: props.checked,\n defaultState: props.defaultChecked,\n initialState: false\n }),\n checked = _useAutoControlledVal[0],\n setChecked = _useAutoControlledVal[1];\n var _useAutoControlledVal2 = useAutoControlledValue({\n state: props.indeterminate,\n defaultState: props.defaultIndeterminate,\n initialState: false\n }),\n indeterminate = _useAutoControlledVal2[0],\n setIndeterminate = _useAutoControlledVal2[1];\n var inputRef = useMergedRefs(React.useRef(), ref);\n var labelRef = React.useRef();\n var isClickFromMouse = React.useRef();\n\n // ----------------------------------------\n // Effects\n // ----------------------------------------\n\n useIsomorphicLayoutEffect(function () {\n // Note: You can't directly set the indeterminate prop on the input, so we\n // need to maintain a ref to the input and set it manually whenever the\n // component updates.\n if (inputRef.current) {\n inputRef.current.indeterminate = !!indeterminate;\n }\n });\n\n // ----------------------------------------\n // Helpers\n // ----------------------------------------\n\n var canToggle = function canToggle() {\n return !disabled && !readOnly && !(radio && checked);\n };\n var computeTabIndex = function computeTabIndex() {\n if (!_isNil(tabIndex)) {\n return tabIndex;\n }\n return disabled ? -1 : 0;\n };\n\n // ----------------------------------------\n // Handlers\n // ----------------------------------------\n\n var handleChange = function handleChange(e) {\n if (!canToggle()) {\n return;\n }\n _invoke(props, 'onChange', e, _extends({}, props, {\n checked: !checked,\n indeterminate: false\n }));\n setChecked(!checked);\n setIndeterminate(false);\n };\n var handleClick = function handleClick(e) {\n var isInputClick = _invoke(inputRef.current, 'contains', e.target);\n var isLabelClick = _invoke(labelRef.current, 'contains', e.target);\n var isRootClick = !isLabelClick && !isInputClick;\n var hasId = !_isNil(id);\n var isLabelClickAndForwardedToInput = isLabelClick && hasId;\n\n // https://github.com/Semantic-Org/Semantic-UI-React/pull/3351\n if (!isLabelClickAndForwardedToInput) {\n _invoke(props, 'onClick', e, _extends({}, props, {\n checked: !checked,\n indeterminate: !!indeterminate\n }));\n }\n if (isClickFromMouse.current) {\n isClickFromMouse.current = false;\n if (isLabelClick && !hasId) {\n handleChange(e);\n }\n\n // Changes should be triggered for the slider variation\n if (isRootClick) {\n handleChange(e);\n }\n if (isLabelClick && hasId) {\n // To prevent two clicks from being fired from the component we have to stop the propagation\n // from the \"input\" click: https://github.com/Semantic-Org/Semantic-UI-React/issues/3433\n e.stopPropagation();\n }\n }\n };\n var handleMouseDown = function handleMouseDown(e) {\n _invoke(props, 'onMouseDown', e, _extends({}, props, {\n checked: !!checked,\n indeterminate: !!indeterminate\n }));\n if (!e.defaultPrevented) {\n _invoke(inputRef.current, 'focus');\n }\n\n // Heads up!\n // We need to call \"preventDefault\" to keep element focused.\n e.preventDefault();\n };\n var handleMouseUp = function handleMouseUp(e) {\n isClickFromMouse.current = true;\n _invoke(props, 'onMouseUp', e, _extends({}, props, {\n checked: !!checked,\n indeterminate: !!indeterminate\n }));\n };\n\n // ----------------------------------------\n // Render\n // ----------------------------------------\n\n var classes = cx('ui', useKeyOnly(checked, 'checked'), useKeyOnly(disabled, 'disabled'), useKeyOnly(indeterminate, 'indeterminate'),\n // auto apply fitted class to compact white space when there is no label\n // https://semantic-ui.com/modules/checkbox.html#fitted\n useKeyOnly(_isNil(label), 'fitted'), useKeyOnly(radio, 'radio'), useKeyOnly(readOnly, 'read-only'), useKeyOnly(slider, 'slider'), useKeyOnly(toggle, 'toggle'), 'checkbox', className);\n var unhandled = getUnhandledProps(Checkbox, props);\n var ElementType = getComponentType(props);\n var _partitionHTMLProps = partitionHTMLProps(unhandled, {\n htmlProps: htmlInputAttrs\n }),\n htmlInputProps = _partitionHTMLProps[0],\n rest = _partitionHTMLProps[1];\n\n // Heads Up!\n // Do not remove empty labels, they are required by SUI CSS\n var labelElement = createHTMLLabel(label, {\n defaultProps: {\n htmlFor: id\n },\n autoGenerateKey: false\n }) || /*#__PURE__*/React.createElement(\"label\", {\n htmlFor: id\n });\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n onClick: handleClick,\n onChange: handleChange,\n onMouseDown: handleMouseDown,\n onMouseUp: handleMouseUp\n }), /*#__PURE__*/React.createElement(\"input\", _extends({}, htmlInputProps, {\n checked: checked,\n className: \"hidden\",\n disabled: disabled,\n id: id,\n name: name,\n readOnly: true,\n ref: inputRef,\n tabIndex: computeTabIndex(),\n type: type,\n value: value\n })), /*#__PURE__*/React.cloneElement(labelElement, {\n ref: labelRef\n }));\n});\nCheckbox.handledProps = [\"as\", \"checked\", \"className\", \"defaultChecked\", \"defaultIndeterminate\", \"disabled\", \"fitted\", \"id\", \"indeterminate\", \"label\", \"name\", \"onChange\", \"onClick\", \"onMouseDown\", \"onMouseUp\", \"radio\", \"readOnly\", \"slider\", \"tabIndex\", \"toggle\", \"type\", \"value\"];\nCheckbox.displayName = 'Checkbox';\nCheckbox.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Whether or not checkbox is checked. */\n checked: PropTypes.bool,\n /** Additional classes. */\n className: PropTypes.string,\n /** The initial value of checked. */\n defaultChecked: PropTypes.bool,\n /** Whether or not checkbox is indeterminate. */\n defaultIndeterminate: PropTypes.bool,\n /** A checkbox can appear disabled and be unable to change states */\n disabled: PropTypes.bool,\n /** Removes padding for a label. Auto applied when there is no label. */\n fitted: PropTypes.bool,\n /** A unique identifier. */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Whether or not checkbox is indeterminate. */\n indeterminate: PropTypes.bool,\n /** The text of the associated label element. */\n label: customPropTypes.itemShorthand,\n /** The HTML input name. */\n name: PropTypes.string,\n /**\n * Called when the user attempts to change the checked state.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and proposed checked/indeterminate state.\n */\n onChange: PropTypes.func,\n /**\n * Called when the checkbox or label is clicked.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and current checked/indeterminate state.\n */\n onClick: PropTypes.func,\n /**\n * Called when the user presses down on the mouse.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and current checked/indeterminate state.\n */\n onMouseDown: PropTypes.func,\n /**\n * Called when the user releases the mouse.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and current checked/indeterminate state.\n */\n onMouseUp: PropTypes.func,\n /** Format as a radio element. This means it is an exclusive option. */\n radio: customPropTypes.every([PropTypes.bool, customPropTypes.disallow(['slider', 'toggle'])]),\n /** A checkbox can be read-only and unable to change states. */\n readOnly: PropTypes.bool,\n /** Format to emphasize the current selection state. */\n slider: customPropTypes.every([PropTypes.bool, customPropTypes.disallow(['radio', 'toggle'])]),\n /** A checkbox can receive focus. */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Format to show an on or off choice. */\n toggle: customPropTypes.every([PropTypes.bool, customPropTypes.disallow(['radio', 'slider'])]),\n /** HTML input type, either checkbox or radio. */\n type: PropTypes.oneOf(['checkbox', 'radio']),\n /** The HTML input value. */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n} : {};\nexport default Checkbox;","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _isPlainObject from \"lodash-es/isPlainObject\";\nimport _pick from \"lodash-es/pick\";\nimport _includes from \"lodash-es/includes\";\nimport _reduce from \"lodash-es/reduce\";\nimport _invoke from \"lodash-es/invoke\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport shallowEqual from 'shallowequal';\nimport { childrenUtils, customPropTypes, doesNodeContainClick, eventStack, getComponentType, getUnhandledProps, isBrowser, useKeyOnly, useAutoControlledValue, useMergedRefs } from '../../lib';\nimport Icon from '../../elements/Icon';\nimport Portal from '../../addons/Portal';\nimport ModalActions from './ModalActions';\nimport ModalContent from './ModalContent';\nimport ModalDescription from './ModalDescription';\nimport ModalDimmer from './ModalDimmer';\nimport ModalHeader from './ModalHeader';\nimport { canFit, getLegacyStyles, isLegacy } from './utils';\n/**\n * A modal displays content that temporarily blocks interactions with the main view of a site.\n * @see Confirm\n * @see Portal\n */\nvar Modal = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var actions = props.actions,\n basic = props.basic,\n _props$centered = props.centered,\n centered = _props$centered === void 0 ? true : _props$centered,\n children = props.children,\n className = props.className,\n closeIcon = props.closeIcon,\n _props$closeOnDimmerC = props.closeOnDimmerClick,\n closeOnDimmerClick = _props$closeOnDimmerC === void 0 ? true : _props$closeOnDimmerC,\n _props$closeOnDocumen = props.closeOnDocumentClick,\n closeOnDocumentClick = _props$closeOnDocumen === void 0 ? false : _props$closeOnDocumen,\n content = props.content,\n _props$dimmer = props.dimmer,\n dimmer = _props$dimmer === void 0 ? true : _props$dimmer,\n _props$eventPool = props.eventPool,\n eventPool = _props$eventPool === void 0 ? 'Modal' : _props$eventPool,\n header = props.header,\n size = props.size,\n style = props.style,\n trigger = props.trigger;\n // Do not access document when server side rendering\n var mountNode = isBrowser() ? props.mountNode || document.body : null;\n var _useAutoControlledVal = useAutoControlledValue({\n state: props.open,\n defaultState: props.defaultOpen,\n initialState: false\n }),\n open = _useAutoControlledVal[0],\n setOpen = _useAutoControlledVal[1];\n var _React$useState = React.useState({}),\n legacyStyles = _React$useState[0],\n setLegacyStyles = _React$useState[1];\n var _React$useState2 = React.useState(false),\n scrolling = _React$useState2[0],\n setScrolling = _React$useState2[1];\n var _React$useState3 = React.useState(function () {\n return isBrowser() && isLegacy();\n }),\n legacy = _React$useState3[0];\n var elementRef = useMergedRefs(ref, React.useRef());\n var dimmerRef = React.useRef();\n var animationRequestId = React.useRef();\n var latestDocumentMouseDownEvent = React.useRef();\n React.useEffect(function () {\n return function () {\n cancelAnimationFrame(animationRequestId.current);\n latestDocumentMouseDownEvent.current = null;\n };\n }, []);\n\n // ----------------------------------------\n // Styles calc\n // ----------------------------------------\n\n var setPositionAndClassNames = function setPositionAndClassNames() {\n if (elementRef.current) {\n var rect = elementRef.current.getBoundingClientRect();\n var isFitted = canFit(rect);\n setScrolling(!isFitted);\n\n // Styles should be computed for IE11\n var computedLegacyStyles = legacy ? getLegacyStyles(isFitted, centered, rect) : {};\n if (!shallowEqual(computedLegacyStyles, computedLegacyStyles)) {\n setLegacyStyles(computedLegacyStyles);\n }\n }\n animationRequestId.current = requestAnimationFrame(setPositionAndClassNames);\n };\n\n // ----------------------------------------\n // Document Event Handlers\n // ----------------------------------------\n\n var handleClose = function handleClose(e) {\n setOpen(false);\n _invoke(props, 'onClose', e, _extends({}, props, {\n open: false\n }));\n };\n var handleDocumentMouseDown = function handleDocumentMouseDown(e) {\n latestDocumentMouseDownEvent.current = e;\n };\n var handleDocumentClick = function handleDocumentClick(e) {\n var currentDocumentMouseDownEvent = latestDocumentMouseDownEvent.current;\n latestDocumentMouseDownEvent.current = null;\n if (!closeOnDimmerClick || doesNodeContainClick(elementRef.current, currentDocumentMouseDownEvent) || doesNodeContainClick(elementRef.current, e)) return;\n setOpen(false);\n _invoke(props, 'onClose', e, _extends({}, props, {\n open: false\n }));\n };\n var handleOpen = function handleOpen(e) {\n setOpen(true);\n _invoke(props, 'onOpen', e, _extends({}, props, {\n open: true\n }));\n };\n var handlePortalMount = function handlePortalMount(e) {\n setScrolling(false);\n setPositionAndClassNames();\n eventStack.sub('mousedown', handleDocumentMouseDown, {\n pool: eventPool,\n target: dimmerRef.current\n });\n eventStack.sub('click', handleDocumentClick, {\n pool: eventPool,\n target: dimmerRef.current\n });\n _invoke(props, 'onMount', e, props);\n };\n var handlePortalUnmount = function handlePortalUnmount(e) {\n cancelAnimationFrame(animationRequestId.current);\n eventStack.unsub('mousedown', handleDocumentMouseDown, {\n pool: eventPool,\n target: dimmerRef.current\n });\n eventStack.unsub('click', handleDocumentClick, {\n pool: eventPool,\n target: dimmerRef.current\n });\n _invoke(props, 'onUnmount', e, props);\n };\n\n // ----------------------------------------\n // Render\n // ----------------------------------------\n\n var renderContent = function renderContent(rest) {\n var classes = cx('ui', size, useKeyOnly(basic, 'basic'), useKeyOnly(legacy, 'legacy'), useKeyOnly(scrolling, 'scrolling'), 'modal transition visible active', className);\n var ElementType = getComponentType(props);\n var closeIconName = closeIcon === true ? 'close' : closeIcon;\n var closeIconJSX = Icon.create(closeIconName, {\n overrideProps: function overrideProps(predefinedProps) {\n return {\n onClick: function onClick(e) {\n _invoke(predefinedProps, 'onClick', e);\n handleClose(e);\n }\n };\n }\n });\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: elementRef,\n style: _extends({}, legacyStyles, style)\n }), closeIconJSX, childrenUtils.isNil(children) ? /*#__PURE__*/React.createElement(React.Fragment, null, ModalHeader.create(header, {\n autoGenerateKey: false\n }), ModalContent.create(content, {\n autoGenerateKey: false\n }), ModalActions.create(actions, {\n overrideProps: function overrideProps(predefinedProps) {\n return {\n onActionClick: function onActionClick(e, actionProps) {\n _invoke(predefinedProps, 'onActionClick', e, actionProps);\n _invoke(props, 'onActionClick', e, props);\n handleClose(e);\n }\n };\n }\n })) : children);\n };\n\n // Short circuit when server side rendering\n renderContent.handledProps = [];\n if (!isBrowser()) {\n return /*#__PURE__*/React.isValidElement(trigger) ? trigger : null;\n }\n var unhandled = getUnhandledProps(Modal, props);\n var portalPropNames = Portal.handledProps;\n var rest = _reduce(unhandled, function (acc, val, key) {\n if (!_includes(portalPropNames, key)) acc[key] = val;\n return acc;\n }, {});\n var portalProps = _pick(unhandled, portalPropNames);\n\n // Heads up!\n //\n // The SUI CSS selector to prevent the modal itself from blurring requires an immediate .dimmer child:\n // .blurring.dimmed.dimmable>:not(.dimmer) { ... }\n //\n // The .blurring.dimmed.dimmable is the body, so that all body content inside is blurred.\n // We need the immediate child to be the dimmer to :not() blur the modal itself!\n // Otherwise, the portal div is also blurred, blurring the modal.\n //\n // We cannot them wrap the modalJSX in an actual instead, we apply the dimmer classes to the .\n\n return /*#__PURE__*/React.createElement(Portal, _extends({\n closeOnDocumentClick: closeOnDocumentClick\n }, portalProps, {\n trigger: trigger,\n eventPool: eventPool,\n mountNode: mountNode,\n open: open,\n onClose: handleClose,\n onMount: handlePortalMount,\n onOpen: handleOpen,\n onUnmount: handlePortalUnmount\n }), ModalDimmer.create(_isPlainObject(dimmer) ? dimmer : {}, {\n autoGenerateKey: false,\n defaultProps: {\n blurring: dimmer === 'blurring',\n inverted: dimmer === 'inverted'\n },\n overrideProps: {\n children: renderContent(rest),\n centered: centered,\n mountNode: mountNode,\n scrolling: scrolling,\n ref: dimmerRef\n }\n }));\n});\nModal.handledProps = [\"actions\", \"as\", \"basic\", \"centered\", \"children\", \"className\", \"closeIcon\", \"closeOnDimmerClick\", \"closeOnDocumentClick\", \"content\", \"defaultOpen\", \"dimmer\", \"eventPool\", \"header\", \"mountNode\", \"onActionClick\", \"onClose\", \"onMount\", \"onOpen\", \"onUnmount\", \"open\", \"size\", \"style\", \"trigger\"];\nModal.displayName = 'Modal';\nModal.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Shorthand for Modal.Actions. Typically an array of button shorthand. */\n actions: customPropTypes.itemShorthand,\n /** A modal can reduce its complexity */\n basic: PropTypes.bool,\n /** A modal can be vertically centered in the viewport */\n centered: PropTypes.bool,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for the close icon. Closes the modal on click. */\n closeIcon: PropTypes.oneOfType([PropTypes.node, PropTypes.object, PropTypes.bool]),\n /** Whether or not the Modal should close when the dimmer is clicked. */\n closeOnDimmerClick: PropTypes.bool,\n /** Whether or not the Modal should close when the document is clicked. */\n closeOnDocumentClick: PropTypes.bool,\n /** Simple text content for the Modal. */\n content: customPropTypes.itemShorthand,\n /** Initial value of open. */\n defaultOpen: PropTypes.bool,\n /** A Modal can appear in a dimmer. */\n dimmer: PropTypes.oneOfType([PropTypes.bool, PropTypes.func, PropTypes.object, PropTypes.oneOf(['inverted', 'blurring'])]),\n /** Event pool namespace that is used to handle component events */\n eventPool: PropTypes.string,\n /** Modal displayed above the content in bold. */\n header: customPropTypes.itemShorthand,\n /** The node where the modal should mount. Defaults to document.body. */\n mountNode: PropTypes.any,\n /**\n * Action onClick handler when using shorthand `actions`.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onActionClick: PropTypes.func,\n /**\n * Called when a close event happens.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onClose: PropTypes.func,\n /**\n * Called when the modal is mounted on the DOM.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onMount: PropTypes.func,\n /**\n * Called when an open event happens.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onOpen: PropTypes.func,\n /**\n * Called when the modal is unmounted from the DOM.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onUnmount: PropTypes.func,\n /** Controls whether or not the Modal is displayed. */\n open: PropTypes.bool,\n /** A modal can vary in size */\n size: PropTypes.oneOf(['mini', 'tiny', 'small', 'large', 'fullscreen']),\n /** Custom styles. */\n style: PropTypes.object,\n /** Element to be rendered in-place where the modal is defined. */\n trigger: PropTypes.node\n\n /**\n * NOTE: Any unhandled props that are defined in Modal are passed-through\n * to the inner Portal.\n */\n} : {};\nModal.Actions = ModalActions;\nModal.Content = ModalContent;\nModal.Description = ModalDescription;\nModal.Dimmer = ModalDimmer;\nModal.Header = ModalHeader;\nexport default Modal;","// https://github.com/Semantic-Org/Semantic-UI/blob/2.4.1/src/definitions/modules/modal.js#L956\nvar OFFSET = 0;\n// https://github.com/Semantic-Org/Semantic-UI/blob/2.4.1/src/definitions/modules/modal.js#L990\nvar PADDING = 50;\n\n/**\n * Ensures that modal can fit viewport without scroll.\n *\n * @param modalRect {DOMRect}\n *\n * @see https://github.com/Semantic-Org/Semantic-UI/blob/2.4.1/src/definitions/modules/modal.js#L608\n */\nexport var canFit = function canFit(modalRect) {\n // original: scrollHeight = $module.prop('scrollHeight'),\n // is replaced by .height because scrollHeight provides integer which produces glitches\n // https://github.com/Semantic-Org/Semantic-UI-React/issues/2221\n var scrollHeight = modalRect.height + OFFSET;\n // $module.outerHeight() + settings.offset\n var height = modalRect.height + OFFSET;\n\n // original: $(window).height()\n var contextHeight = window.innerHeight;\n var verticalCenter = contextHeight / 2;\n var topOffset = -(height / 2);\n\n // padding with edge of page\n var paddingHeight = PADDING;\n var startPosition = verticalCenter + topOffset; // 0\n\n // original: scrollHeight > height\n // ? startPosition + scrollHeight + paddingHeight < contextHeight\n // : height + paddingHeight * 2 < contextHeight\n return startPosition + scrollHeight + paddingHeight < contextHeight;\n};\n\n/**\n * Creates legacy styles for IE11.\n *\n * @param isFitted {Boolean}\n * @param centered {Boolean}\n * @param modalRect {DOMRect}\n *\n * @see https://github.com/Semantic-Org/Semantic-UI/blob/2.4.1/src/definitions/modules/modal.js#L718\n */\nexport var getLegacyStyles = function getLegacyStyles(isFitted, centered, modalRect) {\n var marginTop = centered && isFitted ? -(modalRect.height / 2) : 0;\n var marginLeft = -(modalRect.width / 2);\n return {\n marginLeft: marginLeft,\n marginTop: marginTop\n };\n};\n\n// https://github.com/Semantic-Org/Semantic-UI/blob/2.4.1/src/definitions/modules/modal.js#L631\n/* istanbul ignore next */\nexport var isLegacy = function isLegacy() {\n return !window.ActiveXObject && 'ActiveXObject' in window;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _invoke from \"lodash-es/invoke\";\nimport _map from \"lodash-es/map\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getComponentType, getUnhandledProps } from '../../lib';\nimport Button from '../../elements/Button';\n\n/**\n * A modal can contain a row of actions.\n */\nvar ModalActions = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var actions = props.actions,\n children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('actions', className);\n var rest = getUnhandledProps(ModalActions, props);\n var ElementType = getComponentType(props);\n if (!childrenUtils.isNil(children)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), children);\n }\n if (!childrenUtils.isNil(content)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), content);\n }\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), _map(actions, function (action) {\n return Button.create(action, {\n overrideProps: function overrideProps(predefinedProps) {\n return {\n onClick: function onClick(e, buttonProps) {\n _invoke(predefinedProps, 'onClick', e, buttonProps);\n _invoke(props, 'onActionClick', e, buttonProps);\n }\n };\n }\n });\n }));\n});\nModalActions.handledProps = [\"actions\", \"as\", \"children\", \"className\", \"content\", \"onActionClick\"];\nModalActions.displayName = 'ModalActions';\nModalActions.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Array of shorthand buttons. */\n actions: customPropTypes.collectionShorthand,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /**\n * Action onClick handler when using shorthand `actions`.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props from the clicked action.\n */\n onActionClick: customPropTypes.every([customPropTypes.disallow(['children']), PropTypes.func])\n} : {};\nModalActions.create = createShorthandFactory(ModalActions, function (actions) {\n return {\n actions: actions\n };\n});\nexport default ModalActions;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getComponentType, getUnhandledProps, useKeyOnly } from '../../lib';\n\n/**\n * A modal can contain content.\n */\nvar ModalContent = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n className = props.className,\n content = props.content,\n image = props.image,\n scrolling = props.scrolling;\n var classes = cx(className, useKeyOnly(image, 'image'), useKeyOnly(scrolling, 'scrolling'), 'content');\n var rest = getUnhandledProps(ModalContent, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nModalContent.handledProps = [\"as\", \"children\", \"className\", \"content\", \"image\", \"scrolling\"];\nModalContent.displayName = 'ModalContent';\nModalContent.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** A modal can contain image content. */\n image: PropTypes.bool,\n /** A modal can use the entire size of the screen. */\n scrolling: PropTypes.bool\n} : {};\nModalContent.create = createShorthandFactory(ModalContent, function (content) {\n return {\n content: content\n };\n});\nexport default ModalContent;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, getComponentType, getUnhandledProps } from '../../lib';\n\n/**\n * A modal can contain a description with one or more paragraphs.\n */\nvar ModalDescription = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('description', className);\n var rest = getUnhandledProps(ModalDescription, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nModalDescription.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nModalDescription.displayName = 'ModalDescription';\nModalDescription.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nexport default ModalDescription;","\"use client\";\n\nimport * as React from 'react';\nimport isRefObject from '../isRefObject';\nimport useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';\nvar CLASS_NAME_DELITIMITER = /\\s+/;\n\n/**\n * Accepts a set of ref objects that contain classnames as a string and returns an array of unique\n * classNames.\n *\n * @param {Set|undefined} classNameRefs\n * @returns String[]\n */\nexport function computeClassNames(classNameRefs) {\n var classNames = [];\n if (classNameRefs) {\n classNameRefs.forEach(function (classNameRef) {\n if (typeof classNameRef.current === 'string') {\n var classNamesForRef = classNameRef.current.split(CLASS_NAME_DELITIMITER);\n classNamesForRef.forEach(function (className) {\n classNames.push(className);\n });\n }\n });\n return classNames.filter(function (className, i, array) {\n return className.length > 0 && array.indexOf(className) === i;\n });\n }\n return [];\n}\n\n/**\n * Computes classnames that should be removed and added to a node based on input differences.\n *\n * @param {String[]} prevClassNames\n * @param {String[]} currentClassNames\n */\nexport function computeClassNamesDifference(prevClassNames, currentClassNames) {\n return [currentClassNames.filter(function (className) {\n return prevClassNames.indexOf(className) === -1;\n }), prevClassNames.filter(function (className) {\n return currentClassNames.indexOf(className) === -1;\n })];\n}\nvar prevClassNames = new Map();\n\n/**\n * @param {HTMLElement} node\n * @param {Set|undefined} classNameRefs\n */\nexport var handleClassNamesChange = function handleClassNamesChange(node, classNameRefs) {\n var currentClassNames = computeClassNames(classNameRefs);\n var _computeClassNamesDif = computeClassNamesDifference(prevClassNames.get(node) || [], currentClassNames),\n forAdd = _computeClassNamesDif[0],\n forRemoval = _computeClassNamesDif[1];\n if (node) {\n forAdd.forEach(function (className) {\n return node.classList.add(className);\n });\n forRemoval.forEach(function (className) {\n return node.classList.remove(className);\n });\n }\n prevClassNames.set(node, currentClassNames);\n};\nexport var NodeRegistry = function NodeRegistry() {\n var _this = this;\n this.add = function (node, classNameRef) {\n if (_this.nodes.has(node)) {\n var _set = _this.nodes.get(node);\n _set.add(classNameRef);\n return;\n }\n\n // IE11 does not support constructor params\n var set = new Set();\n set.add(classNameRef);\n _this.nodes.set(node, set);\n };\n this.del = function (node, classNameRef) {\n if (!_this.nodes.has(node)) {\n return;\n }\n var set = _this.nodes.get(node);\n if (set.size === 1) {\n _this.nodes.delete(node);\n return;\n }\n set.delete(classNameRef);\n };\n this.emit = function (node, callback) {\n callback(node, _this.nodes.get(node));\n };\n this.nodes = new Map();\n};\nvar nodeRegistry = new NodeRegistry();\n\n/**\n * A React hooks that allows to manage classNames on a DOM node in declarative manner. Accepts\n * a HTML element or React ref objects with it.\n *\n * @param {HTMLElement|React.RefObject} node\n * @param {String} className\n */\nexport default function useClassNamesOnNode(node, className) {\n var classNameRef = React.useRef();\n var isMounted = React.useRef(false);\n useIsomorphicLayoutEffect(function () {\n classNameRef.current = className;\n if (isMounted.current) {\n var element = isRefObject(node) ? node.current : node;\n nodeRegistry.emit(element, handleClassNamesChange);\n }\n isMounted.current = true;\n }, [className]);\n useIsomorphicLayoutEffect(function () {\n var element = isRefObject(node) ? node.current : node;\n nodeRegistry.add(element, classNameRef);\n nodeRegistry.emit(element, handleClassNamesChange);\n return function () {\n nodeRegistry.del(element, classNameRef);\n nodeRegistry.emit(element, handleClassNamesChange);\n };\n }, [node]);\n}","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getComponentType, getUnhandledProps, useClassNamesOnNode, useKeyOnly, useMergedRefs } from '../../lib';\n\n/**\n * A modal has a dimmer.\n */\nvar ModalDimmer = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var blurring = props.blurring,\n children = props.children,\n className = props.className,\n centered = props.centered,\n content = props.content,\n inverted = props.inverted,\n mountNode = props.mountNode,\n scrolling = props.scrolling;\n var elementRef = useMergedRefs(ref, React.useRef());\n var classes = cx('ui', useKeyOnly(inverted, 'inverted'), useKeyOnly(!centered, 'top aligned'), 'page modals dimmer transition visible active', className);\n var bodyClasses = cx('dimmable dimmed', useKeyOnly(blurring, 'blurring'), useKeyOnly(scrolling, 'scrolling'));\n var rest = getUnhandledProps(ModalDimmer, props);\n var ElementType = getComponentType(props);\n useClassNamesOnNode(mountNode, bodyClasses);\n React.useEffect(function () {\n var _elementRef$current;\n (_elementRef$current = elementRef.current) == null || (_elementRef$current = _elementRef$current.style) == null || _elementRef$current.setProperty('display', 'flex', 'important');\n }, []);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: elementRef\n }), childrenUtils.isNil(children) ? content : children);\n});\nModalDimmer.handledProps = [\"as\", \"blurring\", \"centered\", \"children\", \"className\", \"content\", \"inverted\", \"mountNode\", \"scrolling\"];\nModalDimmer.displayName = 'ModalDimmer';\nModalDimmer.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** A dimmer can be blurred. */\n blurring: PropTypes.bool,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** A dimmer can center its contents in the viewport. */\n centered: PropTypes.bool,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** A dimmer can be inverted. */\n inverted: PropTypes.bool,\n /** The node where the modal should mount. Defaults to document.body. */\n mountNode: PropTypes.any,\n /** A dimmer can make body scrollable. */\n scrolling: PropTypes.bool\n} : {};\nModalDimmer.create = createShorthandFactory(ModalDimmer, function (content) {\n return {\n content: content\n };\n});\nexport default ModalDimmer;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getComponentType, getUnhandledProps } from '../../lib';\n\n/**\n * A modal can have a header.\n */\nvar ModalHeader = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('header', className);\n var rest = getUnhandledProps(ModalHeader, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nModalHeader.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nModalHeader.displayName = 'ModalHeader';\nModalHeader.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nModalHeader.create = createShorthandFactory(ModalHeader, function (content) {\n return {\n content: content\n };\n});\nexport default ModalHeader;","export var documentRef = {\n current: typeof document === 'undefined' ? null : document\n};\nexport var windowRef = {\n current: typeof window === 'undefined' ? null : window\n};\nexport { EventListener } from './EventListener';\nexport * from './types';\nexport { useEventListener } from './useEventListener';\n//# sourceMappingURL=index.js.map\n","import * as React from 'react';\n\nvar getWindowEvent = function getWindowEvent(target) {\n if (target) {\n var _ownerDocument$defaul, _ownerDocument, _ownerDocument$defaul2;\n\n if (typeof target.window === 'object' && target.window === target) {\n return target.event;\n }\n\n return (_ownerDocument$defaul = (_ownerDocument = target.ownerDocument) == null ? void 0 : (_ownerDocument$defaul2 = _ownerDocument.defaultView) == null ? void 0 : _ownerDocument$defaul2.event) != null ? _ownerDocument$defaul : undefined;\n }\n\n return undefined;\n};\n\nvar isActionSupported = function isActionSupported(element, method) {\n return element ? !!element[method] : false;\n};\n\nexport var useEventListener = function useEventListener(options) {\n var capture = options.capture,\n listener = options.listener,\n type = options.type,\n target = options.target,\n targetRef = options.targetRef;\n var latestListener = React.useRef(listener);\n latestListener.current = listener;\n var eventHandler = React.useCallback(function (event) {\n return latestListener.current(event);\n }, []);\n var timeoutId = React.useRef(undefined);\n\n if (process.env.NODE_ENV !== 'production') {\n // This is fine to violate there conditional rule as environment variables will never change during component\n // lifecycle\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(function () {\n if (typeof target !== 'undefined' && typeof targetRef !== 'undefined') {\n throw new Error('`target` and `targetRef` props are mutually exclusive, please use one of them.');\n }\n\n if (typeof target === 'undefined' && typeof targetRef === 'undefined') {\n throw new Error(\"`target` and `targetRef` props are `undefined`, it' required to use one of them.\");\n }\n }, [target, targetRef]);\n }\n\n React.useEffect(function () {\n var element = typeof targetRef === 'undefined' ? target : targetRef.current; // Store the current event to avoid triggering handlers immediately\n // Note this depends on a deprecated but extremely well supported quirk of the web platform\n // https://github.com/facebook/react/issues/20074\n\n var currentEvent = getWindowEvent(window);\n\n var conditionalHandler = function conditionalHandler(event) {\n // Skip if this event is the same as the one running when we added the handlers\n if (event === currentEvent) {\n currentEvent = undefined;\n return;\n }\n\n eventHandler(event);\n };\n\n if (isActionSupported(element, 'addEventListener')) {\n element.addEventListener(type, conditionalHandler, capture);\n } else if (process.env.NODE_ENV !== 'production') {\n throw new Error('@fluentui/react-component-event-listener: Passed `element` is not valid or does not support `addEventListener()` method.');\n } // @ts-ignore We have a collision between types from DOM and @types/node\n\n\n timeoutId.current = setTimeout(function () {\n currentEvent = undefined;\n }, 1);\n return function () {\n clearTimeout(timeoutId.current);\n currentEvent = undefined;\n\n if (isActionSupported(element, 'removeEventListener')) {\n element.removeEventListener(type, conditionalHandler, capture);\n } else if (process.env.NODE_ENV !== 'production') {\n throw new Error('@fluentui/react-component-event-listener: Passed `element` is not valid or does not support `removeEventListener()` method.');\n }\n };\n }, [capture, eventHandler, target, targetRef, type]);\n};\n//# sourceMappingURL=useEventListener.js.map\n","import { useEventListener } from './useEventListener';\nexport var EventListener = /*#__PURE__*/function () {\n function EventListener(props) {\n useEventListener(props);\n return null;\n }\n\n EventListener.defaultProps = {\n capture: false\n };\n return EventListener;\n}();\n//# sourceMappingURL=EventListener.js.map\n","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _invoke from \"lodash-es/invoke\";\nimport { EventListener, documentRef } from '@fluentui/react-component-event-listener';\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, doesNodeContainClick, getUnhandledProps, getComponentType, isRefObject, useKeyOnly, useIsomorphicLayoutEffect, useEventCallback, useForceUpdate, useMergedRefs, usePrevious } from '../../lib';\nimport SidebarPushable from './SidebarPushable';\nimport SidebarPusher from './SidebarPusher';\n\n/**\n * We use `animationTick` to understand when an animation should be scheduled.\n *\n * @param {Boolean} visible\n */\nfunction useAnimationTick(visible) {\n var previousVisible = usePrevious(visible);\n var tickIncrement = !!visible === !!previousVisible ? 0 : 1;\n var animationTick = React.useRef(0);\n var forceUpdate = useForceUpdate();\n var currentTick = animationTick.current + tickIncrement;\n var resetAnimationTick = React.useCallback(function () {\n animationTick.current = 0;\n forceUpdate();\n }, []);\n React.useEffect(function () {\n animationTick.current = currentTick;\n });\n return [currentTick, resetAnimationTick];\n}\n\n/**\n * A sidebar hides additional content beside a page.\n */\nvar Sidebar = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var animation = props.animation,\n className = props.className,\n children = props.children,\n content = props.content,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'left' : _props$direction,\n _props$target = props.target,\n target = _props$target === void 0 ? documentRef : _props$target,\n _props$visible = props.visible,\n visible = _props$visible === void 0 ? false : _props$visible,\n width = props.width;\n var _useAnimationTick = useAnimationTick(visible),\n animationTick = _useAnimationTick[0],\n resetAnimationTick = _useAnimationTick[1];\n var elementRef = useMergedRefs(ref, React.useRef());\n var animationTimer = React.useRef();\n var skipNextCallback = React.useRef();\n var handleAnimationEnd = useEventCallback(function () {\n var callback = visible ? 'onShow' : 'onHidden';\n resetAnimationTick();\n _invoke(props, callback, null, props);\n });\n var handleAnimationStart = useEventCallback(function () {\n var callback = visible ? 'onVisible' : 'onHide';\n clearTimeout(animationTimer.current);\n animationTimer.current = setTimeout(handleAnimationEnd, Sidebar.animationDuration);\n if (skipNextCallback.current) {\n skipNextCallback.current = false;\n return;\n }\n _invoke(props, callback, null, props);\n });\n var handleDocumentClick = function handleDocumentClick(e) {\n if (!doesNodeContainClick(elementRef.current, e)) {\n skipNextCallback.current = true;\n _invoke(props, 'onHide', e, _extends({}, props, {\n visible: false\n }));\n }\n };\n useIsomorphicLayoutEffect(function () {\n handleAnimationStart();\n }, [animationTick]);\n React.useEffect(function () {\n return function () {\n clearTimeout(animationTimer.current);\n };\n }, []);\n var classes = cx('ui', animation, direction, width, useKeyOnly(animationTick > 0, 'animating'), useKeyOnly(visible, 'visible'), 'sidebar', className);\n var rest = getUnhandledProps(Sidebar, props);\n var ElementType = getComponentType(props);\n var targetProp = isRefObject(target) ? {\n targetRef: target\n } : {\n target: target\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: elementRef\n }), childrenUtils.isNil(children) ? content : children), visible && /*#__PURE__*/React.createElement(EventListener, _extends({\n listener: handleDocumentClick,\n type: \"click\"\n }, targetProp)));\n});\nSidebar.handledProps = [\"animation\", \"as\", \"children\", \"className\", \"content\", \"direction\", \"onHidden\", \"onHide\", \"onShow\", \"onVisible\", \"target\", \"visible\", \"width\"];\nSidebar.displayName = 'Sidebar';\nSidebar.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Animation style. */\n animation: PropTypes.oneOf(['overlay', 'push', 'scale down', 'uncover', 'slide out', 'slide along']),\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** Direction the sidebar should appear on. */\n direction: PropTypes.oneOf(['top', 'right', 'bottom', 'left']),\n /**\n * Called before a sidebar begins to animate out.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onHide: PropTypes.func,\n /**\n * Called after a sidebar has finished animating out.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onHidden: PropTypes.func,\n /**\n * Called when a sidebar has finished animating in.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onShow: PropTypes.func,\n /**\n * Called when a sidebar begins animating in.\n *\n * @param {null}\n * @param {object} data - All props.\n */\n onVisible: PropTypes.func,\n /** A sidebar can handle clicks on the passed element. */\n target: PropTypes.oneOfType([customPropTypes.domNode, customPropTypes.refObject]),\n /** Controls whether or not the sidebar is visible on the page. */\n visible: PropTypes.bool,\n /** Sidebar width. */\n width: PropTypes.oneOf(['very thin', 'thin', 'wide', 'very wide'])\n} : {};\nSidebar.animationDuration = 500;\nSidebar.Pushable = SidebarPushable;\nSidebar.Pusher = SidebarPusher;\nexport default Sidebar;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, getComponentType, getUnhandledProps } from '../../lib';\n\n/**\n * A pushable sub-component for Sidebar.\n */\nvar SidebarPushable = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n children = props.children,\n content = props.content;\n var classes = cx('pushable', className);\n var rest = getUnhandledProps(SidebarPushable, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nSidebarPushable.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nSidebarPushable.displayName = 'SidebarPushable';\nSidebarPushable.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nexport default SidebarPushable;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { childrenUtils, customPropTypes, getComponentType, getUnhandledProps, useKeyOnly } from '../../lib';\n\n/**\n * A pushable sub-component for Sidebar.\n */\nvar SidebarPusher = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n dimmed = props.dimmed,\n children = props.children,\n content = props.content;\n var classes = cx('pusher', useKeyOnly(dimmed, 'dimmed'), className);\n var rest = getUnhandledProps(SidebarPusher, props);\n var ElementType = getComponentType(props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n ref: ref\n }), childrenUtils.isNil(children) ? content : children);\n});\nSidebarPusher.handledProps = [\"as\", \"children\", \"className\", \"content\", \"dimmed\"];\nSidebarPusher.displayName = 'SidebarPusher';\nSidebarPusher.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** Controls whether or not the dim is displayed. */\n dimmed: PropTypes.bool\n} : {};\nexport default SidebarPusher;"],"names":["Radio","props","ref","slider","toggle","_props$type","type","rest","radio","undefined","handledProps","displayName","propTypes","TextArea","_props$rows","rows","value","elementRef","ElementType","defaultAs","onChange","e","newValue","onInput","Menu","attached","borderless","children","className","color","compact","fixed","floated","fluid","icon","inverted","items","pagination","pointing","secondary","size","stackable","tabular","text","vertical","widths","_useAutoControlledVal","state","activeIndex","defaultState","defaultActiveIndex","initialState","setActiveIndex","classes","item","index","create","defaultProps","active","parseInt","overrideProps","predefinedProps","onClick","itemProps","itemIndex","Header","Item","MenuHeader","content","reAsciiWord","string","match","reHasUnicodeWord","test","rsAstralRange","rsDingbatRange","rsLowerRange","rsUpperRange","rsBreakRange","rsMathOpRange","rsBreak","rsDigits","rsDingbat","rsLower","rsMisc","rsRegional","rsSurrPair","rsUpper","rsMiscLower","rsMiscUpper","rsOptContrLower","rsOptContrUpper","reOptMod","rsModifier","rsOptVar","rsSeq","join","rsEmoji","reUnicodeWord","RegExp","pattern","guard","reApos","callback","deburr","replace","array","start","end","length","split","rsAstral","rsSymbol","reUnicode","methodName","strSymbols","chr","charAt","trailing","slice","result","word","MenuItem","disabled","fitted","header","link","name","position","getComponentType","getDefault","getUnhandledProps","handleClick","useEventCallback","childrenUtils","Icon","autoGenerateKey","val","MenuMenu","useForceUpdate","x","current","isRefObject","hasOwnProperty","Checkbox","label","id","readOnly","tabIndex","checked","defaultChecked","setChecked","_useAutoControlledVal2","indeterminate","defaultIndeterminate","setIndeterminate","inputRef","labelRef","isClickFromMouse","handleChange","unhandled","_partitionHTMLProps","htmlProps","htmlInputProps","labelElement","htmlFor","isInputClick","target","isLabelClick","isRootClick","hasId","stopPropagation","onMouseDown","defaultPrevented","preventDefault","onMouseUp","Modal","actions","basic","_props$centered","centered","closeIcon","_props$closeOnDimmerC","closeOnDimmerClick","_props$closeOnDocumen","closeOnDocumentClick","_props$dimmer","dimmer","_props$eventPool","eventPool","style","trigger","mountNode","isBrowser","document","body","useAutoControlledValue","open","defaultOpen","setOpen","_React$useState","legacyStyles","setLegacyStyles","_React$useState2","scrolling","setScrolling","legacy","window","ActiveXObject","useMergedRefs","dimmerRef","animationRequestId","latestDocumentMouseDownEvent","cancelAnimationFrame","setPositionAndClassNames","rect","getBoundingClientRect","isFitted","scrollHeight","modalRect","height","contextHeight","innerHeight","computedLegacyStyles","marginTop","marginLeft","width","getLegacyStyles","requestAnimationFrame","handleClose","handleDocumentMouseDown","handleDocumentClick","currentDocumentMouseDownEvent","doesNodeContainClick","renderContent","closeIconName","closeIconJSX","ModalHeader","ModalContent","ModalActions","onActionClick","actionProps","portalPropNames","Portal","acc","key","portalProps","onClose","onMount","eventStack","sub","pool","onOpen","onUnmount","unsub","ModalDimmer","blurring","Actions","Content","Description","ModalDescription","Dimmer","action","buttonProps","image","CLASS_NAME_DELITIMITER","prevClassNames","Map","handleClassNamesChange","node","classNameRefs","currentClassNames","classNames","forEach","classNameRef","push","filter","i","indexOf","computeClassNames","_computeClassNamesDif","computeClassNamesDifference","get","forAdd","forRemoval","classList","add","remove","set","nodeRegistry","_this","this","nodes","has","Set","del","delete","emit","bodyClasses","isMounted","useIsomorphicLayoutEffect","element","useClassNamesOnNode","_elementRef$current","setProperty","documentRef","isActionSupported","method","EventListener","options","capture","listener","targetRef","latestListener","eventHandler","event","timeoutId","currentEvent","_ownerDocument$defaul","_ownerDocument","_ownerDocument$defaul2","ownerDocument","defaultView","getWindowEvent","conditionalHandler","addEventListener","setTimeout","clearTimeout","removeEventListener","useEventListener","Sidebar","animation","_props$direction","direction","_props$target","_props$visible","visible","_useAnimationTick","tickIncrement","usePrevious","animationTick","forceUpdate","currentTick","resetAnimationTick","useAnimationTick","animationTimer","skipNextCallback","handleAnimationEnd","handleAnimationStart","animationDuration","targetProp","Pushable","SidebarPushable","Pusher","SidebarPusher","dimmed"],"sourceRoot":""}