{"version":3,"file":"virtual_main.js","sources":["theme-2/virtual:init-settings","theme-2/virtual:theme","theme-2/discourse/initializers/script-tag-hbs-deprecations.js","theme-2/virtual:main"],"sourcesContent":["import { registerSettings } from \"discourse/lib/theme-settings-store\";\n\nregisterSettings(2, {});\n","import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(2);\n\nexport function themePrefix(key) {\n  return `theme_translations.2.${key}`;\n}\n","import deprecated from \"discourse/lib/deprecated\";\n\nexport default {\n  initialize(){\n    const names = [];\n    names.forEach((name) => {\n      deprecated(\n        `[${name}] adding templates to a theme using <script type='text/x-handlebars'> is deprecated. Move to dedicated .hbs or .gjs files.`,\n        {\n          id: \"discourse.script-tag-hbs\",\n          url: \"https://meta.discourse.org/t/366482\",\n        }\n      )\n    });\n    const errors = [\"[THEME 2] [discourse/templates/topic-list-header.raw] Raw templates are no longer supported\",\"[THEME 2] [discourse/templates/list/topic-list-item.raw] Raw templates are no longer supported\"];\n    errors.forEach((error) => console.error(error));\n  }\n}\n","import \"virtual:init-settings\";\n\nconst themeCompatModules = {};\nimport * as Mod1 from \"./discourse/initializers/script-tag-hbs-deprecations\";\nthemeCompatModules[\"discourse/initializers/script-tag-hbs-deprecations\"] = Mod1;\n\nexport default themeCompatModules;\n"],"names":["registerSettings","getObjectForTheme","scriptTagHbsDeprecations","initialize","forEach","name","deprecated","id","url","error","console","themeCompatModules","Mod1"],"mappings":";AAEAA,EAAiB,EAAG,CAAA,GCAIC,EAAkB;ACA1C,IAAAC,EAAe,CACbC,UAAAA,GACgB,GACRC,QAASC,IACbC,EACE,IAAID,8HACJ,CACEE,GAAI,2BACJC,IAAK,0CAII,CAAC,8FAA8F,kGACvGJ,QAASK,GAAUC,QAAQD,MAAMA,GAC1C;ACdG,MAACE,EAAqB,CAAA;AAE3BA,EAAmB,sDAAwDC;"}