{"version":3,"file":"virtual_main.js","sources":["theme-48/virtual:init-settings","theme-48/virtual:theme","theme-48/discourse/api-initializers/theme-initializer.gjs","theme-48/virtual:main"],"sourcesContent":["import { registerSettings } from \"discourse/lib/theme-settings-store\";\n\nregisterSettings(48, {});\n","import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(48);\n\nexport function themePrefix(key) {\n  return `theme_translations.48.${key}`;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\nimport Component from \"@glimmer/component\";\nimport { service } from \"@ember/service\";\nimport { htmlSafe } from \"@ember/template\";\n\nexport default apiInitializer((api) => {\n  \n  class AnonReadOnlyBanner extends Component {\n    @service currentUser;\n    @service discovery;\n    @service router;\n\n    get category() {\n      return (\n        this.discovery?.category ??\n        this.args.outletArgs?.category ??\n        this.router.currentRoute?.attributes?.category\n      );\n    }\n\n    get banner() {\n      if (this.currentUser) {\n        return null;\n      }\n      const text = this.category?.read_only_banner;\n      return text ? htmlSafe(text) : null;\n    }\n\n    <template>\n      {{#if this.banner}}\n        <div class=\"row\">\n          <div class=\"alert alert-info category-read-only-banner\">\n            {{this.banner}}\n          </div>\n        </div>\n      {{/if}}\n    </template>\n  }\n\n  api.renderInOutlet(\"above-main-container\", AnonReadOnlyBanner);\n});","import \"virtual:init-settings\";\n\nconst themeCompatModules = {};\nimport * as Mod1 from \"./discourse/api-initializers/theme-initializer\";\nthemeCompatModules[\"discourse/api-initializers/theme-initializer\"] = Mod1;\n\nexport default themeCompatModules;\n"],"names":["registerSettings","getObjectForTheme","themeInitializer","apiInitializer","api","AnonReadOnlyBanner","Component","static","dt7948","g","this","prototype","service","currentUser","i","discovery","router","category","args","outletArgs","currentRoute","attributes","banner","text","read_only_banner","htmlSafe","setComponentTemplate","createTemplateFactory","id","block","moduleName","isStrictMode","renderInOutlet","themeCompatModules","Mod1"],"mappings":";AAEAA,EAAiB,GAAI,CAAA,GCAGC,EAAkB;ACG1C,IAAAC,EAAeC,EAAgBC,IAE7B,MAAMC,UAA2BC,EAAAC,cAAAC,OAAAC,EAAAC,KAAAC,yBAC9BC;AAAAC,GAAA,MAAAL,OAAAM,qBAAA,EAAA;AAAAP,cAAAC,OAAAC,EAAAC,KAAAC,uBACAC;AAAAG,GAAA,MAAAP,OAAAM,mBAAA,EAAA;AAAAP,cAAAC,OAAAC,EAAAC,KAAAC,oBACAC;AAAAI,GAAA,MAAAR,OAAAM,gBAAA,EAAA;AAED,YAAIG,GACF,OACEP,KAAKK,WAAWE,UAChBP,KAAKQ,KAAKC,YAAYF,UACtBP,KAAKM,OAAOI,cAAcC,YAAYJ,QAE1C,CAEA,UAAIK,GACF,GAAIZ,KAAKG,YACP,OAAO;AAET,MAAMU,EAAOb,KAAKO,UAAUO;AAC5B,OAAOD,EAAOE,EAASF,GAAQ,IACjC,CAAAhB,SAAA,KAAAmB,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,gTAAAC,WAAA,6DAAAC,cAAA,IAUArB,MAVA,GAaFN,EAAI4B,eAAe,uBAAwB3B;ACrCxC,MAAC4B,EAAqB,CAAA;AAE3BA,EAAmB,gDAAkDC;"}