{"version":3,"file":"main.CcXRBg.js","sources":["theme-12/virtual:theme","theme-12/discourse/connectors/below-footer/minimal-footer.gjs","theme-12/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(12);\n\nexport function themePrefix(key) {\n  return `theme_translations.12.${key}`;\n}\n","/* eslint-disable ember/no-classic-components, ember/require-tagless-components */\nimport Component from \"@ember/component\";\nimport { htmlSafe } from \"@ember/template\";\nimport { classNames } from \"@ember-decorators/component\";\nimport { modifier as modifierFn } from \"ember-modifier\";\nimport { or } from \"discourse/truth-helpers\";\n\nconst YEAR = new Date().getFullYear();\n\nfunction recalculateHight() {\n  const headerHeight = document.querySelector(\".d-header-wrap\").offsetHeight;\n  const footerHeight = document.querySelector(\n    \".below-footer-outlet\"\n  ).offsetHeight;\n  const mainOutletStyles = getComputedStyle(\n    document.querySelector(\"#main-outlet\")\n  );\n  const mainOutletPaddingTop = parseInt(\n    mainOutletStyles.getPropertyValue(\"padding-top\"),\n    10\n  );\n  if (headerHeight && footerHeight && mainOutletPaddingTop) {\n    const mainOffset = headerHeight + footerHeight + mainOutletPaddingTop + 1;\n    document.querySelector(\"#main-outlet\").style.minHeight =\n      \"calc(100vh - \" + mainOffset + \"px)\";\n  }\n}\n\nconst adjustMinHeight = modifierFn(() => {\n  recalculateHight();\n  return () => recalculateHight();\n});\n\n@classNames(\"below-footer-outlet\", \"minimal-footer\")\nexport default class MinimalFooter extends Component {\n  <template>\n    {{#if this.showFooter}}\n      <footer {{adjustMinHeight}} class=\"discourse-minimal-footer\">\n        <div class=\"discourse-minimal-footer-content\">\n          {{#if settings.footer_logo}}\n            <div class=\"discourse-minimal-footer-logo\">\n              <a\n                href={{settings.footer_logo_url}}\n                target=\"_blank\"\n                rel=\"noopener noreferrer\"\n              >\n                <img src={{settings.footer_logo}} />\n              </a>\n            </div>\n          {{/if}}\n\n          {{#if settings.footer_html_a}}\n            <p class=\"discourse-minimal-footer-row-a\">\n              {{htmlSafe settings.footer_html_a}}\n            </p>\n          {{/if}}\n\n          {{#if settings.footer_html_b}}\n            <p class=\"discourse-minimal-footer-row-b\">\n              {{htmlSafe settings.footer_html_b}}\n            </p>\n          {{/if}}\n\n          {{#if (or settings.show_copyright settings.footer_html_c)}}\n            <p class=\"discourse-minimal-footer-row-c\">\n              {{#if settings.show_copyright}}\n                &copy;\n                {{YEAR}}\n              {{/if}}\n              {{#if settings.footer_html_c}}\n                {{htmlSafe settings.footer_html_c}}\n              {{/if}}\n            </p>\n          {{/if}}\n        </div>\n      </footer>\n    {{/if}}\n  </template>\n}\n","import * as Mod1 from \"./discourse/connectors/below-footer/minimal-footer.gjs\";\nconst compatModules = {\n  \"discourse/connectors/below-footer/minimal-footer\": Mod1,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["settings","getObjectForTheme","YEAR","Date","getFullYear","recalculateHight","headerHeight","document","querySelector","offsetHeight","footerHeight","mainOutletStyles","getComputedStyle","mainOutletPaddingTop","parseInt","getPropertyValue","mainOffset","style","minHeight","adjustMinHeight","modifierFn","MinimalFooter","dt7948","c","Component","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","htmlSafe","or","isStrictMode","this","classNames","compatModules"],"mappings":"yfAEaA,EAAWC,EAAkB,ICKpCC,GAAO,IAAIC,MAAOC;AAExB,SAASC,IACP,MAAMC,EAAeC,SAASC,cAAc,kBAAkBC,aACxDC,EAAeH,SAASC,cAC5B,wBACAC,aACIE,EAAmBC,iBACvBL,SAASC,cAAc,iBAEnBK,EAAuBC,SAC3BH,EAAiBI,iBAAiB,eAClC;AAEF,GAAIT,GAAgBI,GAAgBG,EAAsB,CACxD,MAAMG,EAAaV,EAAeI,EAAeG,EAAuB;AACxEN,SAASC,cAAc,gBAAgBS,MAAMC,UAC3C,gBAAkBF,EAAa,KACnC,CACF,CAEA,MAAMG,EAAkBC,EAAW,KACjCf,IACO,IAAMA,MAIMgB,EAAAC,OAAAC,EAAA,cAAsBC,SACzCC,EAAAC,EAAA,CAAAC,GAAA,KAAAC,MAAA,48CAAAC,WAAA,4BAAAC,MAAAA,KAAAA,CAAAX,kBAAAnB,WAAA+B,WAAAC,KAAA9B,SAAA+B,cAAA,IA0CAC,KAAU,IA5CXC,EAAW,sBAAuB;AChC9B,MAACC,EAAgB,CACpB;"}