{"version":3,"file":"get-auto-contrast-value-CbkVtTp8.js","sources":["../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.mjs","../../../node_modules/@mantine/core/esm/core/styles-api/use-resolved-styles-api/use-resolved-styles-api.mjs","../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-auto-contrast-value/get-auto-contrast-value.mjs"],"sourcesContent":["'use client';\nimport { getPrimaryShade } from '../get-primary-shade/get-primary-shade.mjs';\nimport { parseThemeColor } from '../parse-theme-color/parse-theme-color.mjs';\n\nfunction getContrastColor({ color, theme, autoContrast }) {\n const _autoContrast = typeof autoContrast === \"boolean\" ? autoContrast : theme.autoContrast;\n if (!_autoContrast) {\n return \"var(--mantine-color-white)\";\n }\n const parsed = parseThemeColor({ color: color || theme.primaryColor, theme });\n return parsed.isLight ? \"var(--mantine-color-black)\" : \"var(--mantine-color-white)\";\n}\nfunction getPrimaryContrastColor(theme, colorScheme) {\n return getContrastColor({\n color: theme.colors[theme.primaryColor][getPrimaryShade(theme, colorScheme)],\n theme,\n autoContrast: null\n });\n}\n\nexport { getContrastColor, getPrimaryContrastColor };\n//# sourceMappingURL=get-contrast-color.mjs.map\n","'use client';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport '../../MantineProvider/Mantine.context.mjs';\nimport '../../MantineProvider/default-theme.mjs';\nimport '../../MantineProvider/MantineProvider.mjs';\nimport { useMantineTheme } from '../../MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport '../../MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport { resolveClassNames } from '../use-styles/get-class-name/resolve-class-names/resolve-class-names.mjs';\nimport { resolveStyles } from '../use-styles/get-style/resolve-styles/resolve-styles.mjs';\n\nfunction useResolvedStylesApi({\n classNames,\n styles,\n props,\n stylesCtx\n}) {\n const theme = useMantineTheme();\n return {\n resolvedClassNames: resolveClassNames({\n theme,\n classNames,\n props,\n stylesCtx: stylesCtx || void 0\n }),\n resolvedStyles: resolveStyles({\n theme,\n styles,\n props,\n stylesCtx: stylesCtx || void 0\n })\n };\n}\n\nexport { useResolvedStylesApi };\n//# sourceMappingURL=use-resolved-styles-api.mjs.map\n","'use client';\nfunction getAutoContrastValue(autoContrast, theme) {\n return typeof autoContrast === \"boolean\" ? autoContrast : theme.autoContrast;\n}\n\nexport { getAutoContrastValue };\n//# sourceMappingURL=get-auto-contrast-value.mjs.map\n"],"names":["getContrastColor","color","theme","autoContrast","parseThemeColor","getPrimaryContrastColor","colorScheme","getPrimaryShade","useResolvedStylesApi","classNames","styles","props","stylesCtx","useMantineTheme","resolveClassNames","resolveStyles","getAutoContrastValue"],"mappings":"sEAIA,SAASA,EAAiB,CAAE,MAAAC,EAAO,MAAAC,EAAO,aAAAC,CAAY,EAAI,CAExD,OADsB,OAAOA,GAAiB,UAAYA,EAAeD,EAAM,eAIhEE,EAAgB,CAAE,MAAOH,GAASC,EAAM,aAAc,MAAAA,CAAK,CAAE,EAC9D,QAAU,6BAHf,4BAIX,CACA,SAASG,EAAwBH,EAAOI,EAAa,CACnD,OAAON,EAAiB,CACtB,MAAOE,EAAM,OAAOA,EAAM,YAAY,EAAEK,EAAgBL,EAAOI,CAAW,CAAC,EAC3E,MAAAJ,EACA,aAAc,IAClB,CAAG,CACH,CCNA,SAASM,EAAqB,CAC5B,WAAAC,EACA,OAAAC,EACA,MAAAC,EACA,UAAAC,CACF,EAAG,CACD,MAAMV,EAAQW,IACd,MAAO,CACL,mBAAoBC,EAAkB,CACpC,MAAAZ,EACA,WAAAO,EACA,MAAAE,EACA,UAAWC,GAAa,MAC9B,CAAK,EACD,eAAgBG,EAAc,CAC5B,MAAAb,EACA,OAAAQ,EACA,MAAAC,EACA,UAAWC,GAAa,MAC9B,CAAK,CACL,CACA,CChCA,SAASI,EAAqBb,EAAcD,EAAO,CACjD,OAAO,OAAOC,GAAiB,UAAYA,EAAeD,EAAM,YAClE","x_google_ignoreList":[0,1,2]}