{"version":3,"sources":["webpack:///./src/apps/shared/components/breadcrumb.vue","webpack:///./src/apps/shared/components/breadcrumb.vue?1690","webpack:///./src/apps/shared/components/breadcrumb.vue?e0a6","webpack:///./src/apps/shared/components/breadcrumb.vue?e166","webpack:///./src/apps/urban-mobility/quote/views/tab-two.vue","webpack:///./src/apps/shared/services/mobilityTypes-service.ts","webpack:///./src/apps/urban-mobility/quote/views/tab-two.vue?b38f","webpack:///./src/apps/urban-mobility/quote/views/tab-two.vue?9fab","webpack:///./src/apps/urban-mobility/quote/views/tab-two.vue?05c6","webpack:///./src/apps/shared/components/ProductCardsSelector.vue","webpack:///./src/apps/shared/components/ProductCardsSelector.vue?5c67","webpack:///./src/apps/shared/components/ProductCardsSelector.vue?d07a","webpack:///./src/apps/shared/components/ProductCardsSelector.vue?acc7"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","_l","localItems","item","index","key","path","class","active","length","attrs","_v","_s","text","staticRenderFns","defineComponent","name","components","RouterLink","busEvents","updateBreadcrumb","newBreadcrumb","breadcrumb","find","oldText","newText","data","mounted","getImplicitItems","methods","paths","$route","fullPath","split","items","route","matched","$router","match","meta","title","push","component","breadcrumItems","ref","productCardsSelector","on","volver","getMobilityTypes","productId","securityGroup","onDate","correlationInformation","userName","userToken","tokenType","http","get","params","then","response","XBreadcrumb","ProductCardsSelector","Next","fromTab","$refs","productCards","isNavigationAllowed","SaveProductDataValueSession","value","sessionStorage","removeItem","setItem","JSON","stringify","iconPromotion","otherIconPromotion","icon","product","subTitle","tabName","Date","toISOString","MobilityTypesService","vehicles","map","element","code","productDescription","hasProductNoteValue","setProductData","NF","UI","Page","unblock","validBack","getItem","resetNavigationFlag","productData","parse","getDataProductBack","productTypes","$event","onSelectedProduct","planNotes","notes","_e","checkValid","props","type","Object","required","productsValue","productDataJson","isNextTriggered","getProductDescription","planNote","setTimeout","block","productValueData","Bus","$emit"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAG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E,GACf9B,KAAK4F,mBAAqB9D,EAAK8D,oBAInCe,kBAAkBf,EAAoBD,EAAM6B,GACxCxH,KAAK4F,mBAAqBA,GAGtB5F,KAAKsH,iBAAoBtH,KAAKuE,sBAClCvE,KAAKsH,iBAAkB,EAEvBG,WAAW,KACP1B,GAAGC,GAAGC,KAAKyB,QACX1H,KAAK+G,YAAa,EAClB,IAAIY,EAAmB,CACnB/B,mBAAoBA,EACpBD,KAAMA,EACN6B,SAAUA,EACVpD,QAASpE,KAAKiD,qBAAqBmC,SAEvCpF,KAAK4H,IAAIC,MAAM,8BAA+BF,GAC9C3H,KAAK4H,IAAIC,MAAM,OAAQ,CAAEzD,QAASpE,KAAKiD,qBAAqBmC,UAC5DpF,KAAKuE,qBAAsB,GAC5B,OAGP8B,sBACIrG,KAAKuE,qBAAsB,EAC3BvE,KAAKsH,iBAAkB,MCjE4Y,I,YCO/axE,EAAY,eACd,EACAhD,EACAoB,GACA,EACA,KACA,KACA,MAIa,OAAA4B,E","file":"js/chunk-581a6767.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('ul',{staticClass:\"breadcrumb\"},_vm._l((_vm.localItems),function(item,index){return _c('li',{key:item.path,class:{ active: index === _vm.localItems.length - 1 }},[(index !== _vm.localItems.length - 1)?_c('RouterLink',{attrs:{\"to\":item.path}},[_vm._v(\" \"+_vm._s(item.text)+\" \")]):_c('span',[_vm._v(_vm._s(item.text))])],1)}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n import { RouterLink } from 'vue-router'\r\n import { defineComponent } from 'vue'\r\n import type { BreadcrumbItem } from '../../../types';\r\n export default defineComponent({\r\n name: 'XBreadcrumb',\r\n components: {\r\n RouterLink,\r\n },\r\n busEvents: {\r\n updateBreadcrumb(newBreadcrumb: { oldText: string, newText: string }) {\r\n const breadcrumb = this.localItems.find(item => item.text === newBreadcrumb.oldText);\r\n if (breadcrumb) {\r\n breadcrumb.text = newBreadcrumb.newText;\r\n }\r\n },\r\n },\r\n data() {\r\n return {\r\n localItems: [] as Array,\r\n }\r\n },\r\n mounted() {\r\n this.localItems = this.getImplicitItems()\r\n },\r\n methods: {\r\n getImplicitItems(): Array {\r\n const paths = this.$route.fullPath.split('/')\r\n const items: Array = []\r\n let route = ''\r\n\r\n for (const path of paths) {\r\n route = `${route}${path}/`\r\n const matched = this.$router.match(route)\r\n\r\n if (matched?.meta?.title) {\r\n items.push({\r\n text: matched.meta.title(matched),\r\n path: matched.path,\r\n })\r\n }\r\n }\r\n\r\n return items\r\n },\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!./breadcrumb.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!./breadcrumb.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./breadcrumb.vue?vue&type=template&id=3ee2845c&\"\nimport script from \"./breadcrumb.vue?vue&type=script&lang=ts&\"\nexport * from \"./breadcrumb.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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row margin-top-half\"},[_c('div',{staticClass:\"col-md-12\"},[_c('x-breadcrumb',{attrs:{\"items\":_vm.breadcrumItems}})],1)]),_c('product-cards-selector',{ref:\"productCards\",attrs:{\"productCardsSelector\":_vm.productCardsSelector}}),_c('div',{staticClass:\"row margin-top\"},[_c('div',{staticClass:\"col-md-8 col-md-offset-2 d-flex justify-content-center\"},[_c('button',{staticClass:\"btn btn-secondary-outline\",on:{\"click\":_vm.volver}},[_vm._v(\" Volver \")])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import http from \"../http/http-config\";\r\nimport { MobilityTypes } from \"../models/mobilityTypes\";\r\n\r\nexport default new class MobilityTypesService {\r\n getMobilityTypes(productId, securityGroup, onDate, correlationInformation, userName, userToken, tokenType): Promise {\r\n return http.get(\"MobilityTypes\", {\r\n params: {\r\n productId,\r\n securityGroup,\r\n onDate,\r\n correlationInformation,\r\n userName,\r\n userToken,\r\n tokenType\r\n }\r\n }).then(response => response.data)\r\n }\r\n}","\r\n import { defineComponent } from 'vue'\r\n import XBreadcrumb from '@/apps/shared/components/breadcrumb.vue';\r\n import MobilityTypesService from '@/apps/shared/services/mobilityTypes-service';\r\n import ProductCardsSelector from '@/apps/shared/components/ProductCardsSelector.vue';\r\n import { TitleAndPromotionsDetails } from '@/apps/shared/models/titleAndPromotionsDetails';\r\n export default defineComponent({\r\n components: {\r\n XBreadcrumb,\r\n ProductCardsSelector\r\n },\r\n busEvents: {\r\n Next: function (data) {\r\n //prevenir que el evento Next y otras acciones de navegación se ejecuten de forma redundante.\r\n if (data.fromTab === 'tab-two') {\r\n if (this.$refs.productCards && this.$refs.productCards.isNavigationAllowed) { // Comprobamos si la navegación está permitida\r\n this.$router.push({\r\n name: 'movilidad-range-view',\r\n });\r\n this.$refs.productCards.isNavigationAllowed = false; // Desactivamos la navegación\r\n }\r\n }\r\n },\r\n SaveProductDataValueSession: function (value) {\r\n if (value.fromTab === 'tab-two') {\r\n sessionStorage.removeItem('ProductDataSelected');\r\n sessionStorage.setItem('ProductDataSelected', JSON.stringify(value));\r\n }\r\n },\r\n },\r\n\r\n data() {\r\n return {\r\n productCardsSelector: {\r\n iconPromotion: null,\r\n otherIconPromotion: null,\r\n icon: null,\r\n product: \"\",\r\n title: \"¿Qué necesitás cotizar?\",\r\n subTitle: \"Elegí una opción para comenzar.\",\r\n tabName: \"tab-two\",\r\n } as TitleAndPromotionsDetails,\r\n breadcrumItems: [\r\n { text: 'Inicio', path: '/movilidad' },\r\n { text: 'Cotizador de Movilidad', path: '/movilidad/cotizarMovilidad' },\r\n ],\r\n }\r\n },\r\n methods: {\r\n getMobilityTypes: function () {\r\n var productId = 936;\r\n var securityGroup = '';\r\n let userName = '';\r\n let userToken = '';\r\n let tokenType = \"\";\r\n let correlationInformation = \"\";\r\n let onDate = new Date().toISOString();\r\n MobilityTypesService.getMobilityTypes(productId, securityGroup, onDate, correlationInformation, userName, userToken, tokenType)\r\n .then(response => {\r\n var vehicles = response.map(element => ({\r\n ...element,\r\n code: element[\"mobilityTypeId\"],\r\n productDescription: element[\"vehTypeDescription\"],\r\n hasProductNoteValue: element[\"notes\"] == \"\" ? false : true,\r\n }));\r\n this.$refs.productCards.setProductData(vehicles);\r\n NF.UI.Page.unblock();\r\n })\r\n },\r\n\r\n volver() {\r\n sessionStorage.setItem(\"pressBack\", \"true\");\r\n this.$router.push({\r\n name: 'tabOne',\r\n })\r\n },\r\n },\r\n\r\n mounted() {\r\n this.getMobilityTypes();\r\n this.validBack = sessionStorage.getItem(\"pressBack\");\r\n if (this.validBack) {\r\n // Permite la navegación nuevamente cuando el componente regresa a este tab\r\n this.$refs.productCards.resetNavigationFlag();\r\n var productData = JSON.parse(sessionStorage.getItem(\"ProductDataSelected\"));\r\n if (productData) {\r\n //Llama a la funcion de productCardsSelector.vue, luego de que regresan la pantalla y muestra la opcion elegida\r\n this.$refs.productCards.getDataProductBack(productData);\r\n }\r\n sessionStorage.removeItem(\"pressBack\");\r\n }\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!./tab-two.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!./tab-two.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./tab-two.vue?vue&type=template&id=e92ea0b4&\"\nimport script from \"./tab-two.vue?vue&type=script&lang=ts&\"\nexport * from \"./tab-two.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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"row margin-top\"},[_c('div',{staticClass:\"col-md-8 col-md-offset-2\"},[_c('h2',{staticClass:\"text-brand-secondary\"},[_c('strong',[_vm._v(_vm._s(_vm.productCardsSelector.title))])]),_c('p',[_vm._v(_vm._s(_vm.productCardsSelector.subTitle))]),_vm._l((_vm.productTypes),function(product){return _c('div',[_c('div',{class:product.productDescription === _vm.productDescription ? 'nf-card bg-animate pointer brand-secondary-lightest margin-top-half d-flex align-items-center': 'nf-card bg-animate pointer gray-lighter-hover margin-top-half d-flex align-items-center',on:{\"click\":function($event){return _vm.onSelectedProduct(product.productDescription,product.code, product.planNotes)}}},[_c('div',{staticClass:\"margin-right-half\"},[_c('i',{class:product.productDescription === _vm.productDescription ?\n 'fa fa-dot-circle-o text-brand-secondary':'fa fa-circle-o text-gray-darker'})]),_c('div',[_c('p',{staticClass:\"margin-none\"},[_c('strong',[_vm._v(_vm._s(product.productDescription))])]),(product.hasProductNoteValue)?_c('p',{staticClass:\"margin-none\"},[_vm._v(_vm._s(product.notes))]):_vm._e()])])])}),(_vm.checkValid==false)?_c('div',{staticClass:\"margin-top-half\"},[_c('p',{staticClass:\"text-brand-danger\"},[_vm._v(\"Debes seleccionar una opción\")])]):_vm._e()],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n import { defineComponent } from 'vue';\r\n import { TitleAndPromotionsDetails } from '@/apps/shared/models/titleAndPromotionsDetails';\r\n\r\n export default defineComponent({\r\n name: 'ProductCardsSelector',\r\n props: {\r\n productCardsSelector: {\r\n type: Object as () => TitleAndPromotionsDetails,\r\n required: true,\r\n }\r\n },\r\n data() {\r\n return {\r\n productTypes: [\r\n {\r\n code: \"\",\r\n productDescription: \"\",\r\n hasProductNoteValue: false,\r\n notes: null,\r\n }\r\n ],\r\n productsValue: null,\r\n productDescription: null,\r\n checkValid: true,\r\n productDataJson: null,\r\n isNextTriggered: false, //BANDERA --> si ya paso por aca o fue disparado\r\n isNavigationAllowed: true, //Esta permitido navegar\r\n getProductDescription:null\r\n }\r\n },\r\n methods: {\r\n setProductData(data) {\r\n this.productTypes = { ...data };\r\n },\r\n\r\n getDataProductBack(data) {\r\n this.productDescription = data.productDescription;\r\n },\r\n\r\n\r\n onSelectedProduct(productDescription, code, planNote) {\r\n this.productDescription = productDescription;\r\n\r\n //Banderas para que no sean redundante los $emits y los pasos por las vistas mediante route\r\n if (this.isNextTriggered || !this.isNavigationAllowed) return; // Si ya fue disparado o no está permitido navegar\r\n this.isNextTriggered = true; // Marca que el evento ya fue disparado\r\n\r\n setTimeout(() => {\r\n NF.UI.Page.block();\r\n this.checkValid = true;\r\n var productValueData = {\r\n productDescription: productDescription,\r\n code: code,\r\n planNote: planNote,\r\n fromTab: this.productCardsSelector.tabName,\r\n }\r\n this.Bus.$emit('SaveProductDataValueSession', productValueData);\r\n this.Bus.$emit('Next', { fromTab: this.productCardsSelector.tabName });\r\n this.isNavigationAllowed = false;\r\n }, 300)\r\n },\r\n\r\n resetNavigationFlag() {\r\n this.isNavigationAllowed = true; // Permitimos la navegación nuevamente\r\n this.isNextTriggered = false; // Reiniciamos la bandera\r\n }\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!./ProductCardsSelector.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!./ProductCardsSelector.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProductCardsSelector.vue?vue&type=template&id=a1e07a54&\"\nimport script from \"./ProductCardsSelector.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductCardsSelector.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":""}