{"version":3,"names":["window","require","registerSettings","brand_name","website_url","logo_url","mobile_logo_url","links","url","text","target","icons","icon_name","custom_font_awesome_icons","show_bar_on_mobile","plugin_outlet","define","_exports","_component","_service","_not","_or","_brandHeaderContents","_component2","_templateFactory","Object","defineProperty","value","default","settings","getObjectForTheme","BrandHeaderContainer","static","dt7948","g","this","prototype","service","site","i","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","isStrictMode","_dIcon","BrandHeaderContents","inject","shouldShow","mobileView","brandLogo","mobileLogoUrl","showMobileLogo","length","logoUrl","title","hasIcons","hasLinks","_truthHelpers","_dMenu","MobileBrandHeader","and","not","_pluginApi","_renderGlimmer","_brandHeaderContainer","name","initialize","registerWidgetShim","withPluginApi","api","renderInOutlet"],"sourceRoot":"theme-4/","sources":["settings.js","discourse/components/brand-header-container.gjs","discourse/components/brand-header-contents.gjs","discourse/connectors/home-logo__before/mobile-brand-header.gjs","discourse/initializers/initialize-brand-header.js"],"sourcesContent":["(function() {\n  if ('require' in window) {\n    require(\"discourse/lib/theme-settings-store\").registerSettings(4, {\"brand_name\":\"\",\"website_url\":\"\",\"logo_url\":\"\",\"mobile_logo_url\":\"\",\"links\":[{\"url\":\"https://www.comodo.com/\",\"text\":\"Website\",\"target\":\"_blank\"},{\"url\":\"https://wiki.xcitium.com/\",\"text\":\"Wiki\",\"target\":\"_blank\"},{\"url\":\"https://www.xcitiumacademy.com/\",\"text\":\"Academy\",\"target\":\"_blank\"},{\"url\":\"https://updates.xcitium.com/\",\"text\":\"Platform Updates\",\"target\":\"_blank\"},{\"url\":\"https://edr.comodo.com/\",\"text\":\"Open EDR\",\"target\":\"_blank\"}],\"icons\":[{\"url\":\"https://twitter.com/getxcitium\",\"target\":\"_blank\",\"icon_name\":\"fab-twitter\"},{\"url\":\"https://www.youtube.com/channel/UCb3zCCQyxbWiRkvo6p0igUA\",\"target\":\"_blank\",\"icon_name\":\"fab-youtube\"},{\"url\":\"https://www.linkedin.com/company/xcitium\",\"target\":\"_blank\",\"icon_name\":\"fab-linkedin-in\"}],\"custom_font_awesome_icons\":\"fab-youtube|fab-linkedin-in\",\"show_bar_on_mobile\":true,\"plugin_outlet\":\"above-site-header\"});\n  }\n})();\n","if ('define' in window) {\ndefine(\"discourse/theme-4/discourse/components/brand-header-container\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"truth-helpers/helpers/not\", \"truth-helpers/helpers/or\", \"./brand-header-contents\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _not, _or, _brandHeaderContents, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(4);\n  const themePrefix = key => `theme_translations.4.${key}`;\n  class BrandHeaderContainer extends _component.default {\n    static #_ = (() => dt7948.g(this.prototype, \"site\", [_service.service]))();\n    #site = (() => (dt7948.i(this, \"site\"), void 0))();\n    static #_2 = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        {{#if (or (not this.site.mobileView) settings.show_bar_on_mobile)}}\n          <header class=\"b-header\">\n            <div class=\"wrap\">\n              <div class=\"contents\">\n                <BrandHeaderContents />\n              </div>\n            </div>\n          </header>\n        {{/if}}\n      \n    */\n    {\n      \"id\": null,\n      \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[28,[32,0],[[28,[32,1],[[30,0,[\\\"site\\\",\\\"mobileView\\\"]]],null],[32,2,[\\\"show_bar_on_mobile\\\"]]],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"b-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"contents\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[32,3],null,null,null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[],false,[\\\"if\\\"]]\",\n      \"moduleName\": \"/discourse/theme-4/discourse/components/brand-header-container\",\n      \"scope\": () => [_or.default, _not.default, settings, _brandHeaderContents.default],\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = BrandHeaderContainer;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-4/discourse/components/brand-header-contents\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"discourse-common/helpers/d-icon\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _dIcon, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(4);\n  const themePrefix = key => `theme_translations.4.${key}`;\n  class BrandHeaderContents extends _component.default {\n    static #_ = (() => dt7948.g(this.prototype, \"site\", [_service.inject]))();\n    #site = (() => (dt7948.i(this, \"site\"), void 0))();\n    get shouldShow() {\n      return !this.site.mobileView || settings.show_bar_on_mobile;\n    }\n    get brandLogo() {\n      const mobileView = this.site.mobileView;\n      const mobileLogoUrl = settings.mobile_logo_url || \"\";\n      const showMobileLogo = mobileView && mobileLogoUrl.length > 0;\n      const logoUrl = settings.logo_url || \"\";\n      const title = settings.brand_name;\n      return {\n        url: showMobileLogo ? mobileLogoUrl : logoUrl,\n        title\n      };\n    }\n    get hasIcons() {\n      return settings.icons && settings.icons.length > 0;\n    }\n    get hasLinks() {\n      return settings.links && settings.links.length > 0;\n    }\n    static #_2 = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        <div class=\"title\">\n          <a href={{settings.website_url}}>\n            {{#if this.brandLogo.url}}\n              <img\n                id=\"brand-logo\"\n                class=\"logo-big\"\n                src={{this.brandLogo.url}}\n                title={{this.brandLogo.title}}\n              />\n            {{else}}\n              <h2 id=\"#brand-text-logo\" class=\"text-logo\">\n                {{settings.brand_name}}\n              </h2>\n            {{/if}}\n          </a>\n        </div>\n    \n        {{#if this.hasLinks}}\n          <nav class=\"links\">\n            <ul class=\"nav {{if this.shouldShow 'nav-pills'}}\">\n              {{#each settings.links as |tl|}}\n                <li>\n                  <a href={{tl.url}} target={{tl.target}}>\n                    {{tl.text}}\n                  </a>\n                </li>\n              {{/each}}\n            </ul>\n          </nav>\n        {{/if}}\n    \n        {{#if this.hasIcons}}\n          <div class=\"panel\">\n            <ul class=\"icons\">\n              {{#each settings.icons as |il|}}\n                <li>\n                  <a href={{il.url}} target={{il.target}}>\n                    {{dIcon il.icon_name}}\n                  </a>\n                </li>\n              {{/each}}\n            </ul>\n          </div>\n        {{/if}}\n      \n    */\n    {\n      \"id\": null,\n      \"block\": \"[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"title\\\"],[12],[1,\\\"\\\\n      \\\"],[10,3],[15,6,[32,0,[\\\"website_url\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"brandLogo\\\",\\\"url\\\"]],[[[1,\\\"          \\\"],[10,\\\"img\\\"],[14,1,\\\"brand-logo\\\"],[14,0,\\\"logo-big\\\"],[15,\\\"src\\\",[30,0,[\\\"brandLogo\\\",\\\"url\\\"]]],[15,\\\"title\\\",[30,0,[\\\"brandLogo\\\",\\\"title\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"h2\\\"],[14,1,\\\"#brand-text-logo\\\"],[14,0,\\\"text-logo\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[32,0,[\\\"brand_name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasLinks\\\"]],[[[1,\\\"      \\\"],[10,\\\"nav\\\"],[14,0,\\\"links\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"ul\\\"],[15,0,[29,[\\\"nav \\\",[52,[30,0,[\\\"shouldShow\\\"]],\\\"nav-pills\\\"]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,2],[[28,[31,2],[[32,0,[\\\"links\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[15,6,[30,1,[\\\"url\\\"]]],[15,\\\"target\\\",[30,1,[\\\"target\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"text\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasIcons\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"panel\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"ul\\\"],[14,0,\\\"icons\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,2],[[28,[31,2],[[32,0,[\\\"icons\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[15,6,[30,2,[\\\"url\\\"]]],[15,\\\"target\\\",[30,2,[\\\"target\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[32,1],[[30,2,[\\\"icon_name\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[\\\"tl\\\",\\\"il\\\"],false,[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\"]]\",\n      \"moduleName\": \"/discourse/theme-4/discourse/components/brand-header-contents\",\n      \"scope\": () => [settings, _dIcon.default],\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = BrandHeaderContents;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-4/discourse/connectors/home-logo__before/mobile-brand-header\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"truth-helpers\", \"float-kit/components/d-menu\", \"../../components/brand-header-contents\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _truthHelpers, _dMenu, _brandHeaderContents, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(4);\n  const themePrefix = key => `theme_translations.4.${key}`;\n  class MobileBrandHeader extends _component.default {\n    static #_ = (() => dt7948.g(this.prototype, \"site\", [_service.service]))();\n    #site = (() => (dt7948.i(this, \"site\"), void 0))();\n    static #_2 = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        {{#if (and (not settings.show_bar_on_mobile) this.site.mobileView)}}\n          <DMenu\n            @icon=\"bars\"\n            title=\"hamburger_brand_menu\"\n            id=\"toggle-hamburger-brand-menu\"\n            class=\"brand-header-toggle icon btn-flat\"\n          >\n            <:content>\n              <div class=\"brand-header-contents\">\n                <BrandHeaderContents />\n              </div>\n            </:content>\n          </DMenu>\n        {{/if}}\n      \n    */\n    {\n      \"id\": null,\n      \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[28,[32,0],[[28,[32,1],[[32,2,[\\\"show_bar_on_mobile\\\"]]],null],[30,0,[\\\"site\\\",\\\"mobileView\\\"]]],null],[[[1,\\\"      \\\"],[8,[32,3],[[24,\\\"title\\\",\\\"hamburger_brand_menu\\\"],[24,1,\\\"toggle-hamburger-brand-menu\\\"],[24,0,\\\"brand-header-toggle icon btn-flat\\\"]],[[\\\"@icon\\\"],[\\\"bars\\\"]],[[\\\"content\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"brand-header-contents\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[32,4],null,null,null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[],false,[\\\"if\\\"]]\",\n      \"moduleName\": \"/discourse/theme-4/discourse/connectors/home-logo__before/mobile-brand-header\",\n      \"scope\": () => [_truthHelpers.and, _truthHelpers.not, settings, _dMenu.default, _brandHeaderContents.default],\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = MobileBrandHeader;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-4/discourse/initializers/initialize-brand-header\", [\"exports\", \"discourse/lib/plugin-api\", \"discourse/widgets/render-glimmer\", \"../components/brand-header-container\", \"@ember/template-factory\"], function (_exports, _pluginApi, _renderGlimmer, _brandHeaderContainer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(4);\n  const themePrefix = key => `theme_translations.4.${key}`;\n  var _default = _exports.default = {\n    name: \"brand-header\",\n    initialize() {\n      (0, _renderGlimmer.registerWidgetShim)(\"brand-header-contents\", \"div.brand-header-contents\", (0, _templateFactory.createTemplateFactory)(\n      /*\n        <BrandHeaderContents />\n      */\n      {\n        \"id\": null,\n        \"block\": \"[[[8,[39,0],null,null,null]],[],false,[\\\"brand-header-contents\\\"]]\",\n        \"moduleName\": \"/discourse/theme-4/discourse/initializers/initialize-brand-header\",\n        \"isStrictMode\": false\n      }));\n      (0, _pluginApi.withPluginApi)(\"1.14.0\", api => {\n        api.renderInOutlet(settings.plugin_outlet, _brandHeaderContainer.default);\n      });\n    }\n  };\n});\n}\n"],"mappings":"AACM,YAAaA,QACfC,QAAQ,sCAAsCC,iBAAiB,EAAG,CAACC,WAAa,GAAGC,YAAc,GAAGC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