{"version":3,"sources":["webpack:///./src/views/crafted/training/machines/MachinesList.vue?9330","webpack:///./src/views/crafted/training/machines/MachinesList.vue?a421","webpack:///./src/views/crafted/training/machines/MachinesList.vue","webpack:///./src/core/helpers/breadcrumb.ts"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","key","_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","selected","value","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_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","role","_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","_hoisted_60","_hoisted_61","_hoisted_62","_hoisted_63","_hoisted_64","_hoisted_65","_hoisted_66","_hoisted_67","_hoisted_68","_hoisted_69","_hoisted_70","_hoisted_71","_hoisted_72","_hoisted_73","_hoisted_74","_hoisted_75","_hoisted_76","_hoisted_77","title","_hoisted_78","_hoisted_79","_hoisted_80","_hoisted_81","_hoisted_82","_hoisted_83","_hoisted_84","_hoisted_85","_hoisted_86","_hoisted_87","_hoisted_88","_hoisted_89","_hoisted_90","_hoisted_91","_hoisted_92","_hoisted_93","_hoisted_94","_hoisted_95","_hoisted_96","_hoisted_97","render","_ctx","_cache","$props","$setup","$data","$options","onClick","$event","show_filter","$t","currentLanguage","onChange","doSearch","filter","dificulty","status","onKeyup","type","placeholder","search","ref","id","loading","machines","length","machine","href","style","src","photo_path","alt","percentage","name","moment","utc","release_at","format","xp","creator","avatar","first_blood","currentMetadata","links","link","label","active","goTo","url","innerHTML","components","data","a","setup","store","getters","getCurrentLanguage","localStorage","getItem","current_page","query","router","currentRoute","page","parseInt","dispatch","GET_MACHINES_FILTERED","getAllMachines","getMachineMetadata","methods","window","history","pushState","split","this","__exports__","setCurrentPageBreadcrumbs","pageTitle","breadcrumbs","SET_BREADCRUMB_ACTION","pageBreadcrumbPath","setCurrentPageTitle"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,mCACtBC,EAA0B,gCAAoB,IAAK,CAAED,MAAO,gBAAkB,MAAO,GACrFE,EAAa,CACjBC,IAAK,EACLH,MAAO,eAEHI,EAAa,CAAEJ,MAAO,OACtBK,EAAa,CAAEL,MAAO,aACtBM,EAAa,CAAEN,MAAO,eACtBO,EAAa,CAAEP,MAAO,cACtBQ,EAA0B,gCAAoB,IAAK,CAAER,MAAO,kBAAoB,MAAO,GACvFS,EAA0B,6BAAiB,MAC3CC,EAAc,CAAEV,MAAO,iBACvBW,EAAc,CAAEX,MAAO,gBACvBY,EAAc,CAAEZ,MAAO,YACvBa,EAAc,CAAEb,MAAO,cACvBc,EAAc,CAAEd,MAAO,sBACvBe,EAAc,CAAEf,MAAO,iBACvBgB,EAAc,CAClBC,SAAU,GACVC,MAAO,IAEHC,EAA2B,gCAAoB,SAAU,CAAED,MAAO,QAAU,QAAS,GACrFE,EAA2B,gCAAoB,SAAU,CAAEF,MAAO,UAAY,UAAW,GACzFG,EAA2B,gCAAoB,SAAU,CAAEH,MAAO,QAAU,QAAS,GACrFI,EAA2B,gCAAoB,SAAU,CAAEJ,MAAO,UAAY,UAAW,GACzFK,EAAc,CAAEvB,MAAO,YACvBwB,EAAc,CAAExB,MAAO,cACvByB,EAAc,CAAEzB,MAAO,sBACvB0B,EAA2B,6BAAiB,WAC5CC,EAAc,CAAE3B,MAAO,iBACvB4B,EAAc,CAClBX,SAAU,GACVC,MAAO,IAEHW,EAA2B,gCAA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,KAAMA,MAH5K,OAPA,M,OAUD,SACAW,KAAKnD,SAAU,E,mCAMdV,SAAQ,W,sHAMX,OAJC6D,KAAK5D,OAAOM,QAAUsD,KAAK5D,OAAOC,WAAa2D,KAAK5D,OAAOE,SACxDsD,OAAOC,QAAQC,UAAU,GAAI,GAAI,6CAA+CE,KAAK5D,OAAOM,OAAS,cAAgBsD,KAAK5D,OAAOC,UAAY,WAAa2D,KAAK5D,OAAOE,QAGvK0D,KAAKnD,QACN,KAGFmD,KAAKnD,SAAU,EAEf,GAAMmD,KAAKpB,MAAMW,SAAS,QAAQC,sBAAuB,CAAEhD,KAAM,WAAYH,UAAW2D,KAAK5D,OAAOC,UAAWC,OAAQ0D,KAAK5D,OAAOE,OAAQI,OAAQsD,KAAK5D,OAAOM,W,cAA/J,SACAsD,KAAKnD,SAAU,E,uCCzGnB,MAAMoD,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAS3E,MAErD,iB,kCCPf,gGAQa4E,EAA4B,SACvCC,EACAC,GAEA,OAAMb,SAAS,OAAQc,sBAAuB,CAC5CpG,MAAOkG,EACPG,mBAAoBF,KAQXG,EAAsB,SAACtG,GAClC,OAAMsF,SAAS,OAAQc,sBAAuB,CAC5CpG,MAAOA","file":"js/chunk-0c655eb6.715b14a1.js","sourcesContent":["import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, vModelSelect as _vModelSelect, withDirectives as _withDirectives, vModelText as _vModelText, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex justify-content-end mb-2\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-filter\" }, null, -1)\nconst _hoisted_3 = {\n key: 0,\n class: \"card d-flex\"\n}\nconst _hoisted_4 = { class: \"row\" }\nconst _hoisted_5 = { class: \"col-md-12\" }\nconst _hoisted_6 = { class: \"card-header\" }\nconst _hoisted_7 = { class: \"card-title\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"fas fa-list-ul\" }, null, -1)\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"  \")\nconst _hoisted_10 = { class: \"text-gray-500\" }\nconst _hoisted_11 = { class: \"row mt-3 p-5\" }\nconst _hoisted_12 = { class: \"col-md-3\" }\nconst _hoisted_13 = { class: \"form-group\" }\nconst _hoisted_14 = { class: \"text-gray-700 mb-2\" }\nconst _hoisted_15 = { class: \"text-gray-500\" }\nconst _hoisted_16 = {\n selected: \"\",\n value: \"\"\n}\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"option\", { value: \"easy\" }, \"Easy\", -1)\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"option\", { value: \"medium\" }, \"Medium\", -1)\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"option\", { value: \"hard\" }, \"Hard\", -1)\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"option\", { value: \"insane\" }, \"Insane\", -1)\nconst _hoisted_21 = { class: \"col-md-3\" }\nconst _hoisted_22 = { class: \"form-group\" }\nconst _hoisted_23 = { class: \"text-gray-700 mb-2\" }\nconst _hoisted_24 = /*#__PURE__*/_createTextVNode(\"Status \")\nconst _hoisted_25 = { class: \"text-gray-500\" }\nconst _hoisted_26 = {\n selected: \"\",\n value: \"\"\n}\nconst _hoisted_27 = /*#__PURE__*/_createElementVNode(\"option\", { value: \"completed\" }, \"Owned\", -1)\nconst _hoisted_28 = /*#__PURE__*/_createElementVNode(\"option\", { value: \"started\" }, \"Started\", -1)\nconst _hoisted_29 = { value: \"unstarted\" }\nconst _hoisted_30 = { class: \"col-md-4\" }\nconst _hoisted_31 = { class: \"form-group\" }\nconst _hoisted_32 = { class: \"text-gray-700 mb-2\" }\nconst _hoisted_33 = { class: \"col-md-2 d-flex justify-content-end align-items-end\" }\nconst _hoisted_34 = { class: \"form-group\" }\nconst _hoisted_35 = {\n key: 0,\n class: \"indicator-label\"\n}\nconst _hoisted_36 = {\n key: 1,\n class: \"indicator-label\"\n}\nconst _hoisted_37 = { class: \"mt-10 text-center\" }\nconst _hoisted_38 = { class: \"row g-6 g-xl-9\" }\nconst _hoisted_39 = {\n key: 0,\n class: \"row mt-10\"\n}\nconst _hoisted_40 = { class: \"col-md-12\" }\nconst _hoisted_41 = {\n class: \"\",\n role: \"alert\"\n}\nconst _hoisted_42 = { class: \"alert-heading\" }\nconst _hoisted_43 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"fas fa-exclamation-triangle\" }, null, -1)\nconst _hoisted_44 = /*#__PURE__*/_createTextVNode(\"  \")\nconst _hoisted_45 = { class: \"text-gray-500\" }\nconst _hoisted_46 = { class: \"text-gray-500\" }\nconst _hoisted_47 = [\"href\"]\nconst _hoisted_48 = { class: \"card-header border-0 pt-9\" }\nconst _hoisted_49 = { class: \"card-title m-0\" }\nconst _hoisted_50 = {\n key: 0,\n class: \"symbol symbol-50px w-50px bg-light border border-success\"\n}\nconst _hoisted_51 = [\"src\"]\nconst _hoisted_52 = {\n key: 1,\n class: \"symbol symbol-50px w-50px bg-light border border-info\"\n}\nconst _hoisted_53 = [\"src\"]\nconst _hoisted_54 = {\n key: 2,\n class: \"symbol symbol-50px w-50px bg-light border border-warning\"\n}\nconst _hoisted_55 = [\"src\"]\nconst _hoisted_56 = {\n key: 3,\n class: \"symbol symbol-50px w-50px bg-light border border-danger\"\n}\nconst _hoisted_57 = [\"src\"]\nconst _hoisted_58 = { class: \"card-toolbar\" }\nconst _hoisted_59 = {\n key: 0,\n class: \"badge badge-light-primary fw-bolder me-auto px-4 py-3\"\n}\nconst _hoisted_60 = {\n key: 1,\n class: \"badge badge-light-success fw-bolder me-auto px-4 py-3\"\n}\nconst _hoisted_61 = {\n key: 2,\n class: \"badge badge-light-warning fw-bolder me-auto px-4 py-3\"\n}\nconst _hoisted_62 = { class: \"card-body p-9\" }\nconst _hoisted_63 = { class: \"fs-3 fw-bolder text-dark d-flex\" }\nconst _hoisted_64 = { class: \"dificulty mb-5 mt-3 d-flex\" }\nconst _hoisted_65 = {\n key: 0,\n class: \"badge badge-light-success\"\n}\nconst _hoisted_66 = {\n key: 1,\n class: \"badge badge-light-info\"\n}\nconst _hoisted_67 = {\n key: 2,\n class: \"badge badge-light-warning\"\n}\nconst _hoisted_68 = {\n key: 3,\n class: \"badge badge-light-danger\"\n}\nconst _hoisted_69 = /*#__PURE__*/_createElementVNode(\"p\", { class: \"text-gray-400 fw-bold fs-5 mt-1 mb-7\" }, null, -1)\nconst _hoisted_70 = { class: \"d-flex flex-wrap mb-5 justify-content-center\" }\nconst _hoisted_71 = { class: \"border border-gray-300 border-dashed rounded min-w-125px py-3 px-4 me-7 mb-3\" }\nconst _hoisted_72 = { class: \"fs-6 text-gray-800 fw-bolder\" }\nconst _hoisted_73 = { class: \"fw-bold text-gray-500\" }\nconst _hoisted_74 = { class: \"border border-gray-300 border-dashed rounded min-w-125px py-3 px-4 mb-3\" }\nconst _hoisted_75 = { class: \"fs-6 text-gray-800 fw-bolder\" }\nconst _hoisted_76 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"fw-bold text-gray-500\" }, \"XP earned\", -1)\nconst _hoisted_77 = {\n class: \"h-4px w-100 bg-light mb-5\",\n \"data-bs-toggle\": \"tooltip\",\n title: \"\",\n \"data-bs-original-title\": \"This project 50% completed\"\n}\nconst _hoisted_78 = [\"aria-valuenow\"]\nconst _hoisted_79 = { class: \"row\" }\nconst _hoisted_80 = { class: \"col-md-6\" }\nconst _hoisted_81 = { class: \"text-gray-600 fs-6\" }\nconst _hoisted_82 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"fas fa-user-shield\" }, null, -1)\nconst _hoisted_83 = { class: \"symbol-group symbol-hover justify-content-center\" }\nconst _hoisted_84 = {\n class: \"symbol symbol-35px symbol-circle\",\n \"data-bs-toggle\": \"tooltip\",\n title: \"\",\n \"data-bs-original-title\": \"Emma Smith\"\n}\nconst _hoisted_85 = [\"src\"]\nconst _hoisted_86 = { class: \"col-md-6\" }\nconst _hoisted_87 = /*#__PURE__*/_createElementVNode(\"small\", { class: \"text-gray-600 fs-6\" }, [\n /*#__PURE__*/_createTextVNode(\"First Blood \"),\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"las la-tint text-danger\" })\n], -1)\nconst _hoisted_88 = { class: \"symbol-group symbol-hover justify-content-center\" }\nconst _hoisted_89 = {\n class: \"symbol symbol-35px symbol-circle\",\n \"data-bs-toggle\": \"tooltip\",\n title: \"\",\n \"data-bs-original-title\": \"Emma Smith\"\n}\nconst _hoisted_90 = [\"src\", \"title\"]\nconst _hoisted_91 = { class: \"pagination pagination-outline mt-10\" }\nconst _hoisted_92 = [\"onClick\"]\nconst _hoisted_93 = [\"innerHTML\"]\nconst _hoisted_94 = /*#__PURE__*/_createTextVNode(\"   \")\nconst _hoisted_95 = { class: \"justify-content-center d-flex flex-center\" }\nconst _hoisted_96 = {\n key: 0,\n class: \"spinner-border spinner-border-sm\",\n role: \"status\"\n}\nconst _hoisted_97 = { class: \"sr-only\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"button\", {\n class: \"btn btn-secondary\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.show_filter = !_ctx.show_filter))\n }, [\n _hoisted_2,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.filter`)) + \" \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.machines`)), 1)\n ])\n ]),\n (_ctx.show_filter)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"h4\", _hoisted_7, [\n _hoisted_8,\n _hoisted_9,\n _createElementVNode(\"a\", _hoisted_10, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.machine_filter_desc`)), 1)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"label\", _hoisted_14, [\n _createTextVNode(_toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.level`)) + \" \", 1),\n _createElementVNode(\"b\", _hoisted_15, \" - \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.machine`)) + \" \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.difficulty`)), 1)\n ]),\n _withDirectives(_createElementVNode(\"select\", {\n onChange: _cache[1] || (_cache[1] = ($event: any) => (_ctx.doSearch())),\n class: \"form-control\",\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.filter.dificulty) = $event))\n }, [\n _createElementVNode(\"option\", _hoisted_16, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.all`)), 1),\n _hoisted_17,\n _hoisted_18,\n _hoisted_19,\n _hoisted_20\n ], 544), [\n [_vModelSelect, _ctx.filter.dificulty]\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"label\", _hoisted_23, [\n _hoisted_24,\n _createElementVNode(\"b\", _hoisted_25, \" - \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.progress_on_this_machine`)), 1)\n ]),\n _withDirectives(_createElementVNode(\"select\", {\n onChange: _cache[3] || (_cache[3] = ($event: any) => (_ctx.doSearch())),\n class: \"form-control\",\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.filter.status) = $event))\n }, [\n _createElementVNode(\"option\", _hoisted_26, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.all`)), 1),\n _hoisted_27,\n _hoisted_28,\n _createElementVNode(\"option\", _hoisted_29, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.user_progress.not_started_yet`)), 1)\n ], 544), [\n [_vModelSelect, _ctx.filter.status]\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"label\", _hoisted_32, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.search_by_tag`)), 1),\n _withDirectives(_createElementVNode(\"input\", {\n onKeyup: _cache[5] || (_cache[5] = ($event: any) => (_ctx.doSearch())),\n type: \"text\",\n class: \"form-control\",\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_ctx.filter.search) = $event)),\n placeholder: \"Windows, Linux, Machine name, etc...\"\n }, null, 544), [\n [_vModelText, _ctx.filter.search]\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_33, [\n _createElementVNode(\"div\", _hoisted_34, [\n _createElementVNode(\"button\", {\n type: \"button\",\n ref: \"submitSearchButton\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (_ctx.doSearch())),\n id: \"kt_search_in_submit\",\n class: \"btn btn-lg btn-outline-info\"\n }, [\n (!_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_35, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.search`)), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_36, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.searching`)) + \"... \", 1))\n : _createCommentVNode(\"\", true)\n ], 512)\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_37, [\n _createElementVNode(\"div\", _hoisted_38, [\n (_ctx.machines.length === 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_39, [\n _createElementVNode(\"div\", _hoisted_40, [\n _createElementVNode(\"div\", _hoisted_41, [\n _createElementVNode(\"h4\", _hoisted_42, [\n _hoisted_43,\n _hoisted_44,\n _createElementVNode(\"a\", _hoisted_45, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.no_machines_found`)), 1)\n ]),\n _createElementVNode(\"p\", null, [\n _createElementVNode(\"a\", _hoisted_46, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.machine.try_change_filters_search_another_machine`)), 1)\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.machines, (machine) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: machine.id,\n class: \"col-md-6 col-xl-4\"\n }, [\n _createElementVNode(\"a\", {\n href: '/training/training-machines/' + machine.id,\n class: \"card border-hover-primary\",\n style: {\"cursor\":\"pointer\"}\n }, [\n _createElementVNode(\"div\", _hoisted_48, [\n _createElementVNode(\"div\", _hoisted_49, [\n (machine?.dificulty == 'easy')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_50, [\n _createElementVNode(\"img\", {\n src: machine?.photo_path,\n alt: \"image\",\n class: \"p-1\"\n }, null, 8, _hoisted_51)\n ]))\n : _createCommentVNode(\"\", true),\n (machine?.dificulty == 'medium')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_52, [\n _createElementVNode(\"img\", {\n src: machine?.photo_path,\n alt: \"image\",\n class: \"p-1\"\n }, null, 8, _hoisted_53)\n ]))\n : _createCommentVNode(\"\", true),\n (machine?.dificulty == 'hard')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_54, [\n _createElementVNode(\"img\", {\n src: machine?.photo_path,\n alt: \"image\",\n class: \"p-1\"\n }, null, 8, _hoisted_55)\n ]))\n : _createCommentVNode(\"\", true),\n (machine?.dificulty == 'insane')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_56, [\n _createElementVNode(\"img\", {\n src: machine?.photo_path,\n alt: \"image\",\n class: \"p-1\"\n }, null, 8, _hoisted_57)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_58, [\n (\r\n machine?.percentage > 0 &&\r\n machine?.percentage < 100\r\n )\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_59, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.user_progress.in_progress`)), 1))\n : _createCommentVNode(\"\", true),\n (machine?.percentage == 100)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_60, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.user_progress.completed`)), 1))\n : _createCommentVNode(\"\", true),\n (machine?.percentage == 0)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_61, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.user_progress.not_started_yet`)), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_62, [\n _createElementVNode(\"div\", _hoisted_63, _toDisplayString(machine?.name), 1),\n _createElementVNode(\"div\", _hoisted_64, [\n (machine?.dificulty == 'easy')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_65, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.easy`)), 1))\n : _createCommentVNode(\"\", true),\n (machine?.dificulty == 'medium')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_66, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.medium`)), 1))\n : _createCommentVNode(\"\", true),\n (machine?.dificulty == 'hard')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_67, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.hard`)), 1))\n : _createCommentVNode(\"\", true),\n (machine?.dificulty == 'insane')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_68, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.insane`)), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _hoisted_69,\n _createElementVNode(\"div\", _hoisted_70, [\n _createElementVNode(\"div\", _hoisted_71, [\n _createElementVNode(\"div\", _hoisted_72, _toDisplayString(_ctx.moment.utc(machine?.release_at).format(\"DD MMMM, YYYY\")), 1),\n _createElementVNode(\"div\", _hoisted_73, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.release_date`)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_74, [\n _createElementVNode(\"div\", _hoisted_75, _toDisplayString(machine?.xp), 1),\n _hoisted_76\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_77, [\n _createElementVNode(\"div\", {\n class: \"bg-primary rounded h-4px\",\n role: \"progressbar\",\n style: _normalizeStyle('width: ' + machine?.percentage + '%'),\n \"aria-valuenow\": machine?.percentage,\n \"aria-valuemin\": \"0\",\n \"aria-valuemax\": \"100\"\n }, null, 12, _hoisted_78)\n ]),\n _createElementVNode(\"div\", _hoisted_79, [\n _createElementVNode(\"div\", _hoisted_80, [\n _createElementVNode(\"small\", _hoisted_81, [\n _createTextVNode(_toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.creator`)) + \" \", 1),\n _hoisted_82\n ]),\n _createElementVNode(\"div\", _hoisted_83, [\n _createElementVNode(\"div\", _hoisted_84, [\n _createElementVNode(\"img\", {\n alt: \"Pic\",\n src: machine?.creator ? machine?.creator?.avatar : '/media/avatars/blank.png'\n }, null, 8, _hoisted_85)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_86, [\n _hoisted_87,\n _createElementVNode(\"div\", _hoisted_88, [\n _createElementVNode(\"div\", _hoisted_89, [\n _createElementVNode(\"img\", {\n alt: \"Pic\",\n src: \r\n machine?.first_blood ? machine?.first_blood?.avatar : '/media/avatars/blank.png'\r\n ,\n title: machine?.first_blood ? machine?.first_blood?.name : 'without blood...'\n }, null, 8, _hoisted_90)\n ])\n ])\n ])\n ])\n ])\n ], 8, _hoisted_47)\n ]))\n }), 128)),\n _createElementVNode(\"ul\", _hoisted_91, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.currentMetadata.links, (link) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n key: link.label\n }, [\n _createElementVNode(\"li\", {\n class: _normalizeClass('page-item m-1 cursor-pointer ' + (link.active ? 'active':''))\n }, [\n _createElementVNode(\"a\", {\n onClick: ($event: any) => (_ctx.goTo(link.url)),\n class: \"page-link\"\n }, [\n _createElementVNode(\"span\", {\n innerHTML: link.label\n }, null, 8, _hoisted_93)\n ], 8, _hoisted_92)\n ], 2)\n ]))\n }), 128)),\n _hoisted_94,\n _createElementVNode(\"div\", _hoisted_95, [\n (_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_96, [\n _createElementVNode(\"span\", _hoisted_97, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.loading`)) + \"...\", 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ])\n ], 64))\n}","\r\nimport { computed, defineComponent, ref, onMounted } from \"vue\";\r\nimport { setCurrentPageTitle } from \"@/core/helpers/breadcrumb\";\r\nimport router from \"@/router\";\r\nimport moment from \"moment\";\r\nimport { useStore } from \"vuex\";\r\nimport { Actions } from \"@/store/enums/StoreEnums\";\r\n\r\nexport default defineComponent({\r\nname: \"dashboard\",\r\ncomponents: {},\r\ndata() {\r\n return {\r\n a:1\r\n };\r\n},\r\nsetup() {\r\n const store = useStore();\r\n const currentLanguage = computed(() => store.getters.getCurrentLanguage || localStorage.getItem('currentLanguage'));\r\n const current_page = ref(0)\r\n const loading = ref(false);\r\n const filter = ref({\r\n dificulty: \"\",\r\n status: \"\",\r\n search: \"\",\r\n show_filter: false\r\n });\r\n const show_filter = ref(false);\r\n\r\n // parse the query string to get the page number and search query\r\n const query : any = router.currentRoute.value.query;\r\n const page : number = query.page ? parseInt(query?.page) : 1;\r\n const search : string = query.search ? query.search : \"\";\r\n const dificulty : string = query.dificulty ? query.dificulty : \"\";\r\n const status : string = query.status ? query.status : \"\";\r\n // read value of data variable\r\n\r\n\r\n onMounted(() => {\r\n setCurrentPageTitle(\"Machines List\");\r\n });\r\n\r\n if(page !== 1 || search !== \"\" || dificulty !== \"\" || status !== \"\"){\r\n\r\n filter.value.dificulty = dificulty;\r\n filter.value.status = status;\r\n filter.value.search = search;\r\n filter.value.show_filter = true;\r\n show_filter.value = true;\r\n\r\n store.dispatch(Actions.GET_MACHINES_FILTERED, { type: \"training\", search: search, page: page, dificulty: dificulty, status: status });\r\n }else{\r\n store.dispatch(Actions.GET_MACHINES_FILTERED, { type: \"training\"});\r\n }\r\n\r\n const machines = computed(() => {\r\n return store.getters.getAllMachines;\r\n });\r\n\r\n\r\n const currentMetadata = computed(() => {\r\n return store.getters.getMachineMetadata;\r\n });\r\n \r\n\r\n return {\r\n moment,\r\n router,\r\n machines,\r\n currentMetadata,\r\n store,\r\n show_filter,\r\n currentLanguage,\r\n filter,\r\n loading,\r\n current_page\r\n };\r\n},\r\nmethods: {\r\n async goTo(url) {\r\n if(url){\r\n if(router.currentRoute.value.query.search || router.currentRoute.value.query.dificulty || router.currentRoute.value.query.status){\r\n window.history.pushState({}, \"\", \"/training/training-machines?page=\" + url.split(\"page=\")[1] + \"&search=\" + router.currentRoute.value.query.search + \"&dificulty=\" + this.filter.dificulty + \"&status=\" + this.filter.status);\r\n }else{\r\n window.history.pushState({}, \"\", \"/training/training-machines?page=\" + url.split(\"page=\")[1]);\r\n }\r\n\r\n if(url){\r\n const page = url.split(\"page=\")[1];\r\n this.loading = true;\r\n await this.store.dispatch(Actions.GET_MACHINES_FILTERED, { type: \"training\", dificulty: this.filter.dificulty, status: this.filter.status, search: this.filter.search, page: page });\r\n this.loading = false;\r\n }\r\n \r\n }\r\n \r\n },\r\n async doSearch() {\r\n\r\n if(this.filter.search || this.filter.dificulty || this.filter.status){\r\n window.history.pushState({}, \"\", \"/training/training-machines?page=1&search=\" + this.filter.search + \"&dificulty=\" + this.filter.dificulty + \"&status=\" + this.filter.status);\r\n }\r\n\r\n if(this.loading){\r\n return;\r\n }\r\n \r\n this.loading = true;\r\n \r\n await this.store.dispatch(Actions.GET_MACHINES_FILTERED, { type: \"training\", dificulty: this.filter.dificulty, status: this.filter.status, search: this.filter.search});\r\n this.loading = false;\r\n \r\n }\r\n}\r\n});\r\n","import { render } from \"./MachinesList.vue?vue&type=template&id=45157402&ts=true\"\nimport script from \"./MachinesList.vue?vue&type=script&lang=ts\"\nexport * from \"./MachinesList.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__","import store from \"@/store\";\r\nimport { Actions } from \"@/store/enums/StoreEnums\";\r\n\r\n/**\r\n * Sets current page breadcrumbs\r\n * @param {string} pageTitle Current page title\r\n * @param {Array} breadcrumbs Current page breadcrumbs\r\n */\r\nexport const setCurrentPageBreadcrumbs = (\r\n pageTitle: string,\r\n breadcrumbs: Array\r\n): void => {\r\n store.dispatch(Actions.SET_BREADCRUMB_ACTION, {\r\n title: pageTitle,\r\n pageBreadcrumbPath: breadcrumbs,\r\n });\r\n};\r\n\r\n/**\r\n * Sets current page breadcrumbs\r\n * @param {string} title Current page title name\r\n */\r\nexport const setCurrentPageTitle = (title: string): void => {\r\n store.dispatch(Actions.SET_BREADCRUMB_ACTION, {\r\n title: title,\r\n });\r\n};\r\n"],"sourceRoot":""}