\n\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=b81fae1a&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"widget-main\",staticClass:\"widget-main\"},[_c('section',{staticClass:\"widget-card\",style:({ height: _vm.widgetCardHeight })},[_c('DecorativePanel'),_c('HeaderTitle',{attrs:{\"previous-action\":_vm.previousAction,\"user\":_vm.representativeUser}}),_c('router-view')],1),_c('div',{ref:\"external-buttons\",staticClass:\"external-buttons\"},[(_vm.$route.name === 'home')?[(_vm.isApplicationAvailable(_vm.ApplicationsService.APPOINTMENT_BOOKING))?_c('DefaultButton',{attrs:{\"design-type\":\"primary\",\"design-variant\":\"default\"},on:{\"click\":_vm.bookAppointment}},[_vm._v(\" Prendre un rendez-vous entretien \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"📅\")])]):_vm._e(),(_vm.isApplicationAvailable(_vm.ApplicationsService.TRADEIN_OFFER_REQUEST))?_c('DefaultButton',{attrs:{\"design-type\":\"primary\",\"design-variant\":\"default\"},on:{\"click\":_vm.requestTadeInOffer}},[_vm._v(\" Recevoir une offre de reprise \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"💶\")])]):_vm._e(),(_vm.isApplicationAvailable(_vm.ApplicationsService.MESSENGER))?_c('DefaultButton',{attrs:{\"design-type\":\"primary\",\"design-variant\":\"default\"},on:{\"click\":_vm.createConversation}},[_vm._v(\" Démarrer une conversation avec un conseiller \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"💬\")])]):_vm._e()]:(_vm.$route.name == 'appointment-booking')?_c('AssistanceButton'):_vm._e()],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('DefaultButton',{attrs:{\"design-type\":\"primary\",\"design-variant\":\"default\"},on:{\"click\":_vm.callOrShowPhoneNumber}},[(!_vm.isPhoneNumberShown)?[_vm._v(\" Être assisté(e) par téléphone \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"📞\")])]:(!_vm.isMobile)?[_vm._v(\" Appelez dès à présent le \"),_c('strong',[_vm._v(_vm._s(_vm._f(\"phone\")(_vm.workspacePhoneNumber)))]),_vm._v(\" \"),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"📞\")])]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// From https://github.com/arasatasaygin/is.js\nclass BrowserService {\n static get _userAgent() {\n return (navigator && navigator.userAgent || navigator.vendor || window.opera || \"\").toLowerCase()\n }\n\n static isMobile() {\n let check = false\n if (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(this._userAgent)\n || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(this._userAgent.substr(0,4))) {\n check = true\n }\n return check\n }\n}\n\nexport default BrowserService","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"default-button\",class:[_vm.typeClass, { 'disabled': _vm.isDisabled || _vm.isLoading }],attrs:{\"disabled\":_vm.isDisabled || _vm.isLoading,\"loading\":_vm.isLoading},on:{\"click\":function($event){return _vm.$emit('click', $event)}}},[(_vm.isLoading)?_c('i',{staticClass:\"el-icon-loading\"}):_vm._e(),_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultButton.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DefaultButton.vue?vue&type=template&id=52d5c7bb&scoped=true&\"\nimport script from \"./DefaultButton.vue?vue&type=script&lang=js&\"\nexport * from \"./DefaultButton.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DefaultButton.vue?vue&type=style&index=0&id=52d5c7bb&lang=scss&scoped=true&\"\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 \"52d5c7bb\",\n null\n \n)\n\nexport default component.exports","\n \n \n Être assisté(e) par téléphone 📞\n \n \n Appelez dès à présent le {{ workspacePhoneNumber | phone }}📞\n \n \n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AssistanceButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AssistanceButton.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AssistanceButton.vue?vue&type=template&id=549ca4f6&scoped=true&\"\nimport script from \"./AssistanceButton.vue?vue&type=script&lang=js&\"\nexport * from \"./AssistanceButton.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 \"549ca4f6\",\n null\n \n)\n\nexport default component.exports","const MESSENGER = \"messenger\"\nconst TRADEIN_OFFER_REQUEST = \"tradein_offer_request\"\nconst APPOINTMENT_BOOKING = \"appointment_booking\"\n\nclass ApplicationsService {\n static get MESSENGER() {\n return MESSENGER\n }\n static get TRADEIN_OFFER_REQUEST() {\n return TRADEIN_OFFER_REQUEST\n }\n static get APPOINTMENT_BOOKING() {\n return APPOINTMENT_BOOKING\n }\n}\n\nexport default ApplicationsService\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"decorative-panel\",style:({ backgroundColor: _vm.appOptions.themeColor })})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DecorativePanel.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DecorativePanel.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DecorativePanel.vue?vue&type=template&id=1755936e&scoped=true&\"\nimport script from \"./DecorativePanel.vue?vue&type=script&lang=js&\"\nexport * from \"./DecorativePanel.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DecorativePanel.vue?vue&type=style&index=0&id=1755936e&lang=scss&scoped=true&\"\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 \"1755936e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',{staticClass:\"header-title\"},[(_vm.previousAction)?_c('el-button',{staticClass:\"header-title-button\",attrs:{\"icon\":\"el-icon-arrow-left\"},on:{\"click\":function($event){return _vm.goTo(_vm.previousAction)}}}):_vm._e(),_c('div',{staticClass:\"representative-user\"},[_c('img',{staticClass:\"representative-user-picture\",attrs:{\"alt\":\"Votre interlocuteur\",\"src\":_vm.userImage || 'https://maprochaineauto-public-s3.s3.eu-west-3.amazonaws.com/profile-pictures/default_thumbnail.jpg'}}),_c('div',{staticClass:\"representative-user-info\"},[_c('span',[_vm._v(_vm._s(_vm.userFullname))]),(_vm.workspaceName)?_c('span',[_c('span',[_vm._v(\"pour\")]),_vm._v(\" \"+_vm._s(_vm.workspaceName))]):_vm._e()])]),_c('el-button',{staticClass:\"header-title-button close-button\",attrs:{\"icon\":\"el-icon-close\"},on:{\"click\":_vm.closeBmFrame}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n\n
\n \n
\n {{ userFullname }}\n pour {{ workspaceName }}\n
\n
\n\n \n \n\n\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderTitle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderTitle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./HeaderTitle.vue?vue&type=template&id=221a1921&scoped=true&\"\nimport script from \"./HeaderTitle.vue?vue&type=script&lang=js&\"\nexport * from \"./HeaderTitle.vue?vue&type=script&lang=js&\"\nimport style0 from \"./HeaderTitle.vue?vue&type=style&index=0&lang=scss&\"\nimport style1 from \"./HeaderTitle.vue?vue&type=style&index=1&id=221a1921&lang=scss&scoped=true&\"\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 \"221a1921\",\n null\n \n)\n\nexport default component.exports","\n
\n \n \n \n \n \n\n
\n \n \n Prendre un rendez-vous entretien 📅\n \n\n \n Recevoir une offre de reprise 💶\n \n\n \n Démarrer une conversation avec un conseiller 💬\n \n \n \n
\n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WidgetMain.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WidgetMain.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WidgetMain.vue?vue&type=template&id=5ea64b3c&scoped=true&\"\nimport script from \"./WidgetMain.vue?vue&type=script&lang=js&\"\nexport * from \"./WidgetMain.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WidgetMain.vue?vue&type=style&index=0&id=5ea64b3c&lang=scss&scoped=true&\"\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 \"5ea64b3c\",\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\"\nimport VueRouter from \"vue-router\"\nimport WidgetMain from \"@/views/WidgetMain.vue\"\n\nVue.use(VueRouter)\n\nconst routes = [\n {\n path: \"/:appCode\",\n component: WidgetMain,\n children: [\n {\n path: \"\",\n name: \"home\",\n component: () => import(/* webpackChunkName: \"home\" */ \"@/components/Home.vue\")\n },\n {\n path: \"prise-de-rendez-vous-entretien\",\n name: \"appointment-booking\",\n component: () => import(/* webpackChunkName: \"appointment-booking\" */ \"@/components/applications/appointment-booking/AppointmentBooking.vue\")\n },\n {\n path: \"demande-offre-de-reprise\",\n name: \"tradein-offer-request\",\n component: () => import(/* webpackChunkName: \"tradein-offer-request\" */ \"@/components/applications/tradein-offer-request/TradeinOfferRequest.vue\")\n },\n {\n path: \"conversation\",\n name: \"conversation\",\n component: () => import(/* webpackChunkName: \"conversation\" */ \"@/components/applications/conversation/Conversation.vue\")\n }\n ],\n },\n {\n path: \"/:appointmentId/enregistrement-en-ligne\",\n redirect: route => {\n const origin = window.location.origin.replace(\"messenger\", \"checkin\")\n const appointmentId = route.params.appointmentId\n window.location.href = `${origin}/enregistrement-en-ligne/${appointmentId}`\n }\n },\n]\n\nconst router = new VueRouter({\n mode: \"history\",\n base: process.env.BASE_URL,\n routes\n})\n\nexport default router\n","import config from \"@/app.config\"\nimport Vue from \"vue\"\nimport VueI18n from \"vue-i18n\"\n\nVue.use(VueI18n)\n\nfunction loadLocaleMessages() {\n const locales = require.context(\"@/locales\", true, /[A-Za-z0-9-_,\\s]+\\.json$/i)\n const messages = {}\n locales.keys().forEach(key => {\n const matched = key.match(/([A-Za-z0-9-_]+)\\./i)\n if (matched && matched.length > 1) {\n const locale = matched[1]\n messages[locale] = locales(key)\n }\n })\n return messages\n}\n\nexport default new VueI18n({\n locale: config.i18nLocale || \"fr\",\n fallbackLocale: config.i18nFallbackLocal || \"en\",\n messages: loadLocaleMessages()\n})\n","/* eslint-disable sort-imports */\n\nimport Vue from \"vue\"\n\n/**********/\n/* Styles */\n/**********/\n\n// https://element.eleme.io/#/en-US/component/installation\nimport \"./plugins/element-ui.js\"\n\n// https://animate.style/#usage\nimport \"animate.css/animate.min.css\"\n\n// Custom CSS\nimport \"@/styles/main.scss\"\n\n/***********/\n/* Plugins */\n/***********/\n\n// https://vcalendar.io/\nimport VCalendar from \"v-calendar\"\nVue.use(VCalendar)\n\n// https://momentjs.com/docs/\nimport moment from \"moment\"\nmoment.locale(config.i18nLocale)\nVue.prototype.$moment = moment\n\n// https://github.com/pusher/pusher-js\nimport pusher from \"./plugins/pusher\"\nVue.prototype.$pusher = pusher\n\n// https://vuejs.org/v2/guide/filters.html\nimport \"@/plugins/filters\"\n\n/*******/\n/* App */\n/*******/\n\nimport App from \"./App.vue\"\nimport config from \"@/app.config\"\nimport router from \"./router\"\nimport i18n from \"./plugins/i18n\"\nimport store from \"./store\"\n\n// Core API client configuration\nimport coreApiClient from \"@/providers/core-api/CoreApi\"\ncoreApiClient.getAccessToken = () => store.state.auth.token\n\nVue.config.productionTip = false\n\nnew Vue({\n router,\n i18n,\n store,\n render: h => h(App)\n}).$mount(\"#app\")\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WidgetMain.vue?vue&type=style&index=0&id=5ea64b3c&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WidgetMain.vue?vue&type=style&index=0&id=5ea64b3c&lang=scss&scoped=true&\"","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"","import axios from \"axios\"\nimport Qs from \"qs\"\n\nclass BaseApi {\n getAccessToken() {\n return null\n }\n\n errorHandler(error) {\n return Promise.reject(error.response)\n }\n\n async sendRequest(method, path, payload, headers = {}) {\n // Method check\n let isCallMethodValid = this._checkCallMethod(method)\n if (!isCallMethodValid) {\n window.console.error(`[Error] Call method not valid: ${method}`)\n return\n }\n\n // Path check\n let isCallPathValid = this._checkCallPath(path)\n if (!isCallPathValid) {\n window.console.error(`[Error] Call path not valid: ${path}`)\n return\n }\n\n // Base axios options\n let options = {\n method,\n url: this._getFullUrl(path),\n paramsSerializer: function (params) {\n return Qs.stringify(params, { indices: false })\n },\n headers: { \"Content-Type\": \"application/json\" }\n }\n\n // Token header\n let token = this.getAccessToken()\n if (token) {\n options.headers[\"x-access-token\"] = token\n }\n\n // Extra headers\n if (headers) {\n Object.keys(headers).forEach(header => {\n options.headers[header] = headers[header]\n })\n }\n\n // Params/data axios options\n switch (method) {\n case \"get\":\n options.params = payload\n break\n\n default:\n options.data = payload\n break\n }\n\n // Effective axios call\n return axios(options)\n .then(this._successHandler)\n .catch(this.errorHandler)\n }\n\n _checkCallMethod(method) {\n return [\"get\", \"post\", \"patch\"].includes(method)\n }\n\n _checkCallPath(path) {\n return typeof path === \"string\" && path !== \"\" && path.startsWith(\"/\")\n }\n\n _getFullUrl(path) {\n return this.baseUrl + path\n }\n\n _successHandler(response) {\n return Promise.resolve(response.data)\n }\n}\n\nexport default BaseApi\n","import BaseApi from \"@/providers/BaseApi\"\nimport config from \"@/app.config\"\n\nclass CoreApi extends BaseApi {\n get baseUrl() {\n return config.baseApiUrl\n }\n}\n\nlet client = new CoreApi\nexport default client\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DecorativePanel.vue?vue&type=style&index=0&id=1755936e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DecorativePanel.vue?vue&type=style&index=0&id=1755936e&lang=scss&scoped=true&\"","class StringService {\n static formatPhoneNumber(value) {\n if (!value) {\n return \"\"\n }\n return (value + \"\").replace(/\\s/g, \"\").replace(/([0-9]{2})/g, \"$1 \").trim()\n }\n\n static cleanPhoneNumber(value) {\n if (!value) {\n return null\n }\n return (value + \"\").replace(/\\s/g, \"\")\n }\n\n static currency(value, country, displayDecimals=true) {\n const CURRENCY_MAP = {\n \"FR\": {\n format: \"fr-FR\",\n currency: \"EUR\"\n },\n \"CH\": {\n format: \"de-CH\",\n currency: \"CHF\"\n }\n }\n\n let country_currency = CURRENCY_MAP[country] || CURRENCY_MAP[\"FR\"]\n const formatter = new Intl.NumberFormat(country_currency.format, {\n style: \"currency\",\n currency: country_currency.currency,\n maximumFractionDigits: displayDecimals ? 2 : 0\n })\n\n return formatter.format(value)\n }\n}\n\nexport default StringService\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultButton.vue?vue&type=style&index=0&id=52d5c7bb&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultButton.vue?vue&type=style&index=0&id=52d5c7bb&lang=scss&scoped=true&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderTitle.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderTitle.vue?vue&type=style&index=0&lang=scss&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderTitle.vue?vue&type=style&index=1&id=221a1921&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HeaderTitle.vue?vue&type=style&index=1&id=221a1921&lang=scss&scoped=true&\""],"sourceRoot":""}