{"version":3,"file":"virtual_main.js","sources":["theme-2/virtual:init-settings","theme-2/virtual:theme","theme-2/discourse/templates/components/latest-topic-list-item.hbs","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  \"show_author_username\": false\n});\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","\n  <div class='topic-poster'>\n    {{#user-link user=topic.creator}}\n    {{avatar topic.creator imageSize=\"large\"}}\n    {{/user-link}}\n  </div>\n  <div class='main-link'>\n    <div class='top-row'>\n      {{raw \"topic-status\" topic=topic}}\n      {{topic-link topic}}\n      {{#if topic.featured_link}}\n        {{topic-featured-link topic}}\n      {{/if}}\n      {{topic-post-badges newPosts=topic.totalUnread unseen=topic.unseen url=topic.lastUnreadUrl}}\n    </div>\n    <div class='bottom-row'>\n      {{category-link topic.category}}\n      {{discourse-tags topic mode=\"list\"}}\n    </div>\n  </div>\n  <div class='topic-stats'>\n    {{raw \"list/posts-count-column\" topic=topic tagName=\"div\"}}\n    <div class=\"topic-last-activity\">\n      <a href=\"{{topic.lastPostUrl}}\" title=\"{{topic.bumpedAtTitle}}\">{{format-date topic.bumpedAt format=\"tiny\" noTitle=\"true\"}}</a>\n    </div>\n  </div>\n","import deprecated from \"discourse/lib/deprecated\";\n\nexport default {\n  initialize(){\n    const names = [\"components/latest-topic-list-item\"];\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/list/topic-list-item.raw] Raw templates are no longer supported\",\"[THEME 2] [discourse/templates/topic-list-header.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/templates/components/latest-topic-list-item\";\nthemeCompatModules[\"discourse/templates/components/latest-topic-list-item\"] = Mod1;\n\nimport * as Mod2 from \"./discourse/initializers/script-tag-hbs-deprecations\";\nthemeCompatModules[\"discourse/initializers/script-tag-hbs-deprecations\"] = Mod2;\n\nexport default themeCompatModules;\n"],"names":["registerSettings","show_author_username","getObjectForTheme","latestTopicListItem","createTemplateFactory","id","block","moduleName","scope","tryLookupHelper","thisFallbackHelper","deprecationsHelper","isStrictMode","scriptTagHbsDeprecations","initialize","forEach","name","deprecated","url","error","console","themeCompatModules","Mod1","Mod2"],"mappings":";AAEAA,EAAiB,EAAG,CAClBC,sBAAwB,ICDFC,EAAkB;ACA5B,IAAAC,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,uhTAAAC,WAAA,oEAAAC,MAAAA,IAAA,CAAAC,EAAAC,EAAAC,GAAAC,cAAA,gDCAdC,EAAe,CACbC,UAAAA,GACgB,CAAC,qCACTC,QAASC,IACbC,EACE,IAAID,8HACJ,CACEX,GAAI,2BACJa,IAAK,0CAII,CAAC,iGAAiG,+FAC1GH,QAASI,GAAUC,QAAQD,MAAMA,GAC1C;ACdG,MAACE,EAAqB,CAAA;AAE3BA,EAAmB,yDAA2DC,EAG9ED,EAAmB,sDAAwDE;"}