{"version":3,"sources":["webpack:///./src/widgets/quote/index.vue","webpack:///src/widgets/quote/index.vue","webpack:///./src/widgets/quote/index.vue?b026","webpack:///./src/widgets/quote/index.vue?b557","webpack:///./src/utils/user-features.js","webpack:///./src/utils/get-valid-route.js"],"names":["render","_vm","this","_c","_self","attrs","loadingQuote","loadingUser","applicationLoading","redirectionHandled","quoteId","staticRenderFns","name","props","data","computed","mapState","routeQuoteId","application","mapGetters","userFeatures","watch","$route","immediate","handler","methods","mapMutations","mapActions","goToRedirectionRoute","params","goToFurthestRoute","route","query","mounted","getEnv","window","applicationQuoteId","noQuoteAndHasAccepted","quoteToGet","components","QuoteLoading","component","getUserFeatures","_get","store","routeName","router","currentRoute","invalidRouteIndex","routeOrder","indexOf","getters","currentRouteIndex"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,eAAe,CAACE,MAAM,CAAC,QAAUJ,EAAIK,cAAgBL,EAAIM,aAAeN,EAAIO,qBAAuBP,EAAIQ,mBAAmB,WAAWR,EAAIS,YAE3MC,EAAkB,G,oJCcR,GACdC,mBACAC,OACAH,gBAEAI,gBACA,OACAL,wBAGAM,uFACAC,gBACAC,sDACAX,sDACAC,mDACAC,wEACAU,6DAEAC,8BACA,yBACA,mBACA,uBACA,2BAEAA,uCACAA,4CACAC,wBACA,2BAGAC,OACAC,QACAC,aACAC,mBACA,+CACA,uBACA,2BAKAC,oHACAC,oDACAA,6CACAA,8CACAC,kDACAA,oCACAA,0CACAC,qMACC,EAAD,cACAhB,+BACAiB,wCACA,mCACAnB,cAEA,kFAPAkB,IASAE,uLACAC,sBACAA,gEACC,EAAD,6BACAnB,OACAiB,iCACAE,uBACA,uCACAC,wDAEA,gEAVAF,MAcAG,mMACCC,iDACA,EAAD,qBAGA,uDACAC,qDAKA,OAFA,wBACA,qCACA,mBAGC,EAAD,yBAOA,GAJA,oCACA,0CAIA,kEACAA,8CAQA,OALAC,iCACAC,gBAEAC,IACAF,EACA,oBAEC,EAAD,wBAEAC,oCACC,EAAD,iDACC,EAAD,4BACA,qFAGA,+CACA,2DACA,gBACAzB,iCACAiB,6BACA,sBAEA,yBACA,WAGA,uDACC,EAAD,4BACA,iFAtDAI,IAyDAM,YACAC,kFCjJkV,I,YCO9UC,EAAY,eACd,EACAzC,EACAW,GACA,EACA,KACA,KACA,MAIa,aAAA8B,E,6CClBf,qCAGMC,EAAkB,WAAH,OAASC,IAAKC,OAAO,6BAA+B,IAE1DF,U,oFCQA,gBAAUG,GACvBA,EAAYA,GAAaC,OAAOC,aAAanC,KAC7C,IAAMoC,EAAoBC,4BAAWC,QACnCN,OAAMO,QAAQ,qCAEVC,EAAoBH,4BAAWC,QAAQL,GAC7C,OAAIG,EAAoBI,EACfH,4BAAWD,GAEbH","file":"js/chunk-3c14fec2.e39603bc.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('QuoteLoading',{attrs:{\"loading\":_vm.loadingQuote || _vm.loadingUser || _vm.applicationLoading || !_vm.redirectionHandled,\"quote-id\":_vm.quoteId}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n","import mod from \"-!../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=2c63ca3c&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\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 _get from 'lodash/get';\nimport store from '@/store';\n\nconst getUserFeatures = () => _get(store, 'state.user.user.features') || {};\n\nexport default getUserFeatures;\n","import router from '../router';\nimport store from '../store';\nimport { ROUTE_VALIDATION_ORDER as routeOrder } from './constants';\n\n/**\n * Returns the first invalid route up to the given route name.\n * If no route name is provided, the current route name is used.\n * If there is no invalid route up to the given route name, the route name is\n * returned.\n *\n * @param routeName Route name to get the valid route to\n * @returns {*|string} Route name\n */\nexport default function (routeName) {\n routeName = routeName || router.currentRoute.name;\n const invalidRouteIndex = routeOrder.indexOf(\n store.getters['application/getFirstInvalidRoute']\n );\n const currentRouteIndex = routeOrder.indexOf(routeName);\n if (invalidRouteIndex < currentRouteIndex) {\n return routeOrder[invalidRouteIndex];\n }\n return routeName;\n}\n"],"sourceRoot":""}