{"version":3,"sources":["globalCssVars.ts","external/types/deepLink.ts","common/reducers/visitCategoriesReducer.ts","external/reducers/branchHoursReducer.ts","common/reducers/appSettingsReducer.ts","common/reducers/errorMessageReducer.ts","internal/reducers/systemAdminsReducer.ts","common/reducers/videosReducer.ts","internal/actions/appContextActions.ts","common/Components/general/PhoneNumberInput.tsx","external/actions/appTitleBarActions.ts","external/actions/authActions.ts","external/actions/actionTypeKeys.ts","external/utilities/colorUtil.ts","common/actions/actionErrorHandler.ts","internal/api/internalCustomerPrefsApi.ts","common/api/branchesApi.ts","common/api/googleMapsApi.ts","external/actions/branchActions.ts","external/api/representativesApi.ts","external/api/marketingLinkApi.ts","common/Components/general/AppWideErrorModal.tsx","common/Components/LogoutListItemButton.tsx","common/Components/PrivateRoute.tsx","external/utilities/debounce.ts","registerServiceWorker.ts","common/Components/HelpVideos/VideoListItem.tsx","common/Components/HelpVideos/VideoList.tsx","common/Components/HelpVideos/Video.tsx","common/Components/HelpVideos/VideosMasterDetail.tsx","common/api/appSettingsApi.ts","common/actions/appSettingsActions.ts","common/api/videosApi.ts","common/actions/helpVideosActions.ts","external/api/customersApi.ts","internal/types/authentication.ts","../node_modules/@material-ui/icons/PermContactCalendar.js","external/store/initialState.ts","../node_modules/@material-ui/icons/ChevronLeft.js","../node_modules/@material-ui/icons/Menu.js","external/actions/customerPreferencesActions.ts","polyfills.ts","internal/actions/internalActionKeys.ts","common/actions/commonActionKeys.ts","external/actions/marketingLinkActions.ts","internal/components/Common/ActionButtons.tsx","common/Components/general/ContentCircularProgress.tsx","common/Components/CircularProgressBlanket.tsx","common/Components/ConfirmDialog.tsx","common/utilities/sensitiveDataMask.ts","external/components/Settings/CustomerContactSettings.tsx","../node_modules/react-div-100vh/lib/index.js","internal/reducers/serviceRepresentativesReducer.ts","../node_modules/react-star-rating-component/index.js","../node_modules/query-string/index.js","external/store/configureStore.ts","external/reducers/index.ts","external/reducers/authenticationReducer.ts","external/reducers/appTitleBarReducer.ts","external/reducers/appointmentHoldTimeRemainingReducer.ts","external/reducers/selectedAppointmentValuesReducer.ts","external/reducers/appointmentReducer.ts","external/reducers/appointmentsReducer.ts","common/reducers/branchesReducer.ts","external/reducers/customerPreferenceReducer.ts","external/reducers/representativesReducer.ts","external/reducers/timeSlotsReducer.ts","external/reducers/appointmentSurveyReducer.ts","external/reducers/deepLinkReducer.ts","external/reducers/deepLinkStatusReducer.ts","external/reducers/closeAppAfterApptReducer.ts","common/types/representative.ts","external/components/Drawer/NavItemListItemButton.tsx","external/components/Drawer/AppDrawer.tsx","external/components/common/ApptsAppBar.tsx","external/components/common/asyncComponent.tsx","external/components/Surveys/Rating.tsx","external/components/Appointments/FeedbackRequestDialog.tsx","external/components/Surveys/FeedbackCollectionForm.tsx","external/api/surveyApi.ts","external/actions/surveyActions.ts","external/components/Surveys/AppointmentSurveyPage.tsx","external/Routes.tsx","external/components/Settings/CustomerSettingsForm.tsx","external/components/Settings/CustomerSettingsPage.tsx","external/components/Help/HelpVideosPage.tsx","external/navItems.ts","external/api/surveyLinkApi.ts","external/App.tsx","external/actions/appActions.ts","external/index.tsx","common/actions/errorActions.ts","../node_modules/strict-uri-encode/index.js","../node_modules/decode-uri-component/index.js","../node_modules/react-div-100vh/lib/polyfill.js","../node_modules/react-div-100vh/lib/Div100vh.js","../node_modules/react-div-100vh/lib/convertStyle/index.js","../node_modules/react-div-100vh/lib/convertStyle/convertStyle.js","../node_modules/react-div-100vh/lib/getWindowHeight.js","common/utilities/visitOptionUtils.ts","internal/api/authApi.ts","internal/actions/authActions.ts","internal/components/Common/LoadingCard.tsx","customTheme.ts","common/api/apiErrorHandler.ts","internal/utilities/authHelper.ts","common/types/branch.ts","common/types/timeZone.ts","external/utilities/fieldValidator.ts","external/utilities/dateTimeUtilities.ts","common/LoadingButton/LoadingButton.tsx","internal/reducers/internalReasonsReducer.ts","internal/reducers/internalVisitCategoriesReducer.ts","internal/store/initialState.ts","internal/types/appContext.ts","internal/reducers/internalBranchesReducer.ts","internal/reducers/index.ts","internal/reducers/adminAppSettingsReducer.ts","internal/reducers/adminCategoriesReducer.ts","internal/reducers/virtualMeetingConnectionTestReducer.ts","internal/reducers/appContextReducer.ts","internal/reducers/appointmentsListReportReducer.ts","internal/reducers/internalAppSettingsReducer.ts","internal/reducers/authReducer.ts","internal/reducers/branchAdminsReducer.ts","internal/reducers/callDownListReportReducer.ts","internal/reducers/internalCustomerPrefsReducer.ts","internal/reducers/dnaRepresentativesReducer.ts","internal/reducers/internalMarketingLinksReducer.ts","internal/reducers/marketingLinkSummaryReportReducer.ts","internal/reducers/internalRemindersReducer.ts","internal/reducers/resourceByServiceReportReducer.ts","internal/reducers/reportingSyncUpdatedTimeReducer.ts","internal/reducers/serviceLevelsReportReducer.ts","internal/reducers/serviceLocationReportReducer.ts","internal/reducers/surveyReducer.ts","internal/reducers/surveyFeedbackDetailsReportReducer.ts","internal/reducers/surveyFeedbackSummaryReportReducer.ts","internal/reducers/timeZonesReducer.ts","internal/reducers/volumeReportReducer.ts","internal/reducers/failedAppointmentAttemptsReportReducer.ts","internal/WithProviders/WithProviders.tsx","internal/store/configureStore.ts"],"names":["__webpack_require__","d","__webpack_exports__","layoutBreakpoint","rootFontSize","cssVars","customBoxShadow","toolbarMenuButtonWidth","toolbarPaddingLeft","webStepperMinWidth","webToolbarHeight","drawerWidth","DeepLink","DeepLinkStatus","this","anyServiceRep","isDeepLinkLoading","isDeepLinkResolved","isServiceRepSkipResolved","isDeepLinkOveride","visitCategoriesReducer","_actions_commonActionKeys__WEBPACK_IMPORTED_MODULE_0__","_utilities_visitOptionUtils__WEBPACK_IMPORTED_MODULE_1__","state","action","type","LOAD_VISIT_CATEGORIES_SUCCESS","Object","visitCategories","slice","CLEAR_VISIT_CATEGORIES","branchHoursReducer","_actions_actionTypeKeys__WEBPACK_IMPORTED_MODULE_0__","_store_initialState__WEBPACK_IMPORTED_MODULE_1__","branchHours","LOAD_ALL_BRANCH_HOURS_SUCCESS","hours","appSettingsReducer","_external_store_initialState__WEBPACK_IMPORTED_MODULE_0__","appSettings","_external_actions_actionTypeKeys__WEBPACK_IMPORTED_MODULE_1__","LOAD_APP_SETTINGS_SUCCESS","__assign","errorMessageReducer","errorMessage","src_common_actions_commonActionKeys__WEBPACK_IMPORTED_MODULE_1__","SHOW_ERROR_MESSAGE","DISMISS_ERROR_DIALOG","visible","CLEAR_ERROR_MESSAGE","systemAdminsReducer","adminsCompareFunc","_actions_internalActionKeys__WEBPACK_IMPORTED_MODULE_0__","GET_SYSTEM_ADMINISTRATORS_SUCCESS","admins","sort","a","b","lastName","toLowerCase","videos","_actions_commonActionKeys__WEBPACK_IMPORTED_MODULE_1__","LOAD_VIDEOS_SUCCESS","videoRes","AppContextActions","updateAppContext","context","dispatchError","dispatch","__awaiter","undefined","Promise","payload","_internalActionKeys__WEBPACK_IMPORTED_MODULE_0__","SAVE_APP_CONTEXT","error","src_common_actions_actionErrorHandler__WEBPACK_IMPORTED_MODULE_1__","PhoneNumberInput","props","options","inputRef","other","__rest","react__WEBPACK_IMPORTED_MODULE_0___default","createElement","cleave_js_react__WEBPACK_IMPORTED_MODULE_1___default","ref","numericOnly","blocks","delimiters","setAppTitleBar","_actionTypeKeys__WEBPACK_IMPORTED_MODULE_0__","appTitleBar","SET_APP_TITLE_BAR","authenticationSuccess","customer","AUTHENTICATION_SUCCESS","authenticationError","AUTHENTICATION_FAILED","signInFirstTimeGuest","GUEST_SIGN_IN","validateCustomer","info","persist","_api_customersApi__WEBPACK_IMPORTED_MODULE_1__","_a","sent","sessionStorage","setItem","JSON","stringify","error_1","signInServiceRep","email","_api_representativesApi__WEBPACK_IMPORTED_MODULE_3__","validateRepresentative","valid","SERVICE_REP_SIGN_IN_SUCCESS","signInServiceRepSuccess","name","APPT_CREATED_BY","error_2","logout","removeItem","LOGOUT_SUCCESS","_appTitleBarActions__WEBPACK_IMPORTED_MODULE_2__","description","title","actionTypeKeys","hexToRgb","hexToRGBA","hexColor","replace","m","r","g","result","exec","parseInt","hex","opacity","charAt","substr","length","rr","substring","gg","bb","handleActionError","dispatchActionError","response","data","message","_errorActions__WEBPACK_IMPORTED_MODULE_0__","InternalCustomerPrefsApi","patchDefaultPrefs","prefs","axios__WEBPACK_IMPORTED_MODULE_0___default","patch","src_common_api_apiErrorHandler__WEBPACK_IMPORTED_MODULE_1__","getDefaultPrefs","get","BranchesApi","getBranches","reasonId","reqUrl","axios_default","then","catch","getAllBranchHours","GoogleMapsApi","GetDistances","position","branches","destinations","map","google","maps","LatLng","latitude","longitude","service","DistanceMatrixService","resolve","reject","getDistanceMatrix","origins","coords","travelMode","TravelMode","DRIVING","unitSystem","UnitSystem","IMPERIAL","status","DistanceMatrixStatus","OK","selectBranch","branch","BRANCH_SELECTED","loadAllBranchHours","branchActions_awaiter","branchesApi","sortBranchHoursByWeekday","loadAllBranchHoursSuccess","actionErrorHandler","loadBranches","loadDistances","loadBranchDistances","branchAlphabeticalCompareFunction","LOAD_BRANCHES_SUCCESS","loadBranchesSuccess","navigator","geolocation","getCurrentPosition","res","rows","elements","branchesCopy","i","isVirtual","distance","text","value","branchDistanceCompareFunction","aVal","dateTimeUtilities","getWeekdayCodeNumber","weekDayCode","bVal","RepresentativesApi","getRepresentatives","branchId","filterByReasonOnly","url","baseUrl","getServiceRepsForResourceReport","branchName","error_3","MarketingLinksApi","getDeepLink","publicKey","isBranchAvailable","branchReason","post","AppWideErrorModal","_super","_this","call","closeDialog","dismiss","clearMessage","clear","__extends","prototype","render","react__WEBPACK_IMPORTED_MODULE_0__","_material_ui_core_Dialog__WEBPACK_IMPORTED_MODULE_3___default","onClose","onExited","open","_material_ui_core__WEBPACK_IMPORTED_MODULE_4__","split","s","style","minHeight","variant","color","onClick","react_redux__WEBPACK_IMPORTED_MODULE_1__","_actions_errorActions__WEBPACK_IMPORTED_MODULE_2__","LogoutListItemButton","apply","arguments","onLogout","classes","_material_ui_core__WEBPACK_IMPORTED_MODULE_1__","root","listItemRoot","button","_material_ui_icons_PowerSettingsNew__WEBPACK_IMPORTED_MODULE_3___default","primary","_material_ui_core__WEBPACK_IMPORTED_MODULE_2__","theme","borderRadius","boxShadow","marginTop","Component","component","isAuthenticated","hasPermission","rest","react_router__WEBPACK_IMPORTED_MODULE_2__","react_router__WEBPACK_IMPORTED_MODULE_1__","to","pathname","from","location","debounce","func","waitMilliseconds","immediate","timeoutId","args","_i","shouldCallNow","clearTimeout","setTimeout","unregisterServiceWorker","serviceWorker","ready","registration","unregister","VideoListItem_VideoListItem","VideoListItem","path","react","NavLink","className","index_es","listItem","primaryTypographyProps","muiName","HelpVideos_VideoListItem","styles","textDecoration","palette","padding",".active &","borderBottom","light","marginBottom","VideoList_VideoList","VideoList","VideoList_extends","videoTitles","list","subheader","key","HelpVideos_VideoList","height","overflow","paddingBottom","link","withRouter","Video_Video","Video","Video_extends","match","decodeURIComponent","params","controls","preload","video","src","hash","HelpVideos_Video","width","customTheme","sm","textAlign","display","maxWidth","maxHeight","marginLeft","marginRight","VideosMasterDetail_VideosMasterDetail","VideosMasterDetail","VideosMasterDetail_extends","withWidth","videoListContainer","videoContainer","Route","exact","Switch","mobileVideoContainer","IE","window","userAgent","indexOf","minWidthSetting","maxWidthSetting","withWidth_default","es","auth","authentication","flex","minWidth","justifyContent","appSettingsApi_AppSettingsApi","AppSettingsApi","GetAppSettings","loadAppSettings","appSettingsActions_awaiter","settings","getVideos","apiErrorHandler","getVideosAction","helpVideosActions_awaiter","commonActionKeys","CustomersApi","Error","getCustomerPreferences","customerId","_common_api_apiErrorHandler__WEBPACK_IMPORTED_MODULE_1__","patchCustomerPreferences","customerPreferences","tokenKey","SystemRole","_interopRequireDefault","defineProperty","exports","default","_react","_default","Fragment","fill","emptyCustomer","id","firstName","phone","last4Ssn","memberNumber","member","initialState","isCustomer","isServiceRep","isSignedIn","serviceRepEmail","holdSecondsRemaining","selectedAppointmentValues","additionalInfo","repSelectCode","src_common_types_branch__WEBPACK_IMPORTED_MODULE_1__","createdBy","category","imageUrl","reasons","appointmentsEnabled","membersOnly","serviceRepOnly","customLocationAddress","reason","categoryId","documentation","wrapUpDurationInMinutes","supportedByAtLeastOneBranch","serviceRep","src_common_types_representative__WEBPACK_IMPORTED_MODULE_3__","timeSlot","appLinkAuditKey","attemptedApptId","appointment","confirmationCode","customerEmail","customerFirstName","customerLast4Ssn","customerLastName","customerPhone","customLocationName","durationInMinutes","endDateTimeUtc","isConfirmed","isCustomLocation","isMobilePhone","serviceRepId","startDateTimeUtc","timeZone","src_common_types_timeZone__WEBPACK_IMPORTED_MODULE_0__","linkHonored","feedbackSubmitted","feedbackScore","virtualAtCreation","virtualMeetingType","virtualMeetingJoinUrl","appointments","appointmentSurvey","appointmentTime","locationName","reasonName","serviceRepName","surveyId","survey","userInitiatedFeedbackEnabled","systemInitiatedFeedbackEnabled","feedbackDaysBetweenSolicit","sampleRate","solicitMessage","threshold","enableThresholdNotification","questions","responses","freeTextResponse","googleMapsApiKey","isInternal","adminHomepageUrl","skypeAppId","twilioConfigured","logoUrl","main","contrastText","secondary","organizationSettings","orgLongName","orgShortName","phoneMeetingLocation","zoomMeetingLocation","feedbackStartExpirationDays","usePreferredAgentRouting","skipAgentSelection","textIsDisabled","disableCustomLocations","appointmentHoldTimeInSeconds","appointmentLeadTimeDays","appointmentLeadTimeConstraints","minValue","maxValue","customConstraint","appointmentWindowDays","appointmentWindowConstraints","sameDayBufferMinutes","sameDayBufferConstraints","meetingDurationConstraints","wrapUpDurationConstraints","skypeSettings","domain","isSkypeOnPrem","enableSkype365Feature","availableServiceReps","timeSlots","calendarInviteEnabled","communicationPreference","feedbackEnabled","remindersEnabled","preferredEmail","preferredPhone","deepLink","deepLinkStatus","_types_deepLink__WEBPACK_IMPORTED_MODULE_2__","closeAppAfterAppt","loadCustomerPreferencesSuccess","preferences","_actionTypeKeys__WEBPACK_IMPORTED_MODULE_1__","LOAD_CUSTOMER_PREFERENCES_SUCCESS","_api_customersApi__WEBPACK_IMPORTED_MODULE_2__","preference","_common_actions_actionErrorHandler__WEBPACK_IMPORTED_MODULE_0__","getDefaultCustomerPreferences","src_internal_api_internalCustomerPrefsApi__WEBPACK_IMPORTED_MODULE_3__","updateCustomerPreferences","updatedPrefs","CUSTOMER_PREFERENCES_UPDATED_SUCCESS","updateCustomerPreferencesSuccess","internalActionKeys","MarketingLinkActions","setDeepLink","SET_DEEP_LINK","setDeepLinkStatus","UPDATE_DEEP_LINK_STATUS","setAppointmentAudit","SET_APPT_AUDIT","_types_deepLink__WEBPACK_IMPORTED_MODULE_1__","_api_marketingLinkApi__WEBPACK_IMPORTED_MODULE_2__","ActionButtons","disabled","onSubmit","onCancel","isSubmitting","src_common_LoadingButton_LoadingButton__WEBPACK_IMPORTED_MODULE_3__","saveButtonText","cancelButtonText","children","margin","spacing","unit","ContentCircularProgress","showLoadingText","handleShowLoadingText","setState","componentDidMount","loadingText","loadingTextDelay","loadingTextDelaySeconds","bind","ignorePrimaryColor","classnames__WEBPACK_IMPORTED_MODULE_3__","progress","useDefaultColor","in","loadingTextParent","grey","CircularProgressBlanket","fadeTime","fadeTimeout","progressContainer","timeout","_general_ContentCircularProgress__WEBPACK_IMPORTED_MODULE_4__","backdrop","_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__","_material_ui_core_styles_createStyles__WEBPACK_IMPORTED_MODULE_3___default","zIndex","modal","alignSelf","top","right","bottom","left","ConfirmDialog","titleText","contentText","confirmButtonText","onCancelClick","onConfirmClick","contentTextClassName","_material_ui_core_Dialog__WEBPACK_IMPORTED_MODULE_1___default","mask","input","CustomerContactSettings","handleIsMobileChange","event","target","checked","validation","src_external_utilities_fieldValidator__WEBPACK_IMPORTED_MODULE_3__","onContactSettingsChanged","validEmail","validPhone","handlePhoneNumberChange","phoneNumber","handlePreferredContactMethodChange","handleEmailChange","emailIsValid","debounceEmailCheck","replaceEmail","sg","suggestedEmail","phoneIsValid","handlePrefix","isMemberExplicit","src_external_utilities_debounce__WEBPACK_IMPORTED_MODULE_4__","customerInfo","getDerivedStateFromProps","nextProps","buildRadioButton","pref","label","textingDisabled","toString","control","placement","_b","_c","prefix","contactNumberContainer","onChange","contactNumberInput","InputProps","inputComponent","src_common_Components_general_PhoneNumberInput__WEBPACK_IMPORTED_MODULE_6__","contactNumberCheck","trim","onDelete","deleteIcon","_material_ui_icons__WEBPACK_IMPORTED_MODULE_5__","flexDirection","flexGrow","menu","menuItems","cursor","enumerable","_Div100vh","obj","__esModule","serviceRepresentativesReducer","IMPORT_NEW_REPS_SUCCESS","GET_BRANCH_REPRESENTATIVES_SUCCESS","representatives","repsCompareFunc","PATCH_BRANCH_REPRESENTATIVES_SUCCESS","patchedRep","filter","concat","mergePatchedRep","representative","_createClass","defineProperties","descriptor","configurable","writable","Constructor","protoProps","staticProps","_react2","_propTypes2","_classnames2","StarRatingComponent","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","subClass","superClass","create","constructor","setPrototypeOf","_inherits","inputValue","_props","editing","index","e","stopPropagation","_props2","onStarClick","_props3","onStarHover","_props4","onStarHoverOut","_this2","_props5","starCount","starColor","emptyStarColor","starStyles","float","radioStyles","starNodes","_loop","starNodeInput","starNodeLabel","htmlFor","onMouseOver","onMouseLeave","renderIcon","push","_props6","renderStarIcon","renderStarIconHalf","Math","ceil","fontStyle","_props7","dv-star-rating-non-editable","renderStars","propTypes","string","isRequired","number","bool","defaultProps","module","strictUriEncode","objectAssign","decodeComponent","encode","opts","strict","encodeURIComponent","extract","str","queryStart","parse","formatter","arrayFormat","accumulator","parserForArrayFormat","ret","forEach","param","parts","shift","val","join","keys","reduce","Boolean","Array","isArray","keysSorter","Number","encoderForArrayFormat","val2","x","parseUrl","query","configureStore","redux__WEBPACK_IMPORTED_MODULE_0__","_reducers__WEBPACK_IMPORTED_MODULE_1__","redux_thunk__WEBPACK_IMPORTED_MODULE_2__","initialStore","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","middlewares","store","redux","authenticationReducer_assign","SCHEDULE_APPOINTMENT_SUCCESS","APPT_HOLD_TIME_REMAINING_CHANGED","timeRemaining","APPT_HOLD_EXPIRED","SET_ATTEMPTED_APPT","CATEGORY_SELECTED","CLEAR_APPOINTMENT_VALUES","REASON_SELECTED","SERVICE_REP_SELECTED","TIME_SLOT_SELECTED","SET_APPOINTMENT_ADDITIONAL_INFO","SET_APPT_REP_SELECT_CODE","SET_APPOINTMENT_CUSTOM_ADDRESS","customAddress","CLEAR_APPOINTMENT","GET_APPOINTMENT_SUCCESS","LOAD_APPOINTMENTS_SUCCESS","appointmentsReducer_assign","CANCEL_APPOINTMENT_SUCCESS","TRANSFER_APPOINTMENT_SUCCESS","customerPreferenceReducer_assign","LOAD_REPRESENTATIVES_SUCCESS","LOAD_TIME_SLOTS_SUCCESS","CLEAR_TIME_SLOTS","videosReducer","PATCH_APPT_SURVEY_SUCCESS","GET_APPT_SURVEY_SUCCESS","deepLinkReducer_assign","deepLinkStatusReducer_assign","CLOSE_APP_AFTER_APPT","Representative","repBelongsToBranch","userId","source","sourcePersonId","inactiveWindows","isCustomerVisible","isEmailFromDna","isEmailValid","isActive","notificationPreference","branchReasons","skypeId","thumbnailUrl","region","roles","rep","some","br","NavItemListItemButton_NavItemListItemButton","NavItemListItemButton","navigate","navItem","icon","Drawer_NavItemListItemButton","AppDrawer_AppDrawer","AppDrawer","handleDrawerClose","history","closeDrawer","AppDrawer_extends","navItems","paper","drawerPaper","anchor","drawerHeader","ChevronLeft_default","drawerContentContainer","drawerContent","n","hideInMenu","Drawer_AppDrawer","authActions","es_withRouter","globalCssVars","alignItems","ApptsAppBar_ApptsAppBar","ApptsAppBar","ApptsAppBar_extends","onIconClick","primaryRgbColor","showCancelButton","tooltipText","rgba","isMobile","backgroundImage","mobileToolbar","webToolbar","iconButton","Menu_default","disableTouchListener","disableHoverListener","icons_index_es","fontSize","cancelButton","mobileTypography","webTitleTypography","noWrap","webDescriptionTypography","common_ApptsAppBar","headerOffset","backgroundSize","backgroundRepeat","backgroundPosition","asyncComponent","importComponent","AsyncComponent","asyncComponent_extends","C","Surveys_Rating","Rating","nextValue","prevValue","Rating_awaiter","surveyQuestion","Rating_assign","rating","handleChangeRating","displayOrder","question","Rating_extends","react_default","react_star_rating_component_default","Appointments_FeedbackRequestDialog","FeedbackRequestDialog","onFeedbackChanged","element","customerFeedback","onConfirmFeedbackRequest","FeedbackRequestDialog_extends","isOpen","onCancelFeedbackRequest","multiline","defaultValue","FeedbackCollectionForm_FeedbackCollectionForm","FeedbackCollectionForm","updateResponseRatingState","FeedbackCollectionForm_awaiter","copy","apptSurvey","FeedbackCollectionForm_assign","found","find","isDirty","handleFreeTextInputChange","currentTarget","handleSave","validateFeedbackRequestForLowScore","completeSave","isSaving","onSave","thresholdScore","responseValue","feedbackRequestDialogOpen","addRequestedFeedbackToSurvey","feedback","cancelFeedbackRequest","handleCancel","initializedApptSurvey","surveyCopy","FeedbackCollectionForm_extends","MobileCard","WebCard","Table","align","Intl","DateTimeFormat","year","month","day","hour","minute","format","Date","abbr","questionToRespondTo","Question","inputProps","maxLength","fullWidth","Surveys_FeedbackCollectionForm","listLeftOffset","fontFamily","wordWrap","ExternalSurveyApi","patchAppointmentSurvey","getAppointmentSurveyForAppointment","apptId","surveyActions_awaiter","surveyApi","getAppointmentSurveySuccess","maskedFreeTextResponse","sensitiveDataMask","patchAppointmentSurveySuccess","AppointmentSurveyPage_AppointmentSurveyPage","AppointmentSurveyPage","AppointmentSurveyPage_awaiter","apptSurveyLoaded","previoulsySubmitted","handleSubmitFeedback","submitFeedback","handleClose","AppointmentSurveyPage_extends","core_withWidth","LoadingCard","Surveys_AppointmentSurveyPage","AppointmentSurveyPage_generator","MemberIdentity","InternalMemberIdentity","Routes_Routes","Routes","getPrivateRoute","PrivateRoute","Routes_extends","logInComp","external_Routes","ownProps","Routes_assign","CustomerSettingsForm_CustomerSettingsForm","CustomerSettingsForm","onPreferenceKeyUpdated","onPreferenceUpdated","CustomerSettingsForm_assign","onPreferenceAndValidationUpdated","contactPrefs","isValid","handlePreferredBranchChange","handleRemindersChange","handleInvitesChange","handleFeedbackChange","CustomerSettingsForm_extends","user","Settings_CustomerSettingsForm","alignContent","CustomerSettingsPage_CustomerSettingsPage","CustomerSettingsPage","preferenceAndValidationUpdated","preferenceUpdated","userUpdated","save","CustomerSettingsPage_awaiter","saving","updatePreferences","cancel","CustomerSettingsPage_assign","getInitialEmail","getInitialPhone","loading","CustomerSettingsPage_extends","prevState","setAppTitle","all","getPreferences","formContainer","buttons","saveButton","Settings_CustomerSettingsPage","appTitleBarActions","customerPreferencesActions","branchActions","CustomerSettingsPage_generator","paddingLeft","background","HelpVideosPage_HelpVideosPage","HelpVideosPage","HelpVideosPage_extends","Help_HelpVideosPage","HelpVideosPage_awaiter","helpVideosActions","ApptWizardContainer","HomePage","helpNavItem","newApptNavItem","PermContactCalendar_default","newApptHomeNavItem","navItems_assign","homeNavItem","Home_default","settingsNavItem","Settings_default","defaultNavItems","allNavItems","internalNavItems","surveyLinkApi","SurveyLinksApi","getLink","App_App","App","openDrawer","drawerOpen","confirmationDialogOpen","closeConfirmModal","routeToHome","configurationLoading","App_extends","appTitle","appTheme","newState","colorUtil","ua","isIPad","isIPhone","scrollBit_1","scrollTo","search","parsed","query_string","l","resolveDeepLink","appointmentId","URLSearchParams","setCloseAfterAppt","init","cancelTooltipText","confirmDialogContent","confirmDialogTitle","showCancel","isSurvey","customerState","lib_default","gtSm","mainContent","external_App","WebkitOverflowScrolling","breakpoints","up","App_assign","App_awaiter","appSettingsActions","_d","marketingLinkActions","customerString","getItem","react_dom","HashRouter","document","getElementById","registerServiceWorker","showErrorMessage","dismissErrorDialog","clearErrorMessage","src_common_actions_commonActionKeys__WEBPACK_IMPORTED_MODULE_0__","c","charCodeAt","toUpperCase","singleMatcher","RegExp","multiMatcher","decodeComponents","components","err","decode","tokens","encodedURI","replaceMap","%FE%FF","%FF%FE","entries","customDecodeURIComponent","arg","_convertStyle","_getWindowHeight","_typeof","Symbol","iterator","_extends","assign","hasOwnProperty","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_defineProperties","_getPrototypeOf","o","_setPrototypeOf","p","_assertThisInitialized","_defineProperty","Div100vh","_React$Component","_getPrototypeOf2","_len","_key","convertedStyle","updateStyle","addEventListener","removeEventListener","_this$props","_this$props$as","as","Element","containsRvh","propertyValue","test","givenStyle","windowHeight","throwOnBadArgs","usedStyle","propertyStringValue","_","rvh","parseFloat","replaceRvhWithPx","documentElement","clientHeight","innerHeight","sortVisitOptions","mapRepToVisitOption","visitOptions","v","sortReasons","visitCompareFn","showBranchInfo","secondaryDescription","AuthApi","authenticate","username","password","authenticateSuccess","AUTHENTICATE_SUCCESS","internalLogout","LOGOUT","internalAuthenticate","authActions_awaiter","authApi","token","lib","localStorage","expDate","exp","js_cookie","expires","defaults","headers","common","Authorization","authHelper","_material_ui_core__WEBPACK_IMPORTED_MODULE_3__","content","src_common_Components_general_ContentCircularProgress__WEBPACK_IMPORTED_MODULE_4__","_material_ui_core_styles_createStyles__WEBPACK_IMPORTED_MODULE_1___default","appBarHeight","_globalCssVars__WEBPACK_IMPORTED_MODULE_1__","mobileStepperHeight","getCustomTheme","customPalette","defaultTheme","_material_ui_core_styles_createMuiTheme__WEBPACK_IMPORTED_MODULE_0___default","listBorderRadius","listStyles","listMargin","&:first-child","&:last-child","backgroundColor","expansionPanelStyles","borderTopRightRadius","borderTopLeftRadius","borderBottomLeftRadius","borderBottomRightRadius","typography","useNextVariants","mixins","toolbar","paddingRight","overrides","MuiExpansionPanel","&:before","expanded","MuiExpansionPanelSummary","MuiList","paddingTop","MuiListItem","MuiListItemText","fontWeight","lineHeight","MuiStepLabel","alternativeLabel","MuiToolbar","gutters","MuiButton","outlinedPrimary","handleApiError","src_internal_WithProviders_WithProviders__WEBPACK_IMPORTED_MODULE_0__","src_internal_actions_authActions__WEBPACK_IMPORTED_MODULE_1__","src_internal_types_authentication__WEBPACK_IMPORTED_MODULE_2__","js_cookie__WEBPACK_IMPORTED_MODULE_3__","checkAuthorizationStatus","_types_authentication__WEBPACK_IMPORTED_MODULE_1__","handleAuthentication","interceptors","request","use","config","addAuthorizationHeader","sub","role","permissions","permission","_actions_authActions__WEBPACK_IMPORTED_MODULE_2__","authorizedBranches","getAuthorizedBranches","_actions_appContextActions__WEBPACK_IMPORTED_MODULE_4__","mapBranchesToUser","ResourceAdmin","availableBranches_1","branchIds_1","Branch","BranchReason","getDefaultBranch","_timeZone__WEBPACK_IMPORTED_MODULE_0__","addressLine1","addressLine2","city","stateCode","zip","sameDayEnabled","getDefaultTimeZone","displayName","genericName","utcOffset","isPhoneValid","validateContactInfo","checkForTypo","libphonenumber_js__WEBPACK_IMPORTED_MODULE_0__","checkForCloseMatch","longString","shortString","includes","firstPart","secondPart","wrongLetterRegEx","extraLetterRegEx","missingLetterRegEx","switchedLetters","checkForDomainTypo","userEmail","leftPart","rightPart","domains_1","checkForNameTypo","temp","normalizedEmail","fixedEmail","userInput","typo","pattern","fix","t","checkForCommonTypos","DateTimeUtilities","moment__WEBPACK_IMPORTED_MODULE_0__","getLocalDateAndTimeString","utcDateString","timezoneOffset","utcDate","getIEFriendlyDate","tzDate","getDateWithOffset","getLocalDateAndTimeStringMobile","date","getLocaleShortTimeFromDate","includeMeridiems","getShortTimeFromDate","getTimezoneOffset","time","toLocaleTimeString","dateString","newDateString","getShortTimeFromTime","getDateFromTime","updateDateTimeTimeZone","dateTime","dayCode","getDaysBetween","fromDate","toDate","timeDiff","abs","getTime","round","getClientOffsetISO","offsetTotalInMinutes","offSetHours","offsetMin","offSetHoursString","offSetMinutesString","isoOffset","minutesToAdd","today","timeParts","minutes","UTC","getUTCFullYear","getUTCMonth","getUTCDate","LoadingButton","spinnerColor","_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_1___default","_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2___default","size","thickness","updateReasons","categories","updatedReason","categoriesCopy","reasonIndex","findIndex","visitOptionUtils","updateCategories","updatedCategory","internalVisitCategoriesReducer_assign","catIndex","reducers_internalVisitCategoriesReducer","reduce_reducers_es","PATCH_CATEGORY_SUCCESS","PATCH_CATEGORY_FAILURE","PATCH_REASON_SUCCESS","PATCH_REASON_FAILURE","virtualMeetingConnection","dnaRepresentatives","appContext","loginUser","BranchStaff","branchAdmins","systemAdmins","allAdminCategories","adminAppSettings","dnaUsername","exchangeUsername","notificationSettings","blackoutStartTime","blackoutEndTime","selectedRegions","allRegions","zoomMeetingApiKey","zoomMeetingApiSecret","reminders","defaultCustomerPrefs","serviceRepresentatives","systemTimeZones","appointmentsListReport","report","volumeReport","serviceLocationReport","marketingLinks","surveyDto","resourceByServiceReport","callDownListReport","serviceLevelsReport","surveyFeedbackDetailsReport","surveyFeedbackSummaryReport","marketingLinkSummaryReport","failedAppointmentAttemptsReport","reportingSyncUpdatedTime","store_initialState","reducers","SAVE_ADMIN_APP_SETTINGS_SUCCESS","adminAppSettingsReducer_assign","GET_ADMIN_CATEGORIES","adminCategories","VIRTUAL_MEETING_CONNECTION_TEST","appContextReducer_assign","GET_APPOINTMENTS_LIST_REPORT_SUCCESS","SAVE_APP_SETTINGS_SUCCESS","internalAppSettingsReducer_assign","SAVE_APP_SETTING_LOGO","SAVE_APP_SETTINGS_FAILURE","authReducer_assign","errors","GET_BRANCH_ADMINS_SUCCESS","PATCH_BRANCH_ADMINS_SUCCESS","PATCH_BRANCH_REASONS_SUCCESS","SAVE_BRANCH_CONFIG_SUCCESS","IMPORT_BRANCHES_SUCCESS","IMPORT_BRANCHES_FAILURE","GET_CALL_DOWN_LIST_REPORT_SUCCESS","GET_DEFAULT_CUST_PREFS_SUCCESS","GET_DEFAULT_CUST_PREFS_FAILURE","PATCH_DEFAULT_CUST_PREFS_SUCCESS","GET_ALL_REPS_FROM_DNA_SUCCESS","GET_MARKETING_LINKS_SUCCESS","links","SAVE_MARKETING_LINK_SUCCESS","DELETE_MARKETING_LINK_SUCCESS","GET_MARKETING_LINK_SUMMARY_REPORT_SUCCESS","GET_REMINDERS_SUCCESS","DELETE_REMINDER_SUCCESS","deletedReminder","SAVE_REMINDER_SUCCESS","savedReminder","GET_RESOURCE_BY_SERVICE_REPORT_SUCCESS","GET_REPORTING_SYNC_UPDATED_TIME","GET_SERVICE_LEVELS_REPORT_SUCCESS","GET_SERVICE_LOC_REPORT_SUCCESS","GET_SURVEY_SUCCESS","PATCH_SURVEY_SUCCESS","GET_SURVEY_FEEDBACK_DETAILS_REPORT_SUCCESS","GET_SURVEY_FEEDBACK_SUMMARY_REPORT_SUCCESS","GET_SYSTEM_TIME_ZONES","GET_VOLUME_REPORT_SUCCESS","GET_FAILED_APPOINTMENT_ATTEMPTS_REPORT_SUCCESS","WithProviders_store","redux_thunk_es","CssBaseline_default"],"mappings":"yFAEAA,EAAAC,EAAAC,EAAA,sBAAAC,IAAAH,EAAAC,EAAAC,EAAA,sBAAAE,IAAAJ,EAAAC,EAAAC,EAAA,sBAAAG,IAAAL,EAAAC,EAAAC,EAAA,sBAAAI,IAAO,IAAMH,EAA+B,KAC/BC,EAAe,GAEfC,EAAU,CACrBE,uBAAwB,GAAKH,EAC7BI,mBAAoB,GAAKJ,EACzBK,mBAAoB,IAAML,EAC1BM,iBAAkB,IAAMN,EACxBO,YAAa,IAAMP,GAGRE,EACX,8JCXFN,EAAAC,EAAAC,EAAA,sBAAAU,IAAAZ,EAAAC,EAAAC,EAAA,sBAAAW,IAAA,IAAAD,EAAA,WAKA,OALA,WAIEE,KAAAC,eAAyB,GAJ3B,GAOAF,EAAA,WAKA,OALA,WACEC,KAAAE,mBAA6B,EAC7BF,KAAAG,oBAA8B,EAC9BH,KAAAI,0BAAoC,EACpCJ,KAAAK,mBAA6B,GAJ/B,qCCTAnB,EAAAC,EAAAC,EAAA,sBAAAkB,IAAA,IAAAC,EAAArB,EAAA,IAAAsB,EAAAtB,EAAA,IAIe,SAASoB,EAAuBG,EAAwBC,GACrE,YAD6C,IAAAD,MAAA,IACrCC,EAAOC,MACb,KAAKJ,EAAA,E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ACE,OAAO/4C,MCLN,IAAM28C,ECFE,SAAwBxsB,GACrC,IAAMC,EAAoBla,OAAema,sCAAwCG,EAAA,EAqBjF,OApBcpwB,OAAAowB,EAAA,EAAApwB,CAAYy5C,EAAS1pB,EAAcC,EAAiBhwB,OAAAowB,EAAA,EAAApwB,CAAgBw8C,EAAA,KDA5C7sB,CAAe6pB,GAMxCj7C,EAAA,WAAC4E,GAAyB,OACvC8O,EAAA,cAAAA,EAAA,cACEA,EAAA,cAACwqC,EAAA56C,EAAW,MACZoQ,EAAA,cAACmE,EAAA,EAAQ,CAAC+Z,MAAOosB,GAAQp5C,EAAM6e","file":"static/js/app.80a0933d.chunk.js","sourcesContent":["import { Breakpoint } from \"@material-ui/core/styles/createBreakpoints\";\r\n\r\nexport const layoutBreakpoint: Breakpoint = \"sm\";\r\nexport const rootFontSize = 16;\r\n\r\nexport const cssVars = {\r\n toolbarMenuButtonWidth: 48 / rootFontSize,\r\n toolbarPaddingLeft: 24 / rootFontSize,\r\n webStepperMinWidth: 250 / rootFontSize,\r\n webToolbarHeight: 150 / rootFontSize,\r\n drawerWidth: 260 / rootFontSize\r\n};\r\n\r\nexport const customBoxShadow =\r\n \"0 0.25rem 0.625rem 0 rgba(0, 0, 0, 0.2), 0.25rem 0 0.5rem 0 rgba(0, 0, 0, 0.14), -0.25rem 0 0.5rem 0 rgba(0, 0, 0, 0.12);\";\r\n","import { Category, Reason } from \"src/common/types/visit\";\r\nimport { Branch } from \"src/common/types/branch\";\r\n\r\nexport class DeepLink {\r\n category?: Category;\r\n reason?: Reason;\r\n branch?: Branch;\r\n anyServiceRep: boolean = false;\r\n}\r\n\r\nexport class DeepLinkStatus {\r\n isDeepLinkLoading: boolean = false;\r\n isDeepLinkResolved: boolean = false;\r\n isServiceRepSkipResolved: boolean = false;\r\n isDeepLinkOveride: boolean = false;\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { commonActionKeys } from \"../actions/commonActionKeys\";\r\nimport { Category } from \"src/common/types/visit\";\r\nimport { sortVisitOptions } from \"../utilities/visitOptionUtils\";\r\n\r\nexport default function visitCategoriesReducer(state: Category[] = [], action: AnyAction): Category[] {\r\n switch (action.type) {\r\n case commonActionKeys.LOAD_VISIT_CATEGORIES_SUCCESS:\r\n return sortVisitOptions([...action.visitCategories]) as Category[];\r\n case commonActionKeys.CLEAR_VISIT_CATEGORIES:\r\n return [];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { BranchHours } from \"../../common/types/branch\";\r\n\r\nexport default function branchHoursReducer(\r\n state: BranchHours[] = initialState.branchHours,\r\n action: AnyAction\r\n): BranchHours[] {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_ALL_BRANCH_HOURS_SUCCESS:\r\n return [...action.hours];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AppSettings } from \"../types/appSettings\";\r\nimport { initialState } from \"../../external/store/initialState\";\r\nimport { actionTypeKeys } from \"../../external/actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\n\r\nexport default function appSettingsReducer(\r\n state: AppSettings = initialState.appSettings,\r\n action: AnyAction\r\n): AppSettings {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_APP_SETTINGS_SUCCESS:\r\n return { ...action.appSettings };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../../external/store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { ErrorMessage } from \"../../external/types/errors\";\r\nimport { commonActionKeys } from \"src/common/actions/commonActionKeys\";\r\n\r\nexport default function errorMessageReducer(\r\n state: ErrorMessage = initialState.errorMessage,\r\n action: AnyAction\r\n): ErrorMessage {\r\n switch (action.type) {\r\n case commonActionKeys.SHOW_ERROR_MESSAGE:\r\n return { ...action.errorMessage };\r\n case commonActionKeys.DISMISS_ERROR_DIALOG:\r\n return {\r\n ...action.errorMessage,\r\n visible: false\r\n };\r\n case commonActionKeys.CLEAR_ERROR_MESSAGE:\r\n return {\r\n visible: false\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { Administrator } from \"src/common/types/administrator\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport function systemAdminsReducer(state: Administrator[] = [], action: AnyAction): Administrator[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SYSTEM_ADMINISTRATORS_SUCCESS:\r\n return [...action.admins].sort(adminsCompareFunc);\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport function adminsCompareFunc(a: Administrator, b: Administrator) {\r\n if (a.lastName.toLowerCase() > b.lastName.toLowerCase()) {\r\n return 1;\r\n } else if (a.lastName.toLowerCase() < b.lastName.toLowerCase()) {\r\n return -1;\r\n } else {\r\n return 0;\r\n }\r\n}\r\n","import { initialState } from \"../../external/store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { VideoResponse } from \"../types/videos\";\r\nimport { commonActionKeys } from \"../actions/commonActionKeys\";\r\n\r\nexport default function appSettingsReducer(\r\n state: VideoResponse = initialState.videos,\r\n action: AnyAction\r\n): VideoResponse {\r\n switch (action.type) {\r\n case commonActionKeys.LOAD_VIDEOS_SUCCESS:\r\n return { ...action.videoRes };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { Dispatch } from \"redux\";\r\nimport { internalActionKeys } from \"./internalActionKeys\";\r\nimport { handleActionError } from \"src/common/actions/actionErrorHandler\";\r\nimport { AppContext } from \"../types/appContext\";\r\nimport { ReduxAction } from \"../types/reduxAction\";\r\n\r\nexport default class AppContextActions {\r\n static updateAppContext = (context: AppContext, dispatchError: boolean = true) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n const payload: ReduxAction = {\r\n type: internalActionKeys.SAVE_APP_CONTEXT,\r\n payload: context\r\n };\r\n dispatch(payload);\r\n return true;\r\n } catch (error) {\r\n handleActionError(error, dispatch, dispatchError);\r\n return false;\r\n }\r\n };\r\n };\r\n}\r\n","import React from \"react\";\r\nimport Cleave from \"cleave.js/react\";\r\nimport { InputBaseComponentProps } from \"@material-ui/core/InputBase\";\r\n\r\nexport default function PhoneNumberInput(props: InputBaseComponentProps) {\r\n const { options, inputRef, ...other } = props;\r\n return (\r\n \r\n );\r\n}\r\n","import { actionTypeKeys } from \"./actionTypeKeys\";\r\nimport { TitleBar } from \"../types/titleBar\";\r\n\r\nexport interface SetAppTitleBar {\r\n type: actionTypeKeys.SET_APP_TITLE_BAR;\r\n appTitleBar: any;\r\n}\r\n\r\nexport const setAppTitleBar = (appTitleBar: TitleBar): SetAppTitleBar => {\r\n return {\r\n type: actionTypeKeys.SET_APP_TITLE_BAR,\r\n appTitleBar\r\n };\r\n};\r\n","import { actionTypeKeys } from \"./actionTypeKeys\";\r\nimport { Dispatch } from \"redux\";\r\nimport { Customer, CustomerInfoDto } from \"../types/customer\";\r\nimport CustomersApi from \"../api/customersApi\";\r\nimport { setAppTitleBar } from \"./appTitleBarActions\";\r\nimport RepresentativesApi from \"../api/representativesApi\";\r\n\r\nexport const authenticationSuccess = (customer: Customer) => {\r\n return {\r\n type: actionTypeKeys.AUTHENTICATION_SUCCESS,\r\n customer\r\n };\r\n};\r\n\r\nexport const guestSignin = () => {\r\n return {\r\n type: actionTypeKeys.GUEST_SIGN_IN\r\n };\r\n};\r\n\r\nexport const authenticationError = (error: any) => {\r\n return {\r\n type: actionTypeKeys.AUTHENTICATION_FAILED,\r\n error\r\n };\r\n};\r\n\r\nexport const logoutSuccess = () => {\r\n return {\r\n type: actionTypeKeys.LOGOUT_SUCCESS\r\n };\r\n};\r\n\r\nexport const signInServiceRepSuccess = (email: string) => {\r\n return {\r\n type: actionTypeKeys.SERVICE_REP_SIGN_IN_SUCCESS,\r\n email\r\n };\r\n};\r\n\r\nexport const appointmentCreatedBy = (name: string) => {\r\n return {\r\n type: actionTypeKeys.APPT_CREATED_BY,\r\n name\r\n };\r\n};\r\n\r\nexport const signInFirstTimeGuest = () => {\r\n return (dispatch: Dispatch) => {\r\n dispatch(guestSignin());\r\n };\r\n};\r\n\r\nexport const validateCustomer = (info: CustomerInfoDto, persist: boolean = true) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n const customer = await CustomersApi.validateCustomer(info);\r\n if (persist) {\r\n sessionStorage.setItem(\"customer\", JSON.stringify(customer));\r\n }\r\n dispatch(authenticationSuccess(customer));\r\n return true;\r\n } catch (error) {\r\n dispatch(authenticationError(error));\r\n return false;\r\n }\r\n };\r\n};\r\n\r\nexport const signInServiceRep = (email: string) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n const valid = await RepresentativesApi.validateRepresentative(email);\r\n if (valid) {\r\n dispatch(signInServiceRepSuccess(email));\r\n dispatch(appointmentCreatedBy(email));\r\n }\r\n return valid;\r\n } catch (error) {\r\n dispatch(authenticationError(error));\r\n return false;\r\n }\r\n };\r\n};\r\n\r\nexport const logout = (dispatch: Dispatch) => {\r\n sessionStorage.removeItem(\"customer\");\r\n dispatch(logoutSuccess());\r\n dispatch(setAppTitleBar({ description: \"\", title: \"\" }));\r\n};\r\n","export enum actionTypeKeys {\r\n APPT_CREATED_BY = \"APPT_CREATED_BY\",\r\n APPT_HOLD_EXPIRED = \"APPT_HOLD_EXPIRED\",\r\n APPT_HOLD_TIME_REMAINING_CHANGED = \"APPT_HOLD_TIME_REMAINING_CHANGED\",\r\n AUTHENTICATION_FAILED = \"AUTHENTICATION_FAILED\",\r\n AUTHENTICATION_SUCCESS = \"AUTHENTICATION_SUCCESS\",\r\n BRANCH_SELECTED = \"BRANCH_SELECTED\",\r\n CATEGORY_SELECTED = \"CATEGORY_SELECTED\",\r\n CANCEL_APPOINTMENT_SUCCESS = \"CANCEL_APPOINTMENT_SUCCESS\",\r\n CLEAR_APPOINTMENT = \"CLEAR_APPOINTMENT\",\r\n CLEAR_APPOINTMENT_VALUES = \"CLEAR_APPOINTMENT_VALUES\",\r\n CLEAR_TIME_SLOTS = \"CLEAR_TIME_SLOTS\",\r\n CLOSE_APP_AFTER_APPT = \"CLOSE_APP_AFTER_APPT\",\r\n CUSTOMER_PREFERENCES_UPDATED_SUCCESS = \"CUSTOMER_PREFERENCES_UPDATED_SUCCESS\",\r\n GET_APPOINTMENT_SUCCESS = \"GET_APPOINTMENT_SUCCESS\",\r\n GET_APPT_SURVEY_SUCCESS = \"GET_APPT_SURVEY_SUCCESS\",\r\n GUEST_SIGN_IN = \"GUEST_SIGN_IN\",\r\n LOAD_ALL_BRANCH_HOURS_SUCCESS = \"LOAD_ALL_BRANCH_HOURS_SUCCESS\",\r\n LOAD_APP_SETTINGS_SUCCESS = \"LOAD_APP_SETTINGS_SUCCESS\",\r\n LOAD_APPOINTMENTS_SUCCESS = \"LOAD_APPOINTMENTS_SUCCESS\",\r\n LOAD_BRANCHES_SUCCESS = \"LOAD_BRANCHES_SUCCESS\",\r\n LOAD_CUSTOMER_PREFERENCES_SUCCESS = \"LOAD_CUSTOMER_PREFERENCES_SUCCESS\",\r\n LOAD_REPRESENTATIVES_SUCCESS = \"LOAD_REPRESENTATIVES_SUCCESS\",\r\n LOAD_TIME_SLOTS_SUCCESS = \"LOAD_TIME_SLOTS_SUCCESS\",\r\n LOGOUT_SUCCESS = \"LOGOUT_SUCCESS\",\r\n PATCH_APPT_SURVEY_SUCCESS = \"PATCH_APPT_SURVEY_SUCCESS\",\r\n REASON_SELECTED = \"REASON_SELECTED\",\r\n SCHEDULE_APPOINTMENT_SUCCESS = \"SCHEDULE_APPOINTMENT_SUCCESS\",\r\n SCHEDULING_APPOINTMENT = \"SCHEDULING_APPOINTMENT\",\r\n SERVICE_REP_SELECTED = \"SERVICE_REP_SELECTED\",\r\n SERVICE_REP_SIGN_IN_SUCCESS = \"SERVICE_REP_SIGN_IN_SUCCESS\",\r\n SET_APPT_AUDIT = \"SET_APPT_AUDIT\",\r\n SET_ATTEMPTED_APPT = \"SET_ATTEMPTED_APPT\",\r\n SET_APPT_REP_SELECT_CODE = \"SET_APPT_REP_SELECT_CODE\",\r\n SET_APP_TITLE_BAR = \"LOAD_APP_TITLE_BAR\",\r\n SET_APPOINTMENT_ADDITIONAL_INFO = \"SET_APPOINTMENT_ADDITIONAL_INFO\",\r\n SET_DEEP_LINK = \"SET_DEEP_LINK\",\r\n TIME_SLOT_SELECTED = \"TIME_SLOT_SELECTED\",\r\n TRANSFER_APPOINTMENT_SUCCESS = \"TRANSFER_APPOINTMENT_SUCCESS\",\r\n UPDATE_DEEP_LINK_STATUS = \"UPDATE_DEEP_LINK_STATUS\"\r\n}\r\n","export interface RGB {\r\n r: number;\r\n g: number;\r\n b: number;\r\n}\r\n\r\nexport const hexToRgb = (hexColor: string): RGB => {\r\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\r\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\r\n hexColor = hexColor.replace(shorthandRegex, (m, r, g, b) => {\r\n return r + r + g + g + b + b;\r\n });\r\n\r\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexColor);\r\n return result\r\n ? {\r\n r: parseInt(result[1], 16),\r\n g: parseInt(result[2], 16),\r\n b: parseInt(result[3], 16)\r\n }\r\n : {\r\n r: parseInt(\"0\", 16),\r\n g: parseInt(\"0\", 16),\r\n b: parseInt(\"0\", 16)\r\n };\r\n};\r\n\r\nexport const hexToRGBA = (hex: string, opacity: number) => {\r\n // ensure opacity within bounds\r\n if (opacity > 1) {\r\n opacity = 1;\r\n }\r\n if (opacity < 0) {\r\n opacity = 0;\r\n }\r\n // remove the hash\r\n hex = hex.charAt(0) === \"#\" ? hex.substr(1) : hex;\r\n if (hex.length === 3) {\r\n // each single char of a hex 3 is the equivalent of a double char in hex 6\r\n let rr = hex.substring(0, 1);\r\n let gg = hex.substring(1, 2);\r\n let bb = hex.substring(2, 3);\r\n hex = `${rr}${rr}${gg}${gg}${bb}${bb}`;\r\n }\r\n //get the r, g, b values converted from hex\r\n let r = parseInt(hex.substring(0, 2), 16);\r\n let g = parseInt(hex.substring(2, 4), 16);\r\n let b = parseInt(hex.substring(4, 6), 16);\r\n\r\n // build the rgba value with r, g, b, and a where a = opacity\r\n return `rgba(${r}, ${g}, ${b}, ${opacity})`;\r\n};\r\n","import { Dispatch } from \"redux\";\r\nimport { showErrorMessage } from \"./errorActions\";\r\n\r\nexport const handleActionError = (error: any, dispatch: Dispatch, dispatchError: boolean = true) => {\r\n if (dispatchError) {\r\n dispatchActionError(error, dispatch);\r\n } else {\r\n throw error;\r\n }\r\n};\r\n\r\nexport const dispatchActionError = (error: any, dispatch: Dispatch): void => {\r\n if (error && error.response && error.response.data && error.response.data.message) {\r\n dispatch(\r\n showErrorMessage({\r\n visible: true,\r\n message: error.response.data.message,\r\n ...error.response.data\r\n })\r\n );\r\n } else if (error && error.message) {\r\n dispatch(\r\n showErrorMessage({\r\n visible: true,\r\n ...error\r\n })\r\n );\r\n } else {\r\n dispatch(\r\n showErrorMessage({\r\n visible: true\r\n })\r\n );\r\n }\r\n};\r\n","import Axios from \"axios\";\r\nimport { handleApiError } from \"src/common/api/apiErrorHandler\";\r\nimport { BaseCustomerPreferences } from \"src/common/types/customerPrefs\";\r\n\r\nexport default class InternalCustomerPrefsApi {\r\n static async patchDefaultPrefs(prefs: BaseCustomerPreferences): Promise {\r\n try {\r\n const response = await Axios.patch(\"./api/customers/preferences/default\", prefs);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n static async getDefaultPrefs(): Promise {\r\n try {\r\n const response = await Axios.get(\"./api/customers/preferences/default\");\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n}\r\n","import axios, { AxiosResponse } from \"axios\";\r\nimport { Branch, BranchHours } from \"../types/branch\";\r\n\r\nexport default class BranchesApi {\r\n static getBranches(reasonId?: number): Promise {\r\n const reqUrl = reasonId !== undefined ? `./api/Branches?reasonId=${reasonId}` : \"./api/Branches\";\r\n return axios\r\n .get(reqUrl)\r\n .then(\r\n (response: AxiosResponse): Branch[] => {\r\n return response.data;\r\n }\r\n )\r\n .catch(error => {\r\n throw error;\r\n });\r\n }\r\n\r\n static async getAllBranchHours(): Promise {\r\n try {\r\n const response = await axios.get(\"./api/Branches/AllBranchHours\");\r\n return response.data;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","import { Branch } from \"../types/branch\";\r\n\r\nexport class GoogleMapsApi {\r\n static GetDistances(position: Position, branches: Branch[]): Promise {\r\n const destinations: google.maps.LatLng[] = branches.map(b => {\r\n return new google.maps.LatLng(b.latitude, b.longitude);\r\n });\r\n\r\n const service = new google.maps.DistanceMatrixService();\r\n const promise = new Promise((resolve, reject) => {\r\n service.getDistanceMatrix(\r\n {\r\n origins: [new google.maps.LatLng(position.coords.latitude, position.coords.longitude)],\r\n destinations,\r\n travelMode: google.maps.TravelMode.DRIVING,\r\n unitSystem: google.maps.UnitSystem.IMPERIAL\r\n },\r\n (response, status) => {\r\n if (status === google.maps.DistanceMatrixStatus.OK) {\r\n resolve(response);\r\n } else {\r\n reject(\"Could not retrieve branch distance\");\r\n }\r\n }\r\n );\r\n });\r\n return promise;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"./actionTypeKeys\";\r\nimport { Branch, BranchHours } from \"../../common/types/branch\";\r\nimport { AnyAction, Dispatch } from \"redux\";\r\nimport BranchesApi from \"../../common/api/branchesApi\";\r\nimport { GoogleMapsApi } from \"../../common/api/googleMapsApi\";\r\nimport { dispatchActionError } from \"src/common/actions/actionErrorHandler\";\r\nimport { DateTimeUtilities } from \"../utilities/dateTimeUtilities\";\r\n\r\nexport const loadBranchesSuccess = (branches: Branch[]): AnyAction => {\r\n return {\r\n type: actionTypeKeys.LOAD_BRANCHES_SUCCESS,\r\n branches\r\n };\r\n};\r\n\r\nexport const loadAllBranchHoursSuccess = (hours: BranchHours[]): AnyAction => {\r\n return {\r\n type: actionTypeKeys.LOAD_ALL_BRANCH_HOURS_SUCCESS,\r\n hours\r\n };\r\n};\r\n\r\nexport const selectBranch = (branch: Branch): AnyAction => {\r\n return {\r\n type: actionTypeKeys.BRANCH_SELECTED,\r\n branch\r\n };\r\n};\r\n\r\nexport const loadAllBranchHours = async (dispatch: Dispatch) => {\r\n try {\r\n const hours = await BranchesApi.getAllBranchHours();\r\n hours.sort(sortBranchHoursByWeekday);\r\n dispatch(loadAllBranchHoursSuccess(hours));\r\n } catch (error) {\r\n dispatchActionError(error, dispatch);\r\n }\r\n};\r\n\r\nexport const loadBranches = (reasonId?: number, loadDistances: boolean = true) => {\r\n return async (dispatch: Dispatch) => {\r\n try {\r\n let branches = await BranchesApi.getBranches(reasonId);\r\n try {\r\n if (branches.length > 0) {\r\n if (loadDistances) {\r\n branches = await loadBranchDistances(branches);\r\n } else {\r\n branches = branches.sort(branchAlphabeticalCompareFunction);\r\n }\r\n }\r\n } finally {\r\n dispatch(loadBranchesSuccess([...branches]));\r\n }\r\n } catch (error) {\r\n dispatchActionError(error, dispatch);\r\n }\r\n };\r\n};\r\n\r\nexport const loadBranchDistances = async (branches: Branch[]): Promise => {\r\n const promise = new Promise((resolve, reject) => {\r\n if (\"geolocation\" in navigator) {\r\n navigator.geolocation.getCurrentPosition(\r\n position => {\r\n GoogleMapsApi.GetDistances(position, [...branches])\r\n .then((res: google.maps.DistanceMatrixResponse) => {\r\n if (res.rows.length > 0 && res.rows[0].elements.length === branches.length) {\r\n const branchesCopy: Branch[] = branches\r\n .map((b, i) => {\r\n if (b.isVirtual) {\r\n return { ...b, distance: { text: \"0 mi\", value: 0 } };\r\n } else {\r\n return { ...b, distance: res.rows[0].elements[i].distance };\r\n }\r\n })\r\n .sort(branchDistanceCompareFunction);\r\n resolve(branchesCopy);\r\n }\r\n resolve(branches);\r\n })\r\n .catch(error => {\r\n reject(error);\r\n });\r\n },\r\n () => {\r\n resolve(branches.sort(branchAlphabeticalCompareFunction));\r\n }\r\n );\r\n } else {\r\n resolve(branches.sort(branchAlphabeticalCompareFunction));\r\n }\r\n });\r\n return promise;\r\n};\r\n\r\nconst branchDistanceCompareFunction = (a: Branch, b: Branch) => {\r\n if (a.distance && b.distance) {\r\n if (b.distance.value > a.distance.value) {\r\n return -1;\r\n } else if (b.distance.value < a.distance.value) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n } else {\r\n return 0;\r\n }\r\n};\r\n\r\nconst branchAlphabeticalCompareFunction = (a: Branch, b: Branch) => {\r\n if (a.name > b.name) {\r\n return 1;\r\n }\r\n if (a.name < b.name) {\r\n return -1;\r\n }\r\n return 0;\r\n};\r\n\r\nconst sortBranchHoursByWeekday = (a: BranchHours, b: BranchHours) => {\r\n const aVal: number = DateTimeUtilities.getWeekdayCodeNumber(a.weekDayCode);\r\n const bVal: number = DateTimeUtilities.getWeekdayCodeNumber(b.weekDayCode);\r\n\r\n if (aVal > bVal) {\r\n return 1;\r\n } else if (aVal < bVal) {\r\n return -1;\r\n } else {\r\n return 0;\r\n }\r\n};\r\n","import axios from \"axios\";\r\nimport { Representative } from \"src/common/types/representative\";\r\nimport { handleApiError } from \"src/common/api/apiErrorHandler\";\r\n\r\nexport default class RepresentativesApi {\r\n static async getRepresentatives(\r\n reasonId?: number,\r\n branchId?: number,\r\n filterByReasonOnly?: boolean\r\n ): Promise {\r\n let url = reasonId && branchId ? `${this.baseUrl}/${reasonId}/${branchId}` : \"./api/ServiceReps\";\r\n\r\n if (filterByReasonOnly) {\r\n url = url + \"?filterByReasonOnly=true\";\r\n }\r\n\r\n try {\r\n const response = await axios.get(url);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n static async validateRepresentative(email: string): Promise {\r\n const url = `${this.baseUrl}/isvalid?email=${email}`;\r\n try {\r\n const response = await axios.get(url);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n static async getServiceRepsForResourceReport(reasonId: string, branchName: string): Promise {\r\n const url = `${this.baseUrl}/getRepsForResourceReport?reasonId=${reasonId}&branchName=${branchName}`;\r\n try {\r\n const response = await axios.get(url);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n private static baseUrl: string = \"./api/ServiceReps\";\r\n}\r\n","import axios, { AxiosResponse } from \"axios\";\r\nimport { handleApiError } from \"src/common/api/apiErrorHandler\";\r\nimport { BranchReason } from \"src/common/types/branch\";\r\nimport { DeepLink } from \"../types/deepLink\";\r\n\r\nexport default class MarketingLinksApi {\r\n static async getDeepLink(publicKey: string): Promise {\r\n let url = this.baseUrl + `/dl/${publicKey}`;\r\n\r\n try {\r\n const response: AxiosResponse = await axios.get(url);\r\n if (response.status === 204) {\r\n return null;\r\n } else {\r\n return response.data;\r\n }\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n static async isBranchAvailable(branchReason: BranchReason): Promise {\r\n const reqUrl = this.baseUrl + `/branchAvailability`;\r\n\r\n try {\r\n //console.log(\"request URL = \" + reqUrl + \" BranchReason is: BranchId\" + branchReason.branchId.toString() + \", \" + \"ReasonId \" + branchReason.reasonId.toString());\r\n const response: AxiosResponse = await axios.post(reqUrl, branchReason);\r\n if (response.status === 204) {\r\n return false;\r\n } else {\r\n return response.data;\r\n }\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n private static baseUrl: string = \"./api/links/marketing\";\r\n}\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { ErrorMessage } from \"../../../external/types/errors\";\r\nimport { dismissErrorDialog, clearErrorMessage } from \"../../actions/errorActions\";\r\nimport { StoreState } from \"../../../external/store/storeState\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport { DialogTitle, DialogContent, DialogActions, Button, Typography } from \"@material-ui/core\";\r\nimport { Dispatch } from \"redux\";\r\n\r\ninterface AppWideErrorModalDataProps {\r\n errorMessage: ErrorMessage;\r\n}\r\n\r\ninterface AppWideErrorModalDispatchProps {\r\n dismiss: (errorMessage: ErrorMessage) => void;\r\n clear: () => void;\r\n}\r\n\r\ninterface AppWideErrorModalProps extends AppWideErrorModalDataProps, AppWideErrorModalDispatchProps {}\r\n\r\nclass AppWideErrorModal extends PureComponent {\r\n constructor(props: AppWideErrorModalProps) {\r\n super(props);\r\n }\r\n\r\n closeDialog = () => {\r\n this.props.dismiss(this.props.errorMessage);\r\n };\r\n\r\n clearMessage = () => {\r\n this.props.clear();\r\n };\r\n\r\n render() {\r\n const { errorMessage } = this.props;\r\n\r\n return (\r\n \r\n {errorMessage.title ? errorMessage.title : \"Sorry!\"}\r\n \r\n {errorMessage.message ? (\r\n errorMessage.message.split(\"\\n\").map(s => {s})\r\n ) : (\r\n \r\n We ran into an issue assisting with your task. Please try again in a minute or contact a support\r\n representative\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\nconst mapStateToProps = (state: StoreState): AppWideErrorModalDataProps => {\r\n return {\r\n errorMessage: state.errorMessage\r\n };\r\n};\r\n\r\nconst mapDispatchToProps = (dispatch: Dispatch): AppWideErrorModalDispatchProps => {\r\n return {\r\n dismiss: (errorMessage: ErrorMessage) => {\r\n dispatch(dismissErrorDialog(errorMessage));\r\n },\r\n clear: () => {\r\n dispatch(clearErrorMessage());\r\n }\r\n };\r\n};\r\n\r\nexport default connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n)(AppWideErrorModal);\r\n","import * as React from \"react\";\r\nimport { ListItem, ListItemIcon, ListItemText, Theme, createStyles } from \"@material-ui/core\";\r\nimport PowerIcon from \"@material-ui/icons/PowerSettingsNew\";\r\nimport { withStyles, WithStyles } from \"@material-ui/core/styles\";\r\n\r\ninterface LogoutListItemButtonProps extends WithStyles {\r\n onLogout: () => void;\r\n}\r\n\r\nclass LogoutListItemButton extends React.PureComponent {\r\n logout = () => {\r\n this.props.onLogout();\r\n };\r\n\r\n render() {\r\n const { classes } = this.props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n listItemRoot: {\r\n borderRadius: 0,\r\n boxShadow: \"none\",\r\n marginTop: 0\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(LogoutListItemButton);\r\n","import * as React from \"react\";\r\nimport { Route, Redirect } from \"react-router\";\r\n\r\n// TODO: AAH Figure out how to type the props here. To make this work, the component\r\n// property is renamed to Component (capitalized) via the parameter destructuring so\r\n// that we can use it like a JSX component in the returned Route component. However,\r\n// when typed properly TS complains that the Component has no constructor.\r\nconst PrivateRoute = ({ component: Component, isAuthenticated, render, hasPermission, ...rest }: any) => {\r\n const getComponent = (props: any) => {\r\n return ;\r\n };\r\n\r\n const getLoginRedirect = (props: any) => {\r\n return ;\r\n };\r\n\r\n if (isAuthenticated) {\r\n if (hasPermission) {\r\n return ;\r\n } else {\r\n return null;\r\n }\r\n } else {\r\n return ;\r\n }\r\n};\r\n\r\nexport default PrivateRoute;\r\n","/**\r\n * A function that emits a side effect and does not return anything.\r\n */\r\nexport type Procedure = (...args: any[]) => void;\r\n\r\nexport function debounce(func: F, waitMilliseconds = 50, immediate: boolean = false): F {\r\n let timeoutId: NodeJS.Timer | undefined;\r\n\r\n return function(this: any, ...args: any[]) {\r\n const context = this;\r\n\r\n const doLater = () => {\r\n timeoutId = undefined;\r\n if (!immediate) {\r\n func.apply(context, args);\r\n }\r\n };\r\n\r\n const shouldCallNow = immediate && timeoutId === undefined;\r\n\r\n if (timeoutId !== undefined) {\r\n clearTimeout(timeoutId);\r\n }\r\n\r\n timeoutId = setTimeout(doLater, waitMilliseconds);\r\n\r\n if (shouldCallNow) {\r\n func.apply(context, args);\r\n }\r\n } as any;\r\n}\r\n","// tslint:disable:no-console\r\n// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the 'N+1' visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nexport function unregisterServiceWorker() {\r\n if (\"serviceWorker\" in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import * as React from \"react\";\r\nimport { WithStyles, withStyles, Theme, createStyles, ListItem, ListItemText } from \"@material-ui/core\";\r\nimport { NavLink } from \"react-router-dom\";\r\n\r\ninterface VideoListItemProps extends WithStyles {\r\n title: string;\r\n path: string;\r\n}\r\n\r\nclass VideoListItem extends React.PureComponent {\r\n static muiName = \"ListItem\";\r\n\r\n render() {\r\n const { title, path, classes, ...rest } = this.props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n textDecoration: \"none\",\r\n color: theme.palette.text.primary\r\n },\r\n listItem: {\r\n padding: \"0.25rem 0 0.25rem 0.5rem\"\r\n },\r\n text: {\r\n \".active &\": {\r\n borderBottom: `3px solid ${theme.palette.primary.light}`,\r\n marginBottom: -3\r\n }\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(VideoListItem);\r\n","import * as React from \"react\";\r\nimport { WithStyles, withStyles, Theme, createStyles, List, ListSubheader } from \"@material-ui/core\";\r\nimport VideoListItem from \"./VideoListItem\";\r\nimport { withRouter, RouteComponentProps } from \"react-router-dom\";\r\n\r\ninterface VideoListProps extends WithStyles, RouteComponentProps {\r\n videoTitles: string[];\r\n path: string;\r\n}\r\n\r\ninterface VideoListState {}\r\n\r\nclass VideoList extends React.PureComponent {\r\n render() {\r\n const { classes, videoTitles, path } = this.props;\r\n\r\n return (\r\n
\r\n Help Topics}>\r\n {videoTitles.map(title => (\r\n \r\n ))}\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n height: \"100%\",\r\n overflow: \"auto\"\r\n },\r\n list: {\r\n paddingBottom: \"2rem\"\r\n },\r\n link: {\r\n textDecoration: \"none\",\r\n color: theme.palette.text.primary\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(withRouter(VideoList));\r\n","import * as React from \"react\";\r\nimport { WithStyles, withStyles, Theme, createStyles, Typography } from \"@material-ui/core\";\r\nimport { RouteComponentProps } from \"react-router-dom\";\r\nimport { appBarHeight } from \"src/customTheme\";\r\n\r\ninterface UrlParams {\r\n title: string;\r\n}\r\n\r\ninterface VideoProps extends WithStyles, RouteComponentProps {\r\n title: string;\r\n path: string;\r\n}\r\n\r\nclass Video extends React.PureComponent {\r\n render() {\r\n const { classes, match } = this.props;\r\n return (\r\n
\r\n \r\n {decodeURIComponent(match.params.title)}\r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n width: \"100%\",\r\n height: `calc(100vh - ${appBarHeight.sm + 10}rem)`\r\n },\r\n title: {\r\n height: \"2.5rem\",\r\n marginBottom: \"1rem\",\r\n textAlign: \"center\"\r\n },\r\n video: {\r\n display: \"block\",\r\n padding: \"1rem\",\r\n maxWidth: \"100%\",\r\n maxHeight: \"100%\",\r\n marginLeft: \"auto\",\r\n marginRight: \"auto\",\r\n /* Setting width & height to auto prevents the browser from stretching or squishing the video */\r\n width: \"auto\",\r\n height: \"auto\"\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(Video);\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { WithStyles, withStyles, Theme, createStyles } from \"@material-ui/core\";\r\nimport VideoList from \"src/common/Components/HelpVideos/VideoList\";\r\nimport { StoreState } from \"src/external/store/storeState\";\r\nimport { CustomerState } from \"src/external/types/authentication\";\r\nimport Video from \"src/common/Components/HelpVideos/Video\";\r\nimport withWidth, { isWidthUp, WithWidth } from \"@material-ui/core/withWidth\";\r\nimport { Switch, Route, RouteComponentProps, withRouter } from \"react-router-dom\";\r\nimport { VideoResponse } from \"src/common/types/videos\";\r\n\r\ninterface VideosMasterDetailReduxProps {\r\n auth: CustomerState;\r\n videoRes: VideoResponse;\r\n}\r\n\r\ninterface VideosMasterDetailProps\r\n extends VideosMasterDetailReduxProps,\r\n WithWidth,\r\n WithStyles,\r\n RouteComponentProps {}\r\n\r\ninterface VideosMasterDetailState {}\r\n\r\nclass VideosMasterDetail extends PureComponent {\r\n render() {\r\n const { classes, width, videoRes } = this.props;\r\n return (\r\n
\r\n {isWidthUp(\"md\", width) ? (\r\n <>\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n ) : (\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n )}\r\n
\r\n );\r\n }\r\n}\r\nconst mapStateToProps = (state: StoreState): VideosMasterDetailReduxProps => {\r\n return {\r\n auth: state.authentication,\r\n videoRes: state.videos\r\n };\r\n};\r\nconst IE = window.navigator.userAgent.indexOf(\"Trident/\") > 0;\r\nlet minWidthSetting = IE ? \"20rem\" : \"30rem\";\r\nlet maxWidthSetting = IE ? \"30rem\" : \"40rem\";\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: \"flex\",\r\n width: \"100%\",\r\n height: \"100%\"\r\n },\r\n videoListContainer: {\r\n flex: 1,\r\n minWidth: minWidthSetting,\r\n maxWidth: maxWidthSetting\r\n },\r\n videoContainer: {\r\n height: \"100%\",\r\n flex: 3,\r\n overflow: \"hidden\"\r\n },\r\n mobileVideoContainer: {\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n overflow: \"hidden\"\r\n }\r\n });\r\n\r\nexport default withWidth()(connect(mapStateToProps)(withStyles(styles)(withRouter(VideosMasterDetail))));\r\n","import Axios from \"axios\";\r\nimport { AppSettings } from \"../types/appSettings\";\r\n\r\nexport class AppSettingsApi {\r\n static async GetAppSettings(): Promise {\r\n try {\r\n const response = await Axios.get(\"./api/appsettings\");\r\n return response.data;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","import { AppSettings } from \"../types/appSettings\";\r\nimport { actionTypeKeys } from \"../../external/actions/actionTypeKeys\";\r\nimport { Dispatch } from \"redux\";\r\nimport { AppSettingsApi } from \"../api/appSettingsApi\";\r\nimport { handleActionError } from \"./actionErrorHandler\";\r\n\r\nexport const loadAppSettingsSuccess = (appSettings: AppSettings) => {\r\n return {\r\n type: actionTypeKeys.LOAD_APP_SETTINGS_SUCCESS,\r\n appSettings\r\n };\r\n};\r\n\r\nexport const loadAppSettings = async (dispatchError: boolean = true) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n const settings = await AppSettingsApi.GetAppSettings();\r\n dispatch(loadAppSettingsSuccess(settings));\r\n return true;\r\n } catch (error) {\r\n handleActionError(error, dispatch, dispatchError);\r\n return false;\r\n }\r\n };\r\n};\r\n","import Axios from \"axios\";\r\nimport { VideoResponse } from \"../types/videos\";\r\nimport { handleApiError } from \"./apiErrorHandler\";\r\n\r\nexport const getVideos = async (path: string): Promise => {\r\n try {\r\n var res = await Axios.get(`./api/videos/${path}`);\r\n return res.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n};\r\n","import { AnyAction, Dispatch } from \"redux\";\r\nimport { getVideos } from \"../api/videosApi\";\r\nimport { handleActionError } from \"./actionErrorHandler\";\r\nimport { VideoResponse } from \"../types/videos\";\r\nimport { commonActionKeys } from \"./commonActionKeys\";\r\n\r\nexport const getVideosSuccess = (videoRes: VideoResponse): AnyAction => {\r\n return {\r\n type: commonActionKeys.LOAD_VIDEOS_SUCCESS,\r\n videoRes\r\n };\r\n};\r\n\r\nexport const getVideosAction = async (path: string, dispatchError: boolean = true) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n const settings = await getVideos(path);\r\n dispatch(getVideosSuccess(settings));\r\n return true;\r\n } catch (error) {\r\n handleActionError(error, dispatch, dispatchError);\r\n return false;\r\n }\r\n };\r\n};\r\n","import axios, { AxiosResponse, AxiosError } from \"axios\";\r\nimport { Customer, CustomerInfoDto } from \"../types/customer\";\r\nimport { CustomerPreferences } from \"../types/customer\";\r\nimport { handleApiError } from \"../../common/api/apiErrorHandler\";\r\n\r\nexport default class CustomersApi {\r\n static validateCustomer(info: CustomerInfoDto): Promise {\r\n return axios\r\n .post(`./api/customers/ValidateCustomer`, info)\r\n .then((response: AxiosResponse) => {\r\n return response.data;\r\n })\r\n .catch((error: AxiosError) => {\r\n if (error.response) {\r\n throw error.response.data;\r\n } else {\r\n throw new Error(\"Unable to verify user\");\r\n }\r\n });\r\n }\r\n\r\n static async getCustomerPreferences(customerId: number): Promise {\r\n try {\r\n const response = await axios.get(`./api/customers/${customerId}/Preferences`);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n static async patchCustomerPreferences(customerPreferences: CustomerPreferences): Promise {\r\n try {\r\n const response = await axios.patch(\r\n `./api/customers/${customerPreferences.customerId}/Preferences`,\r\n {\r\n ...customerPreferences\r\n }\r\n );\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n}\r\n","export const tokenKey = \"id_token\";\r\n\r\nexport interface Token {\r\n sub: string;\r\n name: string;\r\n email: string;\r\n role: string;\r\n username: string;\r\n permission: string[];\r\n branchId?: string;\r\n branches?: string[];\r\n exp: number;\r\n}\r\n\r\nexport interface LoginUser {\r\n id: string;\r\n name: string;\r\n email?: string;\r\n role: SystemRole;\r\n username: string;\r\n permissions: string[];\r\n branchId?: string;\r\n branches?: string[];\r\n}\r\n\r\nexport enum SystemRole {\r\n None = \"None\",\r\n BranchStaff = \"BranchStaff\",\r\n ResourceAdmin = \"ResourceAdmin\",\r\n SystemAdmin = \"SystemAdmin\"\r\n}\r\n\r\nexport interface ChangeAdminCreds {\r\n username: string;\r\n password: string;\r\n}\r\n\r\nexport interface Credentials {\r\n username: string;\r\n password: string;\r\n}\r\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement(\"path\", {\n d: \"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z\"\n}), _react.default.createElement(\"path\", {\n fill: \"none\",\n d: \"M0 0h24v24H0z\"\n})), 'PermContactCalendar');\n\nexports.default = _default;","import { StoreState } from \"./storeState\";\r\nimport { Customer } from \"../types/customer\";\r\nimport { getDefaultTimeZone } from \"src/common/types/timeZone\";\r\nimport { getDefaultBranch } from \"src/common/types/branch\";\r\nimport { DeepLinkStatus } from \"../types/deepLink\";\r\nimport { Representative } from \"src/common/types/representative\";\r\n\r\nconst emptyCustomer: Customer = {\r\n id: -1,\r\n firstName: \"\",\r\n lastName: \"\",\r\n email: \"\",\r\n phone: \"\",\r\n last4Ssn: \"\",\r\n memberNumber: \"\",\r\n member: false\r\n};\r\n\r\nconst initialState: StoreState = {\r\n // Auth\r\n authentication: {\r\n isCustomer: false,\r\n isServiceRep: false,\r\n isSignedIn: false,\r\n customer: {\r\n ...emptyCustomer\r\n },\r\n error: null,\r\n serviceRepEmail: \"\"\r\n },\r\n\r\n // UI\r\n appTitleBar: {\r\n description: \"\",\r\n title: \"\"\r\n },\r\n errorMessage: { visible: false },\r\n holdSecondsRemaining: 300,\r\n selectedAppointmentValues: {\r\n additionalInfo: \"\",\r\n repSelectCode: \"X\",\r\n branch: getDefaultBranch(-1),\r\n createdBy: \"\",\r\n category: {\r\n id: -1,\r\n description: \"\",\r\n name: \"\",\r\n imageUrl: \"\",\r\n reasons: [],\r\n appointmentsEnabled: false,\r\n membersOnly: false,\r\n serviceRepOnly: false\r\n },\r\n customLocationAddress: \"\",\r\n reason: {\r\n appointmentsEnabled: false,\r\n id: -1,\r\n categoryId: -1,\r\n description: \"\",\r\n documentation: \"\",\r\n name: \"\",\r\n imageUrl: \"\",\r\n membersOnly: false,\r\n serviceRepOnly: false,\r\n wrapUpDurationInMinutes: -1,\r\n supportedByAtLeastOneBranch: false\r\n },\r\n serviceRep: new Representative(),\r\n timeSlot: null,\r\n appLinkAuditKey: \"\",\r\n attemptedApptId: -1\r\n },\r\n\r\n // Data\r\n appointment: {\r\n additionalInfo: \"\",\r\n branchId: -1,\r\n confirmationCode: \"\",\r\n createdBy: \"\",\r\n customerEmail: \"\",\r\n customerFirstName: \"\",\r\n customerId: -1,\r\n customerLast4Ssn: \"\",\r\n customerLastName: \"\",\r\n customerPhone: \"\",\r\n customLocationAddress: \"\",\r\n customLocationName: \"\",\r\n durationInMinutes: 0,\r\n endDateTimeUtc: \"\",\r\n id: -1,\r\n isConfirmed: false,\r\n isCustomLocation: false,\r\n isMobilePhone: false,\r\n memberNumber: \"\",\r\n reasonId: -1,\r\n serviceRepId: undefined,\r\n startDateTimeUtc: \"\",\r\n timeZone: getDefaultTimeZone(),\r\n repSelectCode: \"X\",\r\n appLinkAuditKey: \"\",\r\n linkHonored: false,\r\n feedbackSubmitted: false,\r\n feedbackScore: -1,\r\n virtualAtCreation: false,\r\n virtualMeetingType: \"phone\",\r\n virtualMeetingJoinUrl: \"\"\r\n },\r\n appointments: [],\r\n appointmentSurvey: {\r\n id: -1,\r\n appointment: {\r\n id: -1,\r\n appointmentTime: \"\",\r\n locationName: \"\",\r\n timeZone: getDefaultTimeZone(),\r\n reasonName: \"\",\r\n serviceRepName: \"\"\r\n },\r\n surveyId: -1,\r\n survey: {\r\n id: -1,\r\n userInitiatedFeedbackEnabled: false,\r\n systemInitiatedFeedbackEnabled: false,\r\n feedbackDaysBetweenSolicit: -1,\r\n sampleRate: -1,\r\n solicitMessage: \"\",\r\n threshold: -1,\r\n enableThresholdNotification: false,\r\n questions: []\r\n },\r\n responses: [],\r\n freeTextResponse: \"\"\r\n },\r\n appSettings: {\r\n googleMapsApiKey: \"\",\r\n isInternal: false,\r\n adminHomepageUrl: \"\",\r\n skypeAppId: \"\",\r\n twilioConfigured: false,\r\n logoUrl: \"./img/logo.jpg\",\r\n palette: {\r\n primary: {\r\n main: \"\",\r\n contrastText: \"\"\r\n },\r\n secondary: {\r\n main: \"\",\r\n contrastText: \"\"\r\n }\r\n },\r\n organizationSettings: {\r\n orgLongName: \"\",\r\n orgShortName: \"\",\r\n virtualMeetingType: \"phone\",\r\n phoneMeetingLocation: \"\",\r\n zoomMeetingLocation: \"\",\r\n userInitiatedFeedbackEnabled: false,\r\n feedbackStartExpirationDays: 30,\r\n feedbackDaysBetweenSolicit: 0,\r\n usePreferredAgentRouting: false,\r\n skipAgentSelection: false,\r\n textIsDisabled: false,\r\n disableCustomLocations: false,\r\n appointmentHoldTimeInSeconds: 300,\r\n appointmentLeadTimeDays: 1,\r\n appointmentLeadTimeConstraints: {\r\n minValue: 1,\r\n maxValue: 365,\r\n customConstraint: \"\"\r\n },\r\n appointmentWindowDays: 7,\r\n appointmentWindowConstraints: {\r\n minValue: 7,\r\n maxValue: 62,\r\n customConstraint: \"\"\r\n },\r\n sameDayBufferMinutes: 0,\r\n sameDayBufferConstraints: {\r\n minValue: 0,\r\n maxValue: 360,\r\n customConstraint: \"\"\r\n },\r\n meetingDurationConstraints: {\r\n minValue: 0,\r\n maxValue: 240,\r\n customConstraint: \"\"\r\n },\r\n wrapUpDurationConstraints: {\r\n minValue: 0,\r\n maxValue: 60,\r\n customConstraint: \"\"\r\n }\r\n },\r\n skypeSettings: {\r\n domain: \"\",\r\n isSkypeOnPrem: false,\r\n enableSkype365Feature: false\r\n }\r\n },\r\n branches: [],\r\n branchHours: [],\r\n availableServiceReps: [],\r\n timeSlots: [],\r\n customerPreferences: {\r\n calendarInviteEnabled: false,\r\n communicationPreference: \"EMAIL\",\r\n customerId: -1,\r\n feedbackEnabled: false,\r\n remindersEnabled: false,\r\n preferredEmail: \"\",\r\n preferredPhone: \"\",\r\n isMobilePhone: true\r\n },\r\n visitCategories: [],\r\n videos: {\r\n path: \"\",\r\n videoTitles: []\r\n },\r\n deepLink: null,\r\n deepLinkStatus: new DeepLinkStatus(),\r\n closeAppAfterAppt: false\r\n};\r\n\r\nexport { initialState, emptyCustomer };\r\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement(\"path\", {\n d: \"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"\n}), _react.default.createElement(\"path\", {\n fill: \"none\",\n d: \"M0 0h24v24H0z\"\n})), 'ChevronLeft');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement(\"path\", {\n fill: \"none\",\n d: \"M0 0h24v24H0z\"\n}), _react.default.createElement(\"path\", {\n d: \"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z\"\n})), 'Menu');\n\nexports.default = _default;","import { Dispatch, AnyAction } from \"redux\";\r\nimport { dispatchActionError } from \"../../common/actions/actionErrorHandler\";\r\nimport { CustomerPreferences } from \"../types/customer\";\r\nimport { actionTypeKeys } from \"./actionTypeKeys\";\r\nimport CustomersApi from \"../api/customersApi\";\r\nimport InternalCustomerPrefsApi from \"src/internal/api/internalCustomerPrefsApi\";\r\n\r\nconst loadCustomerPreferencesSuccess = (preferences: CustomerPreferences): AnyAction => {\r\n return {\r\n type: actionTypeKeys.LOAD_CUSTOMER_PREFERENCES_SUCCESS,\r\n preferences\r\n };\r\n};\r\n\r\nconst updateCustomerPreferencesSuccess = (preferences: CustomerPreferences): AnyAction => {\r\n return {\r\n type: actionTypeKeys.CUSTOMER_PREFERENCES_UPDATED_SUCCESS,\r\n preferences\r\n };\r\n};\r\n\r\nexport const getCustomerPreferences = (customerId: number) => {\r\n return async (dispatch: Dispatch) => {\r\n try {\r\n const preference = await CustomersApi.getCustomerPreferences(customerId);\r\n dispatch(loadCustomerPreferencesSuccess(preference));\r\n } catch (error) {\r\n dispatchActionError(error, dispatch);\r\n }\r\n };\r\n};\r\n\r\nexport const getDefaultCustomerPreferences = () => {\r\n return async (dispatch: Dispatch) => {\r\n try {\r\n const preference = await InternalCustomerPrefsApi.getDefaultPrefs();\r\n dispatch(\r\n loadCustomerPreferencesSuccess({\r\n ...preference,\r\n preferredEmail: \"\",\r\n preferredPhone: \"\"\r\n })\r\n );\r\n } catch (error) {\r\n dispatchActionError(error, dispatch);\r\n }\r\n };\r\n};\r\n\r\nexport const updateCustomerPreferences = (preferences: CustomerPreferences) => {\r\n return async (dispatch: Dispatch) => {\r\n try {\r\n const updatedPrefs = await CustomersApi.patchCustomerPreferences(preferences);\r\n dispatch(updateCustomerPreferencesSuccess(updatedPrefs));\r\n } catch (error) {\r\n dispatchActionError(error, dispatch);\r\n }\r\n };\r\n};\r\n","import \"core-js/fn/array/find\";\r\nimport \"core-js/fn/array/includes\";\r\nimport \"core-js/fn/number/is-nan\";\r\nimport \"core-js/fn/string/starts-with\";\r\nimport \"core-js/es6/symbol\";\r\nimport \"core-js/fn/symbol/iterator\";\r\nimport \"core-js/fn/array/find-index\";\r\nimport \"core-js/fn/array/some\";\r\nimport \"core-js/fn/object/assign\";\r\nimport \"core-js/fn/string/ends-with\";\r\nimport \"core-js/fn/promise\";\r\nimport \"core-js/fn/string/includes\";\r\n","export enum internalActionKeys {\r\n AUTHENTICATE_SUCCESS = \"AUTHENTICATE_SUCCESS\",\r\n CREATE_NEW_REPRESENTATIVE_SUCCESS = \"CREATE_NEW_REPRESENTATIVE_SUCCESS\",\r\n CREATE_NEW_SYSTEM_ADMINISTRATOR_SUCCESS = \"CREATE_NEW_SYSTEM_ADMINISTRATOR_SUCCESS\",\r\n DELETE_REMINDER_SUCCESS = \"DELETE_REMINDER_SUCCESS\",\r\n DELETE_MARKETING_LINK_SUCCESS = \"DELETE_MARKETING_LINK_SUCCESS\",\r\n GET_MARKETING_LINKS_SUCCESS = \"GET_ACTIVE_MARKETING_LINKS_SUCCESS\",\r\n GET_ADMIN_CATEGORIES = \"GET_ADMIN_CATEGORIES\",\r\n GET_ALL_REPS_FROM_DNA_SUCCESS = \"GET_ALL_REPS_FROM_DNA_SUCCESS\",\r\n GET_APPOINTMENTS_LIST_REPORT_SUCCESS = \"GET_APPOINTMENTS_LIST_REPORT_SUCCESS\",\r\n GET_BRANCH_ADMINS_SUCCESS = \"GET_BRANCH_ADMINS_SUCCESS\",\r\n GET_BRANCH_REPRESENTATIVES_SUCCESS = \"GET_BRANCH_REPRESENTATIVES_SUCCESS\",\r\n GET_DEFAULT_CUST_PREFS_FAILURE = \"GET_DEFAULT_CUST_PREFS_FAILURE\",\r\n GET_DEFAULT_CUST_PREFS_SUCCESS = \"GET_DEFAULT_CUST_PREFS_SUCCESS\",\r\n GET_MARKETING_LINK_SUCCESS = \"GET_MARKETING_LINK_SUCCESS\",\r\n GET_MARKETING_LINK_SUMMARY_REPORT_SUCCESS = \"GET_MARKETING_LINK_SUMMARY_REPORT_SUCCESS\",\r\n GET_REMINDERS_SUCCESS = \"GET_REMINDERS_SUCCESS\",\r\n GET_SERVICE_LOC_REPORT_SUCCESS = \"GET_SERVICE_LOC_REPORT_SUCCESS\",\r\n GET_SURVEY_SUCCESS = \"GET_SURVEY_SUCCESS\",\r\n GET_SYSTEM_TIME_ZONES = \"GET_SYSTEM_TIME_ZONES\",\r\n GET_VOLUME_REPORT_SUCCESS = \"GET_VOLUME_REPORT_SUCCESS\",\r\n GET_RESOURCE_BY_SERVICE_REPORT_SUCCESS = \"GET_RESOURCE_BY_SERVICE_REPORT_SUCCESS\",\r\n GET_REPORTING_SYNC_UPDATED_TIME = \"GET_REPORTING_SYNC_UPDATED_TIME\",\r\n GET_CALL_DOWN_LIST_REPORT_SUCCESS = \"GET_CALL_DOWN_LIST_REPORT_SUCCESS\",\r\n GET_SERVICE_LEVELS_REPORT_SUCCESS = \"GET_SERVICE_LEVELS_REPORT_SUCCESS\",\r\n GET_SYSTEM_ADMINISTRATORS_SUCCESS = \"GET_SYSTEM_ADMINISTRATORS_SUCCESS\",\r\n GET_SURVEY_FEEDBACK_DETAILS_REPORT_SUCCESS = \"GET_SURVEY_FEEDBACK_DETAILS_REPORT_SUCCESS\",\r\n GET_SURVEY_FEEDBACK_SUMMARY_REPORT_SUCCESS = \"GET_SURVEY_FEEDBACK_SUMMARY_REPORT_SUCCESS\",\r\n GET_FAILED_APPOINTMENT_ATTEMPTS_REPORT_SUCCESS = \"GET_FAILED_APPOINTMENT_ATTEMPTS_REPORT_SUCCESS\",\r\n IMPORT_BRANCHES_FAILURE = \"IMPORT_BRANCHES_FAILURE\",\r\n IMPORT_BRANCHES_SUCCESS = \"IMPORT_BRANCHES_SUCCESS\",\r\n IMPORT_NEW_REPS_SUCCESS = \"IMPORT_NEW_REPS_SUCCESS\",\r\n LOGOUT = \"LOGOUT\",\r\n PATCH_BRANCH_ADMINS_SUCCESS = \"PATCH_BRANCH_ADMINS_SUCCESS\",\r\n PATCH_BRANCH_REASONS_SUCCESS = \"PATCH_BRANCH_REASONS_SUCCESS\",\r\n PATCH_BRANCH_REPRESENTATIVES_SUCCESS = \"PATCH_BRANCH_REPRESENTATIVES_SUCCESS\",\r\n PATCH_CATEGORY_FAILURE = \"PATCH_CATEGORY_FAILURE\",\r\n PATCH_CATEGORY_SUCCESS = \"PATCH_CATEGORY_SUCCESS\",\r\n PATCH_DEFAULT_CUST_PREFS_FAILURE = \"PATCH_DEFAULT_CUST_PREFS_FAILURE\",\r\n PATCH_DEFAULT_CUST_PREFS_SUCCESS = \"PATCH_DEFAULT_CUST_PREFS_SUCCESS\",\r\n PATCH_MARKETING_LINK_SUCCESS = \"\",\r\n PATCH_REASON_FAILURE = \"PATCH_REASON_FAILURE\",\r\n PATCH_REASON_SUCCESS = \"PATCH_REASON_SUCCESS\",\r\n PATCH_SURVEY_FAILURE = \"PATCH_SURVEY_FAILURE\",\r\n PATCH_SURVEY_SUCCESS = \"PATCH_SURVEY_SUCCESS\",\r\n REVOKE_SYSTEM_ADMIN_SUCCESS = \"REVOKE_SYSTEM_ADMIN_SUCCESS\",\r\n SAVE_ADMIN_APP_SETTINGS_SUCCESS = \"SAVE_ADMIN_APP_SETTINGS_SUCCESS\",\r\n SAVE_APP_CONTEXT = \"SAVE_APP_CONTEXT\",\r\n SAVE_APP_SETTINGS_FAILURE = \"SAVE_APP_SETTINGS_FAILURE\",\r\n SAVE_APP_SETTING_LOGO = \"SAVE_APP_SETTING_LOGO\",\r\n SAVE_APP_SETTINGS_SUCCESS = \"SAVE_APP_SETTINGS_SUCCESS\",\r\n SAVE_BRANCH_CONFIG_SUCCESS = \"SAVE_BRANCH_CONFIG_SUCCESS\",\r\n SAVE_MARKETING_LINK_SUCCESS = \"SAVE_MARKETING_LINK_SUCCESS\",\r\n SAVE_REMINDER_SUCCESS = \"SAVE_REMINDER_SUCCESS\",\r\n SET_ACTIVE_REPORT_NAME = \"SET_ACTIVE_REPORT_NAME\",\r\n SET_APPOINTMENT_CUSTOM_ADDRESS = \"SET_APPOINTMENT_CUSTOM_ADDRESS\",\r\n VIRTUAL_MEETING_CONNECTION_TEST = \"VIRTUAL_MEETING_CONNECTION_TEST\"\r\n}\r\n","export enum commonActionKeys {\r\n LOAD_BRANCHES_SUCCESS = \"LOAD_BRANCHES_SUCCESS\",\r\n CLEAR_ERROR_MESSAGE = \"CLEAR_ERROR_MESSAGE\",\r\n CLEAR_VISIT_CATEGORIES = \"CLEAR_VISIT_CATEGORIES\",\r\n DISMISS_ERROR_DIALOG = \"DISMISS_ERROR_DIALOG\",\r\n LOAD_VISIT_CATEGORIES_SUCCESS = \"LOAD_VISIT_CATEGORIES_SUCCESS\",\r\n SHOW_ERROR_MESSAGE = \"SHOW_ERROR_MESSAGE\",\r\n LOAD_VIDEOS_SUCCESS = \"LOAD_VIDEOS_SUCCESS\"\r\n}\r\n","import { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { DeepLink, DeepLinkStatus } from \"../types/deepLink\";\r\nimport { AnyAction, Dispatch } from \"redux\";\r\nimport MarketingLinksApi from \"../api/marketingLinkApi\";\r\n\r\nexport default class MarketingLinkActions {\r\n static setDeepLink = (link: DeepLink): AnyAction => {\r\n return {\r\n type: actionTypeKeys.SET_DEEP_LINK,\r\n payload: link\r\n };\r\n };\r\n\r\n static setDeepLinkStatus = (status: DeepLinkStatus): AnyAction => {\r\n return {\r\n type: actionTypeKeys.UPDATE_DEEP_LINK_STATUS,\r\n payload: status\r\n };\r\n };\r\n\r\n static setAppointmentAudit = (id: string): AnyAction => {\r\n return {\r\n type: actionTypeKeys.SET_APPT_AUDIT,\r\n payload: id\r\n };\r\n };\r\n\r\n static getDeepLink = (id: string) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n const status: DeepLinkStatus = new DeepLinkStatus();\r\n status.isDeepLinkLoading = true;\r\n try {\r\n dispatch(MarketingLinkActions.setDeepLinkStatus(status));\r\n const link = await MarketingLinksApi.getDeepLink(id);\r\n if (link) {\r\n await dispatch(MarketingLinkActions.setDeepLink(link));\r\n\r\n status.isDeepLinkResolved = true;\r\n await dispatch(MarketingLinkActions.setDeepLinkStatus(status));\r\n\r\n dispatch(MarketingLinkActions.setAppointmentAudit(id));\r\n }\r\n return true;\r\n } catch (error) {\r\n return false;\r\n } finally {\r\n status.isDeepLinkLoading = false;\r\n dispatch(MarketingLinkActions.setDeepLinkStatus(status));\r\n }\r\n };\r\n };\r\n}\r\n","import * as React from \"react\";\r\nimport { WithStyles, withStyles, Theme, createStyles, Button } from \"@material-ui/core\";\r\nimport LoadingButton from \"src/common/LoadingButton/LoadingButton\";\r\n\r\ninterface ActionButtonsProps extends WithStyles {\r\n disabled: boolean;\r\n isSubmitting: boolean;\r\n onSubmit: () => void;\r\n onCancel: () => void;\r\n className?: string;\r\n saveButtonText?: string;\r\n cancelButtonText?: string;\r\n}\r\n\r\nclass ActionButtons extends React.PureComponent {\r\n render() {\r\n const { classes, disabled, onSubmit, onCancel, className, isSubmitting } = this.props;\r\n return (\r\n
\r\n \r\n {this.props.saveButtonText ? this.props.saveButtonText : \"Save\"}\r\n \r\n \r\n {this.props.cancelButtonText ? this.props.cancelButtonText : \"Cancel\"}\r\n \r\n {!!this.props.children && {this.props.children}}\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n button: {\r\n margin: `${theme.spacing.unit}rem`,\r\n marginLeft: 0\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(ActionButtons);\r\n","import * as React from \"react\";\r\nimport { WithStyles, withStyles, Theme, createStyles, CircularProgress, Typography, Fade } from \"@material-ui/core\";\r\nimport * as classNames from \"classnames\";\r\n\r\nexport interface ContentCircularProgressProps {\r\n loadingText?: string;\r\n loadingTextDelaySeconds?: number;\r\n className?: string;\r\n ignorePrimaryColor?: boolean;\r\n}\r\n\r\ninterface ContentCircularProgressState {\r\n showLoadingText: boolean;\r\n}\r\n\r\ninterface ContentCircularProgressOwnProps extends ContentCircularProgressProps, WithStyles {}\r\n\r\nclass ContentCircularProgress extends React.PureComponent<\r\n ContentCircularProgressOwnProps,\r\n ContentCircularProgressState\r\n> {\r\n state = {\r\n showLoadingText: false\r\n };\r\n\r\n handleShowLoadingText = () => {\r\n this.setState({\r\n showLoadingText: true\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n if (this.props.loadingText) {\r\n let loadingTextDelay = 0;\r\n if (this.props.loadingTextDelaySeconds) {\r\n loadingTextDelay = this.props.loadingTextDelaySeconds * 1000;\r\n }\r\n\r\n if (loadingTextDelay > 0) {\r\n setTimeout(this.handleShowLoadingText.bind(this), loadingTextDelay);\r\n } else {\r\n this.handleShowLoadingText();\r\n }\r\n }\r\n }\r\n\r\n render() {\r\n const { classes, loadingText, className, ignorePrimaryColor } = this.props;\r\n const { showLoadingText } = this.state;\r\n return (\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n {loadingText}\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n overflow: \"hidden\"\r\n },\r\n progress: {\r\n margin: theme.spacing.unit * 2 + \"rem\"\r\n },\r\n loadingTextParent: {\r\n maxWidth: \"20rem\",\r\n margin: \"auto\",\r\n textAlign: \"center\"\r\n },\r\n loadingText: {\r\n color: theme.palette.grey[500]\r\n },\r\n useDefaultColor: {\r\n color: \"grey\"\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(ContentCircularProgress);\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport { Portal, Backdrop, Card, CardContent, Fade } from \"@material-ui/core\";\r\nimport { withStyles, WithStyles, Theme } from \"@material-ui/core/styles\";\r\nimport createStyles from \"@material-ui/core/styles/createStyles\";\r\nimport ContentCircularProgress, { ContentCircularProgressProps } from \"./general/ContentCircularProgress\";\r\n\r\ninterface CircularProgressBlanketOwnProps extends ContentCircularProgressProps, WithStyles {\r\n fadeTime?: number;\r\n}\r\n\r\nclass CircularProgressBlanket extends PureComponent {\r\n render() {\r\n const { classes, fadeTime } = this.props;\r\n let fadeTimeout = 700;\r\n if (fadeTime) {\r\n fadeTimeout = fadeTime;\r\n }\r\n return (\r\n \r\n <>\r\n
\r\n {this.props.loadingText ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n )}\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n progress: {\r\n zIndex: theme.zIndex.modal + 1,\r\n alignSelf: \"center\"\r\n },\r\n progressContainer: {\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n position: \"absolute\",\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n left: 0\r\n },\r\n backdrop: {\r\n zIndex: theme.zIndex.modal\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(CircularProgressBlanket);\r\n","import * as React from \"react\";\r\nimport Dialog, { DialogProps } from \"@material-ui/core/Dialog\";\r\nimport { DialogTitle, DialogContent, Typography, DialogActions, Button } from \"@material-ui/core\";\r\n\r\ninterface ConfirmDialogProps extends DialogProps {\r\n titleText: string;\r\n contentText: string;\r\n cancelButtonText?: string;\r\n confirmButtonText?: string;\r\n onCancelClick?: (e: React.MouseEvent) => void;\r\n onConfirmClick?: (e: React.MouseEvent) => void;\r\n contentTextClassName?: string;\r\n}\r\n\r\nclass ConfirmDialog extends React.PureComponent {\r\n render() {\r\n const {\r\n titleText,\r\n contentText,\r\n confirmButtonText,\r\n cancelButtonText,\r\n onCancelClick,\r\n onConfirmClick,\r\n contentTextClassName,\r\n ...other\r\n } = this.props;\r\n return (\r\n \r\n {titleText}\r\n \r\n {contentText != null && {contentText}}\r\n {this.props.children}\r\n \r\n \r\n {onCancelClick && (\r\n \r\n )}\r\n {onConfirmClick && (\r\n \r\n )}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default ConfirmDialog;\r\n","export default function mask(input: string) {\r\n let masked;\r\n // visa style card #\r\n masked = input.replace(/\\b(?:\\d{4}[ -.]?){3}(?=\\d{4}\\b)/g, \"****\");\r\n // amex style card #\r\n masked = masked.replace(/\\b(?:\\d{4}[ -.]?\\d{6}[ -.]?)(?=\\d{5}\\b)/g, \"****\");\r\n // ssn #\r\n masked = masked.replace(/\\b(?:\\d{3}[ -.]?\\d{2}[ -.]?)(?=\\d{4}\\b)/g, \"****\");\r\n return masked;\r\n}\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport {\r\n WithStyles,\r\n withStyles,\r\n Theme,\r\n createStyles,\r\n FormGroup,\r\n TextField,\r\n FormControlLabel,\r\n Checkbox,\r\n Chip,\r\n FormControl,\r\n Tooltip,\r\n FormLabel,\r\n RadioGroup,\r\n Radio,\r\n Typography\r\n} from \"@material-ui/core\";\r\nimport { validateContactInfo, checkForTypo } from \"src/external/utilities/fieldValidator\";\r\nimport { CommunicationPreferencesType, ContactPreferences } from \"src/common/types/customerPrefs\";\r\nimport { debounce } from \"src/external/utilities/debounce\";\r\nimport { CustomerInfo } from \"src/external/types/customer\";\r\nimport { Done } from \"@material-ui/icons\";\r\nimport PhoneNumberInput from \"src/common/Components/general/PhoneNumberInput\";\r\n\r\ninterface CustomerContactSettingsState {\r\n emailIsValid: boolean;\r\n phoneIsValid: boolean;\r\n suggestedEmail: string;\r\n}\r\n\r\ninterface CustomerContactSettingsProps extends WithStyles {\r\n customerInfo: CustomerInfo;\r\n preferences: ContactPreferences;\r\n margin?: \"normal\" | \"none\" | \"dense\" | undefined;\r\n isMemberExplicit?: boolean;\r\n phoneIsRequired?: boolean;\r\n isCustomer?: boolean;\r\n onContactSettingsChanged: (settings: ContactPreferences, isValid: boolean) => void;\r\n textIsDisabled?: boolean;\r\n}\r\n\r\nclass CustomerContactSettings extends PureComponent {\r\n static getDerivedStateFromProps(nextProps: CustomerContactSettingsProps) {\r\n const validation = validateContactInfo(\r\n nextProps.preferences.communicationPreference,\r\n nextProps.preferences.phone,\r\n nextProps.preferences.email\r\n );\r\n return {\r\n emailIsValid: validation.validEmail,\r\n phoneIsValid: validation.validPhone\r\n };\r\n }\r\n\r\n private debounceEmailCheck: () => void;\r\n\r\n constructor(props: CustomerContactSettingsProps) {\r\n super(props);\r\n\r\n const validation = validateContactInfo(\r\n props.preferences.communicationPreference,\r\n props.preferences.phone,\r\n props.preferences.email\r\n );\r\n props.onContactSettingsChanged(props.preferences, validation.validEmail && validation.validPhone);\r\n\r\n this.state = {\r\n emailIsValid: validation.validEmail,\r\n phoneIsValid: validation.validPhone,\r\n suggestedEmail: \"\"\r\n };\r\n\r\n this.debounceEmailCheck = debounce(() => {\r\n const emailIsValid = this.state.emailIsValid;\r\n if (emailIsValid) {\r\n const suggestedEmail = checkForTypo(\r\n this.props.customerInfo.firstName,\r\n this.props.customerInfo.lastName,\r\n this.props.preferences.email\r\n );\r\n if (suggestedEmail) {\r\n this.setState({ suggestedEmail, emailIsValid });\r\n } else {\r\n this.setState({ suggestedEmail: \"\", emailIsValid });\r\n }\r\n } else {\r\n this.setState({\r\n suggestedEmail: \"\"\r\n });\r\n }\r\n }, 500);\r\n }\r\n\r\n handleIsMobileChange = (event: React.ChangeEvent) => {\r\n const isMobilePhone = event.target.checked;\r\n const communicationPreference: CommunicationPreferencesType = !isMobilePhone\r\n ? \"EMAIL\"\r\n : this.props.preferences.communicationPreference;\r\n\r\n const validation = validateContactInfo(\r\n communicationPreference,\r\n this.props.preferences.phone,\r\n this.props.preferences.email\r\n );\r\n\r\n this.props.onContactSettingsChanged(\r\n { ...this.props.preferences, isMobilePhone: event.target.checked },\r\n validation.validEmail && validation.validPhone\r\n );\r\n };\r\n\r\n handlePhoneNumberChange = (phoneNumber: React.ChangeEvent) => {\r\n const validation = validateContactInfo(\r\n this.props.preferences.communicationPreference,\r\n phoneNumber.target.value,\r\n this.props.preferences.email\r\n );\r\n\r\n this.props.onContactSettingsChanged(\r\n { ...this.props.preferences, phone: phoneNumber.target.value },\r\n validation.validEmail && validation.validPhone\r\n );\r\n };\r\n\r\n handlePreferredContactMethodChange = (event: React.ChangeEvent) => {\r\n if (this.props.textIsDisabled) {\r\n if ((event.target.value as CommunicationPreferencesType) == \"TEXT\") {\r\n return;\r\n }\r\n }\r\n const validation = validateContactInfo(\r\n event.target.value as CommunicationPreferencesType,\r\n this.props.preferences.phone,\r\n this.props.preferences.email\r\n );\r\n\r\n this.props.onContactSettingsChanged(\r\n { ...this.props.preferences, communicationPreference: event.target.value as CommunicationPreferencesType },\r\n validation.validEmail && validation.validPhone\r\n );\r\n };\r\n\r\n handleEmailChange = (email: React.ChangeEvent) => {\r\n const validation = validateContactInfo(\r\n this.props.preferences.communicationPreference,\r\n this.props.preferences.phone,\r\n email.target.value\r\n );\r\n\r\n this.setState({ emailIsValid: validation.validEmail }, () => {\r\n this.debounceEmailCheck();\r\n });\r\n\r\n this.props.onContactSettingsChanged(\r\n { ...this.props.preferences, email: email.target.value },\r\n validation.validEmail && validation.validPhone\r\n );\r\n };\r\n\r\n replaceEmail = () => {\r\n const sg = this.state.suggestedEmail;\r\n this.setState({\r\n suggestedEmail: \"\"\r\n });\r\n this.props.onContactSettingsChanged(\r\n { ...this.props.preferences, email: sg },\r\n this.state.emailIsValid && this.state.phoneIsValid\r\n );\r\n };\r\n\r\n handlePrefix = () => {\r\n if (this.props.isMemberExplicit) {\r\n return \"Visitor's \";\r\n }\r\n return \"\";\r\n };\r\n\r\n buildRadioButton(pref: CommunicationPreferencesType, label: string, textingDisabled?: boolean) {\r\n const radioButton = (\r\n \r\n \r\n \r\n ) : (\r\n \r\n )\r\n }\r\n label={\r\n textingDisabled ? (\r\n {label}\r\n ) : (\r\n {label}\r\n )\r\n }\r\n />\r\n );\r\n\r\n return radioButton;\r\n }\r\n\r\n render() {\r\n const { classes, textIsDisabled } = this.props;\r\n const { emailIsValid, phoneIsValid } = this.state;\r\n const { margin } = this.props;\r\n const { communicationPreference, email, phone, isMobilePhone } = this.props.preferences;\r\n\r\n const prefix = this.handlePrefix();\r\n const phoneText = \"Contact Number\";\r\n const emailText = \"Contact Email\";\r\n\r\n return (\r\n <>\r\n \r\n \r\n }\r\n label=\"Mobile?\"\r\n className={classes.contactNumberCheck}\r\n />\r\n \r\n \r\n {this.state.suggestedEmail && (\r\n }\r\n />\r\n )}\r\n \r\n Preferred Method Of Contact\r\n \r\n {this.buildRadioButton(\"EMAIL\", \"Email\")}\r\n {this.buildRadioButton(\"TEXT\", \"Text\", textIsDisabled)}\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n contactNumberContainer: {\r\n display: \"flex\",\r\n flexDirection: \"row\"\r\n },\r\n contactNumberInput: {\r\n flexGrow: 1\r\n },\r\n contactNumberCheck: {\r\n alignSelf: \"flex-end\"\r\n },\r\n menu: {\r\n padding: 0\r\n },\r\n menuItems: {\r\n borderRadius: 0,\r\n boxShadow: \"none\",\r\n marginTop: 0\r\n },\r\n disabled: {\r\n color: `rgba(0, 0, 0, 0.26)`,\r\n cursor: \"default\"\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(CustomerContactSettings);\r\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _Div100vh.default;\n }\n});\n\nrequire(\"./polyfill\");\n\nvar _Div100vh = _interopRequireDefault(require(\"./Div100vh\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}","import { Representative } from \"src/common/types/representative\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport default function serviceRepresentativesReducer(\r\n state: Representative[] = [],\r\n action: AnyAction\r\n): Representative[] {\r\n switch (action.type) {\r\n case internalActionKeys.IMPORT_NEW_REPS_SUCCESS:\r\n case internalActionKeys.GET_BRANCH_REPRESENTATIVES_SUCCESS:\r\n return [...action.representatives.sort(repsCompareFunc)];\r\n case internalActionKeys.PATCH_BRANCH_REPRESENTATIVES_SUCCESS:\r\n return mergePatchedRep(state, action.representative);\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport function repsCompareFunc(a: Representative, b: Representative) {\r\n if (a.lastName.toLowerCase() > b.lastName.toLowerCase()) {\r\n return 1;\r\n } else if (a.lastName.toLowerCase() < b.lastName.toLowerCase()) {\r\n return -1;\r\n } else {\r\n return 0;\r\n }\r\n}\r\n\r\nfunction mergePatchedRep(state: Representative[], patchedRep: Representative) {\r\n return [\r\n ...state.filter(r => r.id < patchedRep.id),\r\n { ...patchedRep },\r\n ...state.filter(r => r.id > patchedRep.id)\r\n ].sort(repsCompareFunc);\r\n}\r\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar StarRatingComponent = function (_Component) {\n _inherits(StarRatingComponent, _Component);\n\n function StarRatingComponent(props) {\n _classCallCheck(this, StarRatingComponent);\n\n var _this = _possibleConstructorReturn(this, (StarRatingComponent.__proto__ || Object.getPrototypeOf(StarRatingComponent)).call(this));\n\n _this.state = {\n value: props.value\n };\n return _this;\n }\n\n _createClass(StarRatingComponent, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var value = nextProps.value;\n\n if (value != null && value !== this.state.value) {\n this.setState({\n value: value\n });\n }\n }\n }, {\n key: 'onChange',\n value: function onChange(inputValue) {\n var _props = this.props,\n editing = _props.editing,\n value = _props.value;\n\n if (!editing) {\n return;\n } // do not update internal state based on input value if prop passed\n\n\n if (value != null) {\n return;\n }\n\n this.setState({\n value: inputValue\n });\n }\n }, {\n key: 'onStarClick',\n value: function onStarClick(index, value, name, e) {\n e.stopPropagation();\n var _props2 = this.props,\n onStarClick = _props2.onStarClick,\n editing = _props2.editing;\n\n if (!editing) {\n return;\n }\n\n onStarClick && onStarClick(index, value, name, e);\n }\n }, {\n key: 'onStarHover',\n value: function onStarHover(index, value, name, e) {\n e.stopPropagation();\n var _props3 = this.props,\n onStarHover = _props3.onStarHover,\n editing = _props3.editing;\n\n if (!editing) {\n return;\n }\n\n onStarHover && onStarHover(index, value, name, e);\n }\n }, {\n key: 'onStarHoverOut',\n value: function onStarHoverOut(index, value, name, e) {\n e.stopPropagation();\n var _props4 = this.props,\n onStarHoverOut = _props4.onStarHoverOut,\n editing = _props4.editing;\n\n if (!editing) {\n return;\n }\n\n onStarHoverOut && onStarHoverOut(index, value, name, e);\n }\n }, {\n key: 'renderStars',\n value: function renderStars() {\n var _this2 = this;\n\n var _props5 = this.props,\n name = _props5.name,\n starCount = _props5.starCount,\n starColor = _props5.starColor,\n emptyStarColor = _props5.emptyStarColor,\n editing = _props5.editing;\n var value = this.state.value;\n\n var starStyles = function starStyles(i, value) {\n return {\n float: 'right',\n cursor: editing ? 'pointer' : 'default',\n color: value >= i ? starColor : emptyStarColor\n };\n };\n\n var radioStyles = {\n display: 'none',\n position: 'absolute',\n marginLeft: -9999\n }; // populate stars\n\n var starNodes = [];\n\n var _loop = function _loop(i) {\n var id = name + '_' + i;\n\n var starNodeInput = _react2.default.createElement('input', {\n key: 'input_' + id,\n style: radioStyles,\n className: 'dv-star-rating-input',\n type: 'radio',\n name: name,\n id: id,\n value: i,\n checked: value === i,\n onChange: _this2.onChange.bind(_this2, i, name)\n });\n\n var starNodeLabel = _react2.default.createElement('label', {\n key: 'label_' + id,\n style: starStyles(i, value),\n className: 'dv-star-rating-star ' + (value >= i ? 'dv-star-rating-full-star' : 'dv-star-rating-empty-star'),\n htmlFor: id,\n onClick: function onClick(e) {\n return _this2.onStarClick(i, value, name, e);\n },\n onMouseOver: function onMouseOver(e) {\n return _this2.onStarHover(i, value, name, e);\n },\n onMouseLeave: function onMouseLeave(e) {\n return _this2.onStarHoverOut(i, value, name, e);\n }\n }, _this2.renderIcon(i, value, name, id));\n\n starNodes.push(starNodeInput);\n starNodes.push(starNodeLabel);\n };\n\n for (var i = starCount; i > 0; i--) {\n _loop(i);\n }\n\n return starNodes.length ? starNodes : null;\n }\n }, {\n key: 'renderIcon',\n value: function renderIcon(index, value, name, id) {\n var _props6 = this.props,\n renderStarIcon = _props6.renderStarIcon,\n renderStarIconHalf = _props6.renderStarIconHalf;\n\n if (typeof renderStarIconHalf === 'function' && Math.ceil(value) === index && value % 1 !== 0) {\n return renderStarIconHalf(index, value, name, id);\n }\n\n if (typeof renderStarIcon === 'function') {\n return renderStarIcon(index, value, name, id);\n }\n\n return _react2.default.createElement('i', {\n key: 'icon_' + id,\n style: {\n fontStyle: 'normal'\n }\n }, \"\\u2605\");\n }\n }, {\n key: 'render',\n value: function render() {\n var _props7 = this.props,\n editing = _props7.editing,\n className = _props7.className;\n var classes = (0, _classnames2.default)('dv-star-rating', {\n 'dv-star-rating-non-editable': !editing\n }, className);\n return _react2.default.createElement('div', {\n style: {\n display: 'inline-block',\n position: 'relative'\n },\n className: classes\n }, this.renderStars());\n }\n }]);\n\n return StarRatingComponent;\n}(_react.Component);\n\nStarRatingComponent.propTypes = {\n name: _propTypes2.default.string.isRequired,\n value: _propTypes2.default.number,\n editing: _propTypes2.default.bool,\n starCount: _propTypes2.default.number,\n starColor: _propTypes2.default.string,\n onStarClick: _propTypes2.default.func,\n onStarHover: _propTypes2.default.func,\n onStarHoverOut: _propTypes2.default.func,\n renderStarIcon: _propTypes2.default.func,\n renderStarIconHalf: _propTypes2.default.func\n};\nStarRatingComponent.defaultProps = {\n starCount: 5,\n editing: true,\n starColor: '#ffb400',\n emptyStarColor: '#333'\n};\nexports.default = StarRatingComponent;\nmodule.exports = exports['default'];","'use strict';\n\nvar strictUriEncode = require('strict-uri-encode');\n\nvar objectAssign = require('object-assign');\n\nvar decodeComponent = require('decode-uri-component');\n\nfunction encoderForArrayFormat(opts) {\n switch (opts.arrayFormat) {\n case 'index':\n return function (key, value, index) {\n return value === null ? [encode(key, opts), '[', index, ']'].join('') : [encode(key, opts), '[', encode(index, opts), ']=', encode(value, opts)].join('');\n };\n\n case 'bracket':\n return function (key, value) {\n return value === null ? encode(key, opts) : [encode(key, opts), '[]=', encode(value, opts)].join('');\n };\n\n default:\n return function (key, value) {\n return value === null ? encode(key, opts) : [encode(key, opts), '=', encode(value, opts)].join('');\n };\n }\n}\n\nfunction parserForArrayFormat(opts) {\n var result;\n\n switch (opts.arrayFormat) {\n case 'index':\n return function (key, value, accumulator) {\n result = /\\[(\\d*)\\]$/.exec(key);\n key = key.replace(/\\[\\d*\\]$/, '');\n\n if (!result) {\n accumulator[key] = value;\n return;\n }\n\n if (accumulator[key] === undefined) {\n accumulator[key] = {};\n }\n\n accumulator[key][result[1]] = value;\n };\n\n case 'bracket':\n return function (key, value, accumulator) {\n result = /(\\[\\])$/.exec(key);\n key = key.replace(/\\[\\]$/, '');\n\n if (!result) {\n accumulator[key] = value;\n return;\n } else if (accumulator[key] === undefined) {\n accumulator[key] = [value];\n return;\n }\n\n accumulator[key] = [].concat(accumulator[key], value);\n };\n\n default:\n return function (key, value, accumulator) {\n if (accumulator[key] === undefined) {\n accumulator[key] = value;\n return;\n }\n\n accumulator[key] = [].concat(accumulator[key], value);\n };\n }\n}\n\nfunction encode(value, opts) {\n if (opts.encode) {\n return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);\n }\n\n return value;\n}\n\nfunction keysSorter(input) {\n if (Array.isArray(input)) {\n return input.sort();\n } else if (typeof input === 'object') {\n return keysSorter(Object.keys(input)).sort(function (a, b) {\n return Number(a) - Number(b);\n }).map(function (key) {\n return input[key];\n });\n }\n\n return input;\n}\n\nfunction extract(str) {\n var queryStart = str.indexOf('?');\n\n if (queryStart === -1) {\n return '';\n }\n\n return str.slice(queryStart + 1);\n}\n\nfunction parse(str, opts) {\n opts = objectAssign({\n arrayFormat: 'none'\n }, opts);\n var formatter = parserForArrayFormat(opts); // Create an object with no prototype\n // https://github.com/sindresorhus/query-string/issues/47\n\n var ret = Object.create(null);\n\n if (typeof str !== 'string') {\n return ret;\n }\n\n str = str.trim().replace(/^[?#&]/, '');\n\n if (!str) {\n return ret;\n }\n\n str.split('&').forEach(function (param) {\n var parts = param.replace(/\\+/g, ' ').split('='); // Firefox (pre 40) decodes `%3D` to `=`\n // https://github.com/sindresorhus/query-string/pull/37\n\n var key = parts.shift();\n var val = parts.length > 0 ? parts.join('=') : undefined; // missing `=` should be `null`:\n // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\n val = val === undefined ? null : decodeComponent(val);\n formatter(decodeComponent(key), val, ret);\n });\n return Object.keys(ret).sort().reduce(function (result, key) {\n var val = ret[key];\n\n if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {\n // Sort object keys, not values\n result[key] = keysSorter(val);\n } else {\n result[key] = val;\n }\n\n return result;\n }, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = function (obj, opts) {\n var defaults = {\n encode: true,\n strict: true,\n arrayFormat: 'none'\n };\n opts = objectAssign(defaults, opts);\n\n if (opts.sort === false) {\n opts.sort = function () {};\n }\n\n var formatter = encoderForArrayFormat(opts);\n return obj ? Object.keys(obj).sort(opts.sort).map(function (key) {\n var val = obj[key];\n\n if (val === undefined) {\n return '';\n }\n\n if (val === null) {\n return encode(key, opts);\n }\n\n if (Array.isArray(val)) {\n var result = [];\n val.slice().forEach(function (val2) {\n if (val2 === undefined) {\n return;\n }\n\n result.push(formatter(key, val2, result.length));\n });\n return result.join('&');\n }\n\n return encode(key, opts) + '=' + encode(val, opts);\n }).filter(function (x) {\n return x.length > 0;\n }).join('&') : '';\n};\n\nexports.parseUrl = function (str, opts) {\n return {\n url: str.split('?')[0] || '',\n query: parse(extract(str), opts)\n };\n};","import { createStore, applyMiddleware, compose } from \"redux\";\r\nimport { StoreState } from \"./storeState\";\r\nimport reducer from \"../reducers\";\r\nimport thunk from \"redux-thunk\";\r\n\r\nexport default function configureStore(initialStore: StoreState) {\r\n const composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\n\r\n const middlewares = [];\r\n // middlewares for all environments env\r\n middlewares.push(thunk);\r\n \r\n // middlewares for dev only, redux-logger MUST be LAST in the middlewares array\r\n if (process.env.NODE_ENV === `development`) {\r\n const { logger } = require(`redux-logger`); \r\n middlewares.push(logger);\r\n }\r\n\r\n const store = createStore(reducer, initialStore, composeEnhancers(applyMiddleware(...middlewares)));\r\n\r\n const m: any = module;\r\n if (process.env.NODE_ENV !== \"production\") {\r\n if (m.hot) {\r\n m.hot.accept(\"../reducers\", () => {\r\n store.replaceReducer(reducer);\r\n });\r\n }\r\n }\r\n\r\n return store;\r\n}\r\n","import appTitleBar from \"./appTitleBarReducer\";\r\nimport branches from \"../../common/reducers/branchesReducer\";\r\nimport { combineReducers } from \"redux\";\r\nimport errorMessage from \"../../common/reducers/errorMessageReducer\";\r\nimport { StoreState } from \"../store/storeState\";\r\nimport representatives from \"./representativesReducer\";\r\nimport timeSlots from \"./timeSlotsReducer\";\r\nimport visitCategories from \"../../common/reducers/visitCategoriesReducer\";\r\nimport selectedAppointmentValues from \"./selectedAppointmentValuesReducer\";\r\nimport appointment from \"./appointmentReducer\";\r\nimport authentication from \"./authenticationReducer\";\r\nimport appointments from \"./appointmentsReducer\";\r\nimport appSettings from \"../../common/reducers/appSettingsReducer\";\r\nimport branchHours from \"./branchHoursReducer\";\r\nimport customerPreferences from \"./customerPreferenceReducer\";\r\nimport holdTimeRemaining from \"./appointmentHoldTimeRemainingReducer\";\r\nimport videos from \"../../common/reducers/videosReducer\";\r\nimport deepLink from \"./deepLinkReducer\";\r\nimport deepLinkStatus from \"./deepLinkStatusReducer\";\r\nimport appointmentSurvey from \"./appointmentSurveyReducer\";\r\nimport closeAppAfterAppt from \"./closeAppAfterApptReducer\";\r\n\r\nexport default combineReducers({\r\n // Auth\r\n authentication,\r\n\r\n // UI\r\n appTitleBar,\r\n errorMessage,\r\n holdSecondsRemaining: holdTimeRemaining,\r\n selectedAppointmentValues,\r\n\r\n // Data\r\n appointment,\r\n appointments,\r\n appSettings,\r\n branches,\r\n branchHours,\r\n customerPreferences,\r\n availableServiceReps: representatives,\r\n timeSlots,\r\n visitCategories,\r\n videos,\r\n appointmentSurvey,\r\n\r\n // Deep Linking\r\n deepLink,\r\n deepLinkStatus,\r\n closeAppAfterAppt\r\n});\r\n","import { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState, emptyCustomer } from \"../store/initialState\";\r\nimport { CustomerState } from \"../types/authentication\";\r\nimport { CustomerPreferences } from \"../types/customer\";\r\n\r\nexport default function authenticationReducer(\r\n state: CustomerState = initialState.authentication,\r\n action: AnyAction\r\n): CustomerState {\r\n switch (action.type) {\r\n case actionTypeKeys.AUTHENTICATION_SUCCESS:\r\n return {\r\n ...state,\r\n isCustomer: true,\r\n isSignedIn: true,\r\n customer: { ...action.customer },\r\n error: null\r\n };\r\n case actionTypeKeys.GUEST_SIGN_IN:\r\n return {\r\n ...state,\r\n isCustomer: false,\r\n isSignedIn: true,\r\n customer: { ...emptyCustomer },\r\n error: null\r\n };\r\n case actionTypeKeys.AUTHENTICATION_FAILED:\r\n return {\r\n ...state,\r\n isCustomer: false,\r\n isSignedIn: false,\r\n customer: { ...emptyCustomer },\r\n error: { ...action.error }\r\n };\r\n case actionTypeKeys.SCHEDULE_APPOINTMENT_SUCCESS:\r\n return state.customer.id < 0\r\n ? {\r\n ...state,\r\n customer: {\r\n ...state.customer,\r\n id: action.appointment.customerId\r\n }\r\n }\r\n : state;\r\n case actionTypeKeys.LOGOUT_SUCCESS:\r\n return {\r\n isServiceRep: false,\r\n serviceRepEmail: \"\",\r\n isCustomer: false,\r\n isSignedIn: false,\r\n customer: { ...emptyCustomer },\r\n error: null\r\n };\r\n case actionTypeKeys.SERVICE_REP_SIGN_IN_SUCCESS:\r\n return {\r\n ...state,\r\n isServiceRep: true,\r\n serviceRepEmail: action.email\r\n };\r\n case actionTypeKeys.CUSTOMER_PREFERENCES_UPDATED_SUCCESS:\r\n const preferences: CustomerPreferences = action.preferences;\r\n return {\r\n ...state,\r\n customer: {\r\n ...state.customer,\r\n phone: preferences.preferredPhone,\r\n email: preferences.preferredEmail\r\n }\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { TitleBar } from \"../types/titleBar\";\r\n\r\nexport default function AppTitleBarReducer(state: TitleBar = initialState.appTitleBar, action: AnyAction): TitleBar {\r\n switch (action.type) {\r\n case actionTypeKeys.SET_APP_TITLE_BAR:\r\n return action.appTitleBar;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\n\r\nexport default function appointmentsReducer(\r\n state: number = initialState.holdSecondsRemaining,\r\n action: AnyAction\r\n): number {\r\n switch (action.type) {\r\n case actionTypeKeys.APPT_HOLD_TIME_REMAINING_CHANGED:\r\n return action.timeRemaining;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"./../actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { SelectedAppointmentValues } from \"../types/step\";\r\nimport { internalActionKeys } from \"src/internal/actions/internalActionKeys\";\r\n\r\nexport default function selectedAppointmentValuesReducer(\r\n state: SelectedAppointmentValues = initialState.selectedAppointmentValues,\r\n action: AnyAction\r\n): SelectedAppointmentValues {\r\n switch (action.type) {\r\n case actionTypeKeys.APPT_CREATED_BY:\r\n return { ...state, createdBy: action.name };\r\n case actionTypeKeys.APPT_HOLD_EXPIRED:\r\n return { ...state, timeSlot: null };\r\n case actionTypeKeys.SET_ATTEMPTED_APPT:\r\n return { ...state, attemptedApptId: action.payload };\r\n case actionTypeKeys.SET_APPT_AUDIT:\r\n return { ...state, appLinkAuditKey: action.payload };\r\n case actionTypeKeys.BRANCH_SELECTED:\r\n return { ...state, branch: { ...action.branch } };\r\n case actionTypeKeys.CATEGORY_SELECTED:\r\n return { ...state, category: { ...action.category } };\r\n case actionTypeKeys.CLEAR_APPOINTMENT_VALUES:\r\n return {\r\n ...initialState.selectedAppointmentValues,\r\n appLinkAuditKey: state.appLinkAuditKey,\r\n createdBy: state.createdBy\r\n };\r\n case actionTypeKeys.LOGOUT_SUCCESS:\r\n return { ...initialState.selectedAppointmentValues, appLinkAuditKey: state.appLinkAuditKey };\r\n case actionTypeKeys.REASON_SELECTED:\r\n return { ...state, reason: { ...action.reason } };\r\n case actionTypeKeys.SERVICE_REP_SELECTED:\r\n return { ...state, serviceRep: { ...action.serviceRep } };\r\n case actionTypeKeys.TIME_SLOT_SELECTED:\r\n return { ...state, timeSlot: action.timeSlot };\r\n case actionTypeKeys.SET_APPOINTMENT_ADDITIONAL_INFO:\r\n return { ...state, additionalInfo: action.additionalInfo };\r\n case actionTypeKeys.SET_APPT_REP_SELECT_CODE:\r\n return { ...state, repSelectCode: action.repSelectCode };\r\n case internalActionKeys.SET_APPOINTMENT_CUSTOM_ADDRESS:\r\n return {\r\n ...state,\r\n customLocationAddress: action.customAddress\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { AppointmentDto } from \"../types/appointment\";\r\n\r\nexport default function appointmentReducer(\r\n state: AppointmentDto = initialState.appointment,\r\n action: AnyAction\r\n): AppointmentDto {\r\n switch (action.type) {\r\n case actionTypeKeys.SCHEDULE_APPOINTMENT_SUCCESS:\r\n return action.appointment;\r\n case actionTypeKeys.CLEAR_APPOINTMENT:\r\n return initialState.appointment;\r\n case actionTypeKeys.GET_APPOINTMENT_SUCCESS:\r\n return action.payload;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { AppointmentDto } from \"../types/appointment\";\r\n\r\nexport default function appointmentsReducer(\r\n state: AppointmentDto[] = initialState.appointments,\r\n action: AnyAction\r\n): AppointmentDto[] {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_APPOINTMENTS_SUCCESS:\r\n return action.appointments.map((a: AppointmentDto) => {\r\n return { ...a };\r\n });\r\n case actionTypeKeys.CANCEL_APPOINTMENT_SUCCESS:\r\n return [...state.filter(a => a.id < action.appointment.id), ...state.filter(a => a.id > action.appointment.id)];\r\n case actionTypeKeys.TRANSFER_APPOINTMENT_SUCCESS:\r\n return [\r\n ...state.filter(a => a.id < action.appointment.id),\r\n action.appointment,\r\n ...state.filter(a => a.id > action.appointment.id)\r\n ];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"../../external/actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../../external/store/initialState\";\r\nimport { Branch } from \"../types/branch\";\r\n\r\nexport default function branchesReducer(state: Branch[] = initialState.branches, action: AnyAction): Branch[] {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_BRANCHES_SUCCESS:\r\n return [...action.branches];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { CustomerPreferences } from \"../types/customer\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\n\r\nexport default function userPreferenceReducer(\r\n state: CustomerPreferences | null = initialState.customerPreferences,\r\n action: AnyAction\r\n) {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_CUSTOMER_PREFERENCES_SUCCESS:\r\n return { ...action.preferences };\r\n case actionTypeKeys.CUSTOMER_PREFERENCES_UPDATED_SUCCESS:\r\n return { ...action.preferences };\r\n case actionTypeKeys.LOGOUT_SUCCESS:\r\n return { ...initialState.customerPreferences };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { Representative } from \"../../common/types/representative\";\r\n\r\nexport default function representativesReducer(\r\n state: Representative[] = initialState.availableServiceReps,\r\n action: AnyAction\r\n): Representative[] {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_REPRESENTATIVES_SUCCESS:\r\n return [...action.representatives];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { TimeSlot } from \"../../common/types/visit\";\r\n\r\nexport default function TimeSlotsReducer(state: TimeSlot[] = initialState.timeSlots, action: AnyAction): TimeSlot[] {\r\n switch (action.type) {\r\n case actionTypeKeys.LOAD_TIME_SLOTS_SUCCESS:\r\n return [...action.timeSlots];\r\n case actionTypeKeys.CLEAR_TIME_SLOTS:\r\n return [];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { AppointmentSurveyDto } from \"../types/appointmentSurvey\";\r\n\r\nexport default function appointmentSurveyReducer(\r\n state: AppointmentSurveyDto = initialState.appointmentSurvey,\r\n action: AnyAction\r\n): AppointmentSurveyDto {\r\n switch (action.type) {\r\n case actionTypeKeys.PATCH_APPT_SURVEY_SUCCESS:\r\n case actionTypeKeys.GET_APPT_SURVEY_SUCCESS:\r\n return action.payload;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { DeepLink } from \"../types/deepLink\";\r\n\r\nexport default function deepLinkReducer(state: DeepLink | null = initialState.deepLink, action: AnyAction) {\r\n switch (action.type) {\r\n case actionTypeKeys.SET_DEEP_LINK:\r\n return { ...action.payload };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { DeepLinkStatus } from \"../types/deepLink\";\r\n\r\nexport default function deepLinkReducer(state: DeepLinkStatus = initialState.deepLinkStatus, action: AnyAction) {\r\n switch (action.type) {\r\n case actionTypeKeys.UPDATE_DEEP_LINK_STATUS:\r\n return { ...action.payload };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { actionTypeKeys } from \"../actions/actionTypeKeys\";\r\n\r\nexport default function closeAppAfterApptReducer(\r\n state: boolean = initialState.closeAppAfterAppt,\r\n action: AnyAction\r\n): boolean {\r\n switch (action.type) {\r\n case actionTypeKeys.CLOSE_APP_AFTER_APPT:\r\n return true;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { InactiveServiceRepWindow } from \"src/internal/types/inactiveServiceRepWindow\";\r\nimport { CommunicationPreferencesType } from \"./customerPrefs\";\r\nimport { SystemRole } from \"src/internal/types/authentication\";\r\nimport { Branch } from \"./branch\";\r\n\r\nexport class EmployeeRole {\r\n branchId: number;\r\n role: SystemRole;\r\n}\r\n\r\nexport class RepresentativeBranchReason {\r\n branchId: number;\r\n reasonId: number;\r\n}\r\n\r\nexport class Representative {\r\n constructor() {\r\n this.userId = -1;\r\n this.description = \"\";\r\n this.source = 0;\r\n this.sourcePersonId = \"\";\r\n this.email = \"\";\r\n this.firstName = \"\";\r\n this.id = -1;\r\n this.imageUrl = \"\";\r\n this.inactiveWindows = [];\r\n this.isCustomerVisible = false;\r\n this.isEmailFromDna = false;\r\n this.isEmailValid = false;\r\n this.isActive = false;\r\n this.lastName = \"\";\r\n this.name = \"\";\r\n this.notificationPreference = \"EMAIL\";\r\n this.phone = \"\";\r\n this.branchReasons = [];\r\n this.skypeId = \"\";\r\n this.thumbnailUrl = \"\";\r\n this.region = \"\";\r\n this.roles = [];\r\n this.branches = [];\r\n }\r\n\r\n userId?: number;\r\n description: string;\r\n source: number;\r\n sourcePersonId: string;\r\n email: string;\r\n isEmailValid: boolean;\r\n isEmailFromDna: boolean;\r\n isActive: boolean;\r\n firstName: string;\r\n id: number;\r\n imageUrl: string;\r\n lastName: string;\r\n name: string;\r\n phone: string;\r\n branchReasons: RepresentativeBranchReason[];\r\n skypeId: string | null;\r\n inactiveWindows: InactiveServiceRepWindow[];\r\n thumbnailUrl?: string;\r\n isCustomerVisible: boolean;\r\n notificationPreference: CommunicationPreferencesType;\r\n region: string;\r\n roles: EmployeeRole[];\r\n branches: Branch[];\r\n}\r\n\r\nexport const repBelongsToBranch = (rep: Representative, branchId: number) => {\r\n return rep.branches.some(br => br.id === branchId);\r\n};\r\n","import * as React from \"react\";\r\nimport { ListItem, ListItemIcon, ListItemText, createStyles } from \"@material-ui/core\";\r\nimport { NavItem } from \"../../navItems\";\r\nimport { withStyles, WithStyles } from \"@material-ui/core/styles\";\r\n\r\ninterface NavItemListItemButtonProps extends WithStyles {\r\n navItem: NavItem;\r\n navigate: (path: string) => void;\r\n}\r\n\r\nclass NavItemListItemButton extends React.PureComponent {\r\n navigate = () => {\r\n this.props.navigate(this.props.navItem.path);\r\n };\r\n\r\n render() {\r\n const { navItem, classes } = this.props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = () =>\r\n createStyles({\r\n listItemRoot: {\r\n borderRadius: 0,\r\n boxShadow: \"none\",\r\n marginTop: 0\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(NavItemListItemButton);\r\n","import * as React from \"react\";\r\nimport { Drawer, IconButton, Divider, Theme, createStyles, List } from \"@material-ui/core\";\r\nimport ChevronLeftIcon from \"@material-ui/icons/ChevronLeft\";\r\nimport { withStyles, WithStyles } from \"@material-ui/core/styles\";\r\nimport LogoutListItemButton from \"../../../common/Components/LogoutListItemButton\";\r\nimport { NavItem } from \"../../navItems\";\r\nimport { withRouter, RouteComponentProps } from \"react-router\";\r\nimport NavItemListItemButton from \"./NavItemListItemButton\";\r\nimport { logout } from \"../../actions/authActions\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { StoreState } from \"../../store/storeState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { connect } from \"react-redux\";\r\nimport { cssVars } from \"src/globalCssVars\";\r\n\r\ninterface AppDrawerDispatchProps {\r\n logout: () => void;\r\n}\r\n\r\ninterface AppDrawerProps extends AppDrawerDispatchProps, WithStyles, RouteComponentProps {\r\n open: boolean;\r\n navItems: NavItem[];\r\n closeDrawer: () => void;\r\n}\r\n\r\nclass AppDrawer extends React.PureComponent {\r\n onLogout = () => {\r\n this.handleDrawerClose();\r\n this.props.history.push(\"/\");\r\n this.props.logout();\r\n };\r\n\r\n handleDrawerClose = () => {\r\n this.props.closeDrawer();\r\n };\r\n\r\n navigate = (path: string) => {\r\n this.handleDrawerClose();\r\n this.props.history.push(path);\r\n };\r\n\r\n render() {\r\n const { open, classes, navItems } = this.props;\r\n return (\r\n \r\n
\r\n {}\r\n
\r\n \r\n
\r\n
\r\n \r\n {navItems.map(\r\n n => (n.hideInMenu ? \"\" : )\r\n )}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n drawerPaper: {\r\n width: `${cssVars.drawerWidth}rem`\r\n },\r\n drawerContent: {\r\n flexGrow: 1\r\n },\r\n drawerContentContainer: {\r\n height: `calc(100vh - ${theme.spacing.unit * 8}rem)`,\r\n display: \"flex\",\r\n flexDirection: \"column\"\r\n },\r\n drawerHeader: {\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n padding: \"0 0.5rem\",\r\n height: theme.spacing.unit * 8 + \"rem\"\r\n }\r\n });\r\n\r\nconst mapDispatchToProps = (dispatch: ThunkDispatch): AppDrawerDispatchProps => {\r\n return {\r\n logout: () => dispatch(logout)\r\n };\r\n};\r\n\r\nexport default connect(\r\n null,\r\n mapDispatchToProps\r\n)(withRouter(withStyles(styles)(AppDrawer)));\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport {\r\n AppBar,\r\n Toolbar,\r\n IconButton,\r\n Typography,\r\n WithStyles,\r\n Theme,\r\n createStyles,\r\n withStyles,\r\n withWidth,\r\n Tooltip\r\n} from \"@material-ui/core\";\r\nimport MenuIcon from \"@material-ui/icons/Menu\";\r\nimport { CustomerState } from \"../../types/authentication\";\r\nimport { TitleBar } from \"../../types/titleBar\";\r\nimport { WithWidth, isWidthDown } from \"@material-ui/core/withWidth/withWidth\";\r\nimport { cssVars, layoutBreakpoint } from \"src/globalCssVars\";\r\nimport { RGB } from \"src/external/utilities/colorUtil\";\r\nimport { CancelOutlined } from \"@material-ui/icons\";\r\n\r\ninterface ApptsAppBarProps extends WithWidth, WithStyles {\r\n title: TitleBar;\r\n customerState: CustomerState;\r\n onIconClick: () => void;\r\n primaryRgbColor: RGB;\r\n showCancelButton: boolean;\r\n tooltipText: string;\r\n onCancelClick: () => void;\r\n}\r\n\r\ninterface ApptsAppBarState {}\r\n\r\nclass ApptsAppBar extends PureComponent {\r\n constructor(props: ApptsAppBarProps) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n const {\r\n title,\r\n onIconClick,\r\n classes,\r\n width,\r\n primaryRgbColor,\r\n showCancelButton,\r\n onCancelClick,\r\n tooltipText\r\n } = this.props;\r\n const rgba = `rgba(${primaryRgbColor.r}, ${primaryRgbColor.g}, ${primaryRgbColor.b}, 0.8)`;\r\n const isMobile = isWidthDown(layoutBreakpoint, width);\r\n return (\r\n \r\n \r\n {\r\n \r\n \r\n \r\n }\r\n {showCancelButton && (\r\n {tooltipText}}\r\n placement={\"bottom\"}\r\n disableTouchListener={false}\r\n disableHoverListener={false}\r\n >\r\n \r\n \r\n )}\r\n
\r\n \r\n {title.title}\r\n \r\n {!isMobile && (\r\n {title.description}\r\n )}\r\n
\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) => {\r\n const headerOffset = // Left-align the title text with the content.\r\n cssVars.webStepperMinWidth + // Stepper width\r\n 2 * theme.spacing.unit + // plus the left and right margin on the stepper\r\n theme.spacing.unit - // plus the left padding of the content\r\n cssVars.toolbarPaddingLeft - // minus the tool bar left padding\r\n cssVars.toolbarMenuButtonWidth; // minus the toolbar menu button width (plus padding?)\r\n\r\n return createStyles({\r\n iconButton: {\r\n color: \"white\"\r\n },\r\n mobileToolbar: {},\r\n mobileTypography: {\r\n color: \"white\"\r\n },\r\n webDescriptionTypography: {\r\n color: \"white\",\r\n marginLeft: headerOffset + \"rem\",\r\n fontSize: \"1em\"\r\n },\r\n webTitleTypography: {\r\n color: \"white\",\r\n marginLeft: headerOffset + \"rem\",\r\n fontSize: \"2em\"\r\n },\r\n root: {\r\n backgroundSize: \"cover\",\r\n backgroundRepeat: \"no-repeat\",\r\n backgroundPosition: \"center\"\r\n },\r\n webToolbar: {},\r\n cancelButton: {\r\n position: \"absolute\",\r\n left: `calc(100vw - 4rem)`,\r\n cursor: \"pointer\"\r\n },\r\n tooltipText: {\r\n color: \"white\"\r\n }\r\n });\r\n};\r\n\r\nexport default withStyles(styles)(withWidth()(ApptsAppBar));\r\n","import { Component } from \"react\";\r\nimport * as React from \"react\";\r\n\r\nexport default function asyncComponent(importComponent: any) {\r\n class AsyncComponent extends Component {\r\n constructor(props: any) {\r\n super(props);\r\n\r\n this.state = {\r\n component: null\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n const { default: component } = await importComponent();\r\n\r\n this.setState({\r\n component\r\n });\r\n }\r\n\r\n render() {\r\n const C = this.state.component;\r\n\r\n return C ? : null;\r\n }\r\n }\r\n\r\n return AsyncComponent;\r\n}\r\n","import React, { Component } from \"react\";\r\nimport StarRatingComponent from \"react-star-rating-component\";\r\nimport { QuestionResponseDto } from \"src/external/types/questionResponse\";\r\n\r\ninterface RatingProps {\r\n response: QuestionResponseDto;\r\n handleChangeRating: (question: QuestionResponseDto, rating: number) => void;\r\n}\r\n\r\ninterface RatingState {\r\n response: QuestionResponseDto;\r\n}\r\n\r\nclass Rating extends Component {\r\n constructor(props: RatingProps) {\r\n super(props);\r\n this.state = {\r\n response: {\r\n rating: props.response.rating,\r\n surveyQuestion: {\r\n id: props.response.surveyQuestion.id,\r\n displayOrder: props.response.surveyQuestion.displayOrder,\r\n question: props.response.surveyQuestion.question\r\n }\r\n }\r\n };\r\n }\r\n\r\n onStarClick = async (nextValue: any, prevValue: any, name: any) => {\r\n await this.setState({\r\n response: {\r\n surveyQuestion: {\r\n ...this.props.response.surveyQuestion\r\n },\r\n rating: nextValue\r\n }\r\n });\r\n this.props.handleChangeRating(this.props.response, +this.state.response.rating);\r\n };\r\n\r\n render() {\r\n const { response } = this.props;\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default Rating;\r\n","import * as React from \"react\";\r\nimport { Dialog, DialogTitle, Typography, DialogContent, DialogActions, Button, TextField } from \"@material-ui/core\";\r\n\r\ninterface FeedbackRequestDialogProps {\r\n isMobile: boolean;\r\n isOpen: boolean;\r\n onCancelFeedbackRequest: () => void;\r\n onConfirmFeedbackRequest: (customerFeedback: string) => void;\r\n}\r\n\r\ninterface FeedbackRequestDialogState {\r\n customerFeedback: string;\r\n}\r\n\r\nclass FeedbackRequestDialog extends React.Component {\r\n constructor(props: FeedbackRequestDialogProps) {\r\n super(props);\r\n\r\n this.state = {\r\n customerFeedback: \"\"\r\n };\r\n }\r\n\r\n onFeedbackChanged = (element: React.ChangeEvent) => {\r\n this.setState({ customerFeedback: element.target.value });\r\n };\r\n\r\n onConfirmFeedbackRequest = () => {\r\n this.props.onConfirmFeedbackRequest(this.state.customerFeedback);\r\n };\r\n\r\n render() {\r\n const { isMobile, isOpen, onCancelFeedbackRequest } = this.props;\r\n return (\r\n \r\n \r\n Visit Feedback Request\r\n \r\n \r\n Please tell us more about your experience\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default FeedbackRequestDialog;\r\n","// imports from npm\r\nimport React, { Component } from \"react\";\r\nimport { withStyles, WithStyles, createStyles, Theme, Table, TableBody, TableRow, TableCell } from \"@material-ui/core\";\r\nimport { Card, CardActions, CardContent, TextField } from \"@material-ui/core\";\r\n// local imports\r\nimport ActionButtons from \"src/internal/components/Common/ActionButtons\";\r\nimport { AppointmentSurveyDto } from \"src/external/types/appointmentSurvey\";\r\nimport { QuestionResponseDto } from \"src/external/types/questionResponse\";\r\nimport { cssVars, rootFontSize } from \"src/globalCssVars\";\r\nimport Rating from \"./Rating\";\r\nimport FeedbackRequestDialog from \"../Appointments/FeedbackRequestDialog\";\r\n\r\ninterface FeedbackCollectionFormOwnProps {\r\n survey: AppointmentSurveyDto;\r\n isMobile?: boolean;\r\n onSave: (appointmentSurvey: AppointmentSurveyDto) => void;\r\n}\r\n\r\ninterface FeedbackCollectionFormState {\r\n apptSurvey: AppointmentSurveyDto;\r\n initializedApptSurvey: AppointmentSurveyDto;\r\n isDirty: boolean;\r\n isSaving: boolean;\r\n feedbackRequestDialogOpen: boolean;\r\n}\r\n\r\ninterface FeedbackCollectionFormProps extends FeedbackCollectionFormOwnProps, WithStyles {}\r\n\r\nclass FeedbackCollectionForm extends Component {\r\n constructor(props: FeedbackCollectionFormProps) {\r\n super(props);\r\n let surveyCopy = JSON.parse(JSON.stringify(props.survey));\r\n this.state = {\r\n apptSurvey: {\r\n ...props.survey\r\n },\r\n initializedApptSurvey: {\r\n ...surveyCopy\r\n },\r\n isDirty: false,\r\n isSaving: false,\r\n feedbackRequestDialogOpen: false\r\n };\r\n }\r\n\r\n updateResponseRatingState = async (question: QuestionResponseDto, rating: number) => {\r\n let copy = this.state.apptSurvey.responses.map(r => {\r\n return { ...r };\r\n });\r\n let found = copy.find(r => r.surveyQuestion.displayOrder == question.surveyQuestion.displayOrder);\r\n if (found) {\r\n found.rating = rating;\r\n }\r\n this.setState({\r\n apptSurvey: {\r\n ...this.state.apptSurvey,\r\n responses: copy\r\n },\r\n isDirty: true\r\n });\r\n };\r\n\r\n handleFreeTextInputChange = async (event: React.ChangeEvent) => {\r\n this.setState({\r\n apptSurvey: {\r\n ...this.state.apptSurvey,\r\n freeTextResponse: event.currentTarget.value\r\n },\r\n isDirty: true\r\n });\r\n };\r\n\r\n handleSave = async () => {\r\n var feedbackWasAboveThreshold = await this.validateFeedbackRequestForLowScore();\r\n if (feedbackWasAboveThreshold == true) {\r\n this.completeSave();\r\n }\r\n };\r\n\r\n completeSave = () => {\r\n this.setState({\r\n isSaving: true\r\n });\r\n this.props.onSave(this.state.apptSurvey);\r\n //onSave redirects page, so no need to set state here\r\n };\r\n\r\n validateFeedbackRequestForLowScore = async () => {\r\n if (this.state.apptSurvey.freeTextResponse == \"\") {\r\n var thresholdScore = this.state.apptSurvey.survey.threshold;\r\n if (this.state.apptSurvey.responses) {\r\n var responseValue = 0;\r\n this.state.apptSurvey.responses.forEach(response => {\r\n responseValue += response.rating;\r\n });\r\n responseValue = responseValue / this.state.apptSurvey.responses.length;\r\n if (responseValue < thresholdScore) {\r\n this.setState({\r\n feedbackRequestDialogOpen: true\r\n });\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n addRequestedFeedbackToSurvey = (feedback: string) => {\r\n this.setState(\r\n {\r\n apptSurvey: {\r\n ...this.state.apptSurvey,\r\n freeTextResponse: feedback\r\n },\r\n feedbackRequestDialogOpen: false\r\n },\r\n this.completeSave\r\n );\r\n };\r\n\r\n cancelFeedbackRequest = () => {\r\n this.setState(\r\n {\r\n feedbackRequestDialogOpen: false\r\n },\r\n this.completeSave\r\n );\r\n };\r\n\r\n handleCancel = async () => {\r\n this.state.initializedApptSurvey.responses.map(r => {\r\n this.updateResponseRatingState(r, r.rating);\r\n });\r\n this.setState({\r\n apptSurvey: this.state.initializedApptSurvey,\r\n isDirty: false\r\n });\r\n };\r\n\r\n render() {\r\n const { classes, isMobile } = this.props;\r\n const { apptSurvey, isDirty, isSaving, feedbackRequestDialogOpen } = this.state;\r\n\r\n return (\r\n \r\n {feedbackRequestDialogOpen && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Location:\r\n
{apptSurvey.appointment.locationName}\r\n
\r\n \r\n Agent:\r\n
{apptSurvey.appointment.serviceRepName}\r\n
\r\n
\r\n \r\n \r\n Purpose:\r\n
{apptSurvey.appointment.reasonName}\r\n
\r\n \r\n Date/Time:\r\n
{\" \"}\r\n {`${new Intl.DateTimeFormat(\"en-US\", {\r\n year: \"numeric\",\r\n month: \"numeric\",\r\n day: \"numeric\",\r\n hour: \"numeric\",\r\n minute: \"numeric\"\r\n }).format(new Date(apptSurvey.appointment.appointmentTime))} ${apptSurvey.appointment.timeZone.abbr}`}\r\n
\r\n
\r\n
\r\n
\r\n {apptSurvey.responses.map((questionToRespondTo, i) => (\r\n
\r\n {questionToRespondTo.surveyQuestion.question}\r\n \r\n
\r\n ))}\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) => {\r\n const listLeftOffset = // Left-align the list with the top header.\r\n cssVars.webStepperMinWidth + // Stepper width\r\n 2 * theme.spacing.unit + // plus the left and right margin on the stepper\r\n theme.spacing.unit; // plus the left margin of the content container\r\n return createStyles({\r\n ActionButtons: {\r\n display: \"flex\",\r\n justifyContent: \"flex-end\",\r\n width: \"100%\"\r\n },\r\n Table: {\r\n marginBottom: theme.spacing.unit * 2 + \"rem\"\r\n },\r\n Question: {\r\n fontFamily: \"Roboto, sans-serif\",\r\n textAlign: \"center\",\r\n width: \"100%\",\r\n wordWrap: \"break-word\",\r\n display: \"block\"\r\n },\r\n MobileCard: {\r\n width: \"100%\"\r\n },\r\n WebCard: {\r\n height: \"100%\",\r\n maxWidth: `${700 / rootFontSize}rem`,\r\n marginLeft: `${listLeftOffset}rem`\r\n }\r\n });\r\n};\r\n\r\nexport default withStyles(styles)(FeedbackCollectionForm);\r\n","import axios from \"axios\";\r\n//import { AppointmentDto } from \"../types/appointment\";\r\nimport { handleApiError } from \"../../common/api/apiErrorHandler\";\r\nimport { AppointmentSurveyDto } from \"../types/appointmentSurvey\";\r\n\r\nexport default class ExternalSurveyApi {\r\n static async patchAppointmentSurvey(apptSurvey: AppointmentSurveyDto): Promise {\r\n try {\r\n const response = await axios.patch(`./api/AppointmentSurveys`, apptSurvey);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n static async getAppointmentSurveyForAppointment(apptId: number): Promise {\r\n try {\r\n const response = await axios.get(`./api/AppointmentSurveys?appointmentId=${apptId}`);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n}\r\n","import { AnyAction, Dispatch } from \"redux\";\r\nimport { handleActionError } from \"src/common/actions/actionErrorHandler\";\r\nimport { actionTypeKeys } from \"./actionTypeKeys\";\r\nimport ExternalSurveyApi from \"../api/surveyApi\";\r\nimport { AppointmentSurveyDto } from \"../../external/types/appointmentSurvey\";\r\nimport mask from \"src/common/utilities/sensitiveDataMask\";\r\n\r\nexport const getAppointmentSurveySuccess = (apptSurvey: AppointmentSurveyDto): AnyAction => {\r\n return {\r\n type: actionTypeKeys.GET_APPT_SURVEY_SUCCESS,\r\n payload: apptSurvey\r\n };\r\n};\r\n\r\nexport const patchAppointmentSurveySuccess = (apptSurvey: AppointmentSurveyDto): AnyAction => {\r\n return {\r\n type: actionTypeKeys.PATCH_APPT_SURVEY_SUCCESS,\r\n payload: apptSurvey\r\n };\r\n};\r\n\r\nexport const getAppointmentSurveyForAppointment = (apptId: number, dispatchError: boolean = true) => {\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n let apptSurvey = await ExternalSurveyApi.getAppointmentSurveyForAppointment(apptId);\r\n dispatch(getAppointmentSurveySuccess(apptSurvey));\r\n return true;\r\n } catch (error) {\r\n handleActionError(error, dispatch, dispatchError);\r\n return false;\r\n }\r\n };\r\n};\r\n\r\nexport const patchAppointmentSurvey = (apptSurvey: AppointmentSurveyDto, dispatchError: boolean = true) => {\r\n // handle potentially sensitive data\r\n let maskedFreeTextResponse = mask(apptSurvey.freeTextResponse);\r\n apptSurvey.freeTextResponse = maskedFreeTextResponse;\r\n // then send it on to the backend\r\n return async (dispatch: Dispatch): Promise => {\r\n try {\r\n const response = await ExternalSurveyApi.patchAppointmentSurvey(apptSurvey);\r\n dispatch(patchAppointmentSurveySuccess(response));\r\n return true;\r\n } catch (error) {\r\n handleActionError(error, dispatch, dispatchError);\r\n return false;\r\n }\r\n };\r\n};\r\n","// imports from npm\r\nimport React, { Component } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { AnyAction } from \"redux\";\r\nimport {\r\n withStyles,\r\n WithStyles,\r\n createStyles,\r\n withWidth,\r\n DialogContent,\r\n DialogActions,\r\n Button,\r\n Theme,\r\n DialogContentText\r\n} from \"@material-ui/core\";\r\nimport { Dialog } from \"@material-ui/core\";\r\n// import local files\r\nimport { StoreState } from \"src/external/store/storeState\";\r\nimport FeedbackCollectionForm from \"./FeedbackCollectionForm\";\r\nimport LoadingCard from \"src/internal/components/Common/LoadingCard\";\r\nimport { getAppointmentSurveyForAppointment, patchAppointmentSurvey } from \"src/external/actions/surveyActions\";\r\nimport { AppointmentSurveyDto } from \"src/external/types/appointmentSurvey\";\r\nimport { layoutBreakpoint } from \"src/globalCssVars\";\r\nimport { WithWidth, isWidthDown } from \"@material-ui/core/withWidth\";\r\nimport { RouteComponentProps } from \"react-router\";\r\n\r\ninterface AppointmentSurveyPageDispatchProps {\r\n getAppointmentSurveyForAppointment: (apptId: number) => Promise;\r\n submitFeedback: (apptSurvey: AppointmentSurveyDto) => Promise;\r\n}\r\n\r\ninterface AppointmentSurveyPageReduxProps {\r\n appointmentSurvey: AppointmentSurveyDto;\r\n}\r\n\r\ninterface AppointmentSurveyPageState {\r\n open: boolean;\r\n disabled: boolean;\r\n apptSurveyLoaded: boolean;\r\n previoulsySubmitted: boolean;\r\n}\r\n\r\ninterface AppointmentSurveyRouteParams {\r\n apptId: number;\r\n}\r\n\r\ninterface AppointmentSurveyPageProps\r\n extends AppointmentSurveyPageReduxProps,\r\n AppointmentSurveyPageDispatchProps,\r\n RouteComponentProps,\r\n WithWidth,\r\n WithStyles {}\r\n\r\nclass AppointmentSurveyPage extends Component {\r\n constructor(props: AppointmentSurveyPageProps) {\r\n super(props);\r\n this.state = {\r\n open: false,\r\n apptSurveyLoaded: false,\r\n previoulsySubmitted: false,\r\n disabled: false\r\n };\r\n }\r\n\r\n componentDidMount = async () => {\r\n this.setState({ disabled: true });\r\n try {\r\n await this.props.getAppointmentSurveyForAppointment(this.props.match.params.apptId);\r\n if (!this.state.apptSurveyLoaded && this.props.appointmentSurvey && this.props.appointmentSurvey.id) {\r\n this.setState({ apptSurveyLoaded: true });\r\n } else {\r\n this.setState({\r\n disabled: true,\r\n previoulsySubmitted: true,\r\n open: true\r\n });\r\n }\r\n } finally {\r\n this.setState({ disabled: false });\r\n }\r\n };\r\n\r\n handleSubmitFeedback = async (feedback: AppointmentSurveyDto) => {\r\n let submitSucceeded = await this.props.submitFeedback(feedback);\r\n if (submitSucceeded) {\r\n this.props.history.push(\"/\");\r\n }\r\n };\r\n\r\n handleClose = () => {\r\n this.setState({ open: false });\r\n this.props.history.push(\"/\");\r\n };\r\n\r\n render() {\r\n const { width, classes } = this.props;\r\n const { previoulsySubmitted } = this.state;\r\n const isMobile = isWidthDown(layoutBreakpoint, width);\r\n if (previoulsySubmitted) {\r\n return (\r\n \r\n \r\n Feedback has already been submitted for this appointment.\r\n \r\n \r\n \r\n \r\n \r\n );\r\n } else {\r\n return this.state.apptSurveyLoaded ? (\r\n
\r\n \r\n
\r\n ) : (\r\n \r\n );\r\n }\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: \"flex\",\r\n justifyContent: \"start\",\r\n padding: `${theme.spacing.unit * 2}rem 0 ${theme.spacing.unit * 2}rem 0`\r\n }\r\n });\r\n\r\nconst mapStateToProps = (state: StoreState): AppointmentSurveyPageReduxProps => {\r\n return {\r\n appointmentSurvey: state.appointmentSurvey\r\n };\r\n};\r\n\r\nconst mapDispatchToProps = (\r\n dispatch: ThunkDispatch\r\n): AppointmentSurveyPageDispatchProps => {\r\n return {\r\n getAppointmentSurveyForAppointment: async (apptId: number) =>\r\n await dispatch(await getAppointmentSurveyForAppointment(apptId)),\r\n submitFeedback: async (feedback: AppointmentSurveyDto) => await dispatch(await patchAppointmentSurvey(feedback))\r\n };\r\n};\r\n\r\nexport default withStyles(styles)(\r\n withWidth()(\r\n connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n )(AppointmentSurveyPage)\r\n )\r\n);\r\n","import * as React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { StoreState } from \"./store/storeState\";\r\nimport { Switch, Route, RouteComponentProps, withRouter } from \"react-router-dom\";\r\nimport { NavItem } from \"./navItems\";\r\nimport PrivateRoute from \"src/common/Components/PrivateRoute\";\r\nimport { CustomerState } from \"./types/authentication\";\r\nimport asyncComponent from \"./components/common/asyncComponent\";\r\nimport AppointmentSurveyPage from \"./components/Surveys/AppointmentSurveyPage\";\r\n\r\nconst MemberIdentity = asyncComponent(() => import(\"./components/MemberIdentity/MemberIdentity\"));\r\nconst InternalMemberIdentity = asyncComponent(() => import(\"./components/MemberIdentity/InternalMemberIdentity\"));\r\n\r\ninterface RoutesReduxProps {\r\n authentication: CustomerState;\r\n isInternal: boolean;\r\n}\r\n\r\ninterface RoutesOwnProps {\r\n navItems: NavItem[];\r\n}\r\n\r\ninterface RoutesProps extends RoutesReduxProps, RouteComponentProps, RoutesOwnProps {}\r\n\r\nclass Routes extends React.PureComponent {\r\n getPrivateRoute = (n: NavItem) => {\r\n return (\r\n \r\n );\r\n };\r\n\r\n render() {\r\n const { isInternal, location, navItems } = this.props;\r\n const logInComp = isInternal ? InternalMemberIdentity : MemberIdentity;\r\n return (\r\n \r\n \r\n \r\n {navItems.map(n => this.getPrivateRoute(n))}\r\n \r\n );\r\n }\r\n}\r\nconst mapStateToProps = (state: StoreState, ownProps: RoutesOwnProps): RoutesReduxProps & RoutesOwnProps => {\r\n return {\r\n ...ownProps,\r\n isInternal: state.appSettings.isInternal,\r\n authentication: state.authentication\r\n };\r\n};\r\n\r\nexport default withRouter(connect(mapStateToProps)(Routes));\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport { Customer, CustomerPreferences } from \"../../types/customer\";\r\nimport {\r\n withStyles,\r\n WithStyles,\r\n createStyles,\r\n FormControl,\r\n FormGroup,\r\n FormControlLabel,\r\n Checkbox,\r\n FormLabel,\r\n Typography\r\n} from \"@material-ui/core\";\r\nimport { Theme } from \"@material-ui/core/styles\";\r\nimport CustomerContactSettings from \"./CustomerContactSettings\";\r\nimport { ContactPreferences } from \"src/common/types/customerPrefs\";\r\n\r\ninterface CustomerSettingsFormProps extends WithStyles {\r\n user: Customer;\r\n preferences: CustomerPreferences;\r\n onPreferenceAndValidationUpdated: (preferences: CustomerPreferences, isValid: boolean) => void;\r\n onPreferenceUpdated: (preferences: CustomerPreferences) => void;\r\n textIsDisabled: boolean;\r\n}\r\n\r\nclass CustomerSettingsForm extends PureComponent {\r\n onPreferenceKeyUpdated = (key: string, value: any) => {\r\n this.onPreferenceUpdated({\r\n ...this.props.preferences,\r\n [key]: value\r\n });\r\n };\r\n\r\n onPreferenceUpdated = (prefs: CustomerPreferences) => {\r\n this.props.onPreferenceUpdated(prefs);\r\n };\r\n\r\n onPreferenceAndValidationUpdated = (contactPrefs: ContactPreferences, isValid: boolean) => {\r\n this.props.onPreferenceAndValidationUpdated(\r\n {\r\n ...this.props.preferences,\r\n preferredEmail: contactPrefs.email,\r\n isMobilePhone: contactPrefs.isMobilePhone,\r\n preferredPhone: contactPrefs.phone,\r\n communicationPreference: contactPrefs.isMobilePhone ? contactPrefs.communicationPreference : \"EMAIL\"\r\n } as CustomerPreferences,\r\n isValid\r\n );\r\n };\r\n\r\n handlePreferredBranchChange = (event: React.ChangeEvent) => {\r\n this.onPreferenceKeyUpdated(\"preferredBranchId\", event.target.value);\r\n };\r\n\r\n handleRemindersChange = (event: React.ChangeEvent) => {\r\n this.onPreferenceKeyUpdated(\"remindersEnabled\", event.target.checked);\r\n };\r\n\r\n handleInvitesChange = (event: React.ChangeEvent) => {\r\n this.onPreferenceKeyUpdated(\"calendarInviteEnabled\", event.target.checked);\r\n };\r\n\r\n handleFeedbackChange = (event: React.ChangeEvent) => {\r\n this.onPreferenceKeyUpdated(\"feedbackEnabled\", event.target.checked);\r\n };\r\n\r\n render() {\r\n const { classes, user, textIsDisabled } = this.props;\r\n const { remindersEnabled, feedbackEnabled } = this.props.preferences;\r\n const contactPrefs = {\r\n isMobilePhone: this.props.preferences.isMobilePhone,\r\n email: this.props.preferences.preferredEmail,\r\n phone: this.props.preferences.preferredPhone,\r\n communicationPreference: this.props.preferences.communicationPreference\r\n\r\n } as ContactPreferences;\r\n return (\r\n
\r\n \r\n * Required Field\r\n \r\n Other Options\r\n \r\n }\r\n label=\"Send me appointment reminders\"\r\n />\r\n }\r\n label=\"Ask me for feedback\"\r\n />\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n alignContent: \"center\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n justifyContent: \"center\"\r\n },\r\n contactNumberContainer: {\r\n display: \"flex\",\r\n flexDirection: \"row\"\r\n },\r\n contactNumberInput: {\r\n flexGrow: 1\r\n },\r\n contactNumberCheck: {\r\n alignSelf: \"flex-end\"\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(CustomerSettingsForm);\r\n","import * as React from \"react\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { StoreState } from \"../../store/storeState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { setAppTitleBar } from \"../../actions/appTitleBarActions\";\r\nimport { TitleBar } from \"../../types/titleBar\";\r\nimport { connect } from \"react-redux\";\r\nimport { withStyles, createStyles, Button } from \"@material-ui/core\";\r\nimport { WithStyles, Theme } from \"@material-ui/core/styles\";\r\nimport CustomerSettingsForm from \"./CustomerSettingsForm\";\r\nimport { getCustomerPreferences, updateCustomerPreferences } from \"../../actions/customerPreferencesActions\";\r\nimport { loadBranches } from \"../../actions/branchActions\";\r\nimport { Fragment } from \"react\";\r\nimport { initialState } from \"../../store/initialState\";\r\nimport { ContactInfoValidation } from \"../../utilities/fieldValidator\";\r\nimport CircularProgressBlanket from \"../../../common/Components/CircularProgressBlanket\";\r\nimport { withRouter, RouteComponentProps } from \"react-router\";\r\nimport ContentCircularProgress from \"../../../common/Components/general/ContentCircularProgress\";\r\nimport { CustomerPreferences, Customer } from \"src/external/types/customer\";\r\nimport { rootFontSize } from \"src/globalCssVars\";\r\n\r\ninterface CustomerSettingsPageDispatchProps {\r\n setAppTitle: (title: TitleBar) => void;\r\n getPreferences: (userId: number) => Promise;\r\n getBranches: () => Promise;\r\n updatePreferences: (preferences: CustomerPreferences) => Promise;\r\n}\r\n\r\ninterface CustomerSettingsPageReduxProps {\r\n user: Customer;\r\n preferences: CustomerPreferences;\r\n textIsDisabled: boolean;\r\n}\r\n\r\ninterface CustomerSettingsPageProps\r\n extends CustomerSettingsPageDispatchProps,\r\n CustomerSettingsPageReduxProps,\r\n RouteComponentProps,\r\n WithStyles { }\r\n\r\ninterface CustomerSettingsPageState {\r\n loading: boolean;\r\n preferences: CustomerPreferences;\r\n isValid: boolean;\r\n saving: boolean;\r\n}\r\n\r\nclass CustomerSettingsPage extends React.PureComponent {\r\n static getDerivedStateFromProps(nextProps: CustomerSettingsPageProps, prevState: CustomerSettingsPageState) {\r\n if (prevState.preferences.customerId === -1) {\r\n return {\r\n preferences: {\r\n ...nextProps.preferences,\r\n preferredEmail: getInitialEmail(nextProps),\r\n preferredPhone: getInitialPhone(nextProps)\r\n }\r\n };\r\n }\r\n return null;\r\n }\r\n\r\n constructor(props: CustomerSettingsPageProps) {\r\n super(props);\r\n this.state = {\r\n loading: false,\r\n preferences: { ...initialState.customerPreferences },\r\n isValid: true,\r\n saving: false\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n this.props.setAppTitle({\r\n title: \"Settings\",\r\n description: \"Update your personal settings\"\r\n });\r\n try {\r\n this.setState({ loading: true });\r\n await Promise.all([this.props.getPreferences(this.props.user.id), this.props.getBranches()]);\r\n } finally {\r\n this.setState({ loading: false });\r\n }\r\n }\r\n\r\n preferenceAndValidationUpdated = (preferences: CustomerPreferences, isValid: boolean) => {\r\n this.setState({ preferences, isValid });\r\n };\r\n\r\n preferenceUpdated = (preferences: CustomerPreferences) => {\r\n this.setState({ preferences });\r\n };\r\n\r\n userUpdated = (user: Customer, valid: ContactInfoValidation) => {\r\n this.setState({\r\n isValid: valid.validEmail && valid.validPhone\r\n });\r\n };\r\n\r\n save = async () => {\r\n this.setState({ saving: true });\r\n await this.props.updatePreferences(this.state.preferences);\r\n this.setState({ saving: false });\r\n this.props.history.push(\"/\");\r\n };\r\n\r\n cancel = () => {\r\n this.setState({\r\n preferences: {\r\n ...this.props.preferences,\r\n preferredEmail: getInitialEmail(this.props),\r\n preferredPhone: getInitialPhone(this.props)\r\n }\r\n });\r\n\r\n this.props.history.push(\"/\");\r\n };\r\n\r\n render() {\r\n const { classes, user, textIsDisabled } = this.props;\r\n const { loading, preferences, isValid, saving } = this.state;\r\n return (\r\n
\r\n {saving && }\r\n {loading ? (\r\n \r\n ) : (\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n Save\r\n \r\n \r\n
\r\n
\r\n )}\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) => {\r\n return createStyles({\r\n root: {\r\n margin: \"0 auto\",\r\n maxWidth: `${600 / rootFontSize}rem`\r\n },\r\n formContainer: {\r\n padding: theme.spacing.unit * 2 + \"rem\",\r\n paddingBottom: 0,\r\n height: \"100%\",\r\n overflow: \"auto\"\r\n },\r\n buttons: {\r\n position: \"fixed\",\r\n bottom: 0,\r\n paddingBottom: theme.spacing.unit * 2 + \"rem\",\r\n paddingLeft: theme.spacing.unit * 2 + \"rem\",\r\n width: \"100vw\",\r\n background: theme.palette.background.default\r\n },\r\n saveButton: {\r\n marginRight: `${theme.spacing.unit}rem`\r\n }\r\n });\r\n};\r\n\r\nconst getInitialEmail = (props: CustomerSettingsPageProps): string => {\r\n return props.preferences.preferredEmail ? props.preferences.preferredEmail : props.user.email ? props.user.email : \"\";\r\n};\r\n\r\nconst getInitialPhone = (props: CustomerSettingsPageProps): string => {\r\n return props.preferences.preferredPhone ? props.preferences.preferredPhone : props.user.phone ? props.user.phone : \"\";\r\n};\r\n\r\nconst mapStateToProps = (state: StoreState): CustomerSettingsPageReduxProps => {\r\n return {\r\n user: state.authentication.customer,\r\n preferences: state.customerPreferences,\r\n textIsDisabled: state.appSettings.organizationSettings.textIsDisabled\r\n };\r\n};\r\n\r\nconst mapDispatchToProps = (\r\n dispatch: ThunkDispatch\r\n): CustomerSettingsPageDispatchProps => {\r\n return {\r\n setAppTitle: (title: any) => {\r\n dispatch(setAppTitleBar(title));\r\n },\r\n getPreferences: async userId => {\r\n await dispatch(await getCustomerPreferences(userId));\r\n },\r\n getBranches: async () => {\r\n await dispatch(await loadBranches(undefined, false));\r\n },\r\n updatePreferences: async (preferences: CustomerPreferences) =>\r\n await dispatch(updateCustomerPreferences(preferences))\r\n };\r\n};\r\n\r\nexport default connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n)(withRouter(withStyles(styles)(CustomerSettingsPage)));\r\n","import * as React from \"react\";\r\nimport { PureComponent } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { AnyAction } from \"redux\";\r\nimport { StoreState } from \"src/external/store/storeState\";\r\nimport { CustomerState } from \"src/external/types/authentication\";\r\nimport { TitleBar } from \"src/external/types/titleBar\";\r\nimport { setAppTitleBar } from \"src/external/actions/appTitleBarActions\";\r\nimport VideosMasterDetail from \"src/common/Components/HelpVideos/VideosMasterDetail\";\r\nimport { getVideosAction } from \"src/common/actions/helpVideosActions\";\r\nimport { withRouter, RouteComponentProps } from \"react-router-dom\";\r\n\r\ninterface HelpVideosPageReduxProps {\r\n auth: CustomerState;\r\n}\r\n\r\ninterface HelpVideosPageDispatchProps {\r\n setAppTitle: (title: TitleBar) => void;\r\n getVideos: (path: string) => Promise;\r\n}\r\n\r\ninterface HelpVideosPageProps extends HelpVideosPageReduxProps, HelpVideosPageDispatchProps, RouteComponentProps {}\r\n\r\nclass HelpVideosPage extends PureComponent {\r\n componentDidMount() {\r\n this.props.setAppTitle({\r\n title: \"Help\",\r\n description: \"\"\r\n });\r\n const path = this.props.auth.isServiceRep ? \"branchstaff\" : this.props.auth.isCustomer ? \"member\" : \"guest\";\r\n this.props.getVideos(path);\r\n }\r\n\r\n render() {\r\n return ;\r\n }\r\n}\r\nconst mapStateToProps = (state: StoreState): HelpVideosPageReduxProps => {\r\n return {\r\n auth: state.authentication\r\n };\r\n};\r\n\r\nconst mapDispatchToProps = (dispatch: ThunkDispatch): HelpVideosPageDispatchProps => {\r\n return {\r\n setAppTitle: (title: any) => {\r\n dispatch(setAppTitleBar(title));\r\n },\r\n getVideos: async (path: string) => {\r\n await dispatch(await getVideosAction(path));\r\n }\r\n };\r\n};\r\n\r\nexport default connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n)(withRouter(HelpVideosPage));\r\n","import CustomerSettingsPage from \"./components/Settings/CustomerSettingsPage\";\r\nimport { SvgIconProps } from \"@material-ui/core/SvgIcon\";\r\nimport HomeIcon from \"@material-ui/icons/Home\";\r\nimport CalendarIcon from \"@material-ui/icons/PermContactCalendar\";\r\nimport SettingsIcon from \"@material-ui/icons/Settings\";\r\nimport asyncComponent from \"./components/common/asyncComponent\";\r\nimport { Help } from \"@material-ui/icons\";\r\nimport HelpVideosPage from \"./components/Help/HelpVideosPage\";\r\n\r\nconst ApptWizardContainer = asyncComponent(() => import(\"./components/Wizard/ApptWizardContainer\"));\r\nconst HomePage = asyncComponent(() => import(\"./components/HomePage/HomePage\"));\r\n\r\nexport interface NavItem {\r\n hideInMenu?: boolean;\r\n title: string;\r\n path: string;\r\n exact: boolean;\r\n component: React.ComponentType;\r\n icon: React.ComponentType;\r\n}\r\n\r\nconst helpNavItem = {\r\n title: \"Help\",\r\n path: \"/help\",\r\n exact: false,\r\n component: HelpVideosPage,\r\n icon: Help\r\n};\r\n\r\nconst newApptNavItem = {\r\n title: \"New Appt\",\r\n path: \"/appt\",\r\n exact: true,\r\n component: ApptWizardContainer,\r\n icon: CalendarIcon\r\n};\r\n\r\nconst newApptHomeNavItem = {\r\n ...newApptNavItem,\r\n path: \"/\"\r\n};\r\n\r\nconst homeNavItem = {\r\n title: \"Home\",\r\n path: \"/\",\r\n exact: true,\r\n component: HomePage,\r\n icon: HomeIcon\r\n};\r\n\r\nconst settingsNavItem = {\r\n title: \"Settings\",\r\n path: \"/settings\",\r\n exact: true,\r\n component: CustomerSettingsPage,\r\n icon: SettingsIcon\r\n};\r\n\r\nexport const defaultNavItems: NavItem[] = [newApptHomeNavItem, helpNavItem];\r\n\r\nexport const allNavItems: NavItem[] = [homeNavItem, newApptNavItem, settingsNavItem, helpNavItem];\r\n\r\nexport const internalNavItems: NavItem[] = [homeNavItem, newApptNavItem, helpNavItem];\r\n","import axios from \"axios\";\r\nimport { handleApiError } from \"src/common/api/apiErrorHandler\";\r\nimport { SurveyLink } from \"../types/surveyLink\";\r\n\r\nexport default class SurveyLinksApi {\r\n static async getLink(publicKey: string): Promise {\r\n const url = this.baseUrl + `/s/${publicKey}`;\r\n try {\r\n const response = await axios.get(url);\r\n return response.data;\r\n } catch (error) {\r\n return handleApiError(error);\r\n }\r\n }\r\n\r\n private static baseUrl: string = \"./api/links/survey\";\r\n}\r\n","import * as React from \"react\";\r\nimport { withStyles, CssBaseline, createMuiTheme, MuiThemeProvider, withWidth } from \"@material-ui/core\";\r\nimport { connect } from \"react-redux\";\r\nimport { StoreState } from \"./store/storeState\";\r\nimport { createStyles, Theme, WithStyles } from \"@material-ui/core/styles\";\r\nimport { TitleBar } from \"./types/titleBar\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport { RouteComponentProps } from \"react-router\";\r\nimport { CustomerState } from \"./types/authentication\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { AnyAction } from \"redux\";\r\nimport { loadAppSettings } from \"../common/actions/appSettingsActions\";\r\nimport AppWideErrorModal from \"../common/Components/general/AppWideErrorModal\";\r\nimport AppDrawer from \"./components/Drawer/AppDrawer\";\r\nimport ApptsAppBar from \"./components/common/ApptsAppBar\";\r\nimport { appBarHeight, getCustomTheme } from \"../customTheme\";\r\nimport ContentCircularProgress from \"src/common/Components/general/ContentCircularProgress\";\r\nimport { hexToRgb, RGB } from \"./utilities/colorUtil\";\r\nimport { CustomPalette } from \"../common/types/appSettings\";\r\nimport Routes from \"./Routes\";\r\nimport { internalNavItems, defaultNavItems, allNavItems } from \"./navItems\";\r\nimport ConfirmDialog from \"src/common/Components/ConfirmDialog\";\r\nimport { logout } from \"./actions/authActions\";\r\nimport MarketingLinkActions from \"./actions/marketingLinkActions\";\r\nimport * as qs from \"query-string\";\r\nimport SurveyLinksApi from \"./api/surveyLinkApi\";\r\nimport { closeAppAfterAppt } from \"./actions/appActions\";\r\nimport Div100vh from \"react-div-100vh\";\r\nimport { WithWidth, isWidthUp } from \"@material-ui/core/withWidth\";\r\n\r\ninterface AppState {\r\n title: TitleBar;\r\n drawerOpen: boolean;\r\n configurationLoading: boolean;\r\n appTheme?: Theme;\r\n primaryRgbColor: RGB;\r\n confirmationDialogOpen: boolean;\r\n}\r\n\r\ninterface AppReduxProps {\r\n appTitle: TitleBar;\r\n authentication: CustomerState;\r\n palette: CustomPalette;\r\n isInternal: boolean;\r\n}\r\n\r\ninterface AppDispatchProps {\r\n init: () => Promise;\r\n resolveDeepLink: (id: string) => Promise;\r\n logout: () => void;\r\n setCloseAfterAppt: () => void;\r\n}\r\n\r\ninterface AppOwnProps extends RouteComponentProps {}\r\n\r\ninterface AppProps extends AppReduxProps, AppOwnProps, AppDispatchProps, WithStyles, WithWidth {\r\n classes: any;\r\n}\r\n\r\nclass App extends React.Component {\r\n static getDerivedStateFromProps(nextProps: AppProps, prevState: AppState) {\r\n if (\r\n (nextProps.appTitle && prevState.title.title !== nextProps.appTitle.title) ||\r\n prevState.appTheme === undefined\r\n ) {\r\n const newState: Partial = {\r\n title: {\r\n description: nextProps.appTitle.description,\r\n title: nextProps.appTitle.title\r\n }\r\n };\r\n\r\n if (prevState.appTheme === undefined && nextProps.palette.primary.main !== \"\") {\r\n newState.appTheme = createMuiTheme(getCustomTheme(nextProps.palette));\r\n newState.primaryRgbColor = hexToRgb(nextProps.palette.primary.main);\r\n }\r\n\r\n return newState;\r\n } else {\r\n return null;\r\n }\r\n }\r\n constructor(props: AppProps) {\r\n super(props);\r\n this.state = {\r\n configurationLoading: true,\r\n title: {\r\n description: \"\",\r\n title: \"\"\r\n },\r\n drawerOpen: false,\r\n primaryRgbColor: {\r\n r: 0,\r\n g: 0,\r\n b: 0\r\n },\r\n confirmationDialogOpen: false\r\n };\r\n }\r\n\r\n async componentDidMount() {\r\n // try to hide the app\r\n const ua = window.navigator.userAgent.toLowerCase();\r\n const isIPad = !!ua.match(/(ipad)( simulator)?;/i);\r\n const isIPhone = !!ua.match(/(iphone|ipod)( simulator)?;/i);\r\n if (isIPhone || isIPad) {\r\n let scrollBit = isIPhone ? 1 : 0;\r\n setTimeout(() => {\r\n window.scrollTo(0, scrollBit);\r\n }, 0);\r\n }\r\n this.setState({ configurationLoading: true });\r\n if (location.search && location.search.length > 0) {\r\n const parsed: any = qs.parse(location.search);\r\n if (parsed.l) {\r\n this.props.resolveDeepLink(parsed.l.toString());\r\n } else if (parsed.s) {\r\n const link = await SurveyLinksApi.getLink(parsed.s.toString());\r\n this.props.history.push(`/survey/${link.appointmentId}`);\r\n }\r\n }\r\n\r\n // set close after appt\r\n if (this.props.location.search) {\r\n const params = new URLSearchParams(this.props.location.search);\r\n const closeAfterAppt = params.get(\"closeAfterAppt\");\r\n if (closeAfterAppt === \"true\") {\r\n this.props.setCloseAfterAppt();\r\n }\r\n }\r\n\r\n await this.props.init();\r\n this.setState({ configurationLoading: false });\r\n }\r\n\r\n openDrawer = () => {\r\n this.setState({ drawerOpen: true });\r\n };\r\n\r\n closeDrawer = () => {\r\n this.setState({ drawerOpen: false });\r\n };\r\n\r\n onCancelClick = () => {\r\n this.setState({ confirmationDialogOpen: true });\r\n };\r\n\r\n closeConfirmModal = () => {\r\n this.setState({ confirmationDialogOpen: false });\r\n };\r\n\r\n routeToHome = () => {\r\n this.setState({ confirmationDialogOpen: false });\r\n if (!this.props.authentication.isCustomer && this.props.location.pathname.indexOf(\"survey\") == -1) {\r\n this.closeDrawer();\r\n this.props.logout();\r\n } else {\r\n this.closeDrawer();\r\n this.props.history.push(\"/\");\r\n }\r\n };\r\n\r\n public render() {\r\n const { classes, authentication, isInternal, width } = this.props;\r\n const { drawerOpen, title, configurationLoading, appTheme, primaryRgbColor, confirmationDialogOpen } = this.state;\r\n if (!authentication.isSignedIn && drawerOpen) {\r\n this.closeDrawer();\r\n }\r\n let cancelTooltipText = \"\",\r\n confirmDialogContent = \"\",\r\n confirmDialogTitle = \"\",\r\n showCancel = false,\r\n isSurvey = false;\r\n if (this.props.location.pathname.indexOf(\"survey\") > -1) {\r\n isSurvey = true;\r\n showCancel = true;\r\n cancelTooltipText = \"Exit Survey\";\r\n confirmDialogTitle = \"Exit Survey\";\r\n confirmDialogContent = \"Do you wish to exit the feedback survey?\";\r\n } else if (\r\n this.props.location.pathname.indexOf(\"appt\") > -1 ||\r\n (!authentication.isCustomer && this.props.location.pathname.indexOf(\"help\") == -1)\r\n ) {\r\n showCancel = true;\r\n cancelTooltipText = \"Cancel Appointment Creation\";\r\n confirmDialogTitle = \"Cancel Appointment\";\r\n confirmDialogContent = \"Do you wish to cancel the appointment creation wizard?\";\r\n }\r\n // return all nav items when the user is not signed in\r\n // This allows us to deep link and re-route to the login page\r\n const navItems = !authentication.isSignedIn\r\n ? allNavItems\r\n : !authentication.isCustomer\r\n ? defaultNavItems\r\n : isInternal\r\n ? internalNavItems\r\n : allNavItems;\r\n\r\n return appTheme ? (\r\n \r\n
\r\n \r\n {configurationLoading ? (\r\n \r\n ) : (\r\n
\r\n {(authentication.isSignedIn || isSurvey) && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n
\r\n )}\r\n \r\n {confirmationDialogOpen && (\r\n \r\n )}\r\n
\r\n
\r\n ) : (\r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n root: {\r\n // iOS Safari specific to enable smooth-scrolling/inertia\r\n WebkitOverflowScrolling: \"touch\"\r\n },\r\n mainContent: {\r\n margin: \"0 auto\",\r\n marginTop: `${appBarHeight.sm}rem`,\r\n [theme.breakpoints.up(\"md\")]: {\r\n marginTop: `${appBarHeight.gtSm}rem`\r\n }\r\n }\r\n });\r\n\r\nconst mapStateToProps = (state: StoreState, ownProps: AppOwnProps): AppReduxProps & AppOwnProps => {\r\n return {\r\n ...ownProps,\r\n appTitle: state.appTitleBar,\r\n authentication: state.authentication,\r\n palette: state.appSettings.palette,\r\n isInternal: state.appSettings.isInternal\r\n };\r\n};\r\n\r\nconst mapDispatchToProps = (dispatch: ThunkDispatch): AppDispatchProps => {\r\n return {\r\n init: async () => {\r\n await Promise.all([await dispatch(await loadAppSettings())]);\r\n },\r\n resolveDeepLink: async (id: string) => {\r\n await dispatch(await MarketingLinkActions.getDeepLink(id));\r\n },\r\n logout: () => dispatch(logout),\r\n setCloseAfterAppt: () => dispatch(closeAppAfterAppt())\r\n };\r\n};\r\n\r\nexport default withStyles(styles)(\r\n withWidth()(\r\n withRouter(\r\n connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n )(App)\r\n )\r\n )\r\n);\r\n","import { AnyAction } from \"redux\";\r\nimport { actionTypeKeys } from \"./actionTypeKeys\";\r\n\r\nexport const closeAppAfterAppt = (): AnyAction => {\r\n return {\r\n type: actionTypeKeys.CLOSE_APP_AFTER_APPT\r\n };\r\n};\r\n","import * as React from \"react\";\r\nimport * as ReactDOM from \"react-dom\";\r\nimport App from \"./App\";\r\nimport * as serviceWorker from \"../registerServiceWorker\";\r\nimport configureStore from \"./store/configureStore\";\r\nimport { initialState } from \"./store/initialState\";\r\nimport { StoreState } from \"./store/storeState\";\r\nimport { Store } from \"redux\";\r\nimport { HashRouter } from \"react-router-dom\";\r\nimport { Provider } from \"react-redux\";\r\nimport \"../polyfills\";\r\nimport { authenticationSuccess } from \"./actions/authActions\";\r\nimport { Customer } from \"./types/customer\";\r\n\r\nconst store: Store = configureStore(initialState);\r\n\r\nconst customerString = sessionStorage.getItem(\"customer\");\r\nif (customerString) {\r\n const customer = JSON.parse(customerString) as Customer;\r\n if (customer) {\r\n store.dispatch(authenticationSuccess(customer));\r\n }\r\n}\r\n\r\nconst renderApp = () => {\r\n return (\r\n // The Provider component is a special React-Redux component that provides the hooks to the\r\n // store.\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nfunction registerHMR() {\r\n type ModuleHMR = typeof module & {\r\n hot?: {\r\n accept(dependencies: string | string[], callback: (updatedDependencies: any[]) => void): void;\r\n };\r\n };\r\n if ((module as ModuleHMR).hot) {\r\n (module as ModuleHMR).hot!.accept(\"./App\", () => {\r\n ReactDOM.render(\r\n \r\n \r\n \r\n \r\n ,\r\n document.getElementById(\"root\") as HTMLElement\r\n );\r\n });\r\n }\r\n}\r\n\r\nReactDOM.render(renderApp(), document.getElementById(\"root\") as HTMLElement);\r\n\r\nserviceWorker.unregisterServiceWorker();\r\nregisterHMR();\r\n\r\nexport { store };\r\n","import { ErrorMessage } from \"../../external/types/errors\";\r\nimport { AnyAction } from \"redux\";\r\nimport { commonActionKeys } from \"src/common/actions/commonActionKeys\";\r\n\r\nexport const showErrorMessage = (errorMessage: ErrorMessage): AnyAction => {\r\n return {\r\n type: commonActionKeys.SHOW_ERROR_MESSAGE,\r\n errorMessage\r\n };\r\n};\r\n\r\nexport const dismissErrorDialog = (errorMessage: ErrorMessage): AnyAction => {\r\n return {\r\n type: commonActionKeys.DISMISS_ERROR_DIALOG,\r\n errorMessage\r\n };\r\n};\r\n\r\nexport const clearErrorMessage = (): AnyAction => {\r\n return {\r\n type: commonActionKeys.CLEAR_ERROR_MESSAGE\r\n };\r\n};\r\n","'use strict';\n\nmodule.exports = function (str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase();\n });\n};","'use strict';\n\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n try {\n // Try to decode the entire string first\n return decodeURIComponent(components.join(''));\n } catch (err) {// Do nothing\n }\n\n if (components.length === 1) {\n return components;\n }\n\n split = split || 1; // Split the array in 2 parts\n\n var left = components.slice(0, split);\n var right = components.slice(split);\n return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n try {\n return decodeURIComponent(input);\n } catch (err) {\n var tokens = input.match(singleMatcher);\n\n for (var i = 1; i < tokens.length; i++) {\n input = decodeComponents(tokens, i).join('');\n tokens = input.match(singleMatcher);\n }\n\n return input;\n }\n}\n\nfunction customDecodeURIComponent(input) {\n // Keep track of all the replacements and prefill the map with the `BOM`\n var replaceMap = {\n '%FE%FF': \"\\uFFFD\\uFFFD\",\n '%FF%FE': \"\\uFFFD\\uFFFD\"\n };\n var match = multiMatcher.exec(input);\n\n while (match) {\n try {\n // Decode as big chunks as possible\n replaceMap[match[0]] = decodeURIComponent(match[0]);\n } catch (err) {\n var result = decode(match[0]);\n\n if (result !== match[0]) {\n replaceMap[match[0]] = result;\n }\n }\n\n match = multiMatcher.exec(input);\n } // Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\n\n replaceMap['%C2'] = \"\\uFFFD\";\n var entries = Object.keys(replaceMap);\n\n for (var i = 0; i < entries.length; i++) {\n // Replace all decoded components\n var key = entries[i];\n input = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n }\n\n return input;\n}\n\nmodule.exports = function (encodedURI) {\n if (typeof encodedURI !== 'string') {\n throw new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n }\n\n try {\n encodedURI = encodedURI.replace(/\\+/g, ' '); // Try the built in decoder first\n\n return decodeURIComponent(encodedURI);\n } catch (err) {\n // Fallback to a more advanced decoder\n return customDecodeURIComponent(encodedURI);\n }\n};","\"use strict\";\n\nif (!Array.isArray) {\n Array.isArray = function (arg) {\n return Object.prototype.toString.call(arg) === '[object Array]';\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _convertStyle = _interopRequireDefault(require(\"./convertStyle\"));\n\nvar _getWindowHeight = _interopRequireDefault(require(\"./getWindowHeight\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nvar Div100vh =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Div100vh, _React$Component);\n\n function Div100vh() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Div100vh);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Div100vh)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n style: {}\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"updateStyle\", function () {\n var convertedStyle = (0, _convertStyle.default)(_this.props.style, (0, _getWindowHeight.default)());\n\n _this.setState({\n style: convertedStyle\n });\n });\n\n return _this;\n }\n\n _createClass(Div100vh, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateStyle();\n window.addEventListener('resize', this.updateStyle);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n window.removeEventListener('resize', this.updateStyle);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n _this$props$as = _this$props.as,\n Element = _this$props$as === void 0 ? 'div' : _this$props$as,\n props = _objectWithoutProperties(_this$props, [\"as\"]);\n\n return _react.default.createElement(Element, _extends({}, props, {\n style: this.state.style\n }));\n }\n }]);\n\n return Div100vh;\n}(_react.default.Component);\n\nexports.default = Div100vh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _convertStyle.default;\n }\n});\n\nvar _convertStyle = _interopRequireDefault(require(\"./convertStyle\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.containsRvh = containsRvh;\nexports.default = void 0;\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction containsRvh(propertyValue) {\n // TODO: when regexp is lifted up the lexical scope, to be used\n // in both `containsRvh` and `replaceRvhWithPx`, some tests start to\n // fail. Seems like a regexp object contains some weird state that\n // changes after executions; executions interfere with each other.\n // It would be nice to figure out what is the problem exactly.\n var rvhRegex = /(\\d+(\\.\\d*)?)rvh(?!\\w)/;\n return rvhRegex.test(propertyValue);\n}\n\nfunction replaceRvhWithPx(propertyStringValue, windowHeight) {\n // regexp is global to make #replace work multiple times\n var rvhRegex = /(\\d+(\\.\\d*)?)rvh(?!\\w)/g;\n return propertyStringValue.replace(rvhRegex, function (_, rvh) {\n return \"\".concat(windowHeight * parseFloat(rvh) / 100, \"px\");\n });\n}\n\nfunction throwOnBadArgs(givenStyle, windowHeight) {\n if (_typeof(givenStyle) !== 'object' && givenStyle !== undefined || Array.isArray(givenStyle)) throw Error(\"style (the first argument) must be an object or undefined\");\n if (typeof windowHeight !== 'number' || windowHeight < 0) throw Error('Second argument (windowHeight) must be a non-negative number');\n}\n\nfunction convertStyle(givenStyle, windowHeight) {\n throwOnBadArgs(givenStyle, windowHeight); // If style is not passed, implicit {height: '100rvh'} style is used.\n\n var defaultStyle = {\n height: '100rvh'\n };\n var usedStyle = givenStyle === undefined ? defaultStyle : givenStyle;\n var convertedStyle = {};\n Object.keys(usedStyle).forEach(function (key) {\n // if a value contains no rvh unit, it's used as is, otherwise converted\n // to px; 1rvh = (window.innerHeight / 100)px\n convertedStyle[key] = typeof usedStyle[key] === 'string' ? replaceRvhWithPx(usedStyle[key], windowHeight) : usedStyle[key];\n });\n return convertedStyle;\n}\n\nvar _default = convertStyle;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0; // extracted into a separate module so it's easier to mock with Jest\n\nfunction getWindowHeight() {\n return document && document.documentElement && document.documentElement.clientHeight || window.innerHeight;\n}\n\nvar _default = getWindowHeight;\nexports.default = _default;","import { VisitOption, Category } from \"src/common/types/visit\";\r\nimport { Representative } from \"../types/representative\";\r\n\r\nexport const sortVisitOptions = (visitOptions: VisitOption[]): VisitOption[] => {\r\n visitOptions.forEach(v => {\r\n sortReasons(v as Category);\r\n });\r\n\r\n return visitOptions.sort(visitCompareFn);\r\n};\r\n\r\nexport const mapRepToVisitOption = (r: Representative, showBranchInfo: boolean) => {\r\n return {\r\n id: r.id,\r\n description: showBranchInfo\r\n ? r.branches\r\n .filter(b => !b.isVirtual)\r\n .map(b => b.name)\r\n .join(\", \")\r\n : r.description,\r\n secondaryDescription: showBranchInfo ? r.description : undefined,\r\n name: r.name,\r\n imageUrl: r.imageUrl,\r\n thumbnailUrl: r.thumbnailUrl,\r\n appointmentsEnabled: true,\r\n membersOnly: false,\r\n serviceRepOnly: false\r\n } as VisitOption;\r\n};\r\n\r\nconst sortReasons = (category: Category) => {\r\n if (category.reasons && category.reasons.length > 0) {\r\n category.reasons.sort(visitCompareFn);\r\n }\r\n};\r\n\r\nconst visitCompareFn = (a: VisitOption, b: VisitOption) => {\r\n if (a.name.toLowerCase() < b.name.toLowerCase()) {\r\n return -1;\r\n } else if (b.name.toLowerCase() < a.name.toLowerCase()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n};\r\n","import axios, { AxiosResponse } from \"axios\";\r\nimport { handleApiError } from \"src/common/api/apiErrorHandler\";\r\n\r\nexport default class AuthApi {\r\n static async authenticate(username: string, password: string): Promise {\r\n return axios\r\n .post(\"./api/Authorization/Login\", {\r\n username,\r\n password\r\n })\r\n .then(\r\n (response: AxiosResponse): string => {\r\n return response.data;\r\n }\r\n )\r\n .catch(error => {\r\n return handleApiError(error);\r\n });\r\n }\r\n}\r\n","import axios from \"axios\";\r\nimport { Dispatch, AnyAction } from \"redux\";\r\nimport AuthApi from \"../api/authApi\";\r\nimport { handleActionError } from \"src/common/actions/actionErrorHandler\";\r\nimport * as jwt_decode from \"jwt-decode\";\r\nimport { Token, tokenKey, LoginUser } from \"../types/authentication\";\r\nimport { handleAuthentication } from \"../utilities/authHelper\";\r\nimport { internalActionKeys } from \"./internalActionKeys\";\r\nimport * as Cookies from \"js-cookie\";\r\n\r\nexport const authenticateSuccess = (user: LoginUser): AnyAction => {\r\n return {\r\n type: internalActionKeys.AUTHENTICATE_SUCCESS,\r\n user\r\n };\r\n};\r\n\r\nexport const internalLogout = (): AnyAction => {\r\n return {\r\n type: internalActionKeys.LOGOUT\r\n };\r\n};\r\n\r\nexport const internalAuthenticate = (email: string, password: string) => {\r\n return async (dispatch: Dispatch) => {\r\n try {\r\n const response = await AuthApi.authenticate(email, password);\r\n if (response) {\r\n const token = jwt_decode(response);\r\n if (localStorage.getItem(\"lastAdminCheckboxState\") == \"true\") {\r\n const expDate = new Date(token.exp * 1000);\r\n Cookies.set(tokenKey, response, { expires: expDate });\r\n }\r\n sessionStorage.setItem(tokenKey, response);\r\n axios.defaults.headers.common.Authorization = \"Bearer \" + response;\r\n handleAuthentication(token, dispatch);\r\n }\r\n } catch (error) {\r\n handleActionError(error, dispatch);\r\n }\r\n };\r\n};\r\n","import * as React from \"react\";\r\nimport createStyles from \"@material-ui/core/styles/createStyles\";\r\nimport { withStyles, WithStyles, Theme } from \"@material-ui/core/styles\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\nimport ContentCircularProgress from \"src/common/Components/general/ContentCircularProgress\";\r\n\r\ninterface LoadingCardProps extends WithStyles {\r\n title?: string;\r\n}\r\n\r\nclass LoadingCard extends React.PureComponent {\r\n constructor(props: LoadingCardProps) {\r\n super(props);\r\n }\r\n\r\n render() {\r\n const { classes, title } = this.props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst styles = (theme: Theme) =>\r\n createStyles({\r\n content: {\r\n display: \"flex\",\r\n justifyContent: \"center\"\r\n }\r\n });\r\n\r\nexport default withStyles(styles)(LoadingCard);\r\n","import createMuiTheme, { ThemeOptions } from \"@material-ui/core/styles/createMuiTheme\";\r\nimport { cssVars, customBoxShadow, rootFontSize } from \"./globalCssVars\";\r\nimport { CustomPalette } from \"./common/types/appSettings\";\r\n\r\nexport const appBarHeight = {\r\n gtSm: cssVars.webToolbarHeight,\r\n sm: 50 / rootFontSize\r\n};\r\n\r\nexport const mobileStepperHeight = 80 / rootFontSize;\r\n\r\nexport function getCustomTheme(customPalette: CustomPalette): ThemeOptions {\r\n const defaultTheme = createMuiTheme();\r\n const listMargin = 1;\r\n const listBorderRadius = 5 / rootFontSize;\r\n\r\n const listStyles = {\r\n borderRadius: listBorderRadius + \"rem\",\r\n boxShadow: customBoxShadow,\r\n marginTop: listMargin + \"rem\",\r\n \"&:first-child\": {\r\n marginTop: 0\r\n },\r\n \"&:last-child\": {\r\n marginBottom: 0\r\n },\r\n backgroundColor: \"white\"\r\n };\r\n\r\n const expansionPanelStyles = {\r\n ...listStyles,\r\n \"&:first-child\": {\r\n borderTopRightRadius: listBorderRadius + \"rem\",\r\n borderTopLeftRadius: listBorderRadius + \"rem\",\r\n marginTop: 0\r\n },\r\n \"&:last-child\": {\r\n borderBottomLeftRadius: listBorderRadius + \"rem\",\r\n borderBottomRightRadius: listBorderRadius + \"rem\",\r\n marginBottom: 0\r\n },\r\n marginRight: listMargin + \"rem\",\r\n marginLeft: listMargin + \"rem\"\r\n };\r\n\r\n return {\r\n typography: {\r\n useNextVariants: true,\r\n fontFamily: \"'Roboto', sans-serif\"\r\n },\r\n spacing: {\r\n unit: 0.5\r\n },\r\n palette: {\r\n primary: {\r\n main: customPalette.primary.main,\r\n contrastText: customPalette.primary.contrastText\r\n },\r\n secondary: {\r\n main: customPalette.secondary.main,\r\n contrastText: customPalette.secondary.contrastText\r\n }\r\n },\r\n mixins: {\r\n toolbar: {\r\n minHeight: appBarHeight.sm + \"rem\",\r\n paddingLeft: \"1rem\",\r\n paddingRight: \"1rem\",\r\n [defaultTheme.breakpoints.up(\"md\")]: {\r\n minHeight: appBarHeight.gtSm + \"rem\",\r\n paddingLeft: \"1.5rem\",\r\n paddingRight: \"1.5rem\"\r\n }\r\n }\r\n },\r\n overrides: {\r\n MuiExpansionPanel: {\r\n root: {\r\n \"&:before\": {\r\n height: 0\r\n },\r\n ...expansionPanelStyles\r\n },\r\n expanded: {\r\n ...expansionPanelStyles\r\n }\r\n },\r\n MuiExpansionPanelSummary: {\r\n content: {\r\n alignItems: \"center\"\r\n }\r\n },\r\n MuiList: {\r\n root: {},\r\n padding: {\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n padding: listMargin + \"rem\"\r\n }\r\n },\r\n MuiListItem: {\r\n root: {\r\n ...listStyles\r\n }\r\n },\r\n MuiListItemText: {\r\n primary: {\r\n color: customPalette.secondary.main,\r\n fontWeight: 500,\r\n fontSize: \"1.25rem\",\r\n lineHeight: \"1.2\"\r\n },\r\n secondary: {\r\n fontWeight: 500,\r\n color: \"rgba(0,0,0, 0.87)\",\r\n marginTop: \"0.25rem\"\r\n }\r\n },\r\n // TODO: AAH There is probably a better way to override this, but\r\n // I don't know what it is.\r\n MuiStepLabel: {\r\n alternativeLabel: {\r\n marginTop: `${2 / rootFontSize}rem !important`\r\n }\r\n },\r\n MuiToolbar: {\r\n gutters: {}\r\n },\r\n MuiButton: {\r\n outlinedPrimary: {\r\n background: \"#fff\"\r\n }\r\n }\r\n }\r\n };\r\n}\r\n","import { store } from \"src/internal/WithProviders/WithProviders\";\r\nimport { internalLogout } from \"src/internal/actions/authActions\";\r\nimport { ErrorMessage } from \"src/external/types/errors\";\r\nimport { tokenKey } from \"src/internal/types/authentication\";\r\nimport * as Cookies from \"js-cookie\";\r\n\r\nexport const handleApiError = (error: any): never => {\r\n if (error.response && error.response.data && error.response.data.message) {\r\n throw error.response.data;\r\n }\r\n\r\n if (error.response && error.response.status === 401) {\r\n store.dispatch(internalLogout());\r\n\r\n const error: ErrorMessage = {\r\n visible: true,\r\n message: \"Your session has expired. Please login again.\"\r\n };\r\n sessionStorage.removeItem(tokenKey);\r\n Cookies.remove(tokenKey);\r\n throw error;\r\n }\r\n\r\n throw error;\r\n};\r\n","import axios, { AxiosRequestConfig } from \"axios\";\r\nimport { Token, tokenKey, SystemRole, LoginUser } from \"../types/authentication\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { StoreState } from \"../store/storeState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { authenticateSuccess } from \"../actions/authActions\";\r\nimport * as Cookies from \"js-cookie\";\r\nimport AppContextActions from \"../actions/appContextActions\";\r\nimport { Branch } from \"src/common/types/branch\";\r\n\r\nexport const checkAuthorizationStatus = () => {\r\n let token = sessionStorage.getItem(tokenKey) || null;\r\n if (token == null) {\r\n token = Cookies.get(tokenKey) || null;\r\n }\r\n return token;\r\n};\r\n\r\nexport const handleAuthentication = (token: Token, dispatch: ThunkDispatch) => {\r\n axios.interceptors.request.use((config: AxiosRequestConfig) => {\r\n return addAuthorizationHeader(config);\r\n });\r\n\r\n const user: LoginUser = {\r\n id: token.sub,\r\n name: token.name,\r\n email: token.email,\r\n username: token.username,\r\n role: token.role as SystemRole,\r\n permissions: token.permission && token.permission instanceof Array ? token.permission : [token.permission],\r\n branchId: token.branchId,\r\n branches: token.branches\r\n };\r\n\r\n dispatch(\r\n authenticateSuccess(user)\r\n );\r\n\r\n const authorizedBranches = getAuthorizedBranches(user);\r\n if (authorizedBranches.length > 0) {\r\n dispatch(\r\n AppContextActions.updateAppContext({\r\n branchId: authorizedBranches[0]\r\n })\r\n );\r\n }\r\n};\r\n\r\nexport const mapBranchesToUser = (user: LoginUser, branches: Branch[]) => {\r\n\r\n if (user && user.role === SystemRole.ResourceAdmin) {\r\n const availableBranches: Branch[] = [];\r\n const branchIds: string[] = getAuthorizedBranches(user);\r\n\r\n if (branches && branches.length > 0) {\r\n branches.forEach(b => {\r\n const index = branchIds.indexOf(b.id.toString());\r\n if (index >= 0) {\r\n availableBranches.push(b);\r\n }\r\n })\r\n }\r\n\r\n return availableBranches;\r\n }\r\n\r\n return branches;\r\n}\r\n\r\nexport const getAuthorizedBranches = (user: LoginUser): string[] => {\r\n let branches: string[] = [];\r\n\r\n if (user.branches) {\r\n if (user.branches.length > 0) {\r\n user.branches.forEach(b => {\r\n branches.push(b);\r\n });\r\n }\r\n } else if (user.branchId) {\r\n branches.push(user.branchId);\r\n }\r\n\r\n return branches;\r\n}\r\n\r\nconst addAuthorizationHeader = (config: AxiosRequestConfig): AxiosRequestConfig => {\r\n const token = checkAuthorizationStatus();\r\n return { ...config, headers: { ...config.headers, Authorization: `Bearer ${token}` } };\r\n};\r\n","import { TimeZone, getDefaultTimeZone } from \"./timeZone\";\r\n\r\nexport interface Branch {\r\n addressLine1: string;\r\n addressLine2: string;\r\n branchBlackoutEmail?: string;\r\n branchSharedCalendarEmail?: string;\r\n city: string;\r\n distance?: google.maps.Distance;\r\n id: number;\r\n latitude: number;\r\n longitude: number;\r\n name: string;\r\n phone: string;\r\n reasons: BranchReason[];\r\n stateCode: string;\r\n zip: string;\r\n region: string;\r\n timeZone: TimeZone;\r\n isVirtual: boolean;\r\n sameDayEnabled: boolean;\r\n}\r\n\r\nexport class Branch implements Branch {}\r\n\r\nexport class BranchReason {\r\n appointmentsEnabled: boolean = false;\r\n branchId: number = -1;\r\n reasonId: number = -1;\r\n}\r\n\r\nexport interface BranchHours {\r\n branchId: number;\r\n closeTimeUtc: string;\r\n id: number;\r\n openTimeUtc: string;\r\n weekDayCode: string;\r\n weekDayName: string;\r\n}\r\n\r\nexport const getDefaultBranch = (branchId?: number): Branch => {\r\n return {\r\n id: branchId ? branchId : 0,\r\n name: \"\",\r\n addressLine1: \"\",\r\n addressLine2: \"\",\r\n city: \"\",\r\n stateCode: \"\",\r\n zip: \"\",\r\n latitude: 0.0,\r\n longitude: 0.0,\r\n phone: \"\",\r\n reasons: [],\r\n region: \"\",\r\n timeZone: getDefaultTimeZone(),\r\n isVirtual: false,\r\n sameDayEnabled: true\r\n };\r\n};\r\n","export interface TimeZone {\r\n id: string;\r\n displayName: string;\r\n genericName: string;\r\n abbr: string;\r\n utcOffset: number;\r\n}\r\n\r\nexport const getDefaultTimeZone = (): TimeZone => {\r\n return {\r\n id: \"\",\r\n displayName: \"\",\r\n genericName: \"\",\r\n abbr: \"\",\r\n utcOffset: 0\r\n };\r\n};\r\n","import { isValidNumber } from \"libphonenumber-js\";\r\n\r\nexport const isEmailValid = (email: string): boolean => {\r\n const trimmedEmail = email.trim();\r\n const emailReg = /^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\r\n return !!trimmedEmail.match(emailReg);\r\n};\r\n\r\nexport const isPhoneValid = (phone: string): boolean => {\r\n return isValidNumber(phone, \"US\");\r\n};\r\n\r\nexport interface ContactInfoValidation {\r\n validEmail: boolean;\r\n validPhone: boolean;\r\n}\r\n\r\nexport const validateContactInfo = (\r\n communicationPreference: string,\r\n phoneNumber: string,\r\n email: string\r\n): ContactInfoValidation => {\r\n return {\r\n validEmail: communicationPreference === \"EMAIL\" ? isEmailValid(email) : !email || isEmailValid(email),\r\n validPhone:\r\n communicationPreference === \"TEXT\" ? isPhoneValid(phoneNumber) : !phoneNumber || isPhoneValid(phoneNumber)\r\n };\r\n};\r\n\r\nfunction checkForCloseMatch(longString: string, shortString: string) {\r\n // too many false positives with very short strings\r\n if (shortString.length < 3) {\r\n return \"\";\r\n }\r\n\r\n // test if the shortString is in the string (so everything is fine)\r\n if (longString && longString.includes(shortString)) {\r\n return \"\";\r\n }\r\n\r\n // split the shortString string into two at each postion e.g. g|mail gm|ail gma|il gmai|l\r\n // and test that each half exists with one gap\r\n for (let i = 1; i <= shortString.length; i++) {\r\n const firstPart = shortString.substring(0, i);\r\n const secondPart = shortString.substring(i);\r\n\r\n // test for wrong letter\r\n const wrongLetterRegEx = new RegExp(`${firstPart}.${secondPart.substring(1)}`);\r\n if (wrongLetterRegEx.test(longString)) {\r\n return longString.replace(wrongLetterRegEx, shortString);\r\n }\r\n\r\n // test for extra letter\r\n const extraLetterRegEx = new RegExp(`${firstPart}.${secondPart}`);\r\n if (extraLetterRegEx.test(longString)) {\r\n return longString.replace(extraLetterRegEx, shortString);\r\n }\r\n\r\n // test for missing letter\r\n if (secondPart !== \"mail\") {\r\n const missingLetterRegEx = new RegExp(`${firstPart}{0}${secondPart}`);\r\n if (missingLetterRegEx.test(longString)) {\r\n return longString.replace(missingLetterRegEx, shortString);\r\n }\r\n }\r\n\r\n // test for switched letters\r\n const switchedLetters = [\r\n shortString.substring(0, i - 1),\r\n shortString.charAt(i),\r\n shortString.charAt(i - 1),\r\n shortString.substring(i + 1)\r\n ].join(\"\");\r\n\r\n if (longString && longString.includes(switchedLetters)) {\r\n return longString.replace(switchedLetters, shortString);\r\n }\r\n }\r\n\r\n // if nothing was close, then there wasn't a typo\r\n return \"\";\r\n}\r\n\r\nfunction checkForDomainTypo(userEmail: string) {\r\n const domains = [\"gmail\", \"hotmail\", \"outlook\", \"yahoo\", \"icloud\", \"mail\", \"zoho\"];\r\n const [leftPart, rightPart] = userEmail.split(\"@\");\r\n\r\n for (const domain of domains) {\r\n const result = checkForCloseMatch(rightPart, domain);\r\n if (result) {\r\n return `${leftPart}@${result}`;\r\n }\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nfunction checkForNameTypo(userEmail: string, name: string) {\r\n const [leftPart, rightPart] = userEmail.split(\"@\");\r\n const result = checkForCloseMatch(leftPart, name);\r\n\r\n if (result) {\r\n return `${result}@${rightPart}`;\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nfunction checkForCommonTypos(userInput: string) {\r\n const commonTypos = [\r\n // the comment code is never hit because we don't consider ,com a valid\r\n // email address\r\n // {\r\n // pattern: /,com$/,\r\n // fix: (str: string) => str.replace(/,com$/, \".com\")\r\n // },\r\n {\r\n pattern: /\\.c$/,\r\n fix: (str: string) => str.replace(/\\.c$/, \".com\")\r\n },\r\n // {\r\n // pattern: /,co\\.\\w{2}$/,\r\n // fix: (str: string) => str.replace(/,(co\\.\\w{2}$)/, \".$1\")\r\n // },\r\n {\r\n pattern: /@\\w*$/,\r\n fix: (str: string) => str + \".com\"\r\n }\r\n ];\r\n\r\n const typo = commonTypos.find(t => t.pattern.test(userInput));\r\n\r\n if (typo) {\r\n return typo.fix(userInput);\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nexport function checkForTypo(firstName: string, lastName: string, email: string) {\r\n const normalizedEmail = email.trim().toLowerCase();\r\n\r\n let fixedEmail = \"\";\r\n fixedEmail = checkForCommonTypos(normalizedEmail);\r\n\r\n if (fixedEmail) {\r\n const temp = checkForDomainTypo(fixedEmail);\r\n if (temp) {\r\n fixedEmail = temp;\r\n }\r\n } else {\r\n fixedEmail = checkForDomainTypo(normalizedEmail);\r\n }\r\n\r\n if (firstName){\r\n if (fixedEmail) {\r\n const temp = checkForNameTypo(fixedEmail, firstName.trim().toLowerCase());\r\n if (temp) {\r\n fixedEmail = temp;\r\n }\r\n } else {\r\n fixedEmail = checkForNameTypo(normalizedEmail, firstName.trim().toLowerCase());\r\n }\r\n }\r\n\r\n if (lastName){\r\n if (fixedEmail) {\r\n const temp = checkForNameTypo(fixedEmail, lastName.trim().toLowerCase());\r\n if (temp) {\r\n fixedEmail = temp;\r\n }\r\n } else {\r\n fixedEmail = checkForNameTypo(normalizedEmail, lastName.trim().toLowerCase());\r\n }\r\n }\r\n return fixedEmail;\r\n}\r\n","import * as moment from \"moment\";\r\n\r\nexport class DateTimeUtilities {\r\n public static getLocalDateAndTimeString(utcDateString: string, timezoneOffset: number): string {\r\n const utcDate = new Date(this.getIEFriendlyDate(utcDateString));\r\n const tzDate = this.getDateWithOffset(utcDate, timezoneOffset);\r\n return `${moment(tzDate).format(\"ddd MMM D, YYYY h:mm A\")}`;\r\n }\r\n\r\n public static getLocalDateAndTimeStringMobile(date: Date, timezoneOffset: number): string {\r\n const tzDate = this.getDateWithOffset(date, timezoneOffset);\r\n return `${moment(tzDate).format(\"M/D/YY h:mm A\")}`;\r\n }\r\n\r\n public static getLocaleShortTimeFromDate(date: Date, includeMeridiems: boolean = true): string {\r\n return DateTimeUtilities.getShortTimeFromDate(date, new Date().getTimezoneOffset(), includeMeridiems);\r\n }\r\n\r\n public static getShortTimeFromDate(date: Date, timezoneOffset: number, includeMeridiems: boolean = true): string {\r\n const newDate = this.getDateWithOffset(date, timezoneOffset);\r\n\r\n let time: string = newDate\r\n .toLocaleTimeString(\"en-US\", {\r\n hour: \"2-digit\",\r\n minute: \"2-digit\"\r\n })\r\n // GOOD GOD IE!!!! https://www.csgpro.com/blog/2016/08/a-bad-date-with-internet-explorer-11-trouble-with-new-unicode-characters-in-javascript-date-strings\r\n .replace(/[^A-Za-z 0-9 \\.,\\?\"\"!@#\\$%\\^&\\*\\(\\)-_=\\+;:<>\\/\\\\\\|\\}\\{\\[\\]`~]*/g, \"\");\r\n\r\n if (!includeMeridiems) {\r\n // We can't guarantee that the client uses meridiems so using\r\n // a substring can easily break things\r\n time = time\r\n .replace(/\\s*PM/, \"\")\r\n .replace(/\\s*AM/, \"\")\r\n .replace(/^\\s*0/, \"\");\r\n }\r\n return time;\r\n }\r\n\r\n public static getIEFriendlyDate(dateString: string) {\r\n const newDateString = dateString.replace(/:(?=\\d\\d$)/, \"\");\r\n return new Date(newDateString);\r\n }\r\n\r\n public static getShortTimeFromTime(time: string, timezoneOffset: number, includeMeridiems: boolean = true): string {\r\n const date = this.getDateFromTime(time);\r\n return this.getShortTimeFromDate(date, timezoneOffset, includeMeridiems);\r\n }\r\n\r\n /**\r\n * This method ONLY updates the timezone offset of a DateTime without affecting the time or date value.\r\n * Ex: dateTime = \"02-30-2020 0:00 -06:00\" and timezoneOffset = -4\r\n * The output will be \"02-30-2020 0:00 -04:00\"\r\n */\r\n public static updateDateTimeTimeZone(dateTime: Date, timezoneOffset: number): string {\r\n return moment(dateTime)\r\n .utcOffset(timezoneOffset * -1, true)\r\n .format();\r\n }\r\n\r\n public static getWeekdayCodeNumber(dayCode: string): number {\r\n switch (dayCode) {\r\n case \"SUN\":\r\n return 1;\r\n case \"MON\":\r\n return 2;\r\n case \"TUE\":\r\n return 3;\r\n case \"WED\":\r\n return 4;\r\n case \"THU\":\r\n return 5;\r\n case \"FRI\":\r\n return 6;\r\n case \"SAT\":\r\n return 7;\r\n default:\r\n return -1;\r\n }\r\n }\r\n\r\n public static getDaysBetween(fromDate: Date, toDate: Date): number {\r\n const millisecondsPerDay = 24 * 3600 * 1000;\r\n const timeDiff = Math.abs(toDate.getTime() - fromDate.getTime());\r\n return Math.round(timeDiff / millisecondsPerDay);\r\n }\r\n\r\n public static getClientOffsetISO(): string {\r\n const offsetTotalInMinutes = new Date().getTimezoneOffset();\r\n let offSetHours = Math.abs(offsetTotalInMinutes / 60);\r\n let offsetMin = Math.abs(offsetTotalInMinutes % 60);\r\n let offSetHoursString = \"\";\r\n let offSetMinutesString = \"\";\r\n let isoOffset = \"\";\r\n\r\n if (offSetHours < 10) {\r\n offSetHoursString = \"0\" + offSetHours;\r\n }\r\n\r\n if (offsetMin < 10) {\r\n offSetMinutesString = \"0\" + offsetMin;\r\n }\r\n\r\n // Add an opposite sign to the offset\r\n // If offset is 0, it means timezone is UTC\r\n if (offsetTotalInMinutes < 0) {\r\n isoOffset = \"+\" + offSetHoursString + \":\" + offSetMinutesString;\r\n } else if (offsetTotalInMinutes > 0) {\r\n isoOffset = \"-\" + offSetHoursString + \":\" + offSetMinutesString;\r\n } else if (offsetTotalInMinutes == 0) {\r\n isoOffset = \"Z\";\r\n }\r\n\r\n return isoOffset;\r\n }\r\n\r\n private static getDateWithOffset(date: Date, timezoneOffset: number): Date {\r\n const currentOffset = date.getTimezoneOffset();\r\n const minutesToAdd = currentOffset - timezoneOffset;\r\n return new Date(date.getTime() + minutesToAdd * 60000);\r\n }\r\n\r\n private static getDateFromTime(time: string) {\r\n const today = new Date();\r\n const timeParts = time.split(\":\");\r\n const hour = parseInt(timeParts[0], 10);\r\n const minutes = parseInt(timeParts[1], 10);\r\n return new Date(Date.UTC(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate(), hour, minutes));\r\n }\r\n}\r\n","import * as React from \"react\";\r\nimport Button, { ButtonProps } from \"@material-ui/core/Button\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n\r\ninterface LoadingButtonProps {\r\n spinnerColor?: string;\r\n className?: string;\r\n disabled?: boolean;\r\n isSubmitting?: boolean;\r\n}\r\n\r\ntype Props = ButtonProps & LoadingButtonProps;\r\n\r\n/**\r\n * The `LoadingButton` component will render a typical MUI `Button` component\r\n * until it is _clicked_. Once it's clicked, it will render the MUI\r\n * `CircularProgress` component within the `Button` until the API call is complete.\r\n *\r\n * Since button behavior and styling is dependent on the context from which it is\r\n * used, all styling and behavior handlers are passed from the parent component\r\n * that is using the `LoadingButton` component.\r\n */\r\n\r\nexport default class LoadingButton extends React.Component {\r\n static muiName = \"Button\";\r\n render() {\r\n const { className, spinnerColor, isSubmitting, variant, disabled, ...other } = this.props;\r\n\r\n return (\r\n \r\n );\r\n }\r\n}\r\n","import { Reason, Category } from \"src/common/types/visit\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { toast } from \"react-toastify\";\r\nimport { sortVisitOptions } from \"../../common/utilities/visitOptionUtils\";\r\n\r\nexport default function internalReasonsReducer(state: Category[] = [], action: AnyAction): Category[] {\r\n switch (action.type) {\r\n case internalActionKeys.PATCH_REASON_SUCCESS:\r\n return updateReasons(state, action.updatedReason);\r\n case internalActionKeys.PATCH_REASON_FAILURE:\r\n return state;\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nconst updateReasons = (categories: Category[], updatedReason: Reason): Category[] => {\r\n const categoriesCopy = [\r\n ...categories.map(c => ({\r\n ...c,\r\n reasons: [...c.reasons.map(r => ({ ...r }))]\r\n }))\r\n ];\r\n const category = categoriesCopy.find(c => c.id === updatedReason.categoryId);\r\n if (category) {\r\n const reasonIndex = category.reasons.findIndex(r => r.id === updatedReason.id);\r\n if (reasonIndex > -1) {\r\n category.reasons[reasonIndex] = updatedReason;\r\n return sortVisitOptions(categoriesCopy) as Category[];\r\n } else {\r\n toast.error(\"An error occurred when trying to update reasons\");\r\n return categories;\r\n }\r\n } else {\r\n toast.error(\"An error occurred when trying to update reasons\");\r\n return categories;\r\n }\r\n};\r\n","import { Category } from \"src/common/types/visit\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport reduceReducers from \"reduce-reducers\";\r\nimport visitCategoriesReducer from \"src/common/reducers/visitCategoriesReducer\";\r\nimport { toast } from \"react-toastify\";\r\nimport { sortVisitOptions } from \"../../common/utilities/visitOptionUtils\";\r\nimport internalReasonsReducer from \"./internalReasonsReducer\";\r\n\r\nfunction internalVisitCategoriesReducer(state: Category[] = [], action: AnyAction): Category[] {\r\n switch (action.type) {\r\n case internalActionKeys.PATCH_CATEGORY_SUCCESS:\r\n return updateCategories(state, action.updatedCategory);\r\n case internalActionKeys.PATCH_CATEGORY_FAILURE:\r\n return state;\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nconst updateCategories = (categories: Category[], updatedCategory: Category): Category[] => {\r\n const categoriesCopy = [\r\n ...categories.map(c => {\r\n return { ...c };\r\n })\r\n ];\r\n const catIndex = categoriesCopy.findIndex(c => c.id == updatedCategory.id);\r\n if (catIndex > -1) {\r\n categoriesCopy[catIndex] = updatedCategory;\r\n return sortVisitOptions(categoriesCopy) as Category[];\r\n } else {\r\n toast.error(\"An error occurred when trying to update categories\");\r\n return categories;\r\n }\r\n};\r\n\r\nexport default reduceReducers(\r\n internalVisitCategoriesReducer,\r\n visitCategoriesReducer,\r\n internalReasonsReducer\r\n);\r\n","import { SystemRole } from \"./../types/authentication\";\r\nimport { StoreState } from \"./storeState\";\r\nimport { AppContext } from \"../types/appContext\";\r\n\r\nexport const initialState: StoreState = {\r\n virtualMeetingConnection: \"\",\r\n dnaRepresentatives: [],\r\n appContext: new AppContext(),\r\n authentication: {\r\n loginUser: {\r\n id: \"-1\",\r\n name: \"\",\r\n email: \"\",\r\n role: SystemRole.BranchStaff,\r\n username: \"\",\r\n permissions: []\r\n },\r\n isAuthenticated: false\r\n },\r\n branchAdmins: [],\r\n systemAdmins: [],\r\n allAdminCategories: [],\r\n branches: [],\r\n branchHours: [],\r\n adminAppSettings: {\r\n dnaUsername: \"\",\r\n exchangeUsername: \"\",\r\n notificationSettings: {\r\n blackoutStartTime: \"00:00\",\r\n blackoutEndTime: \"00:00\"\r\n },\r\n selectedRegions: [],\r\n allRegions: [],\r\n zoomMeetingApiKey: \"\",\r\n zoomMeetingApiSecret: \"\"\r\n },\r\n appSettings: {\r\n isInternal: false,\r\n googleMapsApiKey: \"\",\r\n adminHomepageUrl: \"\",\r\n skypeAppId: \"\",\r\n twilioConfigured: false,\r\n logoUrl: \"./img/logo.jpg\",\r\n palette: {\r\n primary: {\r\n main: \"\",\r\n contrastText: \"\"\r\n },\r\n secondary: {\r\n main: \"\",\r\n contrastText: \"\"\r\n }\r\n },\r\n organizationSettings: {\r\n orgLongName: \"\",\r\n orgShortName: \"\",\r\n virtualMeetingType: \"phone\",\r\n phoneMeetingLocation: \"\",\r\n zoomMeetingLocation: \"\",\r\n userInitiatedFeedbackEnabled: false,\r\n feedbackStartExpirationDays: 30,\r\n feedbackDaysBetweenSolicit: 0,\r\n usePreferredAgentRouting: false,\r\n skipAgentSelection: false,\r\n textIsDisabled: false,\r\n disableCustomLocations: false,\r\n appointmentHoldTimeInSeconds: 300,\r\n appointmentLeadTimeDays: 1,\r\n appointmentLeadTimeConstraints: {\r\n minValue: 1,\r\n maxValue: 365,\r\n customConstraint: \"\"\r\n },\r\n appointmentWindowDays: 7,\r\n appointmentWindowConstraints: {\r\n minValue: 7,\r\n maxValue: 62,\r\n customConstraint: \"\"\r\n },\r\n sameDayBufferMinutes: 0,\r\n sameDayBufferConstraints: {\r\n minValue: 0,\r\n maxValue: 360,\r\n customConstraint: \"\"\r\n },\r\n meetingDurationConstraints: {\r\n minValue: 15,\r\n maxValue: 240,\r\n customConstraint: \"\"\r\n },\r\n wrapUpDurationConstraints: {\r\n minValue: 0,\r\n maxValue: 60,\r\n customConstraint: \"\"\r\n }\r\n },\r\n skypeSettings: {\r\n domain: \"\",\r\n isSkypeOnPrem: false,\r\n enableSkype365Feature: false\r\n }\r\n },\r\n reminders: [],\r\n visitCategories: [],\r\n defaultCustomerPrefs: {\r\n customerId: 0,\r\n remindersEnabled: false,\r\n calendarInviteEnabled: false,\r\n feedbackEnabled: false,\r\n communicationPreference: \"EMAIL\",\r\n isMobilePhone: true\r\n },\r\n errorMessage: { visible: false },\r\n serviceRepresentatives: [],\r\n systemTimeZones: [],\r\n videos: {\r\n path: \"\",\r\n videoTitles: []\r\n },\r\n appointmentsListReport: {\r\n report: []\r\n },\r\n volumeReport: {\r\n report: []\r\n },\r\n serviceLocationReport: {\r\n report: []\r\n },\r\n marketingLinks: [],\r\n surveyDto: {\r\n id: -1,\r\n userInitiatedFeedbackEnabled: false,\r\n systemInitiatedFeedbackEnabled: false,\r\n feedbackDaysBetweenSolicit: 0,\r\n threshold: 0.0,\r\n enableThresholdNotification: false,\r\n sampleRate: -1,\r\n solicitMessage: \"\",\r\n questions: []\r\n },\r\n resourceByServiceReport: {\r\n report: []\r\n },\r\n callDownListReport: {\r\n report: []\r\n },\r\n serviceLevelsReport: {\r\n report: []\r\n },\r\n surveyFeedbackDetailsReport: {\r\n report: []\r\n },\r\n surveyFeedbackSummaryReport: {\r\n report: []\r\n },\r\n marketingLinkSummaryReport: {\r\n report: []\r\n },\r\n failedAppointmentAttemptsReport: {\r\n report: []\r\n },\r\n reportingSyncUpdatedTime: \"\"\r\n};\r\n\r\nexport default initialState;\r\n","export class AppContext {\r\n branchId: string = \"0\";\r\n}\r\n","import { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { Branch } from \"src/common/types/branch\";\r\nimport { commonActionKeys } from \"src/common/actions/commonActionKeys\";\r\n\r\nexport default function internalBranchesReducer(state: Branch[] = initialState.branches, action: AnyAction): Branch[] {\r\n switch (action.type) {\r\n case commonActionKeys.LOAD_BRANCHES_SUCCESS:\r\n return [...action.branches].sort(branchAlphabeticalCompareFunction);\r\n case internalActionKeys.PATCH_BRANCH_REASONS_SUCCESS:\r\n case internalActionKeys.SAVE_BRANCH_CONFIG_SUCCESS: {\r\n // Replace the updated branch\r\n return [\r\n ...state.filter(b => b.name < action.branch.name),\r\n action.branch,\r\n ...state.filter(b => b.name > action.branch.name)\r\n ];\r\n }\r\n case internalActionKeys.IMPORT_BRANCHES_SUCCESS:\r\n return [...action.branches].sort(branchAlphabeticalCompareFunction);\r\n case internalActionKeys.IMPORT_BRANCHES_FAILURE:\r\n return state;\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nconst branchAlphabeticalCompareFunction = (a: Branch, b: Branch) => {\r\n if (a.name.toLowerCase() > b.name.toLowerCase()) {\r\n return 1;\r\n }\r\n if (a.name.toLowerCase() < b.name.toLowerCase()) {\r\n return -1;\r\n }\r\n return 0;\r\n};\r\n","import { combineReducers } from \"redux\";\r\nimport visitCategories from \"./internalVisitCategoriesReducer\";\r\nimport branches from \"src/internal/reducers/internalBranchesReducer\";\r\nimport branchHours from \"src/external/reducers/branchHoursReducer\";\r\nimport appSettings from \"./internalAppSettingsReducer\";\r\nimport defaultCustomerPrefs from \"./internalCustomerPrefsReducer\";\r\nimport serviceRepresentatives from \"./serviceRepresentativesReducer\";\r\nimport errorMessage from \"../../common/reducers/errorMessageReducer\";\r\nimport authentication from \"./authReducer\";\r\nimport dnaRepresentatives from \"./dnaRepresentativesReducer\";\r\nimport branchAdmins from \"./branchAdminsReducer\";\r\nimport { systemAdminsReducer as systemAdmins } from \"./systemAdminsReducer\";\r\nimport systemTimeZones from \"./timeZonesReducer\";\r\nimport adminAppSettings from \"./adminAppSettingsReducer\";\r\nimport volumeReport from \"./volumeReportReducer\";\r\nimport serviceLocationReport from \"./serviceLocationReportReducer\";\r\nimport appointmentsListReport from \"./appointmentsListReportReducer\";\r\nimport reminders from \"./internalRemindersReducer\";\r\nimport reportingSyncUpdatedTime from \"./reportingSyncUpdatedTimeReducer\";\r\nimport videos from \"../../common/reducers/videosReducer\";\r\nimport resourceByServiceReport from \"./resourceByServiceReportReducer\";\r\nimport callDownListReport from \"./callDownListReportReducer\";\r\nimport marketingLinks from \"./internalMarketingLinksReducer\";\r\nimport serviceLevelsReport from \"./serviceLevelsReportReducer\";\r\nimport surveyFeedbackDetailsReport from \"./surveyFeedbackDetailsReportReducer\";\r\nimport surveyFeedbackSummaryReport from \"./surveyFeedbackSummaryReportReducer\";\r\nimport surveyDto from \"./surveyReducer\";\r\nimport appContext from \"./appContextReducer\";\r\nimport virtualMeetingConnection from \"../../internal/reducers/virtualMeetingConnectionTestReducer\";\r\nimport marketingLinkSummaryReport from \"./marketingLinkSummaryReportReducer\";\r\nimport failedAppointmentAttemptsReport from \"./failedAppointmentAttemptsReportReducer\";\r\nimport allAdminCategories from \"./adminCategoriesReducer\";\r\n\r\n/**\r\n * Consider using immer to keep our reducers clean and simple\r\n * https://github.com/mweststrate/immer#reducer-example\r\n */\r\n\r\nexport default combineReducers({\r\n adminAppSettings,\r\n allAdminCategories,\r\n virtualMeetingConnection,\r\n appContext,\r\n appointmentsListReport,\r\n appSettings,\r\n authentication,\r\n branchAdmins,\r\n systemAdmins,\r\n branches,\r\n branchHours,\r\n callDownListReport,\r\n defaultCustomerPrefs,\r\n dnaRepresentatives,\r\n errorMessage,\r\n marketingLinks,\r\n marketingLinkSummaryReport,\r\n reminders,\r\n resourceByServiceReport,\r\n reportingSyncUpdatedTime,\r\n serviceLevelsReport,\r\n serviceLocationReport,\r\n serviceRepresentatives,\r\n surveyDto,\r\n surveyFeedbackDetailsReport,\r\n surveyFeedbackSummaryReport,\r\n systemTimeZones,\r\n videos,\r\n visitCategories,\r\n volumeReport,\r\n failedAppointmentAttemptsReport\r\n});\r\n","import { AdminAppSettings } from \"../../common/types/appSettings\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport default function adminAppSettingsReducer(\r\n state: AdminAppSettings = initialState.adminAppSettings,\r\n action: AnyAction\r\n): AdminAppSettings {\r\n switch (action.type) {\r\n case internalActionKeys.SAVE_ADMIN_APP_SETTINGS_SUCCESS:\r\n return { ...action.adminAppSettings };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AdminCategory } from \"src/common/types/administrator\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport default function adminCategoriesReducer(state: AdminCategory[] = [], action: AnyAction): AdminCategory[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_ADMIN_CATEGORIES:\r\n return action.adminCategories;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { initialState } from \"../../internal/store/initialState\";\r\nimport { internalActionKeys } from \"../../internal/actions/internalActionKeys\";\r\n\r\nexport default function virtualMeetingConnection(\r\n state: string = initialState.virtualMeetingConnection,\r\n action: AnyAction\r\n): string {\r\n switch (action.type) {\r\n case internalActionKeys.VIRTUAL_MEETING_CONNECTION_TEST:\r\n return action.payload;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { AppContext } from \"../types/appContext\";\r\nimport { ReduxAction } from \"../types/reduxAction\";\r\n\r\nexport default function appContextReducer(\r\n state: AppContext = initialState.appContext,\r\n action: ReduxAction\r\n): AppContext {\r\n switch (action.type) {\r\n case internalActionKeys.SAVE_APP_CONTEXT:\r\n return {\r\n ...action.payload\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function appointmentsListReportReducer(\r\n state: ReportDto = initialState.appointmentsListReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_APPOINTMENTS_LIST_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AppSettings } from \"../../common/types/appSettings\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport appSettingsReducer from \"src/common/reducers/appSettingsReducer\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport default function internalAppSettingsReducer(\r\n state: AppSettings = initialState.appSettings,\r\n action: AnyAction\r\n): AppSettings {\r\n switch (action.type) {\r\n case internalActionKeys.SAVE_APP_SETTINGS_SUCCESS:\r\n return { ...action.appSettings };\r\n case internalActionKeys.SAVE_APP_SETTING_LOGO:\r\n const settings = { ...state };\r\n settings.logoUrl = action.logoUrl;\r\n return settings;\r\n case internalActionKeys.SAVE_APP_SETTINGS_FAILURE:\r\n return state;\r\n default:\r\n return appSettingsReducer(state, action);\r\n }\r\n}\r\n","import { LoginUser } from \"../types/authentication\";\r\nimport initialState from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport interface AuthenticationState {\r\n isAuthenticated: boolean;\r\n loginUser: LoginUser;\r\n errors?: string[];\r\n}\r\n\r\nexport default function authReducer(\r\n state: AuthenticationState = initialState.authentication,\r\n action: AnyAction\r\n): AuthenticationState {\r\n switch (action.type) {\r\n case internalActionKeys.AUTHENTICATE_SUCCESS:\r\n return {\r\n isAuthenticated: true,\r\n loginUser: { ...action.user },\r\n errors: []\r\n };\r\n case internalActionKeys.LOGOUT:\r\n return { ...initialState.authentication };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { Representative } from \"src/common/types/representative\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { repsCompareFunc } from \"./serviceRepresentativesReducer\";\r\n\r\nexport default function branchAdminsReducer(state: Representative[] = [], action: AnyAction): Representative[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_BRANCH_ADMINS_SUCCESS:\r\n return [...action.admins].sort(repsCompareFunc);\r\n case internalActionKeys.PATCH_BRANCH_ADMINS_SUCCESS:\r\n return [...action.admins].sort(repsCompareFunc);\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function callDownListReportReducer(\r\n state: ReportDto = initialState.callDownListReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_CALL_DOWN_LIST_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { BaseCustomerPreferences } from \"src/common/types/customerPrefs\";\r\nimport initialState from \"../store/initialState\";\r\n\r\nexport default function internalBranchReasonsReducer(\r\n state: BaseCustomerPreferences = initialState.defaultCustomerPrefs,\r\n action: AnyAction\r\n): BaseCustomerPreferences {\r\n switch (action.type) {\r\n case internalActionKeys.GET_DEFAULT_CUST_PREFS_SUCCESS:\r\n return action.defaultCustomerPrefs;\r\n case internalActionKeys.GET_DEFAULT_CUST_PREFS_FAILURE:\r\n return state;\r\n case internalActionKeys.PATCH_DEFAULT_CUST_PREFS_SUCCESS:\r\n return action.defaultCustomerPrefs;\r\n case internalActionKeys.PATCH_CATEGORY_FAILURE:\r\n return state;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { Representative } from \"../../common/types/representative\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { repsCompareFunc } from \"./serviceRepresentativesReducer\";\r\n\r\nexport default function dnaRepresentativesReducer(state: Representative[] = [], action: AnyAction): Representative[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_ALL_REPS_FROM_DNA_SUCCESS:\r\n return [...action.representatives.sort(repsCompareFunc)];\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { MarketingLink } from \"../types/marketingLink\";\r\n\r\nexport default function adminAppSettingsReducer(\r\n state: MarketingLink[] = initialState.marketingLinks,\r\n action: AnyAction\r\n): MarketingLink[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_MARKETING_LINKS_SUCCESS:\r\n return [...action.links];\r\n case internalActionKeys.SAVE_MARKETING_LINK_SUCCESS: {\r\n const link: MarketingLink = action.link;\r\n const index = state.map(l => l.id).indexOf(link.id);\r\n if (index >= 0) {\r\n return [...state.slice(0, index), link, ...state.slice(index + 1)];\r\n } else {\r\n return state;\r\n }\r\n }\r\n case internalActionKeys.DELETE_MARKETING_LINK_SUCCESS: {\r\n const link: MarketingLink = action.link;\r\n const index = state.map(l => l.id).indexOf(link.id);\r\n if (index >= 0) {\r\n return [...state.slice(0, index), ...state.slice(index + 1)];\r\n } else {\r\n return state;\r\n }\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function marketingLinkSummaryReportReducer(\r\n state: ReportDto = initialState.marketingLinkSummaryReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_MARKETING_LINK_SUMMARY_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { AnyAction } from \"redux\";\r\nimport { initialState } from \"../store/initialState\";\r\nimport { Reminder } from \"src/common/types/reminder\";\r\n\r\nexport default function internalRemindersReducer(\r\n state: Reminder[] = initialState.reminders,\r\n action: AnyAction\r\n): Reminder[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_REMINDERS_SUCCESS:\r\n return action.reminders;\r\n case internalActionKeys.DELETE_REMINDER_SUCCESS: {\r\n // Remove the added reminder\r\n const deletedReminder: Reminder = action.reminders[0];\r\n const index = state.map(r => r.id).indexOf(deletedReminder.id);\r\n if (index >= 0) {\r\n return [...state.slice(0, index), ...state.slice(index + 1)];\r\n } else {\r\n return state;\r\n }\r\n }\r\n case internalActionKeys.SAVE_REMINDER_SUCCESS: {\r\n // Replace the updated or added reminder\r\n const savedReminder: Reminder = action.reminders[0];\r\n const index = state.map(r => r.id).indexOf(savedReminder.id);\r\n if (index >= 0) {\r\n return [...state.slice(0, index), savedReminder, ...state.slice(index + 1)];\r\n } else {\r\n return [...state, savedReminder];\r\n }\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function resourceByServiceReportReducer(\r\n state: ReportDto = initialState.resourceByServiceReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_RESOURCE_BY_SERVICE_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\n\r\nexport default function reportingSyncUpdatedTimeReducer(\r\n state: String = initialState.reportingSyncUpdatedTime,\r\n action: AnyAction\r\n): String {\r\n switch (action.type) {\r\n case internalActionKeys.GET_REPORTING_SYNC_UPDATED_TIME:\r\n return action.payload;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function serviceLevelsReportReducer(\r\n state: ReportDto = initialState.serviceLevelsReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SERVICE_LEVELS_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function serviceLocationReportReducer(\r\n state: ReportDto = initialState.serviceLocationReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SERVICE_LOC_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { SurveyDto } from \"src/common/types/survey\";\r\n\r\nexport default function surveyConfigurationReducer(\r\n state: SurveyDto = initialState.surveyDto,\r\n action: AnyAction\r\n): SurveyDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SURVEY_SUCCESS:\r\n case internalActionKeys.PATCH_SURVEY_SUCCESS:\r\n return action.payload;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function surveyFeedbackDetailsReportReducer(\r\n state: ReportDto = initialState.surveyFeedbackDetailsReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SURVEY_FEEDBACK_DETAILS_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function surveyFeedbackSummaryReportReducer(\r\n state: ReportDto = initialState.surveyFeedbackSummaryReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SURVEY_FEEDBACK_SUMMARY_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { TimeZone } from \"src/common/types/timeZone\";\r\n\r\nexport default function internalAppSettingsReducer(\r\n state: TimeZone[] = initialState.systemTimeZones,\r\n action: AnyAction\r\n): TimeZone[] {\r\n switch (action.type) {\r\n case internalActionKeys.GET_SYSTEM_TIME_ZONES:\r\n return action.systemTimeZones;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function volumeReportReducer(\r\n state: ReportDto = initialState.volumeReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_VOLUME_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { initialState } from \"../store/initialState\";\r\nimport { AnyAction } from \"redux\";\r\nimport { internalActionKeys } from \"../actions/internalActionKeys\";\r\nimport { ReportDto } from \"../types/report\";\r\n\r\nexport default function failedAppointmentAttemptsReportReducer(\r\n state: ReportDto = initialState.failedAppointmentAttemptsReport,\r\n action: AnyAction\r\n): ReportDto {\r\n switch (action.type) {\r\n case internalActionKeys.GET_FAILED_APPOINTMENT_ATTEMPTS_REPORT_SUCCESS:\r\n return action.report;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import * as React from \"react\";\r\nimport CssBaseline from \"@material-ui/core/CssBaseline\";\r\nimport { Provider } from \"react-redux\";\r\nimport { Store } from \"redux\";\r\nimport configureStore from \"../store/configureStore\";\r\nimport initialState from \"../store/initialState\";\r\nimport { StoreState } from \"../store/storeState\";\r\n\r\nexport const store: Store = configureStore(initialState);\r\n\r\ninterface ProviderProps {\r\n children: JSX.Element;\r\n}\r\n\r\nexport default (props: ProviderProps) => (\r\n <>\r\n \r\n {props.children}\r\n \r\n);\r\n\r\n// We can do some interesting prop/data injection using various\r\n// rendering patterns\r\n// https://medium.com/@jrwebdev/react-render-props-in-typescript-b561b00bc67c\r\n","import { createStore, applyMiddleware, compose } from \"redux\";\r\nimport thunk from \"redux-thunk\";\r\n\r\nimport { StoreState } from \"./storeState\";\r\nimport reducer from \"../reducers\";\r\n\r\nexport default function configureStore(initialStore: StoreState) {\r\n const composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\n const store = createStore(reducer, initialStore, composeEnhancers(applyMiddleware(thunk)));\r\n\r\n /**\r\n * TODO:\r\n * Verify we do not need to add hot-reloading. It should be handled by `hotDevClient`\r\n * in WebpackDevServer.\r\n *\r\n * See `config/webpack.config.dev.js`\r\n *\r\n * If we **DO** need hot-reloading, be sure to add it here and in index.tsx.\r\n // */\r\n // const m: any = module;\r\n // if (process.env.NODE_ENV !== \"production\") {\r\n // if (m.hot) {\r\n // m.hot.accept(\"../reducers\", () => {\r\n // store.replaceReducer(reducer);\r\n // });\r\n // }\r\n // }\r\n\r\n return store;\r\n}\r\n"],"sourceRoot":""}