{"version":3,"file":"z-communiteq-features.js","names":["define","_exports","_component","_service","_template","_component2","_templateFactory","Object","defineProperty","value","default","CommuniteqAdminNotice","dt7948","g","this","prototype","service","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 {\n      dt7948.g(this.prototype, \"siteSettings\", [_service.service]);\n    }\n    #siteSettings = (dt7948.i(this, \"siteSettings\"), void 0);\n    static {\n      dt7948.g(this.prototype, \"currentUser\", [_service.service]);\n    }\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 {\n      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\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        \"id\": \"ZXJ+byK3\",\n        \"block\": \"[[[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]],[],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/z-communiteq-features/discourse/components/communiteq-admin-notice.js\",\n        \"isStrictMode\": true\n      }), this);\n    }\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\": \"LrDIaj7x\",\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]],[],[\\\"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 {\n      dt7948.g(this.prototype, \"siteSettings\", [_service.service]);\n    }\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\": \"1Uk9blzI\",\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\\\"]],[],[\\\"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\": \"xp2uS8YV\",\n    \"block\": \"[[[8,[39,0],null,null,null]],[],[\\\"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\": \"iINETUYm\",\n    \"block\": \"[[[8,[39,0],null,null,null]],[],[\\\"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,iNAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACA;AAEAC,OAAAC,eAAAP,EAAA,cACAQ,OAAA,IAEAR,EAAAS,aAAA;AACA,MAAAC,UAAAT,EAAAQ,eAEAE,OAAAC,EAAAC,KAAAC,UAAA,gBAAAZ,EAAAa,SACA,CACAC,QAAAL,OAAAM,EAAAJ,KAAA;OAEAF,OAAAC,EAAAC,KAAAC,UAAA,eAAAZ,EAAAa,SACA,CACAG,QAAAP,OAAAM,EAAAJ,KAAA;AACA,cAAAM,GACA,OAAAN,KAAAK,aAAAL,KAAAK,YAAAE,OAAA,IAAAP,KAAAG,aAAAK,uBACA,CACA,eAAAC,GACA,SAAAnB,EAAAoB,UAAAV,KAAAG,aAAAK,wBACA,SAEA,EAAAjB,EAAAoB,uBAAA,EAAAnB,EAAAoB,uBAaA,CACAC,GAAA,WACAC,MAAA,khBACAC,WAAA,gIACAC,cAAA,IACAhB,KACA,EAEAb,EAAAS,QAAAC,C,GC5CAX,OAAA,wLAAAC,EAAAC,EAAAG,EAAAF,EAAAG,GACA;AAEAC,OAAAC,eAAAP,EAAA,cACAQ,OAAA,IAEAR,EAAAS,aAAA;AACA,MAAAqB,GAAA,EAAAzB,EAAAoB,uBAcA,CAC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