{"version":3,"file":"z-communiteq-features.js","names":["define","_exports","_component","_service","_template","_component2","_templateFactory","Object","defineProperty","value","default","CommuniteqAdminNotice","static","dt7948","g","this","prototype","inject","siteSettings","i","currentUser","shouldShow","staff","communiteq_admin_notice","adminNotice","htmlSafe","setComponentTemplate","createTemplateFactory","id","block","moduleName","isStrictMode","__COLOCATED_TEMPLATE__","ShowBackupInfo","showMigrateInfo","bootstrap_mode_enabled"],"sources":["discourse/plugins/z-communiteq-features/discourse/components/communiteq-admin-notice.js","discourse/plugins/z-communiteq-features/discourse/components/show-backup-info.js","discourse/plugins/z-communiteq-features/discourse/templates/connectors/admin-below-plugins-index/discoursehosting.js","discourse/plugins/z-communiteq-features/discourse/templates/connectors/before-backup-list/discoursehosting.js","discourse/plugins/z-communiteq-features/discourse/templates/connectors/below-site-header/show-admin-notice.js"],"sourcesContent":["define(\"discourse/plugins/z-communiteq-features/discourse/components/communiteq-admin-notice\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"@ember/template\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _template, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class CommuniteqAdminNotice extends _component.default {\n    static #_ = (() => dt7948.g(this.prototype, \"siteSettings\", [_service.inject]))();\n    #siteSettings = (() => (dt7948.i(this, \"siteSettings\"), void 0))();\n    static #_2 = (() => dt7948.g(this.prototype, \"currentUser\", [_service.inject]))();\n    #currentUser = (() => (dt7948.i(this, \"currentUser\"), void 0))();\n    get shouldShow() {\n      return this.currentUser && this.currentUser.staff && this.siteSettings.communiteq_admin_notice != \"\";\n    }\n    get adminNotice() {\n      return (0, _template.htmlSafe)(this.siteSettings.communiteq_admin_notice);\n    }\n    static #_3 = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        {{#if this.shouldShow}}\n          <div class=\"communiteq-admin-notice\" style=\"background-color: #fefefe; border: 4px solid #a00; padding: 10px;\">\n            {{this.adminNotice}}\n            <br/>\n            <br/>\n            <div style=\"text-align: right; display: block;\">\n              <i>This message is being shown to forum staff only, regular users will not see it.</i>\n            </div>\n          </div>\n        {{/if}}\n      \n    */\n    {\n      \"id\": \"fdgx8vSR\",\n      \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"shouldShow\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"communiteq-admin-notice\\\"],[14,5,\\\"background-color: #fefefe; border: 4px solid #a00; padding: 10px;\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"adminNotice\\\"]]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"text-align: right; display: block;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"i\\\"],[12],[1,\\\"This message is being shown to forum staff only, regular users will not see it.\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[],false,[\\\"if\\\"]]\",\n      \"moduleName\": \"/var/www/discourse/app/assets/javascripts/discourse/discourse/plugins/z-communiteq-features/discourse/components/communiteq-admin-notice.js\",\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = CommuniteqAdminNotice;\n  ;\n});","define(\"discourse/plugins/z-communiteq-features/discourse/components/show-backup-info\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div style=\"padding: 12px; background-color: #d1f0ff; color: #222;\">\n  Off-site backups for disaster recovery are created every 24 hours. This page only shows the backups you have made yourself.\n  </div>\n  {{#if this.showMigrateInfo}}\n  <div style=\"padding: 12px; background-color: #fffbd6; color: #222;\">\n  <b>Important: </b>If you are migrating from another hosting provider then we recommend you to read\n  <a href=\"https://www.communiteq.com/discoursehosting/kb/migrate-from-another-provider/\" target=\"_blank\">our migration guide</a> before\n  attempting to restore a backup.\n  </div>\n  {{/if}}\n  \n  */\n  {\n    \"id\": \"gp6OHImn\",\n    \"block\": \"[[[10,0],[14,5,\\\"padding: 12px; background-color: #d1f0ff; color: #222;\\\"],[12],[1,\\\"\\\\nOff-site backups for disaster recovery are created every 24 hours. This page only shows the backups you have made yourself.\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showMigrateInfo\\\"]],[[[10,0],[14,5,\\\"padding: 12px; background-color: #fffbd6; color: #222;\\\"],[12],[1,\\\"\\\\n\\\"],[10,\\\"b\\\"],[12],[1,\\\"Important: \\\"],[13],[1,\\\"If you are migrating from another hosting provider then we recommend you to read\\\\n\\\"],[10,3],[14,6,\\\"https://www.communiteq.com/discoursehosting/kb/migrate-from-another-provider/\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"our migration guide\\\"],[13],[1,\\\" before\\\\nattempting to restore a backup.\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"b\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"discourse/plugins/z-communiteq-features/discourse/components/show-backup-info.hbs\",\n    \"isStrictMode\": false\n  });\n  const FEATURED_CLASS = \"show-backup-info\";\n  class ShowBackupInfo extends _component2.default {\n    static #_ = (() => dt7948.g(this.prototype, \"siteSettings\", [_service.inject]))();\n    #siteSettings = (() => (dt7948.i(this, \"siteSettings\"), void 0))();\n    get showMigrateInfo() {\n      return this.siteSettings.bootstrap_mode_enabled;\n    }\n  }\n  _exports.default = ShowBackupInfo;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ShowBackupInfo);\n});","define(\"discourse/plugins/z-communiteq-features/discourse/templates/connectors/admin-below-plugins-index/discoursehosting\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div style=\"padding: 12px; background-color: #fffbd6; color: #222;\">\n  In order to install plugins on Communiteq Discourse Hosting, please go to our control panel at <a target=\"_blank\" href=\"https://controlpanel.communiteq.com/cp/\">https://controlpanel.communiteq.com/cp/</a> and select Plugins from the left hand menu.\n  </div>\n  \n  */\n  {\n    \"id\": \"gzxrOPX2\",\n    \"block\": \"[[[10,0],[14,5,\\\"padding: 12px; background-color: #fffbd6; color: #222;\\\"],[12],[1,\\\"\\\\nIn order to install plugins on Communiteq Discourse Hosting, please go to our control panel at \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[14,6,\\\"https://controlpanel.communiteq.com/cp/\\\"],[12],[1,\\\"https://controlpanel.communiteq.com/cp/\\\"],[13],[1,\\\" and select Plugins from the left hand menu.\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"div\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"discourse/plugins/z-communiteq-features/discourse/templates/connectors/admin-below-plugins-index/discoursehosting.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/z-communiteq-features/discourse/templates/connectors/before-backup-list/discoursehosting\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ShowBackupInfo />\n  */\n  {\n    \"id\": \"C24cNrV4\",\n    \"block\": \"[[[8,[39,0],null,null,null]],[],false,[\\\"show-backup-info\\\"]]\",\n    \"moduleName\": \"discourse/plugins/z-communiteq-features/discourse/templates/connectors/before-backup-list/discoursehosting.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/z-communiteq-features/discourse/templates/connectors/below-site-header/show-admin-notice\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <CommuniteqAdminNotice />\n  */\n  {\n    \"id\": \"hvm9cjyK\",\n    \"block\": \"[[[8,[39,0],null,null,null]],[],false,[\\\"communiteq-admin-notice\\\"]]\",\n    \"moduleName\": \"discourse/plugins/z-communiteq-features/discourse/templates/connectors/below-site-header/show-admin-notice.hbs\",\n    \"isStrictMode\": false\n  });\n});"],"mappings":"AAAAA,OAAA,kNAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACA;AAEAC,OAAAC,eAAAP,EAAA,cACAQ,OAAA,IAEAR,EAAAS,aAAA;AACA,MAAAC,UAAAT,EAAAQ,QACAE,SAAA,KAAAC,OAAAC,EAAAC,KAAAC,UAAA,gBAAAb,EAAAc,SAAA;AACAC,GAAA,MAAAL,OAAAM,EAAAJ,KAAA;AACAH,SAAA,KAAAC,OAAAC,EAAAC,KAAAC,UAAA,eAAAb,EAAAc,SAAA;AACAG,GAAA,MAAAP,OAAAM,EAAAJ,KAAA;AACA,cAAAM,GACA,OAAAN,KAAAK,aAAAL,KAAAK,YAAAE,OAAA,IAAAP,KAAAG,aAAAK,uBACA,CACA,eAAAC,GACA,SAAApB,EAAAqB,UAAAV,KAAAG,aAAAK,wBACA,CACAX,SAAA,QAAAP,EAAAqB,uBAAA,EAAApB,EAAAqB,uBAeA,CACAC,GAAA,WACAC,MAAA,2kBACAC,WAAA,8IACAC,cAAA,IACAhB,MApBA,GAsBAd,EAAAS,QAAAC,C,ICxCAX,OAAA,yLAAAC,EAAAC,EAAAG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