{"version":3,"sources":["webpack:///./src/views/apps/leaderboard/core.vue?169a","webpack:///./src/views/apps/leaderboard/core.vue?fd38","webpack:///./src/views/apps/leaderboard/core.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","key","style","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","title","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_hoisted_55","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_link","$t","currentLanguage","scoreboard","leader","index","user","id","user_position","nick","src","avatar","alt","to","name","params","default","user_patent","icon","_","userPatent","score","value","scoreLevel","level","first_blood_count","xp","data","vpn","ip","online","components","setup","store","t","getters","getCurrentScoreSystem","currentUser","getCurrentLanguage","localStorage","getItem","dispatch","GET_SCORE_SYSTEM","console","log","Math","floor","patents","range","Infinity","defaultPatent","foundPatent","find","__exports__"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,uCACtBC,EAAa,CAAED,MAAO,sBACtBE,EAAa,CAAEF,MAAO,aACtBG,EAAa,CAAEH,MAAO,6BACtBI,EAAa,CAAEJ,MAAO,eACtBK,EAAa,CAAEL,MAAO,OACtBM,EAAa,CAAEN,MAAO,mCACtBO,EAA0B,gCAAoB,KAAM,CAAEP,MAAO,+BAAiC,CACrF,6BAAiB,+BACjB,gCAAoB,OAAQ,CAAEA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6B,EAEnB,IAAMC,EAAcJ,EAAQK,MAC1B,SAAC,G,IAAEJ,EAAK,QAAO,OAAA3B,GAAS2B,EAAM,IAAM3B,GAAS2B,EAAM,MAGrD,OAAIG,EACK,CACLrC,KAAMoB,EAAKhC,EAAgBoB,MAAK,YAAY6B,EAAYrC,MACxDI,KAAMiC,EAAYjC,MAIfgC,GAGP,MAAO,CACL5C,KAAI,EACJH,WAAU,EACVoB,WAAU,EACVrB,gBAAe,EACfkB,WAAU,M,wBCxGlB,MAAMiC,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAS5D,MAErD","file":"js/chunk-2d0db0cf.c86aff0c.js","sourcesContent":["import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex justify-content-center mt-10\" }\nconst _hoisted_2 = { class: \"col-md-9 col-sm-12\" }\nconst _hoisted_3 = { class: \"card-body\" }\nconst _hoisted_4 = { class: \"d-flex align-items-center\" }\nconst _hoisted_5 = { class: \"flex-grow-1\" }\nconst _hoisted_6 = { class: \"row\" }\nconst _hoisted_7 = { class: \"col-md-12 col-sm-12 text-center\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"h3\", { class: \"card-title text-center fs-1\" }, [\n /*#__PURE__*/_createTextVNode(\" Hacking Club Leader Board \"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"bi-trophy bi fs-3\" })\n], -1)\nconst _hoisted_9 = { class: \"text-center text-gray-800\" }\nconst _hoisted_10 = { class: \"col-md-12 col-sm-12\" }\nconst _hoisted_11 = { class: \"\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_13 = { class: \"mt-10\" }\nconst _hoisted_14 = { class: \"table table-responsive table-striped table-row-bordered table-row-gray-300 align-middle gs-6 gy-3\" }\nconst _hoisted_15 = { class: \"fs-6 fw-bold text-gray-700 border-bottom border-top\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"th\", { class: \"ps-4 py-3 min-w-10px text-start\" }, \"# Rank\", -1)\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"th\", { class: \"p-0 py-3 min-w-10px text-start\" }, \"  Player\", -1)\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"th\", { class: \"p-0 py-3 min-w-60px text-start\" }, null, -1)\nconst _hoisted_19 = { class: \"pe-4 py-3 min-w-20px text-end\" }\nconst _hoisted_20 = {\n key: 0,\n style: {\"font-size\":\"20px\"}\n}\nconst _hoisted_21 = /*#__PURE__*/_createTextVNode(\" 1°  \")\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"bi bi-trophy\",\n style: {\"color\":\"#ffd700\",\"font-size\":\"20px\"}\n}, null, -1)\nconst _hoisted_23 = [\n _hoisted_21,\n _hoisted_22\n]\nconst _hoisted_24 = {\n key: 1,\n style: {\"font-size\":\"20px\"}\n}\nconst _hoisted_25 = /*#__PURE__*/_createTextVNode(\" 2°  \")\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"bi bi-trophy\",\n style: {\"color\":\"#c0c0c0\",\"font-size\":\"20px\"}\n}, null, -1)\nconst _hoisted_27 = [\n _hoisted_25,\n _hoisted_26\n]\nconst _hoisted_28 = {\n key: 2,\n style: {\"font-size\":\"20px\"}\n}\nconst _hoisted_29 = /*#__PURE__*/_createTextVNode(\" 3°  \")\nconst _hoisted_30 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"bi bi-trophy\",\n style: {\"color\":\"#cd7f32\",\"font-size\":\"20px\"}\n}, null, -1)\nconst _hoisted_31 = [\n _hoisted_29,\n _hoisted_30\n]\nconst _hoisted_32 = {\n key: 3,\n style: {\"font-size\":\"20px\"}\n}\nconst _hoisted_33 = { class: \"\" }\nconst _hoisted_34 = [\"title\"]\nconst _hoisted_35 = [\"src\"]\nconst _hoisted_36 = {\n key: 0,\n class: \"pulse pulse-success position-absolute ms-10\",\n style: {\"left\":\"0\",\"top\":\"0\"}\n}\nconst _hoisted_37 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bullet bullet-dot bg-success h-10px w-10px\" }, null, -1)\nconst _hoisted_38 = /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"pulse-ring position-absolute border-3\",\n style: {\"left\":\"-15px\",\"top\":\"-11px\"}\n}, null, -1)\nconst _hoisted_39 = [\n _hoisted_37,\n _hoisted_38\n]\nconst _hoisted_40 = [\"title\", \"src\"]\nconst _hoisted_41 = { class: \"text-muted fw-bold d-block\" }\nconst _hoisted_42 = [\"src\"]\nconst _hoisted_43 = { class: \"ms-2 mt-2 italic\" }\nconst _hoisted_44 = { class: \"text-muted fw-bold d-block\" }\nconst _hoisted_45 = { class: \"text-muted fw-bold d-block\" }\nconst _hoisted_46 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bi bi-droplet text-danger fs-6\" }, null, -1)\nconst _hoisted_47 = {\n key: 0,\n class: \"fw-bold fs-6 text-gray-500 mb-4\",\n title: \"The most valuable hacker on the platform\"\n}\nconst _hoisted_48 = /*#__PURE__*/_createTextVNode(\" MVH \")\nconst _hoisted_49 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-gem text-info\" }, null, -1)\nconst _hoisted_50 = [\n _hoisted_48,\n _hoisted_49\n]\nconst _hoisted_51 = { class: \"text-end\" }\nconst _hoisted_52 = { class: \"card-title mt-5\" }\nconst _hoisted_53 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"text-muted ms-2\" }, \"XP\", -1)\nconst _hoisted_54 = { class: \"progress-lb col-md-12 mt-2\" }\nconst _hoisted_55 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"small\", _hoisted_9, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.rank.rank_title_desc`)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"table\", _hoisted_14, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", _hoisted_15, [\n _hoisted_16,\n _hoisted_17,\n _hoisted_18,\n _createElementVNode(\"th\", _hoisted_19, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.rank.progress_next_level`)), 1)\n ])\n ]),\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.scoreboard, (leader, index) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n class: _normalizeClass([\"bg-hover-lighten\", leader.user.id === _ctx.user.id ? '' : '']),\n key: index\n }, [\n (leader.user_position == 1)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_20, _hoisted_23))\n : _createCommentVNode(\"\", true),\n (leader.user_position == 2)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_24, _hoisted_27))\n : _createCommentVNode(\"\", true),\n (leader.user_position == 3)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_28, _hoisted_31))\n : _createCommentVNode(\"\", true),\n (leader.user_position > 3)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_32, _toDisplayString(leader.user_position) + \"°   \", 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"td\", _hoisted_33, [\n _createElementVNode(\"div\", {\n class: \"position-relative symbol symbol-circle symbol-45px pulse\",\n \"data-bs-toggle\": \"tooltip\",\n \"data-bs-boundary\": \"window\",\n \"data-bs-placement\": \"top\",\n title: leader.user.nick\n }, [\n _createElementVNode(\"img\", {\n src: leader.user.avatar,\n alt: \"img\"\n }, null, 8, _hoisted_35),\n (leader.user.id === _ctx.user.id )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_36, _hoisted_39))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_34)\n ]),\n _createElementVNode(\"td\", null, [\n _createVNode(_component_router_link, {\n to: {name: 'profile-user', params: {id: leader.user.id}},\n class: \"text-dark fw-bolder text-hover-primary mb-1 fs-6\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(leader.user.name) + \" \", 1),\n _createElementVNode(\"img\", {\n title: leader.user.user_patent?.name,\n src: '/media/logos/badges/'+leader.user.user_patent?.icon,\n class: \"h-20px align-self-center\",\n alt: \"\"\n }, null, 8, _hoisted_40)\n ]),\n _: 2\n }, 1032, [\"to\"]),\n _createElementVNode(\"div\", _hoisted_41, [\n _createElementVNode(\"span\", null, [\n _createElementVNode(\"img\", {\n src: '/media/logos/badges/'+_ctx.userPatent(leader?.user?.score?.value).icon,\n class: \"h-20px align-self-center\",\n alt: \"\"\n }, null, 8, _hoisted_42)\n ]),\n _createElementVNode(\"span\", _hoisted_43, _toDisplayString(_ctx.userPatent(leader?.user?.score?.value).name), 1)\n ]),\n _createElementVNode(\"span\", _hoisted_44, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.level`)) + \" \" + _toDisplayString(_ctx.scoreLevel(leader.value).level), 1),\n _createElementVNode(\"span\", _hoisted_45, [\n _createTextVNode(_toDisplayString(leader.first_blood_count) + \" First Blood \", 1),\n _hoisted_46\n ]),\n (index + 1 == 1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_47, _hoisted_50))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"td\", _hoisted_51, [\n _createElementVNode(\"h6\", _hoisted_52, [\n _createTextVNode(_toDisplayString(_ctx.scoreLevel(leader.value).xp) + \" \", 1),\n _hoisted_53,\n _createElementVNode(\"div\", _hoisted_54, [\n _createElementVNode(\"div\", {\n class: \"progress-value-lb bg-success\",\n style: _normalizeStyle([{\"margin-left\":\"-3px\"}, 'width: ' + _ctx.scoreLevel(leader.value).xp /10 + '%'])\n }, null, 4)\n ]),\n _hoisted_55\n ])\n ])\n ], 2))\n }), 128))\n ])\n ])\n ])\n ])\n ])\n ])\n ])\n ])\n ])\n ])\n ]))\n}","\r\nimport ApiService from \"@/core/services/ApiService\";\r\nimport {Actions} from \"@/store/enums/StoreEnums\";\r\nimport {defineComponent, computed, ref, onBeforeMount, onMounted} from \"vue\";\r\nimport { useStore } from \"vuex\";\r\nimport { useRoute, useRouter } from \"vue-router\";\r\nimport type {ScoreSystemType} from \"@/types/ScoreSystemType\";\r\nimport {useI18n} from \"vue-i18n\";\r\n\r\nexport default defineComponent({\r\n name: \"leaderboard-component\",\r\n data() {\r\n return {\r\n vpn: {\r\n ip: \"\",\r\n online: false\r\n }\r\n }\r\n },\r\n components: {\r\n\r\n },\r\n setup() {\r\n const store = useStore();\r\n const route = useRoute();\r\n const router = useRouter();\r\n const { t } = useI18n();\r\n const id = ref(2);\r\n const scoreboard = computed(() => {\r\n return store.getters.getCurrentScoreSystem;\r\n });\r\n\r\n const user = computed(() => {\r\n return store.getters.currentUser;\r\n });\r\n const currentLanguage = computed(() => store.getters.getCurrentLanguage || localStorage.getItem('currentLanguage'));\r\n\r\n onMounted( async () =>{\r\n try{\r\n await store.dispatch(Actions.GET_SCORE_SYSTEM, id.value);\r\n }catch (e) {\r\n console.log(e)\r\n }\r\n });\r\n\r\n const scoreLevel = (value: number) => {\r\n let level = Math.floor(value / 1000);\r\n let xp = value % 1000;\r\n\r\n return {\r\n level: level < 1 ? 0 : level,\r\n xp: xp\r\n };\r\n }\r\n const userPatent = (score: number) => {\r\n const patents = [\r\n { range: [0, 1999], name: 'recruit', icon: 'recruta.png' },\r\n { range: [2000, 3999], name: 'soldier', icon: 'soldado.png' },\r\n { range: [4000, 5999], name: 'cable', icon: 'cabo.png' },\r\n { range: [6000, 7999], name: '3rd_sergeant', icon: '3-sargento.png' },\r\n { range: [8000, 9999], name: '2rd_sergeant', icon: '2-sargento.png' },\r\n { range: [10000, 11999], name: '1rd_sergeant', icon: '1-sargento.png' },\r\n { range: [12000, 13999], name: 'warrant_officer', icon: 'subtenente.png' },\r\n { range: [14000, 15999], name: 'aspirant', icon: 'aspirante.png' },\r\n { range: [16000, 17999], name: '2nd_lieutenant', icon: '2-tenente.png' },\r\n { range: [18000, 19999], name: '1nd_lieutenant', icon: '1-tenente.png' },\r\n { range: [20000, 21999], name: 'captain', icon: 'capitao.png' },\r\n { range: [22000, 23999], name: 'major', icon: 'major.png' },\r\n { range: [24000, 25999], name: 'lieutenant_colonel', icon: 'tenente-coronel.png' },\r\n { range: [26000, 27999], name: 'colonel', icon: 'coronel.png' },\r\n { range: [28000, 29999], name: 'attack_general', icon: 'general-de-ataque.png' },\r\n { range: [30000, 31999], name: 'stealth_general', icon: 'general-de-furtividade.png' },\r\n { range: [32000, 33999], name: 'general_of_intelligence', icon: 'general-de-inteligencia.png' },\r\n { range: [34000, 39999], name: 'marshal', icon: 'marechal.png' },\r\n { range: [40000, 49999], name: 'supreme_commander', icon: 'supremo-comandante.png' },\r\n { range: [50000, 59999], name: 'grand_marshal', icon: 'grao-marechal.png' },\r\n { range: [60000, 69999], name: 'warlord', icon: 'senhor-da-guerra.png' },\r\n { range: [70000, 79999], name: 'arconte', icon: 'arconte.png' },\r\n { range: [80000, 89999], name: 'supreme_leader', icon: 'lider-supremo.png' },\r\n { range: [90000, 99999], name: 'primordial', icon: 'primordial.png' },\r\n { range: [100000, Infinity], name: 'hakai', icon: 'hakai.png' }\r\n ];\r\n\r\n const defaultPatent = {\r\n name: t(`${currentLanguage.value}.patents.recruit`),\r\n icon: 'recruta.png'\r\n };\r\n\r\n if (!score) return defaultPatent;\r\n\r\n const foundPatent = patents.find(\r\n ({ range }) => score >= range[0] && score <= range[1]\r\n );\r\n\r\n if (foundPatent) {\r\n return {\r\n name: t(`${currentLanguage.value}.patents.${foundPatent.name}`),\r\n icon: foundPatent.icon\r\n };\r\n }\r\n\r\n return defaultPatent;\r\n };\r\n\r\n return {\r\n user,\r\n scoreboard,\r\n scoreLevel,\r\n currentLanguage,\r\n userPatent\r\n\r\n };\r\n },\r\n});\r\n","import { render } from \"./core.vue?vue&type=template&id=06af3f0a&ts=true\"\nimport script from \"./core.vue?vue&type=script&lang=ts\"\nexport * from \"./core.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/codebuild/output/src791094775/src/hackingclub-spa/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}