{"version":3,"file":"CzVScWzL.js","sources":["../../../../core/helpers/assets.ts"],"sourcesContent":["import { illustrationsSet } from \"@/layouts/default-layout/config/helper\";\nimport { useThemeStore } from \"@/stores/theme\";\n\nexport const getIllustrationsPath = (illustrationName: string): string => {\n const extension = illustrationName.substring(\n illustrationName.lastIndexOf(\".\"),\n illustrationName.length\n );\n const illustration =\n useThemeStore().mode == \"dark\"\n ? `${illustrationName.substring(\n 0,\n illustrationName.lastIndexOf(\".\")\n )}-dark`\n : illustrationName.substring(0, illustrationName.lastIndexOf(\".\"));\n return (\n `/media/illustrations/${illustrationsSet.value}/${illustration}${extension}`\n );\n};\n\nexport const getAssetPath = (path: string): string => {\n return path.startsWith('/') ? path : '/' + path;\n};\n"],"names":["getIllustrationsPath","illustrationName","extension","illustration","useThemeStore","illustrationsSet","getAssetPath","path"],"mappings":"yCAGa,MAAAA,EAAwBC,GAAqC,CACtE,MAAMC,EAAYD,EAAiB,UAC/BA,EAAiB,YAAY,GAAG,EAChCA,EAAiB,MAAA,EAEfE,EACFC,IAAgB,MAAQ,OAClB,GAAGH,EAAiB,UAClB,EACAA,EAAiB,YAAY,GAAG,CAAA,CACnC,QACCA,EAAiB,UAAU,EAAGA,EAAiB,YAAY,GAAG,CAAC,EACzE,MACI,wBAAwBI,EAAiB,KAAK,IAAIF,CAAY,GAAGD,CAAS,EAElF,EAEaI,EAAgBC,GAClBA,EAAK,WAAW,GAAG,EAAIA,EAAO,IAAMA"}