{"version":3,"sources":["webpack:///./node_modules/@instructure/ui-form-field/es/FormPropTypes.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldLabel/theme.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldLabel/index.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldMessages/theme.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldMessage/theme.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldMessage/index.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldMessages/index.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldLayout/theme.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldLayout/index.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormField/index.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldGroup/theme.js","webpack:///./node_modules/@instructure/ui-form-field/es/FormFieldGroup/index.js"],"names":["FormPropTypes","message","shape","text","string","type","oneOf","generator","_ref","colors","typography","color","textDarkest","fontFamily","fontWeight","fontWeightBold","fontSize","fontSizeMedium","lineHeight","lineHeightFit","canvas","variables","_dec","_class","_class2","_temp","styles","componentId","template","theme","concat","_Component","FormFieldLabel","_super","this","apply","arguments","key","value","_classes","ElementType","getElementType","props","classes","root","hasVisibleChildren","children","createElement","Object","assign","propTypes","className","displayName","as","elementType","node","isRequired","defaultProps","spacing","topMargin","xxSmall","colorHint","colorError","textDanger","colorSuccess","textSuccess","fontWeightNormal","fontSizeSmall","FormFieldMessage","variant","ScreenReaderContent","FormFieldMessages","messages","length","map","msg","i","arrayOf","FormFieldLayout","_this","call","handleInputContainerRef","inputContainerRef","_messagesId","messagesId","uid","width","inline","layout","hasVisibleLabel","Grid","Col","textAlign","labelAlign","inlineContainerAndLabel","label","hasMessages","id","Row","offset","style","renderLegend","rowSpacing","colSpacing","startAt","renderLabel","elementRef","renderVisibleMessages","get","bool","func","FormField","vAlign","htmlFor","borders","borderWidth","widthSmall","borderStyle","borderColor","borderRadius","radiusMedium","errorBorderColor","borderDanger","errorFieldsPadding","xSmall","FormFieldGroup","child","index","renderColumns","_classnames","fields","invalid","disabled","renderChildren","description","renderFields","findIndex"],"mappings":";;;;;;;;;;;;;;;AAgCA,IAAIA,EAAgB,CAClBC,QAAS,IAAUC,MAAM,CACvBC,KAAM,IAAUC,OAChBC,KAAM,IAAUC,MAAM,CAAC,QAAS,OAAQ,UAAW;;;;;;;;;;;;ACZxC,SAASC,EAAUC,GAChC,IAAIC,EAASD,EAAKC,OACdC,EAAaF,EAAKE;AACtB,MAAO,CACLC,MAAOF,EAAOG,YACdC,WAAYH,EAAWG,WACvBC,WAAYJ,EAAWK,eACvBC,SAAUN,EAAWO,eACrBC,WAAYR,EAAWS,eAI3BZ,EAAUa,OAAS,SAAUC,GAC3B,MAAO,CACLV,MAAOU,EAAU;AC/BrB,IAAIC,EAAMC,EAAQC,EAASC;AA+B3B,IAAIC,EAAS,CACXC,YAAa,QACbC,SAAU,SAAkBC,GAC1B,MAAO,gsDAAgsDC,OAAOD,EAAMlB,OAAS,UAAW,iBAAiBmB,OAAOD,EAAMhB,YAAc,UAAW,eAAeiB,OAAOD,EAAMb,UAAY,UAAW,iBAAiBc,OAAOD,EAAMf,YAAc,UAAW,iBAAiBgB,OAAOD,EAAMX,YAAc,UAAW,6NAEl8D,KAAQ,aACR,OAAU,aACV,cAAe;AAoBjB,IAAI,GAAkBI,EAAO,eAAU,EAAOI,GAASJ,EAAKC,GAAUE,EAAQD,EAAuB,SAAUO,GAC7G,eAAUC,EAAgBD;AAE1B,IAAIE,EAAS,eAAaD;AAE1B,SAASA,IACP,eAAgBE,KAAMF;AAEtB,OAAOC,EAAOE,MAAMD,KAAME,WAG5B,eAAaJ,EAAgB,CAAC,CAC5BK,IAAK,SACLC,MAAO,WACL,IAAIC;AAEJ,IAAIC,EAAc,OAAAC,EAAA,MAAeT,EAAgBE,KAAKQ;AACtD,IAAIC,GAAWJ,EAAW,GAAI,eAAgBA,EAAUb,EAAOkB,KAAM,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AAU,UACxDiG,WAAY,IAAUjG,MAAM,CAAC,OAAQ,QAAS,SAAU,UACxD0G,OAAQ,IAAU1G,MAAM,CAAC,MAAO,SAAU,WAC1CkG,QAAS,IAAUlG,MAAM,CAAC,QAAS,SAAU,QAAS,UAAW,QAChE,GAAQmD,aAAe,CACxBX,SAAU,KACV0C,YAAQ,EACRgB,aAAS,EACThC,cAAU,EACVY,gBAAY,EACZ/B,GAAI,WACJ+E,SAAU,MACV9B,WAAY,SACZC,WAAY,QACZS,OAAQ,UACP,MAAW","file":"7-c-7a2db9b34a.js","sourcesContent":["/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport PropTypes from 'prop-types';\n/**\n * ---\n * category: utilities/form\n * ---\n * Custom prop types for React components.\n * @module FormPropTypes\n */\n\nvar FormPropTypes = {\n message: PropTypes.shape({\n text: PropTypes.string,\n type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])\n })\n};\nexport default FormPropTypes;\nexport { FormPropTypes };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport default function generator(_ref) {\n var colors = _ref.colors,\n typography = _ref.typography;\n return {\n color: colors.textDarkest,\n fontFamily: typography.fontFamily,\n fontWeight: typography.fontWeightBold,\n fontSize: typography.fontSizeMedium,\n lineHeight: typography.lineHeightFit\n };\n}\n\ngenerator.canvas = function (variables) {\n return {\n color: variables['ic-brand-font-color-dark']\n };\n};","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar _dec, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { themeable } from '@instructure/ui-themeable';\nimport { omitProps, getElementType } from '@instructure/ui-react-utils';\nimport { hasVisibleChildren } from '@instructure/ui-a11y-utils';\nvar styles = {\n componentId: 'fCrpb',\n template: function template(theme) {\n return \"\\n\\n.fCrpb_bGBk,.fCrpb_bGBk.fCrpb_fVUh,label.fCrpb_bGBk{all:initial;animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:#000;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;display:block;empty-cells:show;float:none;font-family:serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto}\\n\\n.fCrpb_bGBk.fCrpb_fVUh{display:table;width:100%}\\n\\n.fCrpb_egrg,.fCrpb_egrg.fCrpb_fVUh,label.fCrpb_egrg{color:\".concat(theme.color || 'inherit', \";font-family:\").concat(theme.fontFamily || 'inherit', \";font-size:\").concat(theme.fontSize || 'inherit', \";font-weight:\").concat(theme.fontWeight || 'inherit', \";line-height:\").concat(theme.lineHeight || 'inherit', \";margin:0;text-align:inherit}\\n\\n[dir=ltr] .fCrpb_egrg,[dir=ltr] .fCrpb_egrg.fCrpb_fVUh,[dir=ltr] label.fCrpb_egrg,[dir=rtl] .fCrpb_egrg,[dir=rtl] .fCrpb_egrg.fCrpb_fVUh,[dir=rtl] label.fCrpb_egrg{text-align:inherit}\");\n },\n 'root': 'fCrpb_bGBk',\n 'legend': 'fCrpb_fVUh',\n 'has-content': 'fCrpb_egrg'\n};\nimport theme from './theme';\n/**\n---\nparent: FormField\n---\n\nThis is a helper component that is used by most of the custom form\ncomponents. In most cases it shouldn't be used directly.\n\n```js\n---\nexample: true\n---\nHello\n```\n\n**/\n\nvar FormFieldLabel = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(FormFieldLabel, _Component);\n\n var _super = _createSuper(FormFieldLabel);\n\n function FormFieldLabel() {\n _classCallCheck(this, FormFieldLabel);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FormFieldLabel, [{\n key: \"render\",\n value: function render() {\n var _classes;\n\n var ElementType = getElementType(FormFieldLabel, this.props);\n var classes = (_classes = {}, _defineProperty(_classes, styles.root, true), _defineProperty(_classes, styles['has-content'], hasVisibleChildren(this.props.children)), _classes);\n return /*#__PURE__*/React.createElement(ElementType, Object.assign({}, omitProps(this.props, FormFieldLabel.propTypes), {\n className: classnames(classes)\n }), this.props.children);\n }\n }]);\n\n FormFieldLabel.displayName = \"FormFieldLabel\";\n return FormFieldLabel;\n}(Component), _class2.propTypes = {\n as: PropTypes.elementType,\n children: PropTypes.node.isRequired\n}, _class2.defaultProps = {\n as: 'span'\n}, _temp)) || _class);\nexport default FormFieldLabel;\nexport { FormFieldLabel };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport default function generator(_ref) {\n var spacing = _ref.spacing;\n return {\n topMargin: spacing.xxSmall\n };\n}","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport default function generator(_ref) {\n var colors = _ref.colors,\n typography = _ref.typography;\n return {\n colorHint: colors.textDarkest,\n colorError: colors.textDanger,\n colorSuccess: colors.textSuccess,\n fontFamily: typography.fontFamily,\n fontWeight: typography.fontWeightNormal,\n fontSize: typography.fontSizeSmall,\n lineHeight: typography.lineHeight\n };\n}\n\ngenerator.canvas = function (variables) {\n return {\n colorHint: variables['ic-brand-font-color-dark']\n };\n};","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar _dec, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { themeable } from '@instructure/ui-themeable';\nimport { ScreenReaderContent } from '@instructure/ui-a11y-content';\nvar styles = {\n componentId: 'bVlfD',\n template: function template(theme) {\n return \"\\n\\n.bVlfD_bGBk{display:block;font-family:\".concat(theme.fontFamily || 'inherit', \";font-size:\").concat(theme.fontSize || 'inherit', \";font-weight:\").concat(theme.fontWeight || 'inherit', \";line-height:\").concat(theme.lineHeight || 'inherit', \"}\\n\\n.bVlfD_dYYb{color:\").concat(theme.colorHint || 'inherit', \"}\\n\\n.bVlfD_ddvR{color:\").concat(theme.colorError || 'inherit', \"}\\n\\n.bVlfD_cOXX{color:\").concat(theme.colorSuccess || 'inherit', \"}\");\n },\n 'root': 'bVlfD_bGBk',\n 'hint': 'bVlfD_dYYb',\n 'error': 'bVlfD_ddvR',\n 'success': 'bVlfD_cOXX'\n};\nimport theme from './theme';\n/**\n---\nparent: FormField\n---\n\nThis is a helper component that is used by most of the custom form\ncomponents. In most cases it shouldn't be used directly.\n\n```js\n---\nexample: true\n---\nInvalid value\n```\n**/\n\nvar FormFieldMessage = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(FormFieldMessage, _Component);\n\n var _super = _createSuper(FormFieldMessage);\n\n function FormFieldMessage() {\n _classCallCheck(this, FormFieldMessage);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FormFieldMessage, [{\n key: \"render\",\n value: function render() {\n var _classes;\n\n var classes = (_classes = {}, _defineProperty(_classes, styles.root, true), _defineProperty(_classes, styles[this.props.variant], true), _classes);\n return this.props.variant !== 'screenreader-only' ? /*#__PURE__*/React.createElement(\"span\", {\n className: classnames(classes)\n }, this.props.children) : /*#__PURE__*/React.createElement(ScreenReaderContent, null, this.props.children);\n }\n }]);\n\n FormFieldMessage.displayName = \"FormFieldMessage\";\n return FormFieldMessage;\n}(Component), _class2.propTypes = {\n variant: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only']),\n children: PropTypes.node\n}, _class2.defaultProps = {\n variant: 'hint',\n children: null\n}, _temp)) || _class);\nexport default FormFieldMessage;\nexport { FormFieldMessage };","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar _dec, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { themeable } from '@instructure/ui-themeable';\nimport { omitProps } from '@instructure/ui-react-utils';\nvar styles = {\n componentId: 'fAfJj',\n template: function template(theme) {\n return \"\\n\\n.fAfJj_bGBk{margin:calc(-1*\".concat(theme.topMargin || 'inherit', \") 0 0 0;padding:0}\\n\\n.fAfJj_elxg,.fAfJj_bGBk{display:block}\");\n },\n 'root': 'fAfJj_bGBk',\n 'message': 'fAfJj_elxg'\n};\nimport theme from './theme';\nimport { FormPropTypes } from '../FormPropTypes';\nimport { FormFieldMessage } from '../FormFieldMessage';\n/**\n---\nparent: FormField\n---\n\nA FormFieldMessages component\n\n```js\n---\nexample: true\n---\n\n```\n**/\n\nvar FormFieldMessages = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(FormFieldMessages, _Component);\n\n var _super = _createSuper(FormFieldMessages);\n\n function FormFieldMessages() {\n _classCallCheck(this, FormFieldMessages);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FormFieldMessages, [{\n key: \"render\",\n value: function render() {\n var messages = this.props.messages;\n return messages && messages.length > 0 ? /*#__PURE__*/React.createElement(\"span\", Object.assign({\n className: styles.root\n }, omitProps(this.props, FormFieldMessages.propTypes)), messages.map(function (msg, i) {\n return /*#__PURE__*/React.createElement(\"span\", {\n key: \"error\".concat(i),\n className: styles.message\n }, /*#__PURE__*/React.createElement(FormFieldMessage, {\n variant: msg.type\n }, msg.text));\n })) : null;\n }\n }]);\n\n FormFieldMessages.displayName = \"FormFieldMessages\";\n return FormFieldMessages;\n}(Component), _class2.propTypes = {\n /**\n * object with shape: `{\n * text: PropTypes.string,\n * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])\n * }`\n */\n messages: PropTypes.arrayOf(FormPropTypes.message)\n}, _class2.defaultProps = {\n messages: void 0\n}, _temp)) || _class);\nexport default FormFieldMessages;\nexport { FormFieldMessages };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport default function () {\n return {};\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport { error as _error } from \"@instructure/console\";\n\nvar _dec, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { hasVisibleChildren } from '@instructure/ui-a11y-utils';\nimport { ScreenReaderContent } from '@instructure/ui-a11y-content';\nimport { Grid } from '@instructure/ui-grid';\nimport { themeable } from '@instructure/ui-themeable';\nimport { omitProps, pickProps, getElementType } from '@instructure/ui-react-utils';\nimport { uid } from '@instructure/uid';\nimport { FormFieldLabel } from '../FormFieldLabel';\nimport { FormFieldMessages } from '../FormFieldMessages';\nimport { FormPropTypes } from '../FormPropTypes';\nvar styles = {\n componentId: 'cWmNi',\n template: function template(theme) {\n return \"\\n\\n.cWmNi_bGBk{all:initial;animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border:0;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:#000;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-span:1;column-width:auto;columns:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;direction:inherit;display:inline;display:block;empty-cells:show;float:none;font-family:serif;font-size:medium;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;opacity:inherit;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:left;text-align:start;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;width:100%;word-spacing:normal;z-index:auto}\\n\\n[dir=ltr] .cWmNi_bGBk{text-align:left}\\n\\n[dir=rtl] .cWmNi_bGBk{text-align:right}\\n\\n.cWmNi_eXrk{display:inline-block;vertical-align:middle;width:auto}\";\n },\n 'root': 'cWmNi_bGBk',\n 'inline': 'cWmNi_eXrk'\n};\nimport theme from './theme';\n/**\n---\nparent: FormField\n---\n**/\n\nvar FormFieldLayout = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(FormFieldLayout, _Component);\n\n var _super = _createSuper(FormFieldLayout);\n\n function FormFieldLayout(props) {\n var _this;\n\n _classCallCheck(this, FormFieldLayout);\n\n _this = _super.call(this);\n\n _this.handleInputContainerRef = function (node) {\n if (_this.props.inputContainerRef) {\n _this.props.inputContainerRef(node);\n }\n };\n\n _this._messagesId = props.messagesId || uid('FormFieldLayout-messages');\n\n /*#__PURE__*/\n\n /*#__PURE__*/\n _error(typeof props.width !== 'undefined' || !props.inline || props.layout !== 'inline', \"[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.\\n This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.\");\n\n return _this;\n }\n\n _createClass(FormFieldLayout, [{\n key: \"renderLabel\",\n value: function renderLabel() {\n if (this.hasVisibleLabel) {\n return /*#__PURE__*/React.createElement(Grid.Col, {\n textAlign: this.props.labelAlign,\n width: this.inlineContainerAndLabel ? 'auto' : 3\n }, /*#__PURE__*/React.createElement(FormFieldLabel, {\n \"aria-hidden\": this.elementType === 'fieldset' ? 'true' : null\n }, this.props.label));\n } else if (this.elementType !== 'fieldset') {\n // to avoid duplicate label/legend content\n return this.props.label;\n } else {\n return null;\n }\n }\n }, {\n key: \"renderLegend\",\n value: function renderLegend() {\n // note: the legend element must be the first child of a fieldset element for SR\n // so we render it twice in that case (once for SR-only and one that is visible)\n return /*#__PURE__*/React.createElement(ScreenReaderContent, {\n as: \"legend\"\n }, this.props.label, this.hasMessages && /*#__PURE__*/React.createElement(FormFieldMessages, {\n messages: this.props.messages\n }));\n }\n }, {\n key: \"renderMessages\",\n value: function renderMessages() {\n return /*#__PURE__*/React.createElement(FormFieldMessages, {\n id: this._messagesId,\n messages: this.props.messages\n });\n }\n }, {\n key: \"renderVisibleMessages\",\n value: function renderVisibleMessages() {\n return this.hasMessages ? /*#__PURE__*/React.createElement(Grid.Row, null, /*#__PURE__*/React.createElement(Grid.Col, {\n offset: this.inlineContainerAndLabel ? null : 3,\n textAlign: this.inlineContainerAndLabel ? 'end' : null\n }, /*#__PURE__*/React.createElement(FormFieldMessages, {\n id: this._messagesId,\n messages: this.props.messages\n }))) : null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _classes;\n\n var ElementType = this.elementType;\n var classes = (_classes = {}, _defineProperty(_classes, styles.root, true), _defineProperty(_classes, styles.inline, this.props.inline), _classes);\n return /*#__PURE__*/React.createElement(ElementType, Object.assign({}, omitProps(this.props, _objectSpread({}, FormFieldLayout.propTypes, {}, Grid.propTypes)), {\n className: classnames(classes),\n style: {\n width: this.props.width\n },\n \"aria-describedby\": this.hasMessages ? this._messagesId : null\n }), this.elementType === 'fieldset' && this.renderLegend(), /*#__PURE__*/React.createElement(Grid, Object.assign({\n rowSpacing: \"small\",\n colSpacing: \"small\",\n startAt: this.props.layout === 'inline' && this.hasVisibleLabel ? 'medium' : null\n }, pickProps(this.props, Grid.propTypes)), /*#__PURE__*/React.createElement(Grid.Row, null, this.renderLabel(), /*#__PURE__*/React.createElement(Grid.Col, {\n width: this.inlineContainerAndLabel ? 'auto' : null,\n elementRef: this.handleInputContainerRef\n }, this.props.children)), this.renderVisibleMessages()));\n }\n }, {\n key: \"hasVisibleLabel\",\n get: function get() {\n return this.props.label && hasVisibleChildren(this.props.label);\n }\n }, {\n key: \"hasMessages\",\n get: function get() {\n return this.props.messages && this.props.messages.length > 0;\n }\n }, {\n key: \"elementType\",\n get: function get() {\n return getElementType(FormFieldLayout, this.props);\n }\n }, {\n key: \"inlineContainerAndLabel\",\n get: function get() {\n // Return if both the component container and label will display inline\n return this.props.inline && this.props.layout === 'inline';\n }\n }]);\n\n FormFieldLayout.displayName = \"FormFieldLayout\";\n return FormFieldLayout;\n}(Component), _class2.propTypes = {\n label: PropTypes.node.isRequired,\n\n /**\n * the id of the input (to link it to its label for a11y)\n */\n id: PropTypes.string,\n\n /**\n * the element type to render as\n */\n as: PropTypes.elementType,\n\n /**\n * object with shape: `{\n * text: PropTypes.string,\n * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])\n * }`\n */\n messages: PropTypes.arrayOf(FormPropTypes.message),\n\n /**\n * id for the form field messages\n */\n messagesId: PropTypes.string,\n children: PropTypes.node,\n inline: PropTypes.bool,\n layout: PropTypes.oneOf(['stacked', 'inline']),\n labelAlign: PropTypes.oneOf(['start', 'end']),\n width: PropTypes.string,\n inputContainerRef: PropTypes.func\n}, _class2.defaultProps = {\n id: void 0,\n width: void 0,\n messages: void 0,\n messagesId: void 0,\n children: null,\n inline: false,\n layout: 'stacked',\n as: 'label',\n labelAlign: 'end',\n inputContainerRef: void 0\n}, _temp)) || _class);\nexport default FormFieldLayout;\nexport { FormFieldLayout };","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { omitProps, pickProps } from '@instructure/ui-react-utils';\nimport { FormPropTypes } from '../FormPropTypes';\nimport { FormFieldLayout } from '../FormFieldLayout';\n/**\n---\ncategory: components\n---\n**/\n\nvar FormField = /*#__PURE__*/function (_Component) {\n _inherits(FormField, _Component);\n\n var _super = _createSuper(FormField);\n\n function FormField() {\n _classCallCheck(this, FormField);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FormField, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(FormFieldLayout, Object.assign({}, omitProps(this.props, FormField.propTypes), pickProps(this.props, FormFieldLayout.propTypes), {\n vAlign: this.props.vAlign,\n as: \"label\",\n htmlFor: this.props.id\n }));\n }\n }]);\n\n FormField.displayName = \"FormField\";\n return FormField;\n}(Component);\n\nFormField.propTypes = {\n label: PropTypes.node.isRequired,\n\n /**\n * the id of the input (to link it to its label for a11y)\n */\n id: PropTypes.string.isRequired,\n\n /**\n * object with shape: `{\n * text: PropTypes.string,\n * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])\n * }`\n */\n messages: PropTypes.arrayOf(FormPropTypes.message),\n messagesId: PropTypes.string,\n children: PropTypes.node,\n inline: PropTypes.bool,\n layout: PropTypes.oneOf(['stacked', 'inline']),\n labelAlign: PropTypes.oneOf(['start', 'end']),\n vAlign: PropTypes.oneOf(['top', 'middle', 'bottom']),\n width: PropTypes.string,\n inputContainerRef: PropTypes.func\n};\nFormField.defaultProps = {\n inline: false,\n layout: 'stacked',\n labelAlign: 'end',\n vAlign: 'middle',\n messages: void 0,\n messagesId: void 0,\n children: null,\n width: void 0,\n inputContainerRef: void 0\n};\nexport default FormField;\nexport { FormField };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport default function (_ref) {\n var borders = _ref.borders,\n colors = _ref.colors,\n spacing = _ref.spacing;\n return {\n borderWidth: borders.widthSmall,\n borderStyle: borders.style,\n borderColor: 'transparent',\n borderRadius: borders.radiusMedium,\n errorBorderColor: colors.borderDanger,\n errorFieldsPadding: spacing.xSmall\n };\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar _dec, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { Grid } from '@instructure/ui-grid';\nimport { themeable } from '@instructure/ui-themeable';\nimport { pickProps, omitProps } from '@instructure/ui-react-utils';\nimport { FormFieldLayout } from '../FormFieldLayout';\nimport { FormPropTypes } from '../FormPropTypes';\nvar styles = {\n componentId: 'efIdg',\n template: function template(theme) {\n return \"\\n\\n.efIdg_cLpc{border:\".concat(theme.borderWidth || 'inherit', \" \").concat(theme.borderStyle || 'inherit', \" \").concat(theme.borderColor || 'inherit', \";border-radius:\").concat(theme.borderRadius || 'inherit', \";display:block}\\n\\n.efIdg_cLpc.efIdg_fszt{border-color:\").concat(theme.errorBorderColor || 'inherit', \";padding:\").concat(theme.errorFieldsPadding || 'inherit', \"}\\n\\n.efIdg_cLpc.efIdg_ywdX{cursor:not-allowed;opacity:0.6;pointer-events:none}\");\n },\n 'fields': 'efIdg_cLpc',\n 'invalid': 'efIdg_fszt',\n 'disabled': 'efIdg_ywdX'\n};\nimport theme from './theme';\n/**\n---\ncategory: components\n---\n**/\n\nvar FormFieldGroup = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(FormFieldGroup, _Component);\n\n var _super = _createSuper(FormFieldGroup);\n\n function FormFieldGroup() {\n _classCallCheck(this, FormFieldGroup);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FormFieldGroup, [{\n key: \"renderColumns\",\n value: function renderColumns() {\n return Children.map(this.props.children, function (child, index) {\n return child ? /*#__PURE__*/React.createElement(Grid.Col, {\n width: child.props && child.props.width ? 'auto' : null,\n key: index\n }, child) : null;\n });\n }\n }, {\n key: \"renderChildren\",\n value: function renderChildren() {\n return /*#__PURE__*/React.createElement(Grid, {\n colSpacing: this.props.colSpacing,\n rowSpacing: this.props.rowSpacing,\n vAlign: this.props.vAlign,\n startAt: this.props.startAt || (this.props.layout === 'columns' ? 'medium' : null)\n }, /*#__PURE__*/React.createElement(Grid.Row, null, this.renderColumns()));\n }\n }, {\n key: \"renderFields\",\n value: function renderFields() {\n var _classnames;\n\n return /*#__PURE__*/React.createElement(\"span\", {\n key: \"fields\",\n className: classnames((_classnames = {}, _defineProperty(_classnames, styles.fields, true), _defineProperty(_classnames, styles.invalid, this.invalid), _defineProperty(_classnames, styles.disabled, this.props.disabled), _classnames))\n }, this.renderChildren());\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(FormFieldLayout, Object.assign({}, omitProps(this.props, FormFieldGroup.propTypes), pickProps(this.props, FormFieldLayout.propTypes), {\n vAlign: this.props.vAlign,\n layout: this.props.layout === 'inline' ? 'inline' : 'stacked',\n label: this.props.description,\n \"aria-disabled\": this.props.disabled ? 'true' : null,\n \"aria-invalid\": this.invalid ? 'true' : null\n }), this.renderFields());\n }\n }, {\n key: \"invalid\",\n get: function get() {\n return this.props.messages && this.props.messages.findIndex(function (message) {\n return message.type === 'error';\n }) >= 0;\n }\n }]);\n\n FormFieldGroup.displayName = \"FormFieldGroup\";\n return FormFieldGroup;\n}(Component), _class2.propTypes = {\n description: PropTypes.node.isRequired,\n\n /**\n * the element type to render as\n */\n as: PropTypes.elementType,\n\n /**\n * object with shape: `{\n * text: PropTypes.string,\n * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])\n * }`\n */\n messages: PropTypes.arrayOf(FormPropTypes.message),\n\n /**\n * id for the form field messages\n */\n messagesId: PropTypes.string,\n disabled: PropTypes.bool,\n children: PropTypes.node,\n layout: PropTypes.oneOf(['stacked', 'columns', 'inline']),\n rowSpacing: PropTypes.oneOf(['none', 'small', 'medium', 'large']),\n colSpacing: PropTypes.oneOf(['none', 'small', 'medium', 'large']),\n vAlign: PropTypes.oneOf(['top', 'middle', 'bottom']),\n startAt: PropTypes.oneOf(['small', 'medium', 'large', 'x-large', null])\n}, _class2.defaultProps = {\n children: null,\n layout: void 0,\n startAt: void 0,\n messages: void 0,\n messagesId: void 0,\n as: 'fieldset',\n disabled: false,\n rowSpacing: 'medium',\n colSpacing: 'small',\n vAlign: 'middle'\n}, _temp)) || _class);\nexport default FormFieldGroup;\nexport { FormFieldGroup };"],"sourceRoot":""}