{"version":3,"file":"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:entrypoint: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","\n<div class='topic-poster'>\n  {{#user-link user=topic.lastPoster class=\"mobile-homepage-avatar\" classNames=topic.lastPoster.extraClasses}}\n    {{avatar topic.lastPosterUser 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/mobile/list/topic-list-item.raw] Raw templates are no longer supported\"];\n    errors.forEach((error) => console.error(error));\n  }\n}\n","const compatModules = {};import \"virtual:init-settings\";\nimport * as Mod1 from \"./discourse/templates/components/latest-topic-list-item\";\ncompatModules[\"discourse/templates/components/latest-topic-list-item\"] = Mod1;\n\nexport * as discourse$templates$components$latest__topic__list__item$$__module from \"./discourse/templates/components/latest-topic-list-item\";\nexport {\ndefault as discourse$templates$components$latest__topic__list__item$$default\n} from \"./discourse/templates/components/latest-topic-list-item\";\nimport * as Mod2 from \"./discourse/initializers/script-tag-hbs-deprecations\";\ncompatModules[\"discourse/initializers/script-tag-hbs-deprecations\"] = Mod2;\n\nexport * as discourse$initializers$script__tag__hbs__deprecations$$__module from \"./discourse/initializers/script-tag-hbs-deprecations\";\nexport {\ndefault as discourse$initializers$script__tag__hbs__deprecations$$default\n} from \"./discourse/initializers/script-tag-hbs-deprecations\";\nexport default compatModules;\n"],"names":["registerSettings","getObjectForTheme","latestTopicListItem","createTemplateFactory","id","block","moduleName","scope","tryLookupHelper","thisFallbackHelper","deprecationsHelper","isStrictMode","deprecated","url","scriptTagHbsDeprecations","initialize","forEach","name","error","console","compatModules","Mod1","Mod2"],"mappings":";AAEAA,EAAiB,EAAG,CAAA,GCAIC,EAAkB;ACA5B,IAAAC,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,0lUAAAC,WAAA,oEAAAC,MAAAA,IAAA,CAAAC,EAAAC,EAAAC,GAAAC,cAAA;AAGAC,EACE,sJACA,CACER,GAAI,0BACJS,IAAK;gDCPvBC,EAAe,CACbC,UAAAA,GACgB,CAAC,qCACTC,QAASC,IACbL,EACE,IAAIK,8HACJ,CACEb,GAAI,2BACJS,IAAK,0CAII,CAAC,yGACTG,QAASE,GAAUC,QAAQD,MAAMA,GAC1C;AChBG,MAACE,EAAgB,CAAA;AAEtBA,EAAc,yDAA2DC,EAOzED,EAAc,sDAAwDE;"}