{"version":3,"sources":["webpack:///./src/views/crafted/certification/CertificationFeedback.vue?99ef","webpack:///./src/views/crafted/certification/CertificationFeedback.vue?9749","webpack:///./src/views/crafted/certification/CertificationFeedback.vue"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","key","_hoisted_5","_hoisted_6","_hoisted_7","_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","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","role","_hoisted_36","setup","__props","t","store","router","currentLanguage","getters","getCurrentLanguage","localStorage","getItem","userCertification","certificationOK","loading","deadlineSendReport","value","deadline_send_report","subtract","format","dateTimeout","timeout","feedbackCertification","ApiService","get","data","status","current_step","push","name","approved","grade","console","error","response","message","log","gradeCertification","class1","class2","class3","title","text","commentCertification","comment","handleDownloadCertification","certificate_data","url","window","open","_ctx","_cache","_component_router_link","to","default","$t","_","onClick","__exports__"],"mappings":"2IAAA,W,0ICGMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,YACtBC,EAAa,CAAED,MAAO,wBACtBE,EAA2BL,GAAa,WAAmB,uCAAoB,IAAK,CAAEG,MAAO,mCAAqC,MAAO,MACzIG,EAAa,CAAEC,IAAK,GACpBC,EAAa,CAAEL,MAAO,WACtBM,EAAa,CAAEN,MAAO,YACtBO,EAAa,CAAEP,MAAO,gCACtBQ,EAAa,CAAER,MAAO,oCACtBS,EAAa,CACjBT,MAAO,4CACPU,MAAO,CAAC,OAAS,UAEbC,EAAc,CAAEX,MAAO,kDACvBY,EAAc,CAAEZ,MAAO,6CACvBa,EAAc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cACN,CACD+B,EACA,6BAAiB,IAAM,6BAAiBwD,EAAKK,GAAM,mBAAOhD,GAAgB,+CAAgD,OAE3H,yBAAc,gCAAoB,SAAUZ,EAAa,CACxDC,EACA,6BAAiB,IAAM,6BAAiBsD,EAAKK,GAAM,mBAAOhD,GAAgB,+CAAgD,sBAejJ,Q,iCCnTL,MAAMmD,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD","file":"js/chunk-d261ca52.18a3f0a4.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./CertificationFeedback.vue?vue&type=style&index=0&id=a1a8d420&scoped=true&lang=css\"","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a1a8d420\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"row mb-5\" }\nconst _hoisted_2 = { class: \"col-md-12 text-start\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-chevron-left text-primary\" }, null, -1))\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = { class: \"row g-5\" }\nconst _hoisted_6 = { class: \"col-xl-3\" }\nconst _hoisted_7 = { class: \"card card-xl-stretch mb-xl-8\" }\nconst _hoisted_8 = { class: \"card-body d-flex flex-column p-0\" }\nconst _hoisted_9 = {\n class: \"d-flex flex-center justify-content-center\",\n style: {\"height\":\"150px\"}\n}\nconst _hoisted_10 = { class: \"d-flex flex-center justify-content-center my-3\" }\nconst _hoisted_11 = { class: \"d-flex flex-center justify-content-center\" }\nconst _hoisted_12 = { class: \"fs-7 text-center text-gray-700 px-2\" }\nconst _hoisted_13 = { class: \"col-xl-9\" }\nconst _hoisted_14 = { class: \"card card-xl-stretch text-gray-700\" }\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-header\" }, [\n /*#__PURE__*/_createElementVNode(\"h3\", { class: \"card-title\" }, \"FeedBack\")\n], -1))\nconst _hoisted_16 = {\n class: \"p-3 card-scroll\",\n style: {\"height\":\"140px\"}\n}\nconst _hoisted_17 = { class: \"fs-6\" }\nconst _hoisted_18 = { class: \"fs-6\" }\nconst _hoisted_19 = { class: \"fs-6\" }\nconst _hoisted_20 = { class: \"card shadow-sm\" }\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-header\" }, [\n /*#__PURE__*/_createElementVNode(\"h3\", { class: \"card-title text-gray-800\" }, \"Feedback Hacking Club\"),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-toolbar\" })\n], -1))\nconst _hoisted_22 = { class: \"card-body\" }\nconst _hoisted_23 = { class: \"fs-4 text-gray-700\" }\nconst _hoisted_24 = { class: \"row mt-5 mx-1\" }\nconst _hoisted_25 = { class: \"card\" }\nconst _hoisted_26 = { class: \"card-body\" }\nconst _hoisted_27 = { class: \"d-flex flex-column\" }\nconst _hoisted_28 = { class: \"justify-content-center d-flex align-items-center\" }\nconst _hoisted_29 = { class: \"\" }\nconst _hoisted_30 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-file-earmark-arrow-down fs-2 text-white mt-1\" }, null, -1))\nconst _hoisted_31 = {\n key: 1,\n class: \"upload-btn-disabled bg-gray-300 text-gray-500\"\n}\nconst _hoisted_32 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-file-earmark-arrow-down fs-2 text-gray-500 mt-1\" }, null, -1))\nconst _hoisted_33 = {\n key: 1,\n class: \"d-flex flex-column py-6\"\n}\nconst _hoisted_34 = { class: \"container text-center mt-5\" }\nconst _hoisted_35 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"spinner-border text-primary\",\n role: \"status\"\n}, null, -1))\nconst _hoisted_36 = { class: \"text-muted fs-3 fw-bold mt-3 mb-6\" }\n\nimport {computed, onMounted, ref, onBeforeMount} from \"vue\";\nimport {useRouter} from \"vue-router\";\nimport {useStore} from \"vuex\";\nimport CardMachine from \"@/components/certification/CardMachine.vue\";\nimport {Actions} from \"@/store/enums/StoreEnums\";\nimport ApiService from \"@/core/services/ApiService\";\nimport {CertificationDataType} from \"@/types/CertificationType\";\nimport {useI18n} from \"vue-i18n\";\nimport moment from \"moment\";\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 userCertification = ref();\nconst certificationOK = ref(false);\nconst terms = ref(false);\nconst isChecked = ref(false);\nconst loading = ref(false);\nconst approvedCertification = ref(false)\nconst url = ref('');\n\nconst deadlineSendReport = computed(() => {\n return moment(userCertification.value?.deadline_send_report).subtract(3, 'hours').format('DD/MM/YY');\n})\nconst dateTimeout = computed(() => {\n return moment(userCertification.value?.timeout).subtract(3, 'hours').format('DD/MM/YY');\n})\n\nconst feedbackCertification = async () => {\n try {\n const {data, status} = await ApiService.get(\"/certification/status/1\");\n if (status === 200) {\n\n if(data.data.current_step === 1 || data.data.current_step === 2) {\n await router.push({ name: 'certifications-to-do'});\n }else if(data.data.current_step === 3){\n await router.push({ name: 'certifications-sending-report'});\n }else if(data.data.current_step === 4){\n userCertification.value = data.data;\n }else{\n await router.push({name: 'certifications'})\n }\n\n if(\n (userCertification.value?.approved === 1 && userCertification.value?.approved !== null) &&\n (userCertification.value?.grade >= 7 && userCertification.value?.grade !== null)\n ){\n certificationOK.value = true;\n }\n // if(userCertification.value?.url !== null){\n // url.value = userCertification.value?.url;\n // approvedCertification.value = true;\n // }\n }\n } catch (e) {\n console.error(\"Erro ao redirecionar:\", e);\n if(e.response.data.message === \"certificado ainda não iniciado\" ){\n await router.push({name: 'certifications'})\n }\n }finally {\n loading.value = false;\n }\n}\n\nonMounted(async () => {\n loading.value = true;\n try{\n await feedbackCertification();\n }catch (e) {\n console.log(e)\n }finally {\n loading.value = false;\n }\n})\nconst checkedTerms = () => {\n isChecked.value = !isChecked.value;\n terms.value = isChecked.value;\n}\n\nconst gradeCertification = computed(() => {\n if(userCertification.value?.grade === null){\n return {\n grade: '-',\n class1: 'border-gray-500',\n class2: 'bg-gray-200 text-gray-500',\n class3: 'text-gray-500',\n title: t(`${currentLanguage.value}.certification.feedback.grade_null_title`),\n text: t(`${currentLanguage.value}.certification.feedback.grade_null_text`)\n }\n }else if(userCertification.value?.grade < 7){\n return {\n grade: userCertification.value?.grade,\n class1: 'border-danger',\n class2: 'bg-light-danger text-danger',\n class3: 'text-danger',\n title: t(`${currentLanguage.value}.certification.feedback.grade_smaller_7_title`),\n text: t(`${currentLanguage.value}.certification.feedback.grade_smaller_7_text`)\n }\n }else{\n return {\n grade: userCertification.value?.grade,\n class1: 'border-success',\n class2: 'bg-light-success text-success',\n class3: 'text-success',\n title: t(`${currentLanguage.value}.certification.feedback.grade_bigger_7_title`),\n text: t(`${currentLanguage.value}.certification.feedback.grade_bigger_7_text`)\n }\n }\n})\n\nconst commentCertification = computed(() => {\n if(userCertification.value?.comment === null){\n return {\n comment: t(`${currentLanguage.value}.certification.feedback.comment_null`),\n }\n }else if(userCertification.value?.comment === \"user disapproved\"){\n return {\n //deadlineSendReport\n comment: t(`${currentLanguage.value}.certification.feedback.desc_comment_1`) + `${dateTimeout.value}` + t(`${currentLanguage.value}.certification.feedback.desc_comment_2`) + ` (${deadlineSendReport.value}) ` + t(`${currentLanguage.value}.certification.feedback.desc_comment_3`),\n }\n }else{\n return {\n comment: userCertification.value?.comment,\n }\n }\n})\n//(userCertification?.approved === 1 && userCertification?.approved !== null) && (userCertification?.grade >= 7 && userCertification?.grade !== null)\n// const approvedCertification = computed(() => {\n// if((userCertification.value?.approved === 1 && userCertification.value?.approved !== null) && (userCertification.value?.grade >= 7 && userCertification.value?.grade !== null)){\n// return true;\n// }else{\n// return false;\n// }\n// });\n\nconst handleDownloadCertification = async () => {\n try {\n const certificate_data = await ApiService.get(\"/certification/download/1\");\n if(certificate_data.status !== 200) return console.error(\"Erro ao redirecionar:\", certificate_data);\n const url = certificate_data.data.url;\n window.open(url, '_blank');\n } catch (e) {\n console.error(\"Erro ao redirecionar:\", e);\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_router_link, {\n to: { name: 'dashboard' },\n class: \"text-primary\"\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.common.back`)), 1)\n ]),\n _: 1\n })\n ])\n ]),\n (!loading.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"symbol symbol-100px border\", _unref(gradeCertification)?.class1])\n }, [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"symbol-label fw-bold\", _unref(gradeCertification)?.class2]),\n style: {\"font-size\":\"3.5rem\"}\n }, _toDisplayString(_unref(gradeCertification)?.grade), 3)\n ], 2)\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"h3\", {\n class: _normalizeClass([\"mb-0 text-center fs-3 fw-bolder\", _unref(gradeCertification)?.class3]),\n style: {\"margin-top\":\"-15px\"}\n }, _toDisplayString(_unref(gradeCertification)?.title), 3)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"span\", _hoisted_12, _toDisplayString(_unref(gradeCertification)?.text), 1)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _hoisted_15,\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"p\", _hoisted_17, [\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.approved`)) + \":\", 1),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.approved_desc`)), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_18, [\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.no_approved`)) + \":\", 1),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.no_approved_desc`)), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_19, _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.description`)), 1)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _hoisted_21,\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"p\", _hoisted_23, _toDisplayString(_unref(commentCertification)?.comment), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", _hoisted_29, [\n (certificationOK.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n onClick: handleDownloadCertification,\n class: \"upload-btn\"\n }, [\n _hoisted_30,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.your_certification`)), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"button\", _hoisted_31, [\n _hoisted_32,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.feedback.your_certification`)), 1)\n ]))\n ])\n ])\n ])\n ])\n ])\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_33, [\n _createElementVNode(\"div\", _hoisted_34, [\n _hoisted_35,\n _createElementVNode(\"span\", _hoisted_36, \"    \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.send_report.analyzing`)) + \" \" + _toDisplayString(_ctx.$t(`${_unref(currentLanguage)}.certification.send_report.report`)) + \"... \", 1)\n ])\n ]))\n ], 64))\n}\n}\n\n})","import script from \"./CertificationFeedback.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CertificationFeedback.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./CertificationFeedback.vue?vue&type=style&index=0&id=a1a8d420&scoped=true&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src791094775/src/hackingclub-spa/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a1a8d420\"]])\n\nexport default __exports__"],"sourceRoot":""}