{"version":3,"file":"main.DDGwZ3.js","sources":["theme-29/virtual:theme","theme-29/discourse/lib/setting-category-id.js","theme-29/discourse/api-initializers/hide-reactions.gjs","theme-29/discourse/blocks/block-card-champion.gjs","theme-29/discourse/blocks/block-card-cta.gjs","theme-29/discourse/components/category-card.gjs","theme-29/discourse/blocks/block-featured-categories.gjs","theme-29/discourse/blocks/block-featured-list.gjs","theme-29/discourse/blocks/block-featured-topics.gjs","theme-29/discourse/blocks/block-leaderboard.gjs","theme-29/discourse/blocks/block-section-heading.gjs","theme-29/discourse/lib/leaderboard-config.js","theme-29/discourse/api-initializers/homepage-blocks.gjs","theme-29/discourse/api-initializers/hubspot-theme.gjs","theme-29/discourse/components/custom-new-topic-button.gjs","theme-29/discourse/blocks/block-banner.gjs","theme-29/discourse/blocks/block-category-banner.gjs","theme-29/discourse/blocks/block-extra-banner.gjs","theme-29/discourse/blocks/block-tag-banner.gjs","theme-29/discourse/lib/category-url.js","theme-29/discourse/api-initializers/main-outlet-blocks.gjs","theme-29/discourse/api-initializers/override-create-topic-labels.gjs","theme-29/discourse/api-initializers/override-similar-topic-suggestion.gjs","theme-29/discourse/api-initializers/show-translated-post-original-language.gjs","theme-29/discourse/blocks/block-champions-leaderboard.gjs","theme-29/discourse/blocks/block-post-status.gjs","theme-29/discourse/blocks/block-recent-deliveries.gjs","theme-29/discourse/blocks/block-resource-links.gjs","theme-29/discourse/lib/category-scope.js","theme-29/discourse/api-initializers/sidebar-discovery-blocks.gjs","theme-29/discourse/blocks/block-category-topics.gjs","theme-29/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(29);\n\nexport function themePrefix(key) {\n  return `theme_translations.29.${key}`;\n}\n","// Category picker settings store a pipe-separated list; only the first pick is used.\nexport default function settingCategoryId(value) {\n  return parseInt(value?.split(\"|\")[0], 10) || null;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\nimport settingCategoryId from \"../lib/setting-category-id\";\n\nexport default apiInitializer((api) => {\n  const ideasCategoryId = settingCategoryId(settings.ideas_category);\n\n  if (!ideasCategoryId) {\n    return;\n  }\n\n  api.registerValueTransformer(\n    \"post-menu-buttons\",\n    ({ value: dag, context: { post, buttonKeys } }) => {\n      const categoryId = post.topic?.category_id;\n\n      if (categoryId !== ideasCategoryId) {\n        return;\n      }\n\n      dag.delete(buttonKeys.LIKE);\n      dag.delete(\"discourse-reactions-actions\");\n    }\n  );\n});\n","import Component from \"@glimmer/component\";\nimport { htmlSafe } from \"@ember/template\";\nimport { block } from \"discourse/blocks\";\nimport dIcon from \"discourse/helpers/d-icon\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:card-champion\", {\n  description: \"A champion highlight card with background image\",\n  args: {\n    champion: { type: \"object\", default: {} },\n    badge: { type: \"string\" },\n    badgeIcon: { type: \"string\", default: \"award\" },\n    description: { type: \"string\" },\n    linkText: { type: \"string\" },\n  },\n})\nexport default class BlockCardChampion extends Component {\n  get hasImage() {\n    return this.args.champion?.image?.trim().length > 0;\n  }\n\n  get linkUrl() {\n    return this.args.champion?.topic_url || \"#\";\n  }\n\n  get backgroundStyle() {\n    const url = encodeURI(this.args.champion?.image ?? \"\");\n    return htmlSafe(`background-image: url(${url});`);\n  }\n\n  <template>\n    <div class=\"block-card-champion__layout\">\n      {{#if this.hasImage}}\n        <div\n          class=\"block-card-champion__background\"\n          style={{this.backgroundStyle}}\n        ></div>\n      {{/if}}\n      <div class=\"block-card-champion__overlay\"></div>\n\n      <div class=\"block-card-champion__content\">\n        {{#if @badge}}\n          <div class=\"block-card-champion__badge\">\n            {{#if @badgeIcon}}\n              {{dIcon @badgeIcon}}\n            {{/if}}\n            {{i18n (themePrefix @badge)}}\n          </div>\n        {{/if}}\n\n        {{#if @champion.name}}\n          <h2 class=\"block-card-champion__name\">\n            {{@champion.name}}\n          </h2>\n        {{/if}}\n\n        {{#if @description}}\n          <p class=\"block-card-champion__description\">\n            {{i18n (themePrefix @description)}}\n          </p>\n        {{/if}}\n\n        <a href={{this.linkUrl}} class=\"block-card-champion__link\">\n          {{i18n (themePrefix @linkText)}}\n          {{dIcon \"arrow-right\"}}\n        </a>\n      </div>\n    </div>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { block } from \"discourse/blocks\";\nimport icon from \"discourse/helpers/d-icon\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:card-cta\", {\n  description: \"CTA card block\",\n  args: {\n    icon: { type: \"string\" },\n    title: { type: \"string\" },\n    description: { type: \"string\" },\n    linkUrl: { type: \"string\" },\n    linkText: { type: \"string\" },\n    external: { type: \"boolean\", default: false },\n  },\n})\nexport default class BlockCardCta extends Component {\n  <template>\n    <div class=\"block-card-cta block-card-cta__layout\">\n\n      {{#if @title}}\n        <div class=\"block-card-cta__header\">\n          {{#if @icon}}\n            <div class=\"block-card-cta__icon-wrapper\">\n              {{icon @icon class=\"block-card-cta__icon\"}}\n            </div>\n          {{/if}}\n          <h5 class=\"block-card-cta__heading\">{{i18n (themePrefix @title)}}</h5>\n        </div>\n      {{/if}}\n\n      {{#if @description}}\n        <div class=\"block-card-cta__content\">\n          <p class=\"block-card-cta__description\">\n            {{i18n (themePrefix @description)}}\n          </p>\n        </div>\n      {{/if}}\n\n      {{#if @linkUrl}}\n        <div class=\"block-card-cta__footer\">\n          {{#if @external}}\n            <a\n              href={{@linkUrl}}\n              class=\"block-card-cta__link\"\n              target=\"_blank\"\n              rel=\"noopener noreferrer\"\n            >{{i18n (themePrefix @linkText)}}\n              {{icon \"arrow-right\"}}</a>\n          {{else}}\n            <a href={{@linkUrl}} class=\"block-card-cta__link\">{{i18n\n                (themePrefix @linkText)\n              }}\n              {{icon \"arrow-right\"}}</a>\n          {{/if}}\n        </div>\n      {{/if}}\n\n    </div>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { concat } from \"@ember/helper\";\nimport { htmlSafe } from \"@ember/template\";\nimport dIcon from \"discourse/helpers/d-icon\";\nimport replaceEmoji from \"discourse/helpers/replace-emoji\";\n\n/**\n * Reusable category card UI.\n *\n * @component CategoryCard\n * @param {object} category - Discourse category model\n * @param {string} [href] - Optional URL to render the card as a link\n * @param {boolean} [showDescription] - Show description text\n * @param {string} [description] - Description HTML/text\n * @param {string} [class] - Extra CSS classes for layout wrapper\n */\nexport default class CategoryCard extends Component {\n  formatEmoji(emoji) {\n    return emoji?.startsWith(\":\") ? emoji : `:${emoji}:`;\n  }\n\n  get logoStyle() {\n    return htmlSafe(`color: #${this.args.category.color};`);\n  }\n\n  get logoSquareStyle() {\n    if (!this.args.category?.color) {\n      return htmlSafe(\"background-color: var(--primary);\");\n    }\n\n    return htmlSafe(`background-color: #${this.args.category.color};`);\n  }\n\n  <template>\n    {{#if @href}}\n      <a class={{concat \"category-card__layout \" @class}} href={{@href}}>\n        <div class=\"category-card__logo\" style={{this.logoStyle}}>\n          {{#if @category.icon}}\n            {{dIcon @category.icon}}\n          {{else if @category.emoji}}\n            {{htmlSafe (replaceEmoji (this.formatEmoji @category.emoji))}}\n          {{else}}\n            <span\n              class=\"category-card__logo-square\"\n              style={{this.logoSquareStyle}}\n            ></span>\n          {{/if}}\n        </div>\n\n        <div class=\"category-card__details\">\n          <h3 class=\"category-card__name\">{{@category.name}}</h3>\n\n          {{#if @showDescription}}\n            <span class=\"category-card__description\">{{htmlSafe\n                @description\n              }}</span>\n          {{/if}}\n        </div>\n      </a>\n    {{else}}\n      <div class={{concat \"category-card__layout \" @class}}>\n        <div class=\"category-card__logo\" style={{this.logoStyle}}>\n          {{#if @category.icon}}\n            {{dIcon @category.icon}}\n          {{else if @category.emoji}}\n            {{htmlSafe (replaceEmoji (this.formatEmoji @category.emoji))}}\n          {{else}}\n            <span\n              class=\"category-card__logo-square\"\n              style={{this.logoSquareStyle}}\n            ></span>\n          {{/if}}\n        </div>\n\n        <div class=\"category-card__details\">\n          <h3 class=\"category-card__name\">{{@category.name}}</h3>\n\n          {{#if @showDescription}}\n            <span class=\"category-card__description\">{{htmlSafe\n                @description\n              }}</span>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { cached } from \"@glimmer/tracking\";\nimport { block } from \"discourse/blocks\";\nimport Category from \"discourse/models/category\";\nimport CategoryCard from \"../components/category-card\";\n\n@block(\"theme:hubspot:featured-categories\", {\n  description: \"Displays a grid of featured category cards\",\n  args: {\n    categories: { type: \"string\", default: \"\" },\n  },\n})\nexport default class BlockFeaturedCategories extends Component {\n  @cached\n  get featuredCategories() {\n    const ids = this.args.categories?.split(\"|\").filter(Boolean) || [];\n\n    return ids.map((id) => Category.findById(Number(id))).filter(Boolean);\n  }\n\n  <template>\n    <div class=\"block-featured-categories__layout\">\n      {{#each this.featuredCategories as |category|}}\n        <CategoryCard @category={{category}} @href={{category.url}} />\n      {{/each}}\n    </div>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { block } from \"discourse/blocks\";\nimport BasicTopicList from \"discourse/components/basic-topic-list\";\nimport icon from \"discourse/helpers/d-icon\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:featured-list\", {\n  description: \"Displays the latest topics from the homepage model\",\n  args: {\n    title: { type: \"string\" },\n    linkUrl: { type: \"string\" },\n    linkText: { type: \"string\" },\n    showPosters: { type: \"boolean\", default: true },\n  },\n})\nexport default class BlockFeaturedList extends Component {\n  get topics() {\n    return this.args.outletArgs?.model?.latest;\n  }\n\n  <template>\n    {{#if this.topics}}\n      <div class=\"block-featured-list__layout\">\n        {{#if @title}}\n          <div class=\"block-featured-list__header\">\n            <span class=\"block-featured-list__title\">\n              {{i18n (themePrefix @title)}}\n            </span>\n          </div>\n        {{/if}}\n        <BasicTopicList\n          @topics={{this.topics}}\n          @showPosters={{@showPosters}}\n          class=\"block-featured-list__topic-list\"\n        />\n        {{#if @linkUrl}}\n          <a class=\"btn-default block-featured-list__link\" href={{@linkUrl}}>\n            {{i18n (themePrefix @linkText)}}\n            {{icon \"arrow-right\"}}\n          </a>\n        {{/if}}\n      </div>\n    {{/if}}\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { concat } from \"@ember/helper\";\nimport { htmlSafe } from \"@ember/template\";\nimport { block } from \"discourse/blocks\";\nimport AsyncContent from \"discourse/components/async-content\";\nimport categoryBadge from \"discourse/helpers/category-badge\";\nimport { bind } from \"discourse/lib/decorators\";\nimport Category from \"discourse/models/category\";\nimport Topic from \"discourse/models/topic\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:featured-topics\", {\n  description: \"Displays featured topics from theme settings\",\n  args: {\n    topics: { type: \"array\", default: [] },\n  },\n})\nexport default class BlockFeaturedTopics extends Component {\n  #topicsPromise;\n\n  @bind\n  async fetchTopics() {\n    this.#topicsPromise ??= this.#resolveTopics();\n    return this.#topicsPromise;\n  }\n\n  async #resolveTopics() {\n    const entries = this.args?.topics;\n\n    if (!entries?.length) {\n      return null;\n    }\n\n    const results = await Promise.all(\n      entries.map(async (entry) => {\n        try {\n          const topicId = this.#parseTopicId(entry.topic_url);\n          if (!topicId) {\n            return null;\n          }\n          const topic = await Topic.find(topicId, {});\n          const firstPost = topic.post_stream?.posts?.[0];\n          const excerpt = this.#extractExcerpt(firstPost?.cooked);\n          return {\n            id: topic.id,\n            slug: topic.slug,\n            fancy_title: topic.fancy_title,\n            excerpt,\n            category: Category.findById(topic.category_id),\n            last_read_post_number: topic.last_read_post_number,\n            imageUrl: entry.image || null,\n            href:\n              entry.tracking_url ||\n              `/t/${topic.slug}/${topic.id}/${topic.last_read_post_number}`,\n          };\n        } catch {\n          return null;\n        }\n      })\n    );\n\n    const filtered = results.filter(Boolean);\n    return filtered.length ? filtered : null;\n  }\n\n  #parseTopicId(url) {\n    if (!url) {\n      return null;\n    }\n    const match = url.match(/\\/[tn]\\/[^/]+\\/(\\d+)/);\n    return match ? match[1] : null;\n  }\n\n  #extractExcerpt(cooked, maxLength = 300) {\n    if (!cooked) {\n      return null;\n    }\n    const div = document.createElement(\"div\");\n    div.innerHTML = cooked;\n    const text = div.textContent?.trim();\n    if (!text) {\n      return null;\n    }\n    return text.length > maxLength\n      ? `${text.substring(0, maxLength)}&hellip;`\n      : text;\n  }\n\n  <template>\n    <AsyncContent @asyncData={{this.fetchTopics}}>\n      <:loading>\n        <div class=\"block-featured-topics__loading\">\n          <div class=\"spinner\"></div>\n        </div>\n      </:loading>\n\n      <:empty>\n        <div class=\"block-featured-topics__empty\">\n          {{i18n \"topics.none.latest\"}}\n        </div>\n      </:empty>\n\n      <:content as |topics|>\n        <div class=\"block-featured-topics__container\">\n          <div class=\"block-featured-topics__layout\">\n            {{#each topics as |topic|}}\n              <a class=\"block-featured-topics__topic-card\" href={{topic.href}}>\n                {{#if topic.imageUrl}}\n                  <div\n                    class=\"block-featured-topics__background\"\n                    style={{htmlSafe\n                      (concat \"background-image: url(\" topic.imageUrl \")\")\n                    }}\n                  ></div>\n                  <div class=\"block-featured-topics__overlay\"></div>\n                {{/if}}\n\n                <div class=\"block-featured-topics__topic-details\">\n                  {{#if topic.category}}\n                    <div class=\"topic-category\">{{categoryBadge\n                        topic.category\n                      }}</div>\n                  {{/if}}\n                  <h3 class=\"topic-title\">{{htmlSafe topic.fancy_title}}</h3>\n                  {{#unless topic.imageUrl}}\n                    {{#if topic.excerpt}}\n                      <p class=\"topic-excerpt\">{{htmlSafe topic.excerpt}}</p>\n                    {{/if}}\n                  {{/unless}}\n                </div>\n              </a>\n            {{/each}}\n          </div>\n        </div>\n      </:content>\n    </AsyncContent>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { concat } from \"@ember/helper\";\nimport { service } from \"@ember/service\";\nimport { block } from \"discourse/blocks\";\nimport AsyncContent from \"discourse/components/async-content\";\nimport avatar from \"discourse/helpers/avatar\";\nimport dIcon from \"discourse/helpers/d-icon\";\nimport number from \"discourse/helpers/number\";\nimport { ajax } from \"discourse/lib/ajax\";\nimport { bind } from \"discourse/lib/decorators\";\nimport { or } from \"discourse/truth-helpers\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:leaderboard\", {\n  description: \"Displays a gamification leaderboard\",\n  args: {\n    leaderboardId: { type: \"number\" },\n    count: { type: \"number\", default: 10 },\n    title: { type: \"string\" },\n    avatar: { type: \"string\", default: \"medium\" },\n    icon: { type: \"string\" },\n    illustration: { type: \"string\", default: \"collaboration\" },\n    buttonLabel: { type: \"string\", required: true },\n  },\n})\nexport default class BlockLeaderboard extends Component {\n  @service siteSettings;\n\n  get avatarSize() {\n    return this.args?.avatar || \"medium\";\n  }\n\n  @bind\n  async fetchLeaderboard() {\n    const count = this.args?.count || 10;\n    const leaderboardId = this.args?.leaderboardId || null;\n    const endpoint = leaderboardId\n      ? `/leaderboard/${leaderboardId}`\n      : \"/leaderboard\";\n\n    const model = await ajax(endpoint, { data: { user_limit: count } });\n\n    return {\n      leaderboard: model.leaderboard,\n      users: model.users || [],\n      leaderboardName: this.args?.title\n        ? i18n(themePrefix(this.args.title))\n        : model.leaderboard?.name,\n    };\n  }\n\n  <template>\n    <AsyncContent @asyncData={{this.fetchLeaderboard}}>\n      <:loading>\n        <div class=\"block-leaderboard__loading\">\n          <div class=\"spinner\"></div>\n        </div>\n      </:loading>\n\n      <:content as |data|>\n        <div class=\"block-leaderboard__layout\">\n\n          <div class=\"block-leaderboard__header\">\n            <div\n              class={{concat\n                \"block-leaderboard__image block-leaderboard__image--\"\n                @illustration\n              }}\n            ></div>\n\n            <h5 class=\"block-leaderboard__title\">\n              {{data.leaderboardName}}\n            </h5>\n          </div>\n\n          <div class=\"block-leaderboard__list\">\n            <div class=\"block-leaderboard__list-body\">\n              {{#each data.users as |rank|}}\n                <div class=\"user__row\" id=\"leaderboard-user-{{rank.id}}\">\n                  <div\n                    class=\"user__avatar clickable\"\n                    role=\"button\"\n                    data-user-card={{rank.username}}\n                  >\n                    {{avatar rank imageSize=this.avatarSize}}\n                    <span class=\"user__name\">\n                      {{#if this.siteSettings.prioritize_username_in_ux}}\n                        {{rank.username}}\n                      {{else}}\n                        {{or rank.name rank.username}}\n                      {{/if}}\n                    </span>\n                  </div>\n                  <div class=\"user__score\">\n                    {{number rank.total_score}}\n                    {{#if @icon}}{{dIcon @icon}}{{/if}}\n                  </div>\n                </div>\n              {{/each}}\n            </div>\n          </div>\n\n          <div class=\"block-leaderboard__footer\">\n            <a\n              href=\"/leaderboard/{{data.leaderboard.id}}\"\n              class=\"block-leaderboard__link\"\n            >{{i18n (themePrefix @buttonLabel)}}\n              {{dIcon \"arrow-right\"}}</a>\n          </div>\n        </div>\n      </:content>\n    </AsyncContent>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { block } from \"discourse/blocks\";\nimport icon from \"discourse/helpers/d-icon\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:section-heading\", {\n  description: \"A section heading with optional action button\",\n  args: {\n    title: { type: \"string\", required: true },\n    linkUrl: { type: \"string\" },\n    linkText: { type: \"string\" },\n    modifier: { type: \"string\" },\n    icon: { type: \"string\" },\n  },\n})\nexport default class BlockSectionHeading extends Component {\n  get modifier() {\n    return this.args.modifier ? `--${this.args.modifier}` : \"\";\n  }\n\n  <template>\n    <div\n      class=\"block-section-heading__layout block-section-heading__layout{{this.modifier}}\"\n    >\n      <h2\n        class=\"block-section-heading__title block-section-heading__title{{this.modifier}}\"\n      >\n        {{#if @icon}}\n          {{icon\n            @icon\n            class=\"block-section-heading__icon block-section-heading__icon{{this.modifier}}\"\n          }}\n        {{/if}}\n        {{i18n (themePrefix @title)}}\n      </h2>\n      {{#if @linkUrl}}\n        <a\n          href={{@linkUrl}}\n          class=\"block-section-heading__link block-section-heading__link{{this.modifier}}\"\n        >{{i18n (themePrefix @linkText)}}\n          {{icon \"arrow-right\"}}</a>\n      {{/if}}\n    </div>\n  </template>\n}\n","// The `leaderboards` setting entry for the given key, or {} when it's missing.\nexport default function leaderboardConfig(key) {\n  return (settings.leaderboards || []).find((l) => l.key === key) || {};\n}\n","import BlockGroup from \"discourse/blocks/builtin/block-group\";\nimport { apiInitializer } from \"discourse/lib/api\";\nimport BlockCardChampion from \"../blocks/block-card-champion\";\nimport BlockCardCta from \"../blocks/block-card-cta\";\nimport BlockFeaturedCategories from \"../blocks/block-featured-categories\";\nimport BlockFeaturedList from \"../blocks/block-featured-list\";\nimport BlockFeaturedTopics from \"../blocks/block-featured-topics\";\nimport BlockLeaderboard from \"../blocks/block-leaderboard\";\nimport BlockSectionHeading from \"../blocks/block-section-heading\";\nimport leaderboardConfig from \"../lib/leaderboard-config\";\n\nexport default apiInitializer((api) => {\n  const mostLiked = leaderboardConfig(\"Most-liked\");\n\n  api.renderBlocks(\"homepage-blocks\", [\n    {\n      block: BlockGroup,\n      id: \"latest\",\n      children: [\n        {\n          block: BlockSectionHeading,\n          id: \"latest-heading\",\n          args: {\n            title: \"homepage.latest.heading.title\",\n            linkUrl: \"/latest\",\n            linkText: \"homepage.latest.heading.link_text\",\n          },\n        },\n        {\n          block: BlockFeaturedList,\n          id: \"latest-list\",\n        },\n\n        {\n          block: BlockCardCta,\n          id: \"latest-cta\",\n          args: {\n            icon: \"envelope\",\n            title: \"homepage.latest.cta.title\",\n            description: \"homepage.latest.cta.description\",\n            linkUrl: settings.homepage_newsletter_url,\n            linkText: \"homepage.latest.cta.link_text\",\n            external: true,\n          },\n        },\n        {\n          block: BlockLeaderboard,\n          id: \"latest-members\",\n          args: {\n            leaderboardId: mostLiked.id,\n            icon: mostLiked.icon,\n            illustration: \"heart\",\n            title: \"homepage.latest.members.title\",\n            buttonLabel: \"homepage.latest.members.view_all\",\n            count: 10,\n          },\n        },\n      ],\n    },\n    {\n      block: BlockGroup,\n      id: \"highlight\",\n      children: [\n        {\n          block: BlockSectionHeading,\n          id: \"highlight-heading\",\n          args: {\n            title: \"homepage.highlight.heading.title\",\n            icon: \"lc-sparkles\",\n            modifier: \"highlight\",\n          },\n        },\n        {\n          block: BlockFeaturedTopics,\n          id: \"highlight-topics\",\n          args: {\n            topics: settings.highlight_topics,\n          },\n        },\n\n        {\n          block: BlockCardChampion,\n          id: \"highlight-champion\",\n          args: {\n            champion: settings.highlight_champion?.[0] || {},\n            badge: \"homepage.highlight.champion.badge\",\n            description: \"homepage.highlight.champion.description\",\n            linkText: \"homepage.highlight.champion.link_text\",\n          },\n        },\n        {\n          block: BlockCardCta,\n          id: \"highlight-champion-program\",\n          args: {\n            icon: \"award\",\n            title: \"homepage.highlight.cta.title\",\n            description: \"homepage.highlight.cta.description\",\n            linkUrl: settings.homepage_champions_url,\n            linkText: \"homepage.highlight.cta.link_text\",\n            external: true,\n          },\n        },\n      ],\n    },\n    {\n      block: BlockGroup,\n      id: \"explore\",\n      children: [\n        {\n          block: BlockSectionHeading,\n          id: \"explore-heading\",\n          args: {\n            title: \"homepage.explore.heading.title\",\n            linkUrl: \"/categories\",\n            linkText: \"homepage.explore.heading.link_text\",\n          },\n        },\n        {\n          block: BlockFeaturedCategories,\n          id: \"explore-categories\",\n          args: {\n            categories: settings.homepage_categories,\n          },\n        },\n      ],\n    },\n  ]);\n});\n","import { apiInitializer } from \"discourse/lib/api\";\n\nexport default apiInitializer((api) => {\n  // Homepage model\n  api.registerBehaviorTransformer(\"custom-homepage-model\", async () => {\n    const store = api.container.lookup(\"service:store\");\n\n    const latest = await store\n      .findFiltered(\"topicList\", { filter: \"latest\" })\n      .then((list) => list.topics?.slice(0, 10) ?? null)\n      .catch(() => null);\n\n    return { latest };\n  });\n\n  // Welcome Banner\n  api.registerValueTransformer(\n    \"welcome-banner-display-for-route\",\n    ({ context }) => {\n      const { currentRouteName } = context;\n\n      return currentRouteName === \"discovery.custom\";\n    }\n  );\n});\n","import Component from \"@glimmer/component\";\nimport { action } from \"@ember/object\";\nimport { getOwner } from \"@ember/owner\";\nimport { service } from \"@ember/service\";\nimport DButton from \"discourse/components/d-button\";\nimport Category from \"discourse/models/category\";\n\nexport default class CustomNewTopicButton extends Component {\n  @service composer;\n  @service currentUser;\n  @service site;\n\n  resolveCategory(categoryArg) {\n    if (!categoryArg) {\n      return null;\n    }\n\n    if (typeof categoryArg === \"object\") {\n      return categoryArg;\n    }\n\n    if (typeof categoryArg === \"number\" || /^\\d+$/.test(categoryArg)) {\n      return Category.findById(Number(categoryArg));\n    }\n\n    if (typeof categoryArg === \"string\") {\n      const slug = categoryArg.trim();\n      if (!slug.length) {\n        return null;\n      }\n\n      return this.site?.categories?.find(\n        (category) => category.slug === slug || category.slug_path === slug\n      );\n    }\n\n    return null;\n  }\n\n  @action\n  openComposer() {\n    if (!this.currentUser) {\n      getOwner(this).lookup(\"route:application\").send(\"showLogin\");\n      return;\n    }\n\n    const options = { preferDraft: true };\n    const category = this.resolveCategory(this.args.category);\n\n    if (category) {\n      options.category = category;\n    }\n\n    if (this.args.tags) {\n      options.tags = this.args.tags;\n    }\n\n    this.composer.openNewTopic(options);\n  }\n\n  <template>\n    <DButton\n      @action={{this.openComposer}}\n      @translatedLabel={{@label}}\n      @icon={{@icon}}\n      class={{@class}}\n      ...attributes\n    />\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { block } from \"discourse/blocks\";\nimport DButton from \"discourse/components/d-button\";\nimport BodyClass from \"discourse/helpers/body-class\";\nimport { i18n } from \"discourse-i18n\";\nimport CustomNewTopicButton from \"../components/custom-new-topic-button\";\n\n@block(\"theme:hubspot:banner\", {\n  description: \"A banner with title and description\",\n  args: {\n    title: { type: \"string\", required: true },\n    description: { type: \"string\" },\n    questionButtonLabel: { type: \"string\" },\n    questionButtonCategory: { type: \"string\" },\n    questionButtonTags: { type: \"string\" },\n    ideaButtonLabel: { type: \"string\" },\n    ideaButtonUrl: { type: \"string\" },\n    ideaButtonCategory: { type: \"string\" },\n    ideaButtonTags: { type: \"string\" },\n  },\n})\nexport default class BlockBanner extends Component {\n  <template>\n    {{BodyClass \"has-banner\"}}\n    <div class=\"block-banner__layout\">\n      <div class=\"block-banner__content\">\n        <h1 class=\"block-banner__title\">\n          {{i18n (themePrefix @title)}}\n        </h1>\n        <span class=\"block-banner__description\">\n          {{i18n (themePrefix @description)}}\n        </span>\n        <div class=\"block-banner__buttons\">\n          {{#if @questionButtonLabel}}\n            <CustomNewTopicButton\n              @label={{i18n (themePrefix @questionButtonLabel)}}\n              @class=\"block-banner__button btn-primary btn-primary--medium\"\n              @category={{@questionButtonCategory}}\n              @tags={{@questionButtonTags}}\n            />\n          {{/if}}\n          {{#if @ideaButtonUrl}}\n            <DButton\n              @translatedLabel={{i18n (themePrefix @ideaButtonLabel)}}\n              @href={{@ideaButtonUrl}}\n              class=\"block-banner__button btn-primary btn-primary--outline btn-primary--medium\"\n            />\n          {{/if}}\n        </div>\n      </div>\n      <div class=\"block-banner__illustration\" />\n    </div>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { tracked } from \"@glimmer/tracking\";\nimport { concat } from \"@ember/helper\";\nimport { action } from \"@ember/object\";\nimport didInsert from \"@ember/render-modifiers/modifiers/did-insert\";\nimport didUpdate from \"@ember/render-modifiers/modifiers/did-update\";\nimport { service } from \"@ember/service\";\nimport { htmlSafe } from \"@ember/template\";\nimport { block } from \"discourse/blocks\";\nimport CategoryLogo from \"discourse/components/category-logo\";\nimport bodyClass from \"discourse/helpers/body-class\";\nimport { categoryLinkHTML } from \"discourse/helpers/category-link\";\nimport concatClass from \"discourse/helpers/concat-class\";\nimport icon from \"discourse/helpers/d-icon\";\nimport Category from \"discourse/models/category\";\n\n@block(\"theme:hubspot:category-banner\", {\n  description: \"Displays a category banner with logo, title, and description\",\n  args: {\n    showDescription: { type: \"boolean\" },\n    showIcon: { type: \"boolean\" },\n    showLogo: { type: \"boolean\" },\n  },\n})\nexport default class BlockCategoryBanner extends Component {\n  @service router;\n\n  @tracked category = null;\n  @tracked keepInLoadingRoute = false;\n\n  get categorySlugPathWithID() {\n    return this.router?.currentRoute?.params?.category_slug_path_with_id;\n  }\n\n  get shouldRender() {\n    return (\n      this.categorySlugPathWithID ||\n      (this.keepInLoadingRoute &&\n        this.router.currentRoute.name.includes(\"loading\"))\n    );\n  }\n\n  get isVisible() {\n    if (this.categorySlugPathWithID) {\n      return true;\n    } else if (this.router.currentRoute.name.includes(\"loading\")) {\n      return this.keepInLoadingRoute;\n    }\n    return false;\n  }\n\n  get safeStyle() {\n    return htmlSafe(\n      `--category-banner-background: #${this.category.color}; --category-banner-color: #${this.category.text_color};`\n    );\n  }\n\n  get displayCategoryDescription() {\n    return this.args.showDescription && this.category.description?.length > 0;\n  }\n\n  get showCategoryIcon() {\n    const hasIcon = this.category.style_type === \"icon\" && this.category.icon;\n    const hasEmoji =\n      this.category.style_type === \"emoji\" && this.category.emoji;\n\n    if (this.args.showIcon && (hasIcon || hasEmoji)) {\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  get categoryNameBadge() {\n    return categoryLinkHTML(this.category, {\n      allowUncategorized: true,\n      link: false,\n    });\n  }\n\n  @action\n  getCategory() {\n    if (!this.isVisible) {\n      return;\n    }\n\n    if (this.categorySlugPathWithID) {\n      this.category = Category.findBySlugPathWithID(\n        this.categorySlugPathWithID\n      );\n\n      this.keepInLoadingRoute = true;\n    } else {\n      if (!this.router.currentRoute.name.includes(\"loading\")) {\n        return (this.keepInLoadingRoute = false);\n      }\n    }\n  }\n\n  <template>\n    {{#if this.shouldRender}}\n      {{bodyClass \"has-banner\"}}\n\n      <div\n        {{didInsert this.getCategory}}\n        {{didUpdate this.getCategory this.isVisible}}\n        class={{concatClass\n          \"block-category-banner__layout\"\n          (if this.category (concat this.category.slug))\n        }}\n        style={{if this.category this.safeStyle}}\n      >\n        {{#if this.category}}\n          <div class=\"block-category-banner__content\">\n\n            {{#if @showLogo}}\n              <CategoryLogo\n                class=\"block-category-banner__logo\"\n                @category={{this.category}}\n              />\n            {{/if}}\n\n            <h2 class=\"block-category-banner__title\">\n              {{#if this.showCategoryIcon}}\n                {{this.categoryNameBadge}}\n              {{else}}\n                {{#if this.category.read_restricted}}\n                  {{icon \"lock\"}}\n                {{/if}}\n                {{this.category.name}}\n              {{/if}}\n            </h2>\n\n            {{#if this.displayCategoryDescription}}\n              <div class=\"block-category-banner__description\">\n                <div class=\"cooked\">\n                  {{htmlSafe this.category.description}}\n                </div>\n              </div>\n            {{/if}}\n\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { service } from \"@ember/service\";\nimport { block } from \"discourse/blocks\";\nimport bodyClass from \"discourse/helpers/body-class\";\nimport { i18n } from \"discourse-i18n\";\n\nconst ROUTE_CONFIG = {\n  \"discovery.latest\": { name: \"latest\" },\n  \"discovery.top\": { name: \"top\" },\n  \"discovery.hot\": { name: \"hot\" },\n  \"discovery.unread\": { name: \"unread\" },\n  \"discovery.new\": { name: \"new\" },\n  \"discovery.unseen\": { name: \"unseen\" },\n  \"discovery.bookmarks\": { name: \"bookmarks\" },\n  \"discovery.categories\": { name: \"categories\" },\n  \"tags.index\": { name: \"tags\" },\n  \"discourse-post-event-upcoming-events.index\": { name: \"upcoming-events\" },\n};\n\n@block(\"theme:hubspot:extra-banner\", {\n  description: \"Displays route-specific extra banners\",\n})\nexport default class BlockExtraBanner extends Component {\n  @service router;\n\n  get currentRoute() {\n    return this.router.currentRouteName;\n  }\n\n  get routeConfig() {\n    return ROUTE_CONFIG[this.currentRoute];\n  }\n\n  get showOnRoute() {\n    return Boolean(this.routeConfig);\n  }\n\n  get simpleRouteName() {\n    return this.routeConfig?.name || \"\";\n  }\n\n  get bannerTitle() {\n    if (!this.showOnRoute) {\n      return \"\";\n    }\n    return i18n(themePrefix(`extra-banners.${this.simpleRouteName}.title`));\n  }\n\n  get bannerDescription() {\n    if (!this.showOnRoute) {\n      return \"\";\n    }\n    return i18n(\n      themePrefix(`extra-banners.${this.simpleRouteName}.description`)\n    );\n  }\n\n  <template>\n    {{#if this.showOnRoute}}\n      {{bodyClass \"has-banner\"}}\n      <div\n        class=\"block-extra-banner block-extra-banner__layout\n          {{this.simpleRouteName}}\"\n      >\n        <div class=\"block-extra-banner__contents\">\n          <h1 class=\"block-extra-banner__title\">{{this.bannerTitle}}</h1>\n          <p\n            class=\"block-extra-banner__description\"\n          >{{this.bannerDescription}}</p>\n        </div>\n      </div>\n    {{/if}}\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { tracked } from \"@glimmer/tracking\";\nimport { action } from \"@ember/object\";\nimport didInsert from \"@ember/render-modifiers/modifiers/did-insert\";\nimport didUpdate from \"@ember/render-modifiers/modifiers/did-update\";\nimport willDestroy from \"@ember/render-modifiers/modifiers/will-destroy\";\nimport { service } from \"@ember/service\";\nimport { htmlSafe } from \"@ember/template\";\nimport { block } from \"discourse/blocks\";\nimport bodyClass from \"discourse/helpers/body-class\";\nimport icon from \"discourse/helpers/d-icon\";\nimport { eq } from \"discourse/truth-helpers\";\n\n@block(\"theme:hubspot:tag-banner\", {\n  description: \"Displays a tag banner with optional description\",\n  args: {\n    hideTagIcon: { type: \"boolean\", default: false },\n    showDescription: { type: \"boolean\", default: true },\n  },\n})\nexport default class BlockTagBanner extends Component {\n  @service store;\n  @service router;\n  @service site;\n\n  @tracked tag = null;\n  @tracked keepInLoadingRoute = false;\n\n  get currentRouteParams() {\n    return this.router?.currentRoute?.params;\n  }\n\n  get tagIdentifier() {\n    const params = this.currentRouteParams;\n    return params?.tag_id ?? params?.tag_name;\n  }\n\n  get shouldRender() {\n    return (\n      (this.tagIdentifier && this.tagIdentifier !== \"none\") ||\n      (this.keepInLoadingRoute &&\n        this.router.currentRoute.name.includes(\"loading\"))\n    );\n  }\n\n  get formattedTagName() {\n    return this.formatTagName(this.tag?.name);\n  }\n\n  get displayTagDescription() {\n    return this.args.showDescription && this.tag?.description?.length > 0;\n  }\n\n  formatTagName(tagName) {\n    if (!tagName) {\n      return \"\";\n    }\n\n    return tagName\n      .replaceAll(\"/\", \" & \")\n      .replaceAll(\"-\", \" \")\n      .replaceAll(\"_\", \" \");\n  }\n\n  @action\n  async getTagInfo() {\n    if (this.tagIdentifier && this.tagIdentifier !== \"none\") {\n      this.tag = await this.store.find(\"tag-info\", this.tagIdentifier);\n      this.keepInLoadingRoute = true;\n    } else {\n      if (!this.router.currentRoute.name.includes(\"loading\")) {\n        this.tag = null;\n        return (this.keepInLoadingRoute = false);\n      }\n    }\n  }\n\n  @action\n  resetTag() {\n    this.keepInLoadingRoute = false;\n    this.tag = null;\n  }\n\n  <template>\n    {{#if this.shouldRender}}\n      {{bodyClass \"has-banner\"}}\n\n      <div\n        {{didInsert this.getTagInfo}}\n        {{didUpdate this.getTagInfo this.shouldRender}}\n        {{willDestroy this.resetTag}}\n        class=\"block-tag-banner__layout\"\n      >\n        {{#if this.tag}}\n          <div class=\"block-tag-banner__content\">\n            <h2 class=\"block-tag-banner__title\">\n              {{#if (eq this.site.siteSettings.tag_style \"simple\")}}\n                {{#if (eq @hideTagIcon false)}}\n                  <span class=\"block-tag-banner__icon\">{{icon \"tag\"}}</span>\n                {{/if}}\n              {{/if}}\n\n              {{this.formattedTagName}}\n            </h2>\n\n            {{#if this.displayTagDescription}}\n              <div class=\"block-tag-banner__description\">\n                <div class=\"cooked\">\n                  {{htmlSafe this.tag.description}}\n                </div>\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </template>\n}\n","import Category from \"discourse/models/category\";\nimport settingCategoryId from \"./setting-category-id\";\n\n// Full slug URL of the picked category. A bare /c/<id> link keeps that path\n// after navigation, so route conditions matching slug URLs would miss it.\nexport default function categoryUrl(value) {\n  return Category.findById(settingCategoryId(value))?.url;\n}\n","import { apiInitializer } from \"discourse/lib/api\";\nimport BlockBanner from \"../blocks/block-banner\";\nimport BlockCategoryBanner from \"../blocks/block-category-banner\";\nimport BlockExtraBanner from \"../blocks/block-extra-banner\";\nimport BlockTagBanner from \"../blocks/block-tag-banner\";\nimport categoryUrl from \"../lib/category-url\";\n\nexport default apiInitializer((api) => {\n  api.renderBlocks(\"main-outlet-blocks\", [\n    {\n      block: BlockBanner,\n      id: \"homepage-banner\",\n      args: {\n        title: \"homepage.banner.title\",\n        description: \"homepage.banner.description\",\n        questionButtonLabel: \"homepage.banner.question_button\",\n        questionButtonTags: \"question\",\n        ideaButtonLabel: \"homepage.banner.idea_button\",\n        ideaButtonUrl: categoryUrl(settings.ideas_category),\n      },\n      conditions: {\n        type: \"route\",\n        pages: [\"HOMEPAGE\"],\n      },\n    },\n    {\n      block: BlockCategoryBanner,\n      id: \"category-banner\",\n      args: { showDescription: true, showIcon: false },\n      conditions: {\n        type: \"route\",\n        pages: [\"CATEGORY_PAGES\"],\n      },\n    },\n    {\n      block: BlockTagBanner,\n      id: \"tag-banner\",\n      conditions: [\n        {\n          type: \"route\",\n          pages: [\"TAG_PAGES\"],\n        },\n        { not: { type: \"route\", pages: [\"CATEGORY_PAGES\"] } },\n      ],\n    },\n    {\n      block: BlockExtraBanner,\n      id: \"extra-banner\",\n      conditions: [\n        {\n          type: \"route\",\n          urls: [\n            \"/latest\",\n            \"/top\",\n            \"/hot\",\n            \"/unread\",\n            \"/new\",\n            \"/unseen\",\n            \"/bookmarks\",\n            \"/categories\",\n            \"/tags\",\n            \"/upcoming-events\",\n          ],\n        },\n      ],\n    },\n  ]);\n});\n","import { apiInitializer } from \"discourse/lib/api\";\nimport { i18n } from \"discourse-i18n\";\nimport settingCategoryId from \"../lib/setting-category-id\";\n\nexport default apiInitializer((api) => {\n  const ideasCategoryId = settingCategoryId(settings.ideas_category);\n\n  if (!ideasCategoryId) {\n    return;\n  }\n\n  api.registerValueTransformer(\"create-topic-label\", ({ value }) => {\n    // Category is not in transformer context, so look it up via router\n    const router = api.container.lookup(\"service:router\");\n    const currentCategoryId = router.currentRoute?.attributes?.category?.id;\n\n    if (currentCategoryId === ideasCategoryId) {\n      return themePrefix(\"categories.ideas.new_topic\");\n    }\n\n    return value;\n  });\n\n  api.customizeComposerText({\n    saveLabel(model) {\n      if (\n        model.action === \"createTopic\" &&\n        model.category?.id === ideasCategoryId\n      ) {\n        return themePrefix(\"categories.ideas.create_topic\");\n      }\n    },\n\n    actionTitle(model) {\n      if (\n        model.action === \"createTopic\" &&\n        model.category?.id === ideasCategoryId\n      ) {\n        return i18n(themePrefix(\"categories.ideas.create_a_new_topic\"));\n      }\n    },\n  });\n});\n","import { fn } from \"@ember/helper\";\nimport ComposerTipCloseButton from \"discourse/components/composer-tip-close-button\";\nimport Topic from \"discourse/components/search-menu/results/type/topic\";\nimport { apiInitializer } from \"discourse/lib/api\";\nimport { i18n } from \"discourse-i18n\";\nimport settingCategoryId from \"../lib/setting-category-id\";\n\n// Based on this core component:\n// frontend/discourse/app/components/composer-messages/similar-topics.gjs\nconst IdeasSimilarTopicsMessage = <template>\n  <ComposerTipCloseButton @action={{fn @closeMessage @message}} />\n  <div class=\"composer-popup__content ideas-similar-topics-popup\">\n    <h3>{{i18n (themePrefix \"categories.ideas.similar_topics_header\")}}</h3>\n    <div class=\"ideas-similar-topics-popup__text\">\n      {{i18n (themePrefix \"categories.ideas.similar_topics_text\")}}\n    </div>\n    <div class=\"ideas-similar-topics-popup__text-note\">\n      {{i18n (themePrefix \"categories.ideas.similar_topics_text_note\")}}\n    </div>\n    <ul class=\"topics\">\n      {{#each @message.similarTopics as |topic|}}\n        <div class=\"similar-topic\">\n          <Topic @result={{topic}} @withTopicUrl={{true}} />\n        </div>\n      {{/each}}\n    </ul>\n  </div>\n</template>;\n\nexport default apiInitializer((api) => {\n  const ideasCategoryId = settingCategoryId(settings.ideas_category);\n  if (!ideasCategoryId) {\n    return;\n  }\n\n  api.registerValueTransformer(\"composer-message-components\", ({ value }) => {\n    const composerService = api.container.lookup(\"service:composer\");\n    const currentCategoryId = composerService.model?.category?.id;\n\n    if (currentCategoryId === ideasCategoryId) {\n      value[\"similar-topics\"] = IdeasSimilarTopicsMessage;\n    }\n  });\n});\n","import { apiInitializer } from \"discourse/lib/api\";\nimport { i18n } from \"discourse-i18n\";\n\nexport default apiInitializer((api) => {\n  api.renderBeforeWrapperOutlet(\n    \"post-language-indicator\",\n    <template>\n      <span class=\"post-language-label\">\n        {{i18n \"post.originally_written_in\" language=@outletArgs.language}}\n      </span>\n    </template>\n  );\n});\n","import Component from \"@glimmer/component\";\nimport { concat } from \"@ember/helper\";\nimport { service } from \"@ember/service\";\nimport { block } from \"discourse/blocks\";\nimport AsyncContent from \"discourse/components/async-content\";\nimport avatar from \"discourse/helpers/avatar\";\nimport dIcon from \"discourse/helpers/d-icon\";\nimport number from \"discourse/helpers/number\";\nimport { ajax } from \"discourse/lib/ajax\";\nimport { bind } from \"discourse/lib/decorators\";\nimport getURL from \"discourse/lib/get-url\";\nimport { or } from \"discourse/truth-helpers\";\nimport { i18n } from \"discourse-i18n\";\n\n// Ranks users by a number user field (points written by an external system),\n// read through the user directory, which sorts number fields numerically.\n@block(\"theme:hubspot:champions-leaderboard\", {\n  description: \"Displays users ranked by the points in a user field\",\n  args: {\n    userFieldId: { type: \"number\", required: true },\n    count: { type: \"number\", required: true },\n    title: { type: \"string\", required: true },\n    buttonLabel: { type: \"string\", required: true },\n    icon: { type: \"string\" },\n    illustration: { type: \"string\", required: true },\n    avatar: { type: \"string\", required: true },\n  },\n})\nexport default class BlockChampionsLeaderboard extends Component {\n  @service site;\n  @service siteSettings;\n\n  // the directory orders by the field's name, not its id\n  get userField() {\n    return this.site.user_fields?.find(\n      (field) =>\n        field.id === this.args.userFieldId && field.field_type === \"number\"\n    );\n  }\n\n  get directoryUrl() {\n    return getURL(\n      `/u?order=${encodeURIComponent(this.userField.name)}&period=all`\n    );\n  }\n\n  @bind\n  async fetchUsers() {\n    if (!this.userField) {\n      return null;\n    }\n\n    const data = await ajax(\"/directory_items.json\", {\n      data: {\n        period: \"all\",\n        order: this.userField.name,\n        user_field_ids: this.args.userFieldId,\n        limit: this.args.count,\n      },\n    });\n\n    const users = (data.directory_items || [])\n      .map((item) => ({\n        ...item.user,\n        points: item.user.user_fields?.[this.args.userFieldId]?.value?.[0],\n      }))\n      .filter((user) => typeof user.points === \"number\");\n\n    return users.length ? users : null;\n  }\n\n  <template>\n    <AsyncContent @asyncData={{this.fetchUsers}}>\n      <:loading>\n        <div class=\"block-champions-leaderboard__loading\">\n          <div class=\"spinner\"></div>\n        </div>\n      </:loading>\n\n      <:content as |users|>\n        <div class=\"block-champions-leaderboard__layout\">\n          <div class=\"block-champions-leaderboard__header\">\n            <div\n              class={{concat\n                \"block-champions-leaderboard__image block-champions-leaderboard__image--\"\n                @illustration\n              }}\n            ></div>\n\n            <h5 class=\"block-champions-leaderboard__title\">\n              {{i18n (themePrefix @title)}}\n            </h5>\n          </div>\n\n          <div class=\"block-champions-leaderboard__list\">\n            {{#each users as |user|}}\n              <div class=\"block-champions-leaderboard__row\">\n                <div\n                  class=\"block-champions-leaderboard__user clickable\"\n                  role=\"button\"\n                  data-user-card={{user.username}}\n                >\n                  {{avatar user imageSize=@avatar}}\n                  <span class=\"block-champions-leaderboard__name\">\n                    {{#if this.siteSettings.prioritize_username_in_ux}}\n                      {{user.username}}\n                    {{else}}\n                      {{or user.name user.username}}\n                    {{/if}}\n                  </span>\n                </div>\n                <div class=\"block-champions-leaderboard__points\">\n                  {{number user.points}}\n                  {{#if @icon}}{{dIcon @icon}}{{/if}}\n                </div>\n              </div>\n            {{/each}}\n          </div>\n\n          <div class=\"block-champions-leaderboard__footer\">\n            <a\n              href={{this.directoryUrl}}\n              class=\"block-champions-leaderboard__link\"\n            >\n              {{i18n (themePrefix @buttonLabel)}}\n              {{dIcon \"arrow-right\"}}\n            </a>\n          </div>\n        </div>\n      </:content>\n    </AsyncContent>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { service } from \"@ember/service\";\nimport { block } from \"discourse/blocks\";\nimport AsyncContent from \"discourse/components/async-content\";\nimport { ajax } from \"discourse/lib/ajax\";\nimport { bind } from \"discourse/lib/decorators\";\nimport Category from \"discourse/models/category\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:post-status\", {\n  description: \"Sidebar card showcasing post status counts\",\n  args: {\n    title: { type: \"string\" },\n  },\n})\nexport default class BlockPostStatus extends Component {\n  @service router;\n\n  get category() {\n    const slugPathWithId =\n      this.router?.currentRoute?.params?.category_slug_path_with_id;\n    if (slugPathWithId) {\n      return Category.findBySlugPathWithID(slugPathWithId);\n    }\n    return null;\n  }\n\n  get categoryId() {\n    return this.category?.id;\n  }\n\n  get categorySlug() {\n    return this.category?.slug;\n  }\n\n  @bind\n  async fetchStatusCounts() {\n    const categoryId = this.categoryId;\n\n    if (!categoryId) {\n      return null;\n    }\n\n    try {\n      const response = await ajax(\n        `/post-status/topic-status-counts.json?category_id=${categoryId}`\n      );\n\n      if (!response.counts || response.counts.length === 0) {\n        return null;\n      }\n\n      const countsMap = {};\n\n      response.counts.forEach((statusCount) => {\n        countsMap[statusCount.status] = {\n          count: statusCount.count,\n          translatedStatus: statusCount.translated_status,\n        };\n      });\n\n      return countsMap;\n    } catch {\n      // Plugin not installed or category not configured\n      return null;\n    }\n  }\n\n  @bind\n  getStatusList(counts) {\n    return [\n      {\n        modifier: \"in-development\",\n        status: \"In Development\",\n        label: counts?.[\"In Development\"]?.translatedStatus ?? \"In Development\",\n        count: counts?.[\"In Development\"]?.count ?? 0,\n      },\n      {\n        modifier: \"in-beta\",\n        status: \"In Beta\",\n        label: counts?.[\"In Beta\"]?.translatedStatus ?? \"In Beta\",\n        count: counts?.[\"In Beta\"]?.count ?? 0,\n      },\n      {\n        modifier: \"delivered\",\n        status: \"Delivered\",\n        label: counts?.[\"Delivered\"]?.translatedStatus ?? \"Delivered\",\n        count: counts?.[\"Delivered\"]?.count ?? 0,\n      },\n      {\n        modifier: \"alternative-solution\",\n        status: \"Alternative Solution\",\n        label:\n          counts?.[\"Alternative Solution\"]?.translatedStatus ??\n          \"Alternative Solution\",\n        count: counts?.[\"Alternative Solution\"]?.count ?? 0,\n      },\n    ];\n  }\n\n  @bind\n  getStatusUrl(status) {\n    const categorySlug = this.categorySlug;\n    const categoryId = this.categoryId;\n\n    if (!categorySlug || !categoryId) {\n      return \"#\";\n    }\n\n    return `/c/${categorySlug}/${categoryId}?latest_post_status=${encodeURIComponent(status)}`;\n  }\n\n  <template>\n    <AsyncContent @asyncData={{this.fetchStatusCounts}}>\n      <:loading>\n        <div class=\"block-post-status__loading\">\n          <div class=\"spinner\"></div>\n        </div>\n      </:loading>\n\n      <:content as |counts|>\n        <div class=\"block-post-status__layout\">\n          <div class=\"block-post-status__header\">\n            <div class=\"block-post-status__image\"></div>\n            <h5 class=\"block-post-status__title\">\n              {{i18n (themePrefix @title)}}\n            </h5>\n          </div>\n\n          <ul class=\"block-post-status__status-list\">\n            {{#each (this.getStatusList counts) as |status|}}\n              <li\n                class=\"block-post-status__status-item block-post-status__status-item--{{status.modifier}}\"\n              >\n                <a\n                  href={{this.getStatusUrl status.status}}\n                  class=\"block-post-status__status-link\"\n                >\n                  <span\n                    class=\"block-post-status__status-label\"\n                  >{{status.label}}</span>\n                  <span\n                    class=\"block-post-status__status-count\"\n                  >{{status.count}}</span>\n                </a>\n              </li>\n            {{/each}}\n          </ul>\n        </div>\n      </:content>\n    </AsyncContent>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { concat } from \"@ember/helper\";\nimport { service } from \"@ember/service\";\nimport { htmlSafe } from \"@ember/template\";\nimport { block } from \"discourse/blocks\";\nimport AsyncContent from \"discourse/components/async-content\";\nimport { bind } from \"discourse/lib/decorators\";\nimport Category from \"discourse/models/category\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:recent-deliveries\", {\n  description:\n    \"Displays recently updated topics with Delivered or In Beta status\",\n  args: {\n    title: { type: \"string\" },\n    variant: { type: \"string\" },\n    count: { type: \"number\", default: 5 },\n    statuses: { type: \"array\" },\n  },\n})\nexport default class BlockRecentDeliveries extends Component {\n  @service store;\n  @service router;\n\n  get category() {\n    const slugPathWithId =\n      this.router?.currentRoute?.params?.category_slug_path_with_id;\n    if (slugPathWithId) {\n      return Category.findBySlugPathWithID(slugPathWithId);\n    }\n    return null;\n  }\n\n  @bind\n  async fetchTopics() {\n    const category = this.category;\n\n    if (!category) {\n      return null;\n    }\n\n    const filter = `c/${Category.slugFor(category)}/${category.id}/l/latest`;\n    const statuses = this.args.statuses;\n\n    if (!statuses?.length) {\n      return null;\n    }\n\n    const requests = statuses.map((status) =>\n      this.store.findFiltered(\"topicList\", {\n        filter,\n        params: {\n          order: \"activity\",\n          latest_post_status: status,\n        },\n      })\n    );\n\n    const results = await Promise.all(requests);\n    const allTopics = results.flatMap((r) => r.topics || []);\n\n    const unique = new Map();\n    for (const topic of allTopics) {\n      if (!unique.has(topic.id)) {\n        unique.set(topic.id, topic);\n      }\n    }\n\n    const sorted = [...unique.values()].sort(\n      (a, b) => new Date(b.bumped_at) - new Date(a.bumped_at)\n    );\n\n    return sorted.length ? sorted.slice(0, this.args.count || 5) : null;\n  }\n\n  <template>\n    <AsyncContent @asyncData={{this.fetchTopics}}>\n      <:loading>\n        <div class=\"block-recent-deliveries__loading\">\n          <div class=\"spinner\"></div>\n        </div>\n      </:loading>\n\n      <:empty>\n        <div class=\"block-recent-deliveries__empty\">\n          {{i18n \"topics.none.latest\"}}\n        </div>\n      </:empty>\n\n      <:content as |topics|>\n        <div class=\"block-recent-deliveries__layout\">\n          {{#if @title}}\n            <div class=\"block-recent-deliveries__header\">\n              <div\n                class={{concat\n                  \"block-recent-deliveries__image block-recent-deliveries__image--\"\n                  @variant\n                }}\n              ></div>\n              <h5 class=\"block-recent-deliveries__title\">\n                {{i18n (themePrefix @title)}}\n              </h5>\n            </div>\n          {{/if}}\n\n          <ul class=\"block-recent-deliveries__list\">\n            {{#each topics as |topic|}}\n              <li class=\"block-recent-deliveries__item\">\n                <a\n                  class=\"block-recent-deliveries__link\"\n                  href=\"/t/{{topic.slug}}/{{topic.id}}\"\n                >\n                  <span class=\"block-recent-deliveries__topic-title\">\n                    {{htmlSafe topic.fancy_title}}\n                  </span>\n                </a>\n              </li>\n            {{/each}}\n          </ul>\n        </div>\n      </:content>\n    </AsyncContent>\n  </template>\n}\n","import Component from \"@glimmer/component\";\nimport { block } from \"discourse/blocks\";\nimport dIcon from \"discourse/helpers/d-icon\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:resource-links\", {\n  description: \"Resource links card with illustration\",\n  args: {\n    title: { type: \"string\" },\n    links: { type: \"array\" },\n  },\n})\nexport default class BlockResourceLinks extends Component {\n  <template>\n    <div class=\"block-resource-links__layout\">\n      <div class=\"block-resource-links__header\">\n        <div class=\"block-resource-links__image\"></div>\n        <h5 class=\"block-resource-links__title\">\n          {{i18n (themePrefix @title)}}\n        </h5>\n      </div>\n\n      <ul class=\"block-resource-links__list\">\n        {{#each @links as |link|}}\n          <li class=\"block-resource-links__item\">\n            <a\n              href={{link.url}}\n              target=\"_blank\"\n              rel=\"noopener noreferrer\"\n              class=\"block-resource-links__link\"\n            >\n              {{dIcon link.icon}}\n              <span>\n                <span class=\"block-resource-links__label\">\n                  {{i18n (themePrefix link.label)}}\n                </span>\n                {{#if link.description}}\n                  <span class=\"block-resource-links__description\">\n                    {{i18n (themePrefix link.description)}}\n                  </span>\n                {{/if}}\n              </span>\n            </a>\n          </li>\n        {{/each}}\n      </ul>\n    </div>\n  </template>\n}\n","// Matches the given categories and their subcategories.\nexport default function categoryScope(categories) {\n  return {\n    any: [\n      { type: \"outlet-arg\", path: \"category.id\", value: categories },\n      {\n        type: \"outlet-arg\",\n        path: \"category.parent_category_id\",\n        value: categories,\n      },\n    ],\n  };\n}\n","import { apiInitializer } from \"discourse/lib/api\";\nimport BlockChampionsLeaderboard from \"../blocks/block-champions-leaderboard\";\nimport BlockLeaderboard from \"../blocks/block-leaderboard\";\nimport BlockPostStatus from \"../blocks/block-post-status\";\nimport BlockRecentDeliveries from \"../blocks/block-recent-deliveries\";\nimport BlockResourceLinks from \"../blocks/block-resource-links\";\nimport categoryScope from \"../lib/category-scope\";\nimport leaderboardConfig from \"../lib/leaderboard-config\";\n\nexport default apiInitializer((api) => {\n  const developer = leaderboardConfig(\"Developers\");\n  const ideasCategoryId = Number(settings.ideas_category);\n  const developerCategoryId = Number(settings.developer_category);\n\n  api.renderBlocks(\"sidebar-discovery\", [\n    {\n      block: BlockPostStatus,\n      id: \"sidebar-post-status\",\n      args: {\n        title: \"sidebar.ideas.title\",\n      },\n      conditions: {\n        type: \"route\",\n        pages: [\"CATEGORY_PAGES\"],\n        params: {\n          any: [\n            { categoryId: ideasCategoryId },\n            { parentCategoryId: ideasCategoryId },\n          ],\n        },\n      },\n    },\n    {\n      block: BlockRecentDeliveries,\n      id: \"sidebar-recently-delivered\",\n      args: {\n        title: \"sidebar.recently_delivered.title\",\n        variant: \"delivered\",\n        count: 5,\n        statuses: [\"Delivered\"],\n      },\n      conditions: {\n        type: \"route\",\n        pages: [\"CATEGORY_PAGES\"],\n        params: {\n          any: [\n            { categoryId: ideasCategoryId },\n            { parentCategoryId: ideasCategoryId },\n          ],\n        },\n      },\n    },\n    {\n      block: BlockRecentDeliveries,\n      id: \"sidebar-now-in-beta\",\n      args: {\n        title: \"sidebar.now_in_beta.title\",\n        variant: \"in-beta\",\n        count: 5,\n        statuses: [\"In Beta\"],\n      },\n      conditions: {\n        type: \"route\",\n        pages: [\"CATEGORY_PAGES\"],\n        params: {\n          any: [\n            { categoryId: ideasCategoryId },\n            { parentCategoryId: ideasCategoryId },\n          ],\n        },\n      },\n    },\n    {\n      block: BlockResourceLinks,\n      id: \"sidebar-developer-resources\",\n      args: {\n        title: \"sidebar.developer_resources.title\",\n        links: settings.developer_resource_links,\n      },\n      conditions: {\n        type: \"route\",\n        pages: [\"CATEGORY_PAGES\"],\n        params: {\n          any: [\n            { categoryId: developerCategoryId },\n            { parentCategoryId: developerCategoryId },\n          ],\n        },\n      },\n    },\n    {\n      block: BlockLeaderboard,\n      id: \"sidebar-leaderboard\",\n      args: {\n        leaderboardId: developer.id,\n        icon: developer.icon,\n        illustration: \"collaboration\",\n        title: \"sidebar.leaderboard.title\",\n        buttonLabel: \"sidebar.leaderboard.button_label\",\n        count: 10,\n        avatar: \"small\",\n      },\n      conditions: {\n        type: \"route\",\n        pages: [\"CATEGORY_PAGES\"],\n        params: {\n          any: [\n            { categoryId: developerCategoryId },\n            { parentCategoryId: developerCategoryId },\n          ],\n        },\n      },\n    },\n    ...settings.champions_leaderboard.map((entry) => ({\n      block: BlockChampionsLeaderboard,\n      args: {\n        userFieldId: entry.user_field_id,\n        icon: \"award\",\n        illustration: \"collaboration\",\n        title: \"sidebar.champions.title\",\n        buttonLabel: \"sidebar.champions.button_label\",\n        count: 10,\n        avatar: \"small\",\n      },\n      // staff only for now\n      conditions: [\n        { type: \"user\", staff: true },\n        categoryScope(entry.categories),\n      ],\n    })),\n  ]);\n});\n","import Component from \"@glimmer/component\";\nimport { service } from \"@ember/service\";\nimport { htmlSafe } from \"@ember/template\";\nimport { block } from \"discourse/blocks\";\nimport AsyncContent from \"discourse/components/async-content\";\nimport number from \"discourse/helpers/number\";\nimport { bind } from \"discourse/lib/decorators\";\nimport Category from \"discourse/models/category\";\nimport { i18n } from \"discourse-i18n\";\n\n@block(\"theme:hubspot:category-topics\", {\n  description: \"Displays filtered topics from a category\",\n  args: {\n    title: { type: \"string\" },\n    count: { type: \"number\", default: 5 },\n    order: { type: \"string\" },\n    postStatusId: { type: \"string\" },\n  },\n})\nexport default class BlockCategoryTopics extends Component {\n  @service store;\n  @service router;\n\n  get category() {\n    const slugPathWithId =\n      this.router?.currentRoute?.params?.category_slug_path_with_id;\n    if (slugPathWithId) {\n      return Category.findBySlugPathWithID(slugPathWithId);\n    }\n    return null;\n  }\n\n  @bind\n  async fetchTopics() {\n    const category = this.category;\n\n    if (!category) {\n      return null;\n    }\n\n    const filter = `c/${Category.slugFor(category)}/${category.id}/l/latest`;\n    const params = {};\n\n    if (this.args.order) {\n      params.order = this.args.order;\n    }\n\n    if (this.args.postStatusId) {\n      params.latest_post_status_id = this.args.postStatusId;\n    }\n\n    const topicList = await this.store.findFiltered(\"topicList\", {\n      filter,\n      params,\n    });\n\n    if (!topicList.topics?.length) {\n      return null;\n    }\n\n    return topicList.topics.slice(0, this.args.count || 5);\n  }\n\n  <template>\n    <AsyncContent @asyncData={{this.fetchTopics}}>\n      <:loading>\n        <div class=\"block-category-topics__loading\">\n          <div class=\"spinner\"></div>\n        </div>\n      </:loading>\n\n      <:empty>\n        <div class=\"block-category-topics__empty\">\n          {{i18n \"topics.none.latest\"}}\n        </div>\n      </:empty>\n\n      <:content as |topics|>\n        <div class=\"block-category-topics__layout\">\n          {{#if @title}}\n            <div class=\"block-category-topics__header\">\n              <div class=\"block-category-topics__image\"></div>\n              <h5 class=\"block-category-topics__title\">\n                {{i18n (themePrefix @title)}}\n              </h5>\n            </div>\n          {{/if}}\n\n          <ul class=\"block-category-topics__list\">\n            {{#each topics as |topic|}}\n              <li class=\"block-category-topics__item\">\n                <a\n                  class=\"block-category-topics__link\"\n                  href=\"/t/{{topic.slug}}/{{topic.id}}\"\n                >\n                  <span class=\"block-category-topics__topic-title\">\n                    {{htmlSafe topic.fancy_title}}\n                  </span>\n                  {{#if topic.vote_count}}\n                    <span class=\"block-category-topics__votes\">\n                      {{number topic.vote_count}}\n                    </span>\n                  {{/if}}\n                </a>\n              </li>\n            {{/each}}\n          </ul>\n\n        </div>\n      </:content>\n    </AsyncContent>\n  </template>\n}\n","import * as Mod1 from \"./discourse/api-initializers/hide-reactions\";\nimport * as Mod2 from \"./discourse/api-initializers/homepage-blocks\";\nimport * as Mod3 from \"./discourse/api-initializers/hubspot-theme\";\nimport * as Mod4 from \"./discourse/api-initializers/main-outlet-blocks\";\nimport * as Mod5 from \"./discourse/api-initializers/override-create-topic-labels\";\nimport * as Mod6 from \"./discourse/api-initializers/override-similar-topic-suggestion\";\nimport * as Mod7 from \"./discourse/api-initializers/show-translated-post-original-language\";\nimport * as Mod8 from \"./discourse/api-initializers/sidebar-discovery-blocks\";\nimport * as Mod9 from \"./discourse/blocks/block-banner\";\nimport * as Mod10 from \"./discourse/blocks/block-card-champion\";\nimport * as Mod11 from \"./discourse/blocks/block-card-cta\";\nimport * as Mod12 from \"./discourse/blocks/block-category-banner\";\nimport * as Mod13 from \"./discourse/blocks/block-category-topics\";\nimport * as Mod14 from \"./discourse/blocks/block-champions-leaderboard\";\nimport * as Mod15 from \"./discourse/blocks/block-extra-banner\";\nimport * as Mod16 from \"./discourse/blocks/block-featured-categories\";\nimport * as Mod17 from \"./discourse/blocks/block-featured-list\";\nimport * as Mod18 from \"./discourse/blocks/block-featured-topics\";\nimport * as Mod19 from \"./discourse/blocks/block-leaderboard\";\nimport * as Mod20 from \"./discourse/blocks/block-post-status\";\nimport * as Mod21 from \"./discourse/blocks/block-recent-deliveries\";\nimport * as Mod22 from \"./discourse/blocks/block-resource-links\";\nimport * as Mod23 from \"./discourse/blocks/block-section-heading\";\nimport * as Mod24 from \"./discourse/blocks/block-tag-banner\";\nimport * as Mod25 from \"./discourse/components/category-card\";\nimport * as Mod26 from \"./discourse/components/custom-new-topic-button\";\nimport * as Mod27 from \"./discourse/lib/category-scope\";\nimport * as Mod28 from \"./discourse/lib/category-url\";\nimport * as Mod29 from \"./discourse/lib/leaderboard-config\";\nimport * as Mod30 from \"./discourse/lib/setting-category-id\";\nconst compatModules = {\n  \"discourse/api-initializers/hide-reactions\": Mod1,\n  \"discourse/api-initializers/homepage-blocks\": Mod2,\n  \"discourse/api-initializers/hubspot-theme\": Mod3,\n  \"discourse/api-initializers/main-outlet-blocks\": Mod4,\n  \"discourse/api-initializers/override-create-topic-labels\": Mod5,\n  \"discourse/api-initializers/override-similar-topic-suggestion\": Mod6,\n  \"discourse/api-initializers/show-translated-post-original-language\": Mod7,\n  \"discourse/api-initializers/sidebar-discovery-blocks\": Mod8,\n  \"discourse/blocks/block-banner\": Mod9,\n  \"discourse/blocks/block-card-champion\": Mod10,\n  \"discourse/blocks/block-card-cta\": Mod11,\n  \"discourse/blocks/block-category-banner\": Mod12,\n  \"discourse/blocks/block-category-topics\": Mod13,\n  \"discourse/blocks/block-champions-leaderboard\": Mod14,\n  \"discourse/blocks/block-extra-banner\": Mod15,\n  \"discourse/blocks/block-featured-categories\": Mod16,\n  \"discourse/blocks/block-featured-list\": Mod17,\n  \"discourse/blocks/block-featured-topics\": Mod18,\n  \"discourse/blocks/block-leaderboard\": Mod19,\n  \"discourse/blocks/block-post-status\": Mod20,\n  \"discourse/blocks/block-recent-deliveries\": Mod21,\n  \"discourse/blocks/block-resource-links\": Mod22,\n  \"discourse/blocks/block-section-heading\": Mod23,\n  \"discourse/blocks/block-tag-banner\": Mod24,\n  \"discourse/components/category-card\": Mod25,\n  \"discourse/components/custom-new-topic-button\": Mod26,\n  \"discourse/lib/category-scope\": Mod27,\n  \"discourse/lib/category-url\": Mod28,\n  \"discourse/lib/leaderboard-config\": Mod29,\n  \"discourse/lib/setting-category-id\": Mod30,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["settings","getObjectForTheme","themePrefix","key","settingCategoryId","value","parseInt","split","hideReactions","apiInitializer","api","ideasCategoryId","ideas_category","registerValueTransformer","dag","context","post","buttonKeys","categoryId","topic","category_id","delete","LIKE","BlockCardChampion","dt7948","c","Component","hasImage","this","args","champion","image","trim","length","linkUrl","topic_url","backgroundStyle","url","encodeURI","htmlSafe","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","dIcon","i18n","isStrictMode","description","type","default","badge","badgeIcon","linkText","BlockCardCta","icon","title","external","CategoryCard","formatEmoji","emoji","startsWith","logoStyle","category","color","logoSquareStyle","concat","replaceEmoji","BlockFeaturedCategories","featuredCategories","categories","filter","Boolean","map","Category","findById","Number","n","prototype","cached","BlockFeaturedList","topics","outletArgs","model","latest","BasicTopicList","showPosters","BlockFeaturedTopics","topicsPromise","fetchTopics","resolveTopics","bind","entries","filtered","Promise","all","async","topicId","parseTopicId","entry","Topic","find","firstPost","post_stream","posts","excerpt","extractExcerpt","cooked","slug","fancy_title","last_read_post_number","imageUrl","href","tracking_url","match","maxLength","div","document","createElement","innerHTML","text","textContent","substring","AsyncContent","categoryBadge","BlockLeaderboard","g","service","siteSettings","i","avatarSize","avatar","fetchLeaderboard","count","leaderboardId","endpoint","ajax","data","user_limit","leaderboard","users","leaderboardName","name","or","number","illustration","buttonLabel","required","BlockSectionHeading","modifier","leaderboardConfig","leaderboards","l","homepageBlocks","mostLiked","renderBlocks","BlockGroup","children","homepage_newsletter_url","highlight_topics","highlight_champion","homepage_champions_url","homepage_categories","hubspotTheme","registerBehaviorTransformer","store","container","lookup","findFiltered","then","list","slice","catch","currentRouteName","CustomNewTopicButton","composer","currentUser","site","resolveCategory","categoryArg","test","slug_path","openComposer","getOwner","send","options","preferDraft","tags","openNewTopic","action","DButton","BlockBanner","BodyClass","questionButtonLabel","questionButtonCategory","questionButtonTags","ideaButtonLabel","ideaButtonUrl","ideaButtonCategory","ideaButtonTags","BlockCategoryBanner","router","tracked","keepInLoadingRoute","categorySlugPathWithID","currentRoute","params","category_slug_path_with_id","shouldRender","includes","isVisible","safeStyle","text_color","displayCategoryDescription","showDescription","showCategoryIcon","hasIcon","style_type","hasEmoji","showIcon","categoryNameBadge","categoryLinkHTML","allowUncategorized","link","getCategory","findBySlugPathWithID","bodyClass","concatClass","didInsert","didUpdate","CategoryLogo","showLogo","ROUTE_CONFIG","BlockExtraBanner","routeConfig","showOnRoute","simpleRouteName","bannerTitle","bannerDescription","BlockTagBanner","tag","currentRouteParams","tagIdentifier","tag_id","tag_name","formattedTagName","formatTagName","displayTagDescription","tagName","replaceAll","getTagInfo","resetTag","willDestroy","eq","hideTagIcon","categoryUrl","mainOutletBlocks","conditions","pages","not","urls","overrideCreateTopicLabels","currentCategoryId","attributes","customizeComposerText","saveLabel","actionTitle","IdeasSimilarTopicsMessage","ComposerTipCloseButton","fn","templateOnly","overrideSimilarTopicSuggestion","composerService","showTranslatedPostOriginalLanguage","renderBeforeWrapperOutlet","BlockChampionsLeaderboard","userField","user_fields","field","userFieldId","field_type","directoryUrl","getURL","encodeURIComponent","fetchUsers","period","order","user_field_ids","limit","directory_items","item","user","points","BlockPostStatus","slugPathWithId","categorySlug","fetchStatusCounts","response","counts","countsMap","forEach","statusCount","status","translatedStatus","translated_status","getStatusList","label","getStatusUrl","BlockRecentDeliveries","slugFor","statuses","requests","latest_post_status","allTopics","flatMap","r","unique","Map","has","set","sorted","values","sort","a","b","Date","bumped_at","variant","BlockResourceLinks","links","categoryScope","any","path","sidebarDiscoveryBlocks","developer","developerCategoryId","developer_category","parentCategoryId","developer_resource_links","champions_leaderboard","user_field_id","staff","BlockCategoryTopics","postStatusId","latest_post_status_id","topicList","compatModules","Mod1","Mod2","Mod3","Mod4","Mod5","Mod6","Mod7","Mod8","Mod9","Mod10","Mod11","Mod12","Mod14","Mod15","Mod16","Mod17","Mod18","Mod19","Mod20","Mod21","Mod22","Mod23","Mod24","Mod25","Mod26","Mod27","Mod28","Mod29","Mod30"],"mappings":"+7GAEaA,EAAWC,EAAkB;AAEnC,SAASC,EAAYC,GAC1B,MAAO,yBAAyBA,GAClC;;oCCLe,SAASC,EAAkBC,GACxC,OAAOC,SAASD,GAAOE,MAAM,KAAK,GAAI,KAAO,IAC/C,iDCAAC,EAAeC,EAAgBC,IAC7B,MAAMC,EAAkBP,EAAkBJ,EAASY;AAE9CD,GAILD,EAAIG,yBACF,oBACA,EAAGR,MAAOS,EAAKC,SAAWC,OAAMC,kBAC9B,MAAMC,EAAaF,EAAKG,OAAOC;AAE3BF,IAAeP,IAInBG,EAAIO,OAAOJ,EAAWK,MACtBR,EAAIO,OAAO;AChBqB,MAYjBE,EAAAC,OAAAC,EAAA,cAA0BC,EAC7C,YAAIC,GACF,OAAOC,KAAKC,KAAKC,UAAUC,OAAOC,OAAOC,OAAS,CACpD,CAEA,WAAIC,GACF,OAAON,KAAKC,KAAKC,UAAUK,WAAa,GAC1C,CAEA,mBAAIC,GACF,MAAMC,EAAMC,UAAUV,KAAKC,KAAKC,UAAUC,OAAS;AACnD,OAAOQ,EAAS,yBAAyBF,MAC3C,QAEAG,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,6yCAAAC,WAAA,4BAAAC,MAAAA,KAAAA,OAAAC,EAAAC,OAAA7C,gBAAA8C,cAAA,IA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