You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Scripted/website/node_modules/.cache/babel-loader/07344959a69c4c8234c5623bba8...

1 line
2.5 KiB

{"ast":null,"code":"import * as React from 'react';\nimport { useMemo } from 'react';\nimport FormContext from './FormContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n controlId,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n ...props\n } = _ref;\n const context = useMemo(() => ({\n controlId\n }), [controlId]);\n return /*#__PURE__*/_jsx(FormContext.Provider, {\n value: context,\n children: /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref\n })\n });\n});\nFormGroup.displayName = 'FormGroup';\nexport default FormGroup;","map":{"version":3,"names":["React","useMemo","FormContext","jsx","_jsx","FormGroup","forwardRef","ref","controlId","as","Component","props","context","Provider","value","children","displayName"],"sources":["C:/Cours/SAE/SAE-3.01/Scripted/Scripted/website/node_modules/react-bootstrap/esm/FormGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { useMemo } from 'react';\nimport FormContext from './FormContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormGroup = /*#__PURE__*/React.forwardRef(({\n controlId,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n ...props\n}, ref) => {\n const context = useMemo(() => ({\n controlId\n }), [controlId]);\n return /*#__PURE__*/_jsx(FormContext.Provider, {\n value: context,\n children: /*#__PURE__*/_jsx(Component, { ...props,\n ref: ref\n })\n });\n});\nFormGroup.displayName = 'FormGroup';\nexport default FormGroup;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,OAAO,QAAQ,OAAO;AAC/B,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,SAAS,GAAG,aAAaL,KAAK,CAACM,UAAU,CAAC,OAK7CC,GAAG,KAAK;EAAA,IALsC;IAC/CC,SAAS;IACT;IACAC,EAAE,EAAEC,SAAS,GAAG,KAAK;IACrB,GAAGC;EACL,CAAC;EACC,MAAMC,OAAO,GAAGX,OAAO,CAAC,OAAO;IAC7BO;EACF,CAAC,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAChB,OAAO,aAAaJ,IAAI,CAACF,WAAW,CAACW,QAAQ,EAAE;IAC7CC,KAAK,EAAEF,OAAO;IACdG,QAAQ,EAAE,aAAaX,IAAI,CAACM,SAAS,EAAE;MAAE,GAAGC,KAAK;MAC/CJ,GAAG,EAAEA;IACP,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC;AACFF,SAAS,CAACW,WAAW,GAAG,WAAW;AACnC,eAAeX,SAAS"},"metadata":{},"sourceType":"module"}