{"version":3,"sources":["webpack:///./src/views/crafted/checkout/Waiting.vue?4463","webpack:///./src/views/crafted/checkout/Waiting.vue?f02f","webpack:///./src/views/crafted/checkout/Waiting.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","key","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","id","_hoisted_21","role","_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","render","_ctx","_cache","$props","$setup","$data","$options","transaction","payment_method","src","payment_url","alt","onClick","$event","copyURL","payment_code","type","payment_download_url","frameborder","name","data","components","setup","store","getters","getActiveCheckout","created","this","setInterval","update","methods","dispatch","GET_LATEST_ORDER_STATUS","then","response","current_response","status","fire","title","text","icon","confirmButtonText","router","push","catch","error","console","log","mytext","navigator","clipboard","writeText","__exports__"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,IACtBC,EAAa,CAAED,MAAO,mBACtBE,EAAa,CAAEF,MAAO,oBACtBG,EAA0B,gCAAoB,MAAO,CAAEH,MAAO,sCAAwC,CAC7F,gCAAoB,MAAO,CAAEA,MAAO,cAAgB,CAClD,gCAAoB,KAAM,CAAEA,MAAO,cAAgB,mCAEhE,GACEI,EAAa,CACjBC,IAAK,EACLL,MAAO,aAEHM,EAAa,CAAEN,MAAO,4DACtBO,EAAa,CAAEP,MAAO,OACtBQ,EAA0B,gCAAoB,IAAK,CAAER,MAAO,oBAAsB,gFAAiF,GACnKS,EAAa,CAAET,MAAO,sBACtBU,EAA2B,+BAAmB,koKAAquK,GACnxKC,EAAc,CAAEX,MAAO,gBACvBY,EAAc,CAAEZ,MAAO,yDACvBa,EAAc,CAAC,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AAI,4E,uDCpGpB,MAAMK,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpD,KAErD","file":"js/chunk-2d0b2601.f6dc7a22.js","sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, createStaticVNode as _createStaticVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = { class: \"container-fluid\" }\nconst _hoisted_3 = { class: \"card card-custom\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-header justify-content-center\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title\" }, [\n /*#__PURE__*/_createElementVNode(\"h3\", { class: \"card-label\" }, \" Finalize a sua inscrição! \")\n ])\n], -1)\nconst _hoisted_5 = {\n key: 0,\n class: \"card-body\"\n}\nconst _hoisted_6 = { class: \"thanks-box shadow-lg border-lg-2 rounded m-auto mb-lg-12\" }\nconst _hoisted_7 = { class: \"p-5\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"p\", { class: \"mb-5 text-center\" }, \"Quando o pagamento for aprovado, o seu acesso será liberado no Hacking Club.\", -1)\nconst _hoisted_9 = { class: \"d-flex flex-column\" }\nconst _hoisted_10 = /*#__PURE__*/_createStaticVNode(\"

Abra o aplicativo do seu banco e acesse a área Pix

Selecione a opção pagar com código Pix Copia e Cola e cole o código no espaço indicado no aplicativo

Após a confirmação do pagamento, você será redirecionado automaticamente.

\", 1)\nconst _hoisted_11 = { class: \"w-100 d-flex\" }\nconst _hoisted_12 = { class: \"qr-code d-flex justify-content-center w-100 mb-3 mt-0\" }\nconst _hoisted_13 = [\"src\"]\nconst _hoisted_14 = { class: \"d-flex flex-column justify-content-center w-50 mt-3\" }\nconst _hoisted_15 = { class: \"d-flex flex-column\" }\nconst _hoisted_16 = { class: \"d-flex flex-column mt-4\" }\nconst _hoisted_17 = {\n \"data-v-e2b86b8c\": \"\",\n class: \"p-4 d-flex justify-content-between align-items-center bg-gray-100 border border-gray-200 rounded transaction-reference d-flex w-100 mt-4\"\n}\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"span\", {\n \"data-v-e2b86b8c\": \"\",\n class: \"font-weight-bold text-1\"\n}, \" Código da transação: \", -1)\nconst _hoisted_19 = {\n \"data-v-e2b86b8c\": \"\",\n class: \"d-flex align-items-center justify-content-between\"\n}\nconst _hoisted_20 = {\n \"data-v-e2b86b8c\": \"\",\n id: \"transactionReference\",\n class: \"text-2\"\n}\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"row\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex justify-content-center items-align-center\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"p-4 d-flex justify-content-between align-items-center bg-gray-100 border border-gray-200 rounded transaction-reference d-flex w-20 mt-4\" }, [\n /*#__PURE__*/_createElementVNode(\"span\", {\n \"data-v-e2b86b8c\": \"\",\n class: \"font-weight-bold text-1\"\n }, \" Status: \"),\n /*#__PURE__*/_createElementVNode(\"div\", {\n \"data-v-e2b86b8c\": \"\",\n class: \"d-flex align-items-center justify-content-between\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", {\n \"data-v-e2b86b8c\": \"\",\n id: \"transactionReference\",\n class: \"text-2\"\n }, [\n /*#__PURE__*/_createTextVNode(\"  Aguardando pagamento   \"),\n /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"spinner-grow spinner-grow-sm text-warning\",\n role: \"status\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"sr-only\" }, \"Loading...\")\n ])\n ])\n ])\n ]),\n /*#__PURE__*/_createElementVNode(\"br\")\n ])\n], -1)\nconst _hoisted_22 = {\n key: 1,\n class: \"card-body\"\n}\nconst _hoisted_23 = { class: \"thanks-box shadow-lg border-lg-2 rounded m-auto mb-lg-12\" }\nconst _hoisted_24 = { class: \"p-5\" }\nconst _hoisted_25 = /*#__PURE__*/_createElementVNode(\"p\", { class: \"mb-5 text-center\" }, \"Quando o pagamento for aprovado, o seu acesso será liberado no Hacking Club.\", -1)\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"p\", { class: \"mb-5 text-gray-600 text-center\" }, \"O pagamento via boleto demora entre 2 à 3 dias úteis para ser compensado e seu acesso liberado no Hacking Club \", -1)\nconst _hoisted_27 = { class: \"d-flex flex-column align-items-center\" }\nconst _hoisted_28 = { class: \"row w-100 h-600px\" }\nconst _hoisted_29 = [\"src\"]\nconst _hoisted_30 = { class: \"d-flex flex-column justify-content-center w-50 mt-3\" }\nconst _hoisted_31 = { class: \"d-flex flex-column\" }\nconst _hoisted_32 = { class: \"d-flex flex-column mt-4\" }\nconst _hoisted_33 = {\n \"data-v-e2b86b8c\": \"\",\n class: \"p-4 d-flex justify-content-between align-items-center bg-gray-100 border border-gray-200 rounded transaction-reference d-flex w-100 mt-4\"\n}\nconst _hoisted_34 = /*#__PURE__*/_createElementVNode(\"span\", {\n \"data-v-e2b86b8c\": \"\",\n class: \"font-weight-bold text-1\"\n}, \" Código da transação: \", -1)\nconst _hoisted_35 = {\n \"data-v-e2b86b8c\": \"\",\n class: \"d-flex align-items-center justify-content-between\"\n}\nconst _hoisted_36 = {\n \"data-v-e2b86b8c\": \"\",\n id: \"transactionReference\",\n class: \"text-2\"\n}\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 _hoisted_4,\n (_ctx.transaction.payment_method == 'pix')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"img\", {\n src: _ctx.transaction.payment_url,\n alt: \"payment qr code\",\n class: \"qr-codeimage\"\n }, null, 8, _hoisted_13)\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"button\", {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.copyURL(_ctx.transaction.payment_code))),\n type: \"button\",\n class: \"btn btn-secondary flex-1 m-0 py-1\"\n }, \" Copiar código PIX \")\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"span\", _hoisted_20, _toDisplayString(_ctx.transaction.id), 1)\n ])\n ])\n ])\n ])\n ])\n ])\n ]),\n _hoisted_21\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.transaction.payment_method == 'boleto')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"div\", _hoisted_24, [\n _hoisted_25,\n _hoisted_26,\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"iframe\", {\n src: _ctx.transaction.payment_download_url,\n frameborder: \"0\"\n }, null, 8, _hoisted_29)\n ]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"button\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.copyURL(_ctx.transaction.payment_code))),\n type: \"button\",\n class: \"btn btn-secondary flex-1 m-0 py-1\"\n }, \" Copiar linha digitavel \")\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_33, [\n _hoisted_34,\n _createElementVNode(\"div\", _hoisted_35, [\n _createElementVNode(\"span\", _hoisted_36, _toDisplayString(_ctx.transaction.id), 1)\n ])\n ])\n ])\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]))\n}","\n\nimport { Actions, Mutations } from \"@/store/enums/StoreEnums\";\nimport { computed, defineComponent } from \"vue\";\nimport {useStore} from \"vuex\";\nimport router from \"@/router\";\nimport toastr from \"toastr\";\nimport Swal from \"sweetalert2/dist/sweetalert2.min.js\";\n\n\nexport default defineComponent({\n name: \"checkout-waiting\",\n data(){\n return {\n payment_method: null,\n }\n },\n components: {\n },\n setup() {\n const store = useStore();\n const response = {\n \"success\": true,\n \"transaction\": {\n \"id\": \"tran_GPLDQODF2pIk45ZK\",\n \"transaction_type\": \"boleto\",\n \"gateway_id\": \"611266213\",\n \"amount\": 17970,\n \"status\": \"generated\",\n \"success\": true,\n \"url\": \"https://api.pagar.me/1/boletos/live_cl27wfyog6l8k0sm5l3dbmpc5\",\n \"pdf\": \"https://api.pagar.me/1/boletos/live_cl27wfyog6l8k0sm5l3dbmpc5?format=pdf\",\n \"line\": \"23791.22928 60010.311987 43000.046904 7 89640000017970\",\n \"barcode\": \"https://api.pagar.me/core/v5/transactions/tran_GPLDQODF2pIk45ZK/barcode\",\n \"qr_code\": \"https://api.pagar.me/core/v5/transactions/tran_GPLDQODF2pIk45ZK/qrcode\",\n \"nosso_numero\": \"611266213\",\n \"bank\": \"001\",\n \"document_number\": \"611266213\",\n \"instructions\": \"Não aceitar após o vencimento.\",\n \"due_at\": \"2022-04-23T23:59:59Z\",\n \"created_at\": \"2022-04-20T18:19:26Z\",\n \"updated_at\": \"2022-04-20T18:19:26Z\",\n \"gateway_response\": {\n \"code\": \"200\"\n },\n \"antifraud_response\": {},\n \"metadata\": {}\n }\n }\n\n \n /** \n const transaction = {\n id: response.transaction.id,\n total_price: response.transaction.amount,\n payment_method: \"boleto\",\n payment_url: response.transaction.barcode,\n payment_download_url: response.transaction.pdf,\n payment_code: response.transaction.line,\n status: response.transaction.status,\n }\n **/ \n const transaction = computed(() => {\n return store.getters.getActiveCheckout;\n });\n \n\n return {\n store,\n transaction\n };\n },\n created(){\n if(this.transaction.payment_method == 'pix'){\n setInterval(() => this.update(), 5000);\n }\n },\n methods: {\n async update() {\n await this.store.dispatch(Actions.GET_LATEST_ORDER_STATUS, {}).then(response => {\n const current_response = this.store.getters.getActiveCheckout;\n \n if(current_response.status == \"paid\" || current_response.status == \"captured\"){\n this.transaction.status = current_response.status;\n Swal.fire({\n title: \"Parabéns!\",\n text: \"Bem vindo(a) ao club, você está pronto para começar a aprender!\",\n icon: \"success\",\n confirmButtonText: \"Ok\"\n }).then(() => {\n \n // redirect to home\n router.push({name: 'dashboard'});\n });\n }\n }).catch(error => {\n console.log(error)\n })\n\n return;\n },\n async copyURL(mytext) {\n try {\n await navigator.clipboard.writeText(mytext);\n } catch($e) {\n console.log('Oops, esse tal de navigador clipboard não funciona no seu dispositivo :/');\n }\n },\n \n }\n});\n","import { render } from \"./Waiting.vue?vue&type=template&id=4d970d04&ts=true\"\nimport script from \"./Waiting.vue?vue&type=script&lang=ts\"\nexport * from \"./Waiting.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":""}