{"version":3,"file":"virtual_main.js","sources":["theme-14/virtual:init-settings","theme-14/virtual:theme","theme-14/discourse/initializers/theme-field-520-common-html-script-1.js","theme-14/virtual:main"],"sourcesContent":["import { registerSettings } from \"discourse/lib/theme-settings-store\";\n\nregisterSettings(14, {});\n","import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(14);\n\nexport function themePrefix(key) {\n  return `theme_translations.14.${key}`;\n}\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\nimport deprecated from \"discourse/lib/deprecated\";\n\nexport default {\n  name: \"theme-field-520-common-html-script-1\",\n  after: \"inject-objects\",\n\n  initialize() {\n    deprecated(\n      \"Adding JS code using <script type='text/discourse-plugin'> is deprecated. Move this code to a dedicated JavaScript file.\",\n      {\n        id: \"discourse.script-tag-discourse-plugin\",\n        url: \"https://meta.discourse.org/t/366482\",\n      }\n    )\n    withPluginApi(\"0.8\", (api) => {\n      \n  const themeSelector = require('discourse/lib/theme-selector');\n  const currentThemeId = themeSelector.currentThemeId();\n  document.body.dataset.themeId = currentThemeId;\n\n    });\n  }\n};\n","import \"virtual:init-settings\";\n\nconst themeCompatModules = {};\nimport * as Mod1 from \"./discourse/initializers/theme-field-520-common-html-script-1\";\nthemeCompatModules[\"discourse/initializers/theme-field-520-common-html-script-1\"] = Mod1;\n\nexport default themeCompatModules;\n"],"names":["registerSettings","getObjectForTheme","themeField520CommonHtmlScript1","name","after","initialize","deprecated","id","url","withPluginApi","api","currentThemeId","require","document","body","dataset","themeId","themeCompatModules","Mod1"],"mappings":";AAEAA,EAAiB,GAAI,CAAA,GCAGC,EAAkB;ACC1C,IAAAC,EAAe,CACbC,KAAM,uCACNC,MAAO,iBAEPC,UAAAA,GACEC,EACE,2HACA,CACEC,GAAI,wCACJC,IAAK,wCAGTC,EAAc,MAAQC,IAExB,MACMC,EADgBC,QAAQ,gCACOD;AACrCE,SAASC,KAAKC,QAAQC,QAAUL,GAGhC;ACpBG,MAACM,EAAqB,CAAA;AAE3BA,EAAmB,+DAAiEC;"}