{"version":3,"sources":["commons/styles/colors.js","commons/styles/theme.js","utils/bugReportUtils.js","utils/userTrackerUtils.js","redux/actions/types.js","helpers/serviceHelper.js","assets/icons/visa.svg","assets/icons/mastercard.svg","assets/icons/amex.svg","helpers/paymentMethodsHelper.js","redux/reducers/userReducer.js","redux/reducers/cityReducer.js","redux/reducers/laborReducer.js","redux/reducers/merchantReducer.js","redux/reducers/paymentReducer.js","redux/reducers/requestReducer.js","redux/reducers/daysOffReducer.js","redux/reducers/categoryReducer.js","redux/reducers/trackingReducer.js","redux/reducers/shopReducer.js","redux/reducers/vehicleReducer.js","redux/reducers/index.js","redux/store.js","redux/middlewares/unauthorizedMiddleware.js","redux/errorCodes.js","utils/apiErrors.js","redux/services/BaseService.js","redux/services/AuthService.js","redux/services/PaymentMethodService.js","redux/services/ServiceService.js","helpers/gtmProptypes.js","helpers/gtm.js","redux/actions/user/couponActions.js","redux/actions/payment/paymentResumeAction.js","redux/actions/request/requestActions.js","redux/actions/user/authActions.js","utils/paths.js","config/amplifyConfig.js","redux/services/trackingService.js","assets/icons/alfredDriver.svg","redux/actions/tracking/trackingActions.js","modules/tracking/trackingStyles.js","assets/icons/chubb.svg","modules/tracking/components/trackingTimelineStyles.js","modules/tracking/components/trackingEventsStyles.js","utils/formats.js","modules/tracking/components/TrackingEvents.js","modules/tracking/components/trackingImageStyles.js","modules/tracking/components/TrackingImage.js","modules/tracking/components/TrackingTimeline.js","modules/tracking/components/trackingRightStyles.js","modules/tracking/components/TrackingRight.js","modules/tracking/components/trackingNotFoundStyles.js","modules/tracking/components/TrackingNotFound.js","modules/tracking/Tracking.js","utils/systemDetector.js","modules/getApp/GetApp.js","App.js","serviceWorker.js","index.js"],"names":["COLOR_PRIMARY_DARK","COLOR_PRIMARY_MAIN","COLOR_PRIMARY_LIGHT","COLOR_PRIMARY_WHITE","COLOR_SECONDARY_DARK","COLOR_SECONDARY_MAIN","COLOR_SECONDARY_LIGHT","COLOR_GREY_200","COLOR_GREY_400","COLOR_GREY_500","COLOR_GREY_600","GRADIENT_DARK","concat","GRADIENT_MAIN","GRADIENT_LIGHT","GRADIENT_OTHER_DARK","fontWeightMap","theme","createTheme","palette","primary","dark","colors","main","light","lighter","white","contrastText","secondary","gradient","otherDark","grey","success","warning","error","info","background","membership","link","body","shadow","card","margin","factor","padding","overrides","MuiCssBaseline","backgroundColor","borderRadius","minHeight","border","visibility","MuiStepConnector","line","borderColor","MuiTypography","root","color","MuiFormLabel","MuiSvgIcon","fill","MuiSelect","MuiTextField","MuiOutlinedInput","notchedOutline","MuiInput","underline","borderBottomColor","label","MuiInputBase","inputMultiline","input","transitionDelay","opacity","MuiInputLabel","MuiFormHelperText","MuiLinearProgress","height","MuiTab","textDecoration","display","MuiAccordion","components","button","progress","outlined","customDatePicker","selected","keyboard","disabled","today","customDateGroup","customDateGroupSelectedBtn","blue","laborPrice","laborTurboPrice","laborDiscount","serviceCard","serviceCardSelected","notSelected","serviceCardTitle","serviceCardCheckIcon","summary","summaryFooter","summaryTitleText","customItem","footerBackground","footerColor","customChip","successfulRequestService","succesfulRequestServiceText1","checkbox","icon","table","item","pagination","disabledArrowPagination","title","marginBottom","customDialog","customDialogTitle","customDialogContent","customDialogFooter","cart","text","carousel","swiperButton","splash","customAlert","boldColor","typography","h1","_defineProperty","fontSize","fontFamily","lineHeight","fontWeight","breakpoints","up","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","overline","bugReporterReduxEnhancer","Sentry","actionTransformer","action","level","errorObject","Error","message","scope","setLevel","detail","setExtra","reportBug","stateTransformer","state","_state$userReducer","_state$user","_objectSpread","userReducer","session","attributes","undefined","user","username","trackEvent","event","properties","arguments","length","mixpanel","track","version","packageJson","GET_AUTHENTICATED_USER_LOADING","GET_AUTHENTICATED_USER_SUCCESS","GET_AUTHENTICATED_USER_ERROR","CREATE_COUPON_LOADING","CREATE_COUPON_SUCCESS","CREATE_COUPON_ERROR","GET_DAYSOFF_LOADING","GET_DAYSOFF_SUCCESS","GET_DAYSOFF_ERROR","GET_BLOCKED_SLOTS_LOADING","GET_BLOCKED_SLOTS_SUCCESS","GET_BLOCKED_SLOTS_ERROR","SIGN_IN_LOADING","SIGN_IN_SUCCESS","SIGN_IN_ERROR","SIGN_UP_LOADING","SIGN_UP_SUCCESS","SIGN_UP_ERROR","SIGN_UP_LOADING_RETRY","SIGN_UP_SUCCESS_RETRY","SIGN_UP_ERROR_RETRY","SIGN_OUT_LOADING","SIGN_OUT_SUCCESS","SIGN_OUT_ERROR","SIGN_IN_RESEND_CODE_LOADING","SIGN_IN_RESEND_CODE_SUCCESS","SIGN_IN_RESEND_CODE_ERROR","GET_VERIFICATION_CODE_LOADING","GET_VERIFICATION_CODE_SUCCESS","GET_VERIFICATION_CODE_ERROR","SEND_RECOVERY_MAIL_LOADING","SEND_RECOVERY_MAIL_SUCCESS","SEND_RECOVERY_MAIL_ERROR","SUBMIT_NEW_PASSWORD_LOADING","SUBMIT_NEW_PASSWORD_SUCCESS","SUBMIT_NEW_PASSWORD_ERROR","RESTORE_RECOVER_PASSWORD","RESTORE_SIGN_IN","RESTORE_SIGN_UP","RESTORE_CONFIRMATION_CODE_VERIFIED","PAYMENT_ADD_PAYMENTS_RESUME","PAYMENT_STATUS","PAYMENT_ERROR","COUPON_SERVICE_LOADING","COUPON_SERVICE_SUCCESS","COUPON_SERVICE_ERROR","CLEAR_COUPON_SERVICE","ADD_COUPON_SERVICE_SUCCESS","PAYMENT_GET_SERVICES_SUCCESS","PAYMENT_GET_SERVICES_ERROR","PAYMENT_GET_SERVICES_LOADING","PAYMENT_GET_SERVICE_PRICE_LOADING","PAYMENT_GET_SERVICE_PRICE_SUCCESS","PAYMENT_GET_SERVICE_PRICE_ERROR","CLEAR_SERVICE_PRICE","CLEAR_TOTALS","REQUEST_SERVICE_STEP","REQUEST_SERVICE_UPDATE","REQUEST_SERVICE_UPDATE_LOADING","REQUEST_SERVICE_CLEAR","REQUEST_SERVICE_SERVICE","REQUEST_SERVICE_VALIDATE","REQUEST_SERVICE_CATEGORY","REQUEST_SERVICE_LABOR","REQUEST_SERVICE_SHOP","TRACKING_SERVICE_LOADING","TRACKING_SERVICE_SUCCESS","TRACKING_SERVICE_ERROR","GET_ALFRED_SCHEDULE_LOADING","GET_ALFRED_SCHEDULE_SUCCESS","GET_ALFRED_SCHEDULE_ERROR","SERVICE_STATUS","constants","IN_PROGRESS","TRANSPORT_LABORS_SLUG","REQUESTED","COMPLETED","TO_BE_PAID","sortServicesByScheduleDateDescendent","services","orderBy","service","Date","parse","scheduleDate","sortServicesByStateHierarchy","sortedServicesByDate","sortPaymentMethodsBySelected","paymentMethods","sort","paymentMethod1","paymentMethod2","INITIAL_STATE","isUpdatingUserLoading","updatingUserError","updatedUserSuccess","isAuthenticatedUserLoading","authenticatedUserError","authenticatedUserSuccess","isSignInLoading","signInError","signInSuccess","isSignUpLoading","signUpError","signUpSuccess","isLoginResendCodeLoading","loginResendCodeError","loginResendCodeSuccess","isSignOutLoading","signOutError","signOutSuccess","isConfirmationCodeVerifiedLoading","confirmationCodeVerifiedError","confirmationCodeVerified","sendRecoveryMailError","sendRecoveryMailLoading","sendRecoveryMailSuccess","submitNewPasswordError","submitNewPasswordLoading","submitNewPasswordSuccess","userError","vehicles","areVehiclesLoading","vehiclesError","relatedVehicles","areRelatedVehiclesLoading","relatedVehiclesError","vehicle","isVehicleLoading","vehicleError","deleteVehicleSuccess","isDeletingVehicle","deleteVehicleError","addresses","areAddressesLoading","addressesError","deleteAddressSuccess","isDeletingAddress","deleteAddressError","servicesHistory","servicesHistoryCount","servicesHistoryNext","servicesHistoryPrevious","isServicesHistoryLoading","servicesHistoryError","currentServices","areCurrentServicesLoading","currentServicesError","isMembershipLoading","membershipError","isServiceLoading","serviceError","membershipInvoices","areMembershipInvoicesLoading","membershipInvoicesError","selectedPaymentMethod","isSelectedPaymentMethodLoading","selectedPaymentMethodError","arePaymentMethodsLoading","paymentMethodsError","isAddingPaymentMethod","addPaymentMethodSuccess","addPaymentMethodError","isSelectingPaymentMethod","selectPaymentMethodError","selectPaymentMethodSuccess","deletePaymentMethodSuccess","isDeletingPaymentMethod","deletePaymentMethodError","coupon","couponError","couponLoading","serviceInvoice","isServiceInvoiceLoading","serviceInvoiceError","outstandingBalance","isAddingAddress","addAddressError","cities","areCitiesLoading","citiesError","labors","areLaborsLoading","laborsError","laborDetail","isLaborDetailLoading","laborDetailError","laborsWithoutCategory","areLaborsWithoutCategoryLoading","laborsWithoutCategoryError","merchant","isMerchantLoading","merchantError","paymentItems","showCoupon","paymentUUID","isUuidLoading","origin","type","value","id","status","paymentError","activeCoupons","isCouponLoading","isServicesLoading","servicesError","total","discounts","advance","serviceState","transport","isTransportLoading","transportError","transportPrice","transportDiscount","subTotal","servicePrice","isServicePriceLoading","servicePriceError","couponsAssigned","activeStepNumber","serviceToRequest","stepValidations","selectedCategory","serviceToRequestIsLoading","selectedLabor","selectedShop","daysOff","areDaysOffLoading","daysOffError","isBlockedSlotsLoading","blockedSlots","blockedSlotsError","alfredSchedule","isAlfredScheduleLoading","alfredScheduleError","categories","areCategoriesLoading","categoriesError","category","isCategoryLoading","categoryError","tracking","isTrackingLoading","trackingError","map","lastEvent","showMap","activeLabor","shops","areShopsLoading","shopsError","shopAgreement","isShopAgreementLoading","shopAgreementError","brands","areBrandsLoading","brandsError","isCreateVehicleLoading","createVehicleError","createdVehicle","models","isModelsLoading","modelsError","vehicleTypes","areVehicleTypesLoading","vehicleTypesError","combineReducers","actionTypes","payload","isSignUpLoadingRetry","signUpErrorRetry","signUpSuccessRetry","logloginResendCodeError","forEach","s","newService","newCurrentServices","_toConsumableArray","_state$currentService","newDate","_state$currentService2","filter","uuid","results","count","next","previous","newMembership","expirationDate","nextBillingDate","memberships","newMembershipInvoices","invoice","createdAt","updatedAt","parsedPaymentMethods","cityReducer","laborReducer","merchantReducer","paymentReducer","_action$payload$payme","_action$payload$total","_action$payload$total2","_action$payload$total3","_action$payload$total4","_action$payload$total5","_action$payload$total6","_action$payload$total7","originCase","items","showCoupn","_ref","labor","includes","slug","subtotal","requestReducer","daysOffReducer","categoryReducer","trackingReducer","trackingData","shopReducer","vehicleReducer","middleware","thunk","store","result","code","dispatch","composeEnhancers","compose","createStore","reducers","applyMiddleware","apply","getGeneralHandleError","_x","_getGeneralHandleError","_asyncToGenerator","_regeneratorRuntime","mark","_callee","response","wrap","_context","prev","statusText","url","json","sent","t0","name","abrupt","captureStackTrace","stop","trackingUrl","process","publicGet","_x11","_x12","_publicGet","_callee7","path","keepUrl","fullUrl","_context7","fetch","method","ok","DATA_PROCESSING_AUTHORIZATION_URL","TO_BE_CONFIRMED","CANCELED","INTERFACE_ADD_TO_CART","PropTypes","arrayOf","shape","item_name","string","item_id","price","item_brand","item_category","item_variant","item_list_name","item_list_id","quantity","INTERFACE_CART","getUserUuid","promotion_id","promotion_name","creative_name","creative_slot","location_id","index","number","objectOf","tax","shipping","affiliation","transaction_id","localStorage","getItem","addToCart","event_params","user_uuid","window","dataLayer","push","propTypes","deleteService","addPaymentInfo","ecommerce","payment_type","gtm","vpv","data","eventParams","user_properties","userProperties","customer_type","customerType","signUp","login","logout","search","goToSignup","goToLogin","goToRecoverAccount","checkTermsAndConditionsBox","goToRequestService","goToCurrentService","goToViewAddresses","_window$dataLayer","at","goToCart","goToVehicle","deleteVehicle","goToPreviousService","pay","changeSelectedVehicle","goToAddVehicle","_window$dataLayer2","goToCategory","selectService","goToOrderBy","selectAlly","removeOption","addOption","addComments","checkDeliverAnotherAddress","goToChangeDeliveryAddress","goToAddCoupon","addCoupon","goToSummary","selectPaymentMethod","continueAddVehicle","addVehicle","viewVehicleServices","viewVehicleInfo","goToAddAddress","continueAddAddress","addAddress","addPersonalInformation","goToSetDateTime","changeDayDate","selectTimeSlot","confirmTimeSlot","continueShopping","goToDeleteService","goBack","page","goToHome","goToMyInfo","goToMyPaymentMethods","goToOtherPaymentMethods","goToPay","goToSwitchVehicle","goToViewServices","switchVehicle","closeDialog","dialogue","onOpenLink","_window$dataLayer3","PAYMENT_ORIGIN_CASE","LOCALSTORAGE","homePath","servicePath","profilePath","trackServicePath","awsconfig","Auth","region","userPoolId","userPoolWebClientId","mandatorySignIn","authenticationFlowType","oauth","responseType","domain","redirectSignIn","redirectSignOut","_getTracking","serviceUuid","_path","_path2","_path3","_path4","_path5","_path6","_path7","_path8","_path9","_path10","_path11","_path12","_path13","_path14","_path15","getTracking","setTrackingMap","useTrackingStyles","makeStyles","trackingContainer","trackingLeftContainer","maxHeight","overflowY","trackingLeftInfo","width","maxWidth","paddingTop","marginLeft","trackingHeaderLogo","cursor","headerChubbImg","paddingLeft","headerChubbSection","headerChubbText","trackingState","paddingBottom","marginTop","trackingTimeLine","trackingRightInfo","down","position","bottom","overflow","trackingAcordion","boxShadow","marginRight","useTrackingTimeLineStyles","trackingTimeline","paddingRight","flex","justifyContent","borderWidth","customTimelineDot","trackingTimeLineContent","trackingTimeLineItem","trackingTimeLineButton","customTimeLineAlfredTime","trackingCustomDialog","trackingEventEventContainer","trackingEventEventName","trackingEventIconContainer","trackingEventImageText","trackingEventImageContainer","trackingEventImage","objectFit","trackingEventVideo","trackingEventSliderContainer","IMAGE_FORMATS","VIDEO_FORMATS","Route","icons","Image","RigthArrow","toShortHour","dateUtils","TrackingEvents","_eventSelected$eventT","_eventSelected$data","_eventSelected$data2","_eventSelected$data2$","events","classes","useTrackingEventsStyles","_useState","useState","_useState2","_slicedToArray","openModal","setOpenModal","_useState3","_useState4","eventSelected","setEventSelected","useDispatch","useEffect","reduce","handleOpenModal","useCallback","find","closeModal","handleSetTracking","_jsxs","_Fragment","children","_event$eventType","_event$data","_event$data2","Grid","container","alignItems","className","_jsx","src","alt","Typography","variant","eventType","executionDate","images","onClick","_event$data3","CustomDialog","open","handler","modalWidth","CustomCarousel","file","isImage","some","ext","isVideo","controls","kind","showPagination","useTrackingImageStyles","trackingImageContainer","trackingSVGContainer","alignContent","trackingImage","objectPosition","_excluded","_extends","Object","assign","bind","target","i","source","key","prototype","hasOwnProperty","call","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgAlfredDriver","svgRef","titleId","props","viewBox","xmlns","ref","d","ForwardRef","TrackingImage","serviceLabor","image","setImage","checkImage","imageSrc","good","bad","img","onload","onerror","_serviceLabor$alfred","alfred","DriverAvatar","toLongDateWithMinutes","TrackingTimeline","useTrackingTimelineStyles","useTheme","useSelector","getShopOrAlfred","_shop$address","shop","firstName","lastName","address","timeLineIcon","_ref2","startDate","endDate","CheckIcon","CachedIcon","QueryBuilderIcon","buildTimeLine","serviceLabors","_serviceLabor$labor","_serviceLabor$labor2","_serviceLabor$events","TimelineItem","customTimeLineItem","TimelineOppositeContent","TimelineSeparator","TimelineDot","style","TimelineConnector","TimelineContent","customTimeLineContent","direction","xs","buttonText","sm","laborConfigLabel","Timeline","Splash","opacityImage","useTrackingRightStyles","trackingBackground","backgroundSize","backgroundPosition","trackingCompleted","backgroundImage","completedImage","trackingCanceled","canceledImage","trackingRequested","_ref3","requestedImage","trackingToBeConfirmed","_ref4","toBeConfirmedImage","trackingToBePaid","_ref5","toBePaidImage","trackingRightMessage","trackingLink","trackingTitle","textAlign","trackingText","TrackingRight","_useSearchParams","useSearchParams","searchParams","_useSelector","navigate","useNavigate","loadMap","useMemo","dateToCompare","diff","getTime","Math","ceil","get","getImageClass","getMessages","subTitle","handleClick","trackingIframe","CustomButton","useNotFoundStyles","trackingNotFound","overflowX","trackingNotFoundLogo","trackingNotFoundSpinner","trackingNotFoundFloating","right","AlfredLogo","TrackingNotFound","timer","setTimeout","clearTimeout","spacing","TrackingLogo","align","STATE_TITLE_MAP","Tracking","_tracking$vehicle","_tracking$vehicle2","useParams","expand","setExpand","trackingNumber","_trackingData$service","_lastLabor$events","lastLabor","_lastLabor$events2","trackingService","a","b","toggleAcordion","handleLogoClick","md","Logo","logoStyles","Hidden","smDown","whiteChubb","Plate","plate","versionMedium","disableHover","mdUp","versionMini","Accordion","expanded","AccordionSummary","expandIcon","ExpandMoreIcon","IconButtonProps","navJS","toJSON","userAgent","os","browser","mobile","isMobile","desktop","isDesktop","screen","hd","isHD","pixelRatio","landscape","isLandscape","portrait","isPortrait","touch","isTouch","isIOS","isiphone","isIPhone","isipad","isIPad","ios","getIOSVersion","device","isAndroid","isWindows","isUnix","isMac","isLinux","isBlackBerry","isSafari","isChrome","isIE","isEdge","isFirefox","isOpera","navigator","browserName","tem","ua","M","match","test","exec","appName","appVersion","splice","join","innerWidth","innerHeight","vendor","toLowerCase","toString","operamini","isMobileChrome","isMobileSafari","isMobileIE","isMobileOpera","isMobileFirefox","devicePixelRatio","platform","OSVersion","replace","isStandAlone","standalone","maxTouchPoints","document","documentElement","GetApp","utmCampaign","setUtmCampaign","utmSource","setUtmSource","_useState5","_useState6","utmMedium","setUtmMedium","_useState7","_useState8","utmContent","setUtmContent","_useState9","_useState10","loadedQueries","setLoadedQueries","has","via","location","Navigate","to","href","errorPageImage","Amplify","configure","Redirect","redirectUrl","App","handleClick404","handleComponentError","_ref13","_callee13","_context13","_x14","reportUserError","fallback","ErrorPage","errorTitle","errorMessage","onClickErrorPage","onError","Routes","element","Boolean","hostname","dsn","debug","release","attachStacktrace","autoSessionTracking","environment","normalizeDepth","replaysSessionSampleRate","replaysOnErrorSampleRate","integrations","Integrations","BrowserTracing","Breadcrumbs","ignoreErrors","init","ReactDOM","render","React","StrictMode","Provider","BrowserRouter","ThemeProvider","CssBaseline","getElementById","serviceWorker","ready","then","registration","unregister","require","config"],"mappings":"ujDACaA,EAAqB,UACrBC,EAAqB,UACrBC,EAAsB,UAEtBC,EAAsB,UAGtBC,EAAuB,UACvBC,EAAuB,UACvBC,EAAwB,UAOxBC,EAAiB,UAEjBC,EAAiB,UACjBC,EAAiB,UACjBC,EAAiB,UAwBjBC,EAAa,8BAAAC,OAAkCZ,EAAkB,SAAAY,OAAUR,EAAoB,YAC/FS,EAAa,4BAAAD,OAAgCX,EAAkB,YAAAW,OAAaP,EAA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,eAAC2V,IAAW,IACZ3V,eAACmT,GAAG,aAKZ9B,SAASuE,eAAgB,SDwErB,kBAAmBrG,WACrBA,UAAUsG,cAAcC,MAAMC,MAAM,SAAEC,GACpCA,EAAaC,YACf,ICvEJC,EAAS,KAAWC,Q","file":"static/js/main.24d3d08c.chunk.js","sourcesContent":["// Primary colors\nexport const COLOR_PRIMARY_DARK = '#111E3E';\nexport const COLOR_PRIMARY_MAIN = '#B1FC00';\nexport const COLOR_PRIMARY_LIGHT = '#0096FB';\nexport const COLOR_PRIMARY_LIGHTER = '#F2F9FE';\nexport const COLOR_PRIMARY_WHITE = '#ffffff';\n\n// Secondary colors\nexport const COLOR_SECONDARY_DARK = '#020D20';\nexport const COLOR_SECONDARY_MAIN = '#19EB00';\nexport const COLOR_SECONDARY_LIGHT = '#0075C5';\nexport const COLOR_SECONDARY_LIGHTER = 'rgba(46,91,255,0.08)';\n\n// Gray colors\nexport const COLOR_GREY_10 = '#FCFCFC';\nexport const COLOR_GREY_50 = '#F8FAFF';\nexport const COLOR_GREY_100 = '#F1F5FF';\nexport const COLOR_GREY_200 = '#DBE0EE';\nexport const COLOR_GREY_300 = '#BFC4D1';\nexport const COLOR_GREY_400 = '#AAAEB9';\nexport const COLOR_GREY_500 = '#83878F';\nexport const COLOR_GREY_600 = '#30364E';\nexport const COLOR_GREY_700 = '#35373A';\n\n// Success colors\nexport const COLOR_SUCCESS_DARK = '#7BD03F';\nexport const COLOR_SUCCESS_MAIN = '#B4FB00';\nexport const COLOR_SUCCESS_LIGHT = '#ABFF70';\n\n// Warning colors\nexport const COLOR_WARNING_DARK = '#C7A63A';\nexport const COLOR_WARNING_MAIN = '#F7CE46';\nexport const COLOR_WARNING_LIGHT = '#FFDE70';\n\n// Error colors\nexport const COLOR_ERROR_DARK = '#BE3F38';\nexport const COLOR_ERROR_MAIN = '#EB4E45';\nexport const COLOR_ERROR_LIGHT = '#FF6F67';\n\n// Info colors\nexport const COLOR_INFO_DARK = '#01568E';\nexport const COLOR_INFO_MAIN = '#007CCF';\nexport const COLOR_INFO_LIGHT = '#008EED';\n\n// Gradients\nexport const GRADIENT_DARK = `linear-gradient(246.32deg, ${ COLOR_PRIMARY_DARK } 0%, ${ COLOR_SECONDARY_DARK } 99.64%)`;\nexport const GRADIENT_MAIN = `linear-gradient(98.1deg, ${ COLOR_PRIMARY_MAIN } 6.12%, ${ COLOR_SECONDARY_MAIN } 111.74%)`;\nexport const GRADIENT_LIGHT = `linear-gradient(90deg, ${ COLOR_PRIMARY_LIGHT } 0%, ${ COLOR_SECONDARY_LIGHT } 100%)`;\nexport const GRADIENT_OTHER_DARK = `linear-gradient(90deg, ${ COLOR_PRIMARY_DARK } 2.78%, rgba(17, 30 , 62, 0) 100%)`;\n","import { createTheme } from '@material-ui/core';\n\nimport * as colors from './colors';\n\n\nexport const fontWeightMap = {\n black : 900,\n extraBold : 800,\n bold : 700,\n semiBold : 600,\n medium : 500,\n regular : 400,\n light : 300,\n thin : 100\n};\n\n// A custom Material UI theme for this project\nconst theme = createTheme({\n palette : {\n primary : {\n dark : colors.COLOR_PRIMARY_DARK,\n main : colors.COLOR_PRIMARY_MAIN,\n light : colors.COLOR_PRIMARY_LIGHT,\n lighter : colors.COLOR_PRIMARY_LIGHTER,\n white : colors.COLOR_PRIMARY_WHITE,\n contrastText : colors.COLOR_PRIMARY_WHITE\n },\n secondary : {\n dark : colors.COLOR_SECONDARY_DARK,\n main : colors.COLOR_SECONDARY_MAIN,\n light : colors.COLOR_SECONDARY_LIGHT,\n lighter : colors.COLOR_SECONDARY_LIGHTER\n },\n gradient : {\n dark : colors.GRADIENT_DARK,\n main : colors.GRADIENT_MAIN,\n light : colors.GRADIENT_LIGHT,\n otherDark : colors.GRADIENT_OTHER_DARK\n },\n grey : {\n 10 : colors.COLOR_GREY_10,\n 50 : colors.COLOR_GREY_50,\n 100 : colors.COLOR_GREY_100,\n 200 : colors.COLOR_GREY_200,\n 300 : colors.COLOR_GREY_300,\n 400 : colors.COLOR_GREY_400,\n 500 : colors.COLOR_GREY_500,\n 600 : colors.COLOR_GREY_600,\n 700 : colors.COLOR_GREY_700\n },\n success : {\n dark : colors.COLOR_SUCCESS_DARK,\n main : colors.COLOR_SUCCESS_MAIN,\n light : colors.COLOR_SUCCESS_LIGHT\n },\n warning : {\n dark : colors.COLOR_WARNING_DARK,\n main : colors.COLOR_WARNING_MAIN,\n light : colors.COLOR_WARNING_LIGHT\n },\n error : {\n dark : colors.COLOR_ERROR_DARK,\n main : colors.COLOR_ERROR_MAIN,\n light : colors.COLOR_ERROR_LIGHT\n },\n info : {\n dark : colors.COLOR_INFO_DARK,\n main : colors.COLOR_INFO_MAIN,\n light : colors.COLOR_INFO_LIGHT\n },\n background : {\n main : 'linear-gradient(205.43deg, #0C1C44 -0.24%, #171E3A 101.37%);',\n membership : {\n main : `linear-gradient(90deg, ${ colors.COLOR_PRIMARY_LIGHT } 0%, ${ colors.COLOR_SECONDARY_LIGHT } 100%)`\n }\n },\n link : {\n main : colors.COLOR_PRIMARY_MAIN\n },\n body : {\n main : colors.COLOR_GREY_400\n }\n },\n shadow : {\n card : '0px 10px 20px rgba(46, 91, 255, 0.144005)'\n },\n margin : ( factor ) => `${ 5 * factor }px`,\n padding : ( factor ) => `${ 5 * factor }px`,\n overrides : {\n MuiCssBaseline : {\n '@global' : {\n '#root, #modal-root' : {\n '&::-webkit-scrollbar, & *::-webkit-scrollbar' : {\n backgroundColor : 'transparent'\n },\n '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb' : {\n borderRadius : 8,\n backgroundColor : colors.COLOR_SECONDARY_DARK,\n minHeight : 20,\n border : `3px solid ${ colors.COLOR_GREY_600 }`\n },\n '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover' : {\n backgroundColor : '#000'\n }\n },\n body : {\n '& .grecaptcha-badge' : { visibility: 'hidden' },\n backgroundColor : colors.COLOR_PRIMARY_DARK\n }\n }\n },\n MuiStepConnector : {\n line : {\n borderColor : colors.COLOR_GREY_200\n }\n },\n MuiTypography : {\n root : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiFormLabel : {\n root : {\n '&.Mui-disabled' : {\n color : colors.COLOR_GREY_500\n }\n }\n },\n MuiSvgIcon : {\n root : {\n fill : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiSelect : {\n root : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiTextField : {\n\n root : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiOutlinedInput : {\n root : {\n '&$focused $notchedOutline' : {\n borderColor : colors.COLOR_PRIMARY_WHITE\n },\n '&:hover fieldset' : {\n borderColor : `${ colors.COLOR_PRIMARY_WHITE } !important`\n }\n },\n notchedOutline : {\n borderColor : colors.COLOR_GREY_200\n },\n '&$focused' : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiInput : {\n underline : {\n '&:hover:not($disabled):after' : {\n borderBottomColor : colors.COLOR_PRIMARY_WHITE\n },\n '&:hover:not($disabled):before' : {\n borderBottomColor : colors.COLOR_PRIMARY_WHITE\n },\n '&:before' : {\n borderBottomColor : colors.COLOR_PRIMARY_WHITE\n },\n '&:after' : {\n borderBottomColor : colors.COLOR_PRIMARY_WHITE\n }\n },\n label : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiInputBase : {\n inputMultiline : {\n color : colors.COLOR_PRIMARY_WHITE\n },\n input : {\n '&:-webkit-autofill' : {\n transitionDelay : '9999s',\n backgroundColor : `${ colors.COLOR_PRIMARY_DARK } !important`\n },\n '&$disabled' : {\n opacity : 0.7\n },\n color : colors.COLOR_PRIMARY_WHITE\n },\n label : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiInputLabel : {\n root : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiFormHelperText : {\n root : {\n color : colors.COLOR_PRIMARY_WHITE\n }\n },\n MuiLinearProgress : {\n root : {\n height : '3px'\n }\n },\n MuiTab : {\n root : {\n '&$selected span' : {\n background : colors.GRADIENT_MAIN,\n '-webkit-background-clip' : 'text',\n '-webkit-text-fill-color' : 'transparent',\n textDecoration : `underline ${ colors.GRADIENT_MAIN }`,\n display : 'block'\n },\n '&:hover span' : {\n background : colors.GRADIENT_MAIN,\n '-webkit-background-clip' : 'text',\n '-webkit-text-fill-color' : 'transparent',\n textDecoration : `underline ${ colors.COLOR_PRIMARY_MAIN }`,\n display : 'block'\n },\n color : `${ colors.COLOR_GREY_400 } !important`\n }\n },\n MuiAccordion : {\n root : {\n '&:before' : {\n display : 'none'\n }\n }\n }\n }\n});\n\ntheme.palette.components = {\n button : {\n root : {\n background : theme.palette.gradient.main,\n color : theme.palette.primary.dark,\n progress : theme.palette.primary.dark\n },\n primary : {\n background : theme.palette.grey[ 600 ],\n color : theme.palette.grey[ 50 ],\n progress : theme.palette.gradient.main\n },\n secondary : {\n background : theme.palette.primary.light,\n color : theme.palette.grey[ 50 ],\n progress : theme.palette.primary.dark\n },\n outlined : {\n background : 'inherit',\n border : theme.palette.primary.light,\n color : theme.palette.primary.light,\n progress : theme.palette.primary.light\n }\n },\n customDatePicker : {\n background : theme.palette.grey[ 600 ],\n color : theme.palette.primary.contrastText,\n selected : {\n background : theme.palette.primary.main,\n color : theme.palette.primary.dark\n },\n keyboard : {\n background : 'transparent'\n },\n disabled : {\n color : theme.palette.grey[ 500 ]\n },\n today : {\n background : theme.palette.grey[ 500 ]\n }\n },\n customDateGroup : {\n customDateGroupSelectedBtn : {\n '&.MuiButton-outlined' : {\n color : theme.palette.primary.white,\n backgroundColor : theme.palette.primary.light,\n\n '&:hover' : {\n backgroundColor : theme.palette.gradient.blue\n }\n }\n }\n\n },\n laborPrice : {\n laborTurboPrice : theme.palette.secondary.main,\n laborDiscount : theme.palette.grey[ 400 ]\n },\n serviceCard : {\n serviceCardSelected : {\n background : {\n selected : theme.palette.grey[ 600 ],\n notSelected : theme.palette.grey[ 600 ]\n },\n border : {\n selected : `1px solid ${ theme.palette.primary.main }`,\n notSelected : 'none'\n }\n },\n serviceCardTitle : {\n color : {\n selected : theme.palette.primary.white,\n notSelected : theme.palette.primary.white\n }\n },\n serviceCardCheckIcon : {\n background : `-webkit-${ theme.palette.gradient.main }`,\n color : theme.palette.primary.white\n }\n },\n summary : {\n summaryFooter : {\n backgroundColor : theme.palette.secondary.dark\n },\n summaryTitleText : {\n background : theme.palette.gradient.main,\n '-webkit-background-clip' : 'text',\n '-webkit-text-fill-color' : 'transparent'\n }\n },\n customItem : {\n background : theme.palette.grey[ 600 ],\n footerBackground : theme.palette.grey[ 500 ],\n footerColor : colors.COLOR_PRIMARY_WHITE\n },\n customChip : {\n background : colors.COLOR_PRIMARY_DARK,\n color : theme.palette.grey[ 50 ]\n },\n successfulRequestService : {\n succesfulRequestServiceText1 : {\n background : theme.palette.gradient.main,\n '-webkit-background-clip' : 'text',\n '-webkit-text-fill-color' : 'transparent'\n }\n },\n checkbox : {\n label : theme.palette.grey[ 50 ],\n icon : theme.palette.grey[ 50 ]\n },\n table : {\n item : theme.palette.primary.contrastText,\n pagination : theme.palette.primary.contrastText,\n disabledArrowPagination : theme.palette.grey[ 500 ],\n title : {\n background : theme.palette.gradient.main,\n '-webkit-background-clip' : 'text',\n '-webkit-text-fill-color' : 'transparent',\n marginBottom : theme.margin( 3 )\n }\n },\n customDialog : {\n customDialogTitle : {\n background : theme.palette.primary.dark\n },\n customDialogContent : {\n background : theme.palette.primary.dark\n },\n customDialogFooter : {\n background : theme.palette.primary.dark\n }\n },\n cart : {\n icon : theme.palette.grey[ 50 ],\n text : theme.palette.primary.dark,\n background : theme.palette.gradient.main\n },\n carousel : {\n swiperButton : theme.palette.primary.main\n },\n splash : {\n background : theme.palette.gradient.dark\n },\n customAlert : {\n boldColor : theme.palette.primary.main\n },\n error : {\n backgroundColor : theme.palette.gradient.dark,\n\n text : {\n background : theme.palette.gradient.main,\n '-webkit-background-clip' : 'text',\n '-webkit-text-fill-color' : 'transparent'\n }\n }\n};\n\n// Override font sizes and make them responsive according to Alfred Design System\ntheme.typography.h1 = {\n fontSize : '40px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '40px',\n fontWeight : fontWeightMap.bold,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '50px',\n lineHeight : '50px'\n }\n};\n\ntheme.typography.h2 = {\n fontSize : '35px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '35px',\n fontWeight : fontWeightMap.regular,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '40px',\n lineHeight : '40px'\n }\n};\n\ntheme.typography.h3 = {\n fontSize : '30px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '30px',\n fontWeight : fontWeightMap.bold,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '35px',\n lineHeight : '35px'\n }\n};\n\ntheme.typography.h4 = {\n fontSize : '25px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '25px',\n fontWeight : fontWeightMap.bold,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '30px',\n lineHeight : '30px'\n }\n};\n\ntheme.typography.h5 = {\n fontSize : '20px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '20px',\n fontWeight : fontWeightMap.bold,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '25px',\n lineHeight : '25px'\n }\n};\n\ntheme.typography.h6 = {\n fontSize : '15px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '15px',\n fontWeight : fontWeightMap.regular,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '25px',\n lineHeight : '25px'\n }\n};\n\ntheme.typography.subtitle1 = {\n fontSize : '14px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '16px',\n fontWeight : fontWeightMap.bold,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '18px',\n lineHeight : '20px'\n }\n};\n\ntheme.typography.subtitle2 = {\n fontSize : '14px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '16px',\n fontWeight : fontWeightMap.medium,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '14px',\n lineHeight : '14px'\n }\n};\n\ntheme.typography.body1 = {\n fontSize : '12px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '13px',\n fontWeight : fontWeightMap.regular,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '14px',\n lineHeight : '16px'\n }\n};\n\ntheme.typography.body2 = {\n fontSize : '12px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '13px',\n fontWeight : fontWeightMap.medium,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n lineHeight : '12px'\n }\n};\n\ntheme.typography.button = {\n fontSize : '10px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '10px',\n fontWeight : fontWeightMap.medium,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '12px',\n lineHeight : '12px'\n }\n};\n\ntheme.typography.caption = {\n fontSize : '10px',\n fontFamily : 'Gotham, sans-serif',\n fontWeight : fontWeightMap.regular,\n lineHeight : '10px'\n};\n\ntheme.typography.overline = {\n fontSize : '8px',\n fontFamily : 'Gotham, sans-serif',\n lineHeight : '8px',\n fontWeight : fontWeightMap.bold,\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n fontSize : '10px',\n lineHeight : '12px'\n }\n};\n\n\nexport default theme;\n","import * as Sentry from '@sentry/react';\nimport { Integrations } from '@sentry/tracing';\n\nimport packageJson from '../../package.json';\n\nexport const initBugReporter = () => {\n if( !process.env.REACT_APP_SENTRY_DSN ) {\n return;\n }\n\n // Global wrapper that reports uncaught errors\n Sentry.init({\n dsn : process.env.REACT_APP_SENTRY_DSN,\n // enable to print useful information if something goes wrong with sending an event\n debug : process.env.NODE_ENV === 'development',\n release : packageJson.version,\n\n attachStacktrace : true,\n autoSessionTracking : true,\n\n environment : process.env.NODE_ENV,\n // used to see complete objects in sentry instead of {Objects}\n normalizeDepth : 30,\n replaysSessionSampleRate : 0.1,\n replaysOnErrorSampleRate : 1.0,\n integrations : [\n new Integrations.BrowserTracing(),\n new Sentry.Integrations.Breadcrumbs({\n fetch : true\n }),\n new Sentry.Replay()\n ],\n ignoreErrors : [\n 'ibFindAllVideos'\n ]\n });\n};\n\nexport const reportBug = ( error, level ) => {\n let errorObject = error;\n if( error instanceof Error === false ) {\n errorObject = new Error( error.message || error );\n }\n if( process.env.REACT_APP_DEBUG_MODE === 'true' || !process.env.REACT_APP_SENTRY_DSN ) {\n // eslint-disable-next-line no-console\n console.error( error );\n }\n else {\n Sentry.configureScope(\n ( scope ) => scope\n .setLevel( level )\n );\n Sentry.captureException(\n errorObject,\n ( scope ) => {\n if( error.detail ) {\n scope.setExtra( 'Detail', error.detail );\n }\n return scope;\n }\n );\n }\n};\n\nexport const bugReporterReduxEnhancer = Sentry.createReduxEnhancer({\n // actionTransormer is used to catch redux errors and to report them to sentry\n actionTransformer : ( action ) => {\n if( action.error ) {\n reportBug( action.error, action.level );\n }\n },\n stateTransformer : ( state ) => {\n const transformedState = {\n ...state,\n userReducer : {\n ...state.userReducer,\n session : state.userReducer?.attributes || undefined,\n user : state.user?.username || undefined\n }\n };\n return transformedState;\n }\n});\n","import mixpanel from 'mixpanel-browser';\n\nimport packageJson from '../../package.json';\nimport { toShortTimestamp } from './dateUtils';\n\n\nexport function initUserTracker() {\n if( process.env.REACT_APP_DEBUG_MODE === 'false' ) {\n mixpanel.init( process.env.REACT_APP_MIXPANEL_TOKEN );\n }\n}\n\nexport function setUserToTrackProperties( email, isNewUser ) {\n // only reserved properties need the $\n // reserved props: https://help.mixpanel.com/hc/en-us/articles/115004708186-Profile-Properties#reserved-properties-for-user-profiles\n if( process.env.REACT_APP_DEBUG_MODE === 'false' ) {\n const userProperties = {\n $email : email,\n USER_ID : email\n };\n\n if( isNewUser ) {\n userProperties[ 'Registration Date' ] = toShortTimestamp( Date.now() );\n }\n\n mixpanel.people.set( userProperties );\n }\n}\n\nexport function identifyUserToTrack( email ) {\n if( process.env.REACT_APP_DEBUG_MODE === 'false' ) {\n mixpanel.identify( email );\n setUserToTrackProperties( email );\n }\n}\n\nexport function trackEvent( event, properties = {}) {\n if( process.env.REACT_APP_DEBUG_MODE === 'false' ) {\n mixpanel.track(\n event,\n { ...properties, version: packageJson.version }\n );\n }\n}\n","export const GET_SESSION_SUCCESS = 'GET_SESSION_SUCCESS';\nexport const GET_SESSION_LOADING = 'GET_SESSION_LOADING';\nexport const GET_SESSION_ERROR = 'GET_SESSION_ERROR';\n\nexport const UPDATE_USER_LOADING = 'UPDATE_USER_LOADING';\nexport const UPDATE_USER_SUCCESS = 'UPDATE_USER_SUCCESS';\nexport const UPDATE_USER_ERROR = 'UPDATE_USER_ERROR';\nexport const RESTORE_UPDATE_USER = 'RESTORE_UPDATE_USER';\n\nexport const GET_VEHICLES_LOADING = 'GET_VEHICLES_LOADING';\nexport const GET_VEHICLES_SUCCESS = 'GET_VEHICLES_SUCCESS';\nexport const GET_VEHICLES_ERROR = 'GET_VEHICLES_ERROR';\n\nexport const GET_RELATED_VEHICLES_LOADING = 'GET_RELATED_VEHICLES_LOADING';\nexport const GET_RELATED_VEHICLES_SUCCESS = 'GET_RELATED_VEHICLES_SUCCESS';\nexport const GET_RELATED_VEHICLES_ERROR = 'GET_RELATED_VEHICLES_ERROR';\nexport const ADD_RELATED_VEHICLE = 'ADD_RELATED_VEHICLE';\n\nexport const RESTORE_VEHICLE_DETAIL = 'RESTORE_VEHICLE_DETAIL';\n\nexport const GET_VEHICLE_LOADING = 'GET_VEHICLE_LOADING';\nexport const GET_VEHICLE_SUCCESS = 'GET_VEHICLE_SUCCESS';\nexport const GET_VEHICLE_ERROR = 'GET_VEHICLE_ERROR';\n\nexport const DELETE_VEHICLE_LOADING = ' DELETE_VEHICLE_LOADING';\nexport const DELETE_VEHICLE_SUCCESS = ' DELETE_VEHICLE_SUCCESS';\nexport const DELETE_VEHICLE_ERROR = 'DELETE_VEHICLE_ERROR';\n\nexport const CREATE_VEHICLE_LOADING = 'CREATE_VEHICLE_LOADING';\nexport const CREATE_VEHICLE_SUCCESS = 'CREATE_VEHICLE_SUCCESS';\nexport const CREATE_VEHICLE_ERROR = 'CREATE_VEHICLE_ERROR';\n\nexport const VEHICLE_GET_MODELS_LOADING = 'VEHICLE_GET_MODELS_LOADING';\nexport const VEHICLE_GET_MODELS_SUCCESS = 'VEHICLE_GET_MODELS_SUCCESS';\nexport const VEHICLE_GET_MODELS_ERROR = 'VEHICLE_GET_MODELS_ERROR';\n\nexport const GET_ADDRESSES_LOADING = 'GET_ADDRESSES_LOADING';\nexport const GET_ADDRESSES_SUCCESS = 'GET_ADDRESSES_SUCCESS';\nexport const GET_ADDRESSES_ERROR = 'GET_ADDRESSES_ERROR';\nexport const ADD_ADDRESS = 'ADD_ADDRESS';\nexport const ADD_ADDRESS_LOADING = 'ADD_ADDRESS_LOADING';\nexport const ADD_ADDRESS_ERROR = 'ADD_ADDRESS_ERROR';\nexport const DELETE_ADDRESS_LOADING = 'DELETE_ADDRESS_LOADING';\nexport const DELETE_ADDRESS_SUCCESS = 'DELETE_ADDRESS_SUCCESS';\nexport const DELETE_ADDRESS_ERROR = 'DELETE_ADDRESS_ERROR';\n\n\nexport const GET_LABORS_LOADING = 'GET_LABORS_LOADING';\nexport const GET_LABORS_SUCCESS = 'GET_LABORS_SUCCESS';\nexport const GET_LABORS_ERROR = 'GET_LABORS_ERROR';\n\nexport const GET_CURRENT_SERVICES_LOADING = 'GET_CURRENT_SERVICES_LOADING';\nexport const GET_CURRENT_SERVICES_SUCCESS = 'GET_CURRENT_SERVICES_SUCCESS';\nexport const GET_CURRENT_SERVICES_ERROR = 'GET_CURRENT_SERVICES_ERROR';\nexport const ADD_CURRENT_SERVICE = 'ADD_CURRENT_SERVICE';\nexport const UPDATE_CURRENT_SERVICE = 'UPDATE_CURRENT_SERVICE';\nexport const REMOVE_CURRENT_SERVICE = 'REMOVE_CURRENT_SERVICE';\n\nexport const GET_CITIES_LOADING = 'GET_CITIES_LOADING';\nexport const GET_CITIES_SUCCESS = 'GET_CITIES_SUCCESS';\nexport const GET_CITIES_ERROR = 'GET_CITIES_ERROR';\n\nexport const GET_SERVICES_HISTORY_LOADING = 'GET_SERVICES_HISTORY_LOADING';\nexport const GET_SERVICES_HISTORY_SUCCESS = 'GET_SERVICES_HISTORY_SUCCESS';\nexport const GET_SERVICES_HISTORY_ERROR = 'GET_SERVICES_HISTORY_ERROR';\n\nexport const GET_MERCHANT_LOADING = 'GET_MERCHANT_LOADING';\nexport const GET_MERCHANT_SUCCESS = 'GET_MERCHANT_SUCCESS';\nexport const GET_MERCHANT_ERROR = 'GET_MERCHANT_ERROR';\n\nexport const CREATE_MEMBERSHIP_LOADING = 'CREATE_MEMBERSHIP_LOADING';\nexport const CREATE_MEMBERSHIP_SUCCESS = 'CREATE_MEMBERSHIP_SUCCESS';\nexport const CREATE_MEMBERSHIP_ERROR = 'CREATE_MEMBERSHIP_ERROR';\n\nexport const CREATE_SERVICE_LOADING = 'CREATE_SERVICE_LOADING';\nexport const CREATE_SERVICE_SUCCESS = 'CREATE_SERVICE_SUCCESS';\nexport const CREATE_SERVICE_ERROR = 'CREATE_SERVICE_ERROR';\nexport const CLEAN_SERVICE_ERROR = 'CLEAN_SERVICE_ERROR';\n\nexport const GET_MEMBERSHIP_INVOICES_LOADING = 'GET_MEMBERSHIP_INVOICES_LOADING';\nexport const GET_MEMBERSHIP_INVOICES_SUCCESS = 'GET_MEMBERSHIP_INVOICES_SUCCESS';\nexport const GET_MEMBERSHIP_INVOICES_ERROR = 'GET_MEMBERSHIP_INVOICES_ERROR';\n\nexport const GET_SELECTED_PAYMENT_METHOD_LOADING = 'GET_SELECTED_PAYMENT_METHOD_LOADING';\nexport const GET_SELECTED_PAYMENT_METHOD_SUCCESS = 'GET_SELECTED_PAYMENT_METHOD_SUCCESS';\nexport const GET_SELECTED_PAYMENT_METHOD_ERROR = 'GET_SELECTED_PAYMENT_METHOD_ERROR';\n\nexport const ADD_PAYMENT_METHOD_LOADING = 'ADD_PAYMENT_METHOD_LOADING';\nexport const ADD_PAYMENT_METHOD_SUCCESS = 'ADD_PAYMENT_METHOD_SUCCESS';\nexport const ADD_PAYMENT_METHOD_ERROR = 'ADD_PAYMENT_METHOD_ERROR';\n\nexport const SELECT_PAYMENT_METHOD_LOADING = 'SELECT_PAYMENT_METHOD_LOADING';\nexport const SELECT_PAYMENT_METHOD_SUCCESS = 'SELECT_PAYMENT_METHOD_SUCCESS';\nexport const SELECT_PAYMENT_METHOD_ERROR = 'SELECT_PAYMENT_METHOD_ERROR';\n\nexport const GET_PAYMENT_METHODS_LOADING = 'GET_PAYMENT_METHODS_LOADING';\nexport const GET_PAYMENT_METHODS_SUCCESS = 'GET_PAYMENT_METHODS_SUCCESS';\nexport const GET_PAYMENT_METHODS_ERROR = 'GET_PAYMENT_METHODS_ERROR';\n\nexport const DELETE_PAYMENT_METHOD_LOADING = 'DELETE_PAYMENT_METHOD_LOADING';\nexport const DELETE_PAYMENT_METHOD_SUCCESS = 'DELETE_PAYMENT_METHOD_SUCCESS';\nexport const DELETE_PAYMENT_METHOD_ERROR = 'DELETE_PAYMENT_METHOD_ERROR';\n\nexport const GET_AUTHENTICATED_USER_LOADING = 'GET_AUTHENTICATED_USER_LOADING';\nexport const GET_AUTHENTICATED_USER_SUCCESS = 'GET_AUTHENTICATED_USER_SUCCESS';\nexport const GET_AUTHENTICATED_USER_ERROR = 'GET_AUTHENTICATED_USER_ERROR';\n\nexport const CREATE_COUPON_LOADING = 'CREATE_COUPON_LOADING';\nexport const CREATE_COUPON_SUCCESS = 'CREATE_COUPON_SUCCESS';\nexport const CREATE_COUPON_ERROR = 'CREATE_COUPON_ERROR';\n\nexport const GET_LABOR_DETAIL_LOADING = 'GET_LABOR_DETAIL_LOADING';\nexport const GET_LABOR_DETAIL_SUCCESS = 'GET_LABOR_DETAIL_SUCCESS';\nexport const GET_LABOR_DETAIL_ERROR = 'GET_LABOR_DETAIL_ERROR';\n\nexport const GET_DAYSOFF_LOADING = 'GET_DAYSOFF_LOADING';\nexport const GET_DAYSOFF_SUCCESS = 'GET_DAYSOFF_SUCCESS';\nexport const GET_DAYSOFF_ERROR = 'GET_DAYSOFF_ERROR';\n\nexport const GET_BLOCKED_SLOTS_LOADING = 'GET_BLOCKED_SLOTS_LOADING';\nexport const GET_BLOCKED_SLOTS_SUCCESS = 'GET_BLOCKED_SLOTS_SUCCESS';\nexport const GET_BLOCKED_SLOTS_ERROR = 'GET_BLOCKED_SLOTS_ERROR';\n\nexport const CREATE_SERVICE_INVOICE_LOADING = 'CREATE_SERVICE_INVOICE_LOADING';\nexport const CREATE_SERVICE_INVOICE_SUCCESS = 'CREATE_SERVICE_INVOICE_SUCCESS';\nexport const CREATE_SERVICE_INVOICE_ERROR = 'CREATE_SERVICE_INVOICE_ERROR';\n\nexport const SIGN_IN_LOADING = 'SIGN_IN_LOADING';\nexport const SIGN_IN_SUCCESS = 'SIGN_IN_SUCCESS';\nexport const SIGN_IN_ERROR = 'SIGN_IN_ERROR';\n\nexport const SIGN_UP_LOADING = 'SIGN_UP_LOADING';\nexport const SIGN_UP_SUCCESS = 'SIGN_UP_SUCCESS';\nexport const SIGN_UP_ERROR = 'SIGN_UP_ERROR';\n\nexport const SIGN_UP_LOADING_RETRY = 'SIGN_UP_LOADING_RETRY';\nexport const SIGN_UP_SUCCESS_RETRY = 'SIGN_UP_SUCCESS_RETRY';\nexport const SIGN_UP_ERROR_RETRY = 'SIGN_UP_ERROR_RETRY';\n\nexport const SIGN_OUT_LOADING = 'SIGN_OUT_LOADING';\nexport const SIGN_OUT_SUCCESS = 'SIGN_OUT_SUCCESS';\nexport const SIGN_OUT_ERROR = 'SIGN_OUT_ERROR';\n\nexport const SIGN_IN_RESEND_CODE_LOADING = 'SIGN_IN_RESEND_CODE_LOADING';\nexport const SIGN_IN_RESEND_CODE_SUCCESS = 'SIGN_IN_RESEND_CODE_SUCCESS';\nexport const SIGN_IN_RESEND_CODE_ERROR = 'SIGN_IN_RESEND_CODE_ERROR';\n\nexport const GET_VERIFICATION_CODE_LOADING = 'GET_VERIFICATION_CODE_LOADING';\nexport const GET_VERIFICATION_CODE_SUCCESS = 'GET_VERIFICATION_CODE_SUCCESS';\nexport const GET_VERIFICATION_CODE_ERROR = 'GET_VERIFICATION_CODE_ERROR';\n\nexport const SEND_RECOVERY_MAIL_LOADING = 'SEND_RECOVERY_MAIL_LOADING';\nexport const SEND_RECOVERY_MAIL_SUCCESS = 'SEND_RECOVERY_MAIL_SUCCESS';\nexport const SEND_RECOVERY_MAIL_ERROR = 'SEND_RECOVERY_MAIL_ERROR';\n\nexport const SUBMIT_NEW_PASSWORD_LOADING = 'SUBMIT_NEW_PASSWORD_LOADING';\nexport const SUBMIT_NEW_PASSWORD_SUCCESS = 'SUBMIT_NEW_PASSWORD_SUCCESS';\nexport const SUBMIT_NEW_PASSWORD_ERROR = 'SUBMIT_NEW_PASSWORD_ERROR';\n\nexport const RESTORE_RECOVER_PASSWORD = 'RESTORE_RECOVER_PASSWORD';\nexport const RESTORE_SIGN_IN = 'RESTORE_SIGN_IN';\nexport const RESTORE_SIGN_UP = 'RESTORE_SIGN_UP';\nexport const RESTORE_CONFIRMATION_CODE_VERIFIED = 'RESTORE_CONFIRMATION_CODE_VERIFIED';\n\nexport const RESTORE_SERVICE_INVOICE = 'RESTORE_SERVICE_INVOICE';\nexport const RESTORE_SERVICE_DETAIL = 'RESTORE_SERVICE_DETAIL';\n\nexport const PAYMENT_ADD_PAYMENTS_RESUME = 'PAYMENT_ADD_PAYMENTS_RESUME';\nexport const PAYMENT_SHOW_COUPON = 'PAYMENT_SHOW_COUPON';\nexport const PAYMENT_GENERATE_UUID = 'PAYMENT_GENERATE_UUID';\nexport const PAYMENT_UUID_LOADING = 'PAYMENT_UUID_LOADING';\nexport const PAYMENT_UUID_SUCCESS = 'PAYMENT_UUID_SUCCESS';\nexport const PAYMENT_UUID_CLEAR = 'PAYMENT_UUID_CLEAR';\nexport const PAYMENT_ORIGIN = 'PAYMENT_ORIGIN';\nexport const PAYMENT_STATUS = 'PAYMENT_STATUS';\nexport const PAYMENT_ERROR = 'PAYMENT_ERROR';\nexport const COUPON_SERVICE_LOADING = 'COUPON_SERVICE_LOADING';\nexport const COUPON_SERVICE_SUCCESS = 'COUPON_SERVICE_SUCCESS';\nexport const COUPON_SERVICE_ERROR = 'COUPON_SERVICE_ERROR';\nexport const CLEAR_COUPON_SERVICE = 'CLEAR_COUPON_SERVICE';\nexport const ADD_COUPON_SERVICE_SUCCESS = 'ADD_COUPON_SERVICE_SUCCESS';\nexport const PAYMENT_GET_SERVICES_SUCCESS = 'PAYMENT_GET_SERVICES_SUCCESS';\nexport const PAYMENT_GET_SERVICES_ERROR = 'PAYMENT_GET_SERVICES_ERROR';\nexport const PAYMENT_GET_SERVICES_LOADING = 'PAYMENT_GET_SERVICES_LOADING';\nexport const DELETE_COUPON_SERVICE_SUCCESS = 'DELETE_COUPON_SERVICE_SUCCESS';\nexport const DELETE_COUPON_SERVICE_ERROR = 'DELETE_COUPON_SERVICE_ERROR';\nexport const DELETE_COUPON_SERVICE_LOADING = 'DELETE_COUPON_SERVICE_LOADING';\nexport const PAYMENT_GET_SERVICE_PRICE_LOADING = 'PAYMENT_GET_SERVICE_PRICE_LOADING';\nexport const PAYMENT_GET_SERVICE_PRICE_SUCCESS = 'PAYMENT_GET_SERVICE_PRICE_SUCCESS';\nexport const PAYMENT_GET_SERVICE_PRICE_ERROR = 'PAYMENT_GET_SERVICE_PRICE_ERROR';\nexport const CLEAR_SERVICE_PRICE = 'CLEAR_SERVICE_PRICE';\nexport const CLEAR_TOTALS = 'CLEAR_TOTALS';\n\nexport const COMPONENT_ERROR = 'COMPONENT_ERROR';\n\nexport const REQUEST_SERVICE_STEP = 'REQUEST_SERVICE_STEP';\nexport const REQUEST_SERVICE_UPDATE = 'REQUEST_SERVICE_UPDATE';\nexport const REQUEST_SERVICE_UPDATE_LOADING = 'REQUEST_SERVICE_UPDATE_LOADING';\nexport const REQUEST_SERVICE_CLEAR = 'REQUEST_SERVICE_CLEAR';\nexport const REQUEST_SERVICE_SERVICE = 'REQUEST_SERVICE_SERVICE';\nexport const REQUEST_SERVICE_VALIDATE = 'REQUEST_SERVICE_VALIDATE';\nexport const REQUEST_SERVICE_CATEGORY = 'REQUEST_SERVICE_CATEGORY';\nexport const REQUEST_SERVICE_LABOR = 'REQUEST_SERVICE_LABOR';\nexport const REQUEST_SERVICE_SHOP = 'REQUEST_SERVICE_SHOP';\n\nexport const GET_CATEGORIES_LOADING = 'GET_CATEGORIES_LOADING';\nexport const GET_CATEGORIES_SUCCESS = 'GET_CATEGORIES_SUCCESS';\nexport const GET_CATEGORIES_ERROR = 'GET_CATEGORIES_ERROR';\n\nexport const GET_CATEGORY_LOADING = 'GET_CATEGORY_LOADING';\nexport const GET_CATEGORY_SUCCESS = 'GET_CATEGORY_SUCCESS';\nexport const GET_CATEGORY_ERROR = 'GET_CATEGORY_ERROR';\n\nexport const GET_LABORS_WITHOUT_CATEGORY_LOADING = 'GET_LABORS_WITHOUT_CATEGORY_LOADING';\nexport const GET_LABORS_WITHOUT_CATEGORY_SUCCESS = 'GET_LABORS_WITHOUT_CATEGORY_SUCCESS';\nexport const GET_LABORS_WITHOUT_CATEGORY_ERROR = 'GET_LABORS_WITHOUT_CATEGORY_ERROR';\n\nexport const TRACKING_SERVICE_LOADING = 'TRACKING_SERVICE_LOADING';\nexport const TRACKING_SERVICE_SUCCESS = 'TRACKING_SERVICE_SUCCESS';\nexport const TRACKING_SERVICE_ERROR = 'TRACKING_SERVICE_ERROR';\nexport const TRACKING_SERVICE_CLEAR = 'TRACKING_SERVICE_CLEAR';\nexport const TRACKING_SET_MAP = 'TRACKING_SET_MAP';\n\nexport const GET_SHOPS_LOADING = 'GET_SHOPS_LOADING';\nexport const GET_SHOPS_SUCCESS = 'GET_SHOPS_SUCCESS';\nexport const GET_SHOPS_ERROR = 'GET_SHOPS_ERROR';\nexport const GET_SHOP_AGREEMENT_LOADING = 'GET_SHOP_AGREEMENT_LOADING';\nexport const GET_SHOP_AGREEMENT_SUCCESS = 'GET_SHOP_AGREEMENT_SUCCESS';\nexport const GET_SHOP_AGREEMENT_ERROR = 'GET_SHOP_AGREEMENT_ERROR';\nexport const CLEAR_SHOP_AGREEMENT = 'CLEAR_SHOP_AGREEMENT';\n\nexport const VEHICLE_GET_BRANDS_LOADING = 'GET_BRANDS_LOADING';\nexport const VEHICLE_GET_BRANDS_SUCCESS = 'GET_BRANDS_SUCCESS';\nexport const VEHICLE_GET_BRANDS_ERROR = 'GET_BRANDS_ERROR';\n\nexport const GET_ALFRED_SCHEDULE_LOADING = 'GET_ALFRED_SCHEDULE_LOADING';\nexport const GET_ALFRED_SCHEDULE_SUCCESS = 'GET_ALFRED_SCHEDULE_SUCCESS';\nexport const GET_ALFRED_SCHEDULE_ERROR = 'GET_ALFRED_SCHEDULE_ERROR';\n\nexport const VEHICLE_GET_TYPES_LOADING = 'GET_TYPES_LOADING';\nexport const VEHICLE_GET_TYPES_SUCCESS = 'GET_TYPES_SUCCESS';\nexport const VEHICLE_GET_TYPES_ERROR = 'GET_TYPES_ERROR';\n","import { find, orderBy } from 'lodash';\nimport { constants } from '@alfred-co/alfred-react-components';\n\nconst { SERVICE_STATUS, TRANSPORT_LABORS_SLUG } = constants;\nconst {\n IN_PROGRESS,\n COMPLETED,\n REQUESTED,\n TO_BE_PAID\n} = SERVICE_STATUS;\n\nexport function unifyTransport( serviceLabors ) {\n const {\n paymentLabors,\n transportPrice,\n transportDiscount\n } = serviceLabors.reduce( ( result, item ) => {\n const { discount, price, labor } = item;\n const { slug } = labor;\n if( TRANSPORT_LABORS_SLUG.includes( slug ) ) {\n return {\n ...result,\n transportPrice : result.transportPrice + Number( price ),\n transportDiscount : result.transportDiscount + Number( discount )\n };\n }\n return {\n ...result,\n paymentLabors : [ ...result.paymentLabors, item ]\n };\n }, { paymentLabors: [], transportPrice: 0, transportDiscount: 0 });\n\n return { paymentLabors, transportPrice, transportDiscount };\n}\n\nexport function sortServicesByScheduleDateDescendent( services ) {\n return orderBy( services, [ ( service ) => Date.parse( service.scheduleDate ) ], [ 'desc' ] );\n}\n\nexport function sortServicesByStateHierarchy( services ) {\n const sortedServicesByDate = sortServicesByScheduleDateDescendent( services );\n return orderBy( sortedServicesByDate, [ ( service ) => ( service.state === IN_PROGRESS ),\n ( service ) => ( service.state === REQUESTED ) ], [ 'desc', 'desc' ] );\n}\n\nexport function sortServicesFromToPayToCompleted( services ) {\n const sortedServicesByDate = sortServicesByScheduleDateDescendent( services );\n return orderBy( sortedServicesByDate, [\n ( service ) => (\n service.state === TO_BE_PAID\n && service.payingCustomer?.uuid === service.user.uuid\n ),\n ( service ) => (\n service.state === COMPLETED\n && !service.isPaid\n && service.payingCustomer?.uuid === service.user.uuid\n )\n ], [ 'desc', 'desc' ] );\n}\n\nexport function findServiceLabor( labors, labor ) {\n const findLaborWithPrice = labors?.laborsWithPrice && find( labors.laborsWithPrice,\n ( l ) => l.slug === labor );\n const findLaborWithOutPrice = labors?.laborsWithOutPrice && find( labors.laborsWithOutPrice,\n ( l ) => l.slug === labor );\n\n const findLabor = findLaborWithPrice || findLaborWithOutPrice;\n const laborWithOptions = findLabor && findLabor.config?.data?.options;\n let serviceLabor = findLabor && [ { labor: findLabor } ];\n if( laborWithOptions ) {\n let checkedInitialItems = {};\n checkedInitialItems = Object.keys( findLabor.config.data.options ).reduce(\n ( result, option ) => {\n const items = result;\n items[ option ] = false;\n return items;\n }, {}\n );\n serviceLabor = [ { labor: findLabor, data: checkedInitialItems } ];\n }\n\n return serviceLabor;\n}\n","export default __webpack_public_path__ + \"static/media/visa.f361d963.svg\";","export default __webpack_public_path__ + \"static/media/mastercard.17882eaf.svg\";","export default __webpack_public_path__ + \"static/media/amex.e4186e84.svg\";","import visaIcon from '../assets/icons/visa.svg';\nimport mastercardIcon from '../assets/icons/mastercard.svg';\nimport amexIcon from '../assets/icons/amex.svg';\n\n\nexport function sortPaymentMethodsBySelected( paymentMethods ) {\n return paymentMethods.sort( ( paymentMethod1, paymentMethod2 ) => (\n // eslint-disable-next-line no-nested-ternary\n paymentMethod1.selected === paymentMethod2.selected\n ? 0\n : paymentMethod1.selected\n ? -1\n : 1\n ) );\n}\n\nexport function getCardIcon( paymentMethod ) {\n let selectedIcon;\n switch ( paymentMethod.brand ) {\n case 'VISA':\n selectedIcon = visaIcon;\n break;\n case 'MASTERCARD':\n selectedIcon = mastercardIcon;\n break;\n case 'AMEX':\n selectedIcon = amexIcon;\n break;\n default:\n break;\n }\n return selectedIcon;\n}\n\nexport function getPaymentMethodsList( elements ) {\n return elements?.reduce( ( method, paymentMethod ) => {\n const {\n key,\n object,\n icon,\n cardNumber\n } = paymentMethod;\n method.push({\n key,\n object,\n icon,\n name : '****'.concat( cardNumber )\n });\n return method;\n }, [] );\n}\n","import { sortServicesByStateHierarchy } from '../../helpers/serviceHelper';\nimport { sortPaymentMethodsBySelected } from '../../helpers/paymentMethodsHelper';\nimport * as actionTypes from '../actions/types';\n\nconst INITIAL_STATE = {\n session : undefined,\n user : undefined,\n isUpdatingUserLoading : false,\n updatingUserError : '',\n updatedUserSuccess : false,\n isAuthenticatedUserLoading : false,\n authenticatedUserError : '',\n authenticatedUserSuccess : false,\n isSignInLoading : false,\n signInError : '',\n signInSuccess : false,\n isSignUpLoading : false,\n signUpError : '',\n signUpSuccess : false,\n isLoginResendCodeLoading : false,\n loginResendCodeError : '',\n loginResendCodeSuccess : false,\n isSignOutLoading : false,\n signOutError : '',\n signOutSuccess : false,\n isConfirmationCodeVerifiedLoading : false,\n confirmationCodeVerifiedError : '',\n confirmationCodeVerified : false,\n sendRecoveryMailError : '',\n sendRecoveryMailLoading : false,\n sendRecoveryMailSuccess : false,\n submitNewPasswordError : '',\n submitNewPasswordLoading : false,\n submitNewPasswordSuccess : false,\n userError : '',\n vehicles : undefined,\n areVehiclesLoading : false,\n vehiclesError : '',\n relatedVehicles : undefined,\n areRelatedVehiclesLoading : false,\n relatedVehiclesError : '',\n vehicle : undefined,\n isVehicleLoading : false,\n vehicleError : '',\n deleteVehicleSuccess : false,\n isDeletingVehicle : false,\n deleteVehicleError : '',\n addresses : undefined,\n areAddressesLoading : false,\n addressesError : '',\n deleteAddressSuccess : false,\n isDeletingAddress : false,\n deleteAddressError : '',\n servicesHistory : undefined,\n servicesHistoryCount : 0,\n servicesHistoryNext : undefined,\n servicesHistoryPrevious : undefined,\n isServicesHistoryLoading : false,\n servicesHistoryError : '',\n currentServices : undefined,\n areCurrentServicesLoading : false,\n currentServicesError : '',\n membership : undefined,\n isMembershipLoading : false,\n membershipError : '',\n service : undefined,\n isServiceLoading : false,\n serviceError : '',\n membershipInvoices : undefined,\n areMembershipInvoicesLoading : false,\n membershipInvoicesError : '',\n selectedPaymentMethod : undefined,\n isSelectedPaymentMethodLoading : false,\n selectedPaymentMethodError : '',\n paymentMethods : undefined,\n arePaymentMethodsLoading : false,\n paymentMethodsError : '',\n isAddingPaymentMethod : false,\n addPaymentMethodSuccess : false,\n addPaymentMethodError : '',\n isSelectingPaymentMethod : false,\n selectPaymentMethodError : undefined,\n selectPaymentMethodSuccess : false,\n deletePaymentMethodSuccess : false,\n isDeletingPaymentMethod : false,\n deletePaymentMethodError : '',\n coupon : undefined,\n couponError : '',\n couponLoading : false,\n serviceInvoice : false,\n isServiceInvoiceLoading : false,\n serviceInvoiceError : '',\n outstandingBalance : false,\n isAddingAddress : false,\n addAddressError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n /* ---- AUTH ----- */\n case actionTypes.RESTORE_SIGN_IN:\n return {\n ...state,\n isSignInLoading : false,\n signInError : '',\n signInSuccess : false,\n isLoginResendCodeLoading : false,\n loginResendCodeError : '',\n loginResendCodeSuccess : false\n };\n case actionTypes.SIGN_IN_LOADING:\n return {\n ...state,\n isSignInLoading : action.payload,\n signInError : ''\n };\n case actionTypes.SIGN_IN_ERROR:\n return {\n ...state,\n isSignInLoading : false,\n signInError : action.payload\n };\n case actionTypes.SIGN_IN_SUCCESS:\n return {\n ...state,\n isSignInLoading : false,\n signInError : '',\n signInSuccess : true\n };\n case actionTypes.RESTORE_SIGN_UP:\n return {\n ...state,\n isSignUpLoading : false,\n signUpError : '',\n signUpSuccess : false\n };\n case actionTypes.SIGN_UP_LOADING:\n return {\n ...state,\n isSignUpLoading : action.payload,\n signUpError : ''\n };\n case actionTypes.SIGN_UP_ERROR:\n return {\n ...state,\n isSignUpLoading : false,\n signUpError : action.payload\n };\n case actionTypes.SIGN_UP_SUCCESS:\n return {\n ...state,\n isSignUpLoading : false,\n signUpError : '',\n signUpSuccess : true\n };\n case actionTypes.SIGN_UP_LOADING_RETRY:\n return {\n ...state,\n isSignUpLoadingRetry : action.payload,\n signUpErrorRetry : '',\n signUpSuccessRetry : false\n };\n case actionTypes.SIGN_UP_ERROR_RETRY:\n return {\n ...state,\n isSignUpLoadingRetry : false,\n signUpErrorRetry : action.payload,\n signUpSuccessRetry : false\n };\n case actionTypes.SIGN_UP_SUCCESS_RETRY:\n return {\n ...state,\n isSignUpLoadingRetry : false,\n signUpErrorRetry : '',\n signUpSuccessRetry : true\n };\n case actionTypes.SIGN_OUT_LOADING:\n return {\n ...state,\n isSignOutLoading : action.payload,\n signOutError : ''\n };\n case actionTypes.SIGN_OUT_ERROR:\n return {\n ...state,\n isSignOutLoading : false,\n signOutError : action.payload\n };\n case actionTypes.SIGN_OUT_SUCCESS:\n return {\n ...INITIAL_STATE,\n isSignOutLoading : false,\n signOutError : '',\n signOutSuccess : true\n };\n case actionTypes.RESTORE_CONFIRMATION_CODE_VERIFIED:\n return {\n ...state,\n isConfirmationCodeVerifiedLoading : false,\n confirmationCodeVerifiedError : '',\n confirmationCodeVerified : false\n };\n case actionTypes.GET_VERIFICATION_CODE_LOADING:\n return {\n ...state,\n isConfirmationCodeVerifiedLoading : action.payload,\n confirmationCodeVerifiedError : '',\n confirmationCodeVerified : false\n };\n case actionTypes.GET_VERIFICATION_CODE_ERROR:\n return {\n ...state,\n isConfirmationCodeVerifiedLoading : false,\n confirmationCodeVerifiedError : action.payload\n };\n case actionTypes.GET_VERIFICATION_CODE_SUCCESS:\n return {\n ...state,\n isConfirmationCodeVerifiedLoading : false,\n confirmationCodeVerifiedError : '',\n confirmationCodeVerified : true\n };\n case actionTypes.SIGN_IN_RESEND_CODE_LOADING:\n return {\n ...state,\n isLoginResendCodeLoading : action.payload,\n loginResendCodeError : ''\n };\n case actionTypes.SIGN_IN_RESEND_CODE_ERROR:\n return {\n ...state,\n isLoginResendCodeLoading : false,\n logloginResendCodeError : action.payload\n };\n case actionTypes.SIGN_IN_RESEND_CODE_SUCCESS:\n return {\n ...state,\n isLoginResendCodeLoading : false,\n loginResendCodeError : '',\n loginResendCodeSuccess : true\n };\n case actionTypes.GET_AUTHENTICATED_USER_LOADING:\n return {\n ...state,\n isAuthenticatedUserLoading : true,\n authenticatedUserError : ''\n };\n case actionTypes.GET_AUTHENTICATED_USER_SUCCESS:\n return {\n ...state,\n ...action.payload,\n outstandingBalance : action.payload.user.outstandingBalance,\n isAuthenticatedUserLoading : false,\n authenticatedUserError : '',\n authenticatedUserSuccess : true\n };\n case actionTypes.GET_AUTHENTICATED_USER_ERROR:\n return {\n ...state,\n authenticatedUserError : action.payload,\n isAuthenticatedUserLoading : false,\n authenticatedUserSuccess : false\n };\n case actionTypes.SEND_RECOVERY_MAIL_LOADING:\n return {\n ...state,\n sendRecoveryMailLoading : true,\n sendRecoveryMailError : '',\n sendRecoveryMailSuccess : false\n };\n case actionTypes.SEND_RECOVERY_MAIL_SUCCESS:\n return {\n ...state,\n sendRecoveryMailLoading : false,\n sendRecoveryMailError : '',\n sendRecoveryMailSuccess : true\n };\n case actionTypes.SEND_RECOVERY_MAIL_ERROR:\n return {\n ...state,\n sendRecoveryMailError : action.payload,\n sendRecoveryMailLoading : false,\n sendRecoveryMailSuccess : false\n };\n case actionTypes.SUBMIT_NEW_PASSWORD_LOADING:\n return {\n ...state,\n submitNewPasswordLoading : true,\n submitNewPasswordError : '',\n submitNewPasswordSuccess : false\n };\n case actionTypes.SUBMIT_NEW_PASSWORD_SUCCESS:\n return {\n ...state,\n submitNewPasswordLoading : false,\n submitNewPasswordError : '',\n submitNewPasswordSuccess : true\n };\n case actionTypes.SUBMIT_NEW_PASSWORD_ERROR:\n return {\n ...state,\n submitNewPasswordError : action.payload,\n submitNewPasswordLoading : false,\n submitNewPasswordSuccess : false\n };\n case actionTypes.RESTORE_RECOVER_PASSWORD:\n return {\n ...state,\n submitNewPasswordError : '',\n submitNewPasswordLoading : false,\n submitNewPasswordSuccess : false,\n sendRecoveryMailError : '',\n sendRecoveryMailLoading : false,\n sendRecoveryMailSuccess : false\n };\n /* ---- USER ----- */\n case actionTypes.RESTORE_UPDATE_USER:\n return {\n ...state,\n isUpdatingUserLoading : false,\n updatingUserError : '',\n updatedUserSuccess : false\n };\n case actionTypes.UPDATE_USER_LOADING:\n return {\n ...state,\n isUpdatingUserLoading : true,\n updatingUserError : '',\n updatedUserSuccess : false\n };\n case actionTypes.UPDATE_USER_ERROR:\n return {\n ...state,\n isUpdatingUserLoading : false,\n updatingUserError : action.payload,\n updatedUserSuccess : false\n };\n case actionTypes.UPDATE_USER_SUCCESS:\n return {\n ...state,\n isUpdatingUserLoading : false,\n updatingUserError : '',\n updatedUserSuccess : true,\n user : {\n ...state.user,\n ...action.payload\n },\n outstandingBalance : action.payload.outstandingBalance\n };\n /* ---- CURRENT SERVICES ----- */\n case actionTypes.GET_CURRENT_SERVICES_LOADING:\n return {\n ...state,\n areCurrentServicesLoading : true,\n currentServicesError : ''\n };\n case actionTypes.GET_CURRENT_SERVICES_SUCCESS: {\n action.payload.forEach( ( s ) => {\n // eslint-disable-next-line no-param-reassign\n s.scheduleDate = new Date( s.scheduleDate );\n });\n\n return {\n ...state,\n currentServices : sortServicesByStateHierarchy( action.payload ),\n areCurrentServicesLoading : false,\n currentServicesError : ''\n };\n }\n case actionTypes.GET_CURRENT_SERVICES_ERROR:\n return {\n ...state,\n areCurrentServicesLoading : false,\n currentServicesError : action.payload\n };\n case actionTypes.ADD_CURRENT_SERVICE: {\n // Check https://eslint.org/docs/rules/no-case-declarations for understanding\n // braces in this case\n const newService = action.payload;\n newService.scheduleDate = new Date( newService.scheduleDate );\n const newCurrentServices = state.currentServices\n ? [ ...state.currentServices, newService ]\n : [ newService ];\n\n return {\n ...state,\n currentServices : newCurrentServices\n };\n }\n case actionTypes.UPDATE_CURRENT_SERVICE: {\n const newDate = new Date( action.payload.scheduleDate );\n return {\n ...state,\n currentServices : state.currentServices?.map(\n ( ( service ) => ( service.id === action.payload.id\n ? { ...action.payload, scheduleDate: newDate }\n : service ) )\n )\n };\n }\n case actionTypes.REMOVE_CURRENT_SERVICE: {\n return {\n ...state,\n currentServices : state.currentServices?.filter(\n ( ( service ) => service.uuid !== action.payload )\n )\n };\n }\n\n /* ---- SERVICES HISTORY ----- */\n case actionTypes.GET_SERVICES_HISTORY_LOADING:\n return {\n ...state,\n isServicesHistoryLoading : true,\n servicesHistoryError : ''\n };\n case actionTypes.GET_SERVICES_HISTORY_SUCCESS: {\n const servicesHistory = action.payload.results.map( ( service ) => ({\n ...service,\n scheduleDate : new Date( service.scheduleDate ),\n user : state.user\n }) );\n\n return {\n ...state,\n servicesHistory,\n isServicesHistoryLoading : false,\n servicesHistoryError : '',\n servicesHistoryCount : action.payload.count,\n servicesHistoryNext : action.payload.next,\n servicesHistoryPrevious : action.payload.previous\n };\n }\n case actionTypes.GET_SERVICES_HISTORY_ERROR:\n return {\n ...state,\n isServicesHistoryLoading : false,\n servicesHistoryError : action.payload\n };\n /* ---- RELATED VEHICLES ----- */\n case actionTypes.GET_RELATED_VEHICLES_LOADING:\n return {\n ...state,\n areRelatedVehiclesLoading : true,\n relatedVehiclesError : ''\n };\n case actionTypes.GET_RELATED_VEHICLES_SUCCESS:\n return {\n ...state,\n relatedVehicles : action.payload,\n areRelatedVehiclesLoading : false,\n relatedVehiclesError : ''\n };\n case actionTypes.GET_RELATED_VEHICLES_ERROR:\n return {\n ...state,\n areRelatedVehiclesLoading : false,\n relatedVehiclesError : action.payload\n };\n case actionTypes.ADD_RELATED_VEHICLE:\n return {\n ...state,\n relatedVehicles : [ ...state.relatedVehicles, action.payload ]\n };\n /* ---- VEHICLES ----- */\n case actionTypes.GET_VEHICLES_LOADING:\n return {\n ...state,\n areVehiclesLoading : true,\n vehiclesError : ''\n };\n case actionTypes.GET_VEHICLES_SUCCESS:\n return {\n ...state,\n vehicles : action.payload,\n areVehiclesLoading : false,\n vehiclesError : ''\n };\n case actionTypes.GET_VEHICLES_ERROR:\n return {\n ...state,\n areVehiclesLoading : false,\n vehiclesError : action.payload\n };\n /* --- VEHICLE ---*/\n case actionTypes.GET_VEHICLE_LOADING:\n return {\n ...state,\n isVehicleLoading : true,\n vehicleError : ''\n };\n case actionTypes.GET_VEHICLE_SUCCESS:\n return {\n ...state,\n isVehicleLoading : false,\n vehicleError : '',\n vehicle : action.payload\n };\n case actionTypes.GET_VEHICLE_ERROR:\n return {\n ...state,\n isVehicleLoading : false,\n vehicleError : action.payload\n };\n case actionTypes.RESTORE_VEHICLE_DETAIL:\n return {\n ...state,\n isVehicleLoading : false,\n vehicleError : '',\n vehicle : undefined\n };\n case actionTypes.DELETE_VEHICLE_LOADING:\n return {\n ...state,\n isDeletingVehicle : true,\n deleteVehicleError : ''\n };\n case actionTypes.DELETE_VEHICLE_SUCCESS:\n return {\n ...state,\n deleteVehicleSuccess : true,\n isDeletingVehicle : false,\n deleteVehicleError : ''\n };\n case actionTypes.DELETE_VEHICLE_ERROR:\n return {\n ...state,\n isDeletingVehicle : false,\n deleteVehicleError : action.payload\n };\n /* ---- ADDRESSES ----- */\n case actionTypes.GET_ADDRESSES_LOADING:\n return {\n ...state,\n areAddressesLoading : true,\n addressesError : ''\n };\n case actionTypes.GET_ADDRESSES_SUCCESS:\n return {\n ...state,\n addresses : action.payload,\n areAddressesLoading : false,\n addressesError : ''\n };\n case actionTypes.GET_ADDRESSES_ERROR:\n return {\n ...state,\n areAddressesLoading : false,\n addressesError : action.payload\n };\n case actionTypes.ADD_ADDRESS_LOADING:\n return {\n ...state,\n isAddingAddress : true,\n addAddressError : ''\n };\n case actionTypes.ADD_ADDRESS:\n return {\n ...state,\n addresses : [ ...state.addresses, action.payload ],\n isAddingAddress : false,\n addAddressError : ''\n };\n case actionTypes.ADD_ADDRESS_ERROR:\n return {\n ...state,\n isAddingAddress : false,\n addAddressError : action.payload\n };\n case actionTypes.DELETE_ADDRESS_LOADING:\n return {\n ...state,\n isDeletingAddress : true,\n deleteAddressError : ''\n };\n case actionTypes.DELETE_ADDRESS_SUCCESS:\n return {\n ...state,\n deleteAddressSuccess : true,\n isDeletingAddress : false,\n deleteAddressError : ''\n };\n case actionTypes.DELETE_ADDRESS_ERROR:\n return {\n ...state,\n isDeletingAddress : false,\n deleteAddressError : action.payload\n };\n /* ---- MEMBERSHIP ----- */\n case actionTypes.CREATE_MEMBERSHIP_LOADING:\n return {\n ...state,\n isMembershipLoading : true,\n membershipError : ''\n };\n case actionTypes.CREATE_MEMBERSHIP_SUCCESS: {\n const newMembership = action.payload;\n\n // Parse dates of new membership\n newMembership.expirationDate = new Date( newMembership.expirationDate );\n // nextBillingDate is undefined for non-renewable memberships\n newMembership.nextBillingDate = newMembership.nextBillingDate\n ? new Date( newMembership.nextBillingDate )\n : undefined;\n\n return {\n ...state,\n membership : action.payload,\n isMembershipLoading : false,\n membershipError : '',\n user : {\n ...state.user,\n memberships : [ ...state.user.memberships, newMembership ]\n }\n };\n }\n case actionTypes.CREATE_MEMBERSHIP_ERROR:\n return {\n ...state,\n isMembershipLoading : false,\n membershipError : action.payload\n };\n /* ---- SERVICE ----- */\n case actionTypes.CREATE_SERVICE_LOADING:\n return {\n ...state,\n isServiceLoading : true,\n serviceError : ''\n };\n case actionTypes.CREATE_SERVICE_SUCCESS:\n return {\n ...state,\n service : action.payload,\n isServiceLoading : false,\n serviceError : ''\n };\n case actionTypes.CREATE_SERVICE_ERROR:\n return {\n ...state,\n isServiceLoading : false,\n serviceError : action.payload\n };\n case actionTypes.CLEAN_SERVICE_ERROR:\n return {\n ...state,\n serviceError : ''\n };\n /* ---- SERVICE INVOICE ----- */\n case actionTypes.RESTORE_SERVICE_INVOICE:\n return {\n ...state,\n isServiceInvoiceLoading : false,\n serviceInvoiceError : '',\n serviceInvoice : false\n };\n case actionTypes.CREATE_SERVICE_INVOICE_LOADING:\n return {\n ...state,\n isServiceInvoiceLoading : true,\n serviceInvoiceError : ''\n };\n case actionTypes.CREATE_SERVICE_INVOICE_SUCCESS:\n return {\n ...state,\n serviceInvoice : action.payload,\n isServiceInvoiceLoading : false,\n serviceInvoiceError : ''\n };\n case actionTypes.CREATE_SERVICE_INVOICE_ERROR:\n return {\n ...state,\n isServiceInvoiceLoading : false,\n serviceInvoiceError : action.payload\n };\n /* ---- MEMBERSHIP INVOICES ----- */\n case actionTypes.GET_MEMBERSHIP_INVOICES_LOADING:\n return {\n ...state,\n areMembershipInvoicesLoading : true,\n membershipInvoicesError : ''\n };\n case actionTypes.GET_MEMBERSHIP_INVOICES_SUCCESS: {\n const newMembershipInvoices = action.payload.map( ( invoice ) => ({\n ...invoice,\n createdAt : new Date( invoice.createdAt ),\n updatedAt : new Date( invoice.updatedAt )\n }) );\n\n return {\n ...state,\n membershipInvoices : newMembershipInvoices,\n areMembershipInvoicesLoading : false,\n membershipInvoicesError : ''\n };\n }\n case actionTypes.GET_MEMBERSHIP_INVOICES_ERROR:\n return {\n ...state,\n areMembershipInvoicesLoading : false,\n membershipInvoicesError : action.payload\n };\n /* ---- PAYMENT METHODS ----- */\n case actionTypes.GET_SELECTED_PAYMENT_METHOD_LOADING:\n return {\n ...state,\n isSelectedPaymentMethodLoading : true,\n selectedPaymentMethodError : ''\n };\n case actionTypes.GET_SELECTED_PAYMENT_METHOD_SUCCESS:\n return {\n ...state,\n selectedPaymentMethod : action.payload,\n isSelectedPaymentMethodLoading : false,\n selectedPaymentMethodError : ''\n };\n case actionTypes.GET_SELECTED_PAYMENT_METHOD_ERROR:\n return {\n ...state,\n isSelectedPaymentMethodLoading : false,\n selectedPaymentMethodError : action.payload\n };\n case actionTypes.ADD_PAYMENT_METHOD_LOADING:\n return {\n ...state,\n addPaymentMethodSuccess : false,\n selectPaymentMethodSuccess : false,\n isAddingPaymentMethod : true,\n addPaymentMethodError : ''\n };\n case actionTypes.ADD_PAYMENT_METHOD_SUCCESS: {\n const newPaymentMethods = [ ...state.paymentMethods, action.payload ];\n const parsedPaymentMethods = newPaymentMethods.map( ( selectedPaymentMethod ) => ({\n ...selectedPaymentMethod,\n selected : selectedPaymentMethod.uuid === action.payload.uuid\n }) );\n\n return {\n ...state,\n paymentMethods : sortPaymentMethodsBySelected( parsedPaymentMethods ),\n addPaymentMethodSuccess : true,\n isAddingPaymentMethod : false,\n addPaymentMethodError : '',\n selectedPaymentMethod : action.payload\n };\n }\n case actionTypes.ADD_PAYMENT_METHOD_ERROR:\n return {\n ...state,\n addPaymentMethodSuccess : false,\n isAddingPaymentMethod : false,\n addPaymentMethodError : action.payload\n };\n case actionTypes.GET_PAYMENT_METHODS_LOADING:\n return {\n ...state,\n selectPaymentMethodSuccess : false,\n arePaymentMethodsLoading : true,\n paymentMethodsError : ''\n };\n case actionTypes.GET_PAYMENT_METHODS_SUCCESS:\n return {\n ...state,\n paymentMethods : sortPaymentMethodsBySelected( action.payload ),\n arePaymentMethodsLoading : false,\n paymentMethodsError : ''\n };\n case actionTypes.GET_PAYMENT_METHODS_ERROR:\n return {\n ...state,\n arePaymentMethodsLoading : false,\n paymentMethodsError : action.payload\n };\n case actionTypes.SELECT_PAYMENT_METHOD_LOADING:\n return {\n ...state,\n addPaymentMethodSuccess : false,\n selectPaymentMethodSuccess : false,\n isSelectingPaymentMethod : true,\n selectPaymentMethodError : ''\n };\n case actionTypes.SELECT_PAYMENT_METHOD_SUCCESS: {\n // Change the paymentMethods by selecting the new one and sorting them by \"selected\" attribute\n const parsedPaymentMethods = state.paymentMethods.map( ( selectedPaymentMethod ) => ({\n ...selectedPaymentMethod,\n selected : selectedPaymentMethod.uuid === action.payload.uuid\n }) );\n\n return {\n ...state,\n paymentMethods : parsedPaymentMethods,\n selectedPaymentMethod : action.payload,\n selectPaymentMethodSuccess : true,\n isSelectingPaymentMethod : false,\n selectPaymentMethodError : ''\n };\n }\n case actionTypes.SELECT_PAYMENT_METHOD_ERROR:\n return {\n ...state,\n isSelectingPaymentMethod : false,\n selectPaymentMethodSuccess : false,\n selectPaymentMethodError : action.payload\n };\n case actionTypes.DELETE_PAYMENT_METHOD_LOADING:\n return {\n ...state,\n isDeletingPaymentMethod : true,\n deletePaymentMethodError : ''\n };\n case actionTypes.DELETE_PAYMENT_METHOD_SUCCESS:\n return {\n ...state,\n deletePaymentMethodSuccess : true,\n isDeletingPaymentMethod : false,\n deletePaymentMethodError : ''\n };\n case actionTypes.DELETE_PAYMENT_METHOD_ERROR:\n return {\n ...state,\n isDeletingPaymentMethod : false,\n deletePaymentMethodError : action.payload\n };\n /* ---- COUPON ----- */\n case actionTypes.CREATE_COUPON_LOADING:\n return {\n ...state,\n coupon : undefined,\n couponError : '',\n couponLoading : true\n };\n case actionTypes.CREATE_COUPON_SUCCESS:\n return {\n ...state,\n coupon : action.payload,\n couponError : '',\n couponLoading : false\n };\n case actionTypes.CREATE_COUPON_ERROR:\n return {\n ...state,\n coupon : undefined,\n couponError : action.payload,\n couponLoading : false\n };\n /* ---- DEFAULT CASE ----- */\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n cities : undefined,\n areCitiesLoading : false,\n citiesError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n // ---- GET CITIES ----- //\n case actionTypes.GET_CITIES_LOADING:\n return {\n ...state,\n areCitiesLoading : true,\n citiesError : ''\n };\n case actionTypes.GET_CITIES_SUCCESS:\n return {\n ...state,\n cities : action.payload,\n areCitiesLoading : false,\n citiesError : ''\n };\n case actionTypes.GET_CITIES_ERROR:\n return {\n ...state,\n areCitiesLoading : false,\n citiesError : action.payload\n };\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n labors : undefined,\n areLaborsLoading : false,\n laborsError : '',\n laborDetail : undefined,\n isLaborDetailLoading : true,\n laborDetailError : '',\n laborsWithoutCategory : undefined,\n areLaborsWithoutCategoryLoading : false,\n laborsWithoutCategoryError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n // ---- GET LABORS ----- //\n case actionTypes.GET_LABORS_LOADING:\n return {\n ...state, areLaborsLoading : true, laborsError : ''\n };\n case actionTypes.GET_LABORS_SUCCESS:\n return {\n ...state, labors : action.payload, areLaborsLoading : false, laborsError : ''\n };\n case actionTypes.GET_LABORS_ERROR:\n return { ...state, areLaborsLoading: false, laborsError: action.payload };\n case actionTypes.GET_LABOR_DETAIL_LOADING:\n return { ...state, isLaborDetailLoading: true, laborDetailError: '' };\n case actionTypes.GET_LABOR_DETAIL_SUCCESS:\n return {\n ...state,\n isLaborDetailLoading : false,\n laborDetailError : '',\n laborDetail : action.payload\n };\n case actionTypes.GET_LABOR_DETAIL_ERROR:\n return {\n ...state,\n isLaborDetailLoading : false,\n laborDetailError : action.payload\n };\n case actionTypes.RESTORE_SERVICE_DETAIL:\n return {\n ...state,\n isLaborDetailLoading : true,\n laborDetailError : '',\n laborDetail : undefined\n };\n case actionTypes.GET_LABORS_WITHOUT_CATEGORY_LOADING:\n return {\n ...state,\n areLaborsWithoutCategoryLoading : true,\n laborsWithoutCategoryError : ''\n };\n case actionTypes.GET_LABORS_WITHOUT_CATEGORY_SUCCESS:\n return {\n ...state,\n laborsWithoutCategory : action.payload,\n areLaborsWithoutCategoryLoading : false,\n laborsWithoutCategoryError : ''\n };\n case actionTypes.GET_LABORS_WITHOUT_CATEGORY_ERROR:\n return {\n ...state,\n areLaborsWithoutCategoryLoading : false,\n laborsWithoutCategoryError : action.payload\n };\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n merchant : undefined,\n isMerchantLoading : false,\n merchantError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n // ---- GET MERCHANT ----- //\n case actionTypes.GET_MERCHANT_LOADING:\n return {\n ...state,\n isMerchantLoading : true,\n merchantError : ''\n };\n case actionTypes.GET_MERCHANT_SUCCESS:\n return {\n ...state,\n merchant : action.payload,\n isMerchantLoading : false,\n merchantError : ''\n };\n case actionTypes.GET_MERCHANT_ERROR:\n return {\n ...state,\n isMerchantLoading : false,\n merchantError : action.payload\n };\n default:\n return state;\n }\n};\n","import { constants } from '@alfred-co/alfred-react-components';\nimport * as actionTypes from '../actions/types';\n\n\nconst { TRANSPORT_LABORS_SLUG } = constants;\n\nconst INITIAL_STATE = {\n paymentItems : [ ],\n showCoupon : false,\n paymentUUID : undefined,\n isUuidLoading : false,\n origin : { type: '', value: '', id: '' },\n status : undefined,\n paymentError : undefined,\n couponError : undefined,\n coupon : undefined,\n activeCoupons : [],\n isCouponLoading : false,\n isServicesLoading : false,\n servicesError : undefined,\n total : 0,\n discounts : 0,\n laborDiscount : 0,\n advance : 0,\n serviceState : undefined,\n transport : undefined,\n isTransportLoading : false,\n transportError : undefined,\n transportPrice : 0,\n transportDiscount : 0,\n subTotal : 0,\n servicePrice : 0,\n isServicePriceLoading : false,\n servicePriceError : '',\n couponsAssigned : 0\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.PAYMENT_ADD_PAYMENTS_RESUME:\n return {\n ...state,\n originCase : action.payload.originCase,\n paymentItems : action.payload.items,\n origin : action.payload.service,\n showCoupon : true\n };\n case actionTypes.PAYMENT_SHOW_COUPON:\n return {\n ...state,\n showCoupn : action.payload\n };\n case actionTypes.PAYMENT_GENERATE_UUID:\n return {\n ...state,\n paymentUUID : action.payload\n };\n case actionTypes.PAYMENT_UUID_LOADING:\n return {\n ...state,\n isUuidLoading : true,\n paymentError : ''\n };\n case actionTypes.PAYMENT_UUID_SUCCESS:\n return {\n ...state,\n isUuidLoading : false\n };\n case actionTypes.PAYMENT_UUID_CLEAR:\n return {\n ...state,\n paymentUUID : undefined,\n paymentItems : [],\n origin : { type: '', value: '', id: '' },\n paymentError : ''\n };\n case actionTypes.PAYMENT_STATUS:\n return {\n ...state,\n status : action.payload\n };\n case actionTypes.PAYMENT_ERROR:\n return {\n ...state,\n paymentError : action.payload,\n isUuidLoading : false\n };\n case actionTypes.COUPON_SERVICE_LOADING:\n return {\n ...state,\n isCouponLoading : true\n };\n case actionTypes.COUPON_SERVICE_SUCCESS:\n return {\n ...state,\n isCouponLoading : false,\n coupon : action.payload,\n couponError : undefined\n };\n case actionTypes.COUPON_SERVICE_ERROR:\n return {\n ...state,\n isCouponLoading : false,\n couponError : action.payload\n };\n case actionTypes.CLEAR_COUPON_SERVICE:\n return {\n ...state,\n isCouponLoading : false,\n coupon : undefined,\n couponError : ''\n };\n case actionTypes.ADD_COUPON_SERVICE_SUCCESS:\n return {\n ...state,\n isCouponLoading : false,\n couponsAssigned : state.couponsAssigned + 1\n };\n case actionTypes.PAYMENT_GET_SERVICES_LOADING:\n return {\n ...state,\n isServicesLoading : true,\n servicesError : undefined\n };\n case actionTypes.PAYMENT_GET_SERVICES_SUCCESS:\n return {\n ...state,\n isServicesLoading : false,\n paymentItems : action.payload.paymentItems?.filter(\n ({ labor }) => !TRANSPORT_LABORS_SLUG.includes( labor.slug )\n ),\n total : action.payload.total?.total,\n discounts : action.payload.total?.discounts,\n laborDiscount : action.payload.total?.laborDiscount,\n advance : action.payload.total?.advance,\n subTotal : action.payload.total?.subtotal,\n coupon : undefined,\n serviceState : action.payload.state,\n transportPrice : action.payload.total?.transportPrice,\n transportDiscount : action.payload.total?.transportDiscount\n };\n case actionTypes.PAYMENT_GET_SERVICES_ERROR:\n return {\n ...state,\n isServicesLoading : false,\n servicesError : action.payload\n };\n case actionTypes.PAYMENT_GET_SERVICE_PRICE_LOADING:\n return {\n ...state,\n isServicePriceLoading : true,\n servicePriceError : ''\n };\n case actionTypes.PAYMENT_GET_SERVICE_PRICE_SUCCESS:\n return {\n ...state,\n isServicePriceLoading : false,\n servicePrice : action.payload\n };\n case actionTypes.PAYMENT_GET_SERVICE_PRICE_ERROR:\n return {\n ...state,\n isServicePriceLoading : false,\n servicePriceError : action.payload\n };\n case actionTypes.CLEAR_SERVICE_PRICE:\n return {\n ...state,\n isServicePriceLoading : false,\n servicePrice : 0,\n servicePriceError : '',\n couponsAssigned : 0\n };\n case actionTypes.CLEAR_TOTALS:\n return {\n ...state,\n isServicePriceLoading : false,\n servicePrice : 0,\n servicePriceError : '',\n couponsAssigned : 0,\n total : 0,\n discounts : 0,\n laborDiscount : 0,\n advance : 0,\n transportPrice : 0,\n transportDiscount : 0,\n subTotal : 0\n };\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n activeStepNumber : 0,\n serviceToRequest : undefined,\n stepValidations : [ false, false, false ],\n selectedCategory : '',\n serviceToRequestIsLoading : false,\n selectedLabor : '',\n selectedShop : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.REQUEST_SERVICE_UPDATE_LOADING:\n return {\n ...state,\n serviceToRequestIsLoading : true\n };\n case actionTypes.REQUEST_SERVICE_UPDATE:\n return {\n ...state,\n ...action.payload,\n serviceToRequestIsLoading : false\n };\n case actionTypes.REQUEST_SERVICE_CLEAR:\n return {\n ...INITIAL_STATE\n };\n case actionTypes.REQUEST_SERVICE_STEP:\n return {\n ...state,\n activeStepNumber : action.payload\n };\n case actionTypes.REQUEST_SERVICE_SERVICE:\n return {\n ...state,\n serviceToRequest : action.payload\n };\n case actionTypes.REQUEST_SERVICE_VALIDATE:\n return {\n ...state,\n stepValidations : action.payload\n };\n case actionTypes.REQUEST_SERVICE_CATEGORY:\n return {\n ...state,\n selectedCategory : action.payload\n };\n case actionTypes.REQUEST_SERVICE_LABOR:\n return {\n ...state,\n selectedLabor : action.payload\n };\n case actionTypes.REQUEST_SERVICE_SHOP:\n return {\n ...state,\n selectedShop : action.payload\n };\n\n\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n daysOff : undefined,\n areDaysOffLoading : false,\n daysOffError : '',\n isBlockedSlotsLoading : false,\n blockedSlots : [],\n blockedSlotsError : '',\n alfredSchedule : null,\n isAlfredScheduleLoading : false,\n alfredScheduleError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.GET_DAYSOFF_LOADING:\n return {\n ...state,\n areDaysOffLoading : true,\n daysOffError : ''\n };\n case actionTypes.GET_DAYSOFF_SUCCESS:\n return {\n ...state,\n daysOff : action.payload,\n areDaysOffLoading : false,\n daysOffError : ''\n };\n case actionTypes.GET_DAYSOFF_ERROR:\n return {\n ...state,\n areDaysOffLoading : false,\n daysOffError : action.payload\n };\n case actionTypes.GET_BLOCKED_SLOTS_LOADING:\n return {\n ...state,\n isBlockedSlotsLoading : true,\n blockedSlotsError : ''\n };\n case actionTypes.GET_BLOCKED_SLOTS_SUCCESS:\n return {\n ...state,\n blockedSlots : action.payload,\n isBlockedSlotsLoading : false,\n blockedSlotsError : ''\n };\n case actionTypes.GET_BLOCKED_SLOTS_ERROR:\n return {\n ...state,\n isBlockedSlotsLoading : false,\n blockedSlotsError : action.payload\n };\n case actionTypes.GET_ALFRED_SCHEDULE_LOADING:\n return {\n ...state,\n isAlfredScheduleLoading : true,\n alfredScheduleError : ''\n };\n case actionTypes.GET_ALFRED_SCHEDULE_SUCCESS:\n return {\n ...state,\n alfredSchedule : action.payload,\n isAlfredScheduleLoading : false,\n alfredScheduleError : ''\n };\n case actionTypes.GET_ALFRED_SCHEDULE_ERROR:\n return {\n ...state,\n isAlfredScheduleLoading : false,\n alfredScheduleError : action.payload\n };\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n categories : undefined,\n areCategoriesLoading : false,\n categoriesError : '',\n category : undefined,\n isCategoryLoading : false,\n categoryError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.GET_CATEGORIES_LOADING:\n return {\n ...state,\n areCategoriesLoading : true,\n categoriesError : ''\n };\n case actionTypes.GET_CATEGORIES_SUCCESS:\n return {\n ...state,\n categories : action.payload,\n areCategoriesLoading : false,\n categoriesError : ''\n };\n case actionTypes.GET_CATEGORIES_ERROR:\n return {\n ...state,\n areCategoriesLoading : false,\n categoriesError : action.payload\n };\n case actionTypes.GET_CATEGORY_LOADING:\n return {\n ...state,\n isCategoryLoading : true,\n categoryError : ''\n };\n case actionTypes.GET_CATEGORY_SUCCESS:\n return {\n ...state,\n category : action.payload,\n isCategoryLoading : false,\n categoryError : ''\n };\n case actionTypes.GET_CATEGORY_ERROR:\n return {\n ...state,\n isCategoryLoading : false,\n categoryError : action.payload\n };\n\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n tracking : undefined,\n isTrackingLoading : false,\n trackingError : '',\n map : undefined,\n lastEvent : undefined,\n showMap : false,\n activeLabor : undefined\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.TRACKING_SERVICE_LOADING:\n return {\n ...state,\n isTrackingLoading : true,\n trackingError : ''\n };\n case actionTypes.TRACKING_SERVICE_SUCCESS:\n return {\n ...state,\n tracking : action.payload.trackingData,\n lastEvent : action.payload.lastEvent,\n activeLabor : action.payload.activeLabor,\n isTrackingLoading : false,\n trackingError : ''\n };\n case actionTypes.TRACKING_SERVICE_ERROR:\n return {\n ...state,\n isTrackingLoading : false,\n trackingError : action.payload\n };\n case actionTypes.TRACKING_SET_MAP:\n return {\n ...state,\n map : action.payload.map,\n showMap : action.payload.showMap\n };\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n shops : undefined,\n areShopsLoading : false,\n shopsError : '',\n shopAgreement : undefined,\n isShopAgreementLoading : false,\n shopAgreementError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.GET_SHOPS_LOADING:\n return {\n ...state,\n areShopsLoading : true,\n shopsError : ''\n };\n case actionTypes.GET_SHOPS_SUCCESS:\n return {\n ...state,\n shops : action.payload,\n areShopsLoading : false,\n shopsError : ''\n };\n case actionTypes.GET_SHOPS_ERROR:\n return {\n ...state,\n areShopsLoading : false,\n shopsError : action.payload\n };\n case actionTypes.GET_SHOP_AGREEMENT_LOADING:\n return {\n ...state,\n isShopAgreementLoading : true,\n shopAgreementError : ''\n };\n case actionTypes.GET_SHOP_AGREEMENT_SUCCESS:\n return {\n ...state,\n shopAgreement : action.payload,\n isShopAgreementLoading : false,\n shopAgreementError : ''\n };\n case actionTypes.GET_SHOP_AGREEMENT_ERROR:\n return {\n ...state,\n isShopAgreementLoading : false,\n shopAgreementError : action.payload\n };\n case actionTypes.CLEAR_SHOP_AGREEMENT:\n return {\n ...state,\n isShopAgreementLoading : false,\n shopAgreement : undefined,\n shopAgreementError : ''\n };\n\n default:\n return state;\n }\n};\n","import * as actionTypes from '../actions/types';\n\n\nconst INITIAL_STATE = {\n brands : undefined,\n areBrandsLoading : false,\n brandsError : '',\n isCreateVehicleLoading : false,\n createVehicleError : '',\n createdVehicle : undefined,\n models : undefined,\n isModelsLoading : false,\n modelsError : '',\n vehicleTypes : undefined,\n areVehicleTypesLoading : false,\n vehicleTypesError : ''\n};\n\nexport default ( state = INITIAL_STATE, action ) => {\n switch ( action.type ) {\n case actionTypes.VEHICLE_GET_BRANDS_LOADING:\n return {\n ...state,\n areBrandsLoading : true,\n brandsError : ''\n };\n case actionTypes.VEHICLE_GET_BRANDS_SUCCESS:\n return {\n ...state,\n brands : action.payload,\n areBrandsLoading : false,\n brandsError : '',\n createVehicleError : ''\n };\n case actionTypes.VEHICLE_GET_BRANDS_ERROR:\n return {\n ...state,\n areBrandsLoading : false,\n brandsError : action.payload\n };\n case actionTypes.CREATE_VEHICLE_LOADING:\n return {\n ...state,\n isCreateVehicleLoading : true,\n createVehicleError : ''\n };\n case actionTypes.CREATE_VEHICLE_SUCCESS:\n return {\n ...state,\n isCreateVehicleLoading : false,\n createdVehicle : action.payload,\n createVehicleError : ''\n };\n case actionTypes.CREATE_VEHICLE_ERROR:\n return {\n ...state,\n isCreateVehicleLoading : false,\n createVehicleError : action.payload\n };\n case actionTypes.VEHICLE_GET_MODELS_LOADING:\n\n return {\n ...state,\n isModelsLoading : true,\n modelsError : ''\n };\n\n case actionTypes.VEHICLE_GET_MODELS_SUCCESS:\n return {\n ...state,\n models : action.payload,\n isModelsLoading : false,\n modelsError : ''\n };\n case actionTypes.VEHICLE_GET_MODELS_ERROR:\n return {\n ...state,\n isModelsLoading : false,\n modelsError : action.payload\n };\n case actionTypes.VEHICLE_GET_TYPES_LOADING:\n\n return {\n ...state,\n areVehicleTypesLoading : true,\n vehicleTypesError : ''\n };\n\n case actionTypes.VEHICLE_GET_TYPES_SUCCESS:\n return {\n ...state,\n vehicleTypes : action.payload,\n areVehicleTypesLoading : false,\n vehicleTypesError : ''\n };\n case actionTypes.VEHICLE_GET_TYPES_ERROR:\n return {\n ...state,\n areVehicleTypesLoading : false,\n vehicleTypesError : action.payload\n };\n\n\n default:\n return state;\n }\n};\n","import { combineReducers } from 'redux';\n\nimport userReducer from './userReducer';\nimport cityReducer from './cityReducer';\nimport laborReducer from './laborReducer';\nimport merchantReducer from './merchantReducer';\nimport paymentReducer from './paymentReducer';\nimport requestReducer from './requestReducer';\nimport daysOffReducer from './daysOffReducer';\nimport categoryReducer from './categoryReducer';\nimport trackingReducer from './trackingReducer';\nimport shopReducer from './shopReducer';\nimport vehicleReducer from './vehicleReducer';\n\n\nexport default combineReducers({\n userReducer,\n cityReducer,\n laborReducer,\n merchantReducer,\n paymentReducer,\n requestReducer,\n daysOffReducer,\n categoryReducer,\n trackingReducer,\n shopReducer,\n vehicleReducer\n});\n","import { createStore, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport logger from 'redux-logger';\nimport unauthorizedMiddleware from './middlewares/unauthorizedMiddleware';\nimport reducers from './reducers';\nimport { bugReporterReduxEnhancer } from '../utils/bugReportUtils';\n\nlet middleware = [ thunk, unauthorizedMiddleware ];\nlet composeEnhancers = compose;\n\n// Redux logger and bug reporter shouldn't be enabled simultaneously,\n// as the payload is too large to be sent.\nif( process.env.NODE_ENV === 'development' && process.env.REACT_APP_DEBUG_MODE === 'true' ) {\n middleware = [ ...middleware, logger ];\n composeEnhancers = ( typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ) || compose;\n}\n\nconst store = createStore(\n reducers, // All reducers\n composeEnhancers(\n applyMiddleware( ...middleware ),\n bugReporterReduxEnhancer\n )\n);\n\nexport default store;\n","import { SIGN_OUT_SUCCESS, SIGN_IN_ERROR } from '../actions/types';\nimport { REFRESH_TOKEN_EXPIRED } from '../errorCodes';\n\nexport default ( store ) => ( next ) => ( action ) => {\n const result = next( action );\n if(\n action.type !== SIGN_IN_ERROR\n && action.error\n && action.error.code === REFRESH_TOKEN_EXPIRED\n ) {\n store.dispatch({ type: SIGN_OUT_SUCCESS });\n }\n return result;\n};\n","// eslint-disable-next-line import/prefer-default-export\nexport const REFRESH_TOKEN_EXPIRED = 'NotAuthorizedException';\n","export function getPaymentProviderTimeoutError( detail ) {\n const error = new Error();\n error.detail = detail;\n error.message = 'Error conectando a proveedor de pagos';\n error.name = 'PaymentProviderTimeoutError';\n if( Error.captureStackTrace ) {\n Error.captureStackTrace( error );\n }\n throw error;\n}\n\nexport async function getGeneralHandleError( response ) {\n const error = new Error();\n\n error.detail = {\n statusText : response.statusText,\n status : response.status,\n url : response.url\n };\n error.status = response.status;\n\n if( response.body ) {\n const body = await response.json();\n error.body = body;\n }\n\n switch ( response.status ) {\n case 404:\n error.message = 'El recurso buscado no se encuentra o no está disponible.';\n error.name = 'ResourceNotFoundError';\n break;\n case ( 412 || 422 ):\n error.message = 'Los datos suministrados no son correctos.';\n error.name = 'IncorrectDataError';\n break;\n case ( 403 || 401 ):\n error.message = 'No tiene permisos suficientes para llevar a cabo esta solicitud';\n error.name = 'NoPermissionError';\n break;\n default:\n error.message = 'Ocurrió un error procesando tu solicitud, favor comunícate con el administrador o inténtalo más tarde.';\n error.name = 'GenericError';\n break;\n }\n if( Error.captureStackTrace ) {\n Error.captureStackTrace( error );\n }\n throw error;\n}\n","import { Auth } from 'aws-amplify';\nimport { getGeneralHandleError } from '../../utils/apiErrors';\n\n\nasync function getHeaders() {\n const session = await Auth.currentSession();\n const accessToken = session.getAccessToken();\n const jwt = accessToken.getJwtToken();\n const headers = new Headers();\n headers.append( 'Content-Type', 'application/json' );\n headers.append( 'Authorization', `Bearer ${ jwt }` );\n return headers;\n}\n\nconst baseUrl = process.env.REACT_APP_FETCH_URL;\nconst trackingUrl = process.env.REACT_APP_FETCH_TRACKING_URL;\n\nexport async function get( path, keepUrl ) {\n const fullUrl = keepUrl ? path : `${ baseUrl }/${ path }`;\n const headers = await getHeaders();\n const response = await fetch( fullUrl, { method: 'GET', headers });\n if( response.ok ) {\n return response.json();\n }\n return getGeneralHandleError( response );\n}\n\nexport async function post( path, body ) {\n const fullUrl = `${ baseUrl }/${ path }`;\n const headers = await getHeaders();\n const response = await fetch( fullUrl, { method: 'POST', headers, body });\n if( response.ok ) {\n return response.json();\n }\n return getGeneralHandleError( response );\n}\n\nexport async function patch( path, body ) {\n const fullUrl = `${ baseUrl }/${ path }`;\n const headers = await getHeaders();\n const response = await fetch( fullUrl, { method: 'PATCH', headers, body });\n if( response.ok ) {\n return response.json();\n }\n return getGeneralHandleError( response );\n}\n\nexport async function getAllData( url, keepUrl ) {\n const json = await get( url, keepUrl );\n let { results } = json;\n if( json.next ) {\n const nextJson = await getAllData( json.next, true );\n results = [ ...results, ...nextJson.results ];\n }\n json.results = results;\n return json;\n}\n\nexport async function del( path, body ) {\n const fullUrl = `${ baseUrl }/${ path }`;\n const headers = await getHeaders();\n const response = await fetch( fullUrl, { method: 'DELETE', headers, body });\n if( response.ok ) {\n return response.json();\n }\n return getGeneralHandleError( response );\n}\n\n\nexport async function publicGet( path, keepUrl ) {\n const fullUrl = keepUrl ? path : `${ trackingUrl }/${ path }`;\n const response = await fetch( fullUrl, { method: 'GET' });\n if( response.ok ) {\n return response.json();\n }\n return getGeneralHandleError( response );\n}\n","import { Auth } from 'aws-amplify';\nimport { constants } from '@alfred-co/alfred-react-components';\n\nimport userService from './UserService';\n\nconst { DATA_PROCESSING_AUTHORIZATION_URL } = constants;\nconst termsAndConditionsUrl = process.env.REACT_APP_TERMS_AND_CONDITIONS_URL;\n\n\nasync function getUser() {\n const fetchedUser = await userService.getUser();\n return { ...fetchedUser };\n}\n\nasync function resendConfirmationCode( email ) {\n return Auth.resendSignUp( email );\n}\n\nasync function signIn( email, password ) {\n return Auth.signIn({ username: email, password });\n}\n\nasync function getSession() {\n return Auth.currentAuthenticatedUser();\n}\n\nasync function signUp( email, password, allianceId ) {\n const attributes = {\n 'custom:terms_conditions' : termsAndConditionsUrl,\n 'custom:data_treatment' : DATA_PROCESSING_AUTHORIZATION_URL\n };\n\n // If this function is called with an allianceId it should\n // be persisted in Cognito.\n if( allianceId ) {\n attributes[ 'custom:alliance_id' ] = allianceId;\n }\n // eslint-disable-next-line no-undef\n const recaptchaToken = await grecaptcha.execute( process.env.REACT_APP_RECAPTCHA_SITE_KEY, { action: 'signUp' });\n\n return Auth.signUp({\n password,\n username : email,\n attributes,\n validationData : {\n recaptchaToken\n }\n });\n}\n\nasync function confirmVerificationCode( email, authCode ) {\n return Auth.confirmSignUp( email, authCode );\n}\n\nasync function sendRecoveryMail( email ) {\n return Auth.forgotPassword( email );\n}\n\nasync function submitNewPassword(\n email,\n authCode,\n password\n) {\n return Auth.forgotPasswordSubmit( email, authCode, password );\n}\n\nasync function signOut( ) {\n return Auth.signOut();\n}\n\nexport default {\n getUser,\n resendConfirmationCode,\n signIn,\n getSession,\n signUp,\n confirmVerificationCode,\n sendRecoveryMail,\n submitNewPassword,\n signOut\n};\n","import {\n get,\n post,\n patch,\n del\n} from './BaseService';\n\nasync function createPaymentMethod( client, paymentInfo, acceptanceToken ) {\n const body = {\n transactionToken : paymentInfo.token,\n paymentMethodType : paymentInfo.type,\n brand : paymentInfo.brand,\n name : paymentInfo.cardHolder.substring( 0, 100 ),\n cardNumber : paymentInfo.lastFour,\n acceptanceToken\n };\n return post( `clients/${ client.uuid }/payment-methods`, JSON.stringify( body ) );\n}\n\nasync function getSelectedPaymentMethods( client ) {\n return get( `clients/${ client.uuid }/payment-methods?selected=true` );\n}\n\nasync function getPaymentMethods( client ) {\n return get( `clients/${ client.uuid }/payment-methods` );\n}\n\nasync function selectPaymentMethod( client, paymentMethodToSelect ) {\n return patch( `clients/${ client.uuid }/payment-methods/${ paymentMethodToSelect.uuid }`, JSON.stringify({ selected: true }) );\n}\n\nasync function generateUuidPayment( serviceId ) {\n return post( `payment/service/${ serviceId }/get-reference ` );\n}\n\nasync function paymentStatus( serviceId ) {\n return post( `payment/service/${ serviceId }/payment-result` );\n}\n\nasync function deletePaymentMethod( client, paymentMethodToDelete ) {\n return del( `clients/${ client.uuid }/payment-methods/${ paymentMethodToDelete.uuid }` );\n}\n\nexport default {\n createPaymentMethod,\n deletePaymentMethod,\n getSelectedPaymentMethods,\n getPaymentMethods,\n selectPaymentMethod,\n generateUuidPayment,\n paymentStatus\n};\n","import { constants } from '@alfred-co/alfred-react-components';\nimport { get, post } from './BaseService';\n\nconst { SERVICE_STATUS } = constants;\nconst {\n IN_PROGRESS,\n TO_BE_CONFIRMED,\n REQUESTED,\n COMPLETED,\n CANCELED,\n TO_BE_PAID\n} = SERVICE_STATUS;\n\nasync function createService( service ) {\n return post( `vehicles/${ service.vehicle.uuid }/services`, JSON.stringify( service ) );\n}\n\nasync function getServiceHistory( client, limit, page ) {\n if( page ) {\n return get( page.split( '/v2/' )[ 1 ] );\n }\n return get( `clients/${ client.uuid }/services?ordering=-schedule_date${ !limit ? '' : `&limit=${ limit }` }&expand=service_labors&state=${ COMPLETED },${ CANCELED },${ TO_BE_PAID }&fields=isPaid,uuid,scheduleDate,vehicle,state,startAddress,endAddress,serviceLabors` );\n}\n\nasync function getCurrentServices( client ) {\n return get( `clients/${ client.uuid }/services?state=${ IN_PROGRESS },${ TO_BE_CONFIRMED },${ REQUESTED }&fields=id,uuid,scheduleDate,state,vehicle` );\n}\n\nasync function getServiceDetail( client, serviceId ) {\n return get( `clients/${ client.uuid }/services/${ serviceId }?fields=service_labors` );\n}\n\nasync function payService( serviceId ) {\n return post( `payment/service/${ serviceId }` );\n}\n\nasync function getServiceInvoice( serviceId, invoiceId ) {\n return get( `services/${ serviceId }/invoices/${ invoiceId }` );\n}\n\nasync function getServicePrice( serviceLabors, typeVehicle ) {\n return post( 'services/calculate-full-price', JSON.stringify({ serviceLabors, typeVehicle }) );\n}\n\nexport default {\n createService,\n getServiceHistory,\n getCurrentServices,\n getServiceDetail,\n payService,\n getServiceInvoice,\n getServicePrice\n};\n","import PropTypes from 'prop-types';\n\nexport const INTERFACE_ADD_TO_CART = {\n items : PropTypes.arrayOf( PropTypes.shape({\n item_name : PropTypes.string,\n item_id : PropTypes.string,\n price : PropTypes.string,\n item_brand : PropTypes.string,\n item_category : PropTypes.string,\n item_variant : PropTypes.string,\n item_list_name : PropTypes.string,\n item_list_id : PropTypes.string,\n quantity : PropTypes.string\n }) )\n};\n\nexport const INTERFACE_CART = {\n items : PropTypes.arrayOf( PropTypes.shape({\n item_name : PropTypes.string,\n item_id : PropTypes.string,\n price : PropTypes.string,\n item_brand : PropTypes.string,\n item_category : PropTypes.string,\n item_variant : PropTypes.string,\n quantity : PropTypes.string\n }) )\n};\n\nexport const INTERFACE_PROMOTION = {\n items : PropTypes.arrayOf( PropTypes.shape({\n promotion_id : PropTypes.string,\n promotion_name : PropTypes.string,\n creative_name : PropTypes.string,\n creative_slot : PropTypes.string,\n location_id : PropTypes.string\n }) )\n};\n\nexport const INTERFACE_ITEMS = {\n items : PropTypes.arrayOf( PropTypes.shape({\n item_name : PropTypes.string,\n item_id : PropTypes.string,\n price : PropTypes.string,\n item_brand : PropTypes.string,\n item_category : PropTypes.string,\n item_variant : PropTypes.string,\n item_list_name : PropTypes.string,\n item_list_id : PropTypes.string,\n index : PropTypes.number,\n quantity : PropTypes.string\n }) )\n};\n\nexport const INTERFACE_PURCHASE = {\n data : PropTypes.objectOf( PropTypes.shape(\n {\n value : PropTypes.string,\n tax : PropTypes.string,\n shipping : PropTypes.string,\n affiliation : PropTypes.string,\n transaction_id : PropTypes.string,\n coupon : PropTypes.string,\n items : INTERFACE_CART\n }\n ) )\n};\n","import { trackEvent } from '../utils/userTrackerUtils';\nimport {\n INTERFACE_ADD_TO_CART,\n INTERFACE_CART\n} from './gtmProptypes';\n\nconst gtmIsActive = () => process.env.REACT_APP_GA_TRACKING_ID;\nconst mixpanelIsActive = () => process.env.REACT_APP_MIXPANEL_TOKEN;\n\nconst getUserUuid = () => localStorage.getItem( 'userUuid' );\n\nconst vpv = ( data ) => {\n const {\n eventParams,\n userProperties,\n customerType\n } = data;\n const event = {\n event : 'vpv',\n event_params : eventParams,\n user_properties : userProperties,\n customer_type : customerType\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addToCart = ( items ) => {\n const event = {\n event : 'add_to_cart',\n event_params : {\n items,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\naddToCart.propTypes = INTERFACE_ADD_TO_CART;\n\nconst deleteService = ( items ) => {\n const event = {\n event : 'delete_service',\n event_params : {\n items,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\ndeleteService.propTypes = INTERFACE_CART;\n\nconst addPaymentInfo = ( paymentType = 'Tarjeta de crédito', items = [] ) => {\n const event = {\n event : 'add_payment_info',\n ecommerce : {\n payment_type : paymentType,\n items,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\naddPaymentInfo.propTypes = INTERFACE_CART;\n\nconst signUp = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'sign_up',\n event_params : {\n ...eventParams\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst login = ( data ) => {\n const {\n eventParams,\n user,\n customerType\n } = data;\n const event = {\n event : 'login',\n event_params : {\n ...eventParams,\n action : 'Clic en Iniciar sesión'\n },\n user_properties : {\n ...user\n },\n customer_type : customerType\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst logout = ( data ) => {\n const {\n eventParams,\n user,\n customerType\n } = data;\n const event = {\n event : 'logout',\n event_params : {\n ...eventParams,\n action : 'Clic en cerrar sesión'\n },\n user_properties : {\n ...user\n },\n customer_type : customerType\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst search = ( data ) => {\n const {\n eventParams,\n user,\n customerType\n } = data;\n const event = {\n event : 'search',\n event_params : eventParams,\n user_properties : {\n ...user\n },\n customer_type : customerType\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToSignup = ( ) => {\n const event = {\n event : 'go_to_signup'\n };\n if( mixpanelIsActive() ) trackEvent( event.event );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToLogin = ( ) => {\n const event = {\n event : 'go_to_login'\n };\n if( mixpanelIsActive() ) trackEvent( event.event );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToRecoverAccount = ( ) => {\n const event = {\n event : 'go_to_forgot_password'\n };\n if( mixpanelIsActive() ) trackEvent( event.event );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst checkTermsAndConditionsBox = ( ) => {\n const event = {\n event : 'check_terms_and_conditions_box'\n };\n if( mixpanelIsActive() ) trackEvent( event.event );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToRequestService = ( data ) => {\n const event = {\n event : 'go_to_request_service',\n event_params : {\n user_uuid : getUserUuid(),\n ...data?.event_params\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToCurrentService = ( ) => {\n const event = {\n event : 'go_to_current_service',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToViewAddresses = ( ) => {\n if( window.dataLayer?.at( -1 ).event === 'go_to_view_addresses' ) return;\n const event = {\n event : 'go_to_view_addresses',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToCart = ( ) => {\n const event = {\n event : 'go_to_cart',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToVehicle = ( ) => {\n const event = {\n event : 'go_to_vehicle',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst deleteVehicle = ( ) => {\n const event = {\n event : 'delete_vehicle',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToPreviousService = ( ) => {\n const event = {\n event : 'go_to_previous_service',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst pay = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'pay',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst changeSelectedVehicle = ( ) => {\n const event = {\n event : 'change_selected_vehicle',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToAddVehicle = ( data ) => {\n if( window.dataLayer?.at( -1 ).event === 'go_to_add_vehicle' ) return;\n const {\n eventParams\n } = data;\n const event = {\n event : 'go_to_add_vehicle',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToCategory = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'go_to_category',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst selectService = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'select_service',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst orderBy = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'order_by',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst selectAlly = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'select_ally',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst removeOption = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'remove_option',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addOption = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'add_option',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addComments = ( ) => {\n const event = {\n event : 'add_comments',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst checkDeliverAnotherAddress = ( ) => {\n const event = {\n event : 'check_deliver_another_address',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToChangeDeliveryAddress = ( ) => {\n const event = {\n event : 'go_to_change_delivery_address',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToAddCoupon = ( ) => {\n const event = {\n event : 'go_to_add_coupon',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addCoupon = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'add_coupon',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToSummary = ( ) => {\n const event = {\n event : 'go_to_summary',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst selectPaymentMethod = () => {\n const event = {\n event : 'select_payment_method',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst continueAddVehicle = ( ) => {\n const event = {\n event : 'continue_add_vehicle',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addVehicle = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'add_vehicle',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst viewVehicleServices = ( ) => {\n const event = {\n event : 'view_vehicle_services',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst viewVehicleInfo = ( ) => {\n const event = {\n event : 'view_vehicle_info',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToAddAddress = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'go_to_add_address',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst continueAddAddress = ( ) => {\n const event = {\n event : 'continue_add_address',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addAddress = ( ) => {\n const event = {\n event : 'add_address',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst addPersonalInformation = ( ) => {\n const event = {\n event : 'add_personal_information',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToSetDateTime = ( ) => {\n const event = {\n event : 'go_to_set_datetime',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst changeDayDate = ( ) => {\n const event = {\n event : 'change_day_date',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\nconst selectTimeSlot = ( ) => {\n const event = {\n event : 'select_time_slot',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\nconst confirmTimeSlot = ( data ) => {\n const {\n eventParams\n } = data;\n const event = {\n event : 'confirm_time_slot',\n event_params : {\n ...eventParams,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst continueShopping = ( ) => {\n const event = {\n event : 'continue_shopping',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToDeleteService = ( ) => {\n const event = {\n event : 'go_to_delete_service',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goBack = ( page ) => {\n const event = {\n event : 'go_back',\n event_params : {\n page,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToHome = ( ) => {\n const event = {\n event : 'go_to_home',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToMyInfo = ( ) => {\n const event = {\n event : 'go_to_my_info',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToMyPaymentMethods = ( ) => {\n const event = {\n event : 'go_to_my_payment_methods',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToOtherPaymentMethods = ( ) => {\n const event = {\n event : 'go_to_other_payment_methods',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToPay = ( ) => {\n const event = {\n event : 'go_to_pay',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToSwitchVehicle = ( ) => {\n const event = {\n event : 'go_to_switch_vehicle',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToViewServices = ( ) => {\n const event = {\n event : 'go_to_view_services',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst goToOrderBy = ( ) => {\n const event = {\n event : 'go_to_order_by',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst switchVehicle = ( ) => {\n const event = {\n event : 'switch_vehicle',\n event_params : {\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst closeDialog = ( name ) => {\n const event = {\n event : 'close_dialog',\n event_params : {\n dialogue : name,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst onOpenLink = ( data ) => {\n if( window.dataLayer?.at( -1 ).event === 'on_open_link' ) return;\n const event = {\n event : 'on_open_link',\n event_params : {\n ...data,\n user_uuid : getUserUuid()\n }\n };\n if( mixpanelIsActive() ) trackEvent( event.event, event.event_params );\n if( gtmIsActive() ) window.dataLayer.push( event );\n};\n\nconst gtm = {\n vpv,\n addToCart,\n deleteService,\n addPaymentInfo,\n signUp,\n login,\n logout,\n search,\n goToSignup,\n goToLogin,\n goToRecoverAccount,\n checkTermsAndConditionsBox,\n goToRequestService,\n goToCurrentService,\n goToViewAddresses,\n goToCart,\n goToVehicle,\n deleteVehicle,\n goToPreviousService,\n pay,\n changeSelectedVehicle,\n goToAddVehicle,\n goToCategory,\n selectService,\n goToOrderBy,\n selectAlly,\n removeOption,\n addOption,\n addComments,\n checkDeliverAnotherAddress,\n goToChangeDeliveryAddress,\n goToAddCoupon,\n addCoupon,\n goToSummary,\n selectPaymentMethod,\n continueAddVehicle,\n addVehicle,\n viewVehicleServices,\n viewVehicleInfo,\n goToAddAddress,\n continueAddAddress,\n addAddress,\n addPersonalInformation,\n goToSetDateTime,\n changeDayDate,\n selectTimeSlot,\n confirmTimeSlot,\n continueShopping,\n goToDeleteService,\n goBack,\n goToHome,\n goToMyInfo,\n goToMyPaymentMethods,\n goToOtherPaymentMethods,\n goToPay,\n goToSwitchVehicle,\n goToViewServices,\n orderBy,\n switchVehicle,\n closeDialog,\n onOpenLink\n};\n\nexport default gtm;\n","import { constants } from '@alfred-co/alfred-react-components';\nimport couponService from '../../services/CouponService';\nimport {\n CREATE_COUPON_LOADING,\n CREATE_COUPON_SUCCESS,\n CREATE_COUPON_ERROR,\n COUPON_SERVICE_LOADING,\n COUPON_SERVICE_ERROR,\n COUPON_SERVICE_SUCCESS,\n ADD_COUPON_SERVICE_SUCCESS,\n PAYMENT_GET_SERVICES_SUCCESS,\n DELETE_COUPON_SERVICE_LOADING,\n DELETE_COUPON_SERVICE_SUCCESS,\n DELETE_COUPON_SERVICE_ERROR,\n CLEAR_COUPON_SERVICE\n} from '../types';\nimport { getServicePrice } from '../payment/paymentResumeAction';\nimport gtm from '../../../helpers/gtm';\n\nconst { PAYMENT_ORIGIN_CASE } = constants;\n\nexport function getTotals( servicePrice ) {\n return {\n total : {\n subtotal : servicePrice.subtotal,\n total : servicePrice.total,\n discounts : servicePrice.discounts,\n laborDiscount : servicePrice.laborDiscount,\n advance : servicePrice.advance,\n transportPrice : servicePrice.transportPrice,\n transportDiscount : servicePrice.transportDiscount\n }\n };\n}\n\nexport const createCoupon = ( coupon, couponType ) => async ( dispatch, getState ) => {\n try {\n dispatch({\n type : CREATE_COUPON_LOADING\n });\n const { user } = getState().userReducer;\n\n const fetchedCoupon = await couponService.createCoupon( user, coupon );\n if( fetchedCoupon\n && fetchedCoupon.baseCoupon\n && fetchedCoupon.baseCoupon.type === couponType ) {\n return dispatch({\n type : CREATE_COUPON_SUCCESS,\n payload : fetchedCoupon\n });\n }\n\n return dispatch({\n type : CREATE_COUPON_ERROR,\n payload : 'Invalid type of coupon'\n });\n }\n catch ( error ) {\n return dispatch({\n type : CREATE_COUPON_ERROR,\n payload : error.message,\n error\n });\n }\n};\n\nexport const resetCoupon = () => async ( dispatch ) => dispatch({\n type : CREATE_COUPON_SUCCESS,\n payload : undefined\n});\n\nfunction getCouponErrorMessage( error ) {\n switch ( error.status ) {\n case 400:\n return 'El cupón no es válido, sólo se puede redimir un cupón por servicio';\n case 404:\n return 'El cupón no es válido';\n case 409:\n return 'El cupón ya fue redimido previamente';\n case 412:\n return 'El cupón ya ha expirado';\n case 422:\n return 'No es posible aplicar cupones sobre servicios que ya han sido pagados';\n default:\n return 'Ocurrió un error inesperado, por favor vuelve a intentar';\n }\n}\n\nexport const addCouponToService = ( service, baseCoupon ) => async ( dispatch, getState ) => {\n try {\n dispatch({\n type : COUPON_SERVICE_LOADING\n });\n const { user } = getState().userReducer;\n\n const services = await couponService.addCouponToService( user, service, baseCoupon );\n\n dispatch({\n type : PAYMENT_GET_SERVICES_SUCCESS,\n payload : {\n ...services,\n paymentItems : services.serviceLabors\n }\n });\n\n return dispatch({\n type : ADD_COUPON_SERVICE_SUCCESS\n });\n }\n catch ( error ) {\n return dispatch({\n type : COUPON_SERVICE_ERROR,\n payload : getCouponErrorMessage( error ),\n error\n });\n }\n};\n\nexport const validateCoupon = ( coupon, couponType ) => async (\n dispatch,\n getState\n) => {\n try {\n dispatch({\n type : COUPON_SERVICE_LOADING\n });\n const { user } = getState().userReducer;\n const { paymentItems, origin, originCase } = getState().paymentReducer;\n\n const fetchedCoupon = await couponService.validateCoupon(\n user,\n coupon,\n couponType,\n origin.value\n );\n\n if( fetchedCoupon && fetchedCoupon.type === couponType ) {\n const serviceLabor = paymentItems.find(\n ( item ) => item?.labor?.slug?.toUpperCase() === fetchedCoupon?.data?.labor?.toUpperCase()\n );\n if( serviceLabor ) {\n if( originCase === PAYMENT_ORIGIN_CASE.REQUEST ) {\n dispatch({\n type : COUPON_SERVICE_SUCCESS,\n payload : fetchedCoupon\n });\n\n gtm.addCoupon({ eventParams: { success: true } });\n\n const paymentLabors = paymentItems.map( ( item ) => {\n if( item.labor.slug === serviceLabor.labor.slug ) {\n const labor = item;\n labor.coupon = { baseCoupon: fetchedCoupon };\n return labor;\n }\n return item;\n });\n\n const servicePriceWithCoupon = paymentLabors.map( ( item ) => {\n if( item.coupon ) {\n return {\n ...item,\n baseCoupon : { id: item.coupon.baseCoupon.id }\n };\n }\n return item;\n });\n\n await dispatch( getServicePrice( servicePriceWithCoupon ) );\n\n const { servicePrice } = getState().paymentReducer;\n\n const services = getTotals( servicePrice );\n\n return dispatch({\n type : PAYMENT_GET_SERVICES_SUCCESS,\n payload : {\n ...services,\n paymentItems : paymentLabors\n }\n });\n }\n\n if( origin.value ) {\n const baseCoupon = {\n baseCoupon : fetchedCoupon.id,\n serviceLabor : serviceLabor.id\n };\n await dispatch( addCouponToService( origin.value, baseCoupon ) );\n gtm.addCoupon({ eventParams: { success: true } });\n return dispatch({\n type : COUPON_SERVICE_SUCCESS,\n payload : fetchedCoupon\n });\n }\n }\n }\n gtm.addCoupon({ eventParams: { success: false } });\n return dispatch({\n type : COUPON_SERVICE_ERROR,\n payload : 'Este cupón no es válido para este tipo de servicio'\n });\n }\n catch ( error ) {\n gtm.addCoupon({ eventParams: { success: false } });\n return dispatch({\n type : COUPON_SERVICE_ERROR,\n payload : getCouponErrorMessage( error ),\n error\n });\n }\n};\n\nexport const deleteCouponInService = ( data ) => async ( dispatch, getState ) => {\n try {\n dispatch({\n type : DELETE_COUPON_SERVICE_LOADING\n });\n\n const { user } = getState().userReducer;\n const { origin, paymentItems } = getState().paymentReducer;\n\n if( data.coupon ) {\n const services = await couponService.deleteCouponInService( user, origin.value, data );\n\n dispatch({\n type : PAYMENT_GET_SERVICES_SUCCESS,\n payload : {\n ...services,\n paymentItems : services.serviceLabors\n }\n });\n }\n else {\n const paymentLabors = paymentItems.map( ( item ) => {\n if( item.id === data.serviceLabor ) {\n const serviceLabor = item;\n serviceLabor.coupon = null;\n return serviceLabor;\n }\n return item;\n });\n\n await dispatch( getServicePrice( paymentLabors ) );\n\n const { servicePrice } = getState().paymentReducer;\n\n const services = getTotals( servicePrice );\n dispatch({\n type : PAYMENT_GET_SERVICES_SUCCESS,\n payload : {\n ...services,\n paymentItems : paymentLabors\n }\n });\n }\n\n return dispatch({\n type : DELETE_COUPON_SERVICE_SUCCESS\n });\n }\n catch ( error ) {\n return dispatch({\n type : DELETE_COUPON_SERVICE_ERROR,\n payload : error.message,\n error\n });\n }\n};\n\nexport const clearCouponService = ( ) => async ( dispatch ) => (\n dispatch({\n type : CLEAR_COUPON_SERVICE\n })\n);\n","import { constants } from '@alfred-co/alfred-react-components';\nimport CouponService from '../../services/CouponService';\nimport PaymentMethodService from '../../services/PaymentMethodService';\nimport ServiceService from '../../services/ServiceService';\nimport {\n PAYMENT_ADD_PAYMENTS_RESUME,\n PAYMENT_ERROR,\n PAYMENT_GET_SERVICES_ERROR,\n PAYMENT_GET_SERVICES_LOADING,\n PAYMENT_GET_SERVICES_SUCCESS,\n PAYMENT_STATUS,\n PAYMENT_GET_SERVICE_PRICE_LOADING,\n PAYMENT_GET_SERVICE_PRICE_SUCCESS,\n PAYMENT_GET_SERVICE_PRICE_ERROR,\n CLEAR_SERVICE_PRICE,\n CLEAR_TOTALS\n} from '../types';\nimport { getTotals } from '../user/couponActions';\n\nconst { TRANSPORT_LABORS_SLUG } = constants;\n\nexport const paymentResumen = ( originCase, items, type, service ) => async ( dispatch ) => {\n const withoutTransport = items\n .filter( ( labor ) => labor.id !== TRANSPORT_LABORS_SLUG[ 0 ] );\n\n dispatch({\n type : PAYMENT_ADD_PAYMENTS_RESUME,\n payload : {\n originCase,\n items : withoutTransport,\n service : {\n type,\n value : service?.uuid,\n paymentAttemptState : service?.paymentAttemptState,\n id : service?.id\n }\n }\n\n });\n};\n\nexport const paymentStatus = () => async ( dispatch, getState ) => {\n try {\n const { origin } = getState().paymentReducer;\n const { service } = getState().userReducer;\n\n const status = await PaymentMethodService.paymentStatus( origin?.value ?? service.uuid );\n\n dispatch({\n type : PAYMENT_STATUS,\n payload : status\n });\n }\n catch ( error ) {\n dispatch({\n type : PAYMENT_ERROR,\n payload : error.message\n });\n }\n};\n\nexport const getServicesWithCoupon = ( uuid ) => async ( dispatch, getState ) => {\n try {\n dispatch({\n type : PAYMENT_GET_SERVICES_LOADING\n });\n\n if( uuid ) {\n const { user } = getState().userReducer;\n\n const services = await CouponService.getServicesWithCoupon( user, uuid );\n\n dispatch({\n type : PAYMENT_GET_SERVICES_SUCCESS,\n payload : {\n ...services,\n paymentItems : services.serviceLabors\n }\n });\n }\n else {\n const { servicePrice, paymentItems } = getState().paymentReducer;\n\n const services = getTotals( servicePrice );\n\n dispatch({\n type : PAYMENT_GET_SERVICES_SUCCESS,\n payload : {\n ...services,\n paymentItems\n }\n });\n }\n }\n catch ( error ) {\n dispatch({\n type : PAYMENT_GET_SERVICES_ERROR,\n payload : error.message\n });\n }\n};\n\n\nexport const getServicePrice = ( serviceLabors ) => async ( dispatch, getState ) => {\n try {\n dispatch({\n type : PAYMENT_GET_SERVICE_PRICE_LOADING\n });\n\n const { serviceToRequest } = getState().requestReducer;\n\n const withoutTransport = serviceLabors\n .filter( ( labor ) => labor.labor.id !== TRANSPORT_LABORS_SLUG[ 0 ] );\n\n const { vehicleType } = serviceToRequest.vehicle;\n\n const servicePrice = await ServiceService.getServicePrice( withoutTransport, vehicleType );\n\n dispatch({\n type : PAYMENT_GET_SERVICE_PRICE_SUCCESS,\n payload : servicePrice\n });\n }\n catch ( error ) {\n dispatch({\n type : PAYMENT_GET_SERVICE_PRICE_ERROR,\n payload : error.message\n });\n }\n};\n\nexport const clearServicePrice = ( ) => async ( dispatch ) => (\n dispatch({\n type : CLEAR_SERVICE_PRICE\n })\n);\n\nexport const clearTotals = ( ) => async ( dispatch ) => (\n dispatch({\n type : CLEAR_TOTALS\n })\n);\n\nexport const verifyServicePrice = ( serviceLabors ) => async ( dispatch ) => {\n if( serviceLabors?.length ) {\n return dispatch( getServicePrice( serviceLabors ) );\n }\n return dispatch( clearTotals() );\n};\n","import { constants } from '@alfred-co/alfred-react-components';\nimport { format } from 'date-fns';\nimport { getBlockedSlots } from '../daysOff/daysOffActions';\nimport { verifyServicePrice } from '../payment/paymentResumeAction';\nimport { compareAddresses } from '../../../helpers/addressHelper';\nimport {\n REQUEST_SERVICE_UPDATE_LOADING,\n REQUEST_SERVICE_UPDATE,\n REQUEST_SERVICE_CLEAR,\n REQUEST_SERVICE_STEP,\n REQUEST_SERVICE_SERVICE,\n REQUEST_SERVICE_VALIDATE,\n REQUEST_SERVICE_CATEGORY,\n REQUEST_SERVICE_LABOR,\n REQUEST_SERVICE_SHOP\n} from '../types';\n\nconst { LOCALSTORAGE, TRANSPORT_LABORS_SLUG } = constants;\n\nfunction saveServiceRequestDataInLocalStorage( data ) {\n localStorage.setItem( LOCALSTORAGE.REQUEST_SERVICE, JSON.stringify( data ) );\n}\n\nexport const clearRequestData = () => async ( dispatch ) => {\n localStorage.removeItem( LOCALSTORAGE.REQUEST_SERVICE );\n dispatch({\n type : REQUEST_SERVICE_CLEAR\n });\n};\n\nexport const loadRequestData = () => async ( dispatch, getState ) => {\n const { labors } = getState().laborReducer;\n const { addresses } = getState().userReducer;\n\n dispatch({\n type : REQUEST_SERVICE_UPDATE_LOADING\n });\n const initialServiceToRequest = {};\n const initialActiveStepNumber = 0;\n const initialStepValidations = [ false, false, false ];\n const initialSelectedCategory = '';\n\n const requestStorage = JSON.parse(\n localStorage.getItem( LOCALSTORAGE.REQUEST_SERVICE )\n ) || false;\n\n if( requestStorage ) {\n requestStorage.serviceToRequest = requestStorage.serviceToRequest || initialServiceToRequest;\n requestStorage.activeStepNumber = requestStorage.activeStepNumber || initialActiveStepNumber;\n requestStorage.stepValidations = requestStorage.stepValidations || initialStepValidations;\n requestStorage.selectedCategory = requestStorage.selectedCategory || initialSelectedCategory;\n\n if( requestStorage.serviceToRequest?.startAddress ) {\n const startAddress = addresses.find(\n ( address ) => address.uuid === requestStorage.serviceToRequest?.startAddress.uuid\n );\n\n if( startAddress ) {\n const isSameStartAddress = compareAddresses(\n startAddress, requestStorage.serviceToRequest?.startAddress\n );\n\n if( !isSameStartAddress ) {\n if( requestStorage.selectedLabor !== '' || requestStorage.serviceToRequest?.serviceLabors?.length ) {\n return dispatch( clearRequestData() );\n }\n requestStorage.serviceToRequest.startAddress = startAddress;\n requestStorage.serviceToRequest.endAddress = startAddress;\n saveServiceRequestDataInLocalStorage( requestStorage );\n }\n }\n else {\n return dispatch( clearRequestData() );\n }\n }\n\n\n if( requestStorage.serviceToRequest?.scheduleDate ) {\n let localStorageDate = new Date(\n requestStorage.serviceToRequest.scheduleDate\n );\n const dateNow = new Date();\n dateNow.setHours( dateNow.getHours() + 1 );\n if( localStorageDate < dateNow ) {\n localStorageDate = new Date( new Date().setHours( 0, 0, 0, 0 ) );\n }\n else {\n // force to unset hours\n // because we need to ask for blocked slots refresh and set step 3 incomplete\n localStorageDate.setHours( 0, 0, 0, 0 );\n }\n requestStorage.stepValidations[ 2 ] = false;\n\n // get Blocked Slots again\n if( requestStorage.serviceToRequest?.startAddress ) {\n const department = requestStorage.serviceToRequest\n .startAddress?.city.data.department_name;\n dispatch( getBlockedSlots( department, format( localStorageDate, 'yyyy-MM-dd' ) ) );\n }\n requestStorage.serviceToRequest.scheduleDate = new Date(\n localStorageDate\n );\n }\n\n // Validate if it's two days after\n if( requestStorage.date ) {\n const oldDate = new Date( requestStorage.date );\n const dateNow = new Date();\n if( oldDate < dateNow.setDate( dateNow.getDate() - 2 ) ) {\n requestStorage.activeStepNumber = 0;\n requestStorage.serviceToRequest = {};\n }\n }\n // validate if all labors exists\n if( labors\n && requestStorage.serviceToRequest?.serviceLabors\n && requestStorage.serviceToRequest?.serviceLabors?.length ) {\n const existLabors = requestStorage.serviceToRequest.serviceLabors.filter(\n ( serviceLabor ) => {\n const laborExists = [ ...labors.laborsWithPrice, ...labors.laborsWithOutPrice ]\n .some( ( labor ) => labor.id === serviceLabor.labor.id );\n return laborExists ? serviceLabor : null;\n }\n );\n if( existLabors.length !== requestStorage.serviceToRequest?.serviceLabors?.length ) {\n requestStorage.serviceToRequest.serviceLabors = existLabors;\n requestStorage.activeStepNumber = 1;\n }\n dispatch( verifyServicePrice( requestStorage.serviceToRequest.serviceLabors ) );\n }\n\n // validate if the first step is completed\n if( !requestStorage.serviceToRequest?.vehicle ) {\n requestStorage.activeStepNumber = 0;\n }\n return dispatch({\n type : REQUEST_SERVICE_UPDATE,\n payload : requestStorage\n });\n }\n return dispatch({\n type : REQUEST_SERVICE_UPDATE,\n payload : {\n activeStepNumber : initialActiveStepNumber,\n serviceToRequest : initialServiceToRequest,\n stepValidations : initialStepValidations,\n selectedCategory : initialSelectedCategory\n }\n });\n};\n\nexport const updateRequestData = ({\n serviceToRequest,\n stepValidations,\n activeStepNumber,\n selectedCategory,\n selectedLabor,\n selectedShop\n}) => async ( dispatch ) => {\n const requestStorage = JSON.parse(\n localStorage.getItem( LOCALSTORAGE.REQUEST_SERVICE )\n ) || {};\n requestStorage.date = new Date();\n\n if( serviceToRequest ) {\n const withoutTransport = serviceToRequest?.serviceLabors?.filter(\n ( labor ) => labor.labor.id !== TRANSPORT_LABORS_SLUG[ 0 ]\n );\n const newServiceToRequest = { ...serviceToRequest, serviceLabors: withoutTransport };\n dispatch({\n type : REQUEST_SERVICE_SERVICE,\n payload : withoutTransport?.length ? serviceToRequest : newServiceToRequest\n });\n requestStorage.serviceToRequest = newServiceToRequest;\n }\n if( stepValidations ) {\n dispatch({\n type : REQUEST_SERVICE_VALIDATE,\n payload : stepValidations\n });\n requestStorage.stepValidations = stepValidations;\n }\n if( activeStepNumber !== undefined && !Number.isNaN( activeStepNumber ) ) {\n dispatch({\n type : REQUEST_SERVICE_STEP,\n payload : activeStepNumber\n });\n requestStorage.activeStepNumber = activeStepNumber;\n }\n if( selectedLabor !== undefined ) {\n dispatch({\n type : REQUEST_SERVICE_LABOR,\n payload : selectedLabor\n });\n requestStorage.selectedLabor = selectedLabor;\n }\n if( selectedCategory !== undefined ) {\n dispatch({\n type : REQUEST_SERVICE_CATEGORY,\n payload : selectedCategory\n });\n }\n if( selectedShop !== undefined ) {\n dispatch({\n type : REQUEST_SERVICE_SHOP,\n payload : selectedShop\n });\n requestStorage.selectedShop = selectedShop;\n }\n requestStorage.selectedCategory = selectedCategory ?? requestStorage.selectedCategory;\n requestStorage.selectedLabor = selectedLabor ?? requestStorage.selectedLabor;\n requestStorage.selectedShop = selectedShop ?? requestStorage.selectedShop;\n saveServiceRequestDataInLocalStorage( requestStorage );\n};\n\nexport const clearAddressInsideRequestData = ( addressUuid ) => async ( dispatch ) => {\n const requestStorage = JSON.parse(\n localStorage.getItem( LOCALSTORAGE.REQUEST_SERVICE )\n ) || false;\n\n if( requestStorage ) {\n if( requestStorage.serviceToRequest?.endAddress?.uuid === addressUuid ) {\n delete requestStorage.serviceToRequest.endAddress;\n }\n if( requestStorage.serviceToRequest?.startAddress?.uuid === addressUuid ) {\n delete requestStorage.serviceToRequest.startAddress;\n }\n // this is necessary to prevent to change the date format\n if( requestStorage.serviceToRequest?.scheduleDate ) {\n requestStorage.serviceToRequest.scheduleDate = new Date(\n requestStorage.serviceToRequest.scheduleDate\n );\n }\n saveServiceRequestDataInLocalStorage( requestStorage );\n dispatch({\n type : REQUEST_SERVICE_UPDATE,\n payload : requestStorage\n });\n }\n};\n\nexport const getSelectedAddress = ( ) => ( dispatch ) => {\n const requestStorage = JSON.parse(\n localStorage.getItem( LOCALSTORAGE.REQUEST_SERVICE )\n ) || false;\n\n if( requestStorage ) {\n const initialServiceToRequest = {};\n requestStorage.serviceToRequest = requestStorage.serviceToRequest || initialServiceToRequest;\n\n dispatch({\n type : REQUEST_SERVICE_UPDATE,\n payload : requestStorage\n });\n }\n};\n","import { translateAuthError, USER_NOT_CONFIRMED_EXCEPTION } from '../../../utils/authUtils';\nimport { identifyUserToTrack, setUserToTrackProperties } from '../../../utils/userTrackerUtils';\nimport authService from '../../services/AuthService';\nimport { clearRequestData } from '../request/requestActions';\nimport {\n GET_AUTHENTICATED_USER_LOADING,\n GET_AUTHENTICATED_USER_ERROR,\n GET_AUTHENTICATED_USER_SUCCESS,\n SIGN_IN_LOADING,\n SIGN_IN_ERROR,\n SIGN_IN_SUCCESS,\n SIGN_UP_LOADING,\n SIGN_UP_SUCCESS,\n SIGN_UP_ERROR,\n GET_VERIFICATION_CODE_LOADING,\n GET_VERIFICATION_CODE_SUCCESS,\n GET_VERIFICATION_CODE_ERROR,\n SIGN_IN_RESEND_CODE_LOADING,\n SIGN_IN_RESEND_CODE_SUCCESS,\n SIGN_IN_RESEND_CODE_ERROR,\n SIGN_OUT_LOADING,\n SIGN_OUT_ERROR,\n SIGN_OUT_SUCCESS,\n SEND_RECOVERY_MAIL_LOADING,\n SEND_RECOVERY_MAIL_SUCCESS,\n SEND_RECOVERY_MAIL_ERROR,\n SUBMIT_NEW_PASSWORD_LOADING,\n SUBMIT_NEW_PASSWORD_SUCCESS,\n SUBMIT_NEW_PASSWORD_ERROR,\n RESTORE_RECOVER_PASSWORD,\n RESTORE_SIGN_UP,\n RESTORE_SIGN_IN,\n RESTORE_CONFIRMATION_CODE_VERIFIED,\n SIGN_UP_SUCCESS_RETRY,\n SIGN_UP_LOADING_RETRY,\n SIGN_UP_ERROR_RETRY,\n COMPONENT_ERROR\n} from '../types';\n\n\nfunction getErrorMessage( error = {}) {\n const translatedError = error && error.code && translateAuthError( error );\n return ( translatedError && translatedError.message ) || error.message || error;\n}\n\nexport const getAuthenticatedUser = () => async ( dispatch, getState ) => {\n try {\n let { session, user } = getState().userReducer;\n dispatch({\n type : GET_AUTHENTICATED_USER_LOADING\n });\n\n if( !session ) {\n session = await authService.getSession();\n identifyUserToTrack( session.attributes.email );\n }\n if( !user ) {\n user = await authService.getUser();\n }\n localStorage.setItem( 'userUuid', user.uuid );\n\n dispatch({\n type : GET_AUTHENTICATED_USER_SUCCESS,\n payload : {\n user,\n session\n }\n });\n }\n catch ( error ) {\n dispatch({\n type : GET_AUTHENTICATED_USER_ERROR,\n payload : getErrorMessage( error )\n });\n }\n};\n\nexport const resendConfirmationCode = ( email ) => async ( dispatch ) => {\n try {\n dispatch({\n type : SIGN_IN_RESEND_CODE_LOADING\n });\n await authService.resendConfirmationCode( email );\n dispatch({\n type : SIGN_IN_RESEND_CODE_SUCCESS,\n payload : true\n });\n }\n catch ( error ) {\n dispatch({\n type : SIGN_IN_RESEND_CODE_ERROR,\n payload : getErrorMessage( error )\n });\n }\n};\n\nexport const signInUser = ( email, password ) => async ( dispatch ) => {\n try {\n dispatch({\n type : SIGN_IN_LOADING,\n payload : true\n });\n const formattedEmail = email.toLowerCase();\n const cognitoSignInUser = await authService.signIn( formattedEmail, password );\n\n identifyUserToTrack( cognitoSignInUser.attributes.email );\n await dispatch( getAuthenticatedUser() );\n dispatch({\n type : SIGN_IN_SUCCESS,\n payload : true\n });\n }\n catch ( error ) {\n if( error.code === USER_NOT_CONFIRMED_EXCEPTION ) {\n await dispatch( resendConfirmationCode( email ) );\n dispatch({\n type : SIGN_IN_LOADING,\n payload : false\n });\n }\n else {\n dispatch({\n type : SIGN_IN_ERROR,\n payload : getErrorMessage( error ),\n error\n });\n }\n }\n};\n\nexport const signUpUser = ( email, password, allianceId, retry ) => async ( dispatch ) => {\n try {\n dispatch({\n type : retry ? SIGN_UP_LOADING_RETRY : SIGN_UP_LOADING,\n payload : true\n });\n const authSession = await authService.signUp( email, password, allianceId );\n setUserToTrackProperties( authSession.user.username, true );\n\n dispatch({\n type : retry ? SIGN_UP_SUCCESS_RETRY : SIGN_UP_SUCCESS,\n payload : true\n });\n }\n catch ( error ) {\n dispatch({\n type : retry ? SIGN_UP_ERROR_RETRY : SIGN_UP_ERROR,\n payload : getErrorMessage( error ),\n error\n });\n }\n};\n\nexport const confirmVerificationCode = ( email, authCode ) => async ( dispatch ) => {\n try {\n dispatch({\n type : GET_VERIFICATION_CODE_LOADING,\n payload : true\n });\n await authService.confirmVerificationCode( email, authCode );\n\n dispatch({\n type : GET_VERIFICATION_CODE_SUCCESS,\n payload : true\n });\n }\n catch ( error ) {\n dispatch({\n type : GET_VERIFICATION_CODE_ERROR,\n payload : getErrorMessage( error ),\n error\n });\n }\n};\n\nexport const sendRecoveryMail = ( email ) => async ( dispatch ) => {\n try {\n dispatch({\n type : SEND_RECOVERY_MAIL_LOADING\n });\n await authService.sendRecoveryMail( email );\n\n dispatch({\n type : SEND_RECOVERY_MAIL_SUCCESS\n });\n }\n catch ( error ) {\n dispatch({\n type : SEND_RECOVERY_MAIL_ERROR,\n payload : getErrorMessage( error )\n });\n }\n};\n\nexport const submitNewPassword = ( email, authCode, password ) => async ( dispatch ) => {\n try {\n dispatch({\n type : SUBMIT_NEW_PASSWORD_LOADING\n });\n await authService.submitNewPassword( email, authCode, password );\n\n dispatch({\n type : SUBMIT_NEW_PASSWORD_SUCCESS\n });\n }\n catch ( error ) {\n dispatch({\n type : SUBMIT_NEW_PASSWORD_ERROR,\n payload : getErrorMessage( error )\n });\n }\n};\n\nexport const restoreRecoverPassword = () => async ( dispatch ) => {\n dispatch({\n type : RESTORE_RECOVER_PASSWORD\n });\n};\n\nexport const restoreSignIn = () => async ( dispatch ) => {\n dispatch({\n type : RESTORE_SIGN_IN\n });\n};\n\nexport const restoreSignUp = () => async ( dispatch ) => {\n dispatch({\n type : RESTORE_SIGN_UP\n });\n};\n\nexport const restoreConfirmationCodeVerified = () => async ( dispatch ) => {\n dispatch({\n type : RESTORE_CONFIRMATION_CODE_VERIFIED\n });\n};\n\nexport const signOutUser = () => async ( dispatch ) => {\n try {\n dispatch({\n type : SIGN_OUT_LOADING\n });\n await authService.signOut();\n dispatch( clearRequestData() );\n dispatch({\n type : SIGN_OUT_SUCCESS\n });\n }\n catch ( error ) {\n dispatch({\n type : SIGN_OUT_ERROR,\n payload : getErrorMessage( error )\n });\n }\n};\n\nexport const reportUserError = ( error ) => async ( dispatch ) => (\n dispatch({\n type : COMPONENT_ERROR,\n error\n })\n);\n","export const homePath = '/';\nexport const requestServicePath = '/request';\nexport const confirmServicePath = `${ requestServicePath }/:uuid`;\nexport const membershipPath = '/membership';\nexport const paymentsPath = '/payments';\nexport const loginPath = '/login';\nexport const signUpPath = '/signup';\nexport const activatePath = '/activate';\nexport const recoverPath = '/recover';\nexport const servicePath = '/services';\nexport const vehiclePath = '/vehicle';\nexport const serviceDetailPath = `${ servicePath }/:uuid`;\nexport const vehicleDetailPath = `${ vehiclePath }/:uuid`;\nexport const page404Path = '*';\nexport const paymentPath = '/payment/new';\nexport const profilePath = '/profile';\nexport const profilePaymentPath = `${ profilePath }/payment`;\nexport const profileMembershipPath = `${ profilePath }/membership`;\nexport const trackPath = '/tracking';\nexport const trackServicePath = `${ trackPath }/:uuid`;\nexport const pendingPaymentsPath = '/pending-payments';\nexport const getAppPath = '/get-app';\n","const awsconfig = {\n Auth : {\n region : process.env.REACT_APP_AWS_COGNITO_REGION,\n userPoolId : process.env.REACT_APP_AWS_COGNITO_POOL_ID,\n userPoolWebClientId : process.env.REACT_APP_AWS_COGNITO_WEB_CLIENT_ID,\n mandatorySignIn : false,\n\n authenticationFlowType : 'USER_SRP_AUTH',\n\n oauth : {\n scope : [\n 'email',\n 'openid',\n 'profile',\n 'aws.cognito.signin.user.admin' ],\n responseType : 'code',\n domain : process.env.REACT_APP_AWS_COGNITO_DOMAIN,\n\n redirectSignIn : process.env.REACT_APP_REDIRECT_SIGN_IN,\n redirectSignOut : process.env.REACT_APP_REDIRECT_SIGN_OUT\n }\n }\n};\nexport default awsconfig;\n","import { publicGet } from './BaseService';\n\n\nasync function getTracking( serviceUuid ) {\n return publicGet( `services/${ serviceUuid } ` );\n}\n\nexport default {\n getTracking\n};\n","var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAlfredDriver(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 56,\n height: 88,\n viewBox: \"0 0 56 88\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M33.6678 20.6075C33.6835 20.6075 35.5212 20.3091 36.762 21.1887C36.8877 21.2829 37.029 21.3143 37.1704 21.3143C37.3903 21.3143 37.6102 21.2044 37.7358 21.0159C37.9557 20.7017 37.8772 20.2619 37.5631 20.0421C35.8196 18.8169 33.5107 19.2096 33.4164 19.2253C33.0395 19.2881 32.7882 19.6494 32.851 20.0263C32.9295 20.419 33.2908 20.6703 33.6678 20.6075Z\",\n fill: \"black\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.3746 19.2253C22.2803 19.2096 19.9714 18.8169 18.2279 20.0421C17.9138 20.2619 17.8353 20.7017 18.0552 21.0159C18.1965 21.2044 18.4007 21.3143 18.6206 21.3143C18.762 21.3143 18.9033 21.2672 19.029 21.1887C20.2855 20.2934 22.1075 20.5918 22.139 20.6075C22.5159 20.6703 22.8772 20.419 22.94 20.0421C23.0185 19.6651 22.7515 19.2881 22.3746 19.2253Z\",\n fill: \"black\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M35.317 53.749L32.7882 50.4034V47.9688C37.3589 46.3039 40.9558 42.6756 42.4637 40.1468C42.872 39.4714 43.249 38.639 43.6103 37.6808C45.6679 37.6494 47.5998 36.1573 48.448 33.8641C49.516 30.9583 48.4009 27.8012 45.9506 26.8274C47.5684 21.864 46.9087 13.6336 42.872 7.66496C40.5003 4.16233 35.9924 0 27.9034 0C19.8457 0 15.3221 4.16233 12.9661 7.64926C8.91374 13.6179 8.23834 21.864 9.87186 26.8274C7.42158 27.8169 6.30639 30.974 7.37446 33.8798C8.22263 36.173 10.1389 37.6651 12.2122 37.6965C12.5577 38.6547 12.9504 39.4871 13.3588 40.1625C14.8666 42.6913 18.4635 46.3196 23.0342 47.9846V50.4191L20.4897 53.7804C12.5734 57.3616 2.64669 66.0789 0.00792765 87.189C-0.0234861 87.3931 0.0393424 87.5816 0.180704 87.7387C0.30636 87.8958 0.51055 87.9743 0.699032 87.9743H55.1548C55.359 87.9743 55.5475 87.8958 55.6731 87.7387C55.7988 87.5816 55.8616 87.3931 55.8459 87.189C53.1758 66.0475 43.249 57.3459 35.317 53.749ZM53.5213 81.88L50.5056 82.9795L48.9506 78.7229L52.4218 77.4507C52.8302 78.8486 53.2072 80.3251 53.5213 81.88ZM32.4584 52.2725L34.2647 54.6443L36.3694 60.927H30.6207L32.4584 52.2725ZM30.1023 62.8747L32.3327 64.8538L28.4217 68.325L30.1023 62.8747ZM47.1286 33.3928C46.5789 34.9007 45.3694 35.9688 44.0972 36.2201C44.7726 33.9897 45.3066 31.2724 45.6522 28.241C47.2228 29.0577 47.8982 31.2881 47.1286 33.3928ZM14.1127 8.4346C17.2384 3.83248 22.0133 1.39791 27.9034 1.39791C33.8092 1.39791 38.5841 3.83248 41.7097 8.45031C45.0867 13.4294 45.9663 20.0577 45.0553 24.7226C43.6417 20.8273 40.6259 16.7278 37.3903 15.7069C37.3589 15.6912 37.3275 15.6912 37.2961 15.6912L18.762 12.6126C18.385 12.5498 18.0237 12.8011 17.9609 13.1781C17.207 17.309 14.9452 21.487 11.0656 25.9478C9.71479 21.2671 10.4373 13.8535 14.1127 8.4346ZM8.67813 33.3928C7.9085 31.2881 8.58389 29.0577 10.1703 28.241C10.5158 31.2724 11.0499 33.9897 11.7253 36.2201C10.4216 35.9688 9.22787 34.9007 8.67813 33.3928ZM14.5368 39.4243C13.1546 37.1311 12.0237 32.686 11.4897 27.5185C15.6991 22.8692 18.2279 18.4556 19.186 14.0734L37.0134 17.042C40.3275 18.1258 43.5946 23.3404 44.3485 27.33C43.8144 32.5761 42.6678 37.0997 41.2856 39.4243C39.4165 42.5343 34.139 47.4662 27.9191 47.4662C21.6991 47.4662 16.4059 42.5343 14.5368 39.4243ZM27.9034 48.8641C29.1128 48.8641 30.2751 48.6914 31.3903 48.3929V50.5448L29.0814 61.4454L27.9191 65.2307L26.7254 61.4296L24.4164 50.5448V48.3772C25.5316 48.6914 26.6939 48.8641 27.9034 48.8641ZM21.5421 54.66L23.3484 52.2882L25.1861 60.9427H19.4374L21.5421 54.66ZM26.7411 66.1574L23.7253 64.4925L25.7044 62.8276L26.7411 66.1574ZM3.3692 77.4507L6.84043 78.7229L5.28544 82.9795L2.26972 81.88C2.59957 80.3251 2.97653 78.8486 3.3692 77.4507ZM2.0027 83.2622L5.47393 84.5188C5.55246 84.5502 5.63099 84.5659 5.70953 84.5659C5.99225 84.5659 6.25927 84.3931 6.36922 84.1104L8.39541 78.5502C8.52106 78.1889 8.34829 77.7805 7.97132 77.6549L3.77758 76.1156C4.34303 74.3564 4.97131 72.7386 5.6467 71.2465C6.5577 71.325 7.31163 71.6548 7.90849 72.2674C10.3116 74.702 10.3431 81.1575 10.2959 86.5764H1.46867C1.62574 85.4298 1.81422 84.3303 2.0027 83.2622ZM45.4951 86.5607C45.448 81.1418 45.4794 74.6863 47.8825 72.2517C48.4951 71.6391 49.249 71.3093 50.16 71.2307C50.8354 72.7386 51.4637 74.3564 52.0292 76.0999L47.8354 77.6392C47.4742 77.7648 47.2857 78.1732 47.427 78.5344L49.4532 84.0947C49.5632 84.3774 49.8302 84.5502 50.1129 84.5502C50.1914 84.5502 50.27 84.5345 50.3485 84.5031L53.8197 83.2465C54.0239 84.3146 54.1967 85.4141 54.3538 86.545L45.4951 86.5607Z\",\n fill: \"black\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M36.2751 27.2201C36.2751 27.9897 35.6469 28.618 34.8772 28.618C34.1076 28.618 33.4793 27.9897 33.4793 27.2201C33.4793 26.4504 34.1076 25.8221 34.8772 25.8221C35.6469 25.8221 36.2751 26.4504 36.2751 27.2201Z\",\n fill: \"black\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.3274 27.2201C22.3274 27.9897 21.6991 28.618 20.9295 28.618C20.1598 28.618 19.5316 27.9897 19.5316 27.2201C19.5316 26.4504 20.1598 25.8221 20.9295 25.8221C21.6991 25.8221 22.3274 26.4504 22.3274 27.2201Z\",\n fill: \"black\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.2123 30.6755C30.5893 30.5656 30.7934 30.1886 30.6992 29.8117C30.5892 29.4347 30.2123 29.2305 29.8353 29.3248C28.5631 29.686 27.2908 29.686 26.0343 29.3248C25.6573 29.2148 25.2803 29.4347 25.1704 29.8117C25.0604 30.1886 25.2803 30.5656 25.6573 30.6755C26.4112 30.8954 27.1809 31.0054 27.9348 31.0054C28.6887 30.9897 29.4584 30.8797 30.2123 30.6755Z\",\n fill: \"black\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.9662 71.9062C29.8039 71.9062 28.8458 72.8643 28.8458 74.0266C28.8458 75.189 29.8039 76.1471 30.9662 76.1471C32.1285 76.1471 33.0866 75.189 33.0866 74.0266C33.0866 72.8486 32.1285 71.9062 30.9662 71.9062ZM30.9662 74.7492C30.5735 74.7492 30.2437 74.4193 30.2437 74.0266C30.2437 73.634 30.5735 73.3041 30.9662 73.3041C31.3589 73.3041 31.6887 73.634 31.6887 74.0266C31.6887 74.4193 31.3589 74.7492 30.9662 74.7492Z\",\n fill: \"white\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.9662 80.859C29.8039 80.859 28.8458 81.8171 28.8458 82.9794C28.8458 84.1418 29.8039 85.0999 30.9662 85.0999C32.1285 85.0999 33.0866 84.1418 33.0866 82.9794C33.0866 81.8014 32.1285 80.859 30.9662 80.859ZM30.9662 83.702C30.5735 83.702 30.2437 83.3721 30.2437 82.9794C30.2437 82.5868 30.5735 82.2569 30.9662 82.2569C31.3589 82.2569 31.6887 82.5868 31.6887 82.9794C31.6887 83.3721 31.3589 83.702 30.9662 83.702Z\",\n fill: \"white\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5578 70.2097C24.5421 70.3668 24.4007 70.5081 24.2436 70.5081C24.0866 70.5081 23.9609 70.3825 23.9766 70.2097C23.9923 70.0526 24.1337 69.9113 24.2907 69.9113C24.4478 69.9113 24.5735 70.0369 24.5578 70.2097ZM24.5264 70.2097C24.5421 70.0683 24.4321 69.9427 24.2907 69.9427C24.1494 69.9427 24.008 70.0683 24.008 70.2097C23.9923 70.3511 24.1023 70.4767 24.2436 70.4767C24.385 70.4767 24.5106 70.3511 24.5264 70.2097ZM24.3379 70.2411L24.385 70.3511H24.3065L24.2593 70.2568H24.2279L24.2122 70.3511H24.1337L24.1651 70.0526H24.275C24.3379 70.0526 24.385 70.0998 24.385 70.1469C24.385 70.194 24.3693 70.2254 24.3379 70.2411ZM24.2279 70.194H24.2593C24.2907 70.194 24.3065 70.1783 24.3065 70.1626C24.3065 70.1469 24.2907 70.1312 24.2593 70.1312H24.2279V70.194Z\",\n fill: \"white\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.3536 71.1365L14.9766 73.2726H14.1913L14.2227 73.0841C14.0656 73.2412 13.8614 73.3354 13.6258 73.3354C13.0447 73.3354 12.7462 72.8014 12.8248 72.2045C12.9033 71.6234 13.3117 71.0893 13.9399 71.0893C14.207 71.0893 14.4112 71.1993 14.5211 71.3878L14.5682 71.1522L15.3536 71.1365ZM14.364 72.2045C14.4112 71.9689 14.3012 71.7961 14.0656 71.7961C13.83 71.7961 13.6572 71.9689 13.6101 72.2045C13.5787 72.4244 13.6729 72.6129 13.9242 72.6129C14.1756 72.5972 14.3326 72.4401 14.364 72.2045Z\",\n fill: \"white\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.4478 71.8904L15.7463 70.1469H16.5316L16.2332 71.8904L15.9976 73.2569H15.2122L15.4478 71.8904Z\",\n fill: \"white\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.3797 71.1365L17.2541 71.8904L16.8143 74.3564H16.0289L16.4687 71.8904L16.5944 71.1365C16.7043 70.5082 17.1284 70.1784 17.8666 70.2098L17.741 70.9166C17.5368 70.9009 17.4111 70.9951 17.3797 71.1365Z\",\n fill: \"white\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.4792 71.8904C18.5892 71.5763 18.7933 71.325 19.0447 71.1522L17.7881 71.1365C17.6782 71.1365 17.5839 71.215 17.5525 71.325L17.4583 71.8747L17.2227 73.2569H18.008L18.2279 72.0475C18.2436 71.9532 18.3378 71.8747 18.4321 71.8747L18.4792 71.8904Z\",\n fill: \"white\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.8039 72.1889C20.7881 72.2674 20.7724 72.3617 20.7253 72.4716H19.3274C19.3902 72.6444 19.5473 72.6915 19.7044 72.6915C19.8614 72.6915 19.9871 72.6601 20.097 72.5501L20.5525 73.0057C20.3012 73.2255 20.0185 73.3198 19.6258 73.3198C18.8248 73.3198 18.4792 72.7858 18.5735 72.1575C18.6834 71.5292 19.2018 71.0737 19.83 71.0737C20.5368 71.0737 20.9138 71.592 20.8039 72.1889ZM20.1127 71.9533C20.097 71.7648 19.9871 71.702 19.83 71.702C19.6573 71.702 19.5002 71.7805 19.4059 71.9533H20.1127Z\",\n fill: \"white\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.6468 70.2726L23.1285 73.2569H22.3431L22.3745 73.0684C22.2175 73.2255 22.0133 73.3198 21.7777 73.3198C21.1965 73.3198 20.8981 72.7857 20.9766 72.1889C21.0551 71.6077 21.4635 71.0737 22.0918 71.0737C22.3588 71.0737 22.563 71.1836 22.673 71.3721L22.8614 70.2726H23.6468ZM22.5159 72.2203L22.5316 72.1731C22.563 71.9532 22.4531 71.7962 22.2175 71.7962C21.9819 71.7962 21.8091 71.969 21.762 72.2046C21.7305 72.4245 21.8248 72.6129 22.0761 72.6129C22.3117 72.5972 22.4688 72.4402 22.5159 72.2203Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAlfredDriver);\nexport default __webpack_public_path__ + \"static/media/alfredDriver.00bdc20f.svg\";\nexport { ForwardRef as ReactComponent };","import { TRACKING_SERVICE_ERROR, TRACKING_SERVICE_LOADING, TRACKING_SERVICE_SUCCESS } from '../types';\nimport trackingService from '../../services/trackingService';\n\n\nexport const getTracking = ( trackingNumber ) => async ( dispatch ) => {\n try {\n dispatch({\n type : TRACKING_SERVICE_LOADING\n });\n\n const trackingData = await trackingService.getTracking( trackingNumber );\n\n if( trackingData?.serviceLabors.length > 1 ) {\n trackingData.serviceLabors = trackingData.serviceLabors\n .sort( ( a, b ) => new Date( a.scheduleDate ) - new Date( b.scheduleDate ) );\n }\n\n let lastEvent = null;\n let activeLabor = null;\n if( trackingData?.serviceLabors.length > 0 ) {\n const lastLabor = trackingData?.serviceLabors[ trackingData?.serviceLabors?.length - 1 ];\n if( lastLabor?.events?.length > 0 ) {\n lastEvent = lastLabor?.events[ lastLabor?.events?.length - 1 ];\n }\n activeLabor = trackingData?.serviceLabors.find(\n ( labor ) => ( labor?.startDate && !labor?.endDate )\n );\n }\n\n return dispatch({\n type : TRACKING_SERVICE_SUCCESS,\n payload : { trackingData, lastEvent, activeLabor }\n });\n }\n catch ( error ) {\n return dispatch({\n type : TRACKING_SERVICE_ERROR,\n payload : error.message,\n error\n });\n }\n};\n\nexport const setTrackingMap = ( map, showMap ) => ({\n type : 'TRACKING_SET_MAP',\n payload : { map, showMap }\n});\n","import { makeStyles } from '@material-ui/core';\n\n\nconst useTrackingStyles = makeStyles(\n ( theme ) => ({\n trackingContainer : {\n background : theme.palette.primary.dark,\n minHeight : '100vh',\n\n [ theme.breakpoints.up( 'md' ) ] : {\n background : `linear-gradient(90deg, ${ theme.palette.primary.dark } 50%, #fff 50%)`,\n margin : 'auto'\n }\n },\n trackingLeftContainer : {\n maxHeight : '100vh',\n overflowY : 'auto'\n },\n trackingLeftInfo : {\n minHeight : '420px',\n '& iframe' : {\n minHeight : '80vh',\n width : 'fill-available'\n },\n [ theme.breakpoints.up( 'md' ) ] : {\n minHeight : '100vh',\n maxWidth : '720px',\n paddingTop : theme.padding( 6 ),\n marginLeft : theme.margin( 6 )\n }\n },\n trackingHeaderLogo : {\n padding : `${ theme.padding( 2 ) } ${ theme.padding( 4 ) } 0`,\n cursor : 'pointer',\n [ theme.breakpoints.up( 'sm' ) ] : {\n marginLeft : theme.margin( 2 ),\n padding : '0',\n width : '130px',\n height : 'auto',\n '& img' : {\n width : '100%'\n }\n\n }\n },\n headerChubbImg : {\n height : '10px',\n paddingLeft : theme.padding( 2 )\n },\n headerChubbSection : {\n color : theme.palette.primary.white,\n paddingLeft : theme.padding( 3 )\n },\n headerChubbText : {\n ...theme.typography.caption,\n color : theme.palette.primary.contrastText\n },\n trackingState : {\n paddingBottom : theme.padding( 2 ),\n\n [ theme.breakpoints.up( 'md' ) ] : {\n marginTop : theme.margin( 5 ),\n padding : '0'\n }\n\n },\n trackingTimeLine : {\n marginTop : 0\n },\n trackingRightInfo : {\n '& iframe' : {\n minHeight : '100vh',\n width : 'fill-available'\n },\n [ theme.breakpoints.down( 'sm' ) ] : {\n position : 'fixed',\n bottom : 0,\n backgroundColor : theme.palette.primary.dark,\n maxHeight : '100%',\n overflow : 'auto'\n }\n },\n trackingAcordion : {\n borderRadius : '0 !important',\n backgroundColor : 'unset',\n boxShadow : 'none',\n width : '100%',\n '& .MuiAccordionDetails-root' : {\n backgroundColor : theme.palette.grey[ 600 ],\n color : theme.palette.primary.contrastText,\n padding : `${ theme.padding( 5 ) } ${ theme.padding( 2 ) }`,\n paddingBottom : theme.padding( 1 )\n\n },\n '& .MuiAccordionSummary-root' : {\n\n '& .MuiSvgIcon-root' : {\n fill : theme.palette.primary.main,\n marginRight : theme.margin( 1 )\n }\n }\n }\n })\n);\n\nexport default useTrackingStyles;\n","export default __webpack_public_path__ + \"static/media/chubb.3a7790e4.svg\";","import { makeStyles } from '@material-ui/core';\n\nconst useTrackingTimeLineStyles = makeStyles(\n ( theme ) => ({\n trackingTimeline : {\n '&.MuiTimeline-root' : {\n paddingLeft : theme.padding( 0 ),\n paddingRight : theme.padding( 0 )\n },\n '& .MuiTimelineOppositeContent-root' : {\n flex : 0.2,\n display : 'flex',\n justifyContent : 'flex-end',\n padding : `0 ${ theme.padding( 1 ) }`\n },\n '& .MuiTimelineDot-root' : {\n padding : 0,\n borderWidth : '1px'\n },\n [ theme.breakpoints.up( 'md' ) ] : {\n '& .MuiTimelineOppositeContent-root' : {\n padding : `0 ${ theme.padding( 3 ) }`\n }\n }\n },\n customTimelineDot : {\n '& svg' : {\n width : '18px',\n height : '18px'\n }\n },\n trackingTimeLineContent : {\n paddingRight : theme.padding( 0 ),\n paddingLeft : theme.padding( 1 ),\n\n [ theme.breakpoints.up( 'sm' ) ] : {\n paddingLeft : theme.padding( 2 )\n }\n },\n trackingTimeLineItem : {\n },\n trackingTimeLineButton : {\n width : '79px',\n height : '23px',\n\n [ theme.breakpoints.up( 'md' ) ] : {\n width : '85px',\n height : '25px'\n }\n },\n customTimeLineAlfredTime : {\n marginTop : theme.padding( 1 )\n }\n })\n);\nexport default useTrackingTimeLineStyles;\n","import { makeStyles } from '@material-ui/core';\n\n\nconst useTrackingTimeLineStyles = makeStyles(\n ( theme ) => ({\n trackingCustomDialog : {\n overflow : 'hidden'\n },\n trackingEventEventContainer : {\n marginTop : theme.margin( 2 )\n },\n trackingEventEventName : {\n marginLeft : theme.margin( 2 )\n },\n trackingEventIconContainer : {\n cursor : 'pointer',\n marginLeft : theme.margin( 4 ),\n marginTop : theme.margin( 2 )\n },\n trackingEventImageText : {\n paddingLeft : theme.padding( 1 )\n },\n trackingEventImageContainer : {\n width : '100%',\n height : '100%',\n background : theme.palette.primary.dark,\n padding : `${ theme.padding( 0 ) } ${ theme.padding( 2 ) }`\n },\n trackingEventImage : {\n width : '100%',\n maxHeight : '100%',\n objectFit : 'contain'\n },\n trackingEventVideo : {\n width : '100%',\n height : '90%'\n },\n trackingEventSliderContainer : {\n height : '80vh',\n width : '100%',\n\n '& .swiper-pagination-bullet-active' : {\n backgroundColor : theme.palette.primary.main\n },\n '& .makeStyles-customDialogContent' : {\n overflowY : 'hidden'\n }\n }\n\n })\n);\nexport default useTrackingTimeLineStyles;\n","export const IMAGE_FORMATS = [ 'jpg', 'jpeg', 'png', 'gif', 'heic', 'webp' ];\nexport const VIDEO_FORMATS = [ 'mp4', 'webm', 'ogg', 'mov', 'avi', 'flv' ];\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { Grid, Typography } from '@material-ui/core';\nimport {\n CustomCarousel,\n CustomDialog,\n icons,\n dateUtils\n} from '@alfred-co/alfred-react-components';\n\nimport useTrackingEventsStyles from './trackingEventsStyles';\nimport { setTrackingMap } from '../../../redux/actions/tracking/trackingActions';\nimport { IMAGE_FORMATS, VIDEO_FORMATS } from '../../../utils/formats';\n\nconst { Route, Image, RigthArrow } = icons;\nconst { toShortHour } = dateUtils;\n\nconst TrackingEvents = ({ events }) => {\n const classes = useTrackingEventsStyles();\n const [ openModal, setOpenModal ] = useState( '' );\n const [ eventSelected, setEventSelected ] = useState({});\n const dispatch = useDispatch();\n\n useEffect( () => {\n if( !events ) return;\n const map = events.reduce( ( result, event ) => {\n const { data } = event;\n if( data?.map ) {\n result.push( data?.map );\n }\n return result;\n }, [] );\n\n if( map?.length ) {\n dispatch( setTrackingMap( map[ map.length - 1 ], false ) );\n }\n }, [ dispatch, events ] );\n\n\n const handleOpenModal = useCallback(\n ( uuid ) => {\n setOpenModal( uuid );\n setEventSelected( events.find( ( event ) => event.uuid === uuid ) );\n },\n [ events ]\n );\n\n const closeModal = useCallback( () => {\n setOpenModal( '' );\n }, [ ] );\n\n const handleSetTracking = useCallback(\n ( map ) => {\n dispatch( setTrackingMap( map, true ) );\n },\n [ dispatch ]\n );\n\n return (\n <>\n {\n events.map( ( event ) => (\n \n
\n
\n
\n
\n
\n
\n\n {\n getRedirectMessage( classes, '¡El servicio que buscas no está disponible! escríbenos a nuestros canales oficiales para más información.' )\n }\n
\n