{"version":3,"file":"discourse-topic-voting.js","names":["define","_exports","_component","_tracking","_object","_service","_concatClass","_routeAction","_ajax","_ajaxError","_voteButton","_voteCount","_component2","_templateFactory","Object","defineProperty","value","default","VoteBox","dt7948","g","this","prototype","service","siteSettings","i","currentUser","tracked","votesAlert","allowClick","addVote","topic","args","ajax","type","data","topic_id","id","then","result","vote_count","user_voted","votes_exceeded","can_vote","votes_left","alert","catch","popupAjaxError","n","action","removeVote","closeVotesAlert","setComponentTemplate","createTemplateFactory","block","moduleName","scope","isStrictMode","_dButton","_dropdownMenu","_dMenu","_dIcon","_transformer","_truthHelpers","_discourseI18n","hasVoted","hasSeenSuccessMenu","buttonContent","content","closed","label","i18n","title","vote_limit","count","showVotedMenu","buttonClasses","onShowMenu","applyBehaviorTransformer","showLogin","dMenu","close","onRegisterApi","api","onCloseMenu","eq","and","not","_helper","_modifier","_asyncContent","_smallUserList","_decorators","_getUrl","_closeOnClickOutside","showWhoVoted","loadWhoVoted","users","map","user","template","avatar_template","username","post_url","url","toLowerCase","bind","click","event","preventDefault","stopPropagation","topic_voting_show_who_voted","clickOutside","on","hash","FeatureVotingSettingsUpsert","shouldRender","context","enable_simplified_category_creation","enableTopicVoting","outletArgs","transientData","custom_fields","enable_topic_voting","toString","onToggleTopicVoting","_","set","name","FeatureVotingSettings","Input","_voteBox","TopicTitleVoting","c","tagName","_routing","UserVotedTopics","LinkTo","resource","path","route","resetNamespace","_pluginApi","_navItem","initialize","withPluginApi","registerNotificationTypeRenderer","NotificationTypeBase","container","lookup","topic_voting_enabled","sortOrders","push","term","addNavigationBarItem","before","customFilter","category","customHref","pathFor","forceActive","router","queryParams","currentRoute","keys","length","getCurrentUser","addSearchSuggestion","registerValueTransformer","customFields","admin","setAdminPluginIcon","_category","reopen","computed","get","addPostClassesCallback","post","post_number","addTrackedPostProperties","addTagsHtmlCallback","buffer","userVotedClass","join","priority","modifyClass","Superclass","addCategorySortCriteria","addBehaviorTransformerName","_userAction","_userTopicList","UserActivityVotes","userActionType","TYPES","topics","model","store","findFiltered","filter","modelFor","emptyState","isCurrentUser","body"],"sources":["discourse/plugins/discourse-topic-voting/discourse/components/vote-box.js","discourse/plugins/discourse-topic-voting/discourse/components/vote-button.js","discourse/plugins/discourse-topic-voting/discourse/components/vote-count.js","discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings-upsert.js","discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings.js","discourse/plugins/discourse-topic-voting/discourse/connectors/topic-above-post-stream/topic-title-voting.js","discourse/plugins/discourse-topic-voting/discourse/connectors/user-activity-bottom/user-voted-topics.js","discourse/plugins/discourse-topic-voting/discourse/feature-voting-route-map.js","discourse/plugins/discourse-topic-voting/discourse/initializers/discourse-topic-voting.js","discourse/plugins/discourse-topic-voting/discourse/initializers/topic-voting-admin-plugin-configuration-nav.js","discourse/plugins/discourse-topic-voting/discourse/pre-initializers/extend-category-for-voting.js","discourse/plugins/discourse-topic-voting/discourse/pre-initializers/transformers.js","discourse/plugins/discourse-topic-voting/discourse/routes/user-activity/votes.js"],"sourcesContent":["define(\"discourse/plugins/discourse-topic-voting/discourse/components/vote-box\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"discourse/helpers/concat-class\", \"discourse/helpers/route-action\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\", \"discourse/plugins/discourse-topic-voting/discourse/components/vote-button\", \"discourse/plugins/discourse-topic-voting/discourse/components/vote-count\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _service, _concatClass, _routeAction, _ajax, _ajaxError, _voteButton, _voteCount, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class VoteBox 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    static {\n      dt7948.g(this.prototype, \"votesAlert\", [_tracking.tracked]);\n    }\n    #votesAlert = (dt7948.i(this, \"votesAlert\"), void 0);\n    static {\n      dt7948.g(this.prototype, \"allowClick\", [_tracking.tracked], function () {\n        return true;\n      });\n    }\n    #allowClick = (dt7948.i(this, \"allowClick\"), void 0);\n    addVote() {\n      let topic = this.args.topic;\n      return (0, _ajax.ajax)(\"/voting/vote\", {\n        type: \"POST\",\n        data: {\n          topic_id: topic.id\n        }\n      }).then(result => {\n        topic.vote_count = result.vote_count;\n        topic.user_voted = true;\n        this.currentUser.votes_exceeded = !result.can_vote;\n        this.currentUser.votes_left = result.votes_left;\n        this.votesAlert = result.alert;\n        this.allowClick = true;\n      }).catch(_ajaxError.popupAjaxError);\n    }\n    static {\n      dt7948.n(this.prototype, \"addVote\", [_object.action]);\n    }\n    removeVote() {\n      const topic = this.args.topic;\n      return (0, _ajax.ajax)(\"/voting/unvote\", {\n        type: \"POST\",\n        data: {\n          topic_id: topic.id\n        }\n      }).then(result => {\n        topic.vote_count = result.vote_count;\n        topic.user_voted = false;\n        this.currentUser.votes_exceeded = !result.can_vote;\n        this.currentUser.votes_left = result.votes_left;\n        this.allowClick = true;\n      }).catch(_ajaxError.popupAjaxError);\n    }\n    static {\n      dt7948.n(this.prototype, \"removeVote\", [_object.action]);\n    }\n    closeVotesAlert() {\n      this.votesAlert = null;\n    }\n    static {\n      dt7948.n(this.prototype, \"closeVotesAlert\", [_object.action]);\n    }\n    static {\n      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        <div\n        class={{concatClass\n          \"voting-wrapper\"\n          (if this.siteSettings.topic_voting_show_who_voted \"show-pointer\")\n        }}\n      >\n        <VoteCount @topic={{@topic}} @showLogin={{routeAction \"showLogin\"}} />\n        <VoteButton\n          @topic={{@topic}}\n          @allowClick={{this.allowClick}}\n          @showVoteOptions={{this.showVoteOptions}}\n          @addVote={{this.addVote}}\n          @showLogin={{routeAction \"showLogin\"}}\n          @removeVote={{this.removeVote}}\n        />\n      \n      </div>\n      */\n      {\n        \"id\": \"m0EgMBRb\",\n        \"block\": \"[[[10,0],[15,0,[28,[32,0],[\\\"voting-wrapper\\\",[52,[30,0,[\\\"siteSettings\\\",\\\"topic_voting_show_who_voted\\\"]],\\\"show-pointer\\\"]],null]],[12],[1,\\\"\\\\n  \\\"],[8,[32,1],null,[[\\\"@topic\\\",\\\"@showLogin\\\"],[[30,1],[28,[32,2],[\\\"showLogin\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[32,3],null,[[\\\"@topic\\\",\\\"@allowClick\\\",\\\"@showVoteOptions\\\",\\\"@addVote\\\",\\\"@showLogin\\\",\\\"@removeVote\\\"],[[30,1],[30,0,[\\\"allowClick\\\"]],[30,0,[\\\"showVoteOptions\\\"]],[30,0,[\\\"addVote\\\"]],[28,[32,2],[\\\"showLogin\\\"],null],[30,0,[\\\"removeVote\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[13]],[\\\"@topic\\\"],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/components/vote-box.js\",\n        \"scope\": () => [_concatClass.default, _voteCount.default, _routeAction.default, _voteButton.default],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = VoteBox;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/components/vote-button\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"discourse/components/d-button\", \"discourse/components/dropdown-menu\", \"discourse/float-kit/components/d-menu\", \"discourse/helpers/d-icon\", \"discourse/lib/transformer\", \"discourse/truth-helpers\", \"discourse-i18n\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _service, _dButton, _dropdownMenu, _dMenu, _dIcon, _transformer, _truthHelpers, _discourseI18n, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class VoteBox extends _component.default {\n    static {\n      dt7948.g(this.prototype, \"currentUser\", [_service.service]);\n    }\n    #currentUser = (dt7948.i(this, \"currentUser\"), void 0);\n    static {\n      dt7948.g(this.prototype, \"hasVoted\", [_tracking.tracked], function () {\n        return false;\n      });\n    }\n    #hasVoted = (dt7948.i(this, \"hasVoted\"), void 0);\n    static {\n      dt7948.g(this.prototype, \"hasSeenSuccessMenu\", [_tracking.tracked], function () {\n        return false;\n      });\n    }\n    #hasSeenSuccessMenu = (dt7948.i(this, \"hasSeenSuccessMenu\"), void 0);\n    get topic() {\n      return this.args.topic;\n    }\n    get buttonContent() {\n      const content = {};\n      if (this.currentUser) {\n        if (this.topic.closed) {\n          content.label = (0, _discourseI18n.i18n)(\"topic_voting.voting_closed_title\");\n          content.title = (0, _discourseI18n.i18n)(\"topic_voting.voting_closed_title\");\n        } else if (this.topic.user_voted) {\n          content.label = (0, _discourseI18n.i18n)(\"topic_voting.voted_title\");\n          content.title = (0, _discourseI18n.i18n)(\"topic_voting.voted_title\");\n        } else if (this.currentUser.vote_limit === 0) {\n          content.label = (0, _discourseI18n.i18n)(\"topic_voting.locked\");\n          content.title = (0, _discourseI18n.i18n)(\"topic_voting.locked_description\");\n        } else if (this.currentUser.votes_exceeded) {\n          content.label = (0, _discourseI18n.i18n)(\"topic_voting.voting_limit\");\n          content.title = (0, _discourseI18n.i18n)(\"topic_voting.reached_limit\");\n        } else {\n          content.label = (0, _discourseI18n.i18n)(\"topic_voting.vote_title\");\n          content.title = (0, _discourseI18n.i18n)(\"topic_voting.vote_title\");\n        }\n      } else {\n        content.label = (0, _discourseI18n.i18n)(\"topic_voting.anonymous_button\", {\n          count: 1\n        });\n        content.title = (0, _discourseI18n.i18n)(\"topic_voting.anonymous_button\", {\n          count: 1\n        });\n      }\n      return content;\n    }\n    get showVotedMenu() {\n      return this.hasVoted && !this.hasSeenSuccessMenu;\n    }\n    get buttonClasses() {\n      return this.currentUser?.vote_limit === 0 ? \"btn-default vote-button\" : \"btn-primary vote-button\";\n    }\n    onShowMenu() {\n      if (!this.topic.user_voted) {\n        this.hasVoted = false;\n        this.hasSeenSuccessMenu = false;\n      }\n      (0, _transformer.applyBehaviorTransformer)(\"topic-vote-button-click\", () => {\n        if (!this.currentUser) {\n          return this.args.showLogin();\n        }\n        if (this.currentUser.vote_limit === 0) {\n          return;\n        }\n        // If user has already voted and seen the success menu, don't do anything\n        // The menu will show with the \"remove vote\" option\n        if (this.topic.user_voted && this.hasSeenSuccessMenu) {\n          return;\n        }\n        // If user hasn't voted yet, add vote and show success menu\n        if (!this.topic.closed && !this.topic.user_voted && !this.currentUser.votes_exceeded) {\n          this.args.addVote();\n          this.hasVoted = true;\n          // Don't set hasSeenSuccessMenu yet - it will be set when menu closes\n        }\n      });\n    }\n    static {\n      dt7948.n(this.prototype, \"onShowMenu\", [_object.action]);\n    }\n    addVote() {\n      this.args.addVote();\n      this.hasVoted = true;\n    }\n    static {\n      dt7948.n(this.prototype, \"addVote\", [_object.action]);\n    }\n    removeVote() {\n      this.args.removeVote();\n      this.hasVoted = false;\n      this.hasSeenSuccessMenu = false;\n      this.dMenu.close();\n    }\n    static {\n      dt7948.n(this.prototype, \"removeVote\", [_object.action]);\n    }\n    onRegisterApi(api) {\n      this.dMenu = api;\n    }\n    static {\n      dt7948.n(this.prototype, \"onRegisterApi\", [_object.action]);\n    }\n    onCloseMenu() {\n      if (this.hasVoted && !this.hasSeenSuccessMenu) {\n        this.hasSeenSuccessMenu = true;\n      }\n    }\n    static {\n      dt7948.n(this.prototype, \"onCloseMenu\", [_object.action]);\n    }\n    static {\n      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        <DMenu\n        @identifier=\"topic-voting-menu\"\n        @title={{this.buttonContent.title}}\n        @label={{this.buttonContent.label}}\n        @onShow={{this.onShowMenu}}\n        @onClose={{this.onCloseMenu}}\n        class={{this.buttonClasses}}\n        @onRegisterApi={{this.onRegisterApi}}\n      >\n        <:content>\n          <DropdownMenu as |dropdown|>\n            {{#if this.showVotedMenu}}\n              <dropdown.item class=\"topic-voting-menu__title\">\n                {{icon \"circle-check\"}}\n                <span>{{i18n \"topic_voting.voted_title\"}}</span>\n              </dropdown.item>\n              <dropdown.item class=\"topic-voting-menu__votes-left\">\n                <DButton\n                  @translatedLabel={{i18n\n                    \"topic_voting.see_votes\"\n                    count=this.currentUser.votes_left\n                    max=this.currentUser.vote_limit\n                  }}\n                  @href=\"/my/activity/votes\"\n                  @icon=\"check-to-slot\"\n                  class=\"btn-transparent see-votes topic-voting-menu__row-btn\"\n                />\n              </dropdown.item>\n            {{else if (eq this.currentUser.vote_limit 0)}}\n              <dropdown.item class=\"topic-voting-menu__title --locked\">\n                {{icon \"lock\"}}\n                <span>{{i18n \"topic_voting.locked_description\"}}</span>\n              </dropdown.item>\n            {{else if\n              (and this.currentUser.votes_exceeded (not this.topic.user_voted))\n            }}\n              <dropdown.item class=\"topic-voting-menu__row\">\n                <DButton\n                  @translatedLabel={{i18n\n                    \"topic_voting.see_votes\"\n                    count=this.currentUser.votes_left\n                    max=this.currentUser.vote_limit\n                  }}\n                  @href=\"/my/activity/votes\"\n                  @icon=\"check-to-slot\"\n                  class=\"btn-transparent see-votes topic-voting-menu__row-btn\"\n                />\n              </dropdown.item>\n            {{else}}\n              <dropdown.item class=\"topic-voting-menu__row\">\n                <DButton\n                  @translatedLabel={{i18n\n                    \"topic_voting.see_votes\"\n                    count=this.currentUser.votes_left\n                    max=this.currentUser.vote_limit\n                  }}\n                  @href=\"/my/activity/votes\"\n                  @icon=\"check-to-slot\"\n                  class=\"btn-transparent see-votes topic-voting-menu__row-btn\"\n                />\n              </dropdown.item>\n              {{#if this.topic.user_voted}}\n                <dropdown.item class=\"topic-voting-menu__row\">\n                  <DButton\n                    @translatedLabel={{i18n \"topic_voting.remove_vote\"}}\n                    @action={{this.removeVote}}\n                    @icon=\"arrow-rotate-left\"\n                    class=\"btn-transparent remove-vote topic-voting-menu__row-btn --danger\"\n                  />\n                </dropdown.item>\n              {{/if}}\n            {{/if}}\n          </DropdownMenu>\n        </:content>\n      </DMenu>\n      */\n      {\n        \"id\": \"CBFCM3iC\",\n        \"block\": \"[[[8,[32,0],[[16,0,[30,0,[\\\"buttonClasses\\\"]]]],[[\\\"@identifier\\\",\\\"@title\\\",\\\"@label\\\",\\\"@onShow\\\",\\\"@onClose\\\",\\\"@onRegisterApi\\\"],[\\\"topic-voting-menu\\\",[30,0,[\\\"buttonContent\\\",\\\"title\\\"]],[30,0,[\\\"buttonContent\\\",\\\"label\\\"]],[30,0,[\\\"onShowMenu\\\"]],[30,0,[\\\"onCloseMenu\\\"]],[30,0,[\\\"onRegisterApi\\\"]]]],[[\\\"content\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[32,1],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showVotedMenu\\\"]],[[[1,\\\"        \\\"],[8,[30,1,[\\\"item\\\"]],[[24,0,\\\"topic-voting-menu__title\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[32,2],[\\\"circle-check\\\"],null]],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[32,3],[\\\"topic_voting.voted_title\\\"],null]],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"item\\\"]],[[24,0,\\\"topic-voting-menu__votes-left\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[32,4],[[24,0,\\\"btn-transparent see-votes topic-voting-menu__row-btn\\\"]],[[\\\"@translatedLabel\\\",\\\"@href\\\",\\\"@icon\\\"],[[28,[32,3],[\\\"topic_voting.see_votes\\\"],[[\\\"count\\\",\\\"max\\\"],[[30,0,[\\\"currentUser\\\",\\\"votes_left\\\"]],[30,0,[\\\"currentUser\\\",\\\"vote_limit\\\"]]]]],\\\"/my/activity/votes\\\",\\\"check-to-slot\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,5],[[30,0,[\\\"currentUser\\\",\\\"vote_limit\\\"]],0],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"item\\\"]],[[24,0,\\\"topic-voting-menu__title --locked\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[32,2],[\\\"lock\\\"],null]],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[32,3],[\\\"topic_voting.locked_description\\\"],null]],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,6],[[30,0,[\\\"currentUser\\\",\\\"votes_exceeded\\\"]],[28,[32,7],[[30,0,[\\\"topic\\\",\\\"user_voted\\\"]]],null]],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"item\\\"]],[[24,0,\\\"topic-voting-menu__row\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[32,4],[[24,0,\\\"btn-transparent see-votes topic-voting-menu__row-btn\\\"]],[[\\\"@translatedLabel\\\",\\\"@href\\\",\\\"@icon\\\"],[[28,[32,3],[\\\"topic_voting.see_votes\\\"],[[\\\"count\\\",\\\"max\\\"],[[30,0,[\\\"currentUser\\\",\\\"votes_left\\\"]],[30,0,[\\\"currentUser\\\",\\\"vote_limit\\\"]]]]],\\\"/my/activity/votes\\\",\\\"check-to-slot\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[30,1,[\\\"item\\\"]],[[24,0,\\\"topic-voting-menu__row\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[32,4],[[24,0,\\\"btn-transparent see-votes topic-voting-menu__row-btn\\\"]],[[\\\"@translatedLabel\\\",\\\"@href\\\",\\\"@icon\\\"],[[28,[32,3],[\\\"topic_voting.see_votes\\\"],[[\\\"count\\\",\\\"max\\\"],[[30,0,[\\\"currentUser\\\",\\\"votes_left\\\"]],[30,0,[\\\"currentUser\\\",\\\"vote_limit\\\"]]]]],\\\"/my/activity/votes\\\",\\\"check-to-slot\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"topic\\\",\\\"user_voted\\\"]],[[[1,\\\"          \\\"],[8,[30,1,[\\\"item\\\"]],[[24,0,\\\"topic-voting-menu__row\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[32,4],[[24,0,\\\"btn-transparent remove-vote topic-voting-menu__row-btn --danger\\\"]],[[\\\"@translatedLabel\\\",\\\"@action\\\",\\\"@icon\\\"],[[28,[32,3],[\\\"topic_voting.remove_vote\\\"],null],[30,0,[\\\"removeVote\\\"]],\\\"arrow-rotate-left\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]],[]]]],[]]],[1,\\\"    \\\"]],[1]]]]],[1,\\\"\\\\n  \\\"]],[]]]]]],[\\\"dropdown\\\"],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/components/vote-button.js\",\n        \"scope\": () => [_dMenu.default, _dropdownMenu.default, _dIcon.default, _discourseI18n.i18n, _dButton.default, _truthHelpers.eq, _truthHelpers.and, _truthHelpers.not],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = VoteBox;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/components/vote-count\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/helper\", \"@ember/modifier\", \"@ember/object\", \"@ember/service\", \"discourse/components/async-content\", \"discourse/components/small-user-list\", \"discourse/helpers/concat-class\", \"discourse/lib/ajax\", \"discourse/lib/decorators\", \"discourse/lib/get-url\", \"discourse/modifiers/close-on-click-outside\", \"discourse/truth-helpers\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _helper, _modifier, _object, _service, _asyncContent, _smallUserList, _concatClass, _ajax, _decorators, _getUrl, _closeOnClickOutside, _truthHelpers, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class VoteBox 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    static {\n      dt7948.g(this.prototype, \"showWhoVoted\", [_tracking.tracked], function () {\n        return false;\n      });\n    }\n    #showWhoVoted = (dt7948.i(this, \"showWhoVoted\"), void 0);\n    async loadWhoVoted() {\n      return (0, _ajax.ajax)(\"/voting/who\", {\n        type: \"GET\",\n        data: {\n          topic_id: this.args.topic.id\n        }\n      }).then(users => users.map(user => {\n        return {\n          template: user.avatar_template,\n          username: user.username,\n          post_url: user.post_url,\n          url: (0, _getUrl.default)(\"/u/\") + user.username.toLowerCase()\n        };\n      }));\n    }\n    static {\n      dt7948.n(this.prototype, \"loadWhoVoted\", [_decorators.bind]);\n    }\n    click(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (!this.currentUser) {\n        return this.args.showLogin();\n      }\n      if (this.showWhoVoted) {\n        this.showWhoVoted = false;\n      } else if (this.siteSettings.topic_voting_show_who_voted) {\n        this.showWhoVoted = true;\n      }\n    }\n    static {\n      dt7948.n(this.prototype, \"click\", [_object.action]);\n    }\n    clickOutside() {\n      this.showWhoVoted = false;\n    }\n    static {\n      dt7948.n(this.prototype, \"clickOutside\", [_object.action]);\n    }\n    static {\n      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        <div\n        class={{concatClass\n          \"vote-count-wrapper\"\n          (if (eq @topic.vote_count 0) \"no-votes\")\n        }}\n        {{on \"click\" this.click}}\n        role=\"button\"\n      >\n        <div class=\"vote-count\">\n          {{@topic.vote_count}}\n        </div>\n      </div>\n      \n      {{#if this.showWhoVoted}}\n        <div\n          class=\"who-voted popup-menu voting-popup-menu\"\n          {{closeOnClickOutside\n            this.clickOutside\n            (hash secondaryTargetSelector=\".vote-count-wrapper\")\n          }}\n        >\n          <AsyncContent @asyncData={{this.loadWhoVoted}}>\n            <:content as |voters|>\n              <SmallUserList @users={{voters}} class=\"regular-votes\" />\n            </:content>\n          </AsyncContent>\n        </div>\n      {{/if}}\n      */\n      {\n        \"id\": \"ChWpaOk7\",\n        \"block\": \"[[[11,0],[16,0,[28,[32,0],[\\\"vote-count-wrapper\\\",[52,[28,[32,1],[[30,1,[\\\"vote_count\\\"]],0],null],\\\"no-votes\\\"]],null]],[24,\\\"role\\\",\\\"button\\\"],[4,[32,2],[\\\"click\\\",[30,0,[\\\"click\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"vote-count\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,1,[\\\"vote_count\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showWhoVoted\\\"]],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"who-voted popup-menu voting-popup-menu\\\"],[4,[32,3],[[30,0,[\\\"clickOutside\\\"]],[28,[32,4],null,[[\\\"secondaryTargetSelector\\\"],[\\\".vote-count-wrapper\\\"]]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[32,5],null,[[\\\"@asyncData\\\"],[[30,0,[\\\"loadWhoVoted\\\"]]]],[[\\\"content\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[32,6],[[24,0,\\\"regular-votes\\\"]],[[\\\"@users\\\"],[[30,2]]],null],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@topic\\\",\\\"voters\\\"],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/components/vote-count.js\",\n        \"scope\": () => [_concatClass.default, _truthHelpers.eq, _modifier.on, _closeOnClickOutside.default, _helper.hash, _asyncContent.default, _smallUserList.default],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = VoteBox;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings-upsert\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"discourse-i18n\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _object, _discourseI18n, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FeatureVotingSettingsUpsert extends _component.default {\n    static shouldRender(args, context) {\n      return context.siteSettings.enable_simplified_category_creation;\n    }\n    get enableTopicVoting() {\n      const value = this.args.outletArgs.transientData?.custom_fields?.enable_topic_voting;\n      return value?.toString() === \"true\";\n    }\n    async onToggleTopicVoting(_, {\n      set,\n      name\n    }) {\n      await set(name, this.enableTopicVoting ? \"false\" : \"true\");\n    }\n    static {\n      dt7948.n(this.prototype, \"onToggleTopicVoting\", [_object.action]);\n    }\n    static {\n      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        {{#let @outletArgs.form as |form|}}\n        <form.Section @title={{i18n \"topic_voting.title\"}}>\n          <form.Object @name=\"custom_fields\" as |customFields|>\n            <customFields.Field\n              @name=\"enable_topic_voting\"\n              @title={{i18n \"topic_voting.allow_topic_voting\"}}\n              @onSet={{this.onToggleTopicVoting}}\n              @type=\"checkbox\"\n              as |field|\n            >\n              <field.Control checked={{this.enableTopicVoting}} />\n            </customFields.Field>\n          </form.Object>\n        </form.Section>\n      {{/let}}\n      */\n      {\n        \"id\": \"oSzPsEYz\",\n        \"block\": \"[[[44,[[30,1,[\\\"form\\\"]]],[[[1,\\\"  \\\"],[8,[30,2,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[32,0],[\\\"topic_voting.title\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"Object\\\"]],null,[[\\\"@name\\\"],[\\\"custom_fields\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"Field\\\"]],null,[[\\\"@name\\\",\\\"@title\\\",\\\"@onSet\\\",\\\"@type\\\"],[\\\"enable_topic_voting\\\",[28,[32,0],[\\\"topic_voting.allow_topic_voting\\\"],null],[30,0,[\\\"onToggleTopicVoting\\\"]],\\\"checkbox\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"Control\\\"]],[[16,\\\"checked\\\",[30,0,[\\\"enableTopicVoting\\\"]]]],null,null],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"]],[3]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]],[\\\"@outletArgs\\\",\\\"form\\\",\\\"customFields\\\",\\\"field\\\"],[\\\"let\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings-upsert.js\",\n        \"scope\": () => [_discourseI18n.i18n],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = FeatureVotingSettingsUpsert;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings\", [\"exports\", \"@glimmer/component\", \"@ember/component\", \"discourse-i18n\", \"@ember/template-factory\"], function (_exports, _component, _component2, _discourseI18n, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FeatureVotingSettings extends _component.default {\n    static shouldRender(args, context) {\n      return !context.siteSettings.enable_simplified_category_creation;\n    }\n    static {\n      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        <section class=\"field\">\n        <h3>{{i18n \"topic_voting.title\"}}</h3>\n        <div class=\"enable-topic-voting\">\n          <label class=\"checkbox-label\">\n            <Input\n              @type=\"checkbox\"\n              @checked={{@outletArgs.category.custom_fields.enable_topic_voting}}\n            />\n            {{i18n \"topic_voting.allow_topic_voting\"}}\n          </label>\n        </div>\n      </section>\n      */\n      {\n        \"id\": \"qE8EB75E\",\n        \"block\": \"[[[10,\\\"section\\\"],[14,0,\\\"field\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,[28,[32,0],[\\\"topic_voting.title\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"enable-topic-voting\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"checkbox-label\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[32,1],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"category\\\",\\\"custom_fields\\\",\\\"enable_topic_voting\\\"]]]],null],[1,\\\"\\\\n      \\\"],[1,[28,[32,0],[\\\"topic_voting.allow_topic_voting\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@outletArgs\\\"],[]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings.js\",\n        \"scope\": () => [_discourseI18n.i18n, _component2.Input],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = FeatureVotingSettings;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/connectors/topic-above-post-stream/topic-title-voting\", [\"exports\", \"@ember/component\", \"@ember-decorators/component\", \"discourse/helpers/route-action\", \"discourse/plugins/discourse-topic-voting/discourse/components/vote-box\", \"@ember/template-factory\"], function (_exports, _component, _component2, _routeAction, _voteBox, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-classic-components */\n  const TopicTitleVoting = dt7948.c(class TopicTitleVoting extends _component.default {\n    static {\n      (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        <div\n        class=\"topic-above-post-stream-outlet topic-title-voting\"\n        ...attributes\n      >\n        {{#if this.model.can_vote}}\n          {{#if this.model.postStream.loaded}}\n            {{#if this.model.postStream.firstPostPresent}}\n              <div class=\"voting title-voting\">\n                <VoteBox\n                  @topic={{this.model}}\n                  @showLogin={{routeAction \"showLogin\"}}\n                />\n              </div>\n            {{/if}}\n          {{/if}}\n        {{/if}}\n      </div>\n      */\n      {\n        \"id\": \"C7t806pZ\",\n        \"block\": \"[[[11,0],[24,0,\\\"topic-above-post-stream-outlet topic-title-voting\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"can_vote\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"postStream\\\",\\\"loaded\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"postStream\\\",\\\"firstPostPresent\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"voting title-voting\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[32,0],null,[[\\\"@topic\\\",\\\"@showLogin\\\"],[[30,0,[\\\"model\\\"]],[28,[32,1],[\\\"showLogin\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[13]],[\\\"&attrs\\\"],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/connectors/topic-above-post-stream/topic-title-voting.js\",\n        \"scope\": () => [_voteBox.default, _routeAction.default],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }, [(0, _component2.tagName)(\"\")]);\n  var _default = _exports.default = TopicTitleVoting;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/connectors/user-activity-bottom/user-voted-topics\", [\"exports\", \"@glimmer/component\", \"@ember/routing\", \"@ember/service\", \"discourse/helpers/d-icon\", \"discourse-i18n\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _routing, _service, _dIcon, _discourseI18n, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class UserVotedTopics 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      (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        {{#if this.siteSettings.topic_voting_show_votes_on_profile}}\n        <li class=\"user-nav__activity-votes\">\n      \n          <LinkTo @route=\"userActivity.votes\">\n            {{icon \"check-to-slot\" aria-hidden=\"true\"}}\n            {{i18n \"topic_voting.vote_title_plural\"}}\n          </LinkTo>\n        </li>\n      {{/if}}\n      */\n      {\n        \"id\": \"shy8LxFl\",\n        \"block\": \"[[[41,[30,0,[\\\"siteSettings\\\",\\\"topic_voting_show_votes_on_profile\\\"]],[[[1,\\\"  \\\"],[10,\\\"li\\\"],[14,0,\\\"user-nav__activity-votes\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[8,[32,0],null,[[\\\"@route\\\"],[\\\"userActivity.votes\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[32,1],[\\\"check-to-slot\\\"],[[\\\"aria-hidden\\\"],[\\\"true\\\"]]]],[1,\\\"\\\\n      \\\"],[1,[28,[32,2],[\\\"topic_voting.vote_title_plural\\\"],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],[\\\"if\\\"]]\",\n        \"moduleName\": \"/var/www/discourse/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/connectors/user-activity-bottom/user-voted-topics.js\",\n        \"scope\": () => [_routing.LinkTo, _dIcon.default, _discourseI18n.i18n],\n        \"isStrictMode\": true\n      }), this);\n    }\n  }\n  _exports.default = UserVotedTopics;\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/feature-voting-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: \"user\",\n    path: \"users/:username\",\n    map() {\n      this.route(\"userActivity\", {\n        path: \"activity\",\n        resetNamespace: true\n      }, function () {\n        this.route(\"votes\");\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/initializers/discourse-topic-voting\", [\"exports\", \"discourse/lib/plugin-api\", \"discourse/models/nav-item\", \"discourse-i18n\"], function (_exports, _pluginApi, _navItem, _discourseI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: \"discourse-topic-voting\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(api => {\n        api.registerNotificationTypeRenderer(\"votes_released\", NotificationTypeBase => {\n          return class extends NotificationTypeBase {\n            get label() {\n              return (0, _discourseI18n.i18n)(\"topic_voting.notification_label.vote_released\");\n            }\n          };\n        });\n        const siteSettings = api.container.lookup(\"service:site-settings\");\n        if (siteSettings.topic_voting_enabled) {\n          const pageSearchController = api.container.lookup(\"controller:full-page-search\");\n          pageSearchController.sortOrders.push({\n            name: (0, _discourseI18n.i18n)(\"search.most_votes\"),\n            id: 5,\n            term: \"order:votes\"\n          });\n          api.addNavigationBarItem({\n            name: \"votes\",\n            before: \"top\",\n            customFilter: category => {\n              return category && category.can_vote;\n            },\n            customHref: (category, args) => {\n              const path = _navItem.default.pathFor(\"latest\", args);\n              return `${path}?order=votes`;\n            },\n            forceActive: (category, args, router) => {\n              const queryParams = router.currentRoute.queryParams;\n              return queryParams && Object.keys(queryParams).length === 1 && queryParams[\"order\"] === \"votes\";\n            }\n          });\n          api.addNavigationBarItem({\n            name: \"my_votes\",\n            before: \"top\",\n            customFilter: category => {\n              return category && category.can_vote && api.getCurrentUser();\n            },\n            customHref: (category, args) => {\n              const path = _navItem.default.pathFor(\"latest\", args);\n              return `${path}?state=my_votes`;\n            },\n            forceActive: (category, args, router) => {\n              const queryParams = router.currentRoute.queryParams;\n              return queryParams && Object.keys(queryParams).length === 1 && queryParams[\"state\"] === \"my_votes\";\n            }\n          });\n        }\n        if (siteSettings.topic_voting_enabled) {\n          api.addSearchSuggestion(\"order:votes\");\n        }\n        api.registerValueTransformer(\"category-available-views\", ({\n          value,\n          context\n        }) => {\n          if (context.customFields.enable_topic_voting) {\n            value.push({\n              name: (0, _discourseI18n.i18n)(\"filters.votes.title\"),\n              value: \"votes\"\n            });\n          }\n        });\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/initializers/topic-voting-admin-plugin-configuration-nav\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PLUGIN_ID = \"discourse-topic-voting\";\n  var _default = _exports.default = {\n    name: \"topic-voting-admin-plugin-configuration-nav\",\n    initialize(container) {\n      const currentUser = container.lookup(\"service:current-user\");\n      if (!currentUser?.admin) {\n        return;\n      }\n      (0, _pluginApi.withPluginApi)(api => {\n        api.setAdminPluginIcon(PLUGIN_ID, \"check-to-slot\");\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/pre-initializers/extend-category-for-voting\", [\"exports\", \"@glimmer/tracking\", \"@ember/object\", \"discourse/lib/plugin-api\", \"discourse/models/category\", \"discourse-i18n\"], function (_exports, _tracking, _object, _pluginApi, _category, _discourseI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function initialize(api) {\n    _category.default.reopen({\n      enable_topic_voting: (0, _object.computed)(\"custom_fields.enable_topic_voting\", {\n        get() {\n          return (0, _object.get)(this.custom_fields, \"enable_topic_voting\") === true;\n        }\n      })\n    });\n    api.addPostClassesCallback(post => {\n      if (post.post_number === 1 && post.can_vote) {\n        return [\"voting-post\"];\n      }\n    });\n    api.addTrackedPostProperties(\"can_vote\");\n    api.addTagsHtmlCallback(topic => {\n      if (!topic.can_vote) {\n        return;\n      }\n      let buffer = [];\n      let title = \"\";\n      if (topic.user_voted) {\n        title = ` title='${(0, _discourseI18n.i18n)(\"topic_voting.voted\")}'`;\n      }\n      let userVotedClass = topic.user_voted ? \" voted\" : \"\";\n      buffer.push(`<a href='${topic.url}' class='list-vote-count vote-count-${topic.vote_count} discourse-tag simple${userVotedClass}'${title}>`);\n      buffer.push((0, _discourseI18n.i18n)(\"topic_voting.votes\", {\n        count: topic.vote_count\n      }));\n      buffer.push(\"</a>\");\n      if (buffer.length > 0) {\n        return buffer.join(\"\");\n      }\n    }, {\n      priority: -100\n    });\n    api.modifyClass(\"model:topic\", Superclass => class extends Superclass {\n      static {\n        dt7948.g(this.prototype, \"vote_count\", [_tracking.tracked]);\n      }\n      #vote_count = (dt7948.i(this, \"vote_count\"), void 0);\n      static {\n        dt7948.g(this.prototype, \"user_voted\", [_tracking.tracked]);\n      }\n      #user_voted = (dt7948.i(this, \"user_voted\"), void 0);\n    });\n    api.modifyClass(\"model:user\", Superclass => class extends Superclass {\n      static {\n        dt7948.g(this.prototype, \"votes_exceeded\", [_tracking.tracked]);\n      }\n      #votes_exceeded = (dt7948.i(this, \"votes_exceeded\"), void 0);\n      static {\n        dt7948.g(this.prototype, \"votes_left\", [_tracking.tracked]);\n      }\n      #votes_left = (dt7948.i(this, \"votes_left\"), void 0);\n    });\n  }\n  var _default = _exports.default = {\n    name: \"extend-category-for-voting\",\n    before: \"inject-discourse-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(api => initialize(api));\n      (0, _pluginApi.withPluginApi)(api => api.addCategorySortCriteria(\"votes\"));\n    }\n  };\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/pre-initializers/transformers\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: \"discourse-topic-voting-transformers\",\n    before: \"freeze-valid-transformers\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(api => {\n        api.addBehaviorTransformerName(\"topic-vote-button-click\");\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-topic-voting/discourse/routes/user-activity/votes\", [\"exports\", \"discourse/models/user-action\", \"discourse/routes/user-topic-list\", \"discourse-i18n\"], function (_exports, _userAction, _userTopicList, _discourseI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class UserActivityVotes extends _userTopicList.default {\n    userActionType = _userAction.default.TYPES.topics;\n    model() {\n      return this.store.findFiltered(\"topicList\", {\n        filter: \"topics/voted-by/\" + this.modelFor(\"user\").get(\"username_lower\")\n      }).then(model => {\n        model.set(\"emptyState\", this.emptyState());\n        return model;\n      });\n    }\n    emptyState() {\n      const user = this.modelFor(\"user\");\n      const title = this.isCurrentUser(user) ? (0, _discourseI18n.i18n)(\"topic_voting.no_votes_title_self\") : (0, _discourseI18n.i18n)(\"topic_voting.no_votes_title_others\", {\n        username: user.username\n      });\n      return {\n        title,\n        body: \"\"\n      };\n    }\n  }\n  _exports.default = UserActivityVotes;\n});"],"mappings":"AAAAA,OAAA,8dAAAC,EAAAC,EAA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