{"version":3,"sources":["webpack:///./src/views/apps/vpn/core.vue?b0ca","webpack:///./src/views/apps/vpn/connection-box.vue?e932","webpack:///./src/views/apps/vpn/connection-box.vue?bdcf","webpack:///./src/views/apps/vpn/connection-box.vue","webpack:///./src/views/apps/vpn/core.vue?0d60","webpack:///./src/views/apps/vpn/core.vue"],"names":["_hoisted_1","class","_hoisted_2","render","_ctx","_cache","$props","$setup","$data","$options","_component_connectionBox","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","style","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","href","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","key","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","$t","currentLanguage","currentVPN","vpn_virtual_ip","user","nick","title","type","disabled","onClick","$event","downloadVPN","name","components","setup","store","getters","getCurrentLanguage","localStorage","getItem","dispatch","GET_VPN_CONFIG","currentUser","getCurrentVPN","methods","a","document","createElement","this","vpn_file","download","click","__exports__","data","vpn","ip","online","connectionBox"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,uCACtBC,EAAa,CAAED,MAAO,YAErB,SAASE,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA2B,8BAAkB,iBAEnD,OAAQ,yBAAc,gCAAoB,MAAOV,EAAY,CAC3D,gCAAoB,MAAOE,EAAY,CACrC,yBAAaQ,O,gBCRb,EAAa,CAAET,MAAO,IACtB,EAAa,CAAEA,MAAO,gCACtBU,EAAa,CAAEV,MAAO,iBACtBW,EAAa,CAAEX,MAAO,iEACtBY,EAAa,CAAEZ,MAAO,IACtBa,EAAa,CAAEb,MAAO,6CACtBc,EAA0B,gCAAoB,MAAO,C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IAAK,CACJC,GAAI,GACJC,QAAQ,KAIZvB,WAAY,CACRwB,cAAa,GAIjBvB,MAAK,WACH,IAAMC,EAAQ,iBAERX,EAAO,uBAAS,WACpB,OAAOW,EAAMC,QAAQM,eAGvB,MAAO,CACLlB,KAAI,MC3BZ,MAAM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASjD,KAErD","file":"js/chunk-2d0d0069.ae78da6e.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex justify-content-center mt-15\" }\nconst _hoisted_2 = { class: \"col-md-7\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_connectionBox = _resolveComponent(\"connectionBox\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_connectionBox)\n ])\n ]))\n}","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, createStaticVNode as _createStaticVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = { class: \"card card-xl-stretch mb-xl-8\" }\nconst _hoisted_3 = { class: \"card-body p-0\" }\nconst _hoisted_4 = { class: \"px-9 pt-7 card-rounded h-275px w-100 bg-success-with-gradient\" }\nconst _hoisted_5 = { class: \"\" }\nconst _hoisted_6 = { class: \"m-0 text-white text-center fw-bolder fs-3\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"ms-1\" }, null, -1)\nconst _hoisted_8 = { class: \"d-flex text-center flex-column text-white pt-8\" }\nconst _hoisted_9 = { class: \"fw-bold fs-7\" }\nconst _hoisted_10 = { class: \"fw-bolder fs-2x pt-1\" }\nconst _hoisted_11 = {\n class: \"bg-body shadow-lg card-rounded mx-9 mb-9 px-6 py-9 position-relative z-index-1\",\n style: {\"margin-top\":\"-100px\"}\n}\nconst _hoisted_12 = { class: \"d-flex align-items-center mb-6\" }\nconst _hoisted_13 = /*#__PURE__*/_createStaticVNode(\"
\", 1)\nconst _hoisted_14 = { class: \"d-flex align-items-center flex-wrap w-100\" }\nconst _hoisted_15 = { class: \"mb-1 pe-3 flex-grow-1\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"#\",\n class: \"fs-5 text-gray-800 text-hover-primary fw-bolder\"\n}, \"Hacking Club VPN Server\", -1)\nconst _hoisted_17 = { class: \"text-gray-400 fw-bold fs-7\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex align-items-center\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"bi bi-check-circle-fill text-success\",\n style: {\"margin-right\":\"0.5rem\"}\n }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"fw-bolder fs-5 text-gray-800 pe-1 me-1\" }, \"Operacional\")\n], -1)\nconst _hoisted_19 = { class: \"d-flex align-items-center mb-6\" }\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"symbol symbol-45px w-40px me-5\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"symbol-label bg-lighten\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"bi bi-person-circle\",\n style: {\"font-size\":\"2rem\"}\n })\n ])\n], -1)\nconst _hoisted_21 = { class: \"d-flex align-items-center flex-wrap w-100\" }\nconst _hoisted_22 = { class: \"mb-1 pe-3 flex-grow-1\" }\nconst _hoisted_23 = {\n href: \"#\",\n class: \"fs-5 text-gray-800 text-hover-primary fw-bolder\"\n}\nconst _hoisted_24 = { class: \"text-gray-500\" }\nconst _hoisted_25 = { class: \"text-gray-400 fw-bold fs-7\" }\nconst _hoisted_26 = {\n key: 0,\n class: \"d-flex align-items-center\"\n}\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"bi bi-check-circle-fill text-success\",\n style: {\"margin-right\":\"0.5rem\"}\n}, null, -1)\nconst _hoisted_28 = { class: \"fw-bolder fs-5 text-gray-800 pe-1 me-1\" }\nconst _hoisted_29 = {\n key: 1,\n class: \"d-flex align-items-center\"\n}\nconst _hoisted_30 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"bi bi-exclamation-square-fill text-danger\",\n style: {\"margin-right\":\"0.5rem\"}\n}, null, -1)\nconst _hoisted_31 = { class: \"fw-bolder fs-5 text-gray-800 pe-1 me-1\" }\nconst _hoisted_32 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex align-items-center mb-6\" }, null, -1)\nconst _hoisted_33 = { class: \"d-flex align-items-center justify-content-center justify-center\" }\nconst _hoisted_34 = [\"title\", \"disabled\"]\nconst _hoisted_35 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"fa fa-download\" }, null, -1)\nconst _hoisted_36 = { class: \"m1\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\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(\"h3\", _hoisted_6, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.access_to_the_hacking_club_network`)), 1),\n _hoisted_7\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.your_private_ip_address`)), 1),\n _createElementVNode(\"span\", _hoisted_10, _toDisplayString(_ctx.currentVPN.vpn_virtual_ip || \"0.0.0.0\"), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createElementVNode(\"div\", _hoisted_17, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.our_vpn_server_is_located_in_the_cloud`)) + \" (aws) \", 1)\n ]),\n _hoisted_18\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _hoisted_20,\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"a\", _hoisted_23, [\n _createTextVNode(_toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.you`)) + \" \", 1),\n _createElementVNode(\"small\", _hoisted_24, \" - \" + _toDisplayString(_ctx.user.nick), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_25, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.status_of_your_connection`)), 1)\n ]),\n (_ctx.currentVPN.vpn_online)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_26, [\n _hoisted_27,\n _createElementVNode(\"div\", _hoisted_28, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.connected_from_the_VPN`)), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_29, [\n _hoisted_30,\n _createElementVNode(\"div\", _hoisted_31, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.disconnected_from_the_VPN`)), 1)\n ]))\n ])\n ]),\n _hoisted_32,\n _createElementVNode(\"div\", _hoisted_33, [\n _createElementVNode(\"button\", {\n title: _ctx.currentVPN.vpn_virtual_ip ? 'Configuration file used to access Hacking Club VPN': 'We are still generating your VPN file' ,\n type: \"button\",\n class: \"btn btn-secondary btn-lg btn-block\",\n disabled: !_ctx.currentVPN.vpn_virtual_ip,\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.downloadVPN()))\n }, [\n _hoisted_35,\n _createElementVNode(\"b\", _hoisted_36, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.vpn.download_the_VPN_configuration_file`)), 1)\n ], 8, _hoisted_34)\n ])\n ])\n ])\n ])\n ]))\n}","\r\nimport { defineComponent, computed } from \"vue\";\r\nimport { useStore } from \"vuex\";\r\nimport { Actions } from \"@/store/enums/StoreEnums\";\r\n\r\nexport default defineComponent({\r\n name: \"vpn-connection-box\",\r\n components: {},\r\n setup() {\r\n const store = useStore();\r\n const currentLanguage = computed(() => store.getters.getCurrentLanguage || localStorage.getItem('currentLanguage'));\r\n store.dispatch(Actions.GET_VPN_CONFIG);\r\n const user = computed(() => {\r\n return store.getters.currentUser;\r\n });\r\n \r\n const currentVPN = computed(() => {\r\n return store.getters.getCurrentVPN;\r\n });\r\n \r\n return {\r\n user,\r\n currentVPN,\r\n store,\r\n currentLanguage\r\n };\r\n },\r\n methods: {\r\n downloadVPN() {\r\n var a = document.createElement(\"a\"); //Create \r\n a.href = \"data:application/octet-stream;base64,\" + this.currentVPN.vpn_file; //Image Base64 Goes here\r\n a.download = \"hackingclub-vpn.zip\"; //File name Here\r\n a.click(); //Downloaded file\r\n \r\n }\r\n }\r\n});\r\n","import { render } from \"./connection-box.vue?vue&type=template&id=25bbac0a&ts=true\"\nimport script from \"./connection-box.vue?vue&type=script&lang=ts\"\nexport * from \"./connection-box.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__","\r\nimport { defineComponent, computed } from \"vue\";\r\nimport { useStore } from \"vuex\";\r\n\r\nimport connectionBox from \"./connection-box.vue\";\r\nimport { Actions } from \"@/store/enums/StoreEnums\";\r\n\r\n\r\n\r\nexport default defineComponent({\r\n name: \"vpn-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 connectionBox,\r\n \r\n \r\n },\r\n setup() {\r\n const store = useStore();\r\n \r\n const user = computed(() => {\r\n return store.getters.currentUser;\r\n });\r\n \r\n return {\r\n user,\r\n \r\n };\r\n }\r\n});\r\n","import { render } from \"./core.vue?vue&type=template&id=9eec0e92&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":""}