{"version":3,"file":"main.CDzCd3.js","sources":["theme-572/virtual:theme","theme-572/discourse/components/custom-footer.gjs","theme-572/discourse/connectors/below-footer/custom-footer.gjs","theme-572/discourse/connectors/below-login/show-footer.gjs","theme-572/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(572);\n\nexport function themePrefix(key) {\n  return `theme_translations.572.${key}`;\n}\n","import Component from \"@glimmer/component\";\nimport { dasherize } from \"@ember/string\";\nimport PluginOutlet from \"discourse/components/plugin-outlet\";\nimport concatClass from \"discourse/helpers/concat-class\";\nimport icon from \"discourse/helpers/d-icon\";\nimport I18nInstance from \"discourse-i18n\";\n\nexport default class extends Component {\n  get mainHeading() {\n    return (\n      this.translationFor(settings.heading_translations)?.text ||\n      settings.heading\n    );\n  }\n\n  get blurb() {\n    return (\n      this.translationFor(settings.blurb_translations)?.text || settings.blurb\n    );\n  }\n\n  get sections() {\n    return (settings.sections || []).map((section) => ({\n      ...section,\n      slug: dasherize(section.text),\n      text: this.localized(section, \"text\"),\n      title: this.localized(section, \"title\"),\n      links: (section.links || []).map((link) => this.localizedLink(link)),\n    }));\n  }\n\n  get smallLinks() {\n    return (settings.small_links || []).map((link) => this.localizedLink(link));\n  }\n\n  get socialLinks() {\n    return (settings.social_links || []).map((link) =>\n      this.localizedLink(link)\n    );\n  }\n\n  localizedLink(link) {\n    return {\n      ...link,\n      slug: dasherize(link.text),\n      text: this.localized(link, \"text\"),\n      title: this.localized(link, \"title\"),\n    };\n  }\n\n  translationFor(translations) {\n    const locale = I18nInstance.currentLocale();\n    return (translations || []).find((t) => t.locale === locale);\n  }\n\n  localized(obj, field) {\n    return this.translationFor(obj.translations)?.[field] || obj[field];\n  }\n\n  <template>\n    {{#if @showFooter}}\n      <div class=\"wrap\">\n        <div class=\"flexbox\">\n          <div class=\"first-box\">\n            <div class=\"heading\">\n              {{this.mainHeading}}\n            </div>\n            <div class=\"blurb\">\n              {{this.blurb}}\n            </div>\n          </div>\n          <div class=\"second-box\">\n            <PluginOutlet @name=\"easy-footer-second-box\">\n              <div class=\"links\">\n                {{#each this.sections as |section|}}\n                  <div class=\"list\" data-easyfooter-section={{section.slug}}>\n                    <span title={{section.title}}>\n                      {{section.text}}\n                    </span>\n\n                    <ul>\n                      {{#each section.links as |link|}}\n                        <li\n                          class=\"footer-section-link-wrapper\"\n                          data-easyfooter-link={{link.slug}}\n                        >\n                          <a\n                            class=\"footer-section-link\"\n                            title={{link.title}}\n                            href={{link.url}}\n                            target={{link.target}}\n                            referrerpolicy={{link.referrer_policy}}\n                          >\n                            {{link.text}}\n                          </a>\n                        </li>\n                      {{/each}}\n                    </ul>\n                  </div>\n                {{/each}}\n              </div>\n            </PluginOutlet>\n          </div>\n\n          <div class=\"third-box\">\n            <div class=\"footer-links\">\n              {{#each this.smallLinks as |link|}}\n                <a\n                  class={{concatClass \"small-link\" link.css_class}}\n                  data-easyfooter-small-link={{link.slug}}\n                  target={{link.target}}\n                  href={{link.url}}\n                >\n                  {{link.text}}\n                </a>\n              {{/each}}\n            </div>\n\n            <div class=\"social\">\n              {{#each this.socialLinks as |link|}}\n                <a\n                  class=\"social-link\"\n                  data-easyfooter-social-link={{link.slug}}\n                  title={{link.title}}\n                  target={{link.target}}\n                  href={{link.url}}\n                >\n                  {{icon link.icon_name}}\n                </a>\n              {{/each}}\n            </div>\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </template>\n}\n","/* eslint-disable ember/no-classic-components, ember/require-tagless-components */\nimport Component from \"@ember/component\";\nimport { classNames, tagName } from \"@ember-decorators/component\";\nimport CustomFooter0 from \"../../components/custom-footer\";\n\n@tagName(\"div\")\n@classNames(\"below-footer-outlet\", \"custom-footer\")\nexport default class CustomFooter extends Component {\n  <template><CustomFooter0 @showFooter={{@outletArgs.showFooter}} /></template>\n}\n","/* eslint-disable ember/no-classic-components */\nimport Component from \"@ember/component\";\nimport { tagName } from \"@ember-decorators/component\";\nimport hideApplicationFooter from \"discourse/helpers/hide-application-footer\";\n\n@tagName(\"\")\nexport default class ShowFooter extends Component {\n  <template>\n    {{#unless settings.show_footer_on_login_required_page}}\n      {{hideApplicationFooter}}\n    {{/unless}}\n  </template>\n}\n","import * as Mod1 from \"./discourse/components/custom-footer\";\nimport * as Mod2 from \"./discourse/connectors/below-footer/custom-footer.gjs\";\nimport * as Mod3 from \"./discourse/connectors/below-login/show-footer.gjs\";\nconst compatModules = {\n  \"discourse/components/custom-footer\": Mod1,\n  \"discourse/connectors/below-footer/custom-footer\": Mod2,\n  \"discourse/connectors/below-login/show-footer\": Mod3,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["settings","getObjectForTheme","__discourseComponentClass","Component","mainHeading","this","translationFor","heading_translations","text","heading","blurb","blurb_translations","sections","map","section","slug","dasherize","localized","title","links","link","localizedLink","smallLinks","small_links","socialLinks","social_links","translations","locale","I18nInstance","currentLocale","find","t","obj","field","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","PluginOutlet","concatClass","icon","isStrictMode","CustomFooter","dt7948","c","CustomFooter0","classNames","tagName","ShowFooter","hideApplicationFooter","compatModules","Mod1","Mod2"],"mappings":"w5BAEaA,EAAWC,EAAkB,KCK1CC,EAAe,cAAcC,EAC3B,eAAIC,GACF,OACEC,KAAKC,eAAeN,EAASO,uBAAuBC,MACpDR,EAASS,OAEb,CAEA,SAAIC,GACF,OACEL,KAAKC,eAAeN,EAASW,qBAAqBH,MAAQR,EAASU,KAEvE,CAEA,YAAIE,GACF,OAAQZ,EAASY,UAAY,IAAIC,IAAKC,IAAA,IACjCA,EACHC,KAAMC,EAAUF,EAAQN,MACxBA,KAAMH,KAAKY,UAAUH,EAAS,QAC9BI,MAAOb,KAAKY,UAAUH,EAAS,SAC/BK,OAAQL,EAAQK,OAAS,IAAIN,IAAKO,GAASf,KAAKgB,cAAcD,MAElE,CAEA,cAAIE,GACF,OAAQtB,EAASuB,aAAe,IAAIV,IAAKO,GAASf,KAAKgB,cAAcD,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