{"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","ShowBackupInfo","site","showMigrateInfo","bootstrap_mode_enabled","_templateOnly","undefined","_showBackupInfo","scope","_communiteqAdminNotice"],"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/connectors/admin-below-plugins-index/discoursehosting.js","discourse/plugins/z-communiteq-features/discourse/connectors/before-backup-list/discoursehosting.js","discourse/plugins/z-communiteq-features/discourse/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\", \"@glimmer/component\", \"@ember/service\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ShowBackupInfo 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, \"site\", [_service.service]);\n    }\n    #site = (dt7948.i(this, \"site\"), void 0);\n    // after 2026.7, change to enable_site_owner_onboarding\n    get showMigrateInfo() {\n      return this.siteSettings.bootstrap_mode_enabled;\n    }\n    static {\n      (0, _component2.setComponentTemplate)((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\n        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\n          recommend you to read\n          <a href=\"https://www.communiteq.com/discoursehosting/kb/migrate-from-another-provider/\" target=\"_blank\">our migration guide</a>\n          before attempting to restore a backup.\n        </div>\n      {{/if}}\n      */\n      {\n        \"id\": \"0rHVYlqZ\",\n        \"block\": \"[[[10,0],[14,5,\\\"padding: 12px; background-color: #d1f0ff; color: #222;\\\"],[12],[1,\\\"\\\\n  Off-site backups for disaster recovery are created every 24 hours. This page\\\\n  only shows the backups you have made yourself.\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showMigrateInfo\\\"]],[[[1,\\\"  \\\"],[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\\\\n    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,\\\"\\\\n    before attempting to restore a backup.\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/z-communiteq-features/discourse/components/show-backup-info.js\",\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = ShowBackupInfo;\n});","define(\"discourse/plugins/z-communiteq-features/discourse/connectors/admin-below-plugins-index/discoursehosting\", [\"exports\", \"@ember/component\", \"@ember-decorators/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _component2, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _component.setComponentTemplate)((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\n    control panel at\n    <a target=\"_blank\" href=\"https://controlpanel.communiteq.com/cp/\">https://controlpanel.communiteq.com/cp/</a>\n    and select Plugins from the left hand menu.\n  </div>\n  */\n  {\n    \"id\": \"FbxSQ0i3\",\n    \"block\": \"[[[10,0],[14,5,\\\"padding: 12px; background-color: #fffbd6; color: #222;\\\"],[12],[1,\\\"\\\\n  In order to install plugins on Communiteq Discourse Hosting, please go to our\\\\n  control panel at\\\\n  \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[14,6,\\\"https://controlpanel.communiteq.com/cp/\\\"],[12],[1,\\\"https://controlpanel.communiteq.com/cp/\\\"],[13],[1,\\\"\\\\n  and select Plugins from the left hand menu.\\\\n\\\"],[13]],[],[]]\",\n    \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/z-communiteq-features/discourse/connectors/admin-below-plugins-index/discoursehosting.js\",\n    \"isStrictMode\": true\n  }), (0, _templateOnly.default)(undefined, \"discoursehosting\"));\n});","define(\"discourse/plugins/z-communiteq-features/discourse/connectors/before-backup-list/discoursehosting\", [\"exports\", \"@ember/component\", \"@ember-decorators/component\", \"discourse/plugins/z-communiteq-features/discourse/components/show-backup-info\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _component2, _showBackupInfo, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n  /*\n    <ShowBackupInfo />\n  */\n  {\n    \"id\": \"QNzkVe9o\",\n    \"block\": \"[[[8,[32,0],null,null,null]],[],[]]\",\n    \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/z-communiteq-features/discourse/connectors/before-backup-list/discoursehosting.js\",\n    \"scope\": () => [_showBackupInfo.default],\n    \"isStrictMode\": true\n  }), (0, _templateOnly.default)(undefined, \"discoursehosting\"));\n});","define(\"discourse/plugins/z-communiteq-features/discourse/connectors/below-site-header/show-admin-notice\", [\"exports\", \"@ember/component\", \"@ember-decorators/component\", \"discourse/plugins/z-communiteq-features/discourse/components/communiteq-admin-notice\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _component2, _communiteqAdminNotice, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n  /*\n    <CommuniteqAdminNotice />\n  */\n  {\n    \"id\": \"URBwA5Gn\",\n    \"block\": \"[[[8,[32,0],null,null,null]],[],[]]\",\n    \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/z-communiteq-features/discourse/connectors/below-site-header/show-admin-notice.js\",\n    \"scope\": () => [_communiteqAdminNotice.default],\n    \"isStrictMode\": true\n  }), (0, _templateOnly.default)(undefined, \"show-admin-notice\"));\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,OAA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