{"version":3,"file":"discourse-patreon.js","names":["define","_exports","_ajax","_url","Object","defineProperty","value","default","shouldRender","args","context","siteSettings","patreon_enabled","model","patreon_id","setupComponent","component","set","actions","checkPatreonEmail","user","ajax","userPath","username_lower","data","window","location","pathname","then","result","email","url","this","_jquery","_cookie","incrementTopicsOpened","numTopicsOpened","cookieName","_args","currentUser","didInsertElement","showDonationPrompt","patreon_donation_prompt_enabled","patreon_donation_prompt_campaign_url","show_donation_prompt","patreon_donation_prompt_show_after_topics","close","expires","moment","add","toDate","element","fadeOut","_controller","_service","_ajaxError","_getUrl","_decorators","_I18n","_filterRule","extend","dt7948","p","dialog","inject","prettyPrintReward","reward","amount_cents","title","rewardsNames","values","rewards","filter","r","id","map","editing","create","group_id","save","rule","get","groups","find","x","parseInt","v","includes","method","getProperties","obj","Boolean","rewards_ids","pushObject","group","catch","popupAjaxError","removeObject","updateData","finally","messageBus","subscribe","unsubscribe","refreshUrl","alert","message","t","didConfirm","didCancel","_pluginApi","_patreon","initWithApi","api","getCurrentUser","onAppEvent","topic","isPrivateMessage","name","initialize","withPluginApi","_rest","reward_list","resource","path","route","_rsvp","_group","_discourse","Promise","all","findAll","ignore_automatic","_ref","g","filters","last_sync_at","setupController","controller","filtersArray","entries","_ref2","k","reward_ids","setProperties","_deprecationsHelper","_templateFactory","createTemplateFactory","block","moduleName","scope","isStrictMode","_isComponent","_thisFallbackHelper","_tryLookupHelper"],"sources":["discourse/plugins/discourse-patreon/discourse/connectors/admin-user-details/patreon.js","discourse/plugins/discourse-patreon/discourse/connectors/topic-above-footer-buttons/patreon.js","discourse/plugins/discourse-patreon/discourse/controllers/admin-plugins-patreon.js","discourse/plugins/discourse-patreon/discourse/initializers/patreon.js","discourse/plugins/discourse-patreon/discourse/models/filter-rule.js","discourse/plugins/discourse-patreon/discourse/patreon-route-map.js","discourse/plugins/discourse-patreon/discourse/routes/admin-plugins-patreon.js","discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.js","discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.js","discourse/plugins/discourse-patreon/discourse/templates/connectors/topic-above-footer-buttons/patreon.js"],"sourcesContent":["define(\"discourse/plugins/discourse-patreon/discourse/connectors/admin-user-details/patreon\", [\"exports\", \"discourse/lib/ajax\", \"discourse/lib/url\"], function (_exports, _ajax, _url) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    shouldRender(args, context) {\n      return context.siteSettings.patreon_enabled && args.model.patreon_id;\n    },\n    setupComponent(args, component) {\n      component.set(\"patron_url\", \"https://patreon.com/members\");\n    },\n    actions: {\n      checkPatreonEmail(user) {\n        (0, _ajax.ajax)((0, _url.userPath)(`${user.username_lower}/patreon_email.json`), {\n          data: {\n            context: window.location.pathname\n          }\n        }).then(result => {\n          if (result) {\n            const email = result.email;\n            let url = \"https://patreon.com/members\";\n            if (email) {\n              url = `${url}?query=${email}`;\n            }\n            this.set(\"patreon_email\", email);\n            this.set(\"patron_url\", url);\n          }\n        });\n      }\n    }\n  };\n});","define(\"discourse/plugins/discourse-patreon/discourse/connectors/topic-above-footer-buttons/patreon\", [\"exports\", \"jquery\", \"discourse/lib/cookie\"], function (_exports, _jquery, _cookie) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.incrementTopicsOpened = incrementTopicsOpened;\n  let numTopicsOpened = 0;\n  const cookieName = \"PatreonDonationPromptClosed\";\n  function incrementTopicsOpened() {\n    numTopicsOpened++;\n  }\n  var _default = _exports.default = {\n    shouldRender(_args, component) {\n      return component.currentUser;\n    },\n    setupComponent(_args, component) {\n      component.didInsertElement = function () {\n        const showDonationPrompt = this.siteSettings.patreon_enabled && this.siteSettings.patreon_donation_prompt_enabled && this.siteSettings.patreon_donation_prompt_campaign_url !== \"\" && this.currentUser.show_donation_prompt && (0, _cookie.default)(cookieName) !== \"t\" && numTopicsOpened > this.siteSettings.patreon_donation_prompt_show_after_topics;\n        this.set(\"showDonationPrompt\", showDonationPrompt);\n      };\n    },\n    actions: {\n      close() {\n        // hide the donation prompt for 30 days\n        const expires = moment().add(30, \"d\").toDate();\n        (0, _cookie.default)(cookieName, \"t\", {\n          expires\n        });\n        (0, _jquery.default)(this.element).fadeOut(700);\n      }\n    }\n  };\n});","define(\"discourse/plugins/discourse-patreon/discourse/controllers/admin-plugins-patreon\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\", \"discourse-common/lib/get-url\", \"discourse-common/utils/decorators\", \"I18n\", \"discourse/plugins/discourse-patreon/discourse/models/filter-rule\"], function (_exports, _controller, _service, _ajax, _ajaxError, _getUrl, _decorators, _I18n, _filterRule) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _controller.default.extend(dt7948.p({\n    dialog: (0, _service.inject)(),\n    prettyPrintReward: reward => {\n      return `$${reward.amount_cents / 100} - ${reward.title}`;\n    },\n    rewardsNames() {\n      return Object.values(this.rewards).filter(r => r.id >= 0).map(r => this.prettyPrintReward(r));\n    },\n    editing: _filterRule.default.create({\n      group_id: null\n    }),\n    actions: {\n      save() {\n        const rule = this.get(\"editing\");\n        const model = this.get(\"model\");\n        rule.set(\"group\", this.groups.find(x => x.id === parseInt(rule.get(\"group_id\"), 10)));\n        rule.set(\"rewards_ids\", Object.values(this.rewards).filter(v => rule.get(\"reward_list\").includes(this.prettyPrintReward(v))).map(r => r.id));\n        (0, _ajax.ajax)(\"/patreon/list.json\", {\n          method: \"POST\",\n          data: rule.getProperties(\"group_id\", \"rewards_ids\")\n        }).then(() => {\n          let obj = model.find(x => x.get(\"group_id\") === rule.get(\"group_id\"));\n          const rewards = rule.get(\"reward_list\").filter(Boolean);\n          if (obj) {\n            obj.set(\"reward_list\", rewards);\n            obj.set(\"rewards\", rewards);\n            obj.set(\"rewards_ids\", rule.rewards_ids);\n          } else {\n            model.pushObject(_filterRule.default.create({\n              group: rule.get(\"group.name\"),\n              rewards\n            }));\n          }\n          this.set(\"editing\", _filterRule.default.create({\n            group_id: null\n          }));\n        }).catch(_ajaxError.popupAjaxError);\n      },\n      delete(rule) {\n        const model = this.get(\"model\");\n        (0, _ajax.ajax)(\"/patreon/list.json\", {\n          method: \"DELETE\",\n          data: rule.getProperties(\"group_id\")\n        }).then(() => {\n          let obj = model.find(x => x.get(\"group_id\") === rule.get(\"group_id\"));\n          model.removeObject(obj);\n        }).catch(_ajaxError.popupAjaxError);\n      },\n      updateData() {\n        this.set(\"updatingData\", true);\n        (0, _ajax.ajax)(\"/patreon/update_data.json\", {\n          method: \"POST\"\n        }).catch(_ajaxError.popupAjaxError).finally(() => this.set(\"updatingData\", false));\n        this.messageBus.subscribe(\"/patreon/background_sync\", () => {\n          this.messageBus.unsubscribe(\"/patreon/background_sync\");\n          this.set(\"updatingData\", false);\n          const refreshUrl = (0, _getUrl.default)(\"/admin/plugins/patreon\");\n          this.dialog.alert({\n            message: _I18n.default.t(\"patreon.refresh_page\"),\n            didConfirm: () => window.location.pathname = refreshUrl,\n            didCancel: () => window.location.pathname = refreshUrl\n          });\n        });\n      }\n    }\n  }, [[\"method\", \"rewardsNames\", [(0, _decorators.default)(\"rewards\")]]]));\n});","define(\"discourse/plugins/discourse-patreon/discourse/initializers/patreon\", [\"exports\", \"discourse/lib/plugin-api\", \"discourse/plugins/discourse-patreon/discourse/connectors/topic-above-footer-buttons/patreon\"], function (_exports, _pluginApi, _patreon) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function initWithApi(api) {\n    const currentUser = api.getCurrentUser();\n    api.onAppEvent(\"page:topic-loaded\", topic => {\n      if (!topic) {\n        return;\n      }\n      const isPrivateMessage = topic.isPrivateMessage;\n      if (!currentUser || isPrivateMessage) {\n        return;\n      }\n      (0, _patreon.incrementTopicsOpened)();\n    });\n  }\n  var _default = _exports.default = {\n    name: \"patreon\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", initWithApi);\n    }\n  };\n});","define(\"discourse/plugins/discourse-patreon/discourse/models/filter-rule\", [\"exports\", \"discourse/models/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _rest.default.extend({\n    group_id: -1,\n    reward_list: \"\"\n  });\n});","define(\"discourse/plugins/discourse-patreon/discourse/patreon-route-map\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    resource: \"admin.adminPlugins\",\n    path: \"/plugins\",\n    map() {\n      this.route(\"patreon\");\n    }\n  };\n});","define(\"discourse/plugins/discourse-patreon/discourse/routes/admin-plugins-patreon\", [\"exports\", \"rsvp\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\", \"discourse/models/group\", \"discourse/routes/discourse\", \"discourse/plugins/discourse-patreon/discourse/models/filter-rule\"], function (_exports, _rsvp, _ajax, _ajaxError, _group, _discourse, _filterRule) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* We use three main model to get this page working:\n   *  Discourse Groups (excluding the automatic ones), Patreon rewards and\n   *  and current filters (one filter is a tuple between 1 Discourse group and N Patreon rewards)\n   */\n  var _default = _exports.default = _discourse.default.extend({\n    model() {\n      return _rsvp.Promise.all([(0, _ajax.ajax)(\"/patreon/list.json\"), _group.default.findAll({\n        ignore_automatic: true\n      })]).then(_ref => {\n        let [result, groups] = _ref;\n        groups = groups.map(g => {\n          return {\n            id: g.id,\n            name: g.name\n          };\n        });\n        return {\n          filters: result.filters,\n          rewards: result.rewards,\n          last_sync_at: result.last_sync_at,\n          groups\n        };\n      }).catch(_ajaxError.popupAjaxError);\n    },\n    setupController: function (controller, model) {\n      const rewards = model.rewards;\n      const groups = model.groups;\n      const filtersArray = Object.entries(model.filters).map(_ref2 => {\n        let [k, v] = _ref2;\n        const rewardsNames = v.map(r => rewards[r] ? ` $${rewards[r].amount_cents / 100} - ${rewards[r].title}` : \"\");\n        const group = groups.find(g => g.id === parseInt(k, 10));\n        return _filterRule.default.create({\n          group: group.name,\n          rewards: rewardsNames,\n          group_id: k,\n          reward_ids: v\n        });\n      });\n      controller.setProperties({\n        model: filtersArray,\n        groups,\n        rewards,\n        last_sync_at: model.last_sync_at\n      });\n    }\n  });\n});","define(\"discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon\", [\"exports\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _deprecationsHelper, _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    <section id=\"patreon\">\n    <h1>{{i18n \"patreon.header.rules\"}}</h1>\n    <table>\n      <thead>\n        <tr>\n          <th>{{i18n \"patreon.group\"}}</th>\n          <th>{{i18n \"patreon.rewards\"}}</th>\n          <th></th>\n        </tr>\n      </thead>\n  \n      <tbody>\n        {{#each model as |rule|}}\n          <tr class=\"\">\n            <td>{{rule.group}}</td>\n            <td>{{rule.rewards}}</td>\n            <td>\n              <div class=\"pull-right\">\n                <DButton\n                  @action={{action \"delete\"}}\n                  @actionParam={{rule}}\n                  @icon=\"far-trash-alt\"\n                  @title=\"patreon.delete\"\n                  class=\"delete btn-danger\"\n                />\n              </div>\n            </td>\n          </tr>\n        {{/each}}\n      </tbody>\n  \n      <tfoot>\n        <tr class=\"new-filter\">\n          <td><ComboBox\n              @value={{editing.group_id}}\n              @content={{groups}}\n              @nameProperty=\"name\"\n              @valueProperty=\"id\"\n              @none=\"patreon.select_group\"\n            /></td>\n          <td><ListSetting\n              @value={{editing.reward_list}}\n              @choices={{rewardsNames}}\n              class=\"rewards\"\n            /></td>\n          <td>\n            <div class=\"pull-right\">\n              <DButton\n                @action={{action \"save\"}}\n                @icon=\"check\"\n                @title=\"patreon.save\"\n                class=\"save btn-primary\"\n              />\n            </div>\n          </td>\n        </tr>\n      </tfoot>\n    </table>\n  \n    <p>{{i18n \"patreon.help_text\"}}</p>\n  \n    <DButton\n      @action={{action \"updateData\"}}\n      @icon=\"refresh\"\n      @disabled={{updatingData}}\n      @title=\"patreon.update_data\"\n      @label=\"patreon.update_data\"\n    />\n  \n    {{#if last_sync_at}}\n      <span class=\"last_synced\">\n        {{i18n \"patreon.last_synced\"}}:\n        {{html-safe (format-date last_sync_at leaveAgo=\"true\")}}\n      </span>\n    {{/if}}\n  </section>\n  */\n  {\n    \"id\": \"9MdLg5Ou\",\n    \"block\": \"[[[10,\\\"section\\\"],[14,1,\\\"patreon\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[12],[1,[28,[35,0],[\\\"patreon.header.rules\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,0],[\\\"patreon.group\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,0],[\\\"patreon.rewards\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"model\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"group\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"rewards\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,3],[[24,0,\\\"delete btn-danger\\\"]],[[\\\"@action\\\",\\\"@actionParam\\\",\\\"@icon\\\",\\\"@title\\\"],[[28,[37,4],[[30,0],\\\"delete\\\"],null],[30,1],\\\"far-trash-alt\\\",\\\"patreon.delete\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"new-filter\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[8,[39,5],null,[[\\\"@value\\\",\\\"@content\\\",\\\"@nameProperty\\\",\\\"@valueProperty\\\",\\\"@none\\\"],[[30,0,[\\\"editing\\\",\\\"group_id\\\"]],[30,0,[\\\"groups\\\"]],\\\"name\\\",\\\"id\\\",\\\"patreon.select_group\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[8,[39,6],[[24,0,\\\"rewards\\\"]],[[\\\"@value\\\",\\\"@choices\\\"],[[30,0,[\\\"editing\\\",\\\"reward_list\\\"]],[30,0,[\\\"rewardsNames\\\"]]]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,3],[[24,0,\\\"save btn-primary\\\"]],[[\\\"@action\\\",\\\"@icon\\\",\\\"@title\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"check\\\",\\\"patreon.save\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,2],[12],[1,[28,[35,0],[\\\"patreon.help_text\\\"],null]],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,3],null,[[\\\"@action\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@title\\\",\\\"@label\\\"],[[28,[37,4],[[30,0],\\\"updateData\\\"],null],\\\"refresh\\\",[30,0,[\\\"updatingData\\\"]],\\\"patreon.update_data\\\",\\\"patreon.update_data\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"last_sync_at\\\"]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"last_synced\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,0],[\\\"patreon.last_synced\\\"],null]],[1,\\\":\\\\n      \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"last_sync_at\\\"]]],[[\\\"leaveAgo\\\"],[\\\"true\\\"]]]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,[28,[32,0],[\\\"[[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `editing` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.editing}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `groups` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.groups}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `editing` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.editing}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `rewardsNames` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.rewardsNames}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `updatingData` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.updatingData}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `last_sync_at` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.last_sync_at}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `last_sync_at` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.last_sync_at}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[\\\"rule\\\"],false,[\\\"i18n\\\",\\\"each\\\",\\\"-track-array\\\",\\\"d-button\\\",\\\"action\\\",\\\"combo-box\\\",\\\"list-setting\\\",\\\"if\\\",\\\"html-safe\\\",\\\"format-date\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-patreon/discourse/templates/admin/plugins-patreon.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon\", [\"exports\", \"ember-this-fallback/is-component\", \"ember-this-fallback/this-fallback-helper\", \"ember-this-fallback/try-lookup-helper\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _isComponent, _thisFallbackHelper, _tryLookupHelper, _deprecationsHelper, _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    <section class=\"details\">\n    <h1>{{i18n \"patreon.title\"}}</h1>\n    <div class=\"display-row\">\n      <div class=\"field\">{{i18n \"patreon.field.id\"}}</div>\n      <div class=\"value\">{{model.patreon_id}}</div>\n    </div>\n    {{#if model.patreon_email_exists}}\n      <div class=\"display-row\">\n        <div class=\"field\">{{i18n \"patreon.field.email\"}}</div>\n        <div class=\"value\">\n          {{#if patreon_email}}\n            {{patreon_email}}\n          {{else}}\n            <DButton\n              @action={{action \"checkPatreonEmail\" model}}\n              @icon=\"far-envelope\"\n              @label=\"admin.users.check_email.text\"\n              @title=\"admin.users.check_email.title\"\n              class=\"btn-default\"\n            />\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n    {{#if model.patreon_amount_cents}}\n      <div class=\"display-row\">\n        <div class=\"field\">{{i18n \"patreon.field.amount_cents\"}}</div>\n        <div class=\"value\">{{model.patreon_amount_cents}}</div>\n      </div>\n    {{/if}}\n    {{#if model.patreon_rewards}}\n      <div class=\"display-row\">\n        <div class=\"field\">{{i18n \"patreon.field.rewards\"}}</div>\n        <div class=\"value\">{{model.patreon_rewards}}</div>\n      </div>\n    {{/if}}\n    {{#if model.patreon_declined_since}}\n      <div class=\"display-row\">\n        <div class=\"field\">{{i18n \"patreon.field.declined_since\"}}</div>\n        <div class=\"value\">{{html-safe\n            format-date\n            model.patreon_declined_since\n          }}</div>\n      </div>\n    {{/if}}\n    <div class=\"display-row\">\n      <div class=\"field\">{{i18n \"patreon.field.more_details.label\"}}</div>\n      <div class=\"value\">\n        <a rel=\"noopener noreferrer\" target=\"_blank\" href={{patron_url}}>\n          {{d-icon \"external-link-alt\"}}\n        </a>\n      </div>\n      <div class=\"controls\">\n        {{#if model.patreon_email}}\n          {{i18n \"patreon.field.more_details.help_text.email_available\"}}\n        {{else}}\n          {{i18n \"patreon.field.more_details.help_text.email_not_available\"}}\n        {{/if}}\n      </div>\n    </div>\n  </section>\n  */\n  {\n    \"id\": \"j8sOvzBh\",\n    \"block\": \"[[[10,\\\"section\\\"],[14,0,\\\"details\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[12],[1,[28,[35,0],[\\\"patreon.title\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"display-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,[28,[35,0],[\\\"patreon.field.id\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"patreon_id\\\"]]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"patreon_email_exists\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"display-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,[28,[35,0],[\\\"patreon.field.email\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"patreon_email\\\"]],[[[1,\\\"          \\\"],[41,[28,[32,0],[\\\"patreon_email\\\"],null],[[[8,[39,2],null,null,null]],[]],[[[44,[[28,[37,4],null,[[\\\"patreon_email\\\"],[[28,[32,1],[\\\"patreon_email\\\"],null]]]]],[[[1,[52,[30,1,[\\\"patreon_email\\\"]],[28,[30,1,[\\\"patreon_email\\\"]],null,null],[28,[32,2],[[30,0],\\\"patreon_email\\\",\\\"[\\\\\\\"The `patreon_email` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.patreon_email}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]]],[1]]]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,5],[[24,0,\\\"btn-default\\\"]],[[\\\"@action\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@title\\\"],[[28,[37,6],[[30,0],\\\"checkPatreonEmail\\\",[30,0,[\\\"model\\\"]]],null],\\\"far-envelope\\\",\\\"admin.users.check_email.text\\\",\\\"admin.users.check_email.title\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"patreon_amount_cents\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"display-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,[28,[35,0],[\\\"patreon.field.amount_cents\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"patreon_amount_cents\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"patreon_rewards\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"display-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,[28,[35,0],[\\\"patreon.field.rewards\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"patreon_rewards\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"patreon_declined_since\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"display-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,[28,[35,0],[\\\"patreon.field.declined_since\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,[28,[35,7],[[30,0,[\\\"format-date\\\"]],[30,0,[\\\"model\\\",\\\"patreon_declined_since\\\"]]],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"display-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,[28,[35,0],[\\\"patreon.field.more_details.label\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n      \\\"],[44,[[28,[37,4],null,[[\\\"patron_url\\\"],[[28,[32,1],[\\\"patron_url\\\"],null]]]]],[[[10,3],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[52,[30,2,[\\\"patron_url\\\"]],[28,[30,2,[\\\"patron_url\\\"]],null,null],[28,[32,2],[[30,0],\\\"patron_url\\\",\\\"[\\\\\\\"The `patron_url` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.patron_url}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"external-link-alt\\\"],null]],[1,\\\"\\\\n      \\\"],[13]],[2]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"patreon_email\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,0],[\\\"patreon.field.more_details.help_text.email_available\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,0],[\\\"patreon.field.more_details.help_text.email_not_available\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,[28,[32,3],[\\\"[[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `patreon_email` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.patreon_email}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `format-date` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.format-date}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[\\\"maybeHelpers\\\",\\\"maybeHelpers\\\"],false,[\\\"i18n\\\",\\\"if\\\",\\\"patreon-email\\\",\\\"let\\\",\\\"hash\\\",\\\"d-button\\\",\\\"action\\\",\\\"html-safe\\\",\\\"d-icon\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon.hbs\",\n    \"scope\": () => [_isComponent.default, _tryLookupHelper.default, _thisFallbackHelper.default, _deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-patreon/discourse/templates/connectors/topic-above-footer-buttons/patreon\", [\"exports\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _deprecationsHelper, _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    {{#if showDonationPrompt}}\n    <div class=\"patreon-donation-prompt\">\n      <span role=\"button\" class=\"close\" {{action \"close\"}}>\n        {{d-icon \"times\"}}\n      </span>\n  \n      {{html-safe\n        (i18n\n          \"patreon.donation_prompt.body\"\n          campaignUrl=siteSettings.patreon_donation_prompt_campaign_url\n        )\n      }}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"LG+oG44c\",\n    \"block\": \"[[[41,[30,0,[\\\"showDonationPrompt\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"patreon-donation-prompt\\\"],[12],[1,\\\"\\\\n    \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"close\\\"],[4,[38,1],[[30,0],\\\"close\\\"],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"times\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[1,[28,[35,3],[[28,[37,4],[\\\"patreon.donation_prompt.body\\\"],[[\\\"campaignUrl\\\"],[[30,0,[\\\"siteSettings\\\",\\\"patreon_donation_prompt_campaign_url\\\"]]]]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,[28,[32,0],[\\\"[[\\\\\\\"The `showDonationPrompt` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/topic-above-footer-buttons/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.showDonationPrompt}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `siteSettings` property path was used in the `discourse/plugins/discourse-patreon/discourse/templates/connectors/topic-above-footer-buttons/patreon.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.siteSettings}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[],false,[\\\"if\\\",\\\"action\\\",\\\"d-icon\\\",\\\"html-safe\\\",\\\"i18n\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-patreon/discourse/templates/connectors/topic-above-footer-buttons/patreon.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});"],"mappings":"AAAAA,OAAA,qJAAAC,EAAAC,EAAAC,GACA;AAEAC,OAAAC,eAAAJ,EAAA,cACAK,OAAA,IAEAL,EAAAM,aAAA;AACAN,EAAAM,QAAA,CACAC,aAAA,CAAAC,EAAAC,IACAA,EAAAC,aAAAC,iBAAAH,E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