{"version":3,"sources":["webpack:///./src/views/crafted/podium/PodiumIndex.vue?a6f5","webpack:///./src/views/crafted/podium/PodiumIndex.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","key","_hoisted_16","style","_hoisted_17","setup","__props","t","store","router","currentLanguage","getters","getCurrentLanguage","localStorage","getItem","allUsers","ApiService","get","then","response","status","value","data","allPatents","generateAllPatentsData","language","id","name","icon","point_range","Infinity","reverse","updateAllPatents","gotoUserProfile","userId","push","params","_ctx","_cache","patent","src","alt","$t","user","onClick","$event","user_id","profile_photo_path","nick","split","slice","length","__exports__"],"mappings":"uLAGMA,EAA0B,gCAAoB,MAAO,CAAEC,MAAO,YAAc,MAAO,GACnFC,EAAa,CAAED,MAAO,kBACtBE,EAA0B,+BAAmB,sUAAiV,GAC9XC,EAAa,CAAEH,MAAO,4BACtBI,EAAa,CAAEJ,MAAO,qCACtBK,EAAa,CAAEL,MAAO,4CACtBM,EAAa,CAAC,OACdC,EAAa,CAAEP,MAAO,mCACtBQ,EAAc,CAAER,MAAO,uCACvBS,EAAc,CAAET,MAAO,2BACvBU,EAAc,CAAC,WACfC,EAAc,CAAC,OACfC,EAAc,CAAEZ,MAAO,uBACvBa,EAAc,CAClBC,IAAK,EACLd,MAAO,uGAEHe,EAAc,CAAEC,MAAO,CAAC,MAAQ,OAAO,mBAAmB,QAAQ,OAAS,OAAO,gBAAgB,OAAO,QAAU,OAAO,kBAAkB,SAAS,cAAc,SAAS,gBAAgB,WAC5LC,EAA2B,gCAAoB,MAAO,CAAEjB,MAAO,yCAA2C,MAAO,GAS3F,+BAAiB,CAC3CkB,MAAA,SAAMC,GAEA,IAAAC,EAAM,iBAAS,EACjBC,EAAQ,iBACRC,EAAS,iBACTC,EAAkB,uBAAS,WAAM,OAAAF,EAAMG,QAAQC,oBAAsBC,aAAa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["import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, unref as _unref, createCommentVNode as _createCommentVNode, createStaticVNode as _createStaticVNode } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"row mb-5\" }, null, -1)\nconst _hoisted_2 = { class: \"card shadow-sm\" }\nconst _hoisted_3 = /*#__PURE__*/_createStaticVNode(\"

  Podium Hacking Club

O Podium Hacking Club é um lugar onde você pode identificar os melhores e mais talentosos membros do Hacking Club!

