{"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-three.vue","webpack:///./src/apps/shared/services/typesOptionsGroup-service.ts","webpack:///./src/apps/urban-mobility/quote/views/tab-three.vue?48a2","webpack:///./src/apps/urban-mobility/quote/views/tab-three.vue?88dc","webpack:///./src/apps/urban-mobility/quote/views/tab-three.vue?c69a","webpack:///./src/apps/shared/services/capitalRange-service.ts","webpack:///./src/apps/shared/services/theftQuotation-service.ts","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","getTypesOptionsGroup","productId","securityGroup","rangeId","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","tabName","subTitle","rangeSelected","dataAmparo","relationId","quotationId","Date","toISOString","vehicleData","parse","getItem","valueRange","Promise","async","quotationDataResult","code","parseInt","typesOptionsGroupService","responseAmparos","o","coverCustomitationsArray","amparoTheftOptionsArray","amparoTheftOptions","forEach","amparoOptions","coverCustomizations","coverNumber","coverCode","capital","deductibleType","rate","amparoTypes","amparoOption","amparoTypesDescription","body","originRequest","clientIdentify","documentType","documentNumber","mobilityTypeId","theftQuotationService","createTheft936Quotation","responseTheft936Quotation","plans","dataPlans","resolve","NF","UI","Page","unblock","Notification","show","type","Type","ERROR","content","position","Positions","TOP_RIGHT","clickClose","autoHideDelay","isNextTriggered","window","globalThis","dataLayer","getCapitalRanges","capitalRangeService","getCapitalRange","productData","values","map","element","productDescription","getProductDescription","setProductData","validBack","resetNavigationFlag","getDataProductBack","model","post","createTheft1000Quotation","productTypes","$event","onSelectedProduct","planNotes","hasProductNoteValue","notes","_e","checkValid","props","Object","required","productsValue","productDataJson","planNote","setTimeout","block","productValueData","Bus","$emit"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,KAAK,CAACG,YAAY,cAAcL,EAAIM,GAAIN,EAAIO,YAAY,SAASC,EAAKC,GAAO,OAAOP,EAAG,KAAK,CAACQ,IAAIF,EAAKG,KAAKC,MAAM,CAAEC,OAAQJ,IAAUT,EAAIO,WAAWO,OAAS,IAAK,CAAEL,IAAUT,EAAIO,WAAWO,OAAS,EAAGZ,EAAG,aAAa,CAACa,MAAM,CAAC,GAAKP,EAAKG,OAAO,CAACX,EAAIgB,GAAG,IAAIhB,EAAIiB,GAAGT,EAAKU,MAAM,OAAOhB,EAAG,OAAO,CAACF,EAAIgB,GAAGhB,EAAIiB,GAAGT,EAAKU,UAAU,MAAK,IAEnaC,EAAkB,G,oCCEHC,+BAAgB,CAC3BC,KAAM,cACNC,WAAY,CACRC,mBAEJC,UAAW,CACPC,iBAAiBC,GACb,MAAMC,EAAa1B,KAAKM,WAAWqB,KAAKpB,GAAQA,EAAKU,OAASQ,EAAcG,SACxEF,IACAA,EAAWT,KAAOQ,EAAcI,WAI5CC,OACI,MAAO,CACHxB,WAAY,KAGpByB,UACI/B,KAAKM,WAAaN,KAAKgC,oBAE3BC,QA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AAsB,GAC5B,OAGPwF,sBACIhK,KAAKwE,qBAAsB,EAC3BxE,KAAKiJ,iBAAkB,MCjE4Y,I,YCO/anG,EAAY,eACd,EACAhD,EACAoB,GACA,EACA,KACA,KACA,MAIa,OAAA4B,E","file":"js/chunk-5617be34.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<BreadcrumbItem>,\r\n            }\r\n        },\r\n        mounted() {\r\n            this.localItems = this.getImplicitItems()\r\n        },\r\n        methods: {\r\n            getImplicitItems(): Array<BreadcrumbItem> {\r\n                const paths = this.$route.fullPath.split('/')\r\n                const items: Array<BreadcrumbItem> = []\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 { AmparoGroup } from \"../models/amparoGroup\";\r\n\r\nexport default new class typesOptionsGroupService {\r\n    getTypesOptionsGroup(productId, securityGroup, rangeId, onDate, correlationInformation, userName, userToken, tokenType): Promise<AmparoGroup[]> {\r\n        return http.get<AmparoGroup[]>(\"TypesOptionsGroup\", {\r\n            params: {                \r\n                productId,\r\n                securityGroup,\r\n                rangeId,\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 capitalRangeService from '@/apps/shared/services/capitalRange-service';\r\n    import typesOptionsGroupService from '@/apps/shared/services/typesOptionsGroup-service';\r\n    import theftQuotationService from '@/apps/shared/services/theftQuotation-service';\r\n    import { TitleAndPromotionsDetails } from '@/apps/shared/models/titleAndPromotionsDetails';\r\n    import ProductCardsSelector from '@/apps/shared/components/ProductCardsSelector.vue';\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-three') {\r\n                    if (this.$refs.productCards && this.$refs.productCards.isNavigationAllowed) {  // Comprobamos si la navegación está permitida\r\n                        this.getTypesOptionsGroup();\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-three') {\r\n                    sessionStorage.removeItem('ProductValueSelected');\r\n                    sessionStorage.setItem('ProductValueSelected', JSON.stringify(value));\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                    tabName: \"tab-three\",\r\n                    title: \"Valor\",\r\n                    subTitle: \"Seleccioná el rango de valor de tu vehiculo.\",\r\n                } as TitleAndPromotionsDetails,\r\n                rangeSelected: null,\r\n                dataAmparo: [],\r\n                relationId: null,\r\n                quotationId: null,\r\n                productId: 936,\r\n                breadcrumItems: [\r\n                    { text: 'Inicio', path: '/movilidad' },\r\n                    { text: 'Cotizador de Movilidad', path: '/movilidad/cotizarMovilidad' },\r\n                    { text: 'Valor del Vehiculo', path: 'movilidad/valorVehiculo' },\r\n                ],\r\n                onDate: new Date().toISOString(),\r\n            }\r\n        },\r\n        methods: {\r\n            getTypesOptionsGroup: function () {\r\n                var vehicleData = JSON.parse(sessionStorage.getItem(\"ProductDataSelected\"));\r\n                var valueRange = JSON.parse(sessionStorage.getItem(\"ProductValueSelected\"));\r\n                return new Promise<any>(async (resolve) => {\r\n                    sessionStorage.removeItem(\"ResponseAmparos\");\r\n                    sessionStorage.removeItem(\"DataQuotation\");\r\n                    var quotationDataResult = [];\r\n                    var rangeId = valueRange.code != null ? parseInt(valueRange.code) : 1;\r\n                    this.quotationId = null;\r\n                    this.relationId = null;\r\n                    await typesOptionsGroupService.getTypesOptionsGroup(this.productId, '', rangeId, this.onDate, '', '', '', '').then(async responseAmparos => {\r\n                        if (!responseAmparos) {\r\n                            window.globalThis.dataLayer.push({ 'product': 'movilidad', 'event': 'errorServidor', 'paso': 'cotizador-movilidad-valor' });\r\n                        } else {\r\n                            sessionStorage.setItem(\"ResponseAmparos\", JSON.stringify(responseAmparos));\r\n                            this.dataAmparo = responseAmparos;\r\n                            for (let o of this.dataAmparo) {\r\n                                var coverCustomitationsArray = [];\r\n                                var amparoTheftOptionsArray = [];\r\n                                o.amparoTheftOptions.forEach(amparoOptions => {\r\n                                    var coverCustomizations = {\r\n                                        coverNumber: amparoOptions.coverCode,\r\n                                        capital: 0,\r\n                                        deductibleType: 0,\r\n                                        rate: 0\r\n                                    };\r\n                                    coverCustomitationsArray.push(coverCustomizations);\r\n                                    var amparoTheftOptions = {\r\n                                        coverCode: amparoOptions.coverCode,\r\n                                        amparoTypes: amparoOptions.amparoTypes,\r\n                                        amparoOption: amparoOptions.amparoOption,\r\n                                        capital: amparoOptions.capital,\r\n                                        amparoTypesDescription: amparoOptions.amparoTypesDescription\r\n                                    }\r\n                                    amparoTheftOptionsArray.push(amparoTheftOptions);\r\n                                });\r\n\r\n                                var vehicle = JSON.parse(sessionStorage.getItem(\"ProductDataSelected\"));\r\n                                var body = JSON.stringify({\r\n                                    userName: '',\r\n                                    userToken: '',\r\n                                    tokenType: '',\r\n                                    correlationInformation: '',\r\n                                    originRequest: \"2\",\r\n                                    coverCustomizations: coverCustomitationsArray,\r\n                                    clientIdentify: {\r\n                                        documentType: \"D\",\r\n                                        documentNumber: 0\r\n                                    },\r\n                                    relationId: (this.relationId != null ? this.relationId : 0),\r\n                                    quotationId: this.quotationId != null ? this.quotationId : null,\r\n                                    amparoTheftOptions: amparoTheftOptionsArray,\r\n                                    mobilityTypeId: parseInt(vehicleData.code)\r\n                                });\r\n                                await theftQuotationService.createTheft936Quotation(body).then(async responseTheft936Quotation => {\r\n                                    if (!responseTheft936Quotation) {\r\n                                        NF.Notification.show({\r\n                                            type: NF.Notification.Type.ERROR,\r\n                                            title: 'Error',\r\n                                            content: 'Se produjo un error al cotizar.',\r\n                                            position: NF.Notification.Positions.TOP_RIGHT,\r\n                                            clickClose: true,\r\n                                            autoHideDelay: 10000,\r\n                                        });\r\n                                        this.$refs.productCards.isNavigationAllowed = true;\r\n                                        this.$refs.productCards.isNextTriggered = false;\r\n                                        window.globalThis.dataLayer.push({ 'product': 'movilidad', 'event': 'errorServidor', 'paso': 'cotizador-movilidad-valor' });\r\n                                        NF.UI.Page.unblock();\r\n                                    } else {\r\n                                        const { plans, quotationId, relationId } = responseTheft936Quotation;\r\n                                        this.quotationId = quotationId;\r\n                                        this.relationId = relationId;\r\n                                        const dataPlans = { plans, quotationId, relationId };\r\n                                        quotationDataResult.push(dataPlans);\r\n                                        sessionStorage.setItem(\"DataQuotation\", JSON.stringify(quotationDataResult));\r\n                                        if (this.dataAmparo.length == quotationDataResult.length) {\r\n                                            resolve(true)\r\n                                            this.$router.push({ name: 'plans-view' });\r\n                                            NF.UI.Page.unblock();\r\n                                        }\r\n                                    }\r\n                                });\r\n                            }\r\n                        }\r\n                    })\r\n                });\r\n            },\r\n\r\n            getCapitalRanges() {\r\n                capitalRangeService.getCapitalRange(this.onDate, this.productId, \"\", \"\", \"\", \"\", \"\").then(response => {\r\n                    if (!response) {\r\n                        window.globalThis.dataLayer.push({ 'product': 'movilidad', 'event': 'errorServidor', 'paso': 'cotizador-movilidad-cotizacion' });\r\n                    }\r\n                    else {\r\n                        var productData = JSON.parse(sessionStorage.getItem(\"ProductValueSelected\"));\r\n                        var values = response.map(element => ({\r\n                            ...element,\r\n                            code: element[\"capitalRangeCode\"],\r\n                            productDescription: element[\"description\"],\r\n                            getProductDescription: productData && productData.productDescription\r\n                        }));\r\n                        this.$refs.productCards.setProductData(values);\r\n                        NF.UI.Page.unblock();\r\n                    }\r\n                })\r\n            },\r\n\r\n            volver() {\r\n                sessionStorage.setItem(\"pressBack\", \"true\");\r\n                this.$router.push({\r\n                    name: 'cotizador-movilidad',\r\n                })\r\n            },\r\n        },\r\n\r\n        mounted() {\r\n            window.globalThis.dataLayer.push({ 'product': 'movilidad', 'event': 'cotizador-movilidad-cotizacion' });\r\n            sessionStorage.setItem(\"ExitOrContinueModal\", \"true\");\r\n            this.getCapitalRanges();\r\n            var validBack = sessionStorage.getItem(\"pressBack\");\r\n            if (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(\"ProductValueSelected\"));\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            }\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-three.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-three.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./tab-three.vue?vue&type=template&id=d6d3cac6&\"\nimport script from \"./tab-three.vue?vue&type=script&lang=ts&\"\nexport * from \"./tab-three.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","import http from \"../http/http-config\";\r\nimport { CapitalRange } from \"../models/capitalRange\";\r\n\r\nexport default new class capitalRangeService {\r\n    getCapitalRange(onDate, productId, securityGroup, correlationInformation, userName, userToken, tokenType): Promise<CapitalRange[]> {\r\n        return http.get<CapitalRange[]>(\"CapitalRange\", {\r\n            params: {                \r\n                onDate,\r\n                productId,\r\n                securityGroup,\r\n                correlationInformation,\r\n                userName,\r\n                userToken,\r\n                tokenType\r\n            }\r\n        }).then(response => response.data)\r\n    }\r\n}","import http from \"../http/http-config\";\r\nimport { TheftQuotationResponse } from \"../models/theftQuotationResponse\";\r\n\r\nexport default new class TheftQuotationService {\r\n    //Movilidad Urbana \r\n    createTheft936Quotation(model: string): Promise<TheftQuotationResponse> {        \r\n        return http.post<TheftQuotationResponse>(\"TheftQuotation\", model).then(response => response.data);\r\n    }\r\n\r\n    //Equipo Electronico\r\n    createTheft1000Quotation(model: string): Promise<TheftQuotationResponse> {\r\n        return http.post<TheftQuotationResponse>(\"TheftQuotation/GetTheft1000Quotation\", model).then(response => response.data);\r\n    }\r\n\r\n}","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":""}