{"version":3,"sources":["webpack:///./src/apps/shared/services/cupe-service.ts","webpack:///../Content/Images/Logos/Logotecnologia.png","webpack:///./src/apps/electronic-equipment/quote/payment.vue","webpack:///./src/apps/electronic-equipment/quote/payment.vue?3fb0","webpack:///./src/apps/electronic-equipment/quote/payment.vue?f31b","webpack:///./src/apps/electronic-equipment/quote/payment.vue?37c2"],"names":["GetCUPEUrl","productId","email","http","get","params","then","response","data","Finish","externalIdentifier","module","exports","render","_vm","this","_c","_self","_setupProxy","staticClass","_l","localItems","item","index","key","path","attrs","_v","_s","text","_m","require","planDescription","primerCuota","capital","cobertura","value","coverDescription","ref","slot","on","close","getFilePath","staticStyle","open","staticRenderFns","Vue","extend","components","name","description","methods","changeTitleAndIcon","newTitle","$emit","updateByProductGoogleAnalytics","window","globalThis","dataLayer","productGtmName","FilePathService","location","href","getCUPE","NF","UI","Page","blockCustom","message","timeStart","Date","getTime","CUPEService","document","getElementById","setAttribute","preferenceMessage","addEventListener","loadingIframe","unblock","endTime","secondCharge","Math","round","push","$refs","modal","mounted","planDataSelected","sessionStorage","getItem","coverData","cover","JSON","parse","DataPlan","premioMensual","setItem","component"],"mappings":"gHAAA,gBAGe,WAAI,MAEfA,WAAWC,EAAWC,GAClB,OAAOC,OAAKC,IAAkB,OAAQ,CAClCC,OAAQ,CACJJ,YACAC,WAELI,KAAKC,GAAYA,EAASC,MAGjCC,OAAOC,EAAmBT,GACtB,OAAOE,OAAKC,IAAa,cAAe,CACpCC,OAAQ,CACJJ,YACAS,wBAELJ,KAAKC,GAAYA,EAASC,S,uBCpBrCG,EAAOC,QAAU,IAA0B,0B,yCCA3C,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,UAAU,CAACH,EAAG,MAAM,CAACG,YAAY,mBAAmB,CAACH,EAAG,KAAK,CA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6E,OAEF,MAApBJ,IACAzE,KAAKgF,SAAWF,KAAKC,MAAMN,GAC3BzE,KAAKiB,gBAAkBjB,KAAKgF,SAAS/D,gBACrCjB,KAAKkB,YAAclB,KAAKgF,SAASC,cACjCjF,KAAKmB,QAAUnB,KAAKgF,SAAS7D,SAEjCuD,eAAeQ,QAAQ,sBAAuB,WC/E4W,I,YCOlaC,EAAY,eACd,EACArF,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAAqD,E","file":"js/chunk-552cae72.js","sourcesContent":["import http from \"../http/http-config\";\r\nimport { CUPECheckout } from \"../models/cupeCheckout\";\r\n\r\nexport default new class CUPEService {\r\n\r\n GetCUPEUrl(productId, email): Promise {\r\n return http.get(\"CUPE\", {\r\n params: {\r\n productId,\r\n email\r\n }\r\n }).then(response => response.data)\r\n };\r\n\r\n Finish(externalIdentifier,productId): Promise {\r\n return http.get(\"CUPE/Finish\", {\r\n params: {\r\n productId,\r\n externalIdentifier,\r\n }\r\n }).then(response => response.data)\r\n };\r\n}","module.exports = __webpack_public_path__ + \"img/Logotecnologia.png\";","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"margin\"},[_c('div',{staticClass:\"col-md-offset-1\"},[_c('ul',{staticClass:\"breadcrumb margin-top-half\"},[_vm._l((_vm.localItems),function(item,index){return _c('li',{key:item.path},[_c('RouterLink',{attrs:{\"to\":item.path}},[_vm._v(\" \"+_vm._s(item.text)+\" \")])],1)}),_vm._m(0)],2),_c('div',{staticClass:\"row col-md-11 col-lg-11 col-sm-10 col-xs-12\"},[_c('div',{staticClass:\"panel-group\",attrs:{\"aria-multiselectable\":\"true\"}},[_c('div',{staticClass:\"panel panel-default\"},[_c('div',{staticClass:\"panel-heading\",attrs:{\"role\":\"tab\",\"id\":\"headingOne\"}},[_c('div',{staticClass:\"panel-title\"},[_c('a',{staticClass:\"collapsed\",attrs:{\"role\":\"button\",\"data-toggle\":\"collapse\",\"href\":\"#collapseOne\",\"aria-expanded\":\"false\",\"aria-controls\":\"collapseOne\"}},[_c('spam',{staticClass:\"text-brand-primary\"},[_c('b',[_c('img',{staticClass:\"media-object pull-left\",attrs:{\"src\":require(\"../../../../../Content/Images/Logos/Logotecnologia.png\"),\"alt\":\".media-object\"}}),_c('span',{staticClass:\"text-brand-primary-darker\"},[_vm._v(_vm._s(_vm.planDescription))])])]),_c('h5',{staticClass:\"text-brand-secondary\"},[_vm._v(\"Valor Mensual: $\"+_vm._s(_vm.primerCuota))])],1)])]),_c('div',{staticClass:\"collapse-content collapse\",attrs:{\"id\":\"collapseOne\",\"aria-labelledby\":\"headingOne\"}},[_c('div',{staticClass:\"panel-body\"},[_c('div',{staticClass:\"form-group\"},[_c('div',[_c('div',{staticClass:\"margin-bottom\"},[_c('b',[_vm._v(\"Suma asegurada: $\"+_vm._s(_vm.capital))])])]),_vm._m(1),_vm._l((_vm.cobertura),function(value){return _c('div',{},[_c('div',{staticClass:\"margin-left margin-top-half\"},[_c('div',{staticClass:\"text-brand-primary-darker\"},[_c('h6',{staticClass:\"text-black-dark\"},[_c('b',[_vm._v(_vm._s(value.coverDescription))])])])])])})],2)])])])]),_c('div',{staticClass:\"panel panel-default\"},[_c('div',{staticClass:\"panel-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('div',{attrs:{\"id\":\"pagoTab\"}},[_c('div',{attrs:{\"id\":\"pagoView\"}},[_c('iframe',{ref:\"myIframe\",staticClass:\"iframeCupe\",attrs:{\"id\":\"pagoIframe\",\"src\":\"\",\"scrolling\":\"yes\",\"width\":\"100%\",\"height\":\"690\",\"frameborder\":\"0\"}})])])])])])]),_c('nf-modal',{ref:\"modal\",staticClass:\"modal-scrollable\",attrs:{\"id\":\"modalDataConfirmacion\",\"reset-scroll\":\"\"}},[_c('span',{staticClass:\"h3\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('b',{staticClass:\"text-brand-primary\"},[_vm._v(\"Cancelar cotización\")])]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('i',{staticClass:\"text-brand-primary fa fa-info-circle-o\"}),_c('span',{staticClass:\"text-brand-primary\"},[_vm._v(\" Si cancelás la operación, el pedido de Cotización iniciada se perderá.\")]),_c('br'),_c('br'),_c('p',[_c('b',[_vm._v(\"¿Deseas continuar?\")])])]),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.close}},[_vm._v(\" Continuar cotización \")]),_c('button',{staticClass:\"btn btn-default\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.getFilePath}},[_vm._v(\" Cancelar operación \")])])]),_c('div',{staticClass:\"text-center\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{attrs:{\"slot\":\"toolbar\"},slot:\"toolbar\"},[_c('a',{staticStyle:{\"font-size\":\"15px\"},on:{\"click\":_vm.open}},[_vm._v(\" Cancelar \")])]),_vm._m(2)])])],1)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('li',[_c('span',{staticClass:\"text-brand-secondary\",attrs:{\"id\":\"StepText\"}},[_vm._v(\"Contratar\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('h4',{staticClass:\"text-brand-secondary margin-top\"},[_c('b',[_vm._v(\"Coberturas\")])])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"col-xs-12 margin-bottom-half margin-top-half\"},[_c('div',[_c('label',[_vm._v(\"¿Tenes dudas? Llamanos al\")])]),_c('div',[_c('label',{staticClass:\"text-brand-secondary\"},[_c('u',[_vm._v(\"0800-444-2850\")])])]),_c('div',[_c('label',[_vm._v(\"Para que podamos ayudarte.\")])])])\n}]\n\nexport { render, staticRenderFns }","\r\n import Vue from 'vue';\r\n import CUPEService from '@/apps/shared/services/cupe-service';\r\n import FilePathService from '@/apps/shared/services/filePath-service';\r\n export default Vue.extend({\r\n components: {\r\n },\r\n name: 'ElectronicDevicePayment',\r\n data() {\r\n return {\r\n capital: null,\r\n description: true,\r\n localItems: [{ text: 'Inicio', path: '/tecnologia' }],\r\n }\r\n },\r\n methods: {\r\n changeTitleAndIcon() {\r\n // Lógica para determinar el nuevo título\r\n const newTitle = 'Tecnología';\r\n // Emite eventos para actualizar el título\r\n this.$emit('updateTitle', newTitle);\r\n },\r\n\r\n updateByProductGoogleAnalytics() {\r\n window.globalThis.dataLayer = window.globalThis.dataLayer || [];\r\n const productGtmName = 'DefaultElectronicDeviceGTMInfo';\r\n this.$emit('updateByProductGoogleAnalytics', productGtmName);\r\n },\r\n\r\n getFilePath() {\r\n FilePathService.getFilePath(\"UrlBase\")\r\n .then(response => {\r\n window.location.href = response + \"tecnologia\";\r\n });\r\n },\r\n\r\n getCUPE: function () {\r\n var email = \"\";\r\n var productId = 1000;\r\n NF.UI.Page.blockCustom({ message: \"Redirigiendo al pago\" });\r\n var timeStart = new Date().getTime();\r\n CUPEService.GetCUPEUrl(productId, email).then(response => {\r\n document.getElementById(\"pagoIframe\").setAttribute('src', response.preferenceMessage);\r\n document.getElementById('pagoIframe').addEventListener('load', () => {\r\n this.loadingIframe = false;\r\n NF.UI.Page.unblock();\r\n var endTime = new Date().getTime();\r\n var secondCharge = Math.round((endTime - timeStart) / 1000);\r\n window.globalThis.dataLayer.push({ 'product': 'tecnologia', 'event': 'cotizador-tecnologia-checkout', 'carga': secondCharge });\r\n NF.UI.Page.unblock();\r\n });\r\n\r\n })\r\n },\r\n\r\n open: function () {\r\n this.$refs.modal.open();\r\n },\r\n\r\n close: function () {\r\n this.$refs.modal.close();\r\n },\r\n },\r\n mounted() {\r\n this.changeTitleAndIcon();\r\n this.updateByProductGoogleAnalytics();\r\n this.getCUPE();\r\n var planDataSelected = sessionStorage.getItem(\"PlanSelected\")\r\n var coverData = sessionStorage.getItem(\"cover\");\r\n if (coverData != null) {\r\n this.cover = JSON.parse(coverData!)\r\n this.cobertura = this.cover\r\n }\r\n if (planDataSelected != null) {\r\n this.DataPlan = JSON.parse(planDataSelected!);\r\n this.planDescription = this.DataPlan.planDescription;\r\n this.primerCuota = this.DataPlan.premioMensual;\r\n this.capital = this.DataPlan.capital;\r\n }\r\n sessionStorage.setItem(\"ExitOrContinueModal\", \"true\")\r\n },\r\n });\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./payment.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./payment.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./payment.vue?vue&type=template&id=d2198346&\"\nimport script from \"./payment.vue?vue&type=script&lang=ts&\"\nexport * from \"./payment.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}