{"version":3,"file":"contact_form.js-DygIdO3n.js","sources":["../../../../../plugin-vue:export-helper","../../../../../app/javascript/components/contact_form/FirstStep.vue","../../../../../app/javascript/components/contact_form/SecondStep.vue","../../../../../app/javascript/components/contact_form/ThirdStep.vue","../../../../../app/javascript/components/contact_form/FourthStep.vue","../../../../../app/javascript/components/contact_form/FifthStep.vue","../../../../../app/javascript/components/contact_form/App.vue","../../../../../app/javascript/helpers/generate_component.js","../../../../../app/javascript/helpers/axios_provider.js","../../../../../app/javascript/entrypoints/contact_form.js"],"sourcesContent":["\nexport default (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n}\n","\n\n","\n\n","\n\n","\n\n\n\n","\n\n\n\n","\n\n\n\n","import * as Vue from 'vue/dist/vue.esm-bundler';\n\nexport const generateApplication = (component, identifier, options ={\n injections: [],\n props: {},\n packages: [],\n components: [],\n globalEventsProvider: null\n}) => {\n const element = document.querySelector(identifier)\n if (Boolean(element)) {\n const app = Vue.createApp(component, {...(options?.props || {}), ...element.dataset })\n \n if (Array.isArray(options?.injections)) {\n options.injections.forEach(({ name, module }) => { app.provide(name, module); });\n }\n \n if (Array.isArray(options?.packages)) {\n options.packages.forEach(module => { app.use(module); });\n }\n \n if (Array.isArray(options?.components)) {\n options.components.forEach(({ name, module }) => { app.component(name, module); });\n }\n \n if (options?.globalEventsProvider) {\n app.config.globalProperties.emitter = options.globalEventsProvider;\n }\n \n app.mount(identifier)\n }\n};","import axios from 'axios';\nimport Swal from 'sweetalert2'\n\naxios.interceptors.response.use((response) => {\n // Handle the response here\n return response\n}, (error) => {\n // Handle errors here\n if(error.response.data.data == 'Not authorized'){\n Swal.fire({\n icon: 'error',\n title: 'Tu sesiĆ³n se ha caducado',\n showConfirmButton: true\n });\n\n window.location.href = '/login'\n }\n return Promise.reject(error)\n})\n\nexport const generateAxiosInstance = (\n hostApiKey = 'oO60HTCXroXwpsMSYP0cb0cg2hRYNtmSluF',\n baseUrl = null,\n token = null,\n) => {\n if (token) {\n axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;\n }\n axios.defaults.headers.common['x-api-key'] = hostApiKey;\n axios.defaults.headers.common['Accept'] = 'application/json';\n axios.defaults.headers.common['Content-Type'] = 'application/json';\n axios.defaults.baseURL = baseUrl;\n return axios;\n};","import App from '@components/contact_form/App.vue'\r\nimport { generateApplication } from '@helpers/generate_component.js';\r\nimport { generateAxiosInstance } from '@helpers/axios_provider.js'\r\nimport { autoAnimatePlugin } from '@formkit/auto-animate/vue'\r\n\r\nimport VueSweetalert2 from 'vue-sweetalert2';\r\nimport 'sweetalert2/dist/sweetalert2.min.css';\r\n\r\ngenerateApplication(\r\n App,\r\n \"#contact-form-app\",\r\n {\r\n injections: [{\r\n name: 'axios', module: generateAxiosInstance(hostApiKey, '/api/v1/pub/')\r\n }, {\r\n name: 'translations', module: formTranslations\r\n }],\r\n packages: [autoAnimatePlugin, VueSweetalert2]\r\n }\r\n)"],"names":["_export_sfc","sfc","props","target","key","val","_sfc_main","value","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createElementVNode","_toDisplayString","$options","_openBlock","_createElementBlock","_Fragment","$props","error","_cache","$event","_vModelText","FirstStep","SecondStep","ThirdStep","FourthStep","FifthStep","useVuelidate","validations","helpers","required","email","n","_createBlock","_resolveDynamicComponent","_ctx","args","generateApplication","component","identifier","options","element","app","Vue.createApp","name","module","axios","response","Swal","generateAxiosInstance","hostApiKey","baseUrl","token","App","autoAnimatePlugin","VueSweetalert2"],"mappings":"+NACA,MAAAA,EAAe,CAACC,EAAKC,IAAU,CAC7B,MAAMC,EAASF,EAAI,WAAaA,EAChC,SAAW,CAACG,EAAKC,CAAG,IAAKH,EACvBC,EAAOC,CAAG,EAAIC,EAEhB,OAAOF,CACT,ECUKG,EAAU,CACX,OAAQ,CAAC,cAAc,EAEvB,MAAO,CACH,WAAY,CAAE,KAAM,OAAQ,SAAU,EAAM,EAC5C,OAAQ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