{"version":3,"sources":["webpack:///./src/views/apps/global-search/search.vue?08d8","webpack:///./src/views/apps/global-search/search.vue?65ec","webpack:///./src/views/apps/global-search/search.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","key","_hoisted_8","_hoisted_9","style","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","src","alt","_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","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_hoisted_55","_hoisted_56","_hoisted_57","_hoisted_58","_hoisted_59","render","_ctx","_cache","$props","$setup","$data","$options","onSubmit","doSerach","args","$event","name","type","placeholder","search","onClick","doPreSearch","responseTime","results","lessons","result","goTo","title","description","_c","machines","length","photo_path","tags","tag","users","profile_photo_path","nick","patent","icon","bio","github_url","target","href","linkedin_url","challenges","paths","image","short_description","components","setup","store","currentLanguage","getters","getCurrentLanguage","localStorage","getItem","user","currentUser","queryString","window","location","urlParams","URLSearchParams","q","get","resource","router","push","params","machine_uuid","id","lesson_id","module_id","lesson","content","value","Event","e","preventDefault","console","log","history","pushState","start","Date","getTime","ApiService","then","response","end","data","catch","error","methods","__exports__"],"mappings":"uIAEMA,EAAa,CAAEC,MAAO,YACtBC,EAAa,CAAED,MAAO,YACtBE,EAA0B,gCAAoB,MAAO,KAAM,CAClD,gCAAoB,KAAM,KAAM,mBAC3C,GACEC,EAAa,CAAEH,MAAO,cACtBI,EAA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AasD,MAAQc,EAAMN,EAC3B7D,EAAQqD,MAAQa,EAASE,QAE1BC,OAAM,SAACC,GACNb,QAAQC,IAAIY,QASvB,OANM7B,IACC7C,EAAOyD,MAAQZ,EACfnD,EAAS,IAAIgE,MAAM,YAInB,CACHpB,KAAI,EACJN,MAAK,EACLC,gBAAe,EACZjC,OAAM,EACNN,SAAQ,EACRU,QAAO,EACPD,aAAY,EACZI,KAAI,EACJL,YAAW,IAGlByE,QAAS,K,wBCrFd,MAAMC,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAS1F,MAErD","file":"js/chunk-2d225025.66b684b5.js","sourcesContent":["import { createElementVNode as _createElementVNode, vModelText as _vModelText, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"animated\" }\nconst _hoisted_2 = { class: \"col-md-7\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"h4\", null, \"Global Search\")\n], -1)\nconst _hoisted_4 = { class: \"form-group\" }\nconst _hoisted_5 = { class: \"input-group\" }\nconst _hoisted_6 = { class: \"input-group-append\" }\nconst _hoisted_7 = { key: 1 }\nconst _hoisted_8 = { class: \"mx-auto text-center d-flex justify-center row items-center mt-20\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"col-md-7 el-col-offset-5\" }, [\n /*#__PURE__*/_createElementVNode(\"h2\", {\n class: \"\",\n style: {\"font-family\":\"'Courier New', Courier, monospace\",\"font-size\":\"xxx-large\"}\n }, \"Global Search\"),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-right\" }, [\n /*#__PURE__*/_createElementVNode(\"small\", null, [\n /*#__PURE__*/_createTextVNode(\"powered by AI \"),\n /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"bi bi-stars\",\n style: {\"color\":\"plum\"}\n })\n ])\n ])\n], -1)\nconst _hoisted_10 = { class: \"text-center col-md-7 el-col-offset-5 mt-10\" }\nconst _hoisted_11 = { class: \"form-group\" }\nconst _hoisted_12 = { class: \"input-group\" }\nconst _hoisted_13 = { class: \"input-group-append\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"mt-5 text-left items-start d-flex\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-gray-700\" }, \" Suggestions \")\n], -1)\nconst _hoisted_15 = { class: \"d-flex row\" }\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"bg-gray-100 mt-2 mb-2 py-3\" }, [\n /*#__PURE__*/_createTextVNode(\" SSRF \"),\n /*#__PURE__*/_createElementVNode(\"br\")\n], -1)\nconst _hoisted_17 = [\n _hoisted_16\n]\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"bg-gray-100 mt-2 mb-2 py-3\" }, [\n /*#__PURE__*/_createTextVNode(\" Live \"),\n /*#__PURE__*/_createElementVNode(\"br\")\n], -1)\nconst _hoisted_19 = [\n _hoisted_18\n]\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"bg-gray-100 mt-2 mb-2 py-3\" }, [\n /*#__PURE__*/_createTextVNode(\" Mobile \"),\n /*#__PURE__*/_createElementVNode(\"br\")\n], -1)\nconst _hoisted_21 = [\n _hoisted_20\n]\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"div\", null, null, -1)\nconst _hoisted_23 = { key: 2 }\nconst _hoisted_24 = { class: \"text-gray-500 mt-2 mb-2\" }\nconst _hoisted_25 = [\"onClick\"]\nconst _hoisted_26 = { class: \"bg-gray-100 mt-2 mb-2 px-5 py-5\" }\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"/media/cam.svg\",\n alt: \"\",\n style: {\"width\":\"50px\"}\n}, null, -1)\nconst _hoisted_28 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_29 = [\"onClick\"]\nconst _hoisted_30 = { class: \"bg-gray-100 mt-2 mb-2 px-5 py-5\" }\nconst _hoisted_31 = [\"src\"]\nconst _hoisted_32 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_33 = { class: \"badge badge-light mx-1\" }\nconst _hoisted_34 = [\"onClick\"]\nconst _hoisted_35 = { class: \"bg-gray-100 mt-2 mb-2 px-5 py-5 col-md-12\" }\nconst _hoisted_36 = { class: \"px-2 py-2\" }\nconst _hoisted_37 = [\"src\"]\nconst _hoisted_38 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_39 = [\"src\"]\nconst _hoisted_40 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_41 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_42 = { key: 1 }\nconst _hoisted_43 = /*#__PURE__*/_createTextVNode()\nconst _hoisted_44 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_45 = [\"href\"]\nconst _hoisted_46 = /*#__PURE__*/_createElementVNode(\"small\", { class: \"bi bi-github\" }, null, -1)\nconst _hoisted_47 = [\n _hoisted_46\n]\nconst _hoisted_48 = /*#__PURE__*/_createTextVNode(\"   \")\nconst _hoisted_49 = [\"href\"]\nconst _hoisted_50 = /*#__PURE__*/_createElementVNode(\"small\", { class: \"bi bi-linkedin\" }, null, -1)\nconst _hoisted_51 = [\n _hoisted_50\n]\nconst _hoisted_52 = [\"onClick\"]\nconst _hoisted_53 = { class: \"bg-gray-100 mt-2 mb-2 px-5 py-5\" }\nconst _hoisted_54 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"/media/joy.svg\",\n alt: \"\",\n style: {\"width\":\"50px\",\"border-radius\":\"50%\"}\n}, null, -1)\nconst _hoisted_55 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_56 = [\"onClick\"]\nconst _hoisted_57 = { class: \"bg-gray-100 mt-2 mb-2 px-5 py-5\" }\nconst _hoisted_58 = [\"src\"]\nconst _hoisted_59 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.responseTime)\n ? (_openBlock(), _createElementBlock(\"form\", {\n key: 0,\n onSubmit: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.doSerach && _ctx.doSerach(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.search) = $event)),\n name: \"search\",\n type: \"text\",\n class: \"form-control\",\n placeholder: \"Search for SSRF, SSTI, Username, Machine Name...\"\n }, null, 512), [\n [_vModelText, _ctx.search]\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"button\", {\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.doSerach && _ctx.doSerach(...args))),\n class: \"btn btn-secondary\",\n type: \"button\"\n }, \"Search\")\n ])\n ])\n ])\n ])\n ], 32))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"form\", {\n onSubmit: _cache[8] || (_cache[8] = \n//@ts-ignore\n(...args) => (_ctx.doSerach && _ctx.doSerach(...args)))\n }, [\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.search) = $event)),\n name: \"search\",\n type: \"text\",\n class: \"form-control\",\n placeholder: \"Search for SSRF, SSTI, Username, Machine Name...\"\n }, null, 512), [\n [_vModelText, _ctx.search]\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"button\", {\n onClick: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.doSerach && _ctx.doSerach(...args))),\n class: \"btn btn-secondary\",\n type: \"button\"\n }, \"Search\")\n ])\n ])\n ]),\n _hoisted_14,\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", {\n class: \"col-md-4 cursor-pointer rounded-full\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.doPreSearch('SSRF')))\n }, _hoisted_17),\n _createElementVNode(\"div\", {\n class: \"col-md-4 cursor-pointer rounded-full\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.doPreSearch('Live')))\n }, _hoisted_19),\n _createElementVNode(\"div\", {\n class: \"col-md-4 cursor-pointer rounded-full\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (_ctx.doPreSearch('Mobile')))\n }, _hoisted_21)\n ])\n ])\n ]),\n _hoisted_22\n ], 32)\n ])),\n (_ctx.responseTime)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, \" Response time: \" + _toDisplayString(_ctx.responseTime > 0 ? _ctx.responseTime / 1000 : '') + \" seconds \", 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.results?.lessons, (result) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: result,\n onClick: ($event: any) => (_ctx.goTo('lesson', result)),\n class: \"col-md-5 cursor-pointer\"\n }, [\n _createElementVNode(\"div\", _hoisted_26, [\n _hoisted_27,\n _createTextVNode(\" \" + _toDisplayString(result?.title) + \" \", 1),\n _hoisted_28,\n _createElementVNode(\"small\", null, _toDisplayString(result?.description), 1)\n ])\n ], 8, _hoisted_25))\n }), 128)),\n (_ctx.results?.machines?.length > 0)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_ctx.results?.machines, (result) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: result,\n onClick: ($event: any) => (_ctx.goTo('machine', result)),\n class: \"col-md-5 cursor-pointer\"\n }, [\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"img\", {\n src: result?.photo_path,\n alt: \"\",\n style: {\"width\":\"50px\"}\n }, null, 8, _hoisted_31),\n _createTextVNode(\" \" + _toDisplayString(result?.name) + \" \", 1),\n _hoisted_32,\n _createElementVNode(\"small\", null, _toDisplayString(result?.description), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(result?.tags, (tag) => {\n return (_openBlock(), _createElementBlock(\"small\", _hoisted_33, _toDisplayString(tag), 1))\n }), 256))\n ])\n ], 8, _hoisted_29))\n }), 128))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.results?.users, (result) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: result,\n class: \"d-flex col col-md-5 cursor-pointer\",\n onClick: ($event: any) => (_ctx.goTo('user', result))\n }, [\n _createElementVNode(\"div\", _hoisted_35, [\n _createElementVNode(\"div\", _hoisted_36, [\n _createElementVNode(\"img\", {\n src: result?.profile_photo_path,\n alt: \"\",\n style: {\"width\":\"50px\",\"border-radius\":\"50%\"}\n }, null, 8, _hoisted_37)\n ]),\n _createElementVNode(\"div\", null, [\n _createTextVNode(_toDisplayString(result?.name) + \" \" + _toDisplayString(result?.nick ? \"| \" + result?.nick : '') + \" \", 1),\n _hoisted_38,\n (result?.patent)\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n src: '/media/logos/badges/' + result?.patent?.icon,\n alt: \"\",\n style: {\"width\":\"20px\",\"height\":\"20px\"}\n }, null, 8, _hoisted_39))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\" \" + _toDisplayString(result?.patent?.name) + \" \", 1),\n _hoisted_40,\n _hoisted_41,\n (result?.bio)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_42, \"Bio: \" + _toDisplayString(result?.bio), 1))\n : _createCommentVNode(\"\", true),\n _hoisted_43,\n _hoisted_44,\n (result?.github_url)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 2,\n target: \"_blank\",\n class: \"text-gray-900 fs-2\",\n href: 'https://github.com/' + result?.github_url\n }, _hoisted_47, 8, _hoisted_45))\n : _createCommentVNode(\"\", true),\n _hoisted_48,\n (result?.linkedin_url)\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 3,\n target: \"_blank\",\n class: \"text-blue-900 fs-2\",\n href: 'https://www.linkedin.com/in/' + result?.linkedin_url\n }, _hoisted_51, 8, _hoisted_49))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 8, _hoisted_34))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.results?.challenges, (result) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: result,\n class: \"col-md-5 cursor-pointer\",\n onClick: ($event: any) => (_ctx.goTo('challenge', result))\n }, [\n _createElementVNode(\"div\", _hoisted_53, [\n _hoisted_54,\n _createTextVNode(\" \" + _toDisplayString(result?.name) + \" \", 1),\n _hoisted_55,\n _createElementVNode(\"small\", null, _toDisplayString(result?.description), 1)\n ])\n ], 8, _hoisted_52))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.results?.paths, (result) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: result,\n class: \"col-md-5 cursor-pointer\",\n onClick: ($event: any) => (_ctx.goTo('path', result))\n }, [\n _createElementVNode(\"div\", _hoisted_57, [\n _createElementVNode(\"img\", {\n src: result?.image,\n alt: \"\",\n style: {\"width\":\"150px\"}\n }, null, 8, _hoisted_58),\n _createTextVNode(\" \" + _toDisplayString(result?.name) + \" \", 1),\n _hoisted_59,\n _createElementVNode(\"small\", null, _toDisplayString(result?.short_description), 1)\n ])\n ], 8, _hoisted_56))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}","\n import { defineComponent, computed } from \"vue\";\n import { useStore } from \"vuex\";\nimport { ref } from \"vue\";\nimport ApiService from \"@/core/services/ApiService\";\nimport router from \"@/router\";\n \n export default defineComponent({\n name: \"global-search\",\n components: {},\n setup() {\n const store = useStore();\n const currentLanguage = computed(() => store.getters.getCurrentLanguage || localStorage.getItem('currentLanguage'));\n \n const user = computed(() => {\n return store.getters.currentUser;\n });\n\n const search = ref('');\n const results = ref([]);\n const responseTime = ref(0);\n // parse the query string\n const queryString = window.location.search;\n const urlParams = new URLSearchParams(queryString);\n const q = urlParams.get('q');\n\n const goTo = (type, resource) => {\n if(type == 'machine') {\n router.push({ name: 'training-machines-show', params: { machine_uuid: resource?.id } });\n }\n\n if(type == 'user') {\n router.push({ name: 'profile-user', params: { id: resource?.id } });\n }\n\n if(type == 'lesson') {\n \n router.push({ name: 'training-module-show-lesson', params: { lesson_id: resource?.id, id: resource?.module_id } });\n }\n\n if(type == 'challenge') {\n router.push({ name: 'training-module-show-lesson', params: { lesson_id: resource?.lesson?.id, id: resource?.lesson?.module_id } });\n }\n\n if(type == 'path'){\n router.push({ name: 'learning-paths-show', params: { id: resource?.id } });\n }\n }\n\n const doPreSearch = (content) => {\n search.value = content;\n doSerach(new Event('submit'));\n }\n\n const doSerach = (e) => {\n e.preventDefault();\n if(search.value.length < 3) return;\n console.log('searching: ' + search.value);\n // calculate the time it takes to get the response\n // set current Query String to the search value\n window.history.pushState({}, \"\", '/apps/global-search?q=' + search.value);\n const start = new Date().getTime();\n ApiService.get('global-search?q=' + search.value ).then((response) => {\n console.log(response);\n const end = new Date().getTime();\n responseTime.value = end - start;\n results.value = response.data;\n \n }).catch((error) => {\n console.log(error);\n });\n }\n if(q) {\n search.value = q;\n doSerach(new Event('submit'));\n }\n \n\n return {\n user,\n store,\n currentLanguage,\n search,\n doSerach,\n results,\n responseTime,\n goTo,\n doPreSearch\n };\n },\n methods: {\n \n }\n });\n ","import { render } from \"./search.vue?vue&type=template&id=6971e3fe&ts=true\"\nimport script from \"./search.vue?vue&type=script&lang=ts\"\nexport * from \"./search.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":""}