{"version":3,"file":"InputBase-C-KCwpK0.js","sources":["../../../node_modules/@mantine/core/esm/components/Input/use-input-props.mjs","../../../node_modules/@mantine/core/esm/components/InputBase/InputBase.mjs"],"sourcesContent":["'use client';\nimport 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport { useProps } from '../../core/MantineProvider/use-props/use-props.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport { extractStyleProps } from '../../core/Box/style-props/extract-style-props/extract-style-props.mjs';\nimport '../../core/Box/Box.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\n\nfunction useInputProps(component, defaultProps, _props) {\n const props = useProps(component, defaultProps, _props);\n const {\n label,\n description,\n error,\n required,\n classNames,\n styles,\n className,\n unstyled,\n __staticSelector,\n __stylesApiProps,\n errorProps,\n labelProps,\n descriptionProps,\n wrapperProps: _wrapperProps,\n id,\n size,\n style,\n inputContainer,\n inputWrapperOrder,\n withAsterisk,\n variant,\n vars,\n mod,\n ...others\n } = props;\n const { styleProps, rest } = extractStyleProps(others);\n const wrapperProps = {\n label,\n description,\n error,\n required,\n classNames,\n className,\n __staticSelector,\n __stylesApiProps: __stylesApiProps || props,\n errorProps,\n labelProps,\n descriptionProps,\n unstyled,\n styles,\n size,\n style,\n inputContainer,\n inputWrapperOrder,\n withAsterisk,\n variant,\n id,\n mod,\n ..._wrapperProps\n };\n return {\n ...rest,\n classNames,\n styles,\n unstyled,\n wrapperProps: { ...wrapperProps, ...styleProps },\n inputProps: {\n required,\n classNames,\n styles,\n unstyled,\n size,\n __staticSelector,\n __stylesApiProps: __stylesApiProps || props,\n error,\n variant,\n id\n }\n };\n}\n\nexport { useInputProps };\n//# sourceMappingURL=use-input-props.mjs.map\n","'use client';\nimport React from 'react';\nimport '@mantine/hooks';\nimport 'clsx';\nimport '../../core/MantineProvider/Mantine.context.mjs';\nimport '../../core/MantineProvider/default-theme.mjs';\nimport '../../core/MantineProvider/MantineProvider.mjs';\nimport '../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport '../../core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport '../../core/Box/Box.mjs';\nimport { polymorphicFactory } from '../../core/factory/polymorphic-factory.mjs';\nimport '../../core/DirectionProvider/DirectionProvider.mjs';\nimport { Input } from '../Input/Input.mjs';\nimport '../Input/InputWrapper/InputWrapper.mjs';\nimport '../Input/InputDescription/InputDescription.mjs';\nimport '../Input/InputError/InputError.mjs';\nimport '../Input/InputLabel/InputLabel.mjs';\nimport '../Input/InputPlaceholder/InputPlaceholder.mjs';\nimport { useInputProps } from '../Input/use-input-props.mjs';\nimport '../Input/InputWrapper.context.mjs';\n\nconst defaultProps = {\n __staticSelector: \"InputBase\",\n withAria: true\n};\nconst InputBase = polymorphicFactory((props, ref) => {\n const { inputProps, wrapperProps, ...others } = useInputProps(\"InputBase\", defaultProps, props);\n return /* @__PURE__ */ React.createElement(Input.Wrapper, { ...wrapperProps }, /* @__PURE__ */ React.createElement(Input, { ...inputProps, ...others, ref }));\n});\nInputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };\nInputBase.displayName = \"@mantine/core/InputBase\";\n\nexport { InputBase };\n//# sourceMappingURL=InputBase.mjs.map\n"],"names":["useInputProps","component","defaultProps","_props","props","useProps","label","description","error","required","classNames","styles","className","unstyled","__staticSelector","__stylesApiProps","errorProps","labelProps","descriptionProps","_wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk","variant","vars","mod","others","styleProps","rest","extractStyleProps","wrapperProps","InputBase","polymorphicFactory","ref","inputProps","React","Input"],"mappings":"uGAcA,SAASA,EAAcC,EAAWC,EAAcC,EAAQ,CACtD,MAAMC,EAAQC,EAASJ,EAAWC,EAAcC,CAAM,EAChD,CACJ,M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