{"version":3,"sources":["Common/Context/AppReducer.js","Common/Context/Values/FormBaseInitialValues.js","Common/Context/GlobalContext.js","Forms/FormBase/VehicleForm/index.js","Forms/FormBase/TypeVehicleForm/index.js","Forms/FormBase/SelectNumGpsForm/index.js","Forms/FormBase/UserInformationForm/index.js","Forms/FormBase/SeeBudgetDetailForm/index.js","Forms/FormBase/Stepper/index.js","Forms/FormBase/Stepper-tachograph/index.js","Common/Utils/UseAxios.js","Forms/FormBase/CallApiLoadingScreen/CAllApiLoadingScreen.js","App.js","index.js"],"names":["appReducer","state","action","type","payload","formBaseReducer","activeStep","formValues","name","value","fieldValue","error","fieldName","typeVehicle","privacity","uri","typeForm","dataId","formBaseInitialValues","tipoVehiculos","hutk","cname","ca","decodeURIComponent","document","cookie","split","i","length","c","charAt","substring","indexOf","getCookie","pageName","window","location","pathname","replace","pageUri","href","company","required","validate","minLength","maxLength","helperText","phone","zip","firstName","email","vehiculos","isEmail","RegExp","isZip","isPhone","GlobalContext","createContext","names","index","GlobalProvider","children","useReducer","dispatchName","dispatchFormValues","stateVehiculos","dispatchVehiculos","Provider","addVehicles","vehicle","addTypeVehicles","addNumVehicles","AddPrivacity","handleNext","handleBack","handleChange","event","target","console","log","includes","test","parseInt","addName","addUri","AddTypeForm","AddDataId","makeStyles","img","width","cursor","pElement","margin","textAlign","fontSize","color","icon","height","top","left","useStyles","TypeVehicleForm","useContext","values","containerRef","React","useRef","useState","isDisabled","setIsDisabled","classes","handleSelectedOption","result","filter","x","SelectedOptions","push","Box","sx","padding","borderRadius","overflow","ref","Slide","timeout","style","container","current","direction","in","fontWeight","lineHeight","marginTop","marginBottom","transition","fontFamily","Fade","transitionDelay","Grid","alignItems","justifyContent","spacing","map","Fragment","item","onClick","src","className","alt","Zoom","visibility","position","display","mt","paddingBottom","Button","variant","disabled","SelectNumGpsForm","title","subTitle","isError","Object","keys","some","isMobile","TextField","onChange","marginLeft","InputProps","startAdornment","InputAdornment","inputProps","min","max","mr","formHelperText","letterSpacing","UserInformationForm","useCallback","flexGrow","xs","md","lg","p","my","InputLabel","shrink","FormHelperText","id","Android12Switch","styled","Switch","theme","content","transform","backgroundImage","encodeURIComponent","palette","getContrastText","primary","main","right","boxShadow","backgroundColor","SeeBudgetDetailForm","navigate","useNavigate","FormControlLabel","control","checked","label","labelPlacement","steps","getStepContent","step","stepsMobile","description","HorizontalLinearStepper","formType","useEffect","queryString","search","URLSearchParams","get","marginX","marginY","Stepper","alternativeLabel","Step","StepLabel","paddingTop","maxWidth","axios","defaults","baseURL","UseAxios","url","method","data","headers","undefined","response","setResponse","setError","loading","setloading","setTimeout","then","res","catch","err","finally","centerScreen","minHeight","centerScreenText","CallApiLoadingScreen","newName","setnewName","toString","replaceAll","requestData","firstname","accept","interval","lottie","loadAnimation","querySelector","animationData","countDown20","loop","setInterval","clearInterval","SuccessLottie","background","message","createTheme","App","ThemeProvider","CssBaseline","Container","component","path","element","CAllApiLoadingScreen","ReactDOM","render","StrictMode","getElementById"],"mappings":"uubAAaA,EAAa,SAACC,EAAOC,GAE9B,OAAQA,EAAOC,MACX,IAAK,cAIL,IAAK,mBAGL,IAAK,cACDF,EAAQC,EAAOE,QAKvB,OAAOH,GAoBEI,EAAkB,SAACJ,EAAOC,GACnC,OAAQA,EAAOC,MACX,IAAK,WACD,OAAO,2BACAF,GADP,IAEIK,WAAYL,EAAMK,WAAa,IAGvC,IAAK,WACD,OAAO,2BACAL,GADP,IAEIK,WAAYL,EAAMK,WAAa,IAGvC,IAAK,aACD,OAAO,2BACAL,GADP,IAEIM,WAAW,2BACJN,EAAMM,YADH,kBAELL,EAAOM,KAFF,2BAGCP,EAAMM,WAAWL,EAAOM,OAHzB,IAIFC,MAAOP,EAAOQ,iBAI9B,IAAK,aACD,OAAO,2BACAT,GADP,IAEIM,WAAW,2BACJN,EAAMM,YADH,kBAELL,EAAOM,KAFF,2BAGCP,EAAMM,WAAWL,EAAOM,OAHzB,IAIFG,MAAOT,EAAOS,YAI9B,IAAK,cACD,OAAO,2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OACP,cAAC,IAAMC,WAAP,UACE,cAAC,IAAD,UACE,cAAC,GAAD,QAGJvQ,SAASwQ,eAAe,W","file":"static/js/main.e05d1fe1.chunk.js","sourcesContent":["export const appReducer = (state, action) => {\n\n switch (action.type) {\n case \"Add_Vehicle\":\n state = action.payload;\n break;\n\n case \"Add_Type_Vehicle\":\n state = action.payload;\n break;\n case \"Change_Name\":\n state = action.payload;\n break;\n default:\n break;\n }\n return state\n}\n\nexport const stepperReducer = (state, action) => {\n switch (action.type) {\n case \"Increase\":\n state = action.payload + 1;\n break;\n\n case \"Decrease\":\n state = action.payload - 1;\n break;\n\n default:\n break;\n }\n return state\n}\n\n\nexport const formBaseReducer = (state, action) => {\n switch (action.type) {\n case \"Increase\":\n return {\n ...state,\n activeStep: state.activeStep + 1\n };\n\n case \"Decrease\":\n return {\n ...state,\n activeStep: state.activeStep - 1\n };\n\n case \"Form-Value\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.name]: {\n ...state.formValues[action.name],\n value: action.fieldValue\n }\n }\n };\n case \"Form-Error\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.name]: {\n ...state.formValues[action.name],\n error: action.error\n }\n }\n };\n case \"Add_Vehicle\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.fieldName]: action.value\n\n }\n }\n case \"Add_Type_Vehicle\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.fieldName]: action.typeVehicle\n\n }\n }\n case \"Add_Privacity\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.fieldName]: action.privacity\n\n }\n }\n case \"Add_Uri\":\n return {\n ...state,\n uri: action.payload\n }\n\n case \"Add_TypeForm\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.fieldName]: action.typeForm\n\n }\n }\n case \"Add_DataId\":\n return {\n ...state,\n formValues: {\n ...state.formValues,\n [action.fieldName]: action.dataId\n\n }\n }\n\n default:\n break;\n }\n}","const getCookie = (cname) => {\n let name = cname + \"=\";\n let decodedCookie = decodeURIComponent(document.cookie);\n let ca = decodedCookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) === 0) {\n return c.substring(name.length, c.length);\n }\n \n }\n return \"\";\n}\n\nexport const formBaseInitialValues = {\n // vehiculos: \"\",\n tipoVehiculos: [],\n privacity: true,\n hutk: getCookie(\"hubspotutk\"),\n pageName: window.location.pathname.replace(\"/\", \"\"),\n pageUri: window.location.href,\n typeForm: \"\",\n dataId: \"\",\n company: {\n value: '',\n error: '',\n required: true,\n validate: 'text',\n minLength: 1,\n maxLength: 20,\n helperText: 'Custom error message'\n },\n phone: {\n value: '',\n error: '',\n validate: 'phone',\n maxLength: 15,\n required: true\n },\n zip: {\n value: '',\n error: '',\n validate: 'zip',\n maxLength: 15,\n required: true\n },\n firstName: {\n value: '',\n error: '',\n required: true,\n validate: 'text',\n minLength: 2,\n maxLength: 20,\n helperText: 'Custom error message'\n },\n email: {\n value: '',\n error: '',\n required: true,\n validate: 'email'\n },\n vehiculos: {\n value: '2',\n error: '',\n required: true,\n validate: 'number',\n },\n}","import { createContext, useReducer } from 'react';\nimport { appReducer, formBaseReducer } from './AppReducer';\nimport { formBaseInitialValues } from './Values/FormBaseInitialValues';\n\n// const isText = RegExp(/^[A-Z ]+$/i)\nconst isEmail = RegExp(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i)\n\n// const isZip = RegExp(/^(?:0[1-9]|[1-4]\\d|5[0-2])\\d{3}$/)\nconst isZip = RegExp(/^\\d{5}(-\\d{4})?$/)\n// const isNumber = RegExp(/^\\d+$/)\n// (123) 456-7890\n// (123)456-7890\n// 123-456-7890\n// 123.456.7890\n// 1234567890\n// +31636363634\n// 075-63546725\n/* const isPhone = RegExp(/^[(]?[0-9]{3}[)]?[-\\s]?[0-9]{3}[-\\s]?[0-9]{4,6}$/); */ //universal\n// const isPhone = RegExp(/^\\D?(\\d{3})\\D?\\D?(\\d{3})\\D?(\\d{4,6})$/) //ES\nconst isPhone = RegExp(/^[+]*(\\d{9}|\\d{10}|\\d{11})$/) //ES\n\nconst vehiculosInitialState = \"\";\n\nexport const GlobalContext = createContext(formBaseInitialValues);\n\nexport const vehiculosContext = createContext(vehiculosInitialState);\n\nconst names = [\n 'Creando presupuesto...', 'Guardando documento...', 'Enviando...'\n]\n\nlet index = 1;\n\nexport const GlobalProvider = ({ children }) => {\n\n const [name, dispatchName] = useReducer(appReducer, \"Enviando presupuesto...\");\n\n const [{ formValues, activeStep, uri }, dispatchFormValues] = useReducer(formBaseReducer, {\n activeStep: 0,\n formValues: formBaseInitialValues,\n uri: \"https://www.4gflota.com/software-gestor-flotas/\"\n });\n const [stateVehiculos, dispatchVehiculos] = useReducer(appReducer, vehiculosInitialState);\n\n let copyVehiculos = vehiculosInitialState;\n\n const addName = () => {\n let value = names[index++];\n\n dispatchName({ type: 'Change_Name', payload: value })\n }\n\n const addNumVehicles = (value) => {\n const fieldName = \"vehiculos\";\n dispatchFormValues({ type: 'Add_Vehicle', fieldName, value });\n }\n\n const addVehicles = (vehicle) => {\n if (vehicle === \"+30\") {\n vehicle = \"30\";\n }\n copyVehiculos = vehicle;\n dispatchVehiculos({ type: 'Add_Vehicle', payload: copyVehiculos });\n\n\n const myArray = vehicle.split(\"-\");\n let fieldValue = myArray[0];\n const name = \"vehiculos\";\n dispatchFormValues({ type: 'Form-Value', name, fieldValue });\n\n }\n\n const addTypeVehicles = (typeVehicle) => {\n const fieldName = \"tipoVehiculos\";\n dispatchFormValues({ type: 'Add_Type_Vehicle', fieldName, typeVehicle });\n }\n\n const AddPrivacity = (privacity) => {\n const fieldName = \"privacity\";\n dispatchFormValues({ type: 'Add_Privacity', fieldName, privacity });\n }\n\n const handleNext = () => dispatchFormValues({ type: 'Increase', payload: activeStep });\n const handleBack = () => dispatchFormValues({ type: 'Decrease', payload: activeStep });\n\n const addUri = (value) => {\n\n\n }\n\n const AddTypeForm = (typeForm) => {\n const fieldName = \"typeForm\";\n dispatchFormValues({ type: 'Add_TypeForm', fieldName, typeForm });\n }\n const AddDataId = (dataId) => {\n const fieldName = \"dataId\";\n dispatchFormValues({ type: 'Add_DataId', fieldName, dataId });\n }\n\n\n const handleChange = (event) => {\n const { name, value } = event.target;\n const fieldName = formBaseInitialValues[name];\n const fieldValue = value;\n const { required, validate, helperText } = fieldName;\n\n if (fieldName.validate === \"zip\") {\n if (value.length === 2) {\n let uriGroup1 = \"https://www.4gflota.com/demo-online-ego/\";\n let group1 = [\"01\", \"05\", \"09\", \"13\", \"15\", \"16\", \"19\", \"20\", \"28\", \"30\", \"31\", \"32\", \"33\", \"39\", \"40\", \"45\", \"47\", \"49\"];\n\n let group2 = [\"07\", \"08\", \"12\", \"17\", \"22\", \"24\", \"25\", \"26\", \"27\", \"36\", \"37\", \"42\", \"43\", \"44\", \"46\", \"48\", \"50\"];\n let uriGroup2 = \"https://www.4gflota.com/demo-online-jl/\";\n\n let group3 = [\"02\", \"03\", \"04\", \"06\", \"10\", \"11\", \"14\", \"18\", \"21\", \"23\", \"29\", \"34\", \"35\", \"38\", \"41\", \"51\", \"52\"];\n let uriGroup3 = \"https://www.4gflota.com/demo-online-luis/\";\n\n // let twoDigit = value.substring(0, 2);\n let pathname = window.location.pathname;\n console.log(pathname)\n if (pathname === \"/ads-movil/\" || pathname === \"/ads-movil\") {\n dispatchFormValues({ type: 'Add_Uri', payload: \"https://actualidad.4gflota.com/gracias-presupuesto\" });\n } else if (pathname === \"/ads-pc/\" || pathname === \"/ads-pc\") {\n dispatchFormValues({ type: 'Add_Uri', payload: \"https://actualidad.4gflota.com/gracias-presupuesto\" });\n } else if (pathname === \"/ads-max/\" || pathname === \"/ads-max\") {\n dispatchFormValues({ type: 'Add_Uri', payload: \"https://actualidad.4gflota.com/gracias-presupuesto\" });\n } else if (group1.includes(value)) {\n dispatchFormValues({ type: 'Add_Uri', payload: uriGroup1 });\n } else if (group2.includes(value)) {\n dispatchFormValues({ type: 'Add_Uri', payload: uriGroup2 });\n } else if (group3.includes(value)) {\n dispatchFormValues({ type: 'Add_Uri', payload: uriGroup3 });\n } else {\n dispatchFormValues({ type: 'Add_Uri', payload: \"https://www.4gflota.com/software-gestor-flotas/\" });\n\n }\n }\n }\n\n dispatchFormValues({ type: 'Form-Value', name, fieldValue });\n\n let error = \"\";\n if (required && fieldValue === \"\") error = \"Este campo es obligatorio.\";\n\n switch (validate) {\n case \"email\":\n if (value && !isEmail.test(value))\n error = helperText || \"Por favor, introduce una dirección de correo electrónico válida.\";\n break;\n case \"phone\":\n if (value && !isPhone.test(value))\n error =\n helperText ||\n \"Por favor ingrese un número de teléfono válido.\";\n break;\n case \"zip\":\n if (value && !isZip.test(value))\n error = helperText || \"Por favor ingrese un código postal válido.\";\n break;\n case \"number\":\n // let min = stateVehiculos.split(\"-\")[0];\n // let max = stateVehiculos.split(\"-\")[1];\n if (parseInt(value) < 2) {\n error = helperText || \"Debe indicar un cantidad mayor a 1\";\n }\n if (parseInt(value) > 999) {\n error = helperText || \"Debe indicar un cantidad menor a 999\";\n }\n // if (parseInt(value) < 30 && parseInt(min) === 30) {\n // error = helperText || \"No puede ingresar un valor menor a (\" + min + \")\";\n // } else if (parseInt(value) < min || parseInt(value) > max) {\n // error = helperText || \"Cantidad errónea\";\n // }else if (parseInt(value) < min || parseInt(value) > max) {\n // error = helperText || \"Debe ingresar una cantidad entre (\" + min + \") y (\" + max + \")\";\n // }\n // if (parseInt(value) > 999) {\n // value = 999;\n // }\n\n\n break;\n default:\n break;\n }\n dispatchFormValues({ type: \"Form-Error\", name, error });\n }\n\n return (\n \n {children}\n \n )\n}","import React, { useContext } from 'react';\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\nimport Grid from '@mui/material/Grid';\nimport CheckIcon from '@mui/icons-material/Check';\nimport Box from '@mui/material/Box';\nimport Zoom from '@mui/material/Zoom';\nimport Fade from '@mui/material/Fade';\nimport Slide from '@mui/material/Slide';\nimport { makeStyles } from '@mui/styles';\n\nconst useStyles = makeStyles({\n\timg: {\n\t\twidth: 80,\n\n\t\tcursor: \"pointer\"\n\t},\n\tpElement: {\n\t\tmargin: \"auto\",\n\t\ttextAlign: \"center\",\n\t\tfontSize: \"20px\",\n\t\tcolor: \"#1c1a8a\",\n\n\t},\n\ticon: {\n\t\twidth: \"60px\",\n\t\theight: \"80px\",\n\t\tcolor: \"#1c1a8a\",\n\t\ttop: \"-90px\",\n\t\tleft: \"50px\",\n\n\t}\n});\nexport default function FormVehicle({typeForm}) {\n\tconst { stateVehiculos, addVehicles, handleNext } = useContext(GlobalContext);\n\tconst counter = [1, 2, 3, 4, 5];\n\tlet values = [\"1\", \"2-5\", \"6-19\", \"20-29\", \"+30\"];\n\tif(typeForm == \"tacografo\"){\n\t\tvalues = [\"1\", \"2-4\", \"5-9\", \"10-51\", \"+52\"];\n\t}\n\tconst classes = useStyles();\n\tconst containerRef = React.useRef(null);\n\tlet effect = true;\n\n\tconst handleSelectedOption = (value) => {\n\t\tif (value === stateVehiculos) { value = \"\"; addVehicles(value); return;};\n\t\taddVehicles(value);\n\t\tsetTimeout(() => {\n\t\t\teffect = false;\n\t\t\thandleNext();\n\t\t\t\n\t\t}, 300);\n\t};\n\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t

¿Cuántos vehículos tiene?

\n\t\t\t\t
\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{counter.map((value, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t handleSelectedOption(values[index])} className={classes.img} alt=\"van-01\" />\n\t\t\t\t\t\t\t\t\t

{values[index]}

\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t\n\t\t\t
\n\t\t\t{/* \n\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\tSiguiente\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t */}\n\t\t
\n\t);\n}","import React, { useContext } from 'react';\n\nimport Grid from '@mui/material/Grid';\nimport Box from '@mui/material/Box';\nimport Zoom from '@mui/material/Zoom';\nimport Fade from '@mui/material/Fade';\nimport Slide from '@mui/material/Slide';\nimport Button from '@mui/material/Button'\nimport CheckIcon from '@mui/icons-material/Check';\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\n\nimport { makeStyles } from '@mui/styles';\n\nconst useStyles = makeStyles({\n\timg: {\n\t\twidth: 65,\n\n\t\tcursor: \"pointer\",\n\t\tmargin: \"auto\"\n\n\t},\n\tpElement: {\n\t\tmargin: \"auto\",\n\t\ttextAlign: \"center\",\n\t\tfontSize: \"20px\",\n\t\tcolor: \"#1c1a8a\",\n\t},\n\ticon: {\n\t\twidth: \"60px\",\n\t\theight: \"80px\",\n\t\tcolor: \"#1c1a8a\",\n\t\ttop: \"-95px\",\n\t\tleft: \"55px\",\n\t\tcursor: \"pointer\"\n\t}\n});\n\nexport default function TypeVehicleForm() {\n\tconst { addTypeVehicles, handleNext, formValues } = useContext(GlobalContext);\n\tconst { tipoVehiculos } = formValues;\n\tconst counter = [4, 6, 7, 5, 8];\n\tconst values = [\"Turismos\", \"Mixtos\", \"Ligeros\", \"Autobuses\", \"Pesados\"];\n\tconst containerRef = React.useRef(null);\n\tconst [isDisabled, setIsDisabled] = React.useState(true);\n\n\tconst classes = useStyles();\n\n\tconst handleSelectedOption = (value) => {\n\t\tif (tipoVehiculos.includes(value)) {\n\t\t\tconst result = tipoVehiculos.filter(x => x !== value);\n\t\t\tif (result.length === 0) {\n\t\t\t\tsetIsDisabled(true);\n\t\t\t}\n\t\t\taddTypeVehicles(result);\n\t\t\t\n\t\t} else {\n\t\t\tlet SelectedOptions = tipoVehiculos;\n\t\t\t\n\t\t\t\n\t\t\tSelectedOptions.push(value);\n\t\t\tsetIsDisabled(false);\n\t\t\t\n\t\t\taddTypeVehicles(SelectedOptions);\n\t\t}\n\t\t\n\t};\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t

¿Tipo de Vehículos?

\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t

Indique tantos como necesite

\n\t\t\t\t
\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{counter.map((value, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t handleSelectedOption(values[index])} src={\"https://www.4gflota.com/grafica_web/iconos-form/Iconos_calculadora-0\" + value + \".png\"} className={classes.img} alt=\"van-01\" />\n\n\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t

{values[index]}

\n\t\t\t\t\t\t\t\t\t
\n\n\n\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t handleSelectedOption(values[index])} style={{ visibility: tipoVehiculos.includes(values[index]) ? \"visible\" : \"hidden\", position: \"relative\" }} className={classes.icon} />\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)\n\t\t\t\t\t})}\n\n\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{/* */}\n\t\t\t\t\t\n\t\t\t\t\t\tSiguiente »\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t
\n\t);\n}","import * as React from 'react';\n\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\n\nimport Box from '@mui/material/Box';\nimport Fade from '@mui/material/Fade';\nimport Slide from '@mui/material/Slide';\nimport TextField from '@mui/material/TextField';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport { FaMapMarkerAlt } from 'react-icons/fa';\nimport Button from '@mui/material/Button'\n\nimport { isMobile } from 'react-device-detect';\n\nfunction SelectNumGpsForm({ title, subTitle, typeForm }) {\n\tconst { handleBack, handleNext, formValues, handleChange } = React.useContext(GlobalContext);\n\tconst { vehiculos } = formValues;\n\n\t\n\t//formValues.vehiculos.value > 999 ? formValues.vehiculos.error = 'Debe indicar un cantidad menor a 999': formValues.vehiculos.error = '';\n\t// let min = stateVehiculos.split(\"-\")[0];\n\t// let max = stateVehiculos.split(\"-\")[1];\n\tconst isError = React.useCallback(\n\t\t() =>\n\t\t\tObject.keys({ vehiculos }).some(\n\t\t\t\t(name) =>\n\t\t\t\t\t(formValues[name].required && !formValues[name].value) ||\n\t\t\t\t\tformValues[name].error\n\t\t\t),\n\t\t[formValues, vehiculos]\n\t);\n\n\t\n\tconst containerRef = React.useRef(null);\n\t// const handleChange = (event) => {\n\t// \t// if (parseInt(event.target.value) < parseInt(min) || parseInt(event.target.value) > parseInt(max) || event.target.value === \"\") {\n\t// \t// \taddNumVehicles(vehiculos);\n\t// \t// } else\n\t// \t// \taddNumVehicles(event.target.value);\n\t// \taddNumVehicles(event.target.value);\n\n\n\n\t// };\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t

{title}

\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t

{subTitle}

\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tinputProps={{ min: 2, max: 999, style: { textAlign: 'center' } }}\n\t\t\t\t\t\tvariant=\"outlined\"\n\t\t\t\t\t/>\n\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tSiguiente »\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n\nexport default SelectNumGpsForm;","import React, { useContext } from 'react';\n\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\n\nimport Grid from '@mui/material/Grid';\nimport Box from '@mui/material/Box';\nimport Fade from '@mui/material/Fade';\nimport Slide from '@mui/material/Slide';\nimport Button from '@mui/material/Button'\nimport InputLabel from '@mui/material/InputLabel';\n\nimport { FaMailBulk, FaPhone, FaBriefcase } from 'react-icons/fa';\n\nimport TextField from '@mui/material/TextField';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport { makeStyles } from '@mui/styles';\n\n\nconst useStyles = makeStyles({\n formHelperText: {\n textAlign: \"center\",\n margin: \"auto\",\n marginTop: 16,\n width: 250,\n color: \"#373b42\",\n fontSize: \"13px\",\n lineHeight: \"1.7\",\n letterSpacing: 0\n }\n});\n\nexport default function UserInformationForm() {\n const classes = useStyles();\n const { handleChange, formValues, handleBack, handleNext, addUri, uri } = useContext(GlobalContext);\n const { company, phone, zip } = formValues;\n\n const containerRef = React.useRef(null);\n\n const isError = React.useCallback(\n () =>\n Object.keys({ company, phone, zip }).some(\n (name) =>\n (formValues[name].required && !formValues[name].value) ||\n formValues[name].error\n ),\n [formValues, company, phone, zip]\n );\n \n return (\n \n \n \n

Titular del Presupuesto

\n
\n \n

Verá su presupuesto de inmediato

\n
\n
\n \n \n \n \n \n Nombre Empresa o Autónomo\n \n ,\n }}\n value={company.value}\n required={company.required}\n helperText={company.error}\n error={!!company.error}\n onChange={handleChange}\n variant=\"outlined\"\n />\n\n Razón social o nombre del autónomo\n \n\n \n\n \n \n \n Código Postal\n \n ,\n }}\n onChange={handleChange}\n variant=\"outlined\"\n />\n\n Necesario para adaptar las cuotas a su área\n \n\n \n \n \n \n Teléfono\n \n ,\n }}\n onChange={handleChange}\n variant=\"outlined\"\n />\n\n No recibirás llamadas molestas\n \n\n \n \n\n \n \n {/* \n \n \n Siguiente »\n \n */}\n\n \n \n null}\n >\n Siguiente »\n \n \n \n \n );\n\n}","import * as React from 'react';\nimport { Link, useNavigate } from \"react-router-dom\";\n\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\n\nimport Grid from '@mui/material/Grid';\nimport Box from '@mui/material/Box';\nimport Fade from '@mui/material/Fade';\nimport Slide from '@mui/material/Slide';\nimport Button from '@mui/material/Button'\nimport InputLabel from '@mui/material/InputLabel';\nimport { styled } from '@mui/material/styles';\n\nimport { FaUserTie, FaEnvelope } from 'react-icons/fa';\n\nimport TextField from '@mui/material/TextField';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport Switch from '@mui/material/Switch';\n\n\n\nconst Android12Switch = styled(Switch)(({ theme }) => ({\n\n padding: 8,\n '& .MuiSwitch-track': {\n borderRadius: 22 / 2,\n '&:before, &:after': {\n content: '\"\"',\n position: 'absolute',\n top: '50%',\n transform: 'translateY(-50%)',\n width: 16,\n height: 16,\n },\n '&:before': {\n backgroundImage: `url('data:image/svg+xml;utf8,')`,\n left: 12,\n },\n '&:after': {\n backgroundImage: `url('data:image/svg+xml;utf8,')`,\n right: 12,\n },\n },\n '& .MuiSwitch-thumb': {\n boxShadow: 'none',\n width: 16,\n height: 16,\n margin: 2,\n },\n '.css-5ryogn-MuiButtonBase-root-MuiSwitch-switchBase.Mui-checked+.MuiSwitch-track': {\n backgroundColor: \"#479119\"\n },\n '.css-5ryogn-MuiButtonBase-root-MuiSwitch-switchBase.Mui-checked': {\n color: \"#32a852\"\n },\n '.css-1yjjitx-MuiSwitch-track': {\n backgroundColor: \"red\",\n },\n\n}));\n\nexport default function SeeBudgetDetailForm() {\n const { formValues, handleChange, handleBack, AddPrivacity } = React.useContext(GlobalContext);\n const { email, firstName, privacity } = formValues;\n const containerRef = React.useRef(null); \n const navigate = useNavigate();\n\n\n const isError = React.useCallback(\n () =>\n Object.keys({ email, firstName }).some(\n (name) =>\n (formValues[name].required && !formValues[name].value) ||\n formValues[name].error\n ),\n [formValues, email, firstName]\n );\n\n const handleViewBudget = () => {\n navigate('/loading');\n }\n\n const handleChangeSwitch = (event) => {\n AddPrivacity(!privacity);\n };\n return (\n \n \n \n

Ver Presupuesto

\n
\n\n
\n \n\n \n \n \n E-mail\n \n ,\n }}\n variant=\"outlined\"\n />\n \n \n \n Nombre\n \n ,\n }}\n variant=\"outlined\"\n />\n \n\n \n \n \n
\n }\n label=\"Privacidad\"\n labelPlacement=\"top\"\n style={{ margin: \"auto\", width: \"100%\" }}\n />\n
\n
\n\n \n\n

Su Privacidad es muy importante para nosotros. Mediante el envío de este formulario, da su consentimiento a 4GFlota SL para enviarle por correo electrónico la información de los servicios que ha solicitado y/o para confirmar los requisitos de dichos productos. Usted tiene derecho a revocar el consentimiento otorgado en cualquier momento.

\n
\n \n \n \n \n Ver Presupuesto\n \n {/* \n \n */}\n\n \n \n\n \n );\n\n}","import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Stepper from '@mui/material/Stepper';\nimport Step from '@mui/material/Step';\nimport StepLabel from '@mui/material/StepLabel';\nimport VehicleForm from '../VehicleForm';\nimport TypeVehicleForm from '../TypeVehicleForm';\nimport SelectNumGpsForm from '../SelectNumGpsForm';\nimport UserInformationForm from '../UserInformationForm';\nimport SeeBudgetDetailForm from '../SeeBudgetDetailForm';\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\n\nimport { BrowserView, MobileView/* isBrowser, isMobile */ } from 'react-device-detect';\n\nconst steps = ['¿Cuántos vehículos desea localizar?', 'Tipo de Vehículos', 'Rastreadores GPS', 'Titular del Presupuesto', 'Ver Presupuesto'];\n\nfunction getStepContent(step) {\n switch (step) {\n // case 0:\n // return (\n // \n // );\n case 0:\n return (\n \n );\n case 1:\n return (\n \n );\n case 2:\n return (\n \n );\n case 3:\n return (\n \n );\n default:\n return 'Paso desconocido';\n }\n}\n\nconst stepsMobile = [\n // {\n // label: 'Select campaign settings',\n // description: ,\n // },\n {\n label: 'Create an ad group',\n description: ,\n },\n {\n label: 'Create an ad',\n description: ,\n },\n {\n label: 'Create an ad',\n description: ,\n },\n {\n label: 'Create an ad',\n description: ,\n },\n];\n\n\nexport default function HorizontalLinearStepper({formType}) {\n const { activeStep, AddTypeForm, AddDataId } = React.useContext(GlobalContext);\n\n React.useEffect(() => {\n AddTypeForm(\"default\");\n const queryString = window.location.search;\n const urlParams = new URLSearchParams(queryString);\n const dataId = urlParams.get('dataId');\n if(dataId === null){\n AddDataId(\"\");\n } else {\n AddDataId(dataId);\n }\n \n \n \n\n }, [])\n return (\n
\n \n \n \n {steps.map((label, index) => {\n const stepProps = {};\n const labelProps = {};\n return (\n \n \n \n );\n })}\n \n
\n {getStepContent(activeStep)}\n
\n
\n
\n \n \n\n \n {stepsMobile[activeStep].description}\n \n \n \n \n \n \n
\n\n );\n}","import React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Stepper from '@mui/material/Stepper';\nimport Step from '@mui/material/Step';\nimport StepLabel from '@mui/material/StepLabel';\nimport VehicleForm from '../VehicleForm';\nimport TypeVehicleForm from '../TypeVehicleForm';\nimport SelectNumGpsForm from '../SelectNumGpsForm';\nimport UserInformationForm from '../UserInformationForm';\nimport SeeBudgetDetailForm from '../SeeBudgetDetailForm';\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\n\nimport { BrowserView, MobileView/* isBrowser, isMobile */ } from 'react-device-detect';\n\nconst steps = ['¿Cuántos vehículos desea localizar?', 'Rastreadores GPS', 'Titular del Presupuesto', 'Ver Presupuesto'];\n\nfunction getStepContent(step) {\n switch (step) {\n // case 0:\n // return (\n // \n // );\n case 0:\n return (\n \n );\n case 1:\n return (\n \n );\n case 2:\n return (\n \n );\n default:\n return 'Paso desconocido';\n }\n}\n\nconst stepsMobile = [\n // {\n // label: 'Select campaign settings',\n // description: ,\n // },\n {\n label: 'Create an ad group',\n description: ,\n },\n {\n label: 'Create an ad',\n description: ,\n },\n {\n label: 'Create an ad',\n description: ,\n },\n\n];\n\n\nexport default function HorizontalLinearStepper({ formType }) {\n const { activeStep, AddTypeForm } = React.useContext(GlobalContext);\n React.useEffect(() => {\n AddTypeForm(formType);\n }, [])\n \n return (\n
\n \n \n \n {steps.map((label, index) => {\n const stepProps = {};\n const labelProps = {};\n return (\n \n \n \n );\n })}\n \n
\n {getStepContent(activeStep)}\n
\n
\n
\n \n \n\n \n {stepsMobile[activeStep].description}\n \n \n\n \n \n \n
\n\n );\n}","import * as React from 'react';\nimport { Link, useNavigate } from \"react-router-dom\";\nimport axios from 'axios';\n\naxios.defaults.baseURL = 'https://kvx0vis8gd.execute-api.eu-west-1.amazonaws.com/Prod/API/';\n\nconst UseAxios = ({ url, method, data = null, headers = null }) => {\n const [response, setResponse] = React.useState(undefined);\n const [error, setError] = React.useState('');\n const [loading, setloading] = React.useState(true);\n const navigate = useNavigate();\n\n const fetchData = () => {\n if (data.email == \"\") {\n navigate('/');\n return;\n } \n axios[method](url, data, headers)\n .then((res) => {\n setResponse(res.data);\n })\n .catch((err) => {\n setError(err);\n })\n .finally(() => {\n setloading(false);\n });\n };\n\n React.useEffect(() => {\n if (response == null) {\n setTimeout(() => {\n fetchData(method, url, data, headers);\n }, 1000);\n }\n },[]);\n \n return { response, error, loading };\n};\n\nexport default UseAxios;","import * as React from 'react';\nimport { GlobalContext } from '../../../Common/Context/GlobalContext';\nimport UseAxios from '../../../Common/Utils/UseAxios';\nimport lottie from \"lottie-web\";\nimport SuccessLottie from '../../../Common/Img/success.json';\nimport DocumentLottie from '../../../Common/Img/document.json';\nimport countDown20 from '../../../Common/Img/countDown-20.json';\nimport Fade from '@mui/material/Fade';\n/* import GifLoading from '../../../Common/Img/loadingScreen.gif'; */\n\nimport { BrowserView, MobileView/* isBrowser, isMobile */ } from 'react-device-detect';\n\n\nimport { makeStyles } from '@mui/styles';\n\nconst useStyles = makeStyles({\n centerScreen: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n textAlign: \"center\",\n minHeight: \"100vh\",\n width: \"100%\",\n height: 300,\n margin: \"auto\",\n\n },\n centerScreenText: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n textAlign: \"center\",\n minHeight: \"100vh\",\n width: \"100%\",\n height: 300,\n margin: \"auto\",\n\n }\n});\nlet index = 1;\nconst names = [\n 'Creando presupuesto...', 'Guardando documento...', 'Enviando...'\n]\nconst CallApiLoadingScreen = () => {\n const { formValues, uri } = React.useContext(GlobalContext);\n const [newName, setnewName] = React.useState('Creando presupuesto...');\n const classes = useStyles();\n let typeVehicles = formValues.tipoVehiculos.toString();\n\n let result = typeVehicles.replaceAll(\",\", \";\");\n result = \";\" + result;\n\n let pageName = \"\";\n if (formValues.typeForm === \"tacografo\") {\n pageName = formValues.pageName.substring(10).replace(\"/\", \"\");\n\n } else if (formValues.typeForm === \"tacografo-d\") {\n pageName = formValues.pageName.substring(10).replace(\"/\", \"\");\n\n } else {\n pageName = formValues.pageName;\n }\n\n let requestData = {\n firstname: formValues.firstName.value,\n hutk: formValues.hutk,\n pageName: pageName,\n pageUri: formValues.pageUri,\n vehiculos: formValues.vehiculos.value,\n tipoVehiculos: result,\n email: formValues.email.value,\n company: formValues.company.value,\n zip: formValues.zip.value,\n phone: formValues.phone.value,\n privacity: formValues.privacity.toString(),\n formType: formValues.typeForm,\n dataId: formValues.dataId\n }\n const { response, loading, error } = UseAxios({\n method: 'post',\n url: '/Base',\n headers: { accept: '*/*' },\n data: requestData,\n });\n React.useEffect(() => {\n\n let interval = \"\"\n if (response === null || response === undefined) {\n if (index === 1) {\n lottie.loadAnimation({\n container: document.querySelector(\"#DocumentLottie\"),\n animationData: countDown20,\n loop: true,\n });\n }\n interval = setInterval(() => {\n if (index <= 2) {\n setnewName(names[index]);\n index++;\n } else {\n clearInterval(interval);\n }\n\n }, 1300);\n } else {\n lottie.loadAnimation({\n container: document.querySelector(\"#SuccessLottie\"),\n animationData: SuccessLottie,\n loop: false,\n });\n setTimeout(() => {\n if (uri !== \"\") {\n\n window.location.href = uri;\n\n }\n }, 1500);\n }\n });\n\n\n return (\n
\n
\n {loading ? (\n\n
\n \n

\n
\n\n

{newName}

\n
\n
\n \n
\n
\n

\n
\n
\n

{newName}

\n
\n
\n\n
\n
\n\n\n\n ) : (\n
\n {error && (\n
\n

{error.message}

\n
\n )}\n
\n {response &&\n
\n\n \n
\n

\n \n

Enviado a su email.

\n
\n \n

\n Mirar buzón de spam o correos no deseados.

\n
\n\n\n
\n
\n \n
\n

\n \n

Enviado a su email.

\n\n \n \n

\n Mirar buzón de spam o correos no deseados.

\n\n
\n\n\n
\n
\n\n
\n\n }
\n
\n )}\n
\n
\n );\n};\n\nexport default CallApiLoadingScreen;","import FormBase from './Forms/FormBase/Stepper';\nimport FormBaseTachograph from './Forms/FormBase/Stepper-tachograph';\nimport CAllApiLoadingScreen from './Forms/FormBase/CallApiLoadingScreen/CAllApiLoadingScreen';\nimport { Routes, Route } from \"react-router-dom\";\nimport { GlobalProvider } from './Common/Context/GlobalContext';\n\nimport CssBaseline from '@mui/material/CssBaseline';\nimport { createTheme, ThemeProvider } from '@mui/material/styles';\nimport Container from '@mui/material/Container'\n\nconst theme = createTheme();\nfunction App() {\n return (\n \n \n \n \n \n } />\n } />\n } />\n } />\n } />\n \n \n \n \n )\n}\nexport default App;\n\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { BrowserRouter } from 'react-router-dom';\n\nimport './index.css';\nimport App from './App';\n/* import reportWebVitals from './reportWebVitals'; */\n\nReactDOM.render(\n \n \n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\n/* reportWebVitals(); */\n"],"sourceRoot":""}