\", 2)\nconst _hoisted_5 = { class: \"d-flex flex-column gap-2\" }\nconst _hoisted_6 = { class: \"d-flex flex-stack justify-between\" }\nconst _hoisted_7 = { class: \"symbol symbol-50px d-flex flex-col gap-3\" }\nconst _hoisted_8 = [\"src\"]\nconst _hoisted_9 = { class: \"fs-6 fw-bold text-gray-800 mt-2\" }\nconst _hoisted_10 = { class: \"text-muted fw-semibold d-block fs-7\" }\nconst _hoisted_11 = { class: \"d-flex gap-4 flex-stack\" }\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = [\"src\"]\nconst _hoisted_14 = { class: \"mt-2 cursor-pointer\" }\nconst _hoisted_15 = {\n key: 1,\n class: \"symbol symbol-40px d-grid text-center items-center justify-center align-center align-content-center\"\n}\nconst _hoisted_16 = { style: {\"width\":\"40px\",\"background-color\":\"black\",\"height\":\"40px\",\"border-radius\":\"10px\",\"display\":\"flex\",\"justify-content\":\"center\",\"align-items\":\"center\",\"align-content\":\"center\"} }\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"separator separator-dashed my-1 mt-10\" }, null, -1)\n\nimport {computed, ref, onMounted} from \"vue\";\nimport {useRouter} from \"vue-router\";\nimport {useStore} from \"vuex\";\nimport ApiService from \"@/core/services/ApiService\";\nimport { useI18n } from 'vue-i18n';\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst { t } = useI18n();\nconst store = useStore();\nconst router = useRouter();\nconst currentLanguage = computed(() => store.getters.getCurrentLanguage || localStorage.getItem('currentLanguage'));\nconst certificationOK = ref();\nconst terms = ref(false);\nconst isChecked = ref(false);\nconst loading = ref(false);\nconst allUsers = ref([]);\n\nApiService.get(\"/account/podium\").then((response) => {\n \n if(response.status === 200){\n allUsers.value = response.data;\n }\n});\n\nconst allPatents = ref([]);\n\nconst generateAllPatentsData = (language: string) => {\n return [\n {\n id: 0,\n name: t(`${language}.patents.recruit`),\n icon: 'recruta.png',\n point_range: [0, 1999]\n },\n {\n id: 1,\n name: t(`${language}.patents.soldier`),\n icon: 'soldado.png',\n point_range: [2000, 3999]\n },\n {\n id: 2,\n name: t(`${language}.patents.cable`),\n icon: 'cabo.png',\n point_range: [4000, 5999]\n },\n {\n id: 3,\n name: t(`${language}.patents.3rd_sergeant`),\n icon: '3-sargento.png',\n point_range: [6000, 7999]\n },\n {\n id: 4,\n name: t(`${language}.patents.2rd_sergeant`),\n icon: '2-sargento.png',\n point_range: [8000, 9999]\n },\n {\n id: 5,\n name: t(`${language}.patents.1rd_sergeant`),\n icon: '1-sargento.png',\n point_range: [10000, 11999]\n },\n {\n id: 6,\n name: t(`${language}.patents.warrant_officer`),\n icon: 'subtenente.png',\n point_range: [12000, 13999]\n },\n {\n id: 7,\n name: t(`${language}.patents.aspirant`),\n icon: 'aspirante.png',\n point_range: [14000, 15999]\n },\n {\n id: 8,\n name: t(`${language}.patents.2nd_lieutenant`),\n icon: '2-tenente.png',\n point_range: [16000, 17999]\n },\n {\n id: 9,\n name: t(`${language}.patents.1nd_lieutenant`),\n icon: '1-tenente.png',\n point_range: [18000, 19999]\n },\n {\n id: 10,\n name: t(`${language}.patents.captain`),\n icon: 'capitao.png',\n point_range: [20000, 21999]\n },\n {\n id: 11,\n name: t(`${language}.patents.major`),\n icon: 'major.png',\n point_range: [22000, 23999]\n },\n {\n id: 12,\n name: t(`${language}.patents.lieutenant_colonel`),\n icon: 'tenente-coronel.png',\n point_range: [24000, 25999]\n },\n {\n id: 13,\n name: t(`${language}.patents.colonel`),\n icon: 'coronel.png',\n point_range: [26000, 27999]\n },\n {\n id: 14,\n name: t(`${language}.patents.attack_general`),\n icon: 'general-de-ataque.png',\n point_range: [28000, 29999]\n },\n {\n id: 15,\n name: t(`${language}.patents.stealth_general`),\n icon: 'general-de-furtividade.png',\n point_range: [30000, 31999]\n },\n {\n id: 16,\n name: t(`${language}.patents.general_of_intelligence`),\n icon: 'general-de-inteligencia.png',\n point_range: [32000, 33999]\n },\n {\n id: 17,\n name: t(`${language}.patents.marshal`),\n icon: 'marechal.png',\n point_range: [34000, 39999]\n },\n {\n id: 18,\n name: t(`${language}.patents.supreme_commander`),\n icon: 'supremo-comandante.png',\n point_range: [40000, 49999]\n },\n {\n id: 19,\n name: t(`${language}.patents.grand_marshal`),\n icon: 'grao-marechal.png',\n point_range: [50000, 59999]\n },\n {\n id: 20,\n name: t(`${language}.patents.warlord`),\n icon: 'senhor-da-guerra.png',\n point_range: [60000, 69999]\n },\n {\n id: 21,\n name: t(`${language}.patents.arconte`),\n icon: 'arconte.png',\n point_range: [70000, 79999]\n },\n {\n id: 22,\n name: t(`${language}.patents.supreme_leader`),\n icon: 'lider-supremo.png',\n point_range: [80000, 89999]\n },\n {\n id: 23,\n name: t(`${language}.patents.primordial`),\n icon: 'primordial.png',\n point_range: [90000, 99999]\n },\n {\n id: 24,\n name: t(`${language}.patents.hakai`),\n icon: 'hakai.png',\n point_range: [100000, Infinity]\n }\n ].reverse();\n};\n\nconst updateAllPatents = (language: string) => {\n //@ts-ignore\n allPatents.value = generateAllPatentsData(language);\n};\nupdateAllPatents(currentLanguage.value);\n\nconst gotoUserProfile = (userId: number) => {\n router.push({name: 'profile-user', params: {id: userId}});\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _hoisted_1,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(allPatents.value, (patent) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"px-1 py-1 mx-5 mb-1\",\n key: patent.name\n }, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"img\", {\n src: '/media/logos/badges/'+patent?.icon,\n class: \"h-50 align-self-center\",\n alt: \"\"\n }, null, 8, _hoisted_8),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(patent?.name), 1),\n _createElementVNode(\"span\", _hoisted_10, _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.profile_public.point_range`)) + \": \" + _toDisplayString(patent.point_range[0]) + \" - \" + _toDisplayString(patent.point_range[1]), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n (allUsers.value[patent?.id])\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(allUsers.value[patent?.id]['users'], (user) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n onClick: ($event: any) => (gotoUserProfile(user?.user_id)),\n class: \"symbol symbol-40px d-grid text-center items-center justify-center align-center align-content-center\",\n style: {\"justify-items\":\"center\"}\n }, [\n _createElementVNode(\"img\", {\n src: user?.user?.profile_photo_path ? user?.user?.profile_photo_path : '/media/logos/badges/'+patent?.icon,\n class: \"h-45 w-45 cursor-pointer\",\n alt: \"\"\n }, null, 8, _hoisted_13),\n _createElementVNode(\"b\", _hoisted_14, _toDisplayString(user?.user?.nick ? user?.user?.nick : user?.user?.name?.split(' ')[0].slice(0, 10)), 1)\n ], 8, _hoisted_12))\n }), 256))\n : _createCommentVNode(\"\", true),\n (allUsers.value[patent?.id] && allUsers.value[patent?.id]['total_users'] > allUsers.value[patent?.id]['users'].length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, \" +\" + _toDisplayString(allUsers.value[patent?.id]['total_users'] - allUsers.value[patent?.id]['users'].length), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _hoisted_17\n ]))\n }), 128))\n ])\n ])\n ])\n ]))\n}\n}\n\n})","import script from \"./PodiumIndex.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./PodiumIndex.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"sourceRoot":""}