{"version":3,"file":"/Users/anthonygubler/development/dojo-org/parade/src/utils.ts","sourceRoot":"","sources":["../node_modules/@dojo/webpack-contrib/css-module-dts-loader/index.js?type=ts&instanceName=0_custom-elements!/Users/anthonygubler/development/dojo-org/parade/src/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAChD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvD,MAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,UAAU,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC5F,OAAO,KAAK,CAAC;AACd,CAAC","sourcesContent":["import { Config, ConfigThemes } from '.';\n\nexport function getThemeFromConfig(config: Config): ConfigThemes {\n\tconst { searchParams } = new URL(window.location.href);\n\tconst themeParam = searchParams.get('theme');\n\tconst theme = config.themes.find((theme) => theme.label === themeParam) || config.themes[0];\n\treturn theme;\n}\n"]}