{"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","initialVote","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","alreadyVoted","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","_templateOnly","Input","undefined","_voteBox","TopicTitleVoting","c","classNames","tagName","_routing","UserVotedTopics","LinkTo","resource","path","route","resetNamespace","_pluginApi","_navItem","name","initialize","withPluginApi","container","lookup","topic_voting_enabled","sortOrders","push","term","addNavigationBarItem","before","customFilter","category","customHref","pathFor","forceActive","router","queryParams","currentRoute","keys","length","getCurrentUser","addSearchSuggestion","registerValueTransformer","context","customFields","enable_topic_voting","admin","setAdminPluginIcon","_category","reopen","computed","get","custom_fields","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","set","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.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    static {\n      dt7948.g(this.prototype, \"initialVote\", [_tracking.tracked], function () {\n        return false;\n      });\n    }\n    #initialVote = (dt7948.i(this, \"initialVote\"), 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\": \"BgeYH6tD\",\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\": \"/root/prime/srv/discourse/app/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    topic = this.args.topic;\n    alreadyVoted = this.topic.user_voted;\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      (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              <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          </DropdownMenu>\n        </:content>\n      </DMenu>\n      */\n      {\n        \"id\": \"VClVtE8e\",\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        \\\"],[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      \\\"]],[]]]],[]]]],[]]],[1,\\\"    \\\"]],[1]]]]],[1,\\\"\\\\n  \\\"]],[]]]]]],[\\\"dropdown\\\"],[\\\"if\\\"]]\",\n        \"moduleName\": \"/root/prime/srv/discourse/app/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\": \"rn1Ul3JU\",\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\": \"/root/prime/srv/discourse/app/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\", [\"exports\", \"@ember/component\", \"discourse-i18n\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _discourseI18n, _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    <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\": \"LRSUk3hj\",\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\": \"/root/prime/srv/discourse/app/frontend/discourse/discourse/plugins/discourse-topic-voting/discourse/connectors/category-custom-settings/feature-voting-settings.js\",\n    \"scope\": () => [_discourseI18n.i18n, _component.Input],\n    \"isStrictMode\": true\n  }), (0, _templateOnly.default)(undefined, \"feature-voting-settings\"));\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        {{#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      */\n      {\n        \"id\": \"n5IUsLzC\",\n        \"block\": \"[[[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]],[],[\\\"if\\\"]]\",\n        \"moduleName\": \"/root/prime/srv/discourse/app/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.classNames)(\"topic-above-post-stream-outlet\", \"topic-title-voting\"), (0, _component2.tagName)(\"div\")]);\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\": \"1wi4xqTG\",\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\": \"/root/prime/srv/discourse/app/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        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    }\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