{"version":3,"sources":["webpack:///./src/views/Checkout/Payment.vue?7c45","webpack:///./src/app/repository/payments.repository.ts","webpack:///./src/views/Checkout/Payment.vue?4ef3","webpack:///./src/views/Checkout/Payment.vue","webpack:///./src/views/Checkout/Payment.vue?64a3","webpack:///./src/views/Checkout/Payment.vue?55ad"],"names":["name","data","setup","router","useRouter","store","useStore","showModal","ref","urlIframe","getters","replace","replaceRoute","value","setTimeout","planSelected","computed","userID","getIframePayment","_id","then","result","iframeLink","catch","error","console","log","RESOURCE","user_id","subscription_id","ApiAxios","post","response","processPayment","cc_id","verificationPayment","payment_id","getLiteDataPayment","paymentId","get","class","show","content","billing_months","src","footer","priceFormatedWithMoney","render","__scopeId"],"mappings":"qMACA,YACA,YACA,YACA,+BACA,UAAe,CACbA,KAAM,UACNC,KAAM,iBAAO,IACbC,MAHa,WAIX,IAAMC,EAAS,EAAAC,YACTC,EAAQ,EAAAC,WACRC,EAAY,EAAAC,KAAI,GAChBC,EAAY,EAAAD,IAAI,MAEsB,MAAxCH,EAAMK,QAAQ,wBAChBP,EAAOQ,QAAQ,CAAEX,KAAM,eAGzB,IAAMY,EAAe,WACnBL,EAAUM,OAAQ,EAClBC,YAAW,WACTX,EAAOQ,QAAQ,CAAEX,KAAM,eACtB,MAECe,EAAe,EAAAC,UACnB,kBAAMX,EAAMK,QAAQ,sCAGhBO,EAASZ,EAAMK,QAAQ,uBAU7B,OARA,UAAmBQ,iBAAiBD,EAAQF,EAAaF,MAAMM,KAC5DC,MAAK,SAACC,GACLZ,EAAUI,MAAQQ,EAAOC,cAE1BC,OAAM,SAACC,GACNC,QAAQC,IAAIF,MAGT,CAAEjB,YAAWK,eAAcG,eAAcN,gB,uHCtCpD,gBAEMkB,EAAW,YAEjB,UAAe,CACPT,iBADO,SACUU,EAAiBC,GAAuB,iKAEpC,EAAAC,WAAWC,KAAKJ,EAAW,YAAa,CAC7DC,UACAC,oBAJyD,uBAEnD5B,EAFmD,EAEnDA,KAFmD,kBAMpDA,GANo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,EAAAlC,W,yBAA8C,yBAAmE,MAAnE,EAAmE,CAAxC,yBAAkC,UAAzBmC,IAAK,EAAAnC,WAAS,oB,yBAA5H,yBAA0E,MAA1E,EAA0E,CAAnC,yBAA6B,YAA2GoC,OAAM,GAAC,iBAAyH,CAAzH,yBAAyH,IAAzH,EAAyH,6BAAnG,EAAA9B,aAAa+B,0BAA2B,mBAAgB,6BAAG,EAAA/B,aAAa4B,gBAAiB,SAAM,GAAI,EAA+F,EAAiE,MAA1uB,e,4DCAA,yIAKA,aAAOI,OAAS,OAChB,aAAOC,UAAY,kBAEJ,2B,kCCRf","file":"js/chunk-0e08509a.37d82b7f.js","sourcesContent":["\nimport { computed, ref } from \"vue\";\nimport { useRouter } from \"vue-router\";\nimport { useStore } from \"vuex\";\nimport PaymentsRepository from \"@/app/repository/payments.repository\";\nexport default {\n name: \"Payment\",\n data: () => ({}),\n setup() {\n const router = useRouter();\n const store = useStore();\n const showModal = ref(true);\n const urlIframe = ref(null);\n\n if (store.getters[\"userStore/getUserID\"] == null) {\n router.replace({ name: \"Quiz_email\" });\n }\n\n const replaceRoute = () => {\n showModal.value = false;\n setTimeout(() => {\n router.replace({ name: \"Checkout\" });\n }, 500);\n };\n const planSelected = computed(\n () => store.getters[\"plansSubscriptionsStore/getPlan\"]\n );\n\n const userID = store.getters[\"userStore/getUserID\"];\n\n PaymentsRepository.getIframePayment(userID, planSelected.value._id)\n .then((result) => {\n urlIframe.value = result.iframeLink;\n })\n .catch((error) => {\n console.log(error);\n });\n\n return { showModal, replaceRoute, planSelected, urlIframe };\n },\n};\n","import { ApiAxios } from './repository.config';\n\nconst RESOURCE = '/payments';\n\nexport default {\n async getIframePayment(user_id: string, subscription_id: string) {\n try {\n const { data } = await ApiAxios().post(RESOURCE + '/checkout', {\n user_id,\n subscription_id\n });\n return data;\n } catch (e) {\n return e.response.data;\n }\n },\n\n async processPayment(cc_id: string) {\n try {\n const { data } = await ApiAxios().post(RESOURCE + '/process', {\n cc_id\n });\n return data;\n } catch (e) {\n return e.response.data;\n }\n },\n\n async verificationPayment(payment_id: string) {\n try {\n const { data } = await ApiAxios().post(RESOURCE + '/verification', {\n payment_id\n });\n return data;\n } catch (e) {\n return e.response.data;\n }\n },\n\n async getLiteDataPayment(paymentId: string) {\n try {\n const { data } = await ApiAxios().get(RESOURCE + '/lite-' + paymentId);\n return data;\n } catch (e) {\n return e.response.data;\n }\n }\n};\n","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/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Payment.vue?vue&type=style&index=0&id=ad5b1c42&lang=scss&scoped=true\"","","import { render } from \"./Payment.vue?vue&type=template&id=ad5b1c42&scoped=true&lang=pug\"\nimport script from \"./Payment.vue?vue&type=script&lang=ts\"\nexport * from \"./Payment.vue?vue&type=script&lang=ts\"\n\nimport \"./Payment.vue?vue&type=style&index=0&id=ad5b1c42&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-ad5b1c42\"\n\nexport default script","export { default } from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Payment.vue?vue&type=script&lang=ts\"; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Payment.vue?vue&type=script&lang=ts\""],"sourceRoot":""}