{"version":3,"sources":["components/common/scroll-to-top/index.jsx","components/common/toast/toast-notification.jsx","redux/system/system-action-types.js","config.jsx","core/auth/auth.js","core/auth/authUtil.js","core/auth/userIdentity.js","core/error/errorService.js","core/history/historyObject.js","core/http/httpInterceptor.js","core/http/httpClient.js","services/profile-service.jsx","redux/system/system-action-creators.js","redux/system/notification-reducer.js","components/common/toast/toast-container.jsx","components/common/button-fx/index.jsx","components/nav-bar/index.jsx","components/footer/index.jsx","components/common/solvable-datatable/search-box/search-box.jsx","components/common/solvable-datatable/search-box/search-logic.js","components/common/solvable-datatable/action-button/action-buttons-factory.js","components/common/solvable-datatable/filter-pane/filter-button/filter-button.jsx","components/common/solvable-datatable/filter-pane/filter-container/filter-container.jsx","components/common/solvable-datatable/filter-pane/filter-pane.jsx","components/common/solvable-datatable/action-button/action-buttons-factory2.js","components/common/solvable-datatable/solvable-datatable.jsx","views/admin/manage-users/columns.js","components/common/collapsible-panel/header.jsx","components/common/collapsible-panel/content.jsx","components/common/collapsible-panel/collapsible-item.jsx","components/common/collapsible-panel/collapsible-panel.jsx","components/common/error-message/index.jsx","components/common/select/index.jsx","components/common/date-picker-field/index.jsx","constants/user-types.js","components/common/formik-submit-button/index.jsx","views/admin/manage-users/filter-section/main.jsx","views/admin/manage-users/filter-section/formik/initial-values.js","views/admin/manage-users/filter-section/formik/validation-schema.js","core/utilities/date-service.js","views/admin/manage-users/filter-section/index.jsx","components/common/content-section/index.jsx","components/common/block-ui-fx/index.jsx","components/common/page-tagging/page-tagging.js","components/common/enhanced-content-section/index.jsx","views/admin/admin-view/components/link-card/index.jsx","views/admin/admin-view/links/admin-links.js","views/admin/admin-view/links-component/index.jsx","views/admin/with-admin-hoc/with-admin-hoc.jsx","components/common/confirmation-dialog/index.jsx","views/admin/manage-users/main.jsx","views/admin/manage-users/redux/action-types.js","views/admin/manage-users/redux/action-creators.js","views/admin/manage-users/services/service.jsx","views/admin/manage-users/index.jsx","views/admin/admin-view/main.jsx","views/admin/admin-view/index.jsx","views/admin/manage-users/components/create-update-user/hooks/initialise-form.jsx","components/common/common-field/index.jsx","components/common/password-component/components/password-validation.js","components/common/password-component/components/password-errors-list.js","components/common/password-component/components/password-errors-component.jsx","components/common/password-component/components/error-checker.js","components/common/password-component/index.jsx","components/common/masked-input/index.jsx","views/admin/manage-users/components/create-update-user/main.jsx","views/admin/manage-users/components/create-update-user/formik/validation-schema.js","views/admin/manage-users/components/create-update-user/formik/initial-values.js","views/admin/manage-users/components/create-update-user/redux/action-types.js","views/admin/manage-users/components/create-update-user/redux/action-creators.js","views/admin/manage-users/components/create-update-user/services/service.jsx","views/admin/manage-users/components/create-update-user/index.jsx","routes/admin-routes.jsx","views/playground/main.jsx","views/playground/index.jsx","components/common/image-header/index.jsx","components/common/partners/partner/view.jsx","components/common/partners/partner/index.jsx","components/common/partners/view.jsx","constants/partners.js","components/common/partners/index.jsx","views/home/components/partner/index.jsx","components/common/citiwests/citiwest/view.jsx","components/common/citiwests/citiwest/index.jsx","components/common/citiwests/view.jsx","constants/citiwests.js","components/common/citiwests/index.jsx","views/home/component/citiwest/index.jsx","views/home/index.jsx","components/common/content-collapsible-panel/index.jsx","constants/faqs.js","views/faqs/hooks/use-map-faqs.jsx","core/utilities/textSearchLib.jsx","views/faqs/hooks/use-filter-faqs.jsx","views/faqs/index.jsx","components/common/common-fast-field/index.jsx","constants/public-content-core.js","constants/public-content.js","services/content-service.jsx","views/contact-us/hooks/use-effect-handler.jsx","components/common/google-address-field/australian-states.js","components/common/common-hooks/use-fill-profile-data.jsx","views/contact-us/main.jsx","views/contact-us/redux/action-types.js","views/contact-us/redux/action-creators.js","views/contact-us/services/service.js","views/contact-us/formik/formik/initial-values.js","views/contact-us/formik/formik/validation-schema.js","views/contact-us/index.jsx","views/quote/hooks/use-effect-handler.jsx","constants/services.js","constants/source.js","views/quote/main.jsx","views/quote/redux/action-types.js","views/quote/redux/action-creators.js","views/quote/services/service.js","views/quote/formik/formik/initial-values.js","views/quote/formik/formik/validation-schema.js","views/quote/index.jsx","core/utilities/location-service.js","views/register/main.jsx","views/register/formik/validation-schema.js","views/register/formik/initial-values.js","views/register/redux/action-types.js","views/register/redux/action-creators.js","views/register/services/service.jsx","views/register/index.jsx","views/login/main.jsx","views/login/formik/validation-schema.js","views/login/formik/initial-values.js","views/login/redux/action-types.js","views/login/services/service.jsx","views/login/redux/action-creators.js","views/login/index.jsx","views/logout/index.jsx","views/forgot-password/main.jsx","views/forgot-password/redux/action-types.jsx","views/forgot-password/redux/action-creators.jsx","views/forgot-password/services/service.jsx","views/forgot-password/formik/validation-schema.jsx","views/forgot-password/formik/initial-values.jsx","views/forgot-password/index.jsx","views/reset-password/main.jsx","views/reset-password/redux/action-types.jsx","views/reset-password/redux/action-creators.jsx","views/reset-password/services/service.jsx","views/reset-password/formik/validation-schema.jsx","views/reset-password/formik/initial-values.jsx","views/reset-password/index.jsx","views/update-profile/formik/validation-schema.js","components/common/google-address-field/address-entry.jsx","components/common/google-address-field/address-components.js","core/utilities/address-service.js","components/common/google-address-field/google-autocomplete-handlers.js","components/common/google-address-field/hooks/submission-hook.jsx","components/common/google-address-field/index.jsx","views/update-profile/hooks/initialise.jsx","views/update-profile/main.jsx","views/update-profile/redux/action-types.js","views/update-profile/redux/action-creators.js","views/update-profile/services/service.jsx","views/update-profile/index.jsx","views/content-page/index.jsx","views/services/services-landing-page/items.js","views/services/services-landing-page/index.jsx","views/about/index.jsx","views/news/index.jsx","components/common/title-header/index.jsx","views/services/arrow-boards/index.jsx","views/services/portaboom/index.jsx","views/services/vms-boards/index.jsx","views/services/portable-traffic-lights/index.jsx","views/services/travel-times/index.jsx","views/services/variable-speed-limit-signs/index.jsx","views/services/truck-mounted-attenuators/index.jsx","views/services/highway-trucks/index.jsx","views/services/traffic-utes/index.jsx","views/services/vms-utes/index.jsx","components/common/expand-on-error/index.jsx","components/common/expand-on-error/use-expand-on-error.jsx","components/common/collapsible-panel/section-navigation.jsx","constants/customer-types.js","components/common/file-uploader/service/icon-factory.js","components/common/file-uploader/service/helper.js","components/common/image-preview-fx/image-preview-fx.jsx","components/common/tooltip/tool-tip-fx.jsx","components/common/file-uploader/file-uploader.jsx","views/application-for-credit/collapsible-items/customer-information.jsx","core/utilities/guid-generator.js","views/application-for-credit/collapsible-items/details.jsx","components/common/dynamic-radio-group/index.jsx","constants/send-by.js","views/application-for-credit/collapsible-items/accounts-payable-contact.jsx","components/common/signature-pad/signature-pad.jsx","views/application-for-credit/collapsible-items/actual-terms/actual-terms.jsx","views/application-for-credit/collapsible-items/actual-terms/guarantee.jsx","views/application-for-credit/collapsible-items/terms-conditions.jsx","views/application-for-credit/main.jsx","views/application-for-credit/formik/sub-schemas/customer-information-validation-schema.js","views/application-for-credit/formik/sub-schemas/details-validation-schema.js","views/application-for-credit/formik/sub-schemas/accounts-payable-contact-validation-schema.js","views/application-for-credit/formik/sub-schemas/terms-conditions-validation-schema.js","views/application-for-credit/formik/validation-schema.js","views/application-for-credit/formik/initial-values.js","views/application-for-credit/formik/sub-initial-values/customer-information-initial-values.js","views/application-for-credit/formik/sub-initial-values/details-initial-values.js","views/application-for-credit/formik/sub-initial-values/accounts-payable-contact-initial-values.js","views/application-for-credit/formik/sub-initial-values/terms-conditions-initial-values.js","views/application-for-credit/redux/action-types.jsx","views/application-for-credit/services/service.jsx","views/application-for-credit/redux/action-creators.jsx","views/application-for-credit/index.jsx","views/application-for-credit/collapsible-items/actual-terms/full-terms.jsx","routes/routing.jsx","components/common/private-route/index.jsx","constants/navigation.js","layouts/fullLayout.jsx","views/pages/403/error-403.jsx","views/pages/404/error-404.jsx","views/pages/500/error-500.jsx","routes/misc-pages-routes.jsx","views/pages/maintenance/maintenance.jsx","routes/blank-layout-routes.jsx","routes/index.jsx","layouts/blankLayout.jsx","App.js","redux/system/error-notification-reducer.js","redux/system/user-profile-reducer.js","redux/system/system-reducer.js","views/contact-us/redux/reducer.js","views/quote/redux/reducer.js","views/login/redux/reducer.js","views/register/redux/reducer.js","views/forgot-password/redux/reducer.jsx","views/reset-password/redux/reducer.jsx","views/update-profile/redux/reducer.js","views/admin/manage-users/redux/reducer.js","views/admin/manage-users/components/create-update-user/redux/reducer.js","views/application-for-credit/redux/reducer.jsx","redux/root-reducer.js","redux/configure-store.js","serviceWorker.js","index.js"],"names":["ScrollToTop","prevProps","this","props","location","pathname","window","scrollTo","children","Component","withRouter","ToastNotification","style","NotificationItem","DefaultStyle","margin","padding","borderRadius","fontSize","color","backgroundColor","width","maxWidth","success","borderTop","error","Dismiss","notificationSystem","refs","newProps","notification","message","level","addNotification","position","ref","ActionTypes","Config","appVersion","appAuthStorageKey","defaultPageTitle","apiUrl","process","clientId","gtmId","Auth","useLocalStorage","localStorage","subscribers","load","tokenObject","getItem","tokenObjectParsed","JSON","parse","_populateModel","token","refreshToken","expiresIn","setItem","stringify","removeItem","tokenObj","_fetchFullTokenObject","cb","push","forEach","isAuthenticated","ClientId","GrantType","RefreshToken","getRefreshToken","refresh","base64","split","replace","atob","UserIdentity","getFirstName","getClaimsValueByType","getLastName","claimType","claims","getClaims","_perfGetClaimsValueByType","getToken","AuthUtil","claimsExist","value","claim","getUserId","getFullName","getUserName","getRole","trueForAll","expectedClaims","testResults","c","every","x","getEmail","any","some","ErrorService","_identifyAndCreateErrorObject","status","response","errData","data","defaultErrModel","isModelState","_log","undefined","Message","console","log","resolveError","Promise","resolve","reject","historyObject","require","createBrowserHistory","HttpInterceptor","authTokenRequestPromise","api","axios","create","baseURL","_getAuthToken","refreshTokenPayload","getRefreshTokenPayload","post","then","_resetAuthTokenRequestPromise","catch","interceptorReqAuth","config","headers","Authorization","interceptorRespError","err","Error","__isRetryRequest","resp","setToken","access_token","refresh_token","expires_in","e","ex","invalid_refreshtoken","removeToken","newErrObj","Object","assign","HttpClient","interceptor","interceptors","request","use","getContentTypeString","type","get","resourcePathName","cfg","payload","put","urlParams","delete","patch","getProvider","setContentType","contentType","defaults","setAuthToken","common","ProfileService","httpClient","getProfile","id","addErrorNotification","defaultErrorMessage","errorMessage","handleError","dispatch","showErrorForm","hideErrorForm","service","userIdent","getProfileRequest","getProfileSuccess","getProfileFailure","setProfile","updateUserProfile","hideSplash","toggleLogOut","initialState","ToastNotificationContainer","connect","state","system","selectNotificationData","actions","bindActionCreators","override","css","ButtonFx","loadSpinner","targetName","name","isLoading","beatColor","icon","onMouseEnter","onMouseLeave","disabled","onClick","block","className","Button","sizeUnit","size","loading","defaultProps","round","NavBar","getNavItem","navItem","i","title","subLinks","length","highlightClass","UncontrolledDropdown","key","nav","inNavbar","DropdownToggle","href","aria-controls","navigate","DropdownMenu","right","map","subItem","a","DropdownItem","tag","RRNavLink","to","closeMenu","NavItem","NavLink","startsWith","target","rel","toggle","bind","openMenu","isOpen","self","$","document","click","event","mobileMenuOpen","hasClass","navLink","navBarNavItem","navBarCollapse","navBarNav","nextSibling","includes","setState","path","history","navLinks","Navbar","light","dark","expand","Container","fluid","Row","Col","xs","md","xl","NavbarBrand","src","alt","NavbarToggler","Collapse","navbar","timeout","Nav","Footer","useHistory","form","noGutters","Date","getFullYear","SearchBox","searchText","placeholder","onChange","onSearchInputChange","SearchLogic","_escapeRegExp","s","_checkForNumbersRegex","searchQuery","test","toString","search","filterText","list","columns","searchableColumnAccessors","filter","searchable","accessor","regexString","words","trim","hasTrailingSpace","endsWith","word","join","searchRegex","RegExp","row","virtualField","ActionButtonsFactory","eventHandler","getButtonVisibilityRules","opts","hideEdit","hideRemove","hideAdd","hideView","hideEditNow","hideRemoveNow","hideAddNow","hideViewNow","getPreDefinedActionButtons","options","prop","visibilityRules","render","evt","original","FilterButton","filterOptions","filterButtonColor","onFilter","FilterContainer","collapse","tooltipOpen","toggleToolTip","Tooltip","placement","Card","CardTitle","CardBody","ComponentFactory","_getTextbox","item","onFilterChange","InputGroup","iconPrepend","InputGroupAddon","addonType","Input","label","_getCheckbox","FormGroup","check","Label","aria-label","checked","_getDropDown","items","opt","toLowerCase","FilterPane","filters","ActionButtonsFactory2","CustomButton","buttonOpts","getCustomButtonOpts","custom","getCustomButtonVisibilityRules","fullRowDetails","_original","isNil","btn1HideNow","data-tip","data-for","getToUrl","tooltip","btn2HideNow","btn3HideNow","btn4HideNow","btn5HideNow","btn6HideNow","button","rowInfo","isFunction","obj","o","fn","Link","SolvableDataTable","filterFields","setupActionButtons","cols","component","containerWidth","concat","Header","sortable","Cell","actionButtonHandler","onActionButtonClick","searchInputChange","keepSettings","settings","getLatestSettings","onSettingsChanged","filterChangeHandler","eventData","filterFlds","find","itm","filterClickHandler","onFilterClick","pageSizeChange","pageSize","pageIndex","pageChange","keys","stateSettings","getDefaultStateSettings","setPageSize","defaultPageSize","isMobile","searchLogic","actionButtonsFactory","actionButtonsFactory2","predefinedButtons","actionButtons","definedButtons","buttonComponent","Fragment","onPageSizeChange","onPageChange","onError","withSizes","show","dateFormat","CardHeader2","expandItem","Content","CollapsibleItem","init","collapseState","useState","toggleFlag","setToggleFlag","useEffect","section","offset","smooth","CollapsiblePanel","openByDefault","sectionOpen","setCollapse","idsRegistered","setIdsRegistered","_ids","objState","scrollBehavior","handleInit","caption","handleToggle","scrollFn","setToggle","setToggleAll","k","setBatchToggle","ids","clonedState","setBatchToggleByState","idsToOpen","idsToClose","CustomErrorMessage","touched","Select","showLabel","meta","field","customStyles","control","base","background","boxShadow","isFocused","menu","marginTop","menuList","allowSelectAll","allOption","styles","selected","setFieldValue","slice","onBlur","setFieldTouched","getSelectComponent","DatePickerField","useFormikContext","useField","timeFormat","inputProps","dateValue","moment","userTypes","FormikSubmitButton","scrollToFirstError","isCollapsibleForm","preventDefault","validateForm","errors","errorKeys","getElementById","scrollIntoView","forms","marked","entries","focus","handleSubmit","ViewUsersFilterSection","values","onSubmit","lg","isMulti","closeMenuOnSelect","initialValues","startDate","add","endDate","validationSchema","Yup","shape","of","strict","required","typeError","toIsoDate","date","dt","isMoment","toDate","format","toUpperCase","EnhancedForm","withFormik","mapPropsToValues","filterUsers","m","displayName","Main","ContentSection","bgColor","bgClass","specificClass","definedPadding","definedSpecificClass","BlockUiFx","blocking","lowerZIndex","rest","zIndex","loader","active","PageTagging","description","Helmet","content","EnhancedContentSection","pageTitle","isBlocking","showPageTitle","LinkItem","body","ButtonItem","clickFunc","LinksCard","styleName","linksArray","isFunc","sm","adminLinks","getAdminLinks","LinksComponent","hideHeading","withAdminHoc","wrappedComponent","memberType","ConfirmationDialog","closeFunc","confirmFunc","modalTitle","modalMessage","btnConfirmText","btnCancelText","Modal","ModalHeader","ModalBody","ModalFooter","ManageUsers","loadUsers","usersCleanUp","keepDataTableSettings","deleteUser","isDeleting","isFetching","isDeleteDialogOpen","toggleDeleteDialog","userToDelete","setUserToDelete","closeDeleteDialog","showBackground","isFullWidth","firstName","lastName","MANAGE_USERS_REQUEST","MANAGE_USERS_SUCCESS","MANAGE_USERS_FAILURE","MANAGE_USERS_DELETE_REQUEST","MANAGE_USERS_DELETE_SUCCESS","MANAGE_USERS_DELETE_FAILURE","MANAGE_USERS_CLEAN_UP","MANAGE_USERS_DATATABLE_KEEP_SETTINGS","uri","loadDefaultUsers","Service","loadUsersRequest","loadUsersSuccess","loadUsersFailure","deleteUserRequest","deleteUserSuccess","deleteUserFailure","userProfile","manageUsers","ActionCreators","AdminView","useInitialiseForm","userId","isEdit","getUserDetails","cleanUp","setIsEdit","user","setValues","email","mobile","CommonField","rawField","instructionLabel","overridePlaceholder","validatePassword","noErrors","passwordErrorsList","PasswordMustMatchError","errorClasses","confirmPasswordError","cofirmPasswordLength","isValid","itemClass","iconClass","getPasswordAndConfirmPasswordErrorClasses","confirmPassword","PasswordErrorsComponent","pw","checkError","getErrorClasses","password","Password","validate","val","setValue","setValueFunc","MaskedInput","mask","onFocus","maskChar","CreateUpdateUserPage","match","params","registrationValidationSchema","min","max","when","is","oneOf","otherwise","nullable","CREATE_UPDATE_USER_REQUEST","CREATE_UPDATE_USER_SUCCESS","CREATE_UPDATE_USER_FAILURE","CREATE_UPDATE_USER_CLEAN_UP","CREATE_UPDATE_USER_GET_DETAILS_REQUEST","CREATE_UPDATE_USER_GET_DETAILS_SUCCESS","CREATE_UPDATE_USER_GET_DETAILS_FAILURE","createUser","model","userType","updateUser","createUpdateUserRequest","createUpdateUserSuccess","createUpdateUserFailure","getUserDetailsRequest","getUserDetailsSuccess","getUserDetailsFailure","enhancedForm","formikEnhancer","createUpdateUser","memberTye","AdminRoutes","privateRoute","Playground","ImageHeader","imgSrc","backgroundImage","View","image","url","cursor","loop","autoplay","autoplayTimeout","autoplayHoverPause","responsive","0","500","768","1200","partners","Partners","PartnerItems","Partner","img","citiwests","Citiwests","CitiwestItems","Citiwest","Home","ContentCollapsiblePanel","sections","marginBottom","openSection","faqs","UseMapFaqs","FaqItems","setMappedFaqs","jsxToString","mapped","faq","flattenedContent","TextSearchLib","textToSearch","UseFilterFaqs","query","mappedFaqs","setFilteredFaqs","textSearchLib","filtered","enhancedFaqs","filteredFaqs","React","memo","showRequiredIndicator","corePublicPages","pageName","publicPages","noContentSection","ContentService","getContentPage","page","PublicContent","useContactUsHandler","isSuccessful","handleReset","setDefaultValues","states","useFillContactData","profile","ContactUs","contactUs","resetForm","courseId","height","frameborder","border","allowfullscreen","aria-hidden","tabindex","CONTACT_US_REQUEST","CONTACT_US_SUCCESS","CONTACT_US_FAILURE","CONTACT_US_CLEAN_UP","sendMessage","ContactUsService","contacUsRequest","contacUsSuccess","contacUsFailure","contactUsInitialValues","phone","contactUsValidationSchema","matches","useQuoteHandler","mrTrafficServices","mrTrafficSource","GetQuote","services","source","GET_QUOTE_REQUEST","GET_QUOTE_SUCCESS","GET_QUOTE_FAILURE","GET_QUOTE_CLEAN_UP","getQuote","QuoteService","getQuoteRequest","getQuoteSuccess","getQuoteFailure","quote","getRedirectionPath","substr","indexOf","from","RegistrationPage","redirectPath","acceptedTheTerms","registrationInitialValues","REGISTER_REQUEST","REGISTER_SUCCESS","REGISTER_FAILURE","register","RegistrationService","profileService","getState","registerRequest","registerSuccess","registerFailure","LoginPage","shouldRedirect","loginValidationSchema","username","loginInitialValues","LOGIN_INIT","LOGIN_REQUEST","LOGIN_SUCCESS","LOGIN_FAILURE","LoginService","login","userName","userReqModel","UserName","res","logout","localLogin","loginRequest","loginSuccess","loginFailure","loginInit","userLogin","Logout","reload","clear","ForgotPasswordForm","ForgotPasswordSent","ForgotPassword","sent","httpService","requestChangePassword","HttpService","requestChangePasswordRequest","requestChangePasswordSuccess","requestChangePasswordFailure","forgotPasswordSchema","forgotPasswordInitialValues","forgotPassword","Loader","ResetPasswordForm","ResetPasswordIsInvalid","ResetPassword","validateResetToken","isTokenValid","resetToken","substring","changePassword","changePasswordRequest","changePasswordSuccess","changePasswordFailure","validateResetTokenRequest","validateResetTokenSuccess","validateResetTokenFailure","resetPasswordSchema","resetPasswordInitialValues","resetPassword","companyName","otherWise","notRequired","abn","streetNumber","streetName","city","postcode","ManualAddressEntry","prefix","baseAccessor","fontWeight","australian_states","addressComponents","isRequired","getGeocodeAddress","googleAddress","f","google","maps","Geocoder","geocode","address","results","address_components","getAddress","fullAddress","unitNumber","formatted_address","addressComponent","types","short_name","handleGoogleAddressResult","toggleManualEntry","toggleAddressRequestLoader","result","mapAddressResults","setAddressFieldValues","requiredFieldsAccesors","getRequiredFieldsAccessors","requiredFieldsValues","getRequiredFieldsValues","missingFields","getMissingFields","checkErrors","setFieldError","GoogleAddressSubmissionValidationHook","isSubmitting","requiredAddressFields","errEntries","toggled","er","GoogleAddressField","allowAutoSearch","hasData","isManualEntry","isAdressRequesting","autoSearch","getDefaultValueWithPrefix","defaultValue","onPlaceSelected","componentRestrictions","country","ev","useIinitialiseProfilePage","updateProfile","isUpdating","UPDATE_PROFILE_REQUEST","UPDATE_PROFILE_SUCCESS","UPDATE_PROFILE_FAILURE","postCode","updateProfileRequest","updateProfileSuccess","updateProfileFailure","ContentPage","getPageName","pathName","getImage","file","link","ServicesLandingPage","showTitle","About","open","NewsSeparator","NewsItem","imageName","imageAltText","News","TitleHeader","ArrowBoards","Portaboom","VmsBoards","PortableTrafficLights","TravelTimes","VariableSpeedLimitSigns","TruckMountedAttenuators","HighwayTrucks","TrafficUtes","VmsUtes","ExpandOnErrorComponent","arrayedErrors","toggleOpenArr","toggleCloseArr","useExpandOnError","SectionNavigation","sectionId","navProps","sectionIds","indx","previousId","nextId","getNavigationProps","setTimeout","customerTypes","IconFactory","getIcon","fileListToBase64","fileList","getBase64","rej","preview","reader","FileReader","onloadend","readAsDataURL","promises","all","ImagePreviewFx","imageLargeUrl","showRotate","closePreview","alternateText","medium","onClose","ToolTipFx","StyledContainer","styled","div","isDragAccept","validForReject","isDragActive","getColor","FileUploader","files","setFiles","isPreviewOpen","setPreviewOpen","previewUrl","setPreviewUrl","isDropping","toggleDrop","text","dropText","minSize","maxSize","maxFiles","initialFiles","mode","fileTypes","isReadonly","cloudStoragePath","onDrop","useCallback","acceptedFiles","finalAcceptedFiles","itemsUpperLimit","additionalFiles","URL","createObjectURL","arrayOfBase64Files","useDropzone","accept","getRootProps","getInputProps","isDragReject","rejectedFiles","removeFile","revokeObjectURL","filesUpdated","imageListing","createElement","setAttribute","b","createEvent","initEvent","dispatchEvent","index","openPreview","fileSize","toFixed","fileListing","ext","lastIndexOf","limitedName","fileName","extension","limitFileName","CardFooter","Math","DragMessage","rejected","userSelect","pointerEvents","FileTooLarge","isFileTooLarge","getPreviewData","section1","customerType","sameAddresses","customerTypeValue","trustDeed","nextProps","shallowequal","generateUuid","uuidv4","section2","persons","getTitle","arrayHelpers","person","driversLicence","DynamicRadioGroup","direction","option","sendBy","section3","SignaturePad","penColor","padColor","outputType","initialValue","padHeight","padWidth","signatureCanvas","isEmpty","fromDataURL","off","canvasProps","readOnly","onEnd","getTrimmedCanvas","toDataURL","ActualTerms","Guarantee","specimen","section4","signatures","signature","guarantors","guarantor","ApplicationForCredit","isSubmittingForm","CustomerInformationValidationSchema","personCompletingTheApplication","fullNameOfCustomer","businessName","acn","customerTradingLength","businessAddress","postalAddress","DetailsValidationSchema","AccountsPayableContactValidationSchema","TermsAndConditionsValidationSchema","agreeTerms","enrolmentValidationSchema","enrolmentInitialValues","fax","formatModel","applyForCredit","responseType","applyForCreditRequest","applyForCreditSuccess","pdfBlob","Blob","saveAs","applyForCreditFailure","validateOnBlur","validateOnChange","applicationForCredit","FullTermsAndConditions","align","ModuleRoutes","Faqs","UpdateProfile","VMSBoards","CustomerInformation","CheckAndRenderAuthenticatedComponent","noAccess","claimsAuthorisationHook","PrivateRoute","isLoggingOut","role","navlabel","child","prop2","key2","subchild","prop3","key3","exact","redirect","pathTo","Error403","lineHeight","Error404","Error500","miscPagesRoutes","blankLayoutRoutes","indexRoutes","FullLayout","App","lastErrorOccured","isModalOpen","isModelStateError","SystemReducer","combineReducers","action","errorNotification","ForgotPasswordReducer","ResetPasswordReducer","submissionType","ApplicationForCreditReducer","RootReducer","ConfigureStore","middleware","thunk","enhancers","applyMiddleware","createStore","compose","Boolean","hostname","tagManagerArgs","TagManager","initialize","store","ReactDOM","navigator","serviceWorker","ready","registration","unregister"],"mappings":";ugFAGMA,EAAW,kHASd,OATc,+CACf,SAAmBC,GACbC,KAAKC,MAAMC,SAASC,WAAaJ,EAAUG,SAASC,UACtDC,OAAOC,SAAS,EAAG,KAEtB,oBAED,WACE,OAAOL,KAAKC,MAAMK,aACnB,EATc,CAASC,aAYXC,cAAWV,G,mCC6CXW,EArDQ,iKAiCnB,OAjCmB,oCAErBC,MAAQ,CACNC,iBAAkB,CAEhBC,aAAc,CAEZC,OAAQ,mBACRC,QAAS,OACTC,aAAc,MACdC,SAAU,MACVC,MAAO,QACPC,gBAAiB,UACjBC,MAAO,QACPC,SAAU,QAEZC,QAAS,CAEPC,UAAW,qBAGbC,MAAO,CAELD,UAAW,kBAIfE,QAAS,CACPH,QAAS,CACPJ,MAAO,QACPC,gBAAiB,aAGtB,EAiBA,OAjBA,8CAED,WACElB,KAAKyB,mBAAqBzB,KAAK0B,KAAKD,qBACrC,uCAED,SAA0BE,GACxB,MAA2BA,EAASC,aAA5BC,EAAO,EAAPA,QAASC,EAAK,EAALA,MACjB9B,KAAKyB,mBAAmBM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OAAO,2BACFvnB,GAAK,IACRW,WAAW,EACXukB,cAAc,IAElB,KAAKtvB,GAAY4xB,mBACf,OAAO,2BACFxnB,GAAK,IACRklB,cAAc,IAElB,QACE,OAAOllB,ISRXg+B,qBAAsB2C,KCqBTE,GAtCQ,WACrB,IAAIC,EAAa,CAACC,MACdC,EAAY,CAACC,IAAe,aAAIH,IAapC,OAAOI,YAAYN,GAAaO,IAAO,aAAIH,KCVzBI,QACW,cAA7BttC,OAAOF,SAASytC,UAEe,UAA7BvtC,OAAOF,SAASytC,UAEhBvtC,OAAOF,SAASytC,SAASjiB,MACvB,2D,cCPN,GAA6B,KAAzBnjB,EAAe7F,OAAyC,gBAAzB6F,EAAe7F,MAAyB,CACzE,IAAMkrC,GAAiB,CACrBlrC,MAAO6F,EAAe7F,O,QAGxBmrC,EAAWC,WAAWF,IAGxB,IAAMG,GAAQZ,KAEda,IAASp4B,OACP,kBAAC,IAAQ,CAACm4B,MAAOA,IACf,kBAAC,GAAG,OAEN19B,SAASiR,eAAe,SD0GpB,kBAAmB2sB,WACrBA,UAAUC,cAAcC,MAAMhmC,MAAK,SAAAimC,GACjCA,EAAaC,kB","file":"static/js/main.77f464f4.chunk.js","sourcesContent":["import { Component } from \"react\";\r\nimport { withRouter } from \"react-router\";\r\n\r\nclass ScrollToTop extends Component {\r\n componentDidUpdate(prevProps) {\r\n if (this.props.location.pathname !== prevProps.location.pathname) {\r\n window.scrollTo(0, 0);\r\n }\r\n }\r\n\r\n render() {\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport default withRouter(ScrollToTop);\r\n","/**\r\n * Toast Notification\r\n * Refer to: https://www.npmjs.com/package/react-notification-system#action\r\n */\r\nimport React, { Component } from \"react\";\r\nimport NotificationSystem from \"react-notification-system\";\r\n\r\nclass ToastNotification extends Component {\r\n // Override default style\r\n style = {\r\n NotificationItem: {\r\n // Override the notification item\r\n DefaultStyle: {\r\n // Applied to every notification, regardless of the notification level\r\n margin: \"10px 5px 2px 1px\",\r\n padding: \"15px\",\r\n borderRadius: \"4px\",\r\n fontSize: \"1em\",\r\n color: \"white\",\r\n backgroundColor: \"#313131\",\r\n width: \"500px\",\r\n maxWidth: \"100%\",\r\n },\r\n success: {\r\n // Applied only to the success notification item\r\n borderTop: \"4px solid #04D9B2\",\r\n //fontWeight: 'bolder',\r\n },\r\n error: {\r\n // Applied only to the error notification item\r\n borderTop: \"4px solid red\",\r\n //fontWeight: 'bolder',\r\n },\r\n },\r\n Dismiss: {\r\n success: {\r\n color: \"white\",\r\n backgroundColor: \"#313131\",\r\n },\r\n },\r\n };\r\n\r\n componentDidMount() {\r\n this.notificationSystem = this.refs.notificationSystem;\r\n }\r\n\r\n componentWillReceiveProps(newProps) {\r\n const { message, level } = newProps.notification;\r\n this.notificationSystem.addNotification({\r\n message,\r\n level,\r\n position: \"tr\",\r\n });\r\n }\r\n\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default ToastNotification;\r\n","/**\r\n * System-wide Action types\r\n */\r\nexport const ActionTypes = {\r\n // Notifications\r\n SYS_ADD_NOTIFICATION: \"ADD_NOTIFICATION\",\r\n SYS_ADD_ERROR_NOTIFICATION: \"ADD_NOTIFICATION\",\r\n\r\n // Error Handler\r\n SYS_HANDLE_ERROR: \"HANDLE_ERROR\",\r\n SYS_HANDLE_ERROR_SHOW_FORM: \"SYS_HANDLE_ERROR_SHOW_FORM\",\r\n SYS_HANDLE_ERROR_HIDE_FORM: \"SYS_HANDLE_ERROR_HIDE_FORM\",\r\n\r\n // Profile\r\n SYS_GET_PROFILE_REQUEST: \"SYS_GET_PROFILE_REQUEST\",\r\n SYS_GET_PROFILE_SUCCESS: \"SYS_GET_PROFILE_SUCCESS\",\r\n SYS_GET_PROFILE_FAILURE: \"SYS_GET_PROFILE_FAILURE\",\r\n SYS_HIDE_SPLASH: \"SYS_HIDE_SPLASH\",\r\n\r\n SYS_UPDATE_PROFILE_REQUEST: \"SYS_UPDATE_PROFILE_REQUEST\",\r\n SYS_UPDATE_PROFILE_SUCCESS: \"SYS_UPDATE_PROFILE_SUCCESS\",\r\n SYS_UPDATE_PROFILE_FAILURE: \"SYS_UPDATE_PROFILE_FAILURE\",\r\n\r\n SYS_GET_FEATURE_FLAG_SUCCESS: \"SYS_GET_FEATURE_FLAG_SUCCESS\",\r\n SYS_GET_FEATURE_FLAG_FAILURE: \"SYS_GET_FEATURE_FLAG_FAILURE\",\r\n\r\n SYS_TOGGLE_LOG_OUT: \"SYS_TOGGLE_LOG_OUT\",\r\n SYS_UPDATE_PROFILE: \"SYS_UPDATE_PROFILE\",\r\n};\r\n","const Config = {\r\n appVersion: \"1.0\",\r\n appAuthStorageKey: \"mrt-app-auth\",\r\n defaultPageTitle: \"Mr Traffic\",\r\n apiUrl: process.env.REACT_APP_API_URL,\r\n clientId: \"bf4bbf8202934f64a8ccfcac8d419679\",\r\n gtmId: process.env.REACT_APP_GTM_ID,\r\n};\r\n\r\nexport default Config;\r\n","import Config from \"../../config\";\r\n\r\n/**\r\n * Authentication library\r\n * Create singleton instance\r\n */\r\n\r\nclass Auth {\r\n constructor() {\r\n this.useLocalStorage = typeof localStorage !== \"undefined\";\r\n this.subscribers = [];\r\n this.load();\r\n }\r\n\r\n load() {\r\n if (this.useLocalStorage) {\r\n let tokenObject = localStorage.getItem(Config.appAuthStorageKey);\r\n if (!tokenObject) return;\r\n\r\n let tokenObjectParsed = JSON.parse(tokenObject);\r\n this._populateModel(\r\n tokenObjectParsed.token,\r\n tokenObjectParsed.refreshToken,\r\n tokenObjectParsed.expiresIn\r\n );\r\n }\r\n }\r\n\r\n isAuthenticated() {\r\n // Check storage if token still in the local store\r\n if (this.useLocalStorage) {\r\n let tokenObject = localStorage.getItem(Config.appAuthStorageKey);\r\n if (!tokenObject) {\r\n // Reset token variable if token in local store is manually removed\r\n this._populateModel(null, null, null);\r\n return;\r\n }\r\n }\r\n return !!this.token;\r\n }\r\n\r\n setToken(token, refreshToken, expiresIn) {\r\n this._populateModel(token, refreshToken, expiresIn);\r\n\r\n if (this.useLocalStorage) {\r\n localStorage.setItem(\r\n Config.appAuthStorageKey,\r\n JSON.stringify({ token, refreshToken, expiresIn })\r\n );\r\n }\r\n }\r\n\r\n removeToken() {\r\n this._populateModel(null, null, null);\r\n\r\n if (this.useLocalStorage) {\r\n localStorage.removeItem(Config.appAuthStorageKey);\r\n }\r\n }\r\n\r\n getToken() {\r\n const tokenObj = this._fetchFullTokenObject();\r\n if (!tokenObj) return tokenObj;\r\n\r\n return tokenObj.token;\r\n }\r\n\r\n getRefreshToken() {\r\n const tokenObj = this._fetchFullTokenObject();\r\n if (!tokenObj) return tokenObj;\r\n\r\n return tokenObj.refreshToken;\r\n }\r\n\r\n subscribe(cb) {\r\n this.subscribers.push(cb);\r\n }\r\n\r\n notifySubscribers() {\r\n this.subscribers.forEach((cb) => cb(this.isAuthenticated()));\r\n }\r\n\r\n // Refresh token payload builder\r\n getRefreshTokenPayload(clientId) {\r\n const refreshTokenPayload = {\r\n ClientId: clientId,\r\n GrantType: \"refresh_token\",\r\n RefreshToken: this.getRefreshToken(),\r\n };\r\n\r\n return refreshTokenPayload;\r\n }\r\n\r\n _fetchFullTokenObject() {\r\n if (!this.useLocalStorage) return;\r\n\r\n let tokenObject = localStorage.getItem(Config.appAuthStorageKey);\r\n if (!tokenObject) {\r\n // Reset token variable if token in local store is manually removed\r\n this._populateModel(null, null, null);\r\n return;\r\n }\r\n\r\n return JSON.parse(tokenObject);\r\n }\r\n\r\n _populateModel(token, refresh, expiresIn) {\r\n this.token = token;\r\n this.refreshToken = refresh;\r\n this.expiresIn = expiresIn;\r\n }\r\n}\r\n\r\nexport default Auth = new Auth();\r\n","const parseJwt = token => {\r\n let base64Url = token.split(\".\")[1];\r\n let base64 = base64Url.replace(\"-\", \"+\").replace(\"_\", \"/\");\r\n\r\n return JSON.parse(atob(base64));\r\n};\r\n\r\nexport default { parseJwt };\r\n","/**\r\n * User Claims library\r\n * Create singleton instance\r\n * by rcnet@solvable\r\n *\r\n * Claims Utility methods.\r\n * Sample usage:\r\n *\r\n * claimsExist() - accepts a single expected claim parameter to check against current user's claims.\r\n * ex.\r\n * button.disabled = userIdentity.claimsExist('CanAccessProfile') || userIdentity.claimsExist('CanManageProfile')\r\n * button.disabled = userIdentity.claimsExist('CanAccessProfile') && userIdentity.claimsExist('CanManageProfile')\r\n *\r\n * trueForAll() - supplied parameter vs claims checking should be all truthy to say that it is a valid claim.\r\n * ex.\r\n * button.disabled = userIdentity.trueForAll(['CanAccessProfile', 'CanManageProfile'])\r\n *\r\n * any() - performs OR checking of expected claim types against user's claims. If it finds any occurence of expected claims it will considered a thruthy result.\r\n * ex.\r\n * button.disabled = userIdentity.any(['CanAccessProfile', 'CanAccessPayroll'])\r\n * \r\n * Sample usage #2: (Passing a claimType)\r\n * \r\n * trueForAll example.\r\n * button.disabled = userIdentity.trueForAll(['rol==admin','CanAccessProfile', 'CanManageProfile'])\r\n * \r\n * Any example.\r\n * button.disabled = userIdentity.any(['CanAccessProfile', 'CanAccessPayroll', 'rol==NormalUser', 'location==123'])\r\n */\r\nimport Auth from \"../auth/auth\";\r\nimport AuthUtil from \"../auth/authUtil\";\r\n\r\nconst UserIdentity = () => {\r\n // Common Claims\r\n const getFirstName = () => getClaimsValueByType(\"given_name\");\r\n\r\n const getUserId = () => getClaimsValueByType(\"id\");\r\n\r\n const getLastName = () => getClaimsValueByType(\"family_name\");\r\n\r\n const getFullName = () => `${getFirstName()} ${getLastName()}`;\r\n\r\n const getUserName = () => getClaimsValueByType(\"sub\");\r\n\r\n const getRole = () => getClaimsValueByType(\"rol\");\r\n\r\n const getEmail = () => getClaimsValueByType(\"sub\");\r\n\r\n const isAuthenticated = () => Auth.isAuthenticated();\r\n\r\n // -----------------------\r\n // Claims Utility methods\r\n // -----------------------\r\n\r\n /**\r\n * Will return a claim value based on the supply claim type.\r\n * @param {*} claimType\r\n */\r\n const getClaimsValueByType = claimType => {\r\n let claims = getClaims();\r\n return _perfGetClaimsValueByType(claimType, claims);\r\n // let claim = (claims && claims[claimType]);\r\n // return claim ? claim : '';\r\n };\r\n\r\n /**\r\n * Get array of claims\r\n */\r\n const getClaims = () => {\r\n //Todo: Perform debounce here (cache it for 3-5 secs)\r\n let token = Auth.getToken();\r\n if (!token) return null;\r\n return AuthUtil.parseJwt(token);\r\n };\r\n\r\n /**\r\n * Provide either claim type or value\r\n * 1. It will check if the claim is available to this user\r\n * 2. It will check both if the claim type and value are equal\r\n *\r\n * @param {value} value\r\n */\r\n const claimsExist = value => {\r\n var claim = getClaimsValueByType(value);\r\n if (claim === \"\") return false;\r\n\r\n return claim === value;\r\n };\r\n\r\n const trueForAll = expectedClaims => {\r\n let testResults = [];\r\n expectedClaims.forEach(c => {\r\n testResults.push(claimsExist(c));\r\n });\r\n\r\n return testResults.every(x => x === true);\r\n };\r\n\r\n const any = expectedClaims => {\r\n const hasAny = expectedClaims.some(c => {\r\n return claimsExist(c);\r\n });\r\n\r\n return hasAny;\r\n };\r\n\r\n // internal only\r\n const _perfGetClaimsValueByType = (claimType, claims) => {\r\n let claim = claims && claims[claimType];\r\n return claim ? claim : \"\";\r\n };\r\n\r\n return {\r\n getFirstName,\r\n getUserId,\r\n getLastName,\r\n getFullName,\r\n getUserName,\r\n isAuthenticated,\r\n getRole,\r\n getClaimsValueByType,\r\n getClaims,\r\n claimsExist,\r\n trueForAll,\r\n getEmail,\r\n any\r\n };\r\n};\r\n\r\nexport default UserIdentity;\r\n","/**\r\n * Error Service\r\n */\r\nconst ErrorService = () => {\r\n const resolveError = error => {\r\n const deferred = new Promise((resolve, reject) => {\r\n let errObj = _identifyAndCreateErrorObject(error);\r\n resolve(errObj);\r\n });\r\n\r\n return deferred;\r\n };\r\n\r\n const _identifyAndCreateErrorObject = error => {\r\n const status = error.response && error.response.status;\r\n const errData = error.response && error.response.data;\r\n let defaultErrModel = {\r\n isModelState: false,\r\n error: errData,\r\n status: status\r\n };\r\n\r\n _log(error);\r\n\r\n if (status === undefined) {\r\n return {\r\n ...defaultErrModel,\r\n status: \"Unknown\",\r\n message:\r\n \"Oops, something went wrong. Check the console logs for details.\"\r\n };\r\n }\r\n\r\n switch (status) {\r\n case 404:\r\n return {\r\n ...defaultErrModel,\r\n message: errData\r\n };\r\n\r\n case 500:\r\n return {\r\n ...defaultErrModel,\r\n message: errData.Message\r\n };\r\n\r\n default:\r\n return {\r\n ...defaultErrModel,\r\n message: \"Oops, something went wrong.\"\r\n };\r\n }\r\n };\r\n\r\n // Perform Sentry logging here\r\n const _log = error => {\r\n console.log(\"== Encountered an error ==\");\r\n if (error && error.response && error.response.data)\r\n console.error(error.response.data);\r\n else console.error(error);\r\n };\r\n\r\n return {\r\n resolveError\r\n };\r\n};\r\n\r\nexport default ErrorService;\r\n","const historyObject = require(\"history\").createBrowserHistory;\r\n\r\nexport default historyObject;\r\n","/**\r\n * HttpInterceptor abstraction\r\n * To encapsulate http provider details like FETCH Api or Axios.\r\n *\r\n * Provider: Axios\r\n * - rcnet @solvable\r\n */\r\n\r\nimport axios from \"axios\";\r\nimport Auth from \"../auth/auth\";\r\nimport historyObject from \"../history/historyObject\";\r\nimport Config from \"./../../config\";\r\n\r\nconst AUTH_LOGIN_URL = \"/login\";\r\nconst AUTH_TOKEN_URL = \"/v1/core/auth/token\";\r\nconst MAINTENANCE_PAGE_URL = \"/pages/maintenance\";\r\nconst FORBIDDEN_PAGE_URL = \"/pages/error-403\";\r\n\r\nconst HttpInterceptor = () => {\r\n const api = axios.create({ baseURL: Config.apiUrl });\r\n let authTokenRequestPromise;\r\n\r\n // By default interceptors were enabled, this will impact setAuthToken rendering it no effect at all.\r\n // Todo: Provide a way to enable /disable interceptor specially the auth alteration when setAuthToken method is called.\r\n const interceptorReqAuth = (config) => {\r\n const token = Auth.getToken();\r\n if (token != null) config.headers.Authorization = `Bearer ${token}`;\r\n\r\n return config;\r\n };\r\n\r\n // AuthTokenRequestPromise plays a very important role in this code base, it handles concurrent/parallel requests which puts into queue.\r\n // To prevent multiple refreshtoken\r\n const interceptorRespError = (error) => {\r\n const err = error.response;\r\n\r\n // Check if api server is down\r\n if (error.Error === \"Network Error\" && err === undefined) {\r\n historyObject.push(MAINTENANCE_PAGE_URL);\r\n return Promise.reject(error);\r\n }\r\n\r\n if (err.status === 401 && err.config && !err.config.__isRetryRequest) {\r\n return _getAuthToken()\r\n .then((resp) => {\r\n Auth.setToken(\r\n resp.data.access_token,\r\n resp.data.refresh_token,\r\n resp.data.expires_in\r\n );\r\n err.config.__isRetryRequest = true;\r\n err.config.headers.Authorization = `Bearer ${resp.data.access_token}`;\r\n\r\n return axios(err.config);\r\n })\r\n .catch((e) => {\r\n let ex = e.response;\r\n if (ex.status === 400 && ex.data && ex.data.invalid_refreshtoken) {\r\n Auth.removeToken();\r\n historyObject.push(AUTH_LOGIN_URL);\r\n }\r\n return Promise.reject(e);\r\n });\r\n } else if (err.status === 403) {\r\n historyObject.push(FORBIDDEN_PAGE_URL);\r\n let newErrObj = Object.assign({}, error);\r\n newErrObj.response.data[\"Message\"] = \"Unable to access page.\";\r\n return Promise.reject(newErrObj);\r\n } else {\r\n return Promise.reject(error);\r\n }\r\n };\r\n\r\n const _getAuthToken = () => {\r\n if (!authTokenRequestPromise) {\r\n const refreshTokenPayload = Auth.getRefreshTokenPayload(Config.clientId);\r\n\r\n authTokenRequestPromise = api.post(AUTH_TOKEN_URL, refreshTokenPayload);\r\n authTokenRequestPromise\r\n .then(_resetAuthTokenRequestPromise)\r\n .catch(_resetAuthTokenRequestPromise);\r\n }\r\n\r\n return authTokenRequestPromise;\r\n };\r\n\r\n const _resetAuthTokenRequestPromise = () => (authTokenRequestPromise = null);\r\n\r\n return {\r\n interceptorReqAuth,\r\n interceptorRespError,\r\n };\r\n};\r\n\r\nexport default HttpInterceptor;\r\n","/**\r\n * Http abstraction\r\n * To encapsulate http provider details like FETCH Api or Axios.\r\n * Wish we have interface like typescript.\r\n *\r\n * Provider: Axios\r\n * - rcnet @solvable\r\n */\r\n\r\nimport axios from \"axios\";\r\nimport HttpInterceptor from \"./httpInterceptor\";\r\nimport Config from \"./../../config\";\r\n\r\nconst HttpClient = () => {\r\n let api = axios.create({ baseURL: Config.apiUrl });\r\n let interceptor = HttpInterceptor();\r\n\r\n api.interceptors.request.use(interceptor.interceptorReqAuth, error =>\r\n Promise.reject(error)\r\n );\r\n api.interceptors.response.use(undefined, interceptor.interceptorRespError);\r\n\r\n // ===============\r\n // Methods\r\n // ===============\r\n\r\n /**\r\n *\r\n * @param {resourcePathName} Resource path name for example 'user'\r\n * @param {cfg} you can use params - An object parameter { ID: 12345 }\r\n */\r\n const get = (resourcePathName, cfg = null) =>\r\n cfg ? api.get(resourcePathName, cfg) : api.get(resourcePathName);\r\n\r\n const post = (resourcePathName, payload, cfg = null) =>\r\n cfg\r\n ? api.post(resourcePathName, payload, cfg)\r\n : api.post(resourcePathName, payload);\r\n\r\n const del = urlParams => api.delete(urlParams);\r\n\r\n const put = (urlParams, payload, cfg = null) =>\r\n cfg ? api.put(urlParams, payload, cfg) : api.put(urlParams, payload);\r\n\r\n const patch = (resourcePathName, payload) =>\r\n api.patch(resourcePathName, payload);\r\n\r\n // Note: Has an issue with interceptor\r\n const setAuthToken = token => {\r\n api.defaults.headers.common[\"Authorization\"] = token;\r\n return this;\r\n };\r\n\r\n /**\r\n * Either form, json etc.\r\n * @param {type} 'form', 'json'\r\n * Note: if not in the list of types it will apply as custom\r\n */\r\n const setContentType = type => {\r\n // Pre-defined list of content types\r\n let contentType = getContentTypeString(type);\r\n api.defaults.headers.post[\"Content-Type\"] = contentType;\r\n return this;\r\n };\r\n\r\n /**\r\n *\r\n * @param {type} Basic content types are supported as of the moment.\r\n * Try to contribute by adding new types to enhance the library. thanks :P\r\n * types: form, json, pdf, xml, zip, csv, plain, html\r\n */\r\n const getContentTypeString = type => {\r\n let contentType =\r\n type === \"form\"\r\n ? \"application/x-www-form-urlencoded\"\r\n : type === \"json\"\r\n ? \"application/json\"\r\n : type === \"pdf\"\r\n ? \"application/pdf\"\r\n : type === \"xml\"\r\n ? \"application/xml\"\r\n : type === \"zip\"\r\n ? \"application/zip\"\r\n : type === \"csv\"\r\n ? \"text/csv\"\r\n : type === \"plain\"\r\n ? \"text/plain\"\r\n : type === \"html\"\r\n ? \"text/html\"\r\n : type === \"jpg\"\r\n ? \"image/jpeg\"\r\n : type === \"png\"\r\n ? \"image/png\"\r\n : type;\r\n return contentType;\r\n };\r\n\r\n /**\r\n * Will return the specific provider (actual library)\r\n * Note: Avoid using this!\r\n */\r\n const getProvider = () => api;\r\n\r\n return {\r\n get,\r\n post,\r\n put,\r\n delete: del,\r\n patch,\r\n getProvider,\r\n getContentTypeString,\r\n setContentType,\r\n setAuthToken\r\n };\r\n};\r\n\r\nexport default HttpClient;\r\n","/**\r\n * Common service for Profile\r\n */\r\nimport HttpClient from \"../core/http/httpClient\";\r\n\r\nconst ProfileService = () => {\r\n let httpClient = HttpClient();\r\n\r\n const getProfile = id =>\r\n httpClient.get(`/v1/core/accounts/${id}/profile/settings`);\r\n\r\n return {\r\n getProfile\r\n };\r\n};\r\n\r\nexport default ProfileService;\r\n","/**\r\n * System-wide Action Creator definitions\r\n */\r\nimport { ActionTypes } from \"./system-action-types\";\r\nimport UserIdentity from \"./../../core/auth/userIdentity\";\r\nimport ErrorService from \"./../../core/error/errorService\";\r\nimport ProfileService from \"./../../services/profile-service\";\r\n\r\n// =================\r\n// Notifications\r\n// =================\r\nexport function addNotification(message, level) {\r\n return {\r\n type: ActionTypes.SYS_ADD_NOTIFICATION,\r\n message,\r\n level,\r\n };\r\n}\r\n\r\n/*\r\n error - Error object from the api response\r\n defaultErrorMessage - fallback error message (defined by the user)\r\n*/\r\nexport function addErrorNotification(error, defaultErrorMessage) {\r\n let errorMessage =\r\n error &&\r\n error.response &&\r\n error.response.status &&\r\n error.response.status === 500\r\n ? error.response.data.Message\r\n : defaultErrorMessage;\r\n\r\n return {\r\n type: ActionTypes.SYS_ADD_ERROR_NOTIFICATION,\r\n message: errorMessage,\r\n level: \"error\",\r\n };\r\n}\r\n\r\n// ==================\r\n// Handle Error\r\n// ==================\r\nexport const handleError = (error) => {\r\n return (dispatch) => {\r\n const errorService = ErrorService();\r\n //dispatch(resetPasswordRequest());\r\n errorService\r\n .resolveError(error)\r\n .then((resp) => {\r\n dispatch(showErrorForm(resp));\r\n })\r\n .catch((err) => {\r\n dispatch(hideErrorForm());\r\n });\r\n };\r\n};\r\n\r\nconst showErrorForm = (data) => ({\r\n type: ActionTypes.SYS_HANDLE_ERROR_SHOW_FORM,\r\n payload: {\r\n message: data.message,\r\n error: data.error,\r\n isModelState: data.isModelState,\r\n status: data.status,\r\n },\r\n});\r\n\r\nexport const hideErrorForm = () => ({\r\n type: ActionTypes.SYS_HANDLE_ERROR_HIDE_FORM,\r\n});\r\n\r\n// ==================\r\n// Profile\r\n// ==================\r\nexport const getProfile = () => (dispatch) => {\r\n const service = ProfileService();\r\n const userIdent = UserIdentity();\r\n\r\n if (userIdent.isAuthenticated()) {\r\n dispatch(getProfileRequest());\r\n service\r\n .getProfile(userIdent.getUserId())\r\n .then(({ data }) => {\r\n dispatch(getProfileSuccess(data));\r\n })\r\n .catch((err) => {\r\n dispatch(getProfileFailure(err));\r\n });\r\n }\r\n};\r\n\r\nexport const setProfile = (data) => {\r\n return (dispatch) => {\r\n dispatch(getProfileSuccess(data));\r\n };\r\n};\r\n\r\nconst getProfileRequest = () => ({\r\n type: ActionTypes.SYS_GET_PROFILE_REQUEST,\r\n});\r\n\r\nconst getProfileSuccess = (data) => ({\r\n type: ActionTypes.SYS_GET_PROFILE_SUCCESS,\r\n payload: data,\r\n});\r\n\r\nexport const updateUserProfile = (payload) => ({\r\n type: ActionTypes.SYS_UPDATE_PROFILE,\r\n payload,\r\n});\r\n\r\nconst getProfileFailure = (error) => ({\r\n type: ActionTypes.SYS_GET_PROFILE_FAILURE,\r\n payload: {\r\n error,\r\n },\r\n});\r\n\r\nexport const hideSplash = () => ({\r\n type: ActionTypes.SYS_HIDE_SPLASH,\r\n});\r\n\r\nexport const toggleLogOut = () => ({\r\n type: ActionTypes.SYS_TOGGLE_LOG_OUT,\r\n});\r\n","import { ActionTypes } from \"./system-action-types\";\r\n\r\nconst initialState = {\r\n message: \"\",\r\n level: \"success\",\r\n position: \"br\",\r\n};\r\n\r\nexport default function NotificationReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.SYS_ADD_NOTIFICATION:\r\n case ActionTypes.SYS_ADD_ERROR_NOTIFICATION:\r\n return Object.assign({}, state, {\r\n message: action.message,\r\n level: action.level ? action.level : initialState.level,\r\n });\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\n/**\r\n * Selectors\r\n */\r\n\r\nexport const selectNotificationData = (state) => state.system.notification;\r\n","import { connect } from \"react-redux\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport ToastNotification from \"./toast-notification\";\r\nimport { addNotification } from \"./../../../redux/system/system-action-creators\";\r\nimport { selectNotificationData } from \"./../../../redux/system/notification-reducer\";\r\n\r\nfunction mapStateToProps(state) {\r\n const notification = selectNotificationData(state);\r\n return {\r\n notification: notification\r\n };\r\n}\r\n\r\nfunction mapDispatchToProps(dispatch) {\r\n return {\r\n actions: bindActionCreators(\r\n {\r\n addNotification\r\n },\r\n dispatch\r\n )\r\n };\r\n}\r\n\r\nconst ToastNotificationContainer = connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n)(ToastNotification);\r\n\r\nexport default ToastNotificationContainer;\r\n","/**\r\n * ButtonFx\r\n * - Progress spinner feature\r\n * rcnet @Solvable 5.5.2019\r\n *\r\n * props exposed:\r\n * - onClick = event onClick\r\n * - isLoading = true or false (spinner hide/show)\r\n * - name = button name\r\n * - targetName = name of button to trigger loading spinner\r\n * - color = refer to reacstrap button colors\r\n * - beatColor = beat color\r\n * - className\r\n */\r\n\r\n// Sample\r\n\r\n/* \r\n Click Me!\r\n; */\r\n\r\nimport React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { Button } from \"reactstrap\";\r\nimport { css } from \"@emotion/core\";\r\nimport { BeatLoader } from \"react-spinners\";\r\n\r\nconst override = css`\r\n display: block;\r\n margin: 0 auto;\r\n border-color: red;\r\n margin-top: 5px;\r\n`;\r\n\r\nconst ButtonFx = (props) => {\r\n const loadSpinner =\r\n (props.targetName === props.name || props.targetName === \"\") &&\r\n props.isLoading;\r\n\r\n const {\r\n id,\r\n type,\r\n name,\r\n beatColor,\r\n icon,\r\n onMouseEnter,\r\n onMouseLeave,\r\n isLoading,\r\n disabled,\r\n onClick,\r\n block,\r\n className,\r\n } = props;\r\n\r\n return (\r\n \r\n {loadSpinner ? (\r\n \r\n ) : (\r\n {props.children}\r\n )}\r\n \r\n );\r\n};\r\n\r\nButtonFx.propTypes = {\r\n isLoading: PropTypes.bool,\r\n name: PropTypes.string,\r\n targetName: PropTypes.string,\r\n size: PropTypes.string,\r\n round: PropTypes.string,\r\n icon: PropTypes.string,\r\n beatColor: PropTypes.string,\r\n};\r\n\r\nButtonFx.defaultProps = {\r\n name: \"fxButton\",\r\n targetName: \"\",\r\n isLoading: false,\r\n size: \"\",\r\n round: \"true\",\r\n icon: \"false\",\r\n beatColor: \"#fff\",\r\n className: \"acpan-link acpan-link-green custom-button react-button\",\r\n};\r\n\r\nexport default ButtonFx;\r\n","import React, { Component } from \"react\";\r\nimport { NavLink as RRNavLink } from \"react-router-dom\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Auth from \"../../core/auth/auth\";\r\nimport $ from \"jquery\";\r\nimport {\r\n Collapse,\r\n Navbar,\r\n NavbarToggler,\r\n NavbarBrand,\r\n Nav,\r\n NavItem,\r\n NavLink,\r\n UncontrolledDropdown,\r\n DropdownToggle,\r\n DropdownMenu,\r\n DropdownItem,\r\n Container,\r\n Row,\r\n Col,\r\n} from \"reactstrap\";\r\nimport \"./nav-bar.scss\";\r\nimport ButtonFx from \"./../common/button-fx\";\r\n\r\nclass NavBar extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.toggle = this.toggle.bind(this);\r\n this.closeMenu = this.closeMenu.bind(this);\r\n this.openMenu = this.openMenu.bind(this);\r\n this.navigate = this.navigate.bind(this);\r\n this.state = {\r\n isOpen: false,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n var self = this;\r\n $(document).click(function (event) {\r\n let target = $(event.target);\r\n let mobileMenuOpen = $(\".navbar-collapse\").hasClass(\"show\");\r\n let navLink = target.hasClass(\"nav-link\");\r\n let navItem = target.hasClass(\"nav-item\");\r\n let navBarNavItem = target.hasClass(\"navbar-nav-item\");\r\n let navBarCollapse = target.hasClass(\"navbar-collapse\");\r\n let navBarNav = target.hasClass(\"navbar-nav\");\r\n let hasNav =\r\n navLink || navItem || navBarNavItem || navBarCollapse || navBarNav;\r\n if (mobileMenuOpen && !hasNav) {\r\n self.closeMenu();\r\n return false;\r\n }\r\n\r\n if (navLink && target[0].nextSibling === null) {\r\n self.closeMenu();\r\n return false;\r\n }\r\n\r\n if (mobileMenuOpen && navLink) {\r\n let dropDownAttach =\r\n target[0] &&\r\n target[0].nextSibling &&\r\n target[0].nextSibling &&\r\n !target[0].nextSibling.className.includes(\"show\");\r\n if (dropDownAttach) {\r\n self.closeMenu();\r\n return false;\r\n }\r\n }\r\n\r\n // Highlighted Items\r\n // if (\r\n // mobileMenuOpen &&\r\n // (target[0].text === \"My Membership\")\r\n // ) {\r\n // $(\".navbar-collapse\").toggle(false);\r\n // return false;\r\n // }\r\n });\r\n }\r\n\r\n toggle() {\r\n this.setState({\r\n isOpen: !this.state.isOpen,\r\n });\r\n }\r\n\r\n closeMenu() {\r\n this.setState({\r\n isOpen: false,\r\n });\r\n }\r\n\r\n openMenu() {\r\n this.setState({\r\n isOpen: true,\r\n });\r\n }\r\n\r\n navigate(path) {\r\n this.props.history.push(path);\r\n }\r\n\r\n getNavItem = (navItem, i) => {\r\n if (\r\n (navItem.title === \"Login\" && Auth.isAuthenticated()) ||\r\n (navItem.title === \"Logout\" && !Auth.isAuthenticated())\r\n )\r\n return;\r\n\r\n if (\r\n navItem.subLinks &&\r\n navItem.subLinks.length > 0 &&\r\n navItem.highlightClass\r\n ) {\r\n return (\r\n \r\n {\r\n this.navigate(navItem.href);\r\n }}\r\n nav\r\n >\r\n {navItem.title.replace(/ /g, \"\\u00a0\")}\r\n \r\n {false && (\r\n \r\n {navItem.subLinks.map((subItem, a) => (\r\n \r\n {subItem.title}\r\n \r\n ))}\r\n \r\n )}\r\n \r\n );\r\n } else if (navItem.subLinks && navItem.subLinks.length > 0) {\r\n return (\r\n \r\n {\r\n this.navigate(navItem.href);\r\n }}\r\n nav\r\n >\r\n {navItem.title.replace(/ /g, \"\\u00a0\")}\r\n \r\n \r\n {navItem.subLinks.map((subItem, a) => (\r\n \r\n {subItem.title}\r\n \r\n ))}\r\n \r\n \r\n );\r\n } else if (navItem.highlightClass) {\r\n return (\r\n \r\n \r\n {navItem.title.replace(/ /g, \"\\u00a0\")}\r\n \r\n \r\n );\r\n } else if (navItem.href.startsWith(\"http\")) {\r\n return (\r\n \r\n \r\n {navItem.title.replace(/ /g, \"\\u00a0\")}\r\n \r\n \r\n );\r\n } else {\r\n return (\r\n \r\n \r\n {navItem.title.replace(/ /g, \"\\u00a0\")}\r\n \r\n \r\n );\r\n }\r\n };\r\n\r\n render() {\r\n const { navLinks } = this.props;\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n 1300 MRTRAFFIC\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\n \r\n this.navigate(\"/contact-us/\")}\r\n >\r\n Contact Us\r\n \r\n this.navigate(\"/get-a-quote/\")}\r\n >\r\n \r\n Get a Quote\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \"Mr\r\n \r\n {\r\n this.toggle();\r\n }}\r\n >\r\n Toggle navigation{\" \"}\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 withRouter(NavBar);\r\n","import React from \"react\";\r\nimport \"./footer.scss\";\r\nimport { Row, Col, Container } from \"reactstrap\";\r\nimport ButtonFx from \"./../common/button-fx\";\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\nconst Footer = () => {\r\n let history = useHistory();\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n

For Enquiries:

\r\n\r\n
\r\n \r\n \r\n 1300 MRTRAFFIC\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n hire@mrtraffichire.com.au\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n 10 Everaise Court, Laverton North, VIC 3206\r\n \r\n
\r\n
\r\n \r\n Application for Credit\r\n
\r\n
\r\n \r\n \r\n
\r\n history.push(\"/contact-us/\")}\r\n >\r\n Contact Us\r\n \r\n
\r\n
\r\n history.push(\"/get-a-quote/\")}\r\n >\r\n \r\n Get a Quote\r\n \r\n
\r\n \r\n
\r\n \r\n\r\n
\r\n
\r\n © {new Date().getFullYear()} Mr Traffic Hire. All Rights\r\n Reserved. Website by{\" \"}\r\n \r\n Solvable.\r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default Footer;\r\n","/**\r\n * Search Stateless component\r\n * Functional/Controlled Component\r\n * by rcnet @solvable 4.22.2019\r\n * \r\n * Css to override:\r\n * - datatableSearch\r\n */\r\nimport React from 'react';\r\n\r\nconst SearchBox = ({...props}) => (\r\n \r\n);\r\n\r\nexport default SearchBox;\r\n","/**\r\n * Search logic for SearchBox component\r\n */\r\nconst SearchLogic = () => {\r\n const search = (filterText, list, columns) => {\r\n let searchableColumnAccessors = columns\r\n .filter(x => x.searchable)\r\n .map(x => x.accessor);\r\n \r\n // if there are no columns, assume all columns should be searchable\r\n if (searchableColumnAccessors.length === 0)\r\n searchableColumnAccessors = columns.map(x => x.accessor);\r\n \r\n let regexString = \"\";\r\n \r\n // if the start and end char is a \", match entire string\r\n if (\r\n filterText.length > 1 &&\r\n filterText[0] === '\"' &&\r\n filterText[filterText.length - 1] === '\"'\r\n ) {\r\n regexString = `\\\\b${filterText.replace(/\"/gi, \"\")}\\\\b`;\r\n } else {\r\n filterText = filterText.replace('\"', \"\");\r\n \r\n const words = filterText\r\n .split(/\\s+/g)\r\n .map(s => s.trim())\r\n .filter(s => !!s);\r\n const hasTrailingSpace = filterText.endsWith(\" \");\r\n \r\n regexString = words\r\n .map((word, i) => {\r\n if (i + 1 === words.length && !hasTrailingSpace) {\r\n // The last word - ok with the word being \"startswith\"-like\r\n return `(?=.*\\\\b${_escapeRegExp(word)})`;\r\n } else {\r\n // Not the last word - expect the whole word exactly\r\n return `(?=.*\\\\b${_escapeRegExp(word)}\\\\b)`;\r\n }\r\n })\r\n .join(\"\");\r\n }\r\n \r\n const searchRegex = new RegExp(regexString, \"gi\");\r\n \r\n return list.filter(row => {\r\n const virtualField = searchableColumnAccessors\r\n .map(x => (row[x] ? _checkForNumbersRegex(row[x]) : \"\"))\r\n .join(\" \");\r\n \r\n return searchRegex.test(virtualField);\r\n });\r\n };\r\n \r\n const _escapeRegExp = s => {\r\n return s.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\r\n };\r\n \r\n const _checkForNumbersRegex = searchQuery => {\r\n const searchRegex = /^[0-9$,. ]+$/im;\r\n if (!searchRegex.test(searchQuery)) return searchQuery;\r\n return searchQuery + \" \" + searchQuery.toString().replace(/[$,. ]/gi, \"\");\r\n };\r\n \r\n return {\r\n search\r\n };\r\n };\r\n \r\n export default SearchLogic;\r\n","/**\r\n * Predefined Action Buttons\r\n * Ready made buttons for quick and basic setup.\r\n * If you need a more complex and customize setup then just use Action Button in columns see ReactTable columns configs.\r\n * - Extensibility points still in-progress\r\n * rcnet @solvable 4.23.2019\r\n */\r\nimport React from 'react';\r\nimport { Route } from 'react-router-dom';\r\nimport { Button } from 'reactstrap';\r\n\r\nconst ActionButtonsFactory = (eventHandler) => {\r\n\r\n /**\r\n * Available action buttons\r\n * - addEditRemove, editRemove, custom (future scope)\r\n */\r\n\r\n const getPreDefinedActionButtons = (options) => {\r\n\r\n if (!options)\r\n throw new Error('Invalid option for predefined action buttons.');\r\n\r\n switch (options.type) {\r\n case 'editRemove':\r\n return ((prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return ( (\r\n
\r\n {!visibilityRules.hideEditNow ?\r\n () : null\r\n }\r\n {' '}\r\n {!visibilityRules.hideRemoveNow ?\r\n () : null\r\n }\r\n
\r\n )} />\r\n );\r\n });\r\n\r\n case 'editRemoveLink':\r\n return ((prop) => (\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 case 'addEditRemove':\r\n return ((prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return ( (\r\n
\r\n {!visibilityRules.hideAddNow ?\r\n () : null\r\n }\r\n {' '}\r\n {!visibilityRules.hideEditNow ?\r\n (): null\r\n }\r\n {' '}\r\n {!visibilityRules.hideRemoveNow ?\r\n () : null\r\n }\r\n
\r\n )} />\r\n );\r\n });\r\n\r\n case 'edit':\r\n return ((prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return ( (\r\n
\r\n {!visibilityRules.hideEditNow ?\r\n () : null\r\n }\r\n
\r\n )} />\r\n );\r\n });\r\n\r\n\r\n case 'view':\r\n return ((prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return ( (\r\n
\r\n {!visibilityRules.hideViewNow ?\r\n () : null\r\n }\r\n
\r\n )} />)\r\n });\r\n\r\n default:\r\n return ();\r\n };\r\n };\r\n\r\n // Todo: (Rcnet)\r\n // 1. For enhancements, support abstraction of rowInfo \r\n // 2. Create functionality for Disabling support\r\n const getButtonVisibilityRules = (opts, row) => {\r\n const { hideEdit, hideRemove, hideAdd, hideView } = opts;\r\n \r\n // Note: row info should not be mutated by consumer. -rcnet\r\n // Noop or pure func execution\r\n let hideEditNow = (hideEdit || (()=> {}))(row);\r\n let hideRemoveNow = (hideRemove || (()=> {}))(row);\r\n let hideAddNow = (hideAdd || (()=> {}))(row); \r\n let hideViewNow = (hideView || (()=> {}))(row);\r\n \r\n return {\r\n hideEditNow,\r\n hideRemoveNow,\r\n hideAddNow,\r\n hideViewNow\r\n };\r\n };\r\n \r\n\r\n return {\r\n getPreDefinedActionButtons\r\n }\r\n};\r\n\r\nexport default ActionButtonsFactory;\r\n\r\n\r\n\r\n","import React from 'react';\r\nimport {Button} from 'reactstrap';\r\n\r\nconst FilterButton = (({ ...props }) => (\r\n
\r\n \r\n
\r\n));\r\n\r\nexport default FilterButton;","import React, { Component } from 'react'\r\nimport {\r\n Collapse,\r\n Button,\r\n Card,\r\n CardBody,\r\n Tooltip,\r\n CardTitle\r\n} from 'reactstrap';\r\n\r\nclass FilterContainer extends Component {\r\n state = {\r\n collapse: false,\r\n tooltipOpen: false\r\n };\r\n\r\n toggle = () => {\r\n this.setState({ collapse: !this.state.collapse });\r\n };\r\n\r\n toggleToolTip = () => {\r\n this.setState({ tooltipOpen: !this.state.tooltipOpen });\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n Show Advance Filtering\r\n \r\n \r\n \r\n Advance Filtering\r\n
\r\n \r\n {this.props.children}\r\n \r\n
\r\n
\r\n
\r\n );\r\n };\r\n};\r\n\r\nexport default FilterContainer;\r\n\r\n","import React from \"react\";\r\nimport {\r\n Input,\r\n InputGroup,\r\n InputGroupAddon,\r\n FormGroup,\r\n Label,\r\n} from \"reactstrap\";\r\nimport FilterButton from \"../filter-pane/filter-button/filter-button\";\r\nimport FilterContainer from \"../filter-pane/filter-container/filter-container\";\r\nimport \"../filter-pane/filter-pane.css\";\r\n\r\n/**\r\n * FilterPane - functional component\r\n * - Renderer filter components\r\n * @param {props} functional component props provided by datatable\r\n */\r\nconst FilterPane = ({ ...props }) => (\r\n \r\n {props.filterOptions.filters.map((item, i) => {\r\n return ComponentFactory().get(item, i, props.onFilterChange);\r\n })}\r\n \r\n \r\n);\r\n\r\n/**\r\n * Component Factory\r\n * Add input components here\r\n */\r\nconst ComponentFactory = () => {\r\n const get = (item, key, onFilterChange) => {\r\n switch (item.type.toLowerCase()) {\r\n case \"textbox\":\r\n return _getTextbox(item, key, onFilterChange);\r\n case \"checkbox\":\r\n return _getCheckbox(item, key, onFilterChange);\r\n case \"dropdown\":\r\n return _getDropDown(item, key, onFilterChange);\r\n default:\r\n return null;\r\n }\r\n };\r\n\r\n const _getTextbox = (item, key, onFilterChange) => (\r\n \r\n {item.iconPrepend ? (\r\n \r\n {item.iconPrepend}\r\n \r\n ) : null}\r\n \r\n onFilterChange({\r\n data: { ...item, value: evt.target.value },\r\n event: evt,\r\n })\r\n }\r\n />\r\n \r\n );\r\n\r\n const _getCheckbox = (item, key, onFilterChange) => (\r\n \r\n \r\n \r\n );\r\n\r\n const _getDropDown = (item, key, onFilterChange) => (\r\n \r\n {/* */}\r\n \r\n onFilterChange({\r\n data: { ...item, value: evt.target.value },\r\n event: evt,\r\n })\r\n }\r\n >\r\n {item.items.map((opt, i) => (\r\n \r\n ))}\r\n \r\n \r\n );\r\n\r\n return {\r\n get,\r\n };\r\n};\r\n\r\nexport default FilterPane;\r\n","/**\r\n * Predefined Action Buttons\r\n * Ready made buttons for quick and basic setup.\r\n * If you need a more complex and customize setup then just use Action Button in columns see ReactTable columns configs.\r\n * - Extensibility points still in-progress\r\n * rcnet @solvable 4.23.2019\r\n * RN:\r\n * - Added hide button functionality per data row render\r\n * - Added Custom Button feature which accept 5 buttons configured in the consumer.\r\n */\r\n\r\nimport React from \"react\";\r\nimport { Route, Link } from \"react-router-dom\";\r\nimport { Button } from \"reactstrap\";\r\nimport isNil from \"lodash/isNil\";\r\nimport \"./action-buttons-factory.scss\";\r\nimport isFunction from \"lodash/isFunction\";\r\nimport ReactTooltip from \"react-tooltip\";\r\n\r\nconst ActionButtonsFactory2 = (eventHandler) => {\r\n /**\r\n * Available action buttons\r\n * - addEditRemove, editRemove, custom (future scope)\r\n */\r\n\r\n const getPreDefinedActionButtons = (options) => {\r\n if (!options)\r\n throw new Error(\"Invalid option for predefined action buttons.\");\r\n\r\n switch (options.type) {\r\n case \"editRemove\":\r\n return (prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return (\r\n (\r\n
\r\n {!visibilityRules.hideEditNow ? (\r\n \r\n eventHandler({\r\n type: \"edit\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}{\" \"}\r\n {!visibilityRules.hideRemoveNow ? (\r\n \r\n eventHandler({\r\n type: \"remove\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}\r\n
\r\n )}\r\n />\r\n );\r\n };\r\n\r\n case \"addEditRemove\":\r\n return (prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return (\r\n (\r\n
\r\n {!visibilityRules.hideAddNow ? (\r\n \r\n eventHandler({\r\n type: \"add\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}{\" \"}\r\n {!visibilityRules.hideEditNow ? (\r\n \r\n eventHandler({\r\n type: \"edit\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}{\" \"}\r\n {!visibilityRules.hideRemoveNow ? (\r\n \r\n eventHandler({\r\n type: \"remove\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}\r\n
\r\n )}\r\n />\r\n );\r\n };\r\n\r\n case \"edit\":\r\n return (prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return (\r\n (\r\n
\r\n {!visibilityRules.hideEditNow ? (\r\n \r\n eventHandler({\r\n type: \"edit\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}\r\n
\r\n )}\r\n />\r\n );\r\n };\r\n\r\n case \"view\":\r\n return (prop) => {\r\n let visibilityRules = getButtonVisibilityRules(options, prop.row);\r\n\r\n return (\r\n (\r\n
\r\n {!visibilityRules.hideViewNow ? (\r\n \r\n eventHandler({\r\n type: \"view\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n \r\n \r\n ) : null}\r\n
\r\n )}\r\n />\r\n );\r\n };\r\n\r\n case \"customButton\":\r\n return CustomButton(options);\r\n\r\n default:\r\n return ;\r\n }\r\n };\r\n\r\n /**\r\n * Custom Button\r\n * - This feature only supports maximum of 6 buttons in the action column. If you need more than that just add below the codes.\r\n * - But I do not recommend adding more than 6 buttons, instead user should reconsider the design or better yet implement a triple dot (ellipsis button).\r\n */\r\n const CustomButton = (options) => {\r\n return (prop) => {\r\n let buttonOpts = getCustomButtonOpts(options.custom);\r\n let visibilityRules = getCustomButtonVisibilityRules(options.custom, {\r\n ...prop.row,\r\n fullRowDetails: { ...prop.row._original },\r\n });\r\n\r\n let id = prop.row._original.id; //? id : uuidv4();\r\n\r\n return (\r\n (\r\n
\r\n {/* Button1 */}\r\n {!isNil(buttonOpts[\"button1\"]) && !visibilityRules.btn1HideNow ? (\r\n \r\n \r\n eventHandler({\r\n type: \"button1\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n {!isNil(buttonOpts[\"button1\"].icon) ? (\r\n \r\n ) : (\r\n Button1\r\n )}\r\n\r\n {buttonOpts[\"button1\"].tooltip && (\r\n \r\n {buttonOpts[\"button1\"].tooltip}\r\n \r\n )}\r\n \r\n \r\n ) : null}{\" \"}\r\n {/* Button2 */}\r\n {!isNil(buttonOpts[\"button2\"]) && !visibilityRules.btn2HideNow ? (\r\n \r\n \r\n eventHandler({\r\n type: \"button2\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n {!isNil(buttonOpts[\"button2\"].icon) ? (\r\n \r\n ) : (\r\n Button2\r\n )}\r\n {buttonOpts[\"button2\"].tooltip && (\r\n \r\n {buttonOpts[\"button2\"].tooltip}\r\n \r\n )}\r\n \r\n \r\n ) : null}{\" \"}\r\n {/* Button3 */}\r\n {!isNil(buttonOpts[\"button3\"]) && !visibilityRules.btn3HideNow ? (\r\n \r\n \r\n eventHandler({\r\n type: \"button3\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n {!isNil(buttonOpts[\"button3\"].icon) ? (\r\n \r\n ) : (\r\n Button3\r\n )}\r\n\r\n {buttonOpts[\"button3\"].tooltip && (\r\n \r\n {buttonOpts[\"button3\"].tooltip}\r\n \r\n )}\r\n \r\n \r\n ) : null}{\" \"}\r\n {/* Button4 */}\r\n {!isNil(buttonOpts[\"button4\"]) && !visibilityRules.btn4HideNow ? (\r\n \r\n \r\n eventHandler({\r\n type: \"button4\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n {!isNil(buttonOpts[\"button4\"].icon) ? (\r\n \r\n ) : (\r\n Button4\r\n )}\r\n\r\n {buttonOpts[\"button4\"].tooltip && (\r\n \r\n {buttonOpts[\"button4\"].tooltip}\r\n \r\n )}\r\n \r\n \r\n ) : null}{\" \"}\r\n {/* Button5 */}\r\n {!isNil(buttonOpts[\"button5\"]) && !visibilityRules.btn5HideNow ? (\r\n \r\n \r\n eventHandler({\r\n type: \"button5\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n {!isNil(buttonOpts[\"button5\"].icon) ? (\r\n \r\n ) : (\r\n Button5\r\n )}\r\n\r\n {buttonOpts[\"button5\"].tooltip && (\r\n \r\n {buttonOpts[\"button5\"].tooltip}\r\n \r\n )}\r\n \r\n \r\n ) : null}\r\n {/* Button6 */}\r\n {!isNil(buttonOpts[\"button6\"]) && !visibilityRules.btn6HideNow ? (\r\n \r\n \r\n eventHandler({\r\n type: \"button6\",\r\n data: prop.original,\r\n e: evt,\r\n history: history,\r\n })\r\n }\r\n >\r\n {!isNil(buttonOpts[\"button6\"].icon) ? (\r\n \r\n ) : (\r\n Button6\r\n )}\r\n\r\n {buttonOpts[\"button6\"].tooltip && (\r\n \r\n {buttonOpts[\"button6\"].tooltip}\r\n \r\n )}\r\n \r\n \r\n ) : null}\r\n
\r\n )}\r\n />\r\n );\r\n };\r\n };\r\n\r\n const getToUrl = (button, rowInfo) => {\r\n if (isFunction(button.to)) {\r\n return button.to(rowInfo);\r\n } else {\r\n return button.to ? button.to : \"#\";\r\n }\r\n };\r\n\r\n const getCustomButtonOpts = (opts) => {\r\n let obj = {};\r\n opts.forEach((o) => {\r\n obj = {\r\n ...obj,\r\n [o.target]: { ...o },\r\n };\r\n });\r\n return obj;\r\n };\r\n\r\n // Todo: (Rcnet)\r\n // 1. For enhancements, support abstraction of rowInfo\r\n // 2. Create functionality for Disabling support\r\n const getButtonVisibilityRules = (opts, row) => {\r\n const { hideEdit, hideRemove, hideAdd, hideView } = opts;\r\n\r\n // Note: row info should not be mutated by consumer. -rcnet\r\n // Noop or pure func execution\r\n let hideEditNow = (hideEdit || (() => {}))(row);\r\n let hideRemoveNow = (hideRemove || (() => {}))(row);\r\n let hideAddNow = (hideAdd || (() => {}))(row);\r\n let hideViewNow = (hideView || (() => {}))(row);\r\n\r\n return {\r\n hideEditNow,\r\n hideRemoveNow,\r\n hideAddNow,\r\n hideViewNow,\r\n };\r\n };\r\n\r\n // For custom button\r\n const getCustomButtonVisibilityRules = (opts, row) => {\r\n let btn1HideNow,\r\n btn2HideNow,\r\n btn3HideNow,\r\n btn4HideNow,\r\n btn5HideNow,\r\n btn6HideNow;\r\n\r\n opts.forEach((o) => {\r\n let fn = o[\"hideFn\"];\r\n switch (o.target) {\r\n case \"button1\":\r\n btn1HideNow = (fn || (() => {}))(row);\r\n case \"button2\":\r\n btn2HideNow = (fn || (() => {}))(row);\r\n case \"button3\":\r\n btn3HideNow = (fn || (() => {}))(row);\r\n case \"button4\":\r\n btn4HideNow = (fn || (() => {}))(row);\r\n case \"button5\":\r\n btn5HideNow = (fn || (() => {}))(row);\r\n case \"button6\":\r\n btn6HideNow = (fn || (() => {}))(row);\r\n }\r\n });\r\n\r\n return {\r\n btn1HideNow,\r\n btn2HideNow,\r\n btn3HideNow,\r\n btn4HideNow,\r\n btn5HideNow,\r\n btn6HideNow,\r\n };\r\n };\r\n\r\n return {\r\n getPreDefinedActionButtons,\r\n };\r\n};\r\n\r\nexport default ActionButtonsFactory2;\r\n","import React, { Component } from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport isNil from \"lodash/isNil\";\r\nimport \"react-table-v6/react-table.css\";\r\nimport \"./searchable-datatable.css\";\r\nimport SearchBox from \"../solvable-datatable/search-box/search-box\";\r\nimport SearchLogic from \"../solvable-datatable/search-box/search-logic\";\r\nimport ActionButtonsFactory from \"../solvable-datatable/action-button/action-buttons-factory\";\r\nimport FilterPane from \"../solvable-datatable/filter-pane/filter-pane\";\r\nimport ActionButtonsFactory2 from \"./action-button/action-buttons-factory2\";\r\nimport withSizes from \"react-sizes\";\r\nimport ReactTable from \"react-table-v6\";\r\n\r\nclass SolvableDataTable extends Component {\r\n state = {\r\n data: [],\r\n columns: [],\r\n searchText: \"\",\r\n filterFields: []\r\n };\r\n\r\n static propTypes = {\r\n columns: PropTypes.array.isRequired,\r\n data: PropTypes.array.isRequired,\r\n filterOptions: PropTypes.object,\r\n stateSettings: PropTypes.object,\r\n predefinedButtons: PropTypes.object,\r\n defaultPageSize: PropTypes.number,\r\n keepSettings: PropTypes.bool,\r\n onError: PropTypes.func,\r\n onActionButtonClick: PropTypes.func,\r\n onFilterClick: PropTypes.func,\r\n onSettingsChanged: PropTypes.func\r\n };\r\n\r\n static defaultProps = {\r\n data: [],\r\n filterOptions: null,\r\n stateSettings: {},\r\n predefinedButtons: null,\r\n defaultPageSize: 20,\r\n keepSettings: false,\r\n onError: () => {}, // noop\r\n onActionButtonClick: () => {},\r\n onFilterClick: () => {},\r\n onSettingsChanged: () => {}\r\n };\r\n\r\n constructor() {\r\n super();\r\n this.searchLogic = SearchLogic();\r\n this.actionButtonsFactory = ActionButtonsFactory(this.actionButtonHandler);\r\n this.actionButtonsFactory2 = ActionButtonsFactory2(\r\n this.actionButtonHandler\r\n );\r\n }\r\n\r\n componentDidMount() {\r\n this.load();\r\n }\r\n\r\n static getDerivedStateFromProps(props, state) {\r\n return {\r\n data: props.data\r\n };\r\n }\r\n\r\n load() {\r\n const {\r\n columns,\r\n data,\r\n predefinedButtons,\r\n actionButtons,\r\n isMobile\r\n } = this.props;\r\n\r\n let cols = columns.map(item => item);\r\n\r\n // Note: predefinedButtons is deprecated please use ActionButtons instead.\r\n // Setup action buttons if provided\r\n if (actionButtons || predefinedButtons) {\r\n // New version/feature\r\n let definedButtons = actionButtons ? actionButtons : predefinedButtons;\r\n const buttonComponent = this.actionButtonsFactory2.getPreDefinedActionButtons(\r\n definedButtons\r\n );\r\n cols = this.setupActionButtons(\r\n cols,\r\n buttonComponent,\r\n definedButtons.containerWidth\r\n );\r\n }\r\n\r\n this.setState({ columns: cols, data });\r\n }\r\n\r\n setupActionButtons = (cols, component, containerWidth) => {\r\n return cols.concat({\r\n Header: \"Actions\",\r\n accessor: \"actions\",\r\n sortable: false,\r\n Cell: component,\r\n width: containerWidth ? containerWidth : 100\r\n });\r\n };\r\n\r\n actionButtonHandler = evt => {\r\n this.props.onActionButtonClick(evt);\r\n };\r\n\r\n searchInputChange = evt => {\r\n if (this.props.keepSettings) {\r\n const settings = this.getLatestSettings();\r\n this.props.onSettingsChanged({\r\n ...settings,\r\n searchText: evt.target.value\r\n });\r\n } else {\r\n this.setState({ searchText: evt.target.value });\r\n }\r\n };\r\n\r\n filterChangeHandler = eventData => {\r\n // Support immutability here\r\n const filterFlds = [...this.state.filterFields];\r\n const field = filterFlds.find(o => o.id === eventData.data.id);\r\n\r\n if (!field) {\r\n // Insert new if not found\r\n this.setState({ filterFields: filterFlds.concat({ ...eventData.data }) });\r\n } else {\r\n // Update if existing\r\n filterFlds.map((itm, i) => {\r\n if (itm.id !== eventData.data.id) return itm;\r\n\r\n itm.value = eventData.data.value;\r\n });\r\n\r\n this.setState({ filterFields: filterFlds });\r\n }\r\n };\r\n\r\n filterClickHandler = evt => {\r\n this.props.onFilterClick(this.state.filterFields);\r\n };\r\n\r\n pageSizeChange = (pageSize, pageIndex) => {\r\n const settings = this.getLatestSettings();\r\n this.props.onSettingsChanged({\r\n ...settings,\r\n pageSize\r\n });\r\n };\r\n\r\n pageChange = pageIndex => {\r\n const settings = this.getLatestSettings();\r\n this.props.onSettingsChanged({\r\n ...settings,\r\n pageIndex\r\n });\r\n };\r\n\r\n getLatestSettings = () => {\r\n return Object.keys(this.props.stateSettings).length > 0\r\n ? { ...this.props.stateSettings }\r\n : this.getDefaultStateSettings();\r\n };\r\n\r\n getDefaultStateSettings = () => {\r\n return {\r\n searchText: \"\",\r\n pageIndex: 0,\r\n pageSize: \"\"\r\n };\r\n };\r\n\r\n setPageSize = length => {\r\n // Observing the keepSettings feature\r\n let defaultPageSize = this.props.keepSettings\r\n ? this.props.stateSettings.pageSize\r\n ? this.props.stateSettings.pageSize\r\n : this.props.defaultPageSize\r\n : this.props.defaultPageSize;\r\n\r\n // For Mobile Only\r\n // Adjusts Pagesize automatically based on data length\r\n // If data length < 10, pageSize = data length, else, pageSize = this.props.defaultPageSize\r\n let size = this.props.isMobile\r\n ? length >= 10\r\n ? defaultPageSize\r\n : length\r\n : defaultPageSize;\r\n return size;\r\n };\r\n\r\n render() {\r\n let data = [...this.state.data];\r\n let searchText;\r\n let pageIndex;\r\n let pageSize; // required by keepSettings\r\n\r\n if (this.props.keepSettings) {\r\n // Search\r\n if (this.props.stateSettings.searchText) {\r\n data = this.searchLogic.search(\r\n this.props.stateSettings.searchText,\r\n data,\r\n this.state.columns\r\n );\r\n }\r\n\r\n // Load state settings\r\n searchText = !isNil(this.props.stateSettings.searchText)\r\n ? this.props.stateSettings.searchText\r\n : \"\";\r\n } else if (this.state.searchText) {\r\n data = this.searchLogic.search(\r\n this.state.searchText,\r\n data,\r\n this.state.columns\r\n );\r\n searchText = this.state.searchText;\r\n }\r\n\r\n return (\r\n \r\n {this.props.filterOptions && this.props.filterOptions.filters ? (\r\n \r\n ) : null}\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 {this.props.keepSettings ? (\r\n \r\n ) : (\r\n \r\n )}\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst mapSizesToProps = ({ width }) => ({\r\n isMobile: width < 765\r\n});\r\n\r\nexport default withSizes(mapSizesToProps)(SolvableDataTable);\r\n","const columns = [\r\n {\r\n accessor: \"id\",\r\n show: false,\r\n },\r\n {\r\n Header: \"First Name\",\r\n accessor: \"firstName\",\r\n searchable: true,\r\n },\r\n {\r\n Header: \"Last Name\",\r\n accessor: \"lastName\",\r\n searchable: true,\r\n },\r\n {\r\n Header: \"Email\",\r\n accessor: \"email\",\r\n searchable: true,\r\n },\r\n {\r\n Header: \"Mobile\",\r\n accessor: \"mobile\",\r\n searchable: true,\r\n },\r\n {\r\n Header: \"User Type\",\r\n accessor: \"userType\",\r\n searchable: true,\r\n },\r\n {\r\n Header: \"Date Joined\",\r\n accessor: \"registationDate\",\r\n searchable: true,\r\n dateFormat: \"DDMMYYHHmm\",\r\n },\r\n {\r\n Header: \"Active\",\r\n accessor: \"isActive\",\r\n searchable: true,\r\n },\r\n];\r\n\r\nexport default columns;\r\n","import React from \"react\";\r\n\r\nconst CardHeader2 = ({ title, icon, expandItem }) => {\r\n return (\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n {title}\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nconst Header = ({ title, icon, expandItem, onClick }) => {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default Header;\r\n","import React from \"react\";\r\nimport { CardBody } from \"reactstrap\";\r\n\r\nconst Content = ({ component }) => {\r\n return {component};\r\n};\r\n\r\nexport default Content;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { Collapse, Card } from \"reactstrap\";\r\nimport Header from \"./header\";\r\nimport Content from \"./content\";\r\nimport { Section, SectionLink } from \"react-scroll-section\";\r\nimport { PropTypes } from \"prop-types\";\r\n\r\nconst CollapsibleItem = ({\r\n id,\r\n title,\r\n icon,\r\n children,\r\n init,\r\n collapseState,\r\n toggle\r\n}) => {\r\n const [toggleFlag, setToggleFlag] = useState(false);\r\n\r\n useEffect(() => {\r\n init(id);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (Object.keys(collapseState).length === 0) return;\r\n setToggleFlag(collapseState[id]);\r\n }, [collapseState]);\r\n\r\n return (\r\n
\r\n \r\n \r\n {({ onClick }) => (\r\n <>\r\n toggle(id, onClick)}\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\nexport default CollapsibleItem;\r\n\r\nCollapsibleItem.propTypes = {\r\n icon: PropTypes.string\r\n};\r\n\r\nCollapsibleItem.defaultProps = {\r\n icon: \"\"\r\n};\r\n","/**\r\n * Solvable Collapsible Panel\r\n * - extensible and robust collapsible panel :-)\r\n * - functional component and react hooks\r\n * Props:\r\n * - openByDefault = {true/false} = Initial state of the component if collapsible is open or close.\r\n * - sectionOpen = name of section to open by default\r\n *\r\n * API/Helpers\r\n * - handleInit, collapseState, handleToggle, setToggle, setToggleAll, setBatchToggle, setBatchToggleByState\r\n *\r\n * Note: Collapsible panel fire twice below are the following reasons:\r\n * 1. Initial load, registering its collapsible items id to local state\r\n * 2. Applying setCollapse initial settings which updates the local state and triggers render mechanism.\r\n *\r\n * rcnet @solvable 2019\r\n */\r\nimport React, { useState, useEffect } from \"react\";\r\nimport \"./collapsible-panel.scss\";\r\nimport { ScrollingProvider } from \"react-scroll-section\";\r\n\r\nconst CollapsiblePanel = ({ children, openByDefault, sectionOpen }) => {\r\n const [collapseState, setCollapse] = useState({});\r\n const [idsRegistered, setIdsRegistered] = useState([]);\r\n let _ids = [];\r\n\r\n useEffect(() => {\r\n if (idsRegistered.length === 0) return;\r\n let objState = {};\r\n idsRegistered.forEach(o => {\r\n if (o !== sectionOpen) {\r\n objState[o] = openByDefault ? openByDefault : false;\r\n } else {\r\n objState[o] = true;\r\n }\r\n });\r\n setCollapse(objState);\r\n }, [openByDefault, sectionOpen, idsRegistered]);\r\n\r\n const handleInit = id => {\r\n if (collapseState[id] == undefined) {\r\n _ids.push(id);\r\n setIdsRegistered(_ids);\r\n }\r\n };\r\n\r\n const handleToggle = (id, scrollFn) => {\r\n setCollapse({ ...collapseState, [id]: !collapseState[id] });\r\n };\r\n\r\n const setToggle = (id, isOpen) => {\r\n setCollapse({ ...collapseState, [id]: isOpen });\r\n };\r\n\r\n const setBatchToggle = (ids, isOpen) => {\r\n let clonedState = { ...collapseState };\r\n\r\n ids.forEach(id => {\r\n clonedState[id] = isOpen;\r\n });\r\n\r\n setCollapse(clonedState);\r\n };\r\n\r\n const setBatchToggleByState = (idsToOpen, idsToClose) => {\r\n let clonedState = { ...collapseState };\r\n\r\n // Ids to Open\r\n idsToOpen.forEach(id => {\r\n clonedState[id] = true;\r\n });\r\n\r\n idsToClose.forEach(id => {\r\n clonedState[id] = false;\r\n });\r\n\r\n setCollapse(clonedState);\r\n };\r\n\r\n const setToggleAll = isOpen => {\r\n Object.keys(collapseState).forEach(k => {\r\n collapseState[k] = isOpen;\r\n });\r\n setCollapse({ ...collapseState });\r\n };\r\n\r\n return (\r\n \r\n
\r\n {children({\r\n handleInit,\r\n collapseState,\r\n caption: \"ACPAN Collapsible Panel\",\r\n idsRegistered,\r\n handleToggle,\r\n setToggle,\r\n setToggleAll,\r\n setBatchToggle,\r\n setBatchToggleByState\r\n })}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default CollapsiblePanel;\r\n","import React from \"react\";\r\n\r\nconst CustomErrorMessage = ({ touched, error }) => {\r\n return (\r\n
\r\n {touched && error &&
{error}
}\r\n
\r\n );\r\n};\r\n\r\nexport default CustomErrorMessage;\r\n","/**\r\n * react-select + allOption\r\n *\r\n * Gives users of the fine component react-select the ability to select\r\n * all options with a single click.\r\n *\r\n * We're basically wrapping react-select but using a special option,\r\n * the \"allOption\". This option is exclusive of any other option\r\n * and it never hits the user's onChange() handler because it gets\r\n * replaced with the whole options list.\r\n *\r\n * There are many ways to implement this feature, but this one doesn't\r\n * affect the rest of your app, and it doesn't take any UI space.\r\n */\r\nimport React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { default as ReactSelect } from \"react-select\";\r\nimport { FormGroup, Label } from \"reactstrap\";\r\nimport CustomErrorMessage from \"./../error-message\";\r\nimport { Field } from \"formik\";\r\nimport isNil from \"lodash/isNil\";\r\n\r\nconst getSelectComponent = (props, form, field) => {\r\n const customStyles = {\r\n control: (base, state) => ({\r\n ...base,\r\n background: \"#f5f5f7\",\r\n boxShadow: state.isFocused ? null : null,\r\n }),\r\n menu: (base) => ({\r\n ...base,\r\n // override border radius to match the box\r\n borderRadius: 0,\r\n // kill the gap\r\n marginTop: 0,\r\n }),\r\n menuList: (base) => ({\r\n ...base,\r\n // kill the white space on first and last option\r\n padding: 0,\r\n }),\r\n };\r\n\r\n if (props.allowSelectAll) {\r\n if (props.value.length === props.options.length) {\r\n return (\r\n {\r\n if (isNil(selected)) {\r\n form.setFieldValue(props.accessor, []);\r\n } else {\r\n form.setFieldValue(props.accessor, selected.slice(1));\r\n }\r\n }}\r\n onBlur={() => form.setFieldTouched(props.accessor, true)}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n {\r\n if (isNil(selected)) {\r\n form.setFieldValue(props.accessor, []);\r\n } else {\r\n if (selected.find((s) => s.value === \"*\")) {\r\n form.setFieldValue(props.accessor, props.options);\r\n } else {\r\n if (\r\n selected.length > 0 &&\r\n selected[selected.length - 1].value === props.allOption.value\r\n ) {\r\n form.setFieldValue(props.accessor, props.options);\r\n }\r\n form.setFieldValue(props.accessor, selected);\r\n }\r\n }\r\n }}\r\n styles={customStyles}\r\n onBlur={() => form.setFieldTouched(props.accessor, true)}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n {\r\n form.setFieldValue(props.accessor, isNil(selected) ? [] : selected);\r\n }}\r\n styles={customStyles}\r\n onBlur={() => form.setFieldTouched(props.accessor, true)}\r\n />\r\n );\r\n};\r\n\r\n// specify props.allowSelectAll = true to enable!\r\nconst Select = (props) => {\r\n return (\r\n \r\n {props.showLabel && (\r\n \r\n )}\r\n \r\n {({ meta, form, field }) => {\r\n return (\r\n <>\r\n {getSelectComponent(props, form, field)}\r\n \r\n \r\n );\r\n }}\r\n \r\n \r\n );\r\n};\r\n\r\nSelect.propTypes = {\r\n options: PropTypes.array,\r\n value: PropTypes.any,\r\n onChange: PropTypes.func,\r\n allowSelectAll: PropTypes.bool,\r\n allOption: PropTypes.shape({\r\n label: PropTypes.string,\r\n value: PropTypes.string,\r\n }),\r\n label: PropTypes.string,\r\n showLabel: PropTypes.bool,\r\n};\r\n\r\nSelect.defaultProps = {\r\n allOption: {\r\n label: \"Select all\",\r\n value: \"*\",\r\n },\r\n};\r\n\r\nexport default Select;\r\n","import React from \"react\";\r\nimport { useField, useFormikContext } from \"formik\";\r\nimport DatePicker from \"react-datetime\";\r\nimport \"./date-picker-field.scss\";\r\nimport { Label } from \"reactstrap\";\r\nimport moment from \"moment\";\r\nimport CustomErrorMessage from \"./../error-message\";\r\n\r\nconst DatePickerField = ({ ...props }) => {\r\n const { setFieldValue, setFieldTouched } = useFormikContext();\r\n const [field, meta] = useField({ ...props, name: props.accessor });\r\n const dateFormat = \"DD/MM/YYYY\";\r\n return (\r\n
\r\n {props.showLabel && (\r\n \r\n )}\r\n\r\n
\r\n {\r\n let dateValue = value;\r\n if (value instanceof moment) {\r\n dateValue = moment(value);\r\n }\r\n setFieldValue(props.accessor, dateValue);\r\n }}\r\n onBlur={() => setFieldTouched(props.accessor, true)}\r\n />\r\n\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default DatePickerField;\r\n","const userTypes = [\r\n {\r\n value: 1,\r\n label: \"Regular\",\r\n },\r\n {\r\n value: 3,\r\n label: \"Admin\",\r\n },\r\n];\r\n\r\nexport default userTypes;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Field } from \"formik\";\r\nimport { addNotification } from \"./../../../redux/system/system-action-creators\";\r\nimport ButtonFx from \"./../button-fx\";\r\n\r\nconst SubmitButton = ({\r\n label,\r\n isLoading,\r\n className,\r\n addNotification,\r\n scrollToFirstError,\r\n isCollapsibleForm,\r\n}) => {\r\n return (\r\n \r\n {({ form }) => (\r\n {\r\n event.preventDefault();\r\n form.validateForm().then((errors) => {\r\n let errorKeys = Object.keys(errors);\r\n\r\n if (errorKeys.length > 0) {\r\n addNotification(\r\n \"You have one or more fields missing, please correct these and submit again.\",\r\n \"error\"\r\n );\r\n\r\n if (scrollToFirstError) {\r\n if (isCollapsibleForm) {\r\n //Collapsible Form Handler\r\n var firstErrorSection = document.getElementById(\r\n errorKeys[0]\r\n );\r\n firstErrorSection.scrollIntoView();\r\n } else {\r\n //Normal Form Handler\r\n let form = document.forms[document.forms.length - 1];\r\n let marked = false;\r\n\r\n Object.entries(form).forEach((x, i) => {\r\n let existsInErrorList = errorKeys.includes(x[1].name);\r\n if (existsInErrorList && !marked) {\r\n document.forms[document.forms.length - 1][i].focus();\r\n marked = true;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n form.handleSubmit();\r\n });\r\n }}\r\n >\r\n {label}\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nconst FormikSubmitButton = connect(null, { addNotification })(SubmitButton);\r\n\r\nexport default FormikSubmitButton;\r\n","import React from \"react\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport { Form } from \"formik\";\r\nimport CollapsibleItem from \"./../../../../components/common/collapsible-panel/collapsible-item\";\r\nimport CollapsiblePanel from \"./../../../../components/common/collapsible-panel/collapsible-panel\";\r\nimport Select from \"./../../../../components/common/select\";\r\nimport DatePickerField from \"./../../../../components/common/date-picker-field\";\r\nimport userTypes from \"./../../../../constants/user-types\";\r\nimport FormikSubmitButton from \"./../../../../components/common/formik-submit-button\";\r\n\r\nconst ViewUsersFilterSection = ({ handleSubmit, values }) => {\r\n return (\r\n <>\r\n \r\n {({ handleInit, collapseState, handleToggle }) => (\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\n \r\n \r\n
\r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default ViewUsersFilterSection;\r\n","import moment from \"moment\";\r\nimport userTypes from \"./../../../../../constants/user-types\";\r\n\r\nconst initialValues = {\r\n startDate: moment().add(\"years\", -1),\r\n endDate: moment(),\r\n userTypes: userTypes,\r\n};\r\n\r\nexport default initialValues;\r\n","import * as Yup from \"yup\";\r\n\r\nconst validationSchema = Yup.object().shape({\r\n userTypes: Yup.array()\r\n .of(\r\n Yup.object().shape({\r\n value: Yup.string().strict().required(),\r\n label: Yup.string().strict().required(),\r\n })\r\n )\r\n .required(\"At least 1 user type is required.\"),\r\n startDate: Yup.date()\r\n .typeError(\"Must be a date.\")\r\n .required(\"Start date is required.\"),\r\n endDate: Yup.date()\r\n .typeError(\"Must be a date.\")\r\n .required(\"End date is required.\"),\r\n});\r\n\r\nexport default validationSchema;\r\n","import moment from \"moment\";\r\nimport isNil from \"lodash/isNil\";\r\n\r\nexport const toIsoDate = (date) => {\r\n let dt = moment.isMoment(date) ? date.toDate() : date;\r\n\r\n return isNil(dt) ||\r\n moment(dt).format(\"DD/MM/YYYY\").toUpperCase() === \"01 JAN 1900\"\r\n ? \"\"\r\n : moment(dt).format(\"YYYY-MM-DD HH:mm:ss\").toUpperCase();\r\n};\r\n","import Main from \"./main\";\r\nimport { withFormik } from \"formik\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport { toIsoDate } from \"./../../../../core/utilities/date-service\";\r\n\r\nconst EnhancedForm = withFormik({\r\n mapPropsToValues: () => initialValues,\r\n validationSchema,\r\n handleSubmit: (values, { props }) => {\r\n let { filterUsers } = props;\r\n\r\n let payload = {\r\n startDate: toIsoDate(values.startDate),\r\n endDate: toIsoDate(values.endDate),\r\n userTypes: values.userTypes.map((m) => m.value),\r\n };\r\n\r\n filterUsers(payload);\r\n },\r\n displayName: \"usersViewFilterForm\",\r\n})(Main);\r\n\r\nexport default EnhancedForm;\r\n","import React from \"react\";\r\nimport \"./section.scss\";\r\n\r\nconst ContentSection = ({\r\n bgColor,\r\n bgClass,\r\n maxWidth,\r\n padding,\r\n specificClass,\r\n children,\r\n}) => {\r\n let defaultPadding = 4;\r\n let defaultColor = \"\";\r\n let defaultMaxWidth = 1140;\r\n\r\n const getContainerClass = () => {\r\n if (bgColor) return `container-bg-${bgColor}`;\r\n\r\n if (bgClass) return bgClass;\r\n\r\n if (defaultColor) return `container-bg-${defaultColor}`;\r\n\r\n return \"\";\r\n };\r\n\r\n const getContainerMaxWidth = () => {\r\n return `${maxWidth ? maxWidth : defaultMaxWidth}px`;\r\n };\r\n\r\n const definedPadding = padding ? padding : defaultPadding;\r\n const definedSpecificClass = specificClass ? ` ${specificClass}` : \"\";\r\n\r\n return (\r\n
\r\n \r\n
\r\n
{children}
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default ContentSection;\r\n","/**\r\n * Solvable default setup for block-ui component\r\n * Props\r\n * - blocking = true or false (show/hide)\r\n * - lowerZIndex = true or false (set to true if you want block ui to respect fixed fix headers/navbars)\r\n * - color = set color\r\n * rcnet @solvable 2019\r\n */\r\nimport React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport BlockUi from \"react-block-ui\";\r\nimport { Loader } from \"react-loaders\";\r\nimport \"react-block-ui/style.css\";\r\nimport \"loaders.css/loaders.min.css\";\r\n\r\nconst BlockUiFx = ({ blocking, lowerZIndex, children, color, ...rest }) => (\r\n }\r\n >\r\n {children}\r\n \r\n);\r\n\r\nBlockUiFx.propTypes = {\r\n color: PropTypes.string,\r\n};\r\n\r\nBlockUiFx.defaultProps = {\r\n color: \"#189ad3\", // #02a17c\r\n};\r\n\r\nexport default BlockUiFx;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { Helmet } from \"react-helmet\";\r\n\r\nconst PageTagging = ({ title, description }) => {\r\n return (\r\n \r\n {title && {title}}\r\n {description && }\r\n \r\n );\r\n};\r\n\r\nPageTagging.propTypes = {\r\n title: PropTypes.string.isRequired,\r\n description: PropTypes.string,\r\n};\r\n\r\nexport default PageTagging;\r\n","import React from \"react\";\r\nimport ContentSection from \"./../content-section\";\r\nimport BlockUiFx from \"./../block-ui-fx\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst EnhancedContentSection = ({\r\n pageTitle,\r\n isBlocking,\r\n bgColor,\r\n bgClass,\r\n maxWidth,\r\n padding,\r\n specificClass,\r\n children,\r\n showPageTitle,\r\n}) => {\r\n return (\r\n <>\r\n \r\n \r\n\r\n \r\n {showPageTitle && pageTitle &&

{pageTitle}

}\r\n\r\n {children}\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nexport default EnhancedContentSection;\r\n\r\n// import React from \"react\";\r\n// import ContentSection from \"./../content-section\";\r\n// import PageTitle from \"./../page-title\";\r\n// import BlockUiFx from \"./../block-ui-fx\";\r\n// import { useMediaQuery } from \"react-responsive\";\r\n\r\n// const EnhancedContentSection = ({\r\n// pageTitle,\r\n// isBlocking,\r\n// showBackground,\r\n// backgroundClass,\r\n// isFullWidth,\r\n// mainContentClass,\r\n// children,\r\n// }) => {\r\n// const isSmallDevice = useMediaQuery({\r\n// query: \"(max-width: 750px)\",\r\n// });\r\n\r\n// return (\r\n// <>\r\n// {pageTitle && }\r\n\r\n// {showBackground && (\r\n// \r\n// )}\r\n\r\n// <>\r\n// \r\n// {isSmallDevice ? (\r\n// \r\n// ) : (\r\n// \r\n// )}\r\n// \r\n// \r\n// \r\n// );\r\n// };\r\n\r\n// const BigScreenContent = ({\r\n// pageTitle,\r\n// children,\r\n// isFullWidth,\r\n// mainContentClass,\r\n// }) => {\r\n// return (\r\n// \r\n//
\r\n//
\r\n// {pageTitle &&

{pageTitle}

}\r\n//
{children}
\r\n//
\r\n//
\r\n//
\r\n// );\r\n// };\r\n\r\n// const SmallScreenContent = ({\r\n// pageTitle,\r\n// children,\r\n// isFullWidth,\r\n// mainContentClass,\r\n// }) => {\r\n// return (\r\n// \r\n//
\r\n// {pageTitle &&

{pageTitle}

}\r\n//
{children}
\r\n//
\r\n// \r\n// );\r\n// };\r\n\r\n// export default EnhancedContentSection;\r\n","import React from \"react\";\r\nimport { Card, Col, Row } from \"reactstrap\";\r\nimport { Link } from \"react-router-dom\";\r\nimport \"./link-card.scss\";\r\n\r\nconst LinksCard = ({ styleName, linksArray }) => {\r\n return (\r\n
\r\n \r\n {linksArray.map(({ href, title, icon, key, isFunc, clickFunc }) => {\r\n return (\r\n \r\n {isFunc ? (\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 LinkItem = ({ href, title, icon }) => {\r\n return (\r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n \r\n {title}\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nconst ButtonItem = ({ clickFunc, title, icon }) => {\r\n return (\r\n clickFunc()} className=\"shadow container\" body>\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n \r\n {title}\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default LinksCard;\r\n","const adminLinks = [\r\n {\r\n key: 0,\r\n title: \"Manage Users\",\r\n icon: \"fal fa-user-alt\",\r\n isFunc: false,\r\n href: \"/admin/manage-users/\",\r\n clickFunc: null,\r\n },\r\n];\r\n\r\nconst getAdminLinks = () => {\r\n return adminLinks;\r\n};\r\n\r\nexport default getAdminLinks;\r\n","import React from \"react\";\r\nimport LinksCard from \"./../components/link-card\";\r\nimport getAdminLinks from \"./../links/admin-links\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst LinksComponent = ({ pageTitle, hideHeading }) => {\r\n return (\r\n <>\r\n \r\n \r\n\r\n {!hideHeading && (\r\n
\r\n {pageTitle && (\r\n <>\r\n

{pageTitle}

\r\n \r\n )}\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default LinksComponent;\r\n","import React from \"react\";\r\nimport { Redirect } from \"react-router-dom\";\r\n\r\nconst withAdminHoc = (wrappedComponent, memberType) => {\r\n if (memberType && memberType !== 3) return ;\r\n\r\n return wrappedComponent;\r\n};\r\n\r\nexport default withAdminHoc;\r\n","import React from \"react\";\r\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from \"reactstrap\";\r\n\r\nconst ConfirmationDialog = ({\r\n isOpen,\r\n closeFunc,\r\n confirmFunc,\r\n modalTitle,\r\n modalMessage,\r\n btnConfirmText,\r\n btnCancelText,\r\n}) => {\r\n return (\r\n
\r\n \r\n {modalTitle}\r\n {modalMessage}\r\n \r\n \r\n\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default ConfirmationDialog;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { Card, Row, Col } from \"reactstrap\";\r\nimport SolvableDataTable from \"./../../../components/common/solvable-datatable/solvable-datatable\";\r\nimport columns from \"./columns\";\r\nimport ViewUsersFilterSection from \"./filter-section\";\r\nimport { Link } from \"react-router-dom\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport LinksComponent from \"./../admin-view/links-component\";\r\nimport ButtonFx from \"./../../../components/common/button-fx\";\r\nimport withAdminHoc from \"./../with-admin-hoc/with-admin-hoc\";\r\nimport ConfirmationDialog from \"./../../../components/common/confirmation-dialog\";\r\n\r\nconst ManageUsers = ({\r\n isLoading,\r\n data,\r\n settings,\r\n loadUsers,\r\n filterUsers,\r\n usersCleanUp,\r\n keepDataTableSettings,\r\n deleteUser,\r\n isDeleting,\r\n history,\r\n memberType,\r\n isFetching,\r\n}) => {\r\n const pageTitle = \"Manage Users\";\r\n const [isDeleteDialogOpen, toggleDeleteDialog] = useState(false);\r\n const [userToDelete, setUserToDelete] = useState(null);\r\n\r\n const closeDeleteDialog = () => {\r\n toggleDeleteDialog(false);\r\n setUserToDelete(null);\r\n };\r\n\r\n useEffect(() => {\r\n if (!isFetching && memberType === 3) {\r\n loadUsers();\r\n }\r\n return () => usersCleanUp();\r\n }, [memberType]);\r\n\r\n const onSettingsChanged = (settings) => {\r\n keepDataTableSettings(settings);\r\n };\r\n\r\n const actionButtonHandler = ({ data, type }) => {\r\n switch (type) {\r\n case \"button1\":\r\n history.push(`/admin/update-user/${data.id}`);\r\n break;\r\n case \"button2\":\r\n setUserToDelete({\r\n id: data.id,\r\n name: `${data.firstName} ${data.lastName}`,\r\n });\r\n toggleDeleteDialog(true);\r\n break;\r\n }\r\n };\r\n\r\n let component = (\r\n
\r\n {!isFetching && (\r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n Create a User\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n {data.length > 0 && (\r\n
\r\n \r\n \r\n \r\n
\r\n )}\r\n\r\n {data.length === 0 && (\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 No users.\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 {/* Delete User Confirmation Dialog */}\r\n {\r\n deleteUser(userToDelete.id);\r\n closeDeleteDialog();\r\n }}\r\n modalTitle=\"Delete User\"\r\n modalMessage={`Are you sure you want to delete ${\r\n userToDelete && userToDelete.name\r\n }? This cannot be undone.`}\r\n btnConfirmText=\"Yes\"\r\n btnCancelText=\"Cancel\"\r\n />\r\n {/* Delete User Confirmation Dialog */}\r\n
\r\n );\r\n\r\n return withAdminHoc(component, memberType);\r\n};\r\n\r\nexport default ManageUsers;\r\n","const ActionTypes = {\r\n MANAGE_USERS_REQUEST: \"MANAGE_USERS_REQUEST\",\r\n MANAGE_USERS_SUCCESS: \"MANAGE_USERS_SUCCESS\",\r\n MANAGE_USERS_FAILURE: \"MANAGE_USERS_FAILURE\",\r\n\r\n MANAGE_USERS_DELETE_REQUEST: \"MANAGE_USERS_DELETE_REQUEST\",\r\n MANAGE_USERS_DELETE_SUCCESS: \"MANAGE_USERS_DELETE_SUCCESS\",\r\n MANAGE_USERS_DELETE_FAILURE: \"MANAGE_USERS_DELETE_FAILURE\",\r\n\r\n MANAGE_USERS_CLEAN_UP: \"MANAGE_USERS_CLEAN_UP\",\r\n MANAGE_USERS_DATATABLE_KEEP_SETTINGS: \"MANAGE_USERS_DATATABLE_KEEP_SETTINGS\",\r\n};\r\n\r\nexport default ActionTypes;\r\n","import ActionTypes from \"./action-types\";\r\nimport Service from \"./../services/service\";\r\nimport { addNotification } from \"./../../../../redux/system/system-action-creators\";\r\n\r\nconst service = Service();\r\n\r\nexport const loadUsers = () => {\r\n return (dispatch) => {\r\n dispatch(loadUsersRequest());\r\n service\r\n .loadDefaultUsers()\r\n .then((resp) => dispatch(loadUsersSuccess(resp.data)))\r\n .catch((error) => {\r\n dispatch(\r\n addNotification(\r\n error && error.response && error.response.status === 500\r\n ? error.response.data.Message\r\n : \"Unable to load the users.\",\r\n \"error\"\r\n )\r\n );\r\n dispatch(loadUsersFailure());\r\n });\r\n };\r\n};\r\n\r\nexport const filterUsers = (payload) => {\r\n return (dispatch) => {\r\n dispatch(loadUsersRequest());\r\n service\r\n .filterUsers(payload)\r\n .then((resp) => {\r\n dispatch(loadUsersSuccess(resp.data));\r\n })\r\n .catch((error) => {\r\n dispatch(\r\n addNotification(\r\n error && error.response && error.response.status === 500\r\n ? error.response.data.Message\r\n : \"Unable to load the users.\",\r\n \"error\"\r\n )\r\n );\r\n dispatch(loadUsersFailure());\r\n });\r\n };\r\n};\r\n\r\nexport const deleteUser = (id) => {\r\n return (dispatch) => {\r\n dispatch(deleteUserRequest());\r\n service\r\n .deleteUser(id)\r\n .then(() => {\r\n dispatch(deleteUserSuccess(id));\r\n dispatch(addNotification(\"The user has been successfully deleted.\"));\r\n })\r\n .catch((error) => {\r\n dispatch(\r\n addNotification(\r\n error && error.response && error.response.status === 500\r\n ? error.response.data.Message\r\n : \"Unable to delete the user.\",\r\n \"error\"\r\n )\r\n );\r\n dispatch(deleteUserFailure());\r\n });\r\n };\r\n};\r\n\r\nconst loadUsersRequest = () => ({\r\n type: ActionTypes.MANAGE_USERS_REQUEST,\r\n});\r\n\r\nconst loadUsersSuccess = (payload) => ({\r\n type: ActionTypes.MANAGE_USERS_SUCCESS,\r\n payload,\r\n});\r\n\r\nconst loadUsersFailure = () => ({\r\n type: ActionTypes.MANAGE_USERS_FAILURE,\r\n});\r\n\r\nconst deleteUserRequest = () => ({\r\n type: ActionTypes.MANAGE_USERS_DELETE_REQUEST,\r\n});\r\n\r\nconst deleteUserSuccess = (payload) => ({\r\n type: ActionTypes.MANAGE_USERS_DELETE_SUCCESS,\r\n payload,\r\n});\r\n\r\nconst deleteUserFailure = () => ({\r\n type: ActionTypes.MANAGE_USERS_DELETE_FAILURE,\r\n});\r\n\r\nexport const usersCleanUp = () => ({\r\n type: ActionTypes.MANAGE_USERS_CLEAN_UP,\r\n});\r\n\r\nexport const keepDataTableSettings = (settings) => ({\r\n type: ActionTypes.MANAGE_USERS_DATATABLE_KEEP_SETTINGS,\r\n payload: {\r\n settings,\r\n },\r\n});\r\n","import HttpClient from \"./../../../../core/http/httpClient\";\r\nimport moment from \"moment\";\r\nimport { toIsoDate } from \"./../../../../core/utilities/date-service\";\r\n\r\nconst Service = () => {\r\n let httpClient = HttpClient();\r\n let uri = \"/v1/users\";\r\n\r\n const loadDefaultUsers = () =>\r\n httpClient.post(`${uri}/filter`, {\r\n userTypes: [1, 2, 3],\r\n startDate: toIsoDate(moment().add(\"years\", -1)),\r\n endDate: toIsoDate(moment()),\r\n });\r\n\r\n const filterUsers = (payload) => httpClient.post(`${uri}/filter`, payload);\r\n\r\n const deleteUser = (id) => httpClient.patch(`${uri}/${id}/archive`);\r\n\r\n return {\r\n loadDefaultUsers,\r\n filterUsers,\r\n deleteUser,\r\n };\r\n};\r\n\r\nexport default Service;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n memberType: state.system.userProfile.memberType,\r\n isFetching: state.system.userProfile.isFetching,\r\n ...state.manageUsers,\r\n };\r\n};\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(Main)\r\n);\r\n","import React from \"react\";\r\nimport LinksComponent from \"./links-component\";\r\nimport withAdminHoc from \"./../with-admin-hoc/with-admin-hoc\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst AdminView = ({ memberType, isFetching }) => {\r\n let component = (\r\n
\r\n {!isFetching && (\r\n <>\r\n
\r\n \r\n
\r\n \r\n \r\n )}\r\n
\r\n );\r\n\r\n return withAdminHoc(component, memberType);\r\n};\r\n\r\nexport default AdminView;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n memberType: state.system.userProfile.memberType,\r\n isFetching: state.system.userProfile.isFetching,\r\n };\r\n};\r\n\r\nexport default withRouter(connect(mapStateToProps)(Main));\r\n","import { useEffect } from \"react\";\r\nimport { isNil } from \"lodash\";\r\n\r\nconst useInitialiseForm = (\r\n userId,\r\n isEdit,\r\n getUserDetails,\r\n cleanUp,\r\n setIsEdit,\r\n user,\r\n setValues,\r\n isFetching\r\n) => {\r\n //Will decide whether a page is a create or update page\r\n //If update page, will call the getUserDetails()\r\n useEffect(() => {\r\n setIsEdit(isNil(userId) ? false : true);\r\n if (isEdit && !isFetching) {\r\n getUserDetails(userId);\r\n }\r\n }, [userId, isEdit]);\r\n\r\n //Resets the redux onPageLeave\r\n useEffect(() => {\r\n return () => cleanUp();\r\n }, []);\r\n\r\n //Will bind all user values\r\n useEffect(() => {\r\n if (!isNil(user)) {\r\n setValues({\r\n id: user.id,\r\n isEdit: true,\r\n firstName: user.firstName,\r\n lastName: user.lastName,\r\n memberType: user.memberType,\r\n email: user.email,\r\n mobile: user.mobile,\r\n });\r\n }\r\n }, [user]);\r\n};\r\n\r\nexport default useInitialiseForm;\r\n","import React from \"react\";\r\nimport { FormGroup, Input, Label } from \"reactstrap\";\r\nimport CustomErrorMessage from \"./../error-message\";\r\nimport { Field } from \"formik\";\r\nimport \"./common-field.scss\";\r\n\r\nconst CommonField = (props) => {\r\n const {\r\n label,\r\n accessor,\r\n type,\r\n showLabel,\r\n rawField,\r\n instructionLabel,\r\n overridePlaceholder,\r\n children,\r\n } = props;\r\n return type === \"checkbox\" ? (\r\n \r\n \r\n {({ field, meta, form }) => (\r\n
\r\n
\r\n \r\n \r\n {showLabel && (\r\n \r\n {children}\r\n \r\n )}\r\n \r\n {!rawField && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n ) : (\r\n
\r\n {showLabel && }\r\n\r\n {instructionLabel &&

{instructionLabel}

}\r\n\r\n \r\n {({ field, meta }) => (\r\n
\r\n {type === \"textarea\" ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {!rawField && (\r\n \r\n )}\r\n
\r\n )}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default CommonField;\r\n","const validatePassword = value => {\r\n let errors = [],\r\n noErrors;\r\n if (value === \"\") {\r\n errors.push(\"Password is required.\");\r\n }\r\n\r\n if (value.length < 8) {\r\n errors.push(\"Password must have at least 8 characters.\");\r\n }\r\n\r\n if (!new RegExp(/([0-9])/g).test(value)) {\r\n errors.push(\"Must have a number.\");\r\n }\r\n\r\n return errors.length > 0 ? errors : noErrors;\r\n};\r\n\r\nexport default validatePassword;\r\n","const passwordErrorsList = [\r\n \"Password is required.\",\r\n \"Password must have at least 8 characters.\",\r\n \"Must have a number.\"\r\n];\r\n\r\nexport default passwordErrorsList;\r\n","import React from \"react\";\r\nimport {\r\n getErrorClasses,\r\n getPasswordAndConfirmPasswordErrorClasses,\r\n} from \"./error-checker\";\r\nimport passwordErrorsList from \"./password-errors-list\";\r\nimport { Field } from \"formik\";\r\nimport \"./password-errors-list-style.scss\";\r\n\r\nconst PasswordErrorsComponent = () => {\r\n return (\r\n \r\n {({ form }) => (\r\n
\r\n
    \r\n {passwordErrorsList\r\n .filter((err) => err !== \"Passwords must match.\")\r\n .map((error) => {\r\n let errorClasses = getErrorClasses(\r\n form.errors.password,\r\n error,\r\n form.values.password.length\r\n );\r\n\r\n let { itemClass, iconClass } = errorClasses;\r\n\r\n return (\r\n
  • \r\n \r\n {error}\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 PasswordMustMatchError = ({ form }) => {\r\n let errorClasses = getPasswordAndConfirmPasswordErrorClasses(\r\n form.errors.confirmPassword,\r\n form.values.confirmPassword.length\r\n );\r\n let { itemClass, iconClass } = errorClasses;\r\n return (\r\n
  • \r\n \r\n Passwords must match.\r\n
  • \r\n );\r\n};\r\n\r\nexport default PasswordErrorsComponent;\r\n","const checkError = (error, message, length) =>\r\n (error && error.find(pw => pw === message)) || (!error && length === 0);\r\n\r\nexport const getErrorClasses = (error, message, length) => {\r\n let isValid = !checkError(error, message, length);\r\n\r\n return {\r\n itemClass: isValid ? \"success\" : \"error\",\r\n iconClass: isValid ? \"fas fa-check\" : \"fas fa-times\"\r\n };\r\n};\r\n\r\nexport const getPasswordAndConfirmPasswordErrorClasses = (\r\n confirmPasswordError,\r\n cofirmPasswordLength\r\n) => {\r\n let isValid = confirmPasswordError === undefined && cofirmPasswordLength > 0;\r\n return {\r\n itemClass: isValid ? \"success\" : \"error\",\r\n iconClass: isValid ? \"fas fa-check\" : \"fas fa-times\"\r\n };\r\n};\r\n","// Required fields to be defined at the parent formik container\r\n// - password\r\n// - confirmPassword\r\n\r\nimport React from \"react\";\r\nimport { FormGroup, Input, Label } from \"reactstrap\";\r\nimport { Field } from \"formik\";\r\nimport validatePassword from \"./components/password-validation\";\r\nimport PasswordErrorsComponent from \"./components/password-errors-component\";\r\n\r\nconst Password = () => {\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n {({ form }) => (\r\n \r\n validatePassword(val, form.values.confirmPassword)\r\n }\r\n >\r\n {({ field }) => (\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 {({ field }) => (\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 Password;\r\n","// Reqired props :\r\n// - label - Label\r\n// - accessor - Formik field accessor\r\n// - showLabel - Option to show field label\r\n// - mask - Mask\r\n\r\nimport React from \"react\";\r\nimport { FormGroup, Label } from \"reactstrap\";\r\nimport CustomErrorMessage from \"./../error-message\";\r\nimport { Field } from \"formik\";\r\nimport InputMask from \"react-input-mask\";\r\n\r\nconst setValue = (accessor, value, setValueFunc) =>\r\n setValueFunc(accessor, value.replace(/\\s/g, \"\"));\r\n\r\nconst MaskedInput = (props) => {\r\n const { label, accessor, showLabel, mask, overridePlaceholder } = props;\r\n return (\r\n \r\n {showLabel && }\r\n\r\n \r\n {({ field, meta, form }) => (\r\n
    \r\n \r\n \r\n setValue(accessor, event.target.value, form.setFieldValue)\r\n }\r\n onFocus={() => form.setFieldTouched(accessor, true)}\r\n onBlur={(event) =>\r\n setValue(accessor, event.target.value, form.setFieldValue)\r\n }\r\n {...field}\r\n maskChar={null}\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\nexport default MaskedInput;\r\n","import React, { useState } from \"react\";\r\nimport useInitialiseForm from \"./hooks/initialise-form\";\r\nimport EnhancedContentSection from \"./../../../../../components/common/enhanced-content-section\";\r\nimport { Form } from \"formik\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport CommonField from \"./../../../../../components/common/common-field\";\r\nimport Password from \"./../../../../../components/common/password-component\";\r\nimport FormikSubmitButton from \"./../../../../../components/common/formik-submit-button\";\r\nimport Select from \"./../../../../../components/common/select\";\r\nimport MaskedInput from \"./../../../../../components/common/masked-input\";\r\nimport userTypes from \"./../../../../../constants/user-types\";\r\nimport LinksComponent from \"./../../../admin-view/links-component\";\r\nimport withAdminHoc from \"./../../../with-admin-hoc/with-admin-hoc\";\r\n\r\nconst CreateUpdateUserPage = ({\r\n isLoading,\r\n memberType,\r\n match,\r\n cleanUp,\r\n getUserDetails,\r\n user,\r\n setValues,\r\n values,\r\n isFetching,\r\n}) => {\r\n let [isEdit, setIsEdit] = useState(false);\r\n\r\n useInitialiseForm(\r\n match.params.id,\r\n isEdit,\r\n getUserDetails,\r\n cleanUp,\r\n setIsEdit,\r\n user,\r\n setValues,\r\n isFetching\r\n );\r\n\r\n let component = (\r\n
    \r\n {!isFetching && (\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 {!isEdit && }\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 return withAdminHoc(component, memberType);\r\n};\r\n\r\nexport default CreateUpdateUserPage;\r\n","import * as Yup from \"yup\";\r\n\r\nconst registrationValidationSchema = Yup.object().shape({\r\n firstName: Yup.string()\r\n .min(2, \"First name must have at least 2 characters.\")\r\n .max(30, \"First name is too long.\")\r\n .required(\"First name is required.\"),\r\n lastName: Yup.string()\r\n .min(2, \"First name must have at least 2 characters.\")\r\n .max(30, \"First name is too long.\")\r\n .required(\"Last name is required.\"),\r\n memberType: Yup.string().required(\"Member type is required.\"),\r\n email: Yup.string()\r\n .required(\"Email is required.\")\r\n .email(\"Invalid email address\"),\r\n mobile: Yup.string().required(\"Mobile is required.\"),\r\n //Password fields validations\r\n password: Yup.string(),\r\n confirmPassword: Yup.string().when(\"isEdit\", {\r\n is: (val) => {\r\n return val;\r\n },\r\n then: Yup.string()\r\n .min(1)\r\n .oneOf([Yup.ref(\"password\"), null], \"Passwords must match\"),\r\n otherwise: Yup.string().nullable(),\r\n }),\r\n});\r\n\r\nexport default registrationValidationSchema;\r\n","const initialValues = {\r\n id: \"\",\r\n isEdit: false,\r\n firstName: \"\",\r\n lastName: \"\",\r\n memberType: \"\",\r\n email: \"\",\r\n mobile: \"\",\r\n password: \"\",\r\n confirmPassword: \"\",\r\n};\r\n\r\nexport default initialValues;\r\n","const ActionTypes = {\r\n CREATE_UPDATE_USER_REQUEST: \"CREATE_UPDATE_USER_REQUEST\",\r\n CREATE_UPDATE_USER_SUCCESS: \"CREATE_UPDATE_USER_SUCCESS\",\r\n CREATE_UPDATE_USER_FAILURE: \"CREATE_UPDATE_USER_FAILURE\",\r\n CREATE_UPDATE_USER_CLEAN_UP: \"CREATE_UPDATE_USER_CLEAN_UP\",\r\n\r\n CREATE_UPDATE_USER_GET_DETAILS_REQUEST:\r\n \"CREATE_UPDATE_USER_GET_DETAILS_REQUEST\",\r\n CREATE_UPDATE_USER_GET_DETAILS_SUCCESS:\r\n \"CREATE_UPDATE_USER_GET_DETAILS_SUCCESS\",\r\n CREATE_UPDATE_USER_GET_DETAILS_FAILURE:\r\n \"CREATE_UPDATE_USER_GET_DETAILS_FAILURE\",\r\n\r\n CREATE_UPDATE_USER_CLEAN_UP: \"CREATE_UPDATE_USER_CLEAN_UP\",\r\n};\r\n\r\nexport default ActionTypes;\r\n","import ActionTypes from \"./action-types\";\r\nimport Service from \"./../services/service\";\r\nimport {\r\n addNotification,\r\n addErrorNotification,\r\n} from \"./../../../../../../redux/system/system-action-creators\";\r\n\r\nlet service = Service();\r\n\r\nexport const createUser = (model, history) => (dispatch) => {\r\n dispatch(createUpdateUserRequest());\r\n service\r\n .createUser(model)\r\n .then(() => {\r\n dispatch(createUpdateUserSuccess());\r\n history.push(`/admin/manage-users/`);\r\n })\r\n .catch((error) => {\r\n dispatch(addErrorNotification(error, \"Unable to register the user.\"));\r\n dispatch(createUpdateUserFailure());\r\n });\r\n};\r\n\r\nexport const updateUser = (model) => (dispatch) => {\r\n dispatch(createUpdateUserRequest());\r\n service\r\n .updateUser(model)\r\n .then(() => {\r\n dispatch(createUpdateUserSuccess());\r\n dispatch(addNotification(\"The user details have been updated.\"));\r\n })\r\n .catch((error) => {\r\n dispatch(\r\n addErrorNotification(error, \"Unable to update the user details.\")\r\n );\r\n dispatch(createUpdateUserFailure());\r\n });\r\n};\r\n\r\nconst createUpdateUserRequest = () => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_REQUEST,\r\n});\r\n\r\nconst createUpdateUserSuccess = () => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_SUCCESS,\r\n});\r\n\r\nconst createUpdateUserFailure = () => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_FAILURE,\r\n});\r\n\r\nexport const getUserDetails = (userId) => (dispatch) => {\r\n dispatch(getUserDetailsRequest());\r\n service\r\n .getUserDetails(userId)\r\n .then((data) => dispatch(getUserDetailsSuccess(data)))\r\n .catch((error) => {\r\n dispatch(addErrorNotification(error, \"Unable to get the user details.\"));\r\n dispatch(getUserDetailsFailure());\r\n });\r\n};\r\n\r\nconst getUserDetailsRequest = () => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_GET_DETAILS_REQUEST,\r\n});\r\n\r\nconst getUserDetailsSuccess = (payload) => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_GET_DETAILS_SUCCESS,\r\n payload,\r\n});\r\n\r\nconst getUserDetailsFailure = () => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_GET_DETAILS_FAILURE,\r\n});\r\n\r\nexport const cleanUp = () => ({\r\n type: ActionTypes.CREATE_UPDATE_USER_CLEAN_UP,\r\n});\r\n","import userTypes from \"./../../../../../../constants/user-types\";\r\nimport HttpClient from \"./../../../../../../core/http/httpClient\";\r\n\r\nconst CreateUpdateUserService = () => {\r\n let httpClient = HttpClient();\r\n let baseAccountUri = \"/v1/core/accounts\";\r\n let baseUseUri = \"/v1/users\";\r\n\r\n const createUser = (model) => {\r\n let uri = `${baseAccountUri}/admin`;\r\n\r\n let payload = {\r\n firstName: model.firstName,\r\n lastName: model.lastName,\r\n email: model.email,\r\n mobile: model.mobile,\r\n password: model.password,\r\n confirmPassword: model.confirmPassword,\r\n memberType: model.memberType.value,\r\n };\r\n return httpClient.post(uri, payload).then(({ data }) => data);\r\n };\r\n\r\n const updateUser = (model) => {\r\n let payload = {\r\n id: model.id,\r\n firstName: model.firstName,\r\n lastName: model.lastName,\r\n email: model.email,\r\n mobile: model.mobile,\r\n memberType: model.memberType.value,\r\n };\r\n return httpClient.put(`${baseUseUri}/admin/update-user`, payload);\r\n };\r\n\r\n const getUserDetails = (id) => {\r\n return httpClient.get(`${baseUseUri}/${id}`).then(({ data }) => {\r\n return {\r\n ...data,\r\n memberType: userTypes.find(\r\n (userType) => userType.value === data.userType\r\n ),\r\n };\r\n });\r\n };\r\n\r\n return {\r\n createUser,\r\n getUserDetails,\r\n updateUser,\r\n };\r\n};\r\n\r\nexport default CreateUpdateUserService;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport { withFormik } from \"formik\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport { addNotification } from \"./../../../../../redux/system/system-action-creators\";\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n ...state.createUpdateUser,\r\n memberTye: state.system.userProfile.memberType,\r\n isFetching: state.system.userProfile.isFetching,\r\n };\r\n};\r\n\r\nconst formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n mapPropsToValues: () => initialValues,\r\n handleSubmit: (values, { props }) => {\r\n const { createUser, updateUser, history } = props;\r\n values.isEdit ? updateUser(values) : createUser(values, history);\r\n },\r\n displayName: \"createUpdateUserForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators, addNotification })(enhancedForm)\r\n);\r\n","import ManageUsers from \"./../views/admin/manage-users\";\r\nimport AdminView from \"./../views/admin/admin-view\";\r\nimport CreateUpdateUserPage from \"./../views/admin/manage-users/components/create-update-user\";\r\n\r\nconst AdminRoutes = [\r\n {\r\n path: \"/admin/\",\r\n name: \"Admin\",\r\n component: AdminView,\r\n privateRoute: true,\r\n },\r\n {\r\n path: \"/admin/manage-users/\",\r\n name: \"Manage Users\",\r\n component: ManageUsers,\r\n privateRoute: true,\r\n },\r\n {\r\n path: \"/admin/create-user/\",\r\n name: \"Create User\",\r\n component: CreateUpdateUserPage,\r\n privateRoute: true,\r\n },\r\n {\r\n path: \"/admin/update-user/:id\",\r\n name: \"Update User\",\r\n component: CreateUpdateUserPage,\r\n privateRoute: true,\r\n },\r\n];\r\n\r\nexport default AdminRoutes;\r\n","import React from \"react\";\r\n\r\nconst Playground = () => {\r\n return

    Hello

    ;\r\n};\r\n\r\nexport default Playground;\r\n","import Main from \"./main\";\r\nimport { withRouter } from \"react-router-dom\";\r\n\r\nexport default withRouter(Main);\r\n","import React from \"react\";\r\nimport \"./image-header.scss\";\r\nimport { PropTypes } from \"prop-types\";\r\n\r\nconst ImageHeader = ({ imgSrc, title }) => {\r\n return (\r\n
    \r\n \r\n\r\n
    \r\n

    {title}

    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nImageHeader.propTypes = {\r\n title: PropTypes.string,\r\n imgSrc: PropTypes.any.isRequired,\r\n};\r\n\r\nexport default ImageHeader;\r\n","import React from \"react\";\r\n\r\nconst View = ({ image }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default View;\r\n","import React, { Component } from \"react\";\r\nimport View from \"./view\";\r\n\r\nexport default class extends Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n","import React from \"react\";\r\nimport OwlCarousel from \"react-owl-carousel\";\r\nimport \"owl.carousel/dist/assets/owl.carousel.css\";\r\nimport \"owl.carousel/dist/assets/owl.theme.default.css\";\r\nimport Partner from \"./partner\";\r\nimport \"./partners.scss\";\r\n\r\nconst View = ({ items }) => {\r\n const owlOptions = {\r\n loop: true,\r\n autoplay: true,\r\n autoplayTimeout: 5000,\r\n autoplayHoverPause: true,\r\n margin: 10,\r\n nav: false,\r\n responsive: {\r\n 0: {\r\n items: 1,\r\n },\r\n 500: {\r\n items: 2,\r\n },\r\n 768: {\r\n items: 3,\r\n },\r\n 1200: {\r\n items: 5,\r\n },\r\n },\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n {items.map((item, i) => (\r\n \r\n ))}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default View;\r\n","export const partners = [\r\n { name: \"kwc.jpg\", url: \"https://kidswithcancer.org.au/\" },\r\n { name: \"solvable.png\", url: \"https://www.solvable.com.au/\" },\r\n { name: \"tmaa.jpg\", url: \"https://tmaa.asn.au/\" },\r\n { name: \"hria.png\", url: \"https://hireandrental.com.au/\" },\r\n {\r\n name: \"rental-journal-podcast.jpg\",\r\n url: \"https://www.therentaljournal.com/\",\r\n },\r\n {\r\n name: \"shots-creative-logo.png\",\r\n url: \"http://instagram.com/shotscreativestudio\",\r\n },\r\n { name: \"creditorwatch.png\", url: \"https://creditorwatch.com.au/\" },\r\n];\r\n","import React, { Component } from \"react\";\r\nimport View from \"./view\";\r\nimport { partners as PartnerItems } from \"constants/partners\";\r\n\r\nclass Partners extends Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default Partners;\r\n","import React from \"react\";\r\nimport ContentSection from \"components/common/content-section\";\r\nimport Partners from \"components/common/partners\";\r\nimport \"./partner.scss\";\r\n\r\nconst Partner = () => {\r\n return (\r\n
    \r\n \r\n
    \r\n

    Partners

    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default Partner;\r\n","import React from \"react\";\r\n\r\nconst View = ({ image }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default View;\r\n","import React, { Component } from \"react\";\r\nimport View from \"./view\";\r\n\r\nexport default class extends Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n","import React from \"react\";\r\nimport OwlCarousel from \"react-owl-carousel\";\r\nimport \"owl.carousel/dist/assets/owl.carousel.css\";\r\nimport \"owl.carousel/dist/assets/owl.theme.default.css\";\r\nimport Citiwest from \"./citiwest\";\r\nimport \"./citiwests.scss\";\r\n\r\nconst View = ({ items }) => {\r\n const owlOptions = {\r\n loop: true,\r\n autoplay: true,\r\n autoplayTimeout: 5000,\r\n autoplayHoverPause: true,\r\n margin: 30,\r\n nav: false,\r\n responsive: {\r\n 0: {\r\n items: 1,\r\n },\r\n 500: {\r\n items: 2,\r\n },\r\n 768: {\r\n items: 3,\r\n },\r\n 1200: {\r\n items: 4,\r\n },\r\n },\r\n };\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n {items.map((item, i) => (\r\n \r\n ))}\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default View;\r\n","export const citiwests = [\r\n { name: \"tma.jpg\" },\r\n { name: \"highway-truck.jpg\" },\r\n { name: \"traffic-utes.jpg\" },\r\n { name: \"travel-times.jpeg\" },\r\n { name: \"arrow-board.jpg\" },\r\n { name: \"portable-traffic-lights.jpg\" },\r\n { name: \"variable-speed-limit-signs.jpg\" },\r\n { name: \"truck-mounted-attenuators.jpg\" },\r\n { name: \"vms-boards.jpg\" },\r\n { name: \"vms-ute.jpg\" },\r\n];\r\n","import React, { Component } from \"react\";\r\nimport View from \"./view\";\r\nimport { citiwests as CitiwestItems } from \"constants/citiwests\";\r\n\r\nclass Citiwests extends Component {\r\n render() {\r\n return ;\r\n }\r\n}\r\n\r\nexport default Citiwests;\r\n","import React from \"react\";\r\nimport ContentSection from \"components/common/content-section\";\r\nimport Citiwests from \"components/common/citiwests\";\r\nimport \"./citiwest.scss\";\r\n\r\nconst Citiwest = () => {\r\n return (\r\n
    \r\n \r\n
    \r\n

    Traffic Equipment Hire Specialists

    \r\n Traffic Equipment hire on any scale\r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default Citiwest;\r\n","import React from \"react\";\r\nimport ImageHeader from \"./../../components/common/image-header\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\nimport ButtonFx from \"./../../components/common/button-fx\";\r\nimport Partner from \"./components/partner\";\r\nimport Citiwest from \"./component/citiwest\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\nimport ContentSection from \"components/common/content-section\";\r\n\r\nconst Home = () => {\r\n let history = useHistory();\r\n return (\r\n <>\r\n \r\n {/* \r\n
    \r\n
    \r\n

    Looking for Equipment Rentals?

    \r\n \r\n Citiwest Rentals - Providing equipment hire to all of western\r\n Melbourne\r\n \r\n

    \r\n Citiwest Rentals is the latest addition to the Mr Traffic Hire\r\n family. We are a leading provider of rental equipment in the west.\r\n Get everything you need for your home renovation and business\r\n needs.\r\n

    \r\n \r\n Get the right equipment and advice for the right price!\r\n \r\n
    \r\n \r\n Check out Citiwest\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

    About Us

    \r\n\r\n
    \r\n

    \r\n Mr Traffic Hire offers specialised traffic equipment hire on any\r\n scale, such as large infrastructure road works and projects to\r\n single Variable Messaging Signs (VMS) for advertising. We have a\r\n full range of traffic safety equipment.{\" \"}\r\n

    \r\n\r\n

    \r\n With over 25 years combined experience in the Hire industry Mr\r\n Traffic Hire can offer our clients the most up to date solutions for\r\n managing your needs, combined with our vast industry knowledge,\r\n makes us confident that we can provide solutions to our clients.\r\n

    \r\n\r\n

    \r\n At Mr Traffic Hire we endeavour to work closely with all our clients\r\n to find a solution that works and with our expert knowledge and\r\n understanding of current legislation, in addition to providing the\r\n highest level of quality, service and value, Mr Traffic Hire is\r\n confident we can help you achieve your targets.\r\n

    \r\n\r\n

    \r\n Mr Traffic Hire is available 24 hours a day, 7 days a week and we\r\n will work within your timeframes and budget to make it happen.\r\n

    \r\n\r\n history.push(\"/about/\")}\r\n className=\"mt-blue-mini-button\"\r\n >\r\n Learn More\r\n \r\n
    \r\n
    \r\n\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Home;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport CollapsiblePanel from \"../collapsible-panel/collapsible-panel\";\r\nimport CollapsibleItem from \"../collapsible-panel/collapsible-item\";\r\n\r\nconst ContentCollapsiblePanel = ({\r\n sections,\r\n marginTop,\r\n marginBottom,\r\n openSection,\r\n}) => {\r\n return (\r\n
    \r\n \r\n {({ handleInit, collapseState, handleToggle }) => {\r\n return sections.map((section, i) => (\r\n
    \r\n \r\n {section.content}\r\n \r\n
    \r\n ));\r\n }}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nContentCollapsiblePanel.propTypes = {\r\n sections: PropTypes.array.isRequired,\r\n marginTop: PropTypes.number.isRequired,\r\n marginBottom: PropTypes.number.isRequired,\r\n openSection: PropTypes.number.isRequired,\r\n};\r\n\r\nContentCollapsiblePanel.defaultProps = {\r\n sections: [],\r\n marginTop: 3,\r\n marginBottom: 3,\r\n openSection: 0,\r\n};\r\n\r\nexport default ContentCollapsiblePanel;\r\n","import React from \"react\";\r\n//import { Link } from \"react-router-dom\";\r\n\r\nexport const faqs = [\r\n {\r\n title: \"xxx\",\r\n content:
    xxx
    ,\r\n },\r\n];\r\n","import { useEffect } from \"react\";\r\n\r\nconst UseMapFaqs = (FaqItems, setMappedFaqs, jsxToString) => {\r\n useEffect(() => {\r\n let mapped = FaqItems.map((faq) => {\r\n return {\r\n ...faq,\r\n flattenedContent: jsxToString(faq.content).replace(/(<([^>]+)>)/gi, \"\"),\r\n };\r\n });\r\n\r\n setMappedFaqs(mapped);\r\n }, []);\r\n};\r\n\r\nexport default UseMapFaqs;\r\n","const TextSearchLib = () => {\r\n const search = (filterText, textToSearch) => {\r\n let regexString = \"\";\r\n\r\n // if the start and end char is a \", match entire string\r\n if (\r\n filterText.length > 1 &&\r\n filterText[0] === '\"' &&\r\n filterText[filterText.length - 1] === '\"'\r\n ) {\r\n regexString = `\\\\b${filterText.replace(/\"/gi, \"\")}\\\\b`;\r\n } else {\r\n filterText = filterText.replace('\"', \"\");\r\n\r\n const words = filterText\r\n .split(/\\s+/g)\r\n .map(s => s.trim())\r\n .filter(s => !!s);\r\n const hasTrailingSpace = filterText.endsWith(\" \");\r\n\r\n regexString = words\r\n .map((word, i) => {\r\n if (i + 1 === words.length && !hasTrailingSpace) {\r\n // The last word - ok with the word being \"startswith\"-like\r\n return `(?=.*\\\\b${_escapeRegExp(word)})`;\r\n } else {\r\n // Not the last word - expect the whole word exactly\r\n return `(?=.*\\\\b${_escapeRegExp(word)}\\\\b)`;\r\n }\r\n })\r\n .join(\"\");\r\n }\r\n\r\n const searchRegex = new RegExp(regexString, \"gi\");\r\n\r\n return searchRegex.test(textToSearch);\r\n };\r\n\r\n const _escapeRegExp = s => {\r\n return s.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\r\n };\r\n\r\n return {\r\n search\r\n };\r\n};\r\n\r\nexport default TextSearchLib;\r\n","import { useEffect } from \"react\";\r\nimport TextSearchLib from \"./../../../core/utilities/textSearchLib\";\r\n\r\nconst UseFilterFaqs = (query, mappedFaqs, setFilteredFaqs) => {\r\n const textSearchLib = TextSearchLib();\r\n useEffect(() => {\r\n let filtered = mappedFaqs.map((faq) => {\r\n return {\r\n ...faq,\r\n show:\r\n query === \"\"\r\n ? true\r\n : textSearchLib.search(query, faq.title) ||\r\n textSearchLib.search(query, faq.flattenedContent),\r\n };\r\n });\r\n setFilteredFaqs(filtered);\r\n }, [query, mappedFaqs]);\r\n};\r\n\r\nexport default UseFilterFaqs;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport jsxToString from \"jsx-to-string\";\r\nimport ContentCollapsiblePanel from \"../../components/common/content-collapsible-panel\";\r\nimport { faqs as FaqItems } from \"../../constants/faqs\";\r\nimport { withFormik, Form } from \"formik\";\r\nimport CommonField from \"./../../components/common/common-field\";\r\nimport UseMapFaqs from \"./hooks/use-map-faqs\";\r\nimport UseFilterFaqs from \"./hooks/use-filter-faqs\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\n\r\nconst Faqs = ({ values }) => {\r\n let [mappedFaqs, setMappedFaqs] = useState([]);\r\n let [filteredFaqs, setFilteredFaqs] = useState([]);\r\n\r\n UseMapFaqs(FaqItems, setMappedFaqs, jsxToString);\r\n UseFilterFaqs(values.query, mappedFaqs, setFilteredFaqs);\r\n\r\n return (\r\n <>\r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n\r\n faq.show)}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nconst initialValues = { query: \"\" };\r\n\r\nconst formikEnhancer = withFormik({\r\n mapPropsToValues: () => initialValues,\r\n handleSubmit: (values, { props }) => {},\r\n displayName: \"searchFaqsForm\",\r\n});\r\n\r\nconst enhancedFaqs = formikEnhancer(Faqs);\r\n\r\nexport default enhancedFaqs;\r\n","import React from \"react\";\r\nimport { FormGroup, Input, Label } from \"reactstrap\";\r\nimport CustomErrorMessage from \"./../error-message\";\r\nimport { FastField } from \"formik\";\r\nimport \"./common-field.scss\";\r\n\r\nconst CommonFastField = (props) => {\r\n const {\r\n label,\r\n accessor,\r\n type,\r\n showLabel,\r\n rawField,\r\n instructionLabel,\r\n overridePlaceholder,\r\n children,\r\n showRequiredIndicator,\r\n } = props;\r\n\r\n console.log(label);\r\n\r\n return type === \"checkbox\" ? (\r\n \r\n \r\n {({ field, meta, form }) => (\r\n
    \r\n
    \r\n \r\n \r\n {showLabel && (\r\n \r\n {children}\r\n \r\n )}\r\n \r\n {!rawField && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n ) : (\r\n
    \r\n {showLabel && (\r\n \r\n )}\r\n\r\n {instructionLabel &&

    {instructionLabel}

    }\r\n\r\n \r\n {({ field, meta }) => (\r\n
    \r\n {type === \"textarea\" ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {!rawField && (\r\n \r\n )}\r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default React.memo(CommonFastField);\r\n","import React from \"react\";\r\n//import { Link } from \"react-router-dom\";\r\n//import ContentSection from \"../components/common/content-section\";\r\n\r\nexport const corePublicPages = [\r\n {\r\n pageName: \"get-in-touch\",\r\n title: \"Contact Us | Get a Quote\",\r\n description: \"Contact Us | Get a Quote\",\r\n content: <>,\r\n },\r\n {\r\n pageName: \"privacy-policy\",\r\n title: \"Privacy Policy\",\r\n description: \"\",\r\n content: <>,\r\n },\r\n {\r\n pageName: \"not-found\",\r\n title: \"Page Not Found\",\r\n description: \"\",\r\n content: (\r\n <>\r\n

    Page Not Found

    \r\n \r\n ),\r\n },\r\n];\r\n","import React from \"react\";\r\n//import { Link } from \"react-router-dom\";\r\nimport ContentSection from \"./../components/common/content-section\";\r\nimport { corePublicPages } from \"./public-content-core\";\r\n\r\nexport const publicPages = [\r\n ...corePublicPages,\r\n {\r\n pageName: \"new-page\",\r\n title: \"New Page\",\r\n description: \"\",\r\n content: (\r\n <>\r\n

    New Page

    \r\n \r\n ),\r\n },\r\n {\r\n pageName: \"new-page-2\",\r\n title: \"New Page\",\r\n description: \"\",\r\n noContentSection: true,\r\n content: (\r\n <>\r\n \r\n

    Section 1

    \r\n
    \r\n \r\n

    Section 2

    \r\n
    \r\n \r\n

    Section 3

    \r\n
    \r\n \r\n ),\r\n },\r\n];\r\n","import * as PublicContent from \"../constants/public-content\";\r\n\r\nconst ContentService = () => {\r\n const getContentPage = pageName => {\r\n let page = PublicContent.publicPages.filter(\r\n page => page.pageName === pageName\r\n );\r\n\r\n if (page.length === 0)\r\n page = PublicContent.publicPages.filter(\r\n page => page.pageName === \"not-found\"\r\n );\r\n\r\n return page[0];\r\n };\r\n\r\n return { getContentPage };\r\n};\r\n\r\nexport default ContentService;\r\n","import { useEffect } from \"react\";\r\n\r\nconst useContactUsHandler = (isSuccessful, handleReset, cleanUp) => {\r\n useEffect(() => {\r\n cleanUp();\r\n\r\n setDefaultValues();\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (isSuccessful) {\r\n handleReset();\r\n\r\n setDefaultValues();\r\n }\r\n }, [isSuccessful]);\r\n\r\n const setDefaultValues = () => {};\r\n};\r\n\r\nexport default useContactUsHandler;\r\n","const states = [\r\n {\r\n value: \"ACT\",\r\n label: \"Australia Capital Territory\"\r\n },\r\n {\r\n value: \"NSW\",\r\n label: \"New South Wales\"\r\n },\r\n {\r\n value: \"NT\",\r\n label: \"Northern Territory\"\r\n },\r\n {\r\n value: \"QLD\",\r\n label: \"Queensland\"\r\n },\r\n {\r\n value: \"SA\",\r\n label: \"South Australia\"\r\n },\r\n {\r\n value: \"TAS\",\r\n label: \"Tasmania\"\r\n },\r\n {\r\n value: \"VIC\",\r\n label: \"Victoria\"\r\n },\r\n {\r\n value: \"WA\",\r\n label: \"Western Australia\"\r\n }\r\n];\r\n\r\nexport default states;\r\n","import { useEffect } from \"react\";\r\nimport states from \"./../google-address-field/australian-states\";\r\nimport { isNil } from \"lodash\";\r\n\r\nexport const useFillProfileData = (profile, setFieldValue) => {\r\n useEffect(() => {\r\n let defaultFields = [\r\n \"firstName\",\r\n \"lastName\",\r\n \"email\",\r\n \"mobile\",\r\n \"fullAddress\",\r\n \"unitNumber\",\r\n \"streetNumber\",\r\n \"streetName\",\r\n \"state\",\r\n \"postcode\",\r\n \"city\",\r\n ];\r\n\r\n if (profile.id !== \"\" && !isNil(profile.id)) {\r\n defaultFields.forEach((field) => {\r\n if (field === \"state\") {\r\n let query =\r\n typeof profile.state === \"object\"\r\n ? profile.state.value\r\n : profile.state;\r\n let value = states.find((state) => state.value === query);\r\n setFieldValue(field, value);\r\n } else {\r\n setFieldValue(field, profile[field]);\r\n }\r\n });\r\n }\r\n }, [profile]);\r\n};\r\n\r\nexport const useFillContactData = (profile, setFieldValue) => {\r\n useEffect(() => {\r\n if (profile.id !== \"\" && !isNil(profile.id)) {\r\n setFieldValue(\"name\", `${profile.firstName} ${profile.lastName}`);\r\n setFieldValue(\"email\", profile.email);\r\n setFieldValue(\"phone\", profile.mobile);\r\n }\r\n }, [profile]);\r\n};\r\n","import React, { useEffect } from \"react\";\r\nimport CommonFastField from \"components/common/common-fast-field\";\r\nimport { Form } from \"formik\";\r\nimport { Row, Col, FormGroup } from \"reactstrap\";\r\nimport ContentService from \"services/content-service\";\r\nimport FormikSubmitButton from \"components/common/formik-submit-button\";\r\nimport EnhancedContentSection from \"components/common/enhanced-content-section\";\r\nimport useContactUsHandler from \"./hooks/use-effect-handler\";\r\nimport { useFillContactData } from \"components/common/common-hooks/use-fill-profile-data\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst ContactUs = ({\r\n cleanUp,\r\n contactUs,\r\n handleSubmit,\r\n setFieldValue,\r\n profile,\r\n match,\r\n handleReset,\r\n resetForm,\r\n}) => {\r\n const { isLoading, isSuccessful } = contactUs;\r\n\r\n useFillContactData(profile, setFieldValue);\r\n\r\n useContactUsHandler(\r\n match.params.courseId,\r\n isSuccessful,\r\n handleReset,\r\n setFieldValue,\r\n cleanUp\r\n );\r\n\r\n useEffect(() => {\r\n if (isSuccessful) {\r\n resetForm();\r\n }\r\n }, [isSuccessful]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {ContentService().getContentPage(\"get-in-touch\").content}\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\n \r\n \r\n
    \r\n\r\n

    Our Locations

    \r\n\r\n \r\n \r\n
    10 Everaise Court, Laverton North, VIC 3206
    \r\n \r\n \r\n\r\n \r\n
    1/13 Aster Ave, Carrum Downs, VIC 3201
    \r\n \r\n \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ContactUs;\r\n","const ActionTypes = {\r\n CONTACT_US_REQUEST: \"CONTACT_US_REQUEST\",\r\n CONTACT_US_SUCCESS: \"CONTACT_US_SUCCESS\",\r\n CONTACT_US_FAILURE: \"CONTACT_US_FAILURE\",\r\n CONTACT_US_CLEAN_UP: \"CONTACT_US_CLEAN_UP\"\r\n};\r\n\r\nexport default ActionTypes;\r\n","import ActionTypes from \"./action-types\";\r\nimport ContactUsService from \"./../services/service\";\r\nimport {\r\n addNotification,\r\n addErrorNotification,\r\n} from \"./../../../redux/system/system-action-creators\";\r\nlet service = ContactUsService();\r\n\r\nexport const sendMessage = (data) => (dispatch) => {\r\n dispatch(contacUsRequest());\r\n service\r\n .sendMessage(data)\r\n .then(() => {\r\n dispatch(addNotification(\"Your message has been successfully sent.\"));\r\n dispatch(contacUsSuccess());\r\n })\r\n .catch((error) => {\r\n dispatch(addErrorNotification(error, \"Unable to send your message.\"));\r\n dispatch(contacUsFailure(error));\r\n });\r\n};\r\n\r\nconst contacUsRequest = () => ({\r\n type: ActionTypes.CONTACT_US_REQUEST,\r\n});\r\n\r\nconst contacUsSuccess = () => ({\r\n type: ActionTypes.CONTACT_US_SUCCESS,\r\n});\r\n\r\nconst contacUsFailure = (error) => ({\r\n type: ActionTypes.CONTACT_US_FAILURE,\r\n payload: error,\r\n});\r\n\r\nexport const cleanUp = () => ({\r\n type: ActionTypes.CONTACT_US_CLEAN_UP,\r\n});\r\n","import HttpClient from \"core/http/httpClient\";\r\n\r\nconst ContactUsService = () => {\r\n let httpClient = HttpClient();\r\n\r\n const sendMessage = (payload) => {\r\n let uri = \"/contact\";\r\n return httpClient.post(uri, {\r\n ...payload,\r\n });\r\n };\r\n\r\n return {\r\n sendMessage,\r\n };\r\n};\r\n\r\nexport default ContactUsService;\r\n","const contactUsInitialValues = {\r\n name: \"\",\r\n email: \"\",\r\n phone: \"\",\r\n message: \"\",\r\n};\r\n\r\nexport default contactUsInitialValues;\r\n","import * as Yup from \"yup\";\r\n\r\nconst contactUsValidationSchema = Yup.object().shape({\r\n name: Yup.string()\r\n .min(2, \"Name must have at least 2 characters.\")\r\n .max(30, \"Name is too long.\")\r\n .required(\"Name is required.\"),\r\n email: Yup.string()\r\n .email(\"Invalid email address\")\r\n .required(\"Email address is required.\"),\r\n phone: Yup.string().min(10, \"Invalid phone number.\"),\r\n message: Yup.string()\r\n .required(\"Message is required.\")\r\n .matches(/^\\s*([^\\s]+\\s*){1,500}$/, \"Message should not exceed 500 Words.\"),\r\n});\r\n\r\nexport default contactUsValidationSchema;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport { withFormik } from \"formik\";\r\nimport contactUsInitialValues from \"./formik/formik/initial-values\";\r\nimport contactUsValidationSchema from \"./formik/formik/validation-schema\";\r\n\r\nconst mapStateToProps = state => {\r\n return {\r\n contactUs: state.contactUs,\r\n profile: state.system.userProfile\r\n };\r\n};\r\n\r\nconst EnhancedForm = withFormik({\r\n mapPropsToValues: () => contactUsInitialValues,\r\n validationSchema: contactUsValidationSchema,\r\n handleSubmit: (values, { props }) => {\r\n props.sendMessage(values);\r\n },\r\n displayName: \"contactUsForm\"\r\n})(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(EnhancedForm)\r\n);\r\n","import { useEffect } from \"react\";\r\n\r\nconst useQuoteHandler = (isSuccessful, handleReset, cleanUp) => {\r\n useEffect(() => {\r\n cleanUp();\r\n\r\n setDefaultValues();\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (isSuccessful) {\r\n handleReset();\r\n\r\n setDefaultValues();\r\n }\r\n }, [isSuccessful]);\r\n\r\n const setDefaultValues = () => {};\r\n};\r\n\r\nexport default useQuoteHandler;\r\n","const mrTrafficServices = [\r\n \"Arrow Boards\",\r\n \"VMS Boards\",\r\n \"Portable Traffic Lights\",\r\n \"Travel Times - Data Collection\",\r\n \"Variable Speed Limit Signs\",\r\n \"Truck Mounted Attenuators\",\r\n \"Highway Trucks\",\r\n \"Traffic Utes\",\r\n \"VMS Utes\",\r\n \"Portaboom\",\r\n \"Other\",\r\n];\r\n\r\nconst getServicesAsArrayOfObjects = () => {\r\n return mrTrafficServices.map((x) => {\r\n return {\r\n value: x,\r\n label: x,\r\n };\r\n });\r\n};\r\n\r\nexport { mrTrafficServices as default, getServicesAsArrayOfObjects };\r\n","const mrTrafficSource = [\r\n \"Facebook\",\r\n \"Instagram\",\r\n \"Linkedin\",\r\n \"Word Of Mouth\",\r\n \"Google Search\",\r\n \"Other\",\r\n];\r\n\r\nconst getSourceAsArrayOfObjects = () => {\r\n return mrTrafficSource.map((x) => {\r\n return {\r\n value: x,\r\n label: x,\r\n };\r\n });\r\n};\r\n\r\nexport { mrTrafficSource as default, getSourceAsArrayOfObjects };\r\n","import React, { useEffect } from \"react\";\r\nimport CommonFastField from \"components/common/common-fast-field\";\r\nimport { Form } from \"formik\";\r\nimport { Row, Col, FormGroup } from \"reactstrap\";\r\nimport FormikSubmitButton from \"components/common/formik-submit-button\";\r\nimport Select from \"components/common/select\";\r\nimport EnhancedContentSection from \"components/common/enhanced-content-section\";\r\nimport useQuoteHandler from \"./hooks/use-effect-handler\";\r\nimport { useFillContactData } from \"components/common/common-hooks/use-fill-profile-data\";\r\nimport { getServicesAsArrayOfObjects } from \"constants/services\";\r\nimport { getSourceAsArrayOfObjects } from \"constants/source\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst GetQuote = ({\r\n cleanUp,\r\n contactUs,\r\n handleSubmit,\r\n setFieldValue,\r\n profile,\r\n match,\r\n handleReset,\r\n values,\r\n resetForm,\r\n}) => {\r\n const { isLoading, isSuccessful } = contactUs;\r\n\r\n useFillContactData(profile, setFieldValue);\r\n\r\n useQuoteHandler(\r\n match.params.courseId,\r\n isSuccessful,\r\n handleReset,\r\n setFieldValue,\r\n cleanUp\r\n );\r\n\r\n useEffect(() => {\r\n if (isSuccessful) {\r\n resetForm();\r\n }\r\n }, [isSuccessful]);\r\n\r\n return (\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\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\n\r\nexport default GetQuote;\r\n","const ActionTypes = {\r\n GET_QUOTE_REQUEST: \"GET_QUOTE_REQUEST\",\r\n GET_QUOTE_SUCCESS: \"GET_QUOTE_SUCCESS\",\r\n GET_QUOTE_FAILURE: \"GET_QUOTE_FAILURE\",\r\n GET_QUOTE_CLEAN_UP: \"GET_QUOTE_CLEAN_UP\"\r\n};\r\n\r\nexport default ActionTypes;\r\n","import ActionTypes from \"./action-types\";\r\nimport QuoteService from \"./../services/service\";\r\nimport {\r\n addNotification,\r\n addErrorNotification,\r\n} from \"./../../../redux/system/system-action-creators\";\r\nlet service = QuoteService();\r\n\r\nexport const getQuote = (data) => (dispatch) => {\r\n dispatch(getQuoteRequest());\r\n service\r\n .getQuote(data)\r\n .then(() => {\r\n dispatch(\r\n addNotification(\"Your quote request has been successfully sent.\")\r\n );\r\n dispatch(getQuoteSuccess());\r\n })\r\n .catch((error) => {\r\n dispatch(\r\n addErrorNotification(error, \"Unable to send your quote request.\")\r\n );\r\n dispatch(getQuoteFailure(error));\r\n });\r\n};\r\n\r\nconst getQuoteRequest = () => ({\r\n type: ActionTypes.GET_QUOTE_REQUEST,\r\n});\r\n\r\nconst getQuoteSuccess = () => ({\r\n type: ActionTypes.GET_QUOTE_SUCCESS,\r\n});\r\n\r\nconst getQuoteFailure = (error) => ({\r\n type: ActionTypes.GET_QUOTE_FAILURE,\r\n payload: error,\r\n});\r\n\r\nexport const cleanUp = () => ({\r\n type: ActionTypes.GET_QUOTE_CLEAN_UP,\r\n});\r\n","import HttpClient from \"./../../../core/http/httpClient\";\r\n\r\nconst QuoteService = () => {\r\n let httpClient = HttpClient();\r\n\r\n const getQuote = (payload) => {\r\n let uri = \"/get-a-quote\";\r\n return httpClient.post(uri, {\r\n ...payload,\r\n services: payload.services.map((x) => x.value),\r\n source: payload.source.map((x) => x.value),\r\n });\r\n };\r\n\r\n return {\r\n getQuote,\r\n };\r\n};\r\n\r\nexport default QuoteService;\r\n","const initialValues = {\r\n name: \"\",\r\n email: \"\",\r\n phone: \"\",\r\n services: [],\r\n source: [],\r\n message: \"\",\r\n};\r\n\r\nexport default initialValues;\r\n","import * as Yup from \"yup\";\r\n\r\nconst validationSchema = Yup.object().shape({\r\n name: Yup.string()\r\n .min(2, \"Name must have at least 2 characters.\")\r\n .max(30, \"Name is too long.\")\r\n .required(\"Name is required.\"),\r\n email: Yup.string()\r\n .email(\"Invalid email address\")\r\n .required(\"Email address is required.\"),\r\n phone: Yup.string().min(10, \"Invalid phone number.\"),\r\n services: Yup.array()\r\n .of(Yup.string().required(\"Please select at least 1 service.\"))\r\n .required(\"Please select at least 1 service.\"),\r\n source: Yup.array()\r\n .of(Yup.string().required(\"Please select at least 1 item.\"))\r\n .required(\"Please select at least 1 item.\"),\r\n message: Yup.string()\r\n .required(\"Message is required.\")\r\n .matches(/^\\s*([^\\s]+\\s*){1,500}$/, \"Message should not exceed 500 Words.\"),\r\n});\r\n\r\nexport default validationSchema;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport { withFormik } from \"formik\";\r\nimport initialValues from \"./formik/formik/initial-values\";\r\nimport validationSchema from \"./formik/formik/validation-schema\";\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n contactUs: state.quote,\r\n profile: state.system.userProfile,\r\n };\r\n};\r\n\r\nconst EnhancedForm = withFormik({\r\n mapPropsToValues: () => initialValues,\r\n validationSchema,\r\n handleSubmit: (values, { props }) => {\r\n props.getQuote(values);\r\n },\r\n displayName: \"getQuoteForm\",\r\n})(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(EnhancedForm)\r\n);\r\n","const getRedirectionPath = (location) =>\r\n location.search && location.search.includes(\"return-url\")\r\n ? location.search.substr(location.search.indexOf(\"/\"))\r\n : (location.state && location.state.from && location.state.from.pathname) ||\r\n \"/\";\r\n\r\nexport default getRedirectionPath;\r\n","import React from \"react\";\r\nimport { Form } from \"formik\";\r\nimport ButtonFx from \"./../../components/common/button-fx\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport CommonField from \"./../../components/common/common-field\";\r\nimport MaskedInput from \"./../../components/common/masked-input\";\r\nimport Password from \"./../../components/common/password-component\";\r\nimport { Redirect, Link } from \"react-router-dom\";\r\nimport getRedirectionPath from \"./../../core/utilities/location-service\";\r\nimport Auth from \"./../../core/auth/auth\";\r\nimport FormikSubmitButton from \"./../../components/common/formik-submit-button\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\n\r\nconst RegistrationPage = ({ location, isLoading }) => {\r\n let pageTitle = \"Register\";\r\n let redirectPath = getRedirectionPath(location);\r\n if (Auth.isAuthenticated()) return ;\r\n\r\n return (\r\n \r\n
    \r\n
    \r\n \r\n \r\n Already have an account? Login Now\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 {/* Password Fields */}\r\n \r\n\r\n
    \r\n \r\n \r\n terms and conditions\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\nexport default RegistrationPage;\r\n","import * as Yup from \"yup\";\r\n\r\nconst registrationValidationSchema = Yup.object().shape({\r\n firstName: Yup.string()\r\n .min(2, \"First name must have at least 2 characters.\")\r\n .max(30, \"First name is too long.\")\r\n .required(\"First name is required.\"),\r\n lastName: Yup.string()\r\n .min(2, \"First name must have at least 2 characters.\")\r\n .max(30, \"First name is too long.\")\r\n .required(\"Last name is required.\"),\r\n email: Yup.string()\r\n .required(\"Email is required.\")\r\n .email(\"Invalid email address\"),\r\n mobile: Yup.string()\r\n .required(\"Mobile is required.\")\r\n .matches(/^$|\\s+/, \"Mobile is required.\"),\r\n\r\n //Password fields validations\r\n password: Yup.string(),\r\n confirmPassword: Yup.string()\r\n .min(1)\r\n .oneOf([Yup.ref(\"password\"), null], \"Passwords must match\"),\r\n // confirmPassword: Yup.string()\r\n\r\n acceptedTheTerms: Yup.bool().oneOf(\r\n [true],\r\n \"Please accept the terms and conditions.\"\r\n ),\r\n});\r\n\r\nexport default registrationValidationSchema;\r\n","const registrationInitialValues = {\r\n firstName: \"\",\r\n lastName: \"\",\r\n email: \"\",\r\n mobile: \"\",\r\n password: \"\",\r\n confirmPassword: \"\",\r\n acceptedTheTerms: false,\r\n};\r\n\r\nexport default registrationInitialValues;\r\n","const ActionTypes = {\r\n REGISTER_REQUEST: \"REGISTER_REQUEST\",\r\n REGISTER_SUCCESS: \"REGISTER_SUCCESS\",\r\n REGISTER_FAILURE: \"REGISTER_FAILURE\"\r\n};\r\n\r\nexport default ActionTypes;\r\n","import ActionTypes from \"./action-types\";\r\nimport RegistrationService from \"./../services/service\";\r\nimport {\r\n addErrorNotification,\r\n setProfile,\r\n} from \"../../../redux/system/system-action-creators\";\r\nimport Auth from \"./../../../core/auth/auth\";\r\nimport UserIdentity from \"./../../../core/auth/userIdentity\";\r\nimport ProfileService from \"./../../../services/profile-service\";\r\n\r\nlet service = RegistrationService();\r\nlet profileService = ProfileService();\r\n\r\nexport const register = (model, history) => (dispatch, getState) => {\r\n dispatch(registerRequest());\r\n service\r\n .register(model)\r\n .then(({ data }) => {\r\n Auth.removeToken();\r\n Auth.setToken(data.access_token, data.refresh_token, data.expires_in);\r\n\r\n const userIdent = UserIdentity();\r\n profileService\r\n .getProfile(userIdent.getUserId())\r\n .then(({ data }) => {\r\n dispatch(setProfile(data));\r\n dispatch(registerSuccess());\r\n\r\n history.push(\"/\");\r\n })\r\n .catch((error) =>\r\n dispatch(\r\n addErrorNotification(error, \"Unable to fetch the user profile.\")\r\n )\r\n );\r\n })\r\n .catch((error) => {\r\n dispatch(addErrorNotification(error, \"Unable to register.\"));\r\n dispatch(registerFailure(error));\r\n });\r\n};\r\n\r\nconst registerRequest = () => ({\r\n type: ActionTypes.REGISTER_REQUEST,\r\n});\r\n\r\nconst registerSuccess = () => ({\r\n type: ActionTypes.REGISTER_SUCCESS,\r\n});\r\n\r\nconst registerFailure = (error) => ({\r\n type: ActionTypes.REGISTER_FAILURE,\r\n payload: error,\r\n});\r\n","import HttpClient from \"./../../../core/http/httpClient\";\r\n\r\nconst RegistrationService = () => {\r\n let httpClient = HttpClient();\r\n\r\n const register = (model) => {\r\n let uri = \"/v1/core/accounts\";\r\n return httpClient.post(uri, { ...model, memberType: \"1\" });\r\n };\r\n\r\n return {\r\n register,\r\n };\r\n};\r\n\r\nexport default RegistrationService;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport { withFormik } from \"formik\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport { addNotification } from \"./../../redux/system/system-action-creators\";\r\n\r\nconst mapStateToProps = (state) => state.register;\r\n\r\nconst formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n mapPropsToValues: () => initialValues,\r\n handleSubmit: (values, { props }) => {\r\n const { register, history } = props;\r\n register(values, history);\r\n },\r\n displayName: \"registerForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators, addNotification })(enhancedForm)\r\n);\r\n","import React from \"react\";\r\nimport { Form } from \"formik\";\r\nimport ButtonFx from \"./../../components/common/button-fx\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport CommonField from \"./../../components/common/common-field\";\r\nimport { Link, Redirect } from \"react-router-dom\";\r\nimport getRedirectionPath from \"./../../core/utilities/location-service\";\r\nimport Auth from \"./../../core/auth/auth\";\r\nimport FormikSubmitButton from \"./../../components/common/formik-submit-button\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\n\r\nconst LoginPage = ({\r\n handleSubmit,\r\n isLoading,\r\n shouldRedirect,\r\n location,\r\n history,\r\n}) => {\r\n let redirectPath = getRedirectionPath(location);\r\n if (shouldRedirect || Auth.isAuthenticated())\r\n return ;\r\n\r\n return (\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 {!isLoading && (\r\n \r\n \r\n Forgot Password\r\n \r\n \r\n )}\r\n
    \r\n\r\n
    \r\n \r\n Not yet registered? Register Now\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nexport default LoginPage;\r\n","import * as Yup from \"yup\";\r\n\r\nconst loginValidationSchema = Yup.object().shape({\r\n username: Yup.string().required(\"Username is required.\"),\r\n password: Yup.string().required(\"Password is required.\"),\r\n});\r\n\r\nexport default loginValidationSchema;\r\n","const loginInitialValues = {\r\n username: \"\",\r\n password: \"\",\r\n};\r\n\r\nexport default loginInitialValues;\r\n","const ActionTypes = {\r\n LOGIN_INIT: \"LOGIN_INIT\",\r\n LOGIN_REQUEST: \"LOGIN_REQUEST\",\r\n LOGIN_SUCCESS: \"LOGIN_SUCCESS\",\r\n LOGIN_FAILURE: \"LOGIN_FAILURE\"\r\n};\r\n\r\nexport default ActionTypes;\r\n","import Config from \"./../../../config\";\r\nimport Auth from \"./../../../core/auth/auth\";\r\nimport HttpClient from \"./../../../core/http/httpClient\";\r\nimport UserIdentity from \"./../../../core/auth/userIdentity\";\r\nimport ProfileService from \"./../../../services/profile-service\";\r\n\r\nconst LoginService = () => {\r\n let httpClient = HttpClient();\r\n let profileService = ProfileService();\r\n\r\n const login = (userName, password) => {\r\n const userReqModel = {\r\n UserName: userName,\r\n Password: password,\r\n ClientId: Config.clientId,\r\n GrantType: \"password\",\r\n };\r\n\r\n let promise = new Promise((resolve, reject) => {\r\n httpClient\r\n .post(\"/v1/core/auth/token\", userReqModel)\r\n .then((resp) => {\r\n Auth.setToken(\r\n resp.data.access_token,\r\n resp.data.refresh_token,\r\n resp.data.expires_in\r\n );\r\n const userIdent = UserIdentity();\r\n\r\n profileService\r\n .getProfile(userIdent.getUserId())\r\n .then((res) => {\r\n resolve(res.data);\r\n })\r\n .catch((err) => {\r\n reject(err);\r\n });\r\n })\r\n .catch((error) => {\r\n reject(error);\r\n });\r\n });\r\n\r\n return promise;\r\n };\r\n\r\n const logout = () => {\r\n Auth.removeToken();\r\n };\r\n\r\n return {\r\n login,\r\n logout,\r\n };\r\n};\r\n\r\nexport default LoginService;\r\n","import ActionTypes from \"./action-types\";\r\nimport LoginService from \"../services/service\";\r\nimport {\r\n setProfile,\r\n addErrorNotification,\r\n} from \"./../../../redux/system/system-action-creators\";\r\n\r\nexport const localLogin = (userName, password, history) => {\r\n return (dispatch, getState) => {\r\n const service = LoginService();\r\n dispatch(loginRequest());\r\n service\r\n .login(userName, password)\r\n .then((resp) => {\r\n dispatch(loginSuccess());\r\n dispatch(setProfile(resp));\r\n\r\n history.push(\"/\");\r\n })\r\n .catch((error) => {\r\n dispatch(loginFailure());\r\n dispatch(\r\n addErrorNotification(\r\n error,\r\n \"Sorry, your user name or password is incorrect or we were unable to connect to the server.\"\r\n )\r\n );\r\n });\r\n };\r\n};\r\n\r\nconst loginRequest = () => ({\r\n type: ActionTypes.LOGIN_REQUEST,\r\n});\r\n\r\nconst loginSuccess = (data) => ({\r\n type: ActionTypes.LOGIN_SUCCESS,\r\n payload: data,\r\n});\r\n\r\nconst loginFailure = () => ({\r\n type: ActionTypes.LOGIN_FAILURE,\r\n});\r\n\r\nexport const loginInit = () => ({\r\n type: ActionTypes.LOGIN_INIT,\r\n});\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport { withFormik } from \"formik\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n ...state.userLogin,\r\n };\r\n};\r\n\r\nconst formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n mapPropsToValues: () => initialValues,\r\n handleSubmit: (values, { props }) => {\r\n const { localLogin, history } = props;\r\n localLogin(values.username, values.password, history);\r\n },\r\n displayName: \"loginForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(enhancedForm)\r\n);\r\n","import React, { useEffect } from \"react\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport LoginService from \"./../login/services/service\";\r\n\r\nconst Logout = () => {\r\n useEffect(() => {\r\n const loginService = LoginService();\r\n loginService.logout();\r\n window.location.reload();\r\n\r\n localStorage.clear();\r\n }, []);\r\n\r\n return ;\r\n};\r\n\r\nexport default Logout;\r\n","import React from \"react\";\r\nimport { FormGroup, Row, Col } from \"reactstrap\";\r\nimport { Form } from \"formik\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport CommonField from \"./../../components/common/common-field/index\";\r\nimport getRedirectionPath from \"./../../core/utilities/location-service\";\r\nimport Auth from \"./../../core/auth/auth\";\r\nimport FormikSubmitButton from \"./../../components/common/formik-submit-button\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\n\r\nconst ForgotPassword = ({ loading, sent, location }) => {\r\n let redirectPath = getRedirectionPath(location);\r\n if (Auth.isAuthenticated()) return ;\r\n\r\n return sent ? ForgotPasswordSent() : ForgotPasswordForm(loading);\r\n};\r\n\r\n/* Main Forgot Password Reset Form */\r\nconst ForgotPasswordForm = (loading) => {\r\n return (\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/* Main Forgot Password Reset Form */\r\n\r\n/* Main Forgot Password Reset Message */\r\nconst ForgotPasswordSent = () => {\r\n return (\r\n \r\n

    A link to reset your password has been sent to your email address.

    \r\n
    \r\n );\r\n};\r\n/* Main Forgot Password Reset Message */\r\n\r\nexport default ForgotPassword;\r\n","export const ActionTypes = {\r\n FORGOT_PASSWORD_REQUEST: \"FORGOT_PASSWORD_REQUEST\",\r\n FORGOT_PASSWORD_SUCCESS: \"FORGOT_PASSWORD_SUCCESS\",\r\n FORGOT_PASSWORD_FAILURE: \"FORGOT_PASSWORD_FAILURE\",\r\n FORGOT_PASSWORD_CLEAN_UP: \"FORGOT_PASSWORD_CLEAN_UP\"\r\n};\r\n","import { ActionTypes } from \"./action-types\";\r\nimport HttpService from \"../services/service\";\r\nimport { addNotification } from \"./../../../redux/system/system-action-creators\";\r\n\r\nconst httpService = HttpService();\r\n\r\nexport const requestChangePassword = (email) => (dispatch) => {\r\n dispatch(requestChangePasswordRequest());\r\n httpService\r\n .requestChangePassword(email)\r\n .then(() => {\r\n dispatch(requestChangePasswordSuccess());\r\n dispatch(\r\n addNotification(\r\n \"Change password has been initiated. Please check you email.\"\r\n )\r\n );\r\n })\r\n .catch((resp) => {\r\n dispatch(requestChangePasswordFailure());\r\n });\r\n};\r\n\r\nconst requestChangePasswordRequest = () => ({\r\n type: ActionTypes.FORGOT_PASSWORD_REQUEST,\r\n});\r\n\r\nconst requestChangePasswordSuccess = () => ({\r\n type: ActionTypes.FORGOT_PASSWORD_SUCCESS,\r\n});\r\n\r\nconst requestChangePasswordFailure = () => (dispatch) => {\r\n dispatch({ type: ActionTypes.FORGOT_PASSWORD_FAILURE });\r\n dispatch(addNotification(\"Account does not exist.\", \"error\"));\r\n};\r\n\r\nexport const cleanUp = () => ({\r\n type: ActionTypes.FORGOT_PASSWORD_CLEAN_UP,\r\n});\r\n","import HttpClient from \"./../../../core/http/httpClient\";\r\n\r\nconst Service = () => {\r\n let httpClient = HttpClient();\r\n\r\n const requestChangePassword = (email) =>\r\n httpClient.patch(`/v1/core/accounts/${email}/password/reset/request`);\r\n\r\n return {\r\n requestChangePassword,\r\n };\r\n};\r\n\r\nexport default Service;\r\n","import * as Yup from \"yup\";\r\n\r\nconst forgotPasswordSchema = Yup.object().shape({\r\n email: Yup.string()\r\n .email(\"Invalid Email Address\")\r\n .required(\"Email is required.\")\r\n});\r\n\r\nexport default forgotPasswordSchema;\r\n","const forgotPasswordInitialValues = {\r\n email: \"\"\r\n};\r\n\r\nexport default forgotPasswordInitialValues;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport { withFormik } from \"formik\";\r\n\r\nconst mapStateToProps = (state) => state.forgotPassword;\r\n\r\nconst formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n mapPropsToValues: () => initialValues,\r\n handleSubmit: (values, { props }) => {\r\n const { email } = values;\r\n const { requestChangePassword } = props;\r\n requestChangePassword(email);\r\n },\r\n displayName: \"forgotPasswordForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(enhancedForm)\r\n);\r\n","import React, { useEffect } from \"react\";\r\nimport { FormGroup, Row, Col } from \"reactstrap\";\r\nimport { Form } from \"formik\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport Auth from \"./../../core/auth/auth\";\r\nimport BlockUiFx from \"./../../components/common/block-ui-fx\";\r\nimport ContentSection from \"./../../components/common/content-section/index\";\r\nimport Password from \"./../../components/common/password-component/index\";\r\nimport getRedirectionPath from \"./../../core/utilities/location-service\";\r\nimport FormikSubmitButton from \"./../../components/common/formik-submit-button\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\n\r\nconst ResetPassword = ({\r\n loading,\r\n location,\r\n validateResetToken,\r\n isTokenValid,\r\n}) => {\r\n let resetToken = location.search ? location.search.substring(3) : \"\";\r\n\r\n useEffect(() => {\r\n validateResetToken(resetToken);\r\n }, []);\r\n\r\n let redirectPath = getRedirectionPath(location);\r\n if (Auth.isAuthenticated()) return ;\r\n\r\n let isInitiating = loading && !isTokenValid;\r\n\r\n return isInitiating\r\n ? Loader()\r\n : isTokenValid\r\n ? ResetPasswordForm(loading)\r\n : ResetPasswordIsInvalid();\r\n};\r\n\r\nconst Loader = () => {\r\n return (\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\n/* Main Reset Password Reset Form */\r\nconst ResetPasswordForm = (loading) => {\r\n return (\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/* Main Reset Password Reset Form */\r\n\r\n/* Main Reset Password Invalid Message */\r\nconst ResetPasswordIsInvalid = () => {\r\n return (\r\n \r\n

    \r\n Your password reset request is invalid, please reset your password\r\n again.\r\n

    \r\n
    \r\n );\r\n};\r\n/* Main Reset Password Invalid Message */\r\n\r\nexport default ResetPassword;\r\n","export const ActionTypes = {\r\n RESET_PASSWORD_REQUEST: \"RESET_PASSWORD_REQUEST\",\r\n RESET_PASSWORD_SUCCESS: \"RESET_PASSWORD_SUCCESS\",\r\n RESET_PASSWORD_FAILURE: \"RESET_PASSWORD_FAILURE\",\r\n RESET_PASSWORD_CLEAN_UP: \"RESET_PASSWORD_CLEAN_UP\",\r\n\r\n VALIDATE_PASSWORD_RESET_TOKEN_REQUEST:\r\n \"VALIDATE_PASSWORD_RESET_TOKEN_REQUEST\",\r\n VALIDATE_PASSWORD_RESET_TOKEN_SUCCESS:\r\n \"VALIDATE_PASSWORD_RESET_TOKEN_SUCCESS\",\r\n VALIDATE_PASSWORD_RESET_TOKEN_FAILURE: \"VALIDATE_PASSWORD_RESET_TOKEN_FAILURE\"\r\n};\r\n","import { ActionTypes } from \"./action-types\";\r\nimport HttpService from \"../services/service\";\r\nimport Auth from \"./../../../core/auth/auth\";\r\nimport UserIdentity from \"./../../../core/auth/userIdentity\";\r\nimport {\r\n addNotification,\r\n setProfile,\r\n} from \"./../../../redux/system/system-action-creators\";\r\nimport ProfileService from \"./../../../services/profile-service\";\r\n\r\nconst httpService = HttpService();\r\nconst profileService = ProfileService();\r\n\r\nexport const changePassword = (password, confirmPassword, resetToken) => (\r\n dispatch\r\n) => {\r\n dispatch(changePasswordRequest());\r\n httpService\r\n .changePassword(password, confirmPassword, resetToken)\r\n .then(({ data }) => {\r\n Auth.removeToken();\r\n Auth.setToken(data.access_token, data.refresh_token, data.expires_in);\r\n const userIdent = UserIdentity();\r\n profileService\r\n .getProfile(userIdent.getUserId())\r\n .then(({ data }) => {\r\n dispatch(setProfile(data));\r\n dispatch(changePasswordSuccess());\r\n })\r\n .catch(() => {\r\n dispatch(\r\n addNotification(\"Unable to fetch the user profile.\", \"error\")\r\n );\r\n });\r\n })\r\n .catch(() => {\r\n dispatch(changePasswordFailure());\r\n });\r\n};\r\n\r\nconst changePasswordRequest = () => ({\r\n type: ActionTypes.RESET_PASSWORD_REQUEST,\r\n});\r\n\r\nconst changePasswordSuccess = () => ({\r\n type: ActionTypes.RESET_PASSWORD_SUCCESS,\r\n});\r\n\r\nconst changePasswordFailure = () => (dispatch) => {\r\n dispatch({ type: ActionTypes.RESET_PASSWORD_FAILURE });\r\n dispatch(addNotification(\"Account does not exist.\", \"error\"));\r\n};\r\n\r\nexport const cleanUp = () => ({\r\n type: ActionTypes.RESET_PASSWORD_CLEAN_UP,\r\n});\r\n\r\nexport const validateResetToken = (resetToken) => (dispatch) => {\r\n dispatch(validateResetTokenRequest());\r\n httpService\r\n .validateResetToken(resetToken)\r\n .then(() => dispatch(validateResetTokenSuccess(resetToken)))\r\n .catch(() => dispatch(validateResetTokenFailure()));\r\n};\r\n\r\nconst validateResetTokenRequest = () => ({\r\n type: ActionTypes.VALIDATE_PASSWORD_RESET_TOKEN_REQUEST,\r\n});\r\n\r\nconst validateResetTokenSuccess = (resetToken) => ({\r\n type: ActionTypes.VALIDATE_PASSWORD_RESET_TOKEN_SUCCESS,\r\n payload: resetToken,\r\n});\r\n\r\nconst validateResetTokenFailure = () => (dispatch) => {\r\n dispatch({ type: ActionTypes.VALIDATE_PASSWORD_RESET_TOKEN_FAILURE });\r\n};\r\n","import HttpClient from \"./../../../core/http/httpClient\";\r\n\r\nconst Service = () => {\r\n let httpClient = HttpClient();\r\n\r\n const changePassword = (password, confirmPassword, resetToken) =>\r\n httpClient.post(`/v1/core/accounts/password/reset`, {\r\n password,\r\n confirmPassword,\r\n resetToken,\r\n });\r\n\r\n const validateResetToken = (resetToken) =>\r\n httpClient\r\n .post(`/v1/core/accounts/token/validate`, { resetToken })\r\n .then(({ data }) => data);\r\n\r\n return {\r\n changePassword,\r\n validateResetToken,\r\n };\r\n};\r\n\r\nexport default Service;\r\n","import * as Yup from \"yup\";\r\n\r\nconst resetPasswordSchema = Yup.object().shape({\r\n password: Yup.string(),\r\n confirmPassword: Yup.string()\r\n .min(1)\r\n .oneOf([Yup.ref(\"password\"), null], \"Passwords must match\")\r\n});\r\n\r\nexport default resetPasswordSchema;\r\n","const resetPasswordInitialValues = {\r\n password: \"\",\r\n confirmPassword: \"\"\r\n};\r\n\r\nexport default resetPasswordInitialValues;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport { withFormik } from \"formik\";\r\n\r\nconst mapStateToProps = (state) => state.resetPassword;\r\n\r\nconst formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n mapPropsToValues: () => initialValues,\r\n handleSubmit: (values, { props }) => {\r\n const { password, confirmPassword } = values;\r\n const { changePassword, resetToken } = props;\r\n changePassword(password, confirmPassword, resetToken);\r\n },\r\n displayName: \"resetPasswordForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(enhancedForm)\r\n);\r\n","import * as Yup from \"yup\";\r\n\r\nconst registrationValidationSchema = Yup.object().shape({\r\n firstName: Yup.string()\r\n .min(2, \"First name must have at least 2 characters.\")\r\n .max(30, \"First name is too long.\")\r\n .required(\"First name is required.\"),\r\n lastName: Yup.string()\r\n .min(2, \"First name must have at least 2 characters.\")\r\n .max(30, \"First name is too long.\")\r\n .required(\"Last name is required.\"),\r\n email: Yup.string()\r\n .required(\"Email is required.\")\r\n .email(\"Invalid email address\"),\r\n mobile: Yup.string()\r\n .required(\"Mobile is required.\")\r\n .matches(/^$|\\s+/, \"Mobile is required.\"),\r\n companyName: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string()\r\n .min(2, \"Company name must have at least 2 characters.\")\r\n .required(\"Company name is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n abn: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string()\r\n .min(14, \"Invalid australian business number format.\")\r\n .required(\"Australian business number is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n streetNumber: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string().required(\"Street number is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n streetName: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string().required(\"Street name is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n city: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string().required(\"City is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n state: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string().required(\"State is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n postcode: Yup.string().when(\"memberType\", {\r\n is: (val) => val === 2,\r\n then: Yup.string().required(\"Post code is required.\"),\r\n otherWise: Yup.string().notRequired,\r\n }),\r\n});\r\n\r\nexport default registrationValidationSchema;\r\n","import React from \"react\";\r\nimport { FormGroup, Col, Row, Label } from \"reactstrap\";\r\nimport CommonField from \"./../common-field\";\r\nimport australian_states from \"./australian-states\";\r\nimport Select from \"./../select\";\r\nimport { Field } from \"formik\";\r\n\r\nconst ManualAddressEntry = ({ accessor, label, prefix }) => {\r\n const getAccessor = () => {\r\n if (prefix) {\r\n return `${prefix}.${accessor}.`;\r\n }\r\n\r\n return accessor ? `${accessor}.` : \"\";\r\n };\r\n\r\n let baseAccessor = getAccessor();\r\n\r\n return (\r\n
    \r\n {label && (\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\n \r\n \r\n \r\n \r\n {({ form, field }) => (\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\nexport default ManualAddressEntry;\r\n","const addressComponents = [\r\n {\r\n name: \"Unit Number\",\r\n accessor: \"unitNumber\",\r\n isRequired: false\r\n },\r\n {\r\n name: \"Street Number\",\r\n accessor: \"streetNumber\",\r\n isRequired: true\r\n },\r\n {\r\n name: \"Street Name\",\r\n accessor: \"streetName\",\r\n isRequired: true\r\n },\r\n {\r\n name: \"City\",\r\n accessor: \"city\",\r\n isRequired: true\r\n },\r\n {\r\n name: \"State\",\r\n accessor: \"state\",\r\n isRequired: true\r\n },\r\n {\r\n name: \"Post Code\",\r\n accessor: \"postcode\",\r\n isRequired: true\r\n }\r\n];\r\n\r\nexport default addressComponents;\r\n","const getAddress = googleAddress => {\r\n if (!googleAddress || googleAddress === undefined)\r\n return {\r\n fullAddress: \"\",\r\n unitNumber: \"\",\r\n streetNumber: \"\",\r\n streetName: \"\",\r\n city: \"\",\r\n state: \"\",\r\n postcode: \"\"\r\n };\r\n\r\n let address = {\r\n fullAddress: \"\",\r\n unitNumber: \"\",\r\n streetNumber: \"\",\r\n streetName: \"\",\r\n city: \"\",\r\n state: \"\",\r\n postcode: \"\"\r\n };\r\n\r\n let promiseObject = new Promise(res => {\r\n getGeocodeAddress(googleAddress, function(addressComponents) {\r\n address.fullAddress = googleAddress.formatted_address;\r\n\r\n for (let addressComponent of addressComponents) {\r\n for (let i = 0; i < addressComponent.types.length; i++) {\r\n let type = addressComponent.types[0];\r\n\r\n switch (type) {\r\n case \"subpremise\":\r\n address.unitNumber = addressComponent.short_name;\r\n break;\r\n case \"street_number\":\r\n address.streetNumber = addressComponent.short_name;\r\n break;\r\n case \"route\":\r\n address.streetName = addressComponent.short_name;\r\n break;\r\n case \"locality\":\r\n address.city = addressComponent.short_name;\r\n break;\r\n case \"administrative_area_level_1\":\r\n address.state = addressComponent.short_name;\r\n break;\r\n case \"postal_code\":\r\n address.postcode = addressComponent.short_name;\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n\r\n res(address);\r\n });\r\n });\r\n\r\n return promiseObject;\r\n};\r\n\r\nconst getGeocodeAddress = function(googleAddress, f) {\r\n const google = window.google;\r\n const geocoder = new google.maps.Geocoder();\r\n\r\n geocoder.geocode({ address: googleAddress }, function(results, status) {\r\n if (status === \"OK\") {\r\n if (results[0]) f(results[0].address_components);\r\n else f(googleAddress.address_components);\r\n } else f(googleAddress.address_components);\r\n });\r\n};\r\n\r\nexport default getAddress;\r\n","import australian_states from \"./australian-states\";\r\nimport addressComponents from \"./address-components\";\r\nimport getAddress from \"./../../../core/utilities/address-service\";\r\n\r\nconst handleGoogleAddressResult = async (\r\n value,\r\n form,\r\n toggleManualEntry,\r\n toggleAddressRequestLoader,\r\n baseAccessor,\r\n prefix\r\n) => {\r\n //Start the beatloader animation\r\n toggleAddressRequestLoader(true);\r\n // Get results\r\n let resp = await getAddress(value);\r\n //Map Result\r\n let result = mapAddressResults(resp);\r\n // Fill the manual entry form fields with the parsed result\r\n\r\n if (prefix) {\r\n setAddressFieldValues(\r\n result,\r\n form.setFieldValue,\r\n `${prefix}.${baseAccessor}`\r\n );\r\n\r\n form.setFieldValue(\r\n baseAccessor ? `${prefix}.${baseAccessor}.fullAddress` : `fullAddress`,\r\n value\r\n );\r\n } else {\r\n setAddressFieldValues(result, form.setFieldValue, baseAccessor);\r\n\r\n form.setFieldValue(\r\n baseAccessor ? `${baseAccessor}.fullAddress` : `fullAddress`,\r\n value\r\n );\r\n }\r\n\r\n //Identify what fields are required. This is based on the isRequired prop from the address components list.\r\n let requiredFieldsAccesors = getRequiredFieldsAccessors();\r\n //Get the values of the required fields.\r\n let requiredFieldsValues = getRequiredFieldsValues(\r\n result,\r\n requiredFieldsAccesors\r\n );\r\n //Identify the important fields with missing values and map them accordingly.\r\n let missingFields = getMissingFields(requiredFieldsValues);\r\n //Execute this if there is a missing important field\r\n\r\n if (prefix) {\r\n checkErrors(\r\n missingFields,\r\n form,\r\n toggleManualEntry,\r\n `${prefix}.${baseAccessor}`\r\n );\r\n } else {\r\n checkErrors(missingFields, form, toggleManualEntry, baseAccessor);\r\n }\r\n\r\n //Stop the beatloader animation\r\n toggleAddressRequestLoader(false);\r\n};\r\n\r\nconst mapAddressResults = (response) => {\r\n return Object.entries(response).map((res) => {\r\n return {\r\n name: res[0],\r\n value: res[1],\r\n };\r\n });\r\n};\r\n\r\nconst setAddressFieldValues = (result, setFieldValue, baseAccessor) => {\r\n addressComponents.forEach(({ accessor }) => {\r\n let name = accessor;\r\n let value = result.find((c) => c.name === name).value;\r\n setFieldValue(\r\n baseAccessor ? `${baseAccessor}.${accessor}` : accessor,\r\n accessor === \"state\"\r\n ? australian_states.find((state) => state.value === value)\r\n : value\r\n );\r\n });\r\n};\r\n\r\n//Error handler Section\r\nconst getRequiredFieldsAccessors = () =>\r\n addressComponents\r\n .filter((component) => component.isRequired)\r\n .map(({ accessor }) => accessor);\r\n\r\nconst getRequiredFieldsValues = (result, requiredFieldsAccesors) => {\r\n return result.filter(({ name }) => {\r\n return requiredFieldsAccesors.find((accessor) => accessor === name);\r\n });\r\n};\r\n\r\nconst getMissingFields = (requiredFieldsValues) =>\r\n requiredFieldsValues\r\n .filter(({ value }) => value === \"\")\r\n .map(({ name }) => {\r\n return {\r\n accessor: name,\r\n label: addressComponents.find(({ accessor }) => accessor === name).name,\r\n };\r\n });\r\n\r\nconst checkErrors = (\r\n missingFields,\r\n { setFieldError, setFieldTouched },\r\n toggleManualEntry,\r\n baseAccessor\r\n) => {\r\n if (missingFields.length > 0) {\r\n missingFields.forEach(({ accessor, label }) => {\r\n let base = baseAccessor ? `${baseAccessor}.${accessor}` : accessor;\r\n //Will set the error message of the missing required field.\r\n setFieldError(base, `${label} is required.`);\r\n //Will set the 'touched' property missing required field.\r\n setFieldTouched(base, true);\r\n });\r\n //Show the address components\r\n toggleManualEntry(true);\r\n }\r\n};\r\n//Error handler Section\r\n\r\nexport default handleGoogleAddressResult;\r\n","import React, { useEffect } from \"react\";\r\n\r\nconst GoogleAddressSubmissionValidationHook = ({\r\n form,\r\n toggleManualEntry,\r\n accessor,\r\n prefix,\r\n}) => {\r\n useEffect(() => {\r\n if (!form.isSubmitting && !form.isValid) {\r\n let requiredAddressFields = [\r\n \"streetNumber\",\r\n \"streetName\",\r\n \"city\",\r\n \"state\",\r\n \"postcode\",\r\n ];\r\n\r\n if (prefix) {\r\n let errEntries = Object.entries(form.errors);\r\n let toggled = false;\r\n\r\n if (errEntries.length > 0) {\r\n errEntries.forEach((err) => {\r\n let errSectionEntries = Object.keys(err[1]);\r\n\r\n if (errSectionEntries.find((x) => x === accessor)) {\r\n toggleManualEntry(true);\r\n toggled = true;\r\n }\r\n });\r\n }\r\n } else if (accessor) {\r\n let errEntries = Object.entries(form.errors);\r\n let toggled = false;\r\n\r\n if (errEntries.length > 0) {\r\n errEntries.forEach((err) => {\r\n let errSectionEntries = Object.keys(err[1]);\r\n\r\n errSectionEntries.forEach((er) => {\r\n if (requiredAddressFields.includes(er) && !toggled) {\r\n toggleManualEntry(true);\r\n toggled = true;\r\n }\r\n });\r\n });\r\n }\r\n } else {\r\n let toggled = false;\r\n let errorKeys = Object.keys(form.errors);\r\n\r\n errorKeys.forEach((err) => {\r\n if (requiredAddressFields.includes(err) && !toggled) {\r\n toggleManualEntry(true);\r\n toggled = true;\r\n }\r\n });\r\n }\r\n }\r\n }, [form.isSubmitting]);\r\n\r\n return <>;\r\n};\r\n\r\nexport default GoogleAddressSubmissionValidationHook;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Label } from \"reactstrap\";\r\nimport Autocomplete from \"react-google-autocomplete\";\r\nimport ManualAddressEntry from \"./address-entry\";\r\nimport { Field } from \"formik\";\r\nimport { BeatLoader } from \"react-spinners\";\r\nimport \"./google-address-field.scss\";\r\nimport handleGoogleAddressResult from \"./google-autocomplete-handlers\";\r\nimport isNil from \"lodash/isNil\";\r\nimport GoogleAddressSubmissionValidationHook from \"./hooks/submission-hook\";\r\nimport PropTypes from \"prop-types\";\r\n\r\n//Prefix - section1\r\n//Accessor - postalAddress\r\n\r\nconst GoogleAddressField = ({\r\n allowAutoSearch,\r\n accessor,\r\n hasData,\r\n label,\r\n prefix,\r\n}) => {\r\n const [isManualEntry, toggleManualEntry] = useState(false);\r\n const [isAdressRequesting, toggleAddressRequestLoader] = useState(false);\r\n const autoSearch = allowAutoSearch === undefined ? true : allowAutoSearch;\r\n useEffect(() => toggleManualEntry(hasData ? true : false), []);\r\n\r\n const getDefaultValue = (values) => {\r\n if (accessor) {\r\n return isNil(values[accessor].fullAddress)\r\n ? \"\"\r\n : values[accessor].fullAddress;\r\n }\r\n\r\n return isNil(values.fullAddress) ? \"\" : values.fullAddress;\r\n };\r\n\r\n const getDefaultValueWithPrefix = (values) => {\r\n if (values[prefix] && accessor in values[prefix]) {\r\n return values[prefix][accessor].fullAddress;\r\n }\r\n };\r\n\r\n return (\r\n
    \r\n {/* Google auto-suggest address field */}\r\n
    \r\n \r\n \r\n {({ form }) => (\r\n
    \r\n \r\n {\r\n handleGoogleAddressResult(\r\n value,\r\n form,\r\n toggleManualEntry,\r\n toggleAddressRequestLoader,\r\n accessor,\r\n prefix\r\n );\r\n }}\r\n types={[\"address\"]}\r\n componentRestrictions={{ country: \"au\" }}\r\n />\r\n {isAdressRequesting && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n )}\r\n
    \r\n
    \r\n\r\n {/* Only visible when the user chose to enter address manually*/}\r\n {(isManualEntry || !autoSearch) && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n {/* Link to hide or show the auto-suggest field and manual address entry */}\r\n {!isAdressRequesting && autoSearch && (\r\n
    \r\n {\r\n ev.preventDefault();\r\n toggleManualEntry(!isManualEntry);\r\n }}\r\n >\r\n \r\n {isManualEntry\r\n ? \"Enter address using auto-suggest address box.\"\r\n : \"Enter address manually.\"}\r\n \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nGoogleAddressField.propTypes = {\r\n allowAutoSearch: PropTypes.bool,\r\n accessor: PropTypes.string.isRequired,\r\n prefix: PropTypes.string,\r\n hasData: PropTypes.bool,\r\n label: PropTypes.string,\r\n};\r\n\r\nexport default GoogleAddressField;\r\n","import { useEffect } from \"react\";\r\nimport states from \"./../../../components/common/google-address-field/australian-states\";\r\nimport { isNil } from \"lodash\";\r\n\r\nconst useIinitialiseProfilePage = (profile, setValues) => {\r\n useEffect(() => {\r\n if (profile.memberType != \"\" && !isNil(profile.memberType)) {\r\n if (profile.memberType === 2) {\r\n setValues({\r\n memberType: profile.memberType,\r\n firstName: profile.firstName,\r\n lastName: profile.lastName,\r\n email: profile.email,\r\n mobile: profile.mobile,\r\n companyName: profile.companyName,\r\n fullAddress: profile.fullAddress,\r\n unitNumber: profile.unitNumber,\r\n streetNumber: profile.streetNumber,\r\n streetName: profile.streetName,\r\n city: profile.city,\r\n state: states.find((state) => state.value === profile.state),\r\n postcode: profile.postcode,\r\n });\r\n } else {\r\n setValues({\r\n memberType: profile.memberType,\r\n firstName: profile.firstName,\r\n lastName: profile.lastName,\r\n email: profile.email,\r\n mobile: profile.mobile,\r\n });\r\n }\r\n }\r\n }, [profile.memberType]);\r\n};\r\n\r\nexport default useIinitialiseProfilePage;\r\n","import React from \"react\";\r\nimport { Form, withFormik } from \"formik\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport CommonField from \"./../../components/common/common-field\";\r\nimport MaskedInput from \"./../../components/common/masked-input\";\r\nimport FormikSubmitButton from \"./../../components/common/formik-submit-button\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport GoogleAddressField from \"./../../components/common/google-address-field\";\r\nimport useIinitialiseProfilePage from \"./hooks/initialise\";\r\n\r\nconst UpdateProfile = ({ isUpdating, profile, setValues, values }) => {\r\n let pageTitle = \"Update Profile\";\r\n\r\n useIinitialiseProfilePage(profile, setValues);\r\n\r\n return (\r\n \r\n
    \r\n
    \r\n \r\n \r\n {profile.memberType === 2 && (\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\n {profile.memberType === 2 && }\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 formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n handleSubmit: (values, { props }) => {\r\n const { updateProfile } = props;\r\n updateProfile(values);\r\n },\r\n displayName: \"updateProfileForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(UpdateProfile);\r\n\r\nexport default enhancedForm;\r\n","const ActionTypes = {\r\n UPDATE_PROFILE_REQUEST: \"UPDATE_PROFILE_REQUEST\",\r\n UPDATE_PROFILE_SUCCESS: \"UPDATE_PROFILE_SUCCESS\",\r\n UPDATE_PROFILE_FAILURE: \"UPDATE_PROFILE_FAILURE\",\r\n};\r\n\r\nexport default ActionTypes;\r\n","import ActionTypes from \"./action-types\";\r\nimport Service from \"./../services/service\";\r\nimport {\r\n addErrorNotification,\r\n addNotification,\r\n updateUserProfile,\r\n} from \"../../../redux/system/system-action-creators\";\r\n\r\nlet service = Service();\r\n\r\nexport const updateProfile = (payload) => (dispatch) => {\r\n dispatch(updateProfileRequest());\r\n service\r\n .updateProfile(payload)\r\n .then(() => {\r\n dispatch(updateProfileSuccess());\r\n dispatch(updateUserProfile(payload));\r\n dispatch(addNotification(\"Your profile has been successfully updated.\"));\r\n })\r\n .catch((error) => {\r\n dispatch(updateProfileFailure());\r\n dispatch(addErrorNotification(error, \"Unable to update your profile.\"));\r\n });\r\n};\r\n\r\nconst updateProfileRequest = () => ({\r\n type: ActionTypes.UPDATE_PROFILE_REQUEST,\r\n});\r\n\r\nconst updateProfileSuccess = () => ({\r\n type: ActionTypes.UPDATE_PROFILE_SUCCESS,\r\n});\r\n\r\nconst updateProfileFailure = () => ({\r\n type: ActionTypes.UPDATE_PROFILE_FAILURE,\r\n});\r\n","import HttpClient from \"./../../../core/http/httpClient\";\r\n\r\nconst UpdateProfileService = () => {\r\n let httpClient = HttpClient();\r\n\r\n const updateProfile = (values) => {\r\n let uri = \"/v1/core/accounts/update/own-profile/\";\r\n let payload =\r\n values.memberType === 2\r\n ? {\r\n ...values,\r\n state: values.state.value,\r\n postCode: values.postcode,\r\n }\r\n : values;\r\n return httpClient.put(uri, payload);\r\n };\r\n\r\n return {\r\n updateProfile,\r\n };\r\n};\r\n\r\nexport default UpdateProfileService;\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport { addNotification } from \"./../../redux/system/system-action-creators\";\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n ...state.updateProfile,\r\n profile: state.system.userProfile,\r\n };\r\n};\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators, addNotification })(Main)\r\n);\r\n","import React, { Component } from \"react\";\r\nimport { withRouter } from \"react-router\";\r\nimport ContentSection from \"../../components/common/content-section\";\r\nimport ContentService from \"../../services/content-service\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nclass ContentPage extends Component {\r\n getPageName = (pathName) => {\r\n return pathName\r\n .replace(new RegExp(\"^[/]+\"), \"\")\r\n .replace(new RegExp(\"[/]+$\"), \"\")\r\n .toLowerCase();\r\n };\r\n\r\n render() {\r\n const { location } = this.props;\r\n const pageName = this.getPageName(location.pathname);\r\n const page = ContentService().getContentPage(pageName);\r\n\r\n return (\r\n \r\n \r\n {!page.noContentSection && (\r\n {page.content}\r\n )}\r\n {page.noContentSection && page.content}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default withRouter(ContentPage);\r\n","const getImage = (file) => {\r\n return `url(/images/${file})`;\r\n};\r\n\r\nconst items = [\r\n {\r\n id: 1,\r\n title: \"Arrow Boards\",\r\n image: getImage(\"arrow-board.jpg\"),\r\n link: \"/services/arrow-boards/\",\r\n },\r\n {\r\n id: 2,\r\n title: \"VMS Boards\",\r\n image: getImage(\"vms-boards.jpg\"),\r\n link: \"/services/vms-boards/\",\r\n },\r\n {\r\n id: 3,\r\n title: \"Portable Traffic Lights\",\r\n image: getImage(\"portable-traffic-lights.jpg\"),\r\n link: \"/services/portable-traffic-lights/\",\r\n },\r\n {\r\n id: 4,\r\n title: \"Travel Times - Data Collection\",\r\n image: getImage(\"travel-times.jpeg\"),\r\n link: \"/services/travel-times/\",\r\n },\r\n {\r\n id: 5,\r\n title: \"Variable Speed Limit Signs\",\r\n image: getImage(\"variable-speed-limit-signs.jpg\"),\r\n link: \"/services/variable-speed-limit-signs/\",\r\n },\r\n {\r\n id: 6,\r\n title: \"Truck Mounted Attenuators\",\r\n image: getImage(\"truck-mounted-attenuators.jpg\"),\r\n link: \"/services/truck-mounted-attenuators/\",\r\n },\r\n {\r\n id: 7,\r\n title: \"Highway Trucks\",\r\n image: getImage(\"highway-truck.jpg\"),\r\n link: \"/services/highway-trucks/\",\r\n },\r\n {\r\n id: 8,\r\n title: \"Traffic Utes\",\r\n image: getImage(\"traffic-utes.jpg\"),\r\n link: \"/services/traffic-utes/\",\r\n },\r\n {\r\n id: 9,\r\n title: \"VMS Utes\",\r\n image: getImage(\"vms-ute.jpg\"),\r\n link: \"/services/vms-utes/\",\r\n },\r\n {\r\n id: 10,\r\n title: \"Portaboom\",\r\n image: getImage(\"portaboom.jpg\"),\r\n link: \"/services/portaboom/\",\r\n },\r\n];\r\n\r\nexport default items;\r\n","import React from \"react\";\r\nimport { Row, Col, Card } from \"reactstrap\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport items from \"./items\";\r\nimport \"./details.scss\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nconst ServicesLandingPage = ({ showPageTitle }) => {\r\n let showTitle =\r\n showPageTitle === undefined || showPageTitle === true ? true : false;\r\n\r\n return (\r\n \r\n \r\n

    \r\n We provide a wide range of traffic management services across Victoria,\r\n Australia. This includes Variable Message Signs (VMS), Arrow Boards,\r\n Variable Speed Limit Signs (VSLS), Portable Traffic Lights, Truck\r\n Mounted Attenuator Trucks (TMA’s), Traffic Utes, Highway Trucks. We also\r\n provide VMS repairs and maintenance services.\r\n

    \r\n
    Check out our services in more detail.
    \r\n\r\n \r\n {items.map((x) => {\r\n return (\r\n \r\n \r\n \r\n
    \r\n \r\n

    {x.title}

    \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 ServicesLandingPage;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\nimport ContentSection from \"./../../components/common/content-section\";\r\nimport \"./about.scss\";\r\nimport ButtonFx from \"./../../components/common/button-fx\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst About = () => {\r\n return (\r\n <>\r\n \r\n \r\n\r\n
    \r\n \r\n\r\n
    \r\n

    \r\n Mr Traffic Hire offers specialised traffic equipment hire on any\r\n scale, such as large infrastructure road works and projects to\r\n single Variable Messaging Signs (VMS) for advertising. We have a\r\n full range of traffic safety equipment.{\" \"}\r\n

    \r\n\r\n

    \r\n With over 25 years combined experience in the Hire industry Mr\r\n Traffic Hire can offer our clients the most up to date solutions\r\n for managing your needs, combined with our vast industry\r\n knowledge, makes us confident that we can provide solutions to our\r\n clients.\r\n

    \r\n\r\n

    \r\n At Mr Traffic Hire we endeavour to work closely with all our\r\n clients to find a solution that works and with our expert\r\n knowledge and understanding of current legislation, in addition to\r\n providing the highest level of quality, service and value, Mr\r\n Traffic Hire is confident we can help you achieve your targets.\r\n

    \r\n\r\n

    \r\n Mr Traffic Hire is available 24 hours a day, 7 days a week and we\r\n will work within your timeframes and budget to make it happen.\r\n

    \r\n
    \r\n
    \r\n \r\n \r\n

    \r\n

    Our Team

    \r\n

    \r\n
    \r\n
    \r\n
    Jamie Haitas
    \r\n General Manager\r\n

    \r\n Jamie has 10 years’ experience in the traffic hire industry. Jamie\r\n commenced with Kennards Traffic in 2010.\r\n

    \r\n

    \r\n Whilst at Kennards Jamie expanded the hire fleet from 20 VMS to\r\n 150, acquired a fleet of over 2000 barriers, built the first hire\r\n TMA in Australia and grew this to a fleet of 70 Australia wide.\r\n During this period Jamie also expanded the business from $4\r\n million to $20 million turnover.\r\n

    \r\n

    \r\n In 2014 Jamie was approached by RSEA to help grow the business.\r\n Jamie relocated RSEA to a more suitable premises and expanded the\r\n VMS fleet from 40 to 100. Jamie successfully procured the first\r\n Zoneguard steel barrier job on the Tullamarine Freeway upgrade,\r\n supplied and installed 10.5kms of steel barrier over 3 months and\r\n had in out for 2.5 years.\r\n

    \r\n

    \r\n In 2017 Jamie was approached by J1LED to build their Victorian\r\n business. Jamie sold 40 TMA’s into the Melbourne market. Whilst\r\n working for J1LED it became evident that with Jamie’s experience\r\n and expertise he should establish and commence his own hire\r\n business.\r\n

    \r\n

    \r\n In October 2017 Jamie formed Mr Traffic Hire Pty Ltd servicing the\r\n Traffic Management Industry with specialised traffic equipment and\r\n the company continues to grow.\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

    Jamie's Podcast

    \r\n

    \r\n

    \r\n “The ups and downs of my hire journey over the last 13\r\n years”\r\n

    \r\n

    \r\n Jamie opens up about some of the struggles he went through early\r\n in his career from over working and putting too much pressure on\r\n himself.\r\n

    \r\n

    \r\n Check out this link to hear Jamie talking about his path to Mr\r\n Traffic Hire.\r\n

    \r\n \r\n window.open(\r\n \"https://www.therentaljournal.com/chattingwithjamiehaitas\"\r\n )\r\n }\r\n >\r\n Listen Now\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default About;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../components/common/enhanced-content-section\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\nimport ButtonFx from \"./../../components/common/button-fx\";\r\n\r\nconst NewsSeparator = () => {\r\n return (\r\n
    \r\n 🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧\r\n
    \r\n );\r\n};\r\n\r\nconst NewsItem = ({ date, title, imageName, imageAltText, children }) => {\r\n return (\r\n
    \r\n
    \r\n
    \r\n {date}\r\n
    {title}
    \r\n {children}\r\n
    \r\n
    \r\n {imageAltText}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nconst News = () => {\r\n return (\r\n \r\n \r\n \r\n {/* \r\n

    \r\n

    \r\n
    \r\n */}\r\n \r\n

    \r\n With over 25 years combined experience, Mr Traffic Hire are ready to\r\n go above and beyond for your traffic management and equipment hire\r\n needs.\r\n

    \r\n

    Your problem, our solution.

    \r\n

    \r\n Available 24 hours a day, 7 days a week, our equipment is ready for\r\n your next project. 1300MRTRAFFIC\r\n

    \r\n \r\n \r\n \r\n

    \r\n We have various types of vehicles to suit all of your Traffic\r\n Management needs.\r\n

    \r\n
      \r\n
    • Scorpion MASH approved TMA’s
    • \r\n
    • Traffic Utes With VMS and Arrowboards
    • \r\n
    • POD trucks with VMS and sign racks
    • \r\n
    • TIP trucks
    • \r\n
    • Moving Trucks
    • \r\n
    \r\n

    Call us 24/7 for any traffic hire needs. 1300MRTRAFFIC

    \r\n \r\n \r\n \r\n

    \r\n Jamie Haitas is the General Manager at Mr Traffic Hire Australia in\r\n Melbourne, Australia. This is Jamie's second time on the podcast as we\r\n learn about two recent acquisitions he has made expanding into the\r\n general rental space.\r\n

    \r\n

    \r\n Check out this link to hear Jamie talking about his growth through\r\n acquisitions.\r\n

    \r\n window.open(\"https://youtu.be/08rKm6tdtP4\")}\r\n >\r\n Listen Now\r\n \r\n \r\n \r\n \r\n

    \r\n Improve site safety with our VMS Utes providing an clear message to\r\n motorists.\r\n

    \r\n

    \r\n All are equipped with VMS Boards, sign racks, warning lights and arrow\r\n boards.\r\n

    \r\n

    Call us 24/7 for any traffic hire needs. 1300 MRTRAFFIC

    \r\n \r\n \r\n \r\n

    \r\n Come check out our 2T Tip truck which can be driven on a car license.\r\n Our newest addition to the fleet.\r\n

    \r\n

    Call us 24/7 for any traffic hire needs. 0401 292 921

    \r\n \r\n \r\n \r\n

    \r\n Mr Traffic is now supplying PORTABOOM. Improve the safety of your\r\n worksite with PORTABOOM.\r\n

    \r\n

    Call us 24/7 for any traffic hire needs. 0401 292 921

    \r\n \r\n \r\n \r\n

    \r\n 2 x Brand new mash approved TMA’s available now for hire! Australia\r\n wide!\r\n

    {\" \"}\r\n

    \r\n After hours - no problem. Call us 24/7 for any traffic hire needs.\r\n 0401 292 921\r\n

    \r\n \r\n \r\n\r\n \r\n

    \r\n Brand new traffic utes ready to be shipped to SA for a long term\r\n project. Please yell out if you need any extra vehicles we have quite\r\n the fleet!{\" \"}\r\n

    \r\n

    \r\n For more information regarding traffic equipment hire please contact\r\n me directly on jamie@mrtraffichire.com.au or 0401 292 921\r\n

    \r\n \r\n \r\n \r\n

    \r\n Jamie opens up about some of the struggles he went through early in\r\n his career from over working and putting too much pressure on himself.\r\n

    \r\n

    \r\n Check out this link to hear Jamie talking about his path to Mr Traffic\r\n Hire.\r\n

    \r\n \r\n window.open(\r\n \"https://www.therentaljournal.com/chattingwithjamiehaitas\"\r\n )\r\n }\r\n >\r\n Listen Now\r\n \r\n \r\n \r\n \r\n

    \r\n Arrow boards, traffic lights and VMS. All available at Mr Traffic\r\n Hire.\r\n

    \r\n

    \r\n For more information regarding traffic equipment hire please contact\r\n me directly on jamie@mrtraffichire.com.au or 0401 292 921\r\n

    \r\n \r\n \r\n \r\n

    Keep your eyes peeled for these babies make sure you say hello.

    \r\n

    \r\n A huge thank you to all of our loyal supporters as this dream couldn’t\r\n have been achieved without you 💙💙\r\n

    \r\n \r\n \r\n \r\n

    \r\n Customer calls for an urgent delivery of 4 x Arrow boards to Mildura,\r\n Mr Traffic made it happen!\r\n

    \r\n

    \r\n Arrow boards, traffic lights and VMS. All available at Mr Traffic Hire\r\n

    \r\n

    \r\n For more information regarding traffic equipment hire please contact\r\n me directly at jamie@mrtraffichire.com.au or 0401 292 921\r\n

    \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default News;\r\n","import React from \"react\";\r\nimport \"./title-header.scss\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport { Container } from \"reactstrap\";\r\n\r\nconst TitleHeader = ({ title }) => {\r\n return (\r\n
    \r\n \r\n

    {title}

    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nTitleHeader.propTypes = {\r\n title: PropTypes.string,\r\n};\r\n\r\nexport default TitleHeader;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst ArrowBoards = () => {\r\n let pageTitle = \"Arrow Boards\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    Arrow Boards show you the way
    \r\n

    \r\n Our portable Arrow Board is Ideal for a multitude of applications\r\n from long term lane closures to changing traffic management\r\n situations at work zones, construction and mining sites, among\r\n other site applications.\r\n

    \r\n

    \r\n Our portable directional arrow boards are solar powered, have high\r\n bright visibility and low consuming LED lanterns.\r\n

    \r\n\r\n

    \r\n

    Meets all requirements of AS4191
    \r\n\r\n
      \r\n
    • User friendly touchpad for easy programming
    • \r\n
    • Anti theft and tamper protection
    • \r\n
    • Easy towing
    • \r\n
    • 360° Rotatable Display
    • \r\n
    • Automatic brightness control
    • \r\n
    • Multiple Light Configurations
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ArrowBoards;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst Portaboom = () => {\r\n let pageTitle = \"Portaboom\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    Improve safety with PORTABOOM®
    \r\n

    \r\n PORTABOOM® is a patented, portable boom gate specifically designed\r\n for all temporary traffic and access control scenarios. Remote\r\n control operated, PORTABOOM® allows Traffic Controllers to stand\r\n in a safe zone, removing them from the direct line of traffic.{\" \"}\r\n

    \r\n\r\n

    \r\n

    Meets all requirements of AS4191
    \r\n\r\n
      \r\n
    • Easy to use
    • \r\n
    • Quick set up
    • \r\n
    • Battery operated
    • \r\n
    • Training provided
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Portaboom;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst VmsBoards = () => {\r\n let pageTitle = \"VMS Boards\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    \r\n Our VMS come in 3 sizes and can be used for a broad range of\r\n requirements.\r\n
    \r\n

    \r\n They are battery operated as well as solar powered, a convenient\r\n energy-saving option for industries within the road and traffic\r\n management sector and customers who are simply looking for a\r\n solution for your advertising needs.\r\n

    \r\n

    Our boards meet the requirements of AS4191.

    \r\n

    \r\n

    Our VMS can be used for the following;
    \r\n\r\n
      \r\n
    • Road safety messages
    • \r\n
    • Real-time traffic information relating to incidents
    • \r\n
    • Roadworks / Travel times
    • \r\n
    • Speed limit warning
    • \r\n
    • Detected speed limit advise (using radar)
    • \r\n
    • Sales / Promotional campaign
    • \r\n
    • General message display
    • \r\n
    • Events and Festivals
    • \r\n
    • Corporate and Private functions
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n

    \r\n Our VMS are programmed via BARTCO's VMS WEB STUDIO real-time\r\n internet based communication facility, enabling live communication\r\n via cellular or satellite networks from any internet enabled PC,\r\n Laptop, Tablet or Mobile, eliminating the need for the\r\n installation of local software.\r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default VmsBoards;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst PortableTrafficLights = () => {\r\n let pageTitle = \"Portable Traffic Lights\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    Portable Traffic Lights - Safety in Technology
    \r\n

    \r\n Our Portable Traffic Light includes the latest technology\r\n enhancements within the traffic light controller, which now allows\r\n customers complete on-site control as well as remote control via\r\n the internet to minimise cost, risk and downtime.\r\n

    \r\n

    \r\n Our Portable Traffic Light can be linked with other BARTCO\r\n PTL’s to allow multiway intersection control.\r\n

    \r\n

    \r\n They are designed around a sturdy but light weight solar powered\r\n dual trailer system, quick and easy to setup and operate.\r\n

    \r\n

    \r\n They are designed for high-visibility signalling in applications\r\n ranging from work zones and bridge repair to special events and\r\n emergency backup.\r\n

    \r\n

    \r\n Whatever your application, you can be sure that our traffic\r\n equipment will have your needs covered. BARTCO Portable Solar\r\n Traffic Signals are the most advanced and reliable portable\r\n traffic signal system to the industry today.\r\n

    \r\n\r\n

    \r\n

    Features
    \r\n\r\n
      \r\n
    • Easy operation
    • \r\n
    • Multi-way Intersection capable
    • \r\n
    • Anti theft and tamper protection
    • \r\n
    • Solar pwered / Battery operated
    • \r\n
    • Dual trailer system for 2 lights
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PortableTrafficLights;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst TravelTimes = () => {\r\n let pageTitle = \"Travel Times - Data Collection\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    Travel Time Data Displayed For All
    \r\n

    \r\n Use our colour VMS boards to display travel time data for\r\n motorists. Our direct access to VicRoads data provides the most up\r\n to date travel time information.\r\n

    \r\n\r\n

    \r\n

    Meets all requirements of AS4191
    \r\n\r\n
      \r\n
    • Easy operation
    • \r\n
    • Fully remote control
    • \r\n
    • Anti theft and tamper protection
    • \r\n
    • Solar pwered / Battery operated
    • \r\n
    • VicRoads STREAMS compatible
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default TravelTimes;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst VariableSpeedLimitSigns = () => {\r\n let pageTitle = \"Variable Speed Limit Signs\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    Improve Site Safety with our VSLS
    \r\n

    \r\n Our Variable Speed Limit Signs (VSLS) are ideal for any worksite\r\n requiring temporary speed limit signs, and are proven effective in\r\n reducing speeds approaching roadworks and temporary speed\r\n restricted areas.\r\n

    \r\n

    \r\n Our VSLS employ the latest technology with full remote control and\r\n data recording and are compatible with VicRoads STREAMS.\r\n

    \r\n\r\n

    \r\n

    Features
    \r\n\r\n
      \r\n
    • Easy operation
    • \r\n
    • Fully remote control
    • \r\n
    • Anti theft and tamper protection
    • \r\n
    • Solar pwered / Battery operated
    • \r\n
    • VicRoads STREAMS compatible
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default VariableSpeedLimitSigns;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst TruckMountedAttenuators = () => {\r\n let pageTitle = \"Truck Mounted Attenuators\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    TMA’s Save Lives
    \r\n

    \r\n Let us help with your worksite protection utilising our state of\r\n the art Truck Mounted Attenuators (TMA’s). We recognise that\r\n TMA’s are a key part of the hierarchy of controls for\r\n worksite protection and have invested in the latest equipment.\r\n

    \r\n

    \r\n Our trucks meet all requirements of the National Guidelines for\r\n Truck Mounted Attenuators TMA-NWP-01 and NHVR Vehicle Standards\r\n Guide (VSG-12)\r\n

    \r\n\r\n

    \r\n

    Key Features
    \r\n\r\n
      \r\n
    • Fit for purpose trucks
    • \r\n
    • Front under-run protection
    • \r\n
    • TL3 Rated TMA
    • \r\n
    • C Class LED Arrowboard
    • \r\n
    • VMS Board
    • \r\n
    • High intensity LED lights
    • \r\n
    • Rear cameras
    • \r\n
    • Impact Braking system
    • \r\n
    • Air Horn
    • \r\n
    • 4 Point safety harness
    • \r\n
    • Driver seat protection
    • \r\n
    • Heavy duty head board for driver protection
    • \r\n
    • UHF radio
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default TruckMountedAttenuators;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst HighwayTrucks = () => {\r\n let pageTitle = \"Highway Trucks\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    \r\n Suppliment your fleet with our Highway Traffic Management trucks\r\n
    \r\n

    \r\n We have a stock of late model trucks ready for use. All are\r\n equiped with sign racks, warning lights and arrow boards to meet\r\n all your clients expectations.\r\n

    \r\n

    \r\n

    Key Features
    \r\n\r\n
      \r\n
    • Fully maintained and safety checked
    • \r\n
    • Car license rated
    • \r\n
    • B Clasee roof mounted Arrow Board
    • \r\n
    • Warning lights
    • \r\n
    • VMS board
    • \r\n
    • Drop deck area for employee safety
    • \r\n
    • Tow bar
    • \r\n
    • Sign rack
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default HighwayTrucks;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst TrafficUtes = () => {\r\n let pageTitle = \"Traffic Utes\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    Suppliment your fleet with our Traffic Management utes
    \r\n

    \r\n We have a stock of late model Traffic Management utes ready for\r\n use. All are equipped with sign racks, warning lights and arrow\r\n boards to meet all your clients expectations.\r\n

    \r\n

    \r\n

    Key Features
    \r\n\r\n
      \r\n
    • Fully maintained and safety checked
    • \r\n
    • B Class roof mounted Arrow Board
    • \r\n
    • Warning lights
    • \r\n
    • Tow bar
    • \r\n
    • Sign rack
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default TrafficUtes;\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"./../../../components/common/enhanced-content-section\";\r\nimport TitleHeader from \"./../../../components/common/title-header\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst VmsUtes = () => {\r\n let pageTitle = \"VMS Utes\";\r\n\r\n return (\r\n <>\r\n \r\n\r\n \r\n \r\n
    \r\n \r\n\r\n
    \r\n
    \r\n Our Traffic Management VMS Utes can improve your site safety.\r\n
    \r\n

    \r\n We now have a stock of late model VMS utes ready for use. All are\r\n equipped with VMS Boards, sign racks, warning lights and arrow\r\n boards to meet all your clients expectations.\r\n

    \r\n

    \r\n Improve site safety with our VMS Utes providing an clear message\r\n to motorists.\r\n

    \r\n

    \r\n

    Key Features
    \r\n\r\n
      \r\n
    • Fully maintained and safety checked
    • \r\n
    • LED VMS Board mounted at the rear
    • \r\n
    • B Class roof mounted Arrow Board
    • \r\n
    • Warning lights
    • \r\n
    • Tow bar
    • \r\n
    • Sign rack
    • \r\n
    • GPS tracking
    • \r\n
    \r\n

    \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nexport default VmsUtes;\r\n","import React from \"react\";\r\nimport { useExpandOnError } from \"./use-expand-on-error\";\r\n\r\nconst ExpandOnErrorComponent = ({\r\n errors,\r\n isSubmitting,\r\n setBatchToggleByState,\r\n}) => {\r\n useExpandOnError({\r\n isSubmitting,\r\n errors,\r\n setBatchToggleByState,\r\n });\r\n\r\n return <>;\r\n};\r\n\r\nexport default ExpandOnErrorComponent;\r\n","import { useEffect } from \"react\";\r\n\r\nexport const useExpandOnError = ({\r\n errors,\r\n isSubmitting,\r\n setBatchToggleByState\r\n}) => {\r\n useEffect(() => {\r\n if (isSubmitting && errors) {\r\n //Will transform all errors into named arrays.\r\n let arrayedErrors = Object.entries(errors);\r\n\r\n //Will look for sections with errors and error array of sections\r\n //This is the array that contains the sections with errors.\r\n let toggleOpenArr = arrayedErrors\r\n .filter(error => error[1] != undefined)\r\n .map(error => error[0]);\r\n\r\n //Will look for sections that are not included in toggleOpenArr\r\n //This is the array that contains the sections without errors.\r\n let toggleCloseArr = arrayedErrors\r\n .filter(error => !toggleOpenArr.find(err => error[0] == err))\r\n .map(error => error[0]);\r\n\r\n setBatchToggleByState(toggleOpenArr, toggleCloseArr);\r\n }\r\n }, [isSubmitting]);\r\n};\r\n","/**\r\n * Navigation Plugin for Collapsible item\r\n * - Previous and Next button\r\n * for sample please see audits-page/audit-sections.jsx\r\n *\r\n * 03.12.2019 EH Change implementation when extracting navigation props (do it on the Fly!)\r\n */\r\nimport React from \"react\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport { SectionLink } from \"react-scroll-section\";\r\nimport ButtonFx from \"./../button-fx\";\r\n\r\n/**\r\n * Determine navigation props on the fly!\r\n * @param {*} id\r\n * @param {*} sectionIds\r\n */\r\nconst getNavigationProps = (id, sectionIds) => {\r\n let indx = sectionIds.indexOf(id);\r\n if (indx === -1)\r\n return {\r\n previousId: null,\r\n nextId: null\r\n };\r\n\r\n let prevId = indx === 0 ? null : sectionIds[indx - 1];\r\n let nextId = indx >= sectionIds.length - 1 ? null : sectionIds[indx + 1];\r\n\r\n return {\r\n previousId: prevId,\r\n nextId\r\n };\r\n};\r\n\r\nconst SectionNavigation = props => {\r\n const { idsRegistered, sectionId, setToggle, setToggleAll } = props;\r\n const navProps = getNavigationProps(sectionId, idsRegistered);\r\n const { previousId, nextId } = navProps;\r\n\r\n const prev = scrollFn => {\r\n setToggleAll(false);\r\n if (previousId) {\r\n setToggle(previousId, true);\r\n scrollFn();\r\n }\r\n };\r\n\r\n const next = scrollFn => {\r\n setToggleAll(false);\r\n if (nextId) {\r\n setToggle(nextId, true);\r\n setTimeout(() => scrollFn(), 500);\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n {previousId && (\r\n \r\n {({ onClick }) => (\r\n \r\n prev(onClick)}\r\n >\r\n Previous\r\n \r\n \r\n )}\r\n \r\n )}\r\n\r\n {nextId && (\r\n \r\n {({ onClick }) => (\r\n next(onClick)}\r\n >\r\n Next \r\n \r\n )}\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default SectionNavigation;\r\n","const customerTypes = [\r\n {\r\n value: 0,\r\n label: \"Pty Ltd Company\",\r\n },\r\n {\r\n value: 1,\r\n label: \"Public Company\",\r\n },\r\n {\r\n value: 2,\r\n label: \"Partnership\",\r\n },\r\n {\r\n value: 3,\r\n label: \"Sole Trader\",\r\n },\r\n {\r\n value: 4,\r\n label: \"Trust\",\r\n },\r\n];\r\n\r\nexport default customerTypes;\r\n","const IconFactory = () => {\r\n const getIcon = type => {\r\n switch (type) {\r\n case \"pdf\":\r\n return \"fas fa-file-pdf pdf\";\r\n case \"doc\":\r\n case \"docx\":\r\n return \"fas fa-file-word word\";\r\n case \"xls\":\r\n case \"xlsx\":\r\n return \"fas fa-file-excel excel\";\r\n case \"jpg\":\r\n case \"JPG\":\r\n case \"jpeg\":\r\n case \"png\":\r\n case \"gif\":\r\n case \"bmp\":\r\n return \"fas fa-file-image image\";\r\n default:\r\n return \"fas fa-file file\";\r\n }\r\n };\r\n\r\n return {\r\n getIcon\r\n };\r\n};\r\n\r\nexport default IconFactory;\r\n","const getColor = (props) => {\r\n if (props.isDragAccept) {\r\n return \"#43325d\";\r\n }\r\n if (props.validForReject) {\r\n // && props.isDragReject\r\n return \"#ff1744\";\r\n }\r\n if (props.isDragActive) {\r\n return \"#2196f3\";\r\n }\r\n return \"#eeeeee\";\r\n};\r\n\r\nconst toKilobyte = (fileSize) => {\r\n if (fileSize === \"-\") return \"0\";\r\n if (fileSize <= 0) return 0;\r\n return (fileSize / 1024).toFixed(2);\r\n};\r\n\r\nconst readFileAsync = async (inputFile) => {\r\n let reader = new FileReader();\r\n return new Promise((resolve) => {\r\n let { name, size } = inputFile;\r\n reader.onload = function (e) {\r\n resolve({\r\n name,\r\n size,\r\n data: e.target.result,\r\n });\r\n };\r\n reader.readAsDataURL(inputFile);\r\n });\r\n};\r\n\r\nasync function fileListToBase64(fileList) {\r\n // create function which return resolved promise\r\n // with data:base64 string\r\n function getBase64(file) {\r\n if (file.type === \"init\") {\r\n return new Promise((res, rej) => {\r\n res({ name: file.name, data: file.preview, size: file.size });\r\n });\r\n }\r\n\r\n const reader = new FileReader();\r\n return new Promise((resolve) => {\r\n reader.onloadend = (ev) => {\r\n resolve({\r\n name: file.name,\r\n preview: ev.target.result,\r\n data: ev.target.result,\r\n size: file.size,\r\n type: \"new\",\r\n });\r\n };\r\n reader.readAsDataURL(file);\r\n });\r\n }\r\n // here will be array of promisified functions\r\n const promises = [];\r\n\r\n // loop through fileList with for loop\r\n for (let i = 0; i < fileList.length; i++) {\r\n promises.push(getBase64(fileList[i]));\r\n }\r\n\r\n // array with base64 strings\r\n return await Promise.all(promises);\r\n}\r\n\r\nexport { fileListToBase64, toKilobyte, getColor, readFileAsync };\r\n","import React from \"react\";\r\nimport { Lightbox } from \"react-modal-image\";\r\n\r\nconst ImagePreviewFx = ({\r\n isOpen,\r\n imageLargeUrl,\r\n showRotate,\r\n closePreview,\r\n alternateText\r\n}) => {\r\n return (\r\n <>\r\n {isOpen && (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default ImagePreviewFx;\r\n","import React, { Component } from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport { Tooltip } from \"reactstrap\";\r\n\r\nclass ToolTipFx extends Component {\r\n static propTypes = {\r\n placement: PropTypes.string,\r\n target: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n placement: \"auto\"\r\n };\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n tooltipOpen: false\r\n };\r\n }\r\n\r\n toggle = () => {\r\n this.setState({\r\n tooltipOpen: !this.state.tooltipOpen\r\n });\r\n };\r\n\r\n render() {\r\n return (\r\n \r\n {this.props.children}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default ToolTipFx;\r\n","import React, { useEffect, useState, useCallback } from \"react\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport {\r\n Container,\r\n Row,\r\n Col,\r\n Button,\r\n Card,\r\n CardBody,\r\n CardFooter,\r\n} from \"reactstrap\";\r\nimport { useDropzone } from \"react-dropzone\";\r\nimport \"./file-uploader.scss\";\r\nimport styled from \"styled-components\";\r\nimport IconFactory from \"./service/icon-factory\";\r\nimport { fileListToBase64, toKilobyte, getColor } from \"./service/helper\";\r\nimport ImagePreviewFx from \"./../image-preview-fx/image-preview-fx\";\r\nimport ToolTipFx from \"./../tooltip/tool-tip-fx\";\r\nimport BlockUiFx from \"./../block-ui-fx\";\r\n\r\nconst StyledContainer = styled.div`\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 20px;\r\n border-width: 2px;\r\n border-radius: 2px;\r\n border-color: ${(props) => getColor(props)};\r\n border-style: dashed;\r\n background-color: #fafafa;\r\n color: #bdbdbd;\r\n outline: none;\r\n transition: border 0.24s ease-in-out;\r\n`;\r\n\r\nconst FileUploader = (props) => {\r\n const [files, setFiles] = useState([]);\r\n const [isPreviewOpen, setPreviewOpen] = useState(false);\r\n const [previewUrl, setPreviewUrl] = useState(\"\");\r\n const [isDropping, toggleDrop] = useState(false);\r\n const {\r\n text,\r\n dropText,\r\n minSize,\r\n maxSize,\r\n maxFiles,\r\n initialFiles,\r\n mode,\r\n fileTypes,\r\n isReadonly,\r\n cloudStoragePath,\r\n onChange,\r\n } = props;\r\n\r\n const onDrop = useCallback(async (acceptedFiles) => {\r\n // Reject files exceeding the maxFiles limit\r\n toggleDrop(true);\r\n let finalAcceptedFiles = [];\r\n let filesCount = files.length + acceptedFiles.length;\r\n if (filesCount > maxFiles) {\r\n let itemsUpperLimit = maxFiles - files.length;\r\n finalAcceptedFiles = acceptedFiles.slice(0, itemsUpperLimit);\r\n } else {\r\n finalAcceptedFiles = acceptedFiles;\r\n }\r\n\r\n let additionalFiles = finalAcceptedFiles.map((file) =>\r\n Object.assign(file, {\r\n preview: URL.createObjectURL(file),\r\n })\r\n );\r\n\r\n // Convert to base64 each file\r\n const arrayOfBase64Files = await fileListToBase64(additionalFiles);\r\n\r\n files.push(...arrayOfBase64Files);\r\n setFiles(files);\r\n\r\n onChange([...files]);\r\n toggleDrop(false);\r\n });\r\n\r\n const getFileTypesAccepted = () => {\r\n if (mode === \"Image\") return \"image/*\";\r\n if (mode === \"WorkBook\") return [\".pdf\", \".jpg\", \".jpeg\", \".png\"].join(\",\");\r\n if (mode === \"Pdf\") return \".pdf\";\r\n if (mode === \"File\" && fileTypes.length === 0) {\r\n return [\r\n \".doc\",\r\n \".docx\",\r\n \".xls\",\r\n \".xlsx\",\r\n \".pdf\",\r\n \".jpg\",\r\n \".png\",\r\n \".gif\",\r\n \".bmp\",\r\n ].join(\",\");\r\n } else {\r\n return fileTypes.join(\",\");\r\n }\r\n };\r\n\r\n const {\r\n getRootProps,\r\n getInputProps,\r\n isDragActive,\r\n isDragAccept,\r\n isDragReject,\r\n rejectedFiles,\r\n acceptedFiles,\r\n } = useDropzone({\r\n accept: getFileTypesAccepted(),\r\n minSize: minSize,\r\n maxSize: maxSize,\r\n //multiple: true,\r\n onDrop,\r\n disabled: isReadonly,\r\n });\r\n\r\n const openPreview = (file) => {\r\n setPreviewUrl(file.preview);\r\n setPreviewOpen(true);\r\n };\r\n\r\n const removeFile = useCallback((file) => () => {\r\n if (isReadonly) return;\r\n URL.revokeObjectURL(file.preview);\r\n let filesUpdated = files.filter((o) => o !== file);\r\n setFiles(filesUpdated);\r\n\r\n onChange([...filesUpdated]);\r\n });\r\n\r\n const closePreview = (e) => {\r\n setPreviewOpen(false);\r\n };\r\n\r\n const downloadFile = useCallback((file) => () => {\r\n const { name, type } = file;\r\n if (type === \"new\") return false;\r\n var a = document.createElement(\"a\");\r\n a.href = `${cloudStoragePath}/${name}`;\r\n a.setAttribute(\"download\", \"download\");\r\n var b = document.createEvent(\"MouseEvents\");\r\n b.initEvent(\"click\", false, true);\r\n a.dispatchEvent(b);\r\n return false;\r\n });\r\n\r\n // Refactor: Separate file\r\n const imageListing = files.map((file, index) => (\r\n
    \r\n
    \r\n
    \r\n openPreview(file)}\r\n />\r\n Open preview\r\n
    \r\n
    \r\n
    \r\n
    \r\n Filename\r\n
    \r\n
    \r\n {file.name}\r\n
    \r\n
    \r\n Size\r\n
    \r\n
    \r\n {toKilobyte(file.size)} Kb\r\n
    \r\n
    \r\n {!isReadonly && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n ));\r\n\r\n const limitFileName = (fileName) => {\r\n if (fileName.length > 18) {\r\n let name = fileName.substring(0, fileName.lastIndexOf(\".\"));\r\n let extension = fileName.substring(fileName.lastIndexOf(\".\"));\r\n return `${name.substring(0, 16)}...${extension}`;\r\n }\r\n return fileName;\r\n };\r\n\r\n // Refactor: Separate file\r\n const fileListing = files.map((file, index) => {\r\n const ext = file.name.substring(file.name.lastIndexOf(\".\") + 1);\r\n const icon = IconFactory().getIcon(ext);\r\n let limitedName = limitFileName(file.name);\r\n\r\n return (\r\n \r\n \r\n \r\n
    \r\n \r\n Remove\r\n
    \r\n \r\n \r\n <>\r\n \r\n {file.type === \"init\" && (\r\n Download\r\n )}\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n {limitedName}\r\n \r\n {\" \"}\r\n ({Math.round(file.size / 1024)} kb)\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n );\r\n });\r\n\r\n const DragMessage = ({ isDragActive, isDragReject, rejected }) => {\r\n return (\r\n <>\r\n \r\n {!isDragActive && !rejected && (\r\n \r\n {text} Maximum of {maxFiles} file{maxFiles > 1 ? \"s\" : \"\"}.\r\n {files.length > 0 ? (\r\n <>\r\n
    \r\n \r\n {files.length} file(s) attached.\r\n \r\n \r\n ) : null}\r\n

    \r\n )}\r\n {isDragActive && !rejected && (\r\n \r\n {dropText}\r\n

    \r\n )}\r\n {rejected && (\r\n \r\n File type is not supported.\r\n

    \r\n )}\r\n
    \r\n \r\n );\r\n };\r\n\r\n const FileTooLarge = () => {\r\n const isFileTooLarge =\r\n rejectedFiles.length > 0 && rejectedFiles[0].size > maxSize;\r\n return (\r\n \r\n {isFileTooLarge &&

    File is too large.

    }\r\n
    \r\n );\r\n };\r\n\r\n const reloadInitialFiles = () => {\r\n if (!initialFiles || initialFiles.length <= 0) return;\r\n setFiles(\r\n initialFiles.map((o) =>\r\n Object.assign(\r\n {},\r\n {\r\n type: \"init\",\r\n name: o.name,\r\n size: o.size,\r\n preview: getPreviewData(o),\r\n }\r\n )\r\n )\r\n );\r\n };\r\n\r\n const getPreviewData = (file) => {\r\n if (file.data.includes(\"data:\")) return file.data;\r\n return `${cloudStoragePath}/${file.name}`;\r\n };\r\n\r\n const isImageMode = () => mode === \"Image\";\r\n\r\n // Component did mount\r\n useEffect(() => {\r\n reloadInitialFiles();\r\n }, []);\r\n\r\n useEffect(\r\n () => () => {\r\n // Make sure to revoke the data uris to avoid memory leaks\r\n files.forEach((file) => URL.revokeObjectURL(file.preview));\r\n },\r\n [files]\r\n );\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n 0}\r\n className=\"mb-2\"\r\n >\r\n \r\n 0}\r\n />\r\n \r\n \r\n {isImageMode() ? (\r\n \r\n ) : (\r\n {fileListing}\r\n )}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FileUploader;\r\n\r\nFileUploader.propTypes = {\r\n minSize: PropTypes.number,\r\n maxSize: PropTypes.number,\r\n maxFiles: PropTypes.number,\r\n mode: PropTypes.string, //Note: Mode can be Image or File, each mode has different layout and behavior\r\n fileTypes: PropTypes.array,\r\n initialFiles: PropTypes.array,\r\n isReadonly: PropTypes.bool,\r\n cloudStoragePath: PropTypes.string,\r\n onChange: PropTypes.func.isRequired,\r\n};\r\n\r\nFileUploader.defaultProps = {\r\n minSize: 0,\r\n maxSize: 100000, // 100kb default\r\n maxFiles: 5,\r\n mode: \"File\",\r\n fileTypes: [],\r\n initialFiles: [],\r\n cloudStoragePath: \"\",\r\n isReadonly: false,\r\n};\r\n","import React, { useEffect } from \"react\";\r\nimport CollapsibleItem from \"components/common/collapsible-panel/collapsible-item\";\r\nimport CommonFastField from \"components/common/common-fast-field\";\r\nimport SectionNavigation from \"components/common/collapsible-panel/section-navigation\";\r\nimport Select from \"components/common/select\";\r\nimport { Col, Row, Label } from \"reactstrap\";\r\nimport customerTypes from \"constants/customer-types\";\r\nimport GoogleAddressField from \"components/common/google-address-field\";\r\nimport shallowequal from \"shallowequal\";\r\nimport FileUploader from \"components/common/file-uploader/file-uploader\";\r\nimport CustomErrorMessage from \"components/common/error-message\";\r\nimport MaskedInput from \"components/common/masked-input\";\r\n\r\nconst CustomerInformation = ({\r\n handleInit,\r\n collapseState,\r\n handleToggle,\r\n idsRegistered,\r\n setToggle,\r\n setToggleAll,\r\n values,\r\n setFieldValue,\r\n errors,\r\n validateForm,\r\n}) => {\r\n useEffect(() => {\r\n if (values && values.section1 && values.section1.customerType) {\r\n setFieldValue(\r\n \"section1.customerTypeValue\",\r\n values.section1.customerType.value\r\n );\r\n }\r\n }, [values.section1 && values.section1.customerType]);\r\n\r\n return (\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 {!values.section1.sameAddresses && (\r\n \r\n )}\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n {values.section1.customerTypeValue === 4 && (\r\n <>\r\n \r\n\r\n {\r\n setFieldValue(\r\n `section1.trustDeed`,\r\n files.map(({ name, data, size }) => {\r\n return {\r\n name,\r\n data,\r\n size: Math.round(size / 1024),\r\n };\r\n })\r\n );\r\n\r\n validateForm();\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\nfunction valuesAreEqual(prevProps, nextProps) {\r\n return (\r\n shallowequal(prevProps.values.section1, nextProps.values.section1) &&\r\n shallowequal(prevProps.errors.section1, nextProps.errors.section1) &&\r\n prevProps.collapseState.section1 === nextProps.collapseState.section1\r\n );\r\n}\r\n\r\nexport default React.memo(CustomerInformation, valuesAreEqual);\r\n","import { v4 as uuidv4 } from \"uuid\";\r\n\r\nconst generateUuid = () => {\r\n return uuidv4();\r\n};\r\n\r\nexport { generateUuid as default };\r\n","import React, { useEffect } from \"react\";\r\nimport CollapsibleItem from \"components/common/collapsible-panel/collapsible-item\";\r\nimport CommonFastField from \"components/common/common-fast-field\";\r\nimport SectionNavigation from \"components/common/collapsible-panel/section-navigation\";\r\nimport { Col, Row, Card } from \"reactstrap\";\r\nimport GoogleAddressField from \"components/common/google-address-field\";\r\nimport { FieldArray } from \"formik\";\r\nimport { Link } from \"react-router-dom\";\r\nimport shallowequal from \"shallowequal\";\r\nimport generateUuid from \"core/utilities/guid-generator\";\r\n\r\nconst Details = ({\r\n handleInit,\r\n collapseState,\r\n handleToggle,\r\n idsRegistered,\r\n setToggle,\r\n setToggleAll,\r\n values,\r\n setFieldValue,\r\n}) => {\r\n useEffect(() => {\r\n if (\r\n values.section1.customerType &&\r\n values.section1.customerType.value === 3 &&\r\n values.section2.persons.length > 1\r\n ) {\r\n setFieldValue(\"section2.persons\", [values.section2.persons[0]]);\r\n }\r\n }, [values.section1.customerType]);\r\n\r\n const getTitle = (customerType) => {\r\n if (customerType) {\r\n switch (customerType.value) {\r\n case 0:\r\n case 1:\r\n case 4:\r\n return \"Details of the Director(s)\";\r\n case 2:\r\n return \"Details of the Partner(s)\";\r\n default:\r\n return \"Details of the Sole Trader\";\r\n }\r\n }\r\n\r\n return \"Details\";\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n (\r\n
    \r\n {values.section2.persons && values.section2.persons.length > 0 && (\r\n <>\r\n {values.section2.persons.map((person, index) => (\r\n \r\n
    Person {index + 1}
    \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 {values.section1.customerType.value !== 3 && (\r\n
    \r\n {\r\n e.preventDefault();\r\n arrayHelpers.push({\r\n id: generateUuid(),\r\n name: \"\",\r\n address: {\r\n fullAddress: \"\",\r\n unitNumber: \"\",\r\n streetNumber: \"\",\r\n streetName: \"\",\r\n city: \"\",\r\n state: \"\",\r\n postcode: \"\",\r\n },\r\n phone: \"\",\r\n email: \"\",\r\n driversLicence: \"\",\r\n });\r\n }}\r\n to=\"\"\r\n >\r\n Add Person\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\nfunction valuesAreEqual(prevProps, nextProps) {\r\n return (\r\n prevProps.values.section1.customerType ===\r\n nextProps.values.section1.customerType &&\r\n shallowequal(prevProps.values.section2, nextProps.values.section2) &&\r\n prevProps.collapseState.section2 === nextProps.collapseState.section2\r\n );\r\n}\r\n\r\nexport default React.memo(Details, valuesAreEqual);\r\n","//label\r\n//accessor\r\n//options [{label, value}]\r\n//direction (vertical, horizontal)\r\n\r\nimport React from \"react\";\r\nimport { FormGroup, Input, Label } from \"reactstrap\";\r\nimport { Field } from \"formik\";\r\nimport \"./dynamic-radio-group.scss\";\r\n\r\nconst DynamicRadioGroup = (props) => {\r\n const { label, accessor, options, direction } = props;\r\n\r\n return (\r\n
    \r\n \r\n {({ field, meta, form }) => (\r\n <>\r\n \r\n\r\n \r\n
    \r\n \r\n {options.map((option) => {\r\n return (\r\n \r\n <>\r\n \r\n form.setFieldValue(accessor, option.value)\r\n }\r\n />\r\n \r\n form.setFieldValue(accessor, option.value)\r\n }\r\n >\r\n {option.label}\r\n \r\n \r\n
    \r\n );\r\n })}\r\n
    \r\n \r\n \r\n
    \r\n {meta.touched && meta.error &&
    {meta.error}
    }\r\n
    \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default DynamicRadioGroup;\r\n","const sendBy = [\r\n {\r\n value: 0,\r\n label: \"Email\",\r\n },\r\n {\r\n value: 1,\r\n label: \"Fax\",\r\n },\r\n {\r\n value: 2,\r\n label: \"Post\",\r\n },\r\n];\r\n\r\nexport default sendBy;\r\n","import React from \"react\";\r\nimport CollapsibleItem from \"components/common/collapsible-panel/collapsible-item\";\r\nimport CommonFastField from \"components/common/common-fast-field\";\r\nimport SectionNavigation from \"components/common/collapsible-panel/section-navigation\";\r\nimport DynamicRadioGroup from \"components/common/dynamic-radio-group\";\r\nimport sendBy from \"constants/send-by\";\r\nimport { Col, Row } from \"reactstrap\";\r\nimport shallowequal from \"shallowequal\";\r\n\r\nconst AccountsPayableContact = ({\r\n handleInit,\r\n collapseState,\r\n handleToggle,\r\n idsRegistered,\r\n setToggle,\r\n setToggleAll,\r\n}) => {\r\n return (\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\nfunction valuesAreEqual(prevProps, nextProps) {\r\n return (\r\n shallowequal(prevProps.values.section3, nextProps.values.section3) &&\r\n prevProps.collapseState.section3 === nextProps.collapseState.section3\r\n );\r\n}\r\n\r\nexport default React.memo(AccountsPayableContact, valuesAreEqual);\r\n","import React, { useEffect } from \"react\";\r\nimport SignatureCanvas from \"react-signature-canvas\";\r\nimport { Row, Col, Button } from \"reactstrap\";\r\nimport \"./signature-pad.scss\";\r\nimport { PropTypes } from \"prop-types\";\r\nimport ToolTipFx from \"./../tooltip/tool-tip-fx\";\r\n\r\nconst SignaturePad = ({\r\n id,\r\n penColor,\r\n padColor,\r\n onChange,\r\n outputType,\r\n initialValue,\r\n padHeight,\r\n padWidth,\r\n isReadonly,\r\n}) => {\r\n let signatureCanvas = {};\r\n\r\n const clearPad = () => {\r\n signatureCanvas.clear();\r\n onChange(\"\");\r\n };\r\n\r\n const getTrimmedCanvasPad = () => {\r\n return signatureCanvas.getTrimmedCanvas().toDataURL(outputType);\r\n };\r\n\r\n const onEnd = () => {\r\n onChange(getTrimmedCanvasPad());\r\n };\r\n\r\n useEffect(() => {\r\n if (initialValue && signatureCanvas.isEmpty()) {\r\n signatureCanvas.clear();\r\n signatureCanvas.fromDataURL(initialValue);\r\n }\r\n\r\n if (isReadonly && signatureCanvas) signatureCanvas.off();\r\n\r\n return () => {\r\n if (signatureCanvas) signatureCanvas.off();\r\n };\r\n }, [initialValue]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n
    \r\n {\r\n signatureCanvas = ref;\r\n }}\r\n />\r\n
    \r\n
    \r\n \r\n \r\n \r\n Clear\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default React.memo(SignaturePad);\r\n\r\nSignaturePad.propTypes = {\r\n id: PropTypes.string,\r\n onChange: PropTypes.func.isRequired,\r\n penColor: PropTypes.string,\r\n padColor: PropTypes.string,\r\n outputType: PropTypes.string,\r\n padHeight: PropTypes.number,\r\n padWidth: PropTypes.number,\r\n};\r\n\r\nSignaturePad.defaultProps = {\r\n id: \"signaturePad1\",\r\n penColor: \"#000\",\r\n padColor: \"#fff\",\r\n outputType: \"image/png\",\r\n padHeight: 200,\r\n padWidth: 500,\r\n};\r\n","import React from \"react\";\r\nimport \"./actual-terms.scss\";\r\n\r\nconst ActualTerms = () => {\r\n return (\r\n
    \r\n
    The Hire Contract
    \r\n\r\n
    \r\n
      \r\n
    1. \r\n Mr Traffic Hire agrees to hire Equipment to the\r\n Customer on terms set out in this contract including the attached\r\n Terms and Conditions of Hire. If the Customer wishes to hire\r\n Equipment the Customer must complete and sign a Hire Schedule and\r\n such other documents as Mr Traffic Hire may require. Each Hire\r\n Schedule is not a separate contract but forms a part of the hire\r\n agreement between Mr Traffic Hire and the Customer. Mr Traffic Hire\r\n may decline to enter into a Hire Schedule or to hire Equipment to\r\n the Customer at any time if it has reasonable cause to do so and it\r\n may terminate the hire agreement if the Customer breaches its\r\n obligations to Mr Traffic Hire.\r\n
    2. \r\n
    3. \r\n The Customer and the Guarantor(s) agree and\r\n acknowledge that Mr Traffic Hire has the right to amend this\r\n agreement including the terms and conditions of Hire from time to\r\n time and will give notice to the Customer and Guarantor of any\r\n amendments.\r\n
    4. \r\n
    5. \r\n By signing this contract the Customer and Guarantor(s) warrant that\r\n all information given to Mr Traffic Hire in connection with it is\r\n true.\r\n
    6. \r\n
    7. \r\n Credit - Mr Traffic Hire has the right to withdraw\r\n credit or vary the customer’s credit limit at any time and without\r\n the obligation to provide any reason.\r\n
    8. \r\n
    9. \r\n E-Tags and Tolls - If you hire a vehicle from Mr\r\n Traffic it is your responsibility to place an eTag in the car. If a\r\n tag is not placed within the vehicle and Mr Traffic is billed for\r\n tolls used, you will incur the cost of the tolls plus a 25% + GST\r\n administration fee for any costs incurred on top of the original fee\r\n charged by the toll company. Processing of these fees is a\r\n time-consuming process which we need to recoup costs for. If you\r\n have any questions, please contact our office on 1300mrtraffic.\r\n
    10. \r\n
    \r\n
    \r\n\r\n
    \r\n Interests and Costs\r\n
    \r\n\r\n
    \r\n Accounts are due and payable within thirty (30) days of invoice. Credit\r\n may be cancelled/suspended without notice if accounts are not paid by\r\n the due date. A late payment fee may be charged for overdue accounts.\r\n The Customer will pay to Mr Traffic Hire any commissions, legal costs\r\n (on a solicitor-client basis) or expenses paid by Mr Traffic Hire to its\r\n collection agents and/or lawyers in relation to the collection of any\r\n moneys owed to Mr Traffic Hire that are not paid within the terms of\r\n credit provided.\r\n
    \r\n\r\n
    \r\n Joint and Several\r\n
    \r\n\r\n
    \r\n The Customer and Guarantor(s) agree that the rights, duties and\r\n obligations of the parties under this agreement binds them jointly and\r\n severally and that an agreement, representation or warranty for the\r\n benefit of two or more persons is for the benefit of them jointly and\r\n severally.\r\n
    \r\n\r\n
    \r\n Use of Information\r\n
    \r\n\r\n
    \r\n Pursuant to the Privacy Act (1988), the Customer and each of its\r\n Directors and Guarantors authorise Mr Traffic Hire and its related\r\n bodies to obtain information about my/our personal or commercial credit\r\n worthiness and my/our bank or any trade referee disclosed at the\r\n application for credit and any credit provider and credit reporting\r\n agency for the purpose of assessing the application for credit, or in\r\n connection with any guarantee; to use, disclose, or exchange with other\r\n credit providers information about my/our personal or commercial credit\r\n arrangements in order to assess the application for credit (including\r\n whether to accept as guarantor or any person signing), monitor credit\r\n worthiness and collect overdue accounts; and to disclose the contents of\r\n a credit report by a credit reporting agency to Mr Traffic Hire’s\r\n solicitors or mercantile agents.\r\n
    \r\n\r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default ActualTerms;\r\n","import React from \"react\";\r\n\r\nconst Guarantee = () => {\r\n return (\r\n <>\r\n
    \r\n GUARANTEE AND INDEMNITY\r\n
    \r\n\r\n
    \r\n IF YOUR COMPANY IS NOT PUBLICLY LISTED THE DIRECTORS MUST SIGN AND\r\n GUARANTEE THE INDEMNITY.\r\n
    \r\n\r\n
    \r\n I/we, being the directors of the Customer unconditionally guarantee the\r\n performance of the Company with regards to the repayments of its debt to\r\n Mr Traffic Hire pursuant to the details of this agreement. If the\r\n Company fails to make any payment to Mr Traffic Hire or fails to perform\r\n any of its obligations under the agreement, I/we will make all payments\r\n to Mr Traffic Hire as if I/we were the principals of the Agreement.\r\n
    \r\n \r\n );\r\n};\r\n\r\nexport default Guarantee;\r\n","import React, { useEffect } from \"react\";\r\nimport CollapsibleItem from \"components/common/collapsible-panel/collapsible-item\";\r\nimport SectionNavigation from \"components/common/collapsible-panel/section-navigation\";\r\nimport { Col, Row, Card, Label } from \"reactstrap\";\r\nimport SignaturePad from \"components/common/signature-pad/signature-pad\";\r\nimport CommonFastField from \"components/common/common-fast-field\";\r\nimport { FieldArray } from \"formik\";\r\nimport shallowequal from \"shallowequal\";\r\nimport ActualTerms from \"./actual-terms/actual-terms\";\r\nimport Guarantee from \"./actual-terms/guarantee\";\r\nimport moment from \"moment\";\r\n\r\nconst TermsAndConditions = ({\r\n handleInit,\r\n collapseState,\r\n handleToggle,\r\n idsRegistered,\r\n setToggle,\r\n setToggleAll,\r\n setFieldValue,\r\n values,\r\n}) => {\r\n useEffect(() => {\r\n setFieldValue(\r\n \"section4.signatures\",\r\n values.section2.persons.map((x) => {\r\n return {\r\n id: x.id,\r\n name: x.name,\r\n specimen: \"\",\r\n };\r\n })\r\n );\r\n\r\n setFieldValue(\r\n \"section4.guarantors\",\r\n values.section2.persons.map((x) => {\r\n return {\r\n id: x.id,\r\n name: x.name,\r\n specimen: \"\",\r\n };\r\n })\r\n );\r\n }, [values.section2.persons]);\r\n\r\n return (\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 {values.section4.signatures &&\r\n values.section4.signatures.length > 0 && (\r\n <>\r\n {values.section4.signatures.map((signature, index) => (\r\n
    \r\n
    \r\n Person {index + 1}\r\n {values.section4.signatures[index].name && (\r\n <>\r\n \r\n ({values.section4.signatures[index].name}\r\n \r\n - {moment().format(\"DD/MM/YYYY\")}\r\n \r\n )\r\n \r\n \r\n )}\r\n
    \r\n\r\n \r\n setFieldValue(\r\n `section4.signatures.${index}.specimen`,\r\n value\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 {values.section1.customerType &&\r\n values.section1.customerType.value === 0 && (\r\n
    \r\n
    \r\n \r\n
    \r\n\r\n \r\n (\r\n
    \r\n {values.section4.guarantors &&\r\n values.section4.guarantors.length > 0 && (\r\n <>\r\n {values.section4.guarantors.map(\r\n (guarantor, index) => (\r\n
    \r\n
    \r\n Person {index + 1}\r\n {values.section4.guarantors[index]\r\n .name && (\r\n \r\n (\r\n {\r\n values.section4.guarantors[index]\r\n .name\r\n }\r\n \r\n - {moment().format(\"DD/MM/YYYY\")}\r\n \r\n )\r\n \r\n )}\r\n
    \r\n\r\n \r\n setFieldValue(\r\n `section4.guarantors.${index}.specimen`,\r\n value\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\nfunction valuesAreEqual(prevProps, nextProps) {\r\n return (\r\n shallowequal(\r\n prevProps.values.section1.customerType,\r\n nextProps.values.section1.customerType\r\n ) &&\r\n shallowequal(prevProps.values.section4, nextProps.values.section4) &&\r\n shallowequal(\r\n prevProps.values.section2.persons,\r\n nextProps.values.section2.persons\r\n ) &&\r\n prevProps.collapseState.section4 === nextProps.collapseState.section4\r\n );\r\n}\r\n\r\nexport default React.memo(TermsAndConditions, valuesAreEqual);\r\n","import React, { useEffect } from \"react\";\r\nimport { Form } from \"formik\";\r\nimport CollapsiblePanel from \"components/common/collapsible-panel/collapsible-panel\";\r\nimport FormikSubmitButton from \"components/common/formik-submit-button\";\r\nimport ExpandOnErrorComponent from \"components/common/expand-on-error\";\r\nimport EnhancedContentSection from \"components/common/enhanced-content-section/index\";\r\n\r\nimport CustomerInformation from \"./collapsible-items/customer-information\";\r\nimport Details from \"./collapsible-items/details\";\r\nimport AccountsPayableContact from \"./collapsible-items/accounts-payable-contact\";\r\nimport TermsAndConditions from \"./collapsible-items/terms-conditions\";\r\nimport PageTagging from \"components/common/page-tagging/page-tagging\";\r\n\r\nconst ApplicationForCredit = ({\r\n isSubmittingForm,\r\n isSubmitting,\r\n errors,\r\n setFieldValue,\r\n handleSubmit,\r\n values,\r\n cleanUp,\r\n setFieldError,\r\n validateForm,\r\n}) => {\r\n useEffect(() => {\r\n return () => cleanUp();\r\n }, []);\r\n return (\r\n <>\r\n \r\n \r\n\r\n
    \r\n \r\n {({\r\n handleInit,\r\n collapseState,\r\n idsRegistered,\r\n handleToggle,\r\n setToggle,\r\n setToggleAll,\r\n setBatchToggleByState,\r\n }) => {\r\n return (\r\n <>\r\n \r\n\r\n {/* Customer Information */}\r\n
    \r\n \r\n
    \r\n {/* Customer Information */}\r\n\r\n {/* Details */}\r\n
    \r\n \r\n
    \r\n {/* Details */}\r\n\r\n {/* Accounts Payable Contact */}\r\n
    \r\n \r\n
    \r\n {/* Accounts Payable Contact */}\r\n\r\n {/* Terms and Conditions */}\r\n
    \r\n \r\n
    \r\n {/* Terms and Conditions */}\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\nexport default ApplicationForCredit;\r\n","import * as Yup from \"yup\";\r\n\r\nconst CustomerInformationValidationSchema = Yup.object().shape({\r\n personCompletingTheApplication: Yup.string()\r\n .required(\"Name of person completing this application is required.\")\r\n .min(2, \"Name of person completing this application is too short.\")\r\n .max(50, \"Name of person completing this application is too long.\"),\r\n position: Yup.string().required(\"Position is required.\"),\r\n customerType: Yup.string().required(\"Customer type is required.\"),\r\n fullNameOfCustomer: Yup.string()\r\n .required(\"Customer's full name is required.\")\r\n .min(2, \"Customer's full name is too short.\")\r\n .max(50, \"Customer's full name is too long.\"),\r\n businessName: Yup.string().required(\"Trading or business Name is required.\"),\r\n acn: Yup.string().when(\"customerTypeValue\", {\r\n is: (val) => {\r\n return val === 0 || val === 1;\r\n },\r\n then: Yup.string().required(\"ACN is required.\"),\r\n otherWise: Yup.string().notRequired(),\r\n }),\r\n abn: Yup.string()\r\n .min(14, \"Invalid australian business number format.\")\r\n .required(\"Australian business number is required.\"),\r\n phone: Yup.string().required(\"Phone is required.\"),\r\n email: Yup.string()\r\n .email(\"Invalid email address.\")\r\n .required(\"Email is required.\"),\r\n customerTradingLength: Yup.string().required(\r\n \"Please indicate how long has customer been trading.\"\r\n ),\r\n businessAddress: Yup.object().shape({\r\n unitNumber: Yup.string(),\r\n streetNumber: Yup.string().required(\"Street number is required.\"),\r\n streetName: Yup.string().required(\"Street name is required.\"),\r\n city: Yup.string().required(\"City is required.\"),\r\n state: Yup.string().required(\"State is required.\"),\r\n postcode: Yup.string().required(\"Post code is required.\"),\r\n }),\r\n postalAddress: Yup.object().when(\"sameAddresses\", {\r\n is: (val) => !val,\r\n then: Yup.object().shape({\r\n unitNumber: Yup.string(),\r\n streetNumber: Yup.string().required(\"Street number is required.\"),\r\n streetName: Yup.string().required(\"Street name is required.\"),\r\n city: Yup.string().required(\"City is required.\"),\r\n state: Yup.string().required(\"State is required.\"),\r\n postcode: Yup.string().required(\"Post code is required.\"),\r\n }),\r\n }),\r\n trustDeed: Yup.array().when(\"customerTypeValue\", {\r\n is: (val) => val === 4,\r\n then: Yup.array()\r\n .min(1, \"Please add at least one file.\")\r\n .required(\"Please add at least one file.\"),\r\n }),\r\n});\r\n\r\nexport default CustomerInformationValidationSchema;\r\n","import * as Yup from \"yup\";\r\n\r\nconst DetailsValidationSchema = Yup.object().shape({\r\n persons: Yup.array()\r\n .of(\r\n Yup.object().shape({\r\n name: Yup.string()\r\n .min(2, \"Name is too short.\")\r\n .required(\"Name is required.\"),\r\n phone: Yup.string().required(\"Phone is required.\"),\r\n email: Yup.string()\r\n .email(\"Invalid email address.\")\r\n .required(\"Email is required.\"),\r\n address: Yup.object().shape({\r\n unitNumber: Yup.string(),\r\n streetNumber: Yup.string().required(\"Street number is required.\"),\r\n streetName: Yup.string().required(\"Street name is required.\"),\r\n city: Yup.string().required(\"City is required.\"),\r\n state: Yup.string().required(\"State is required.\"),\r\n postcode: Yup.string().required(\"Post code is required.\"),\r\n }),\r\n driversLicence: Yup.string()\r\n .min(2, \"Driver's licence is too short.\")\r\n .required(\"Driver's licence is required.\"),\r\n })\r\n )\r\n .min(1, \"Contact person is required.\")\r\n .required(\"Contact person is required.\"),\r\n});\r\n\r\nexport default DetailsValidationSchema;\r\n","import * as Yup from \"yup\";\r\n\r\nconst AccountsPayableContactValidationSchema = Yup.object().shape({\r\n name: Yup.string().required(\"Name is required.\"),\r\n phone: Yup.string().required(\"Phone is required.\"),\r\n email: Yup.string()\r\n .required(\"Email is required.\")\r\n .email(\"Invalid email address.\"),\r\n sendBy: Yup.string().required(\r\n \"Please indicate how you require your invoice to be sent by.\"\r\n ),\r\n});\r\n\r\nexport default AccountsPayableContactValidationSchema;\r\n","import * as Yup from \"yup\";\r\n\r\nconst TermsAndConditionsValidationSchema = Yup.object().shape({\r\n agreeTerms: Yup.bool().oneOf([true], \"Please confirm your agreement.\"),\r\n});\r\n\r\nexport default TermsAndConditionsValidationSchema;\r\n","import * as Yup from \"yup\";\r\n\r\nimport CustomerInformationValidationSchema from \"./sub-schemas/customer-information-validation-schema\";\r\nimport DetailsValidationSchema from \"./sub-schemas/details-validation-schema\";\r\nimport AccountsPayableContactValidationSchema from \"./sub-schemas/accounts-payable-contact-validation-schema\";\r\nimport TermsAndConditionsValidationSchema from \"./sub-schemas/terms-conditions-validation-schema\";\r\n\r\nconst enrolmentValidationSchema = Yup.object().shape({\r\n section1: CustomerInformationValidationSchema,\r\n section2: DetailsValidationSchema,\r\n section3: AccountsPayableContactValidationSchema,\r\n section4: TermsAndConditionsValidationSchema,\r\n});\r\n\r\nexport default enrolmentValidationSchema;\r\n","import CustomerInformationValues from \"./sub-initial-values/customer-information-initial-values\";\r\nimport DetailsInitialValues from \"./sub-initial-values/details-initial-values\";\r\nimport AccountsPayableContactValues from \"./sub-initial-values/accounts-payable-contact-initial-values\";\r\nimport TermsAndConditionsInitialValues from \"./sub-initial-values/terms-conditions-initial-values\";\r\n\r\nconst enrolmentInitialValues = {\r\n section1: CustomerInformationValues,\r\n section2: DetailsInitialValues,\r\n section3: AccountsPayableContactValues,\r\n section4: TermsAndConditionsInitialValues,\r\n};\r\n\r\nexport default enrolmentInitialValues;\r\n","const CustomerInformationValues = {\r\n personCompletingTheApplication: \"\",\r\n position: \"\",\r\n customerType: \"\",\r\n customerTypeValue: \"\",\r\n fullNameOfCustomer: \"\",\r\n businessName: \"\",\r\n acn: \"\",\r\n abn: \"\",\r\n phone: \"\",\r\n fax: \"\",\r\n email: \"\",\r\n customerTradingLength: \"\",\r\n trustDeed: [],\r\n sameAddresses: true,\r\n\r\n businessAddress: {\r\n fullAddress: \"\",\r\n unitNumber: \"\",\r\n streetNumber: \"\",\r\n streetName: \"\",\r\n city: \"\",\r\n state: \"\",\r\n postcode: \"\",\r\n },\r\n\r\n postalAddress: {\r\n fullAddress: \"\",\r\n unitNumber: \"\",\r\n streetNumber: \"\",\r\n streetName: \"\",\r\n city: \"\",\r\n state: \"\",\r\n postcode: \"\",\r\n },\r\n};\r\n\r\nexport default CustomerInformationValues;\r\n","import generateUuid from \"core/utilities/guid-generator\";\r\n\r\nconst DetailsInitialValues = {\r\n persons: [\r\n {\r\n id: generateUuid(),\r\n name: \"\",\r\n address: {\r\n fullAddress: \"\",\r\n unitNumber: \"\",\r\n streetNumber: \"\",\r\n streetName: \"\",\r\n city: \"\",\r\n state: \"\",\r\n postcode: \"\",\r\n },\r\n phone: \"\",\r\n email: \"\",\r\n driversLicence: \"\",\r\n },\r\n ],\r\n};\r\n\r\nexport default DetailsInitialValues;\r\n","const AccountsPayableContactValues = {\r\n name: \"\",\r\n phone: \"\",\r\n email: \"\",\r\n sendBy: \"\",\r\n};\r\n\r\nexport default AccountsPayableContactValues;\r\n","const TermsAndConditionsInitialValues = {\r\n agreeTerms: false,\r\n signatures: [\r\n {\r\n id: \"\",\r\n name: \"\",\r\n specimen: \"\",\r\n },\r\n ],\r\n guarantors: [\r\n {\r\n id: \"\",\r\n name: \"\",\r\n specimen: \"\",\r\n },\r\n ],\r\n};\r\n\r\nexport default TermsAndConditionsInitialValues;\r\n","export const ActionTypes = {\r\n APPLY_FOR_CREDIT_SUBMIT_REQUEST: \"APPLY_FOR_CREDIT_SUBMIT_REQUEST\",\r\n APPLY_FOR_CREDIT_SUBMIT_SUCCESS: \"APPLY_FOR_CREDIT_SUBMIT_SUCCESS\",\r\n APPLY_FOR_CREDIT_SUBMIT_FAILURE: \"APPLY_FOR_CREDIT_SUBMIT_FAILURE\",\r\n\r\n APPLY_FOR_CREDIT_CLEAN_UP: \"APPLY_FOR_CREDIT_CLEAN_UP\",\r\n};\r\n","import HttpClient from \"core/http/httpClient\";\r\n\r\nconst Service = () => {\r\n let httpClient = HttpClient();\r\n let uri = \"/apply-for-credit\";\r\n\r\n const applyForCredit = (values) => {\r\n let payload = formatModel(values);\r\n return httpClient.post(uri, payload, {\r\n responseType: \"blob\",\r\n });\r\n };\r\n\r\n const formatModel = (values) => {\r\n let businessAddress = {\r\n ...values.section1.businessAddress,\r\n state: values.section1.businessAddress.state.value,\r\n };\r\n\r\n let payload = {\r\n section1: {\r\n ...values.section1,\r\n customerType: values.section1.customerType.value,\r\n businessAddress,\r\n postalAddress: values.section1.sameAddresses\r\n ? businessAddress\r\n : {\r\n ...values.section1.postalAddress,\r\n state: values.section1.postalAddress.state.value,\r\n },\r\n trustDeed:\r\n values.section1.customerTypeValue === 4\r\n ? JSON.stringify(values.section1.trustDeed[0])\r\n : \"\",\r\n },\r\n section2: {\r\n persons: values.section2.persons.map((x) => {\r\n return {\r\n ...x,\r\n address: {\r\n ...x.address,\r\n state: x.address.state.value,\r\n },\r\n };\r\n }),\r\n },\r\n section3: {\r\n ...values.section3,\r\n sendBy: values.section3.sendBy.value,\r\n },\r\n section4: {\r\n signatures: JSON.stringify(values.section4.signatures),\r\n guarantors: JSON.stringify(values.section4.guarantors),\r\n },\r\n };\r\n\r\n delete payload.section1.customerTypeValue;\r\n delete payload.section1.sameAddresses;\r\n\r\n return payload;\r\n };\r\n\r\n return {\r\n applyForCredit,\r\n };\r\n};\r\n\r\nexport default Service;\r\n","import { ActionTypes } from \"./action-types\";\r\nimport Service from \"../services/service\";\r\nimport {\r\n addNotification,\r\n addErrorNotification,\r\n} from \"redux/system/system-action-creators\";\r\nimport { saveAs } from \"file-saver\";\r\n\r\nconst service = Service();\r\n\r\nexport const applyForCredit = (values, resetForm) => (dispatch) => {\r\n dispatch(applyForCreditRequest());\r\n\r\n service\r\n .applyForCredit(values)\r\n .then((resp) => {\r\n dispatch(applyForCreditSuccess());\r\n dispatch(\r\n addNotification(\r\n \"Thank you, your application for credit has been submitted successfully.\"\r\n )\r\n );\r\n\r\n resetForm();\r\n\r\n const pdfBlob = new Blob([resp.data], { type: \"application/pdf\" });\r\n saveAs(pdfBlob, \"credit-application.pdf\");\r\n\r\n window.location.reload();\r\n })\r\n .catch((error) => {\r\n dispatch(applyForCreditFailure());\r\n dispatch(\r\n addErrorNotification(\r\n error,\r\n \"Unable to submit the application for credit.\"\r\n )\r\n );\r\n });\r\n};\r\n\r\nconst applyForCreditRequest = () => ({\r\n type: ActionTypes.APPLY_FOR_CREDIT_SUBMIT_REQUEST,\r\n});\r\nconst applyForCreditSuccess = () => ({\r\n type: ActionTypes.APPLY_FOR_CREDIT_SUBMIT_SUCCESS,\r\n});\r\nconst applyForCreditFailure = () => ({\r\n type: ActionTypes.APPLY_FOR_CREDIT_SUBMIT_FAILURE,\r\n});\r\n\r\nexport const cleanUp = () => ({\r\n type: ActionTypes.APPLY_FOR_CREDIT_CLEAN_UP,\r\n});\r\n","import { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport Main from \"./main\";\r\nimport { withFormik } from \"formik\";\r\nimport validationSchema from \"./formik/validation-schema\";\r\nimport initialValues from \"./formik/initial-values\";\r\nimport * as ActionCreators from \"./redux/action-creators\";\r\nimport { addNotification } from \"./../../redux/system/system-action-creators\";\r\n\r\nconst mapStateToProps = ({ applicationForCredit }) => applicationForCredit;\r\n\r\nconst formikEnhancer = withFormik({\r\n validationSchema: validationSchema,\r\n mapPropsToValues: () => initialValues,\r\n validateOnBlur: true,\r\n validateOnChange: false,\r\n handleSubmit: (values, { props, resetForm, setFieldError }) => {\r\n const { applyForCredit, addNotification } = props;\r\n\r\n if (values.section3.sendBy === 1 && !values.section1.fax) {\r\n addNotification(\"Please add a fax number.\", \"error\");\r\n return false;\r\n }\r\n\r\n if (values.section4.signatures.some((x) => !x.specimen)) {\r\n addNotification(\"Please sign the document.\", \"error\");\r\n return false;\r\n }\r\n\r\n if (\r\n values.section1.customerType.value === 0 &&\r\n values.section4.guarantors.some((x) => !x.specimen)\r\n ) {\r\n addNotification(\r\n \"Please sign the guarantee and indemnity section.\",\r\n \"error\"\r\n );\r\n return false;\r\n }\r\n\r\n applyForCredit(values, resetForm);\r\n },\r\n displayName: \"applicationForCreditForm\",\r\n});\r\n\r\nconst enhancedForm = formikEnhancer(Main);\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators, addNotification })(enhancedForm)\r\n);\r\n","import React from \"react\";\r\nimport EnhancedContentSection from \"components/common/enhanced-content-section/index\";\r\nimport \"./full-terms.scss\";\r\n\r\nconst FullTermsAndConditions = ({}) => {\r\n return (\r\n
    \r\n \r\n

    1. Definitions

    \r\n

    \r\n 1.1. Mr Traffic Hire means Mr Traffic Hire, its\r\n successors and assigns or any person acting on behalf of and with the\r\n authority of Mr Traffic Hire.\r\n

    \r\n

    \r\n 1.2. Hirer means the person/s or any person acting on\r\n behalf of and with the authority of the Hirer requesting Mr Traffic\r\n Hire to provide the Equipment as specified in any proposal, quotation,\r\n order, invoice or other documentation.\r\n

    \r\n

    \r\n 1.3. Charges means the cost of the hire of Equipment\r\n (plus any GST where applicable) as agreed between Mr Traffic Hire and\r\n the Hirer.\r\n

    \r\n

    \r\n 1.4. Equipment means any kind of equipment, vehicles\r\n or tools including but not limited to the following kinds of goods or\r\n goods suitable for the following kinds of uses: traffic management\r\n including road barriers; signage; vehicles including trucks, vans and\r\n trailers, and includes tools and parts and accessories for any of the\r\n foregoing supplied by Mr Traffic Hire to the Hirer. The Equipment\r\n shall be described on the Hire Agreement or any other commencement\r\n forms as provided by Mr Traffic Hire to the Hirer.\r\n

    \r\n

    \r\n 1.5. Hire means any or all Hire supplied by Mr\r\n Traffic Hire to the Hirer and includes any advice or recommendations.\r\n

    \r\n

    \r\n 1.6. Hire Period means the period commending on the\r\n date as shown in the agreement and ending on the date the Hirer\r\n returns the Equipment to Mr Traffic Hire. Hire Period may only be\r\n extended for one or more definite periods and in each case this can\r\n only be done if the Customer requests it and if Mr Traffic Hire\r\n agrees.\r\n

    \r\n

    \r\n 1.7. Hire Schedule means any proposal, quotation,\r\n order, invoice or other documentation which Mr Traffic Hire may\r\n require the Customer to sign or accept in a way including particulars\r\n of the Equipment and the Hire Period.\r\n

    \r\n

    \r\n 1.8. GST means Goods and Services Tax as defined\r\n within the “A New Tax System (Goods and Services Tax) Act 1999” (Cth).\r\n

    \r\n

    \r\n 1.9. Kilometer Charge means the amount payable for\r\n the kilometers that a Vehicle has, in the reasonable opinion of Mr\r\n Traffic Hire, travelled during the Hire Period.\r\n

    \r\n

    \r\n 1.10. Remote Area means any location which is more\r\n the 50 kilometers from the Mr Traffic Hire depot from where the\r\n Equipment is hired.\r\n

    \r\n

    2. Obligations

    \r\n

    2.1. Mr Traffic Hire will:

    \r\n

    \r\n 2.1.1. Allow the Customer to take and use the Equipment for the Hire\r\n Period;\r\n

    \r\n

    \r\n 2.1.2. Provide the Equipment to the Customer in good working order and\r\n without damage;\r\n

    \r\n

    \r\n 2.1.3. Collect the Equipment within 48 hours of being requested to do\r\n so by the Customer at the expense of the Customer unless a Customer\r\n Pick Up Order is issued.\r\n

    \r\n

    2.2. The Customer must:

    \r\n

    \r\n 2.2.1. Deliver the Equipment to the Mr Traffic Hire depot when it is\r\n due back;\r\n

    \r\n

    2.2.2. Return the Equipment in clean and in good working order;

    \r\n

    \r\n 2.2.3. Operate the Equipment safely, in accordance with any\r\n manufacturer’s instructions and only for its intended use;\r\n

    \r\n

    \r\n 2.2.4. Indemnify Mr Traffic Hire for all injury and/or damage to the\r\n extent caused or contributed to by the Customer to persons and\r\n property in relation to the Equipment and its operation;\r\n

    \r\n

    \r\n 2.2.5. Ensure that any person collecting or taking delivery of\r\n Equipment on behalf of the Customer is authorised by the Customer.\r\n

    \r\n

    \r\n 2.2.6. Ensure that all persons operating the Equipment are suitably\r\n trained and where necessary hold a current Certificate of Competency\r\n and are fully licensed;\r\n

    \r\n

    \r\n 2.2.7. Have adequate insurance to cover all liabilities incurred as a\r\n result of the use of the Equipment;\r\n

    \r\n

    \r\n 2.2.8. Have adequate insurance to cover theft, vandalism, misuse,\r\n accident or damage to the Equipment;\r\n

    \r\n

    \r\n 2.2.9. Conduct a thorough hazard and risk assessment before using the\r\n Equipment and comply with all Occupational Health and Safety laws\r\n relating to the Equipment and its operation;\r\n

    \r\n

    \r\n 2.2.10. Report and provide full details to Mr Traffic Hire of any\r\n accident or damage to the Equipment within 24 hours of the accident or\r\n damage occurring.\r\n

    \r\n

    \r\n 2.3. The Customer must NOT;\r\n

    \r\n

    1.1.1. Tamper with, damage or repair the Equipment;

    \r\n

    1.1.2. Lose or part with possession of the Equipment;

    \r\n

    \r\n 1.1.3. Allow the Equipment to be driven or used by any person if, at\r\n the time of them driving or using the Equipment, the Hirer or other\r\n person is not the holder of current driver's licence appropriate for\r\n the Equipment;\r\n

    \r\n

    \r\n 1.1.4. Exceed the recommended or legal load and capacity limits of the\r\n Equipment;\r\n

    \r\n

    \r\n 1.1.5. Use or carry any illegal, prohibited or dangerous substance in\r\n or on the Equipment.\r\n

    \r\n

    3. Charges and Payment

    \r\n

    3.1. The Customer must:

    \r\n

    \r\n 3.1.1. On or before Commencement or as otherwise specifically agreed\r\n pay the Hire Charge.\r\n

    \r\n

    3.1.2. Immediately on request by Mr Traffic Hire pay:

    \r\n

    \r\n (a) the new list price of any Equipment which is for whatever reason\r\n not returned to Mr Traffic Hire.\r\n

    \r\n

    \r\n (b) all costs incurred by delivering and recovering possession of the\r\n Equipment;\r\n

    \r\n

    \r\n (c) the full cost of repairing any damage to the Equipment;\r\n

    \r\n

    \r\n (d) stamp duties, GST, any other taxes or duties, and all tolls,\r\n fines, penalties, levies or charges arising from the Customer’s use of\r\n the Equipment;\r\n

    \r\n

    (e) all costs incurred in cleaning the Equipment;

    \r\n

    \r\n (f) Interest for late payment of amounts owing by the customer;\r\n

    \r\n

    \r\n (g) the Kilometer Charge and any additional Hire Charges;\r\n

    \r\n

    \r\n (h) the cost of fuels and consumables provided and not returned by the\r\n Customer;\r\n

    \r\n

    \r\n (i) any expenses and legal costs (including commission payable to a\r\n commercial agent) incurred by Mr Traffic Hire in enforcing this\r\n Contract due to the Customers default.;\r\n

    \r\n

    \r\n (j) all costs of repairing or replacing tyres, including road service.\r\n

    \r\n

    \r\n (k) If you hire a vehicle from Mr Traffic it is your responsibility to\r\n place an eTag in the car. If a tag is not placed within the vehicle\r\n and Mr Traffic is billed for tolls used, you will incur the cost of\r\n the tolls plus a 25% + GST administration fee for any costs incurred\r\n on top of the original fee charged by the toll company. Processing of\r\n these fees is a time-consuming process which we need to recoup costs\r\n for. If you have any questions, please contact our office on\r\n 1300mrtraffic.\r\n

    \r\n

    \r\n 3.1.3. Without limiting the ability of Mr Traffic Hire to recover all\r\n amounts owing to it, the Customer authorises Mr Traffic Hire to charge\r\n any amounts owing by the Customer to any credit card or account\r\n details of which are provided.\r\n

    \r\n

    4. PPS Law

    \r\n

    \r\n 4.1. This clause applies to the extent that this Contract provides for\r\n a ‘security interest’ for the purposes of the Personal Property\r\n Securities Act 2009 (Cth) (“PPS Law”).\r\n

    \r\n

    \r\n 4.2. References to PPS Law in this agreement include references to\r\n amended, replacement and successor provisions or legislation.\r\n

    \r\n

    4.3. In this clause the following definitions apply:

    \r\n

    \r\n Collateral \r\n means the Equipment\r\n

    \r\n

    \r\n Grantor \r\n means the Customer\r\n

    \r\n
    \r\n

    \r\n Secured Money \r\n means money owing to Mr Traffic Hire pursuant to the Hire Contract\r\n

    \r\n

    \r\n Secured Party \r\n means Mr Traffic Hire\r\n

    \r\n

    \r\n 4.4. The Grantor grants a security interest in the Collateral to the\r\n Secured Party to secure payment of the Secured Money.\r\n

    \r\n

    \r\n 4.5. The Grantor must not do, or agree to do, any of the following\r\n unless it is permitted to do so by the Secured Party:\r\n

    \r\n

    \r\n (a) create or allow another interest to be created in any Collateral\r\n

    \r\n

    (b) dispose, or part with possession, of any Collateral.

    \r\n

    \r\n 4.6. Mr Traffic Hire may register its security interest. The Customer\r\n must do anything such as obtaining consents and signing any documents\r\n which Mr Traffic Hire requires for the purposes of ensuring that Mr\r\n Traffic Hires’ security interest is enforceable and otherwise\r\n effective under the PPS Law;\r\n

    \r\n

    \r\n 4.7. The rights of Mr Traffic Hire under this contract are in addition\r\n to and not in substitution for Mr Traffic Hires’ rights under other\r\n law (including the PPS Law).\r\n

    \r\n

    \r\n 4.8. To the extent that Chapter 4 of PPSA applies to any security\r\n interest under this agreement, the following provisions of the PPS Law\r\n do not apply and, for the purposes of section 115 of the PPS Law are\r\n “contracted out” of this agreement in respect of all goods to which\r\n that section can be applied: sections 95, 96, 121(4), 125, 130,\r\n 129(2)-(3), 132(3)(d), 132(4), 135, 142 and 143.\r\n

    \r\n

    \r\n 4.9. The following provisions of the PPS Law: section 123, 126, 128,\r\n 129, 134(1) confer rights on Mr Traffic Hire. Customer agrees that in\r\n addition to those rights, Mr Traffic Hire shall, if there is default\r\n by Customer, have the right to seize, purchase, take possession or\r\n apparent possession, retain, deal with or dispose of any goods, not\r\n only under those sections but also, as additional and independent\r\n rights, under this contract.\r\n

    \r\n

    \r\n 4.10. The Customer waives its rights to receive a verification\r\n statement in relation to registration events in respect of commercial\r\n property under section 157 of the PPS Law.\r\n

    \r\n

    \r\n 4.11. Mr Traffic Hire and the Customer agree not to disclose\r\n information of the kind that can be requested under section 275(1) of\r\n the PPS Law. The agreement in this sub-clause is made solely for the\r\n purpose of allowing to Mr Traffic Hire the benefit of section\r\n 275(6)(a) and Mr Traffic Hire shall not be liable to pay damages or\r\n any other compensation or be subject to injunction in respect of any\r\n actual or threatened breach of this sub-clause.\r\n

    \r\n

    \r\n 4.12. Customer must not dispose or purport to dispose of, or create or\r\n purport to create or permit to be created any ‘security interest’ (as\r\n defined in PPS Law) in the Equipment other than with the express\r\n written consent of Mr Traffic Hire.\r\n

    \r\n

    \r\n 4.13. Customer must not lease, hire, bail or give possession\r\n (‘sub-hire’) of the Equipment to anyone else unless Mr Traffic Hire in\r\n its absolute discretion first consents in writing.\r\n

    \r\n

    \r\n 4.14. To assure performance of its obligations under this agreement,\r\n the Customer hereby gives Mr Traffic Hire an irrevocable power of\r\n attorney to do anything Mr Traffic Hire considers the Customer should\r\n do under this agreement. Mr Traffic Hire may recover from Customer the\r\n cost of doing anything under this clause 4, including registration\r\n fees.\r\n

    \r\n

    5. Exclusion of Warranties and Liabilities.

    \r\n

    \r\n 5.1. Where the Australian Consumer Law applies and the goods are not\r\n of a kind ordinarily acquired for personal domestic or household use\r\n or consumption, Mr Traffic Hire‘s liability in respect of any\r\n guarantee is limited to the replacement or repair of the goods, or the\r\n cost of having the goods repaired or replaced.\r\n

    \r\n

    \r\n 5.2. To the extent that the Australian Consumer Law (or any other law\r\n which cannot be excluded) does not apply. Mr Traffic Hire makes no\r\n representations and gives no warranties other than those set out in\r\n these Hire Contract Conditions, and will not be liable to the Customer\r\n for any damages, costs or other liabilities whatsoever (including for\r\n consequential loss) in relation to the hiring of the Equipment by the\r\n Customer.\r\n

    \r\n

    6. Remote Hire

    \r\n

    \r\n 6.1. Where the Equipment is at any time hired by the Customer to be\r\n located in the Remote Area, the following clauses will also apply, in\r\n addition to the obligations of the Customer under Clause 3 and\r\n elsewhere in these Hire Contract Conditions;\r\n

    \r\n

    \r\n 6.1.1. The Customer will pay an additional charge for any delivery,\r\n servicing and repair of the Equipment, and for any other attendance at\r\n the Remote Area by Mr Traffic Hire (‘Remote Area Charges’). The Remote\r\n Area Charges will be calculated on a per kilometer rate travelled by\r\n Mr Traffic Hire staff to and from the Remote Area, plus labour costs\r\n per staff member per hour including travelling times;\r\n

    \r\n

    \r\n 6.1.2. Multiple items of Equipment hire by a Customer on the one site\r\n will only be charged for one call out fee;\r\n

    \r\n

    \r\n 6.1.3. The Customer is responsible at its cost for daily maintenance\r\n and care of all Equipment in its possession, including daily checking\r\n of all fluids (fuel, oil, water, battery levels etc.) and general\r\n tightening of any loose nuts, bolts, belts or fittings and lubrication\r\n of all grease points.\r\n

    \r\n

    7. Breach of Hire Contract by Customer

    \r\n

    \r\n 7.1. If the Customer breaches any clause whatsoever of this Contract\r\n and does not remedy the breach within 5 business days of the breach,\r\n or becomes bankrupt, insolvent or ceases business then;\r\n

    \r\n

    \r\n 7.1.1. Mr Traffic Hire shall be entitled to terminate this Contract\r\n and sue for recovery of all monies owing by the Customer; and/or\r\n

    \r\n

    \r\n 7.1.2. repossess the Equipment and is authorized to enter any premises\r\n where the Equipment is located to do so.\r\n

    \r\n

    \r\n 7.2. The Customer indemnifies Mr Traffic Hire in respect of any\r\n damages, costs or loss, to the extent caused or contributed to by the\r\n customer resulting from a breach by the Customer of any provision of\r\n this Contract.\r\n

    \r\n

    8. Disputes

    \r\n

    \r\n 8.1. The Customer must immediately check all Hire Charges, and any\r\n disputes in relation to those Hire Charges must be communicated to Mr\r\n Traffic Hire in writing within 20 business days of the Hire Contract\r\n date. In the event that no communication is received from the Customer\r\n within that 20 business days, the Hire Charges are deemed to be\r\n accepted by the Customer.\r\n

    \r\n

    9. Privacy

    \r\n

    \r\n 9.1. Mr Traffic Hire will comply with the Australian Privacy\r\n Principles in all dealings with Customers.\r\n

    \r\n

    10. Governing Law

    \r\n

    \r\n 10.1. These terms and conditions and any contract to which they apply\r\n shall be governed by the laws of Victoria, the state in which Mr\r\n Traffic Hire has its principal place of business.\r\n

    \r\n \r\n
    \r\n );\r\n};\r\n\r\nexport default FullTermsAndConditions;\r\n","import AdminRoutes from \"./admin-routes\";\r\nimport Playground from \"views/playground\";\r\n\r\nimport Home from \"views/home\";\r\nimport Faqs from \"../views/faqs\";\r\nimport ContactUs from \"views/contact-us\";\r\nimport GetQuote from \"views/quote\";\r\nimport RegistrationPage from \"views/register\";\r\nimport LoginPage from \"views/login\";\r\nimport Logout from \"views/logout\";\r\nimport ForgotPassword from \"views/forgot-password\";\r\nimport ResetPassword from \"views/reset-password\";\r\nimport UpdateProfile from \"views/update-profile\";\r\nimport ContentPage from \"views/content-page\";\r\nimport ServicesLandingPage from \"views/services/services-landing-page\";\r\nimport About from \"views/about\";\r\nimport News from \"views/news\";\r\nimport ArrowBoards from \"views/services/arrow-boards\";\r\nimport Portaboom from \"views/services/portaboom\";\r\nimport VMSBoards from \"views/services/vms-boards\";\r\nimport PortableTrafficLights from \"views/services/portable-traffic-lights\";\r\nimport TravelTimes from \"views/services/travel-times\";\r\nimport VariableSpeedLimitSigns from \"views/services/variable-speed-limit-signs\";\r\nimport TruckMountedAttenuators from \"views/services/truck-mounted-attenuators\";\r\nimport HighwayTrucks from \"views/services/highway-trucks\";\r\nimport TrafficUtes from \"views/services/traffic-utes\";\r\nimport VmsUtes from \"views/services/vms-utes\";\r\nimport CustomerInformation from \"views/application-for-credit\";\r\nimport FullTermsAndConditions from \"views/application-for-credit/collapsible-items/actual-terms/full-terms\";\r\n\r\nconst ModuleRoutes = [\r\n ...AdminRoutes, // Admin Routes\r\n // Test Routes\r\n {\r\n path: \"/playground/:path\",\r\n name: \"Playground\",\r\n component: Playground,\r\n privateRoute: false,\r\n },\r\n // Core Routes\r\n {\r\n path: \"/\",\r\n name: \"Home\",\r\n component: Home,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/faqs/\",\r\n name: \"FAQs\",\r\n component: Faqs,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/contact-us/\",\r\n name: \"Contact Us\",\r\n component: ContactUs,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/get-a-quote/\",\r\n name: \"Get Quote\",\r\n component: GetQuote,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/register/\",\r\n name: \"Registration\",\r\n component: RegistrationPage,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/login/\",\r\n name: \"Login\",\r\n component: LoginPage,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/logout/\",\r\n name: \"Logout\",\r\n component: Logout,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/forgot-password/\",\r\n name: \"Forgot Password\",\r\n component: ForgotPassword,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/reset-password/\",\r\n name: \"Reset Password\",\r\n component: ResetPassword,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/update-profile/\",\r\n name: \"Update Profile\",\r\n component: UpdateProfile,\r\n privateRoute: true,\r\n },\r\n {\r\n path: \"/about/\",\r\n component: About,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/news/\",\r\n component: News,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/arrow-boards/\",\r\n component: ArrowBoards,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/portaboom/\",\r\n component: Portaboom,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/vms-boards/\",\r\n component: VMSBoards,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/portable-traffic-lights/\",\r\n component: PortableTrafficLights,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/travel-times/\",\r\n component: TravelTimes,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/variable-speed-limit-signs/\",\r\n component: VariableSpeedLimitSigns,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/truck-mounted-attenuators/\",\r\n component: TruckMountedAttenuators,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/highway-trucks/\",\r\n component: HighwayTrucks,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/traffic-utes/\",\r\n component: TrafficUtes,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/vms-utes/\",\r\n component: VmsUtes,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/services/\",\r\n component: ServicesLandingPage,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/application-for-credit/\",\r\n component: CustomerInformation,\r\n privateRoute: false,\r\n },\r\n {\r\n path: \"/application-for-credit/terms-and-conditions/\",\r\n component: FullTermsAndConditions,\r\n privateRoute: false,\r\n },\r\n\r\n // User Routes\r\n\r\n // Catch all Route\r\n {\r\n path: \"*\",\r\n component: ContentPage,\r\n privateRoute: false,\r\n },\r\n];\r\n\r\nexport default ModuleRoutes;\r\n","/**\r\n * Higher Order component for private route\r\n * Note: This is well integrated with auth security\r\n * - 4.18.2019 rcnet\r\n * - 6.1.2019 rcnet - Added claim authorization hooks\r\n * - 11.29.2019 rcnet - Added Feature Flag checking\r\n */\r\nimport React from \"react\";\r\nimport { Redirect, Route } from \"react-router-dom\";\r\nimport isFunction from \"lodash/isFunction\";\r\nimport isNil from \"lodash/isNil\";\r\nimport Auth from \"./../../../core/auth/auth\";\r\n\r\n/**\r\n * This component will check for any claim based rules attached in the route.\r\n * @param {*} props\r\n */\r\nconst CheckAndRenderAuthenticatedComponent = props => {\r\n let noAccess = false;\r\n if (\r\n !isNil(props.claimsAuthorisationHook) &&\r\n isFunction(props.claimsAuthorisationHook)\r\n ) {\r\n noAccess = !props.claimsAuthorisationHook();\r\n }\r\n\r\n if (noAccess) {\r\n // send to Forbidden page\r\n return (\r\n \r\n );\r\n }\r\n\r\n return {props.children};\r\n};\r\n\r\nconst PrivateRoute = ({\r\n component,\r\n path,\r\n claimsAuthorisationHook,\r\n ...rest\r\n}) => (\r\n \r\n Auth.isAuthenticated() ? (\r\n \r\n {React.createElement(component, props)}\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n />\r\n);\r\n\r\nexport default PrivateRoute;\r\n","import items from \"./../views/services/services-landing-page/items\";\r\n\r\nexport const navLinks = [\r\n {\r\n title: \"Home\",\r\n href: \"/\",\r\n subLinks: [],\r\n },\r\n {\r\n title: \"About\",\r\n href: \"/about/\",\r\n subLinks: [],\r\n },\r\n {\r\n title: \"Services\",\r\n href: \"/services/\",\r\n subLinks: items.map((x) => {\r\n return {\r\n title: x.title,\r\n href: x.link,\r\n subLinks: [],\r\n };\r\n }),\r\n },\r\n {\r\n title: \"News\",\r\n href: \"/news/\",\r\n subLinks: [],\r\n },\r\n {\r\n title: \"Contact\",\r\n href: \"/contact-us/\",\r\n subLinks: [],\r\n },\r\n];\r\n","import React, { useEffect } from \"react\";\r\nimport NavBar from \"./../components/nav-bar\";\r\nimport Footer from \"./../components/footer\";\r\nimport ModuleRoutes from \"./../routes/routing\";\r\nimport { Route, Switch, Redirect, withRouter } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport PrivateRoute from \"./../components/common/private-route\";\r\nimport BlockUiFx from \"./../components/common/block-ui-fx\";\r\nimport * as ActionCreators from \"../redux/system/system-action-creators\";\r\nimport { navLinks } from \"../constants/navigation\";\r\nimport \"./full-layout.scss\";\r\n\r\nconst FullLayout = ({ profile, getProfile }) => {\r\n useEffect(() => {\r\n getProfile();\r\n }, []);\r\n\r\n return (\r\n \r\n
    \r\n \r\n\r\n
    \r\n \r\n {ModuleRoutes.map((prop, key) => {\r\n if (prop.navlabel) {\r\n return null;\r\n } else if (prop.collapse) {\r\n return prop.child.map((prop2, key2) => {\r\n if (prop2.collapse) {\r\n return prop2.subchild.map((prop3, key3) => {\r\n return prop3.privateRoute ? (\r\n \r\n ) : (\r\n \r\n );\r\n });\r\n }\r\n return prop2.privateRoute ? (\r\n \r\n ) : (\r\n \r\n );\r\n });\r\n } else if (prop.redirect) {\r\n return ;\r\n } else {\r\n return prop.privateRoute ? (\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) => {\r\n return {\r\n profile: state.system.userProfile,\r\n };\r\n};\r\n\r\nexport default withRouter(\r\n connect(mapStateToProps, { ...ActionCreators })(FullLayout)\r\n);\r\n","import React from \"react\";\r\n\r\nclass Error403 extends React.Component {\r\n render() {\r\n return (\r\n
    \r\n \r\n
    \r\n

    \r\n This is awkward! It looks like you’ve tried to access\r\n something you shouldn’t.\r\n

    \r\n
    \r\n If you believe you should have access to this page, please contact\r\n your system administrator.\r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Error403;\r\n","import React from \"react\";\r\n\r\nclass Error404 extends React.Component {\r\n render() {\r\n return (\r\n
    \r\n \r\n
    \r\n

    \r\n Damn, we can’t find what you’re looking for.\r\n

    \r\n

    \r\n Please click here to reload the Mr Traffic Website\r\n .\r\n

    \r\n
    \r\n If you really need whatever this was supposed to be, please\r\n contact the team.\r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Error404;\r\n","import React from \"react\";\r\n\r\nclass Error500 extends React.Component {\r\n render() {\r\n return (\r\n
    \r\n \r\n
    \r\n

    Good on ya, you broke it!

    \r\n
    \r\n Just kidding, looks like it might be our fault and we have\r\n something to fix.\r\n
    \r\n

    \r\n Please click here to reload the Mr Traffic Website\r\n .\r\n

    \r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Error500;\r\n","import Error403 from \"./../views/pages/403/error-403\";\r\nimport Error404 from \"./../views/pages/404/error-404\";\r\nimport Error500 from \"./../views/pages/500/error-500\";\r\nimport Maintenance from \"./../views/pages/maintenance/maintenance\";\r\n\r\nvar miscPagesRoutes = [\r\n { path: \"/pages/maintenance\", component: Maintenance },\r\n { path: \"/pages/error-403\", component: Error403 },\r\n { path: \"/pages/error-404\", component: Error404 },\r\n { path: \"/pages/error-500\", component: Error500 }\r\n];\r\n\r\nexport default miscPagesRoutes;\r\n","import React from \"react\";\r\n\r\nclass Maintenance extends React.Component {\r\n render() {\r\n return (\r\n
    \r\n \r\n
    \r\n

    \r\n Oh snap! One of two things has happened, either your internet\r\n connection has dropped out, or we might be doing some maintenance.\r\n

    \r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Maintenance;\r\n","import miscPagesRoutes from \"../routes/misc-pages-routes\";\r\n\r\nvar blankLayoutRoutes = [...miscPagesRoutes];\r\n\r\nexport default blankLayoutRoutes;\r\n","import FullLayout from \"./../layouts/fullLayout\";\r\nimport BlankLayout from \"./../layouts/blankLayout\";\r\n\r\nvar indexRoutes = [\r\n { path: \"/pages\", name: \"System Misc. Pages\", component: BlankLayout },\r\n { path: \"/\", name: \"Home\", component: FullLayout }\r\n];\r\n\r\nexport default indexRoutes;\r\n","import React from \"react\";\r\nimport { Route, Switch, Redirect } from \"react-router-dom\";\r\nimport blankLayoutRoutes from \"../routes/blank-layout-routes\";\r\n\r\nconst Blanklayout = () => {\r\n return (\r\n
    \r\n \r\n {blankLayoutRoutes.map((prop, key) => {\r\n if (prop.redirect)\r\n return ;\r\n return (\r\n \r\n );\r\n })}\r\n \r\n
    \r\n );\r\n};\r\nexport default Blanklayout;\r\n","import React from \"react\";\r\nimport { BrowserRouter as Router, Switch, Route } from \"react-router-dom\";\r\nimport ScrollToTop from \"./components/common/scroll-to-top\";\r\nimport ToastNotificationContainer from \"./components/common/toast/toast-container\";\r\nimport indexRoutes from \"./routes\";\r\nimport PrivateRoute from \"./components/common/private-route\";\r\nimport \"./App.scss\";\r\nimport \"./custom.scss\";\r\n\r\nconst App = () => {\r\n return (\r\n \r\n \r\n \r\n
    \r\n \r\n {indexRoutes.map((prop, key) => {\r\n if (prop.privateRoute) {\r\n return (\r\n \r\n );\r\n } else {\r\n return (\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 App;\r\n","import { ActionTypes } from './system-action-types';\r\n\r\nconst initialState = {\r\n title: '',\r\n message: '',\r\n lastErrorOccured: null,\r\n isModalOpen: false,\r\n isModelStateError: false,\r\n status: null\r\n};\r\n\r\nexport default function ErrorNotificationReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.SYS_HANDLE_ERROR_SHOW_FORM:\r\n return {\r\n ...state,\r\n title: 'Application Error',\r\n message: action.payload.message,\r\n lastErrorOccured: action.payload.error,\r\n isModelStateError: action.payload.isModelState,\r\n isModalOpen: true,\r\n status: action.payload.status,\r\n };\r\n\r\n case ActionTypes.SYS_HANDLE_ERROR_HIDE_FORM: \r\n return {\r\n ...state,\r\n isModalOpen: false,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\n/**\r\n * Selectors\r\n */\r\n\r\nexport const selectErrorNotification = state => state.system.errorNotification;","import { ActionTypes } from \"./system-action-types\";\r\nimport isNil from \"lodash/isNil\";\r\n\r\nconst initialState = {\r\n id: \"\",\r\n email: \"\",\r\n firstName: \"\",\r\n lastName: \"\",\r\n mobile: \"\",\r\n memberType: \"\",\r\n isFetching: false,\r\n isLoggingOut: false,\r\n};\r\n\r\nexport default function UserProfileReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.SYS_GET_PROFILE_REQUEST:\r\n return {\r\n ...state,\r\n isFetching: true,\r\n };\r\n\r\n case ActionTypes.SYS_GET_PROFILE_SUCCESS:\r\n return {\r\n ...state,\r\n id: action.payload.id,\r\n email: action.payload.email,\r\n mobile: action.payload.mobile,\r\n firstName: action.payload.firstName,\r\n lastName: action.payload.lastName,\r\n memberType: action.payload.memberType,\r\n isFetching: false,\r\n };\r\n\r\n case ActionTypes.SYS_GET_PROFILE_FAILURE:\r\n return {\r\n ...state,\r\n error: action.payload,\r\n isFetching: false,\r\n };\r\n\r\n case ActionTypes.SYS_HIDE_SPLASH:\r\n return {\r\n ...state,\r\n };\r\n\r\n case ActionTypes.SYS_TOGGLE_LOG_OUT:\r\n return {\r\n ...state,\r\n isLoggingOut: !state.isLoggingOut,\r\n };\r\n\r\n case ActionTypes.SYS_UPDATE_PROFILE:\r\n return {\r\n ...state,\r\n email: action.payload.email,\r\n mobile: action.payload.mobile,\r\n firstName: action.payload.firstName,\r\n lastName: action.payload.lastName,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nconst sanitiseValue = (value) => {\r\n if (typeof value === \"boolean\") {\r\n return isNil(value) ? false : value;\r\n }\r\n\r\n return isNil(value) ? \"\" : value;\r\n};\r\n\r\n/**\r\n * Selectors\r\n */\r\n\r\nexport const selectProfileData = (state) => state.system.userProfile;\r\n","/**\r\n * System Reducers\r\n */\r\nimport { combineReducers } from \"redux\";\r\nimport NotificationReducer from \"./notification-reducer\";\r\nimport ErrorNotificationReducer from \"./error-notification-reducer\";\r\nimport UserProfileReducer from \"./user-profile-reducer\";\r\n\r\n/**\r\n * System functionalities\r\n */\r\nconst SystemReducer = combineReducers({\r\n notification: NotificationReducer,\r\n errorNotification: ErrorNotificationReducer,\r\n userProfile: UserProfileReducer,\r\n});\r\n\r\nexport default SystemReducer;\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n isSuccessful: false,\r\n};\r\n\r\nexport default function ContactUsReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.CONTACT_US_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n case ActionTypes.CONTACT_US_SUCCESS:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isSuccessful: true,\r\n };\r\n case ActionTypes.CONTACT_US_FAILURE:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isSuccessful: false,\r\n };\r\n case ActionTypes.CONTACT_US_CLEAN_UP:\r\n return initialState;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n isSuccessful: false\r\n};\r\n\r\nexport default function GteQuoteReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.GET_QUOTE_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n case ActionTypes.GET_QUOTE_SUCCESS:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isSuccessful: true\r\n };\r\n case ActionTypes.GET_QUOTE_FAILURE:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isSuccessful: false\r\n };\r\n case ActionTypes.GET_QUOTE_CLEAN_UP:\r\n return {\r\n ...state,\r\n isSuccessful: false\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n shouldRedirect: false,\r\n isLoading: false,\r\n error: \"\"\r\n};\r\n\r\nexport default function UserLoginReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.LOGIN_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n\r\n case ActionTypes.LOGIN_SUCCESS:\r\n return {\r\n ...state,\r\n shouldRedirect: true,\r\n isLoading: false\r\n };\r\n\r\n case ActionTypes.LOGIN_FAILURE:\r\n return {\r\n ...state,\r\n error: action.payload,\r\n shouldRedirect: false,\r\n isLoading: false\r\n };\r\n\r\n case ActionTypes.LOGIN_INIT:\r\n return {\r\n ...state,\r\n shouldRedirect: initialState.shouldRedirect,\r\n isLoading: initialState.isLoading,\r\n error: initialState.error\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n isLoading: false\r\n};\r\n\r\nexport default function RegistrationReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.REGISTER_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true\r\n };\r\n\r\n case ActionTypes.REGISTER_SUCCESS:\r\n return {\r\n ...state,\r\n isLoading: false\r\n };\r\n\r\n case ActionTypes.REGISTER_FAILURE:\r\n return {\r\n ...state,\r\n isLoading: false\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { ActionTypes } from \"./action-types\";\r\n\r\nconst initialState = {\r\n loading: false,\r\n sent: false\r\n};\r\n\r\nfunction ForgotPasswordReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.FORGOT_PASSWORD_REQUEST:\r\n return {\r\n ...state,\r\n loading: true,\r\n sent: false\r\n };\r\n case ActionTypes.FORGOT_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n sent: true\r\n };\r\n case ActionTypes.FORGOT_PASSWORD_FAILURE:\r\n return {\r\n ...state,\r\n loading: false,\r\n sent: false\r\n };\r\n\r\n case ActionTypes.FORGOT_PASSWORD_CLEAN_UP:\r\n return {\r\n ...state,\r\n loading: false,\r\n sent: false\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default ForgotPasswordReducer;\r\n","import { ActionTypes } from \"./action-types\";\r\n\r\nconst initialState = {\r\n loading: false,\r\n resetToken: null,\r\n isTokenValid: false,\r\n};\r\n\r\nfunction ResetPasswordReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.RESET_PASSWORD_REQUEST:\r\n return {\r\n ...state,\r\n loading: true,\r\n sent: false,\r\n };\r\n case ActionTypes.RESET_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n isTokenValid: false,\r\n resetToken: null,\r\n loading: false,\r\n };\r\n case ActionTypes.RESET_PASSWORD_FAILURE:\r\n return {\r\n ...state,\r\n loading: false,\r\n };\r\n\r\n case ActionTypes.RESET_PASSWORD_CLEAN_UP:\r\n return {\r\n ...state,\r\n loading: false,\r\n resetToken: null,\r\n isTokenValid: false,\r\n };\r\n case ActionTypes.VALIDATE_PASSWORD_RESET_TOKEN_REQUEST:\r\n return {\r\n ...state,\r\n loading: true,\r\n };\r\n case ActionTypes.VALIDATE_PASSWORD_RESET_TOKEN_SUCCESS:\r\n return {\r\n ...state,\r\n isTokenValid: true,\r\n resetToken: action.payload,\r\n loading: false,\r\n };\r\n case ActionTypes.VALIDATE_PASSWORD_RESET_TOKEN_FAILURE:\r\n return {\r\n ...state,\r\n isTokenValid: false,\r\n loading: false,\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default ResetPasswordReducer;\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n isUpdating: false,\r\n};\r\n\r\nexport default function UpdateProfileReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.UPDATE_PROFILE_REQUEST:\r\n return {\r\n ...state,\r\n isUpdating: true,\r\n };\r\n case ActionTypes.UPDATE_PROFILE_SUCCESS:\r\n case ActionTypes.UPDATE_PROFILE_FAILURE:\r\n return {\r\n ...state,\r\n isUpdating: false,\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n isDeleting: false,\r\n settings: {},\r\n submissionType: 1,\r\n data: [],\r\n};\r\n\r\nexport default function ManageUsersReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.MANAGE_USERS_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n case ActionTypes.MANAGE_USERS_SUCCESS:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n data: action.payload,\r\n };\r\n case ActionTypes.MANAGE_USERS_FAILURE:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n case ActionTypes.MANAGE_USERS_DELETE_REQUEST:\r\n return {\r\n ...state,\r\n isDeleting: true,\r\n };\r\n case ActionTypes.MANAGE_USERS_DELETE_SUCCESS:\r\n return {\r\n ...state,\r\n isDeleting: false,\r\n data: state.data.filter((x) => x.id != action.payload),\r\n };\r\n case ActionTypes.MANAGE_USERS_DELETE_FAILURE:\r\n return {\r\n ...state,\r\n isDeleting: false,\r\n };\r\n case ActionTypes.MANAGE_USERS_CLEAN_UP:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n data: [],\r\n };\r\n case ActionTypes.MANAGE_USERS_DATATABLE_KEEP_SETTINGS:\r\n return {\r\n ...state,\r\n settings: action.payload.settings,\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import ActionTypes from \"./action-types\";\r\n\r\nconst initialState = {\r\n isLoading: false,\r\n user: null,\r\n};\r\n\r\nexport default function CreateUpdateUserReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.CREATE_UPDATE_USER_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n case ActionTypes.CREATE_UPDATE_USER_SUCCESS:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n case ActionTypes.CREATE_UPDATE_USER_FAILURE:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n case ActionTypes.CREATE_UPDATE_USER_GET_DETAILS_REQUEST:\r\n return {\r\n ...state,\r\n isLoading: true,\r\n };\r\n case ActionTypes.CREATE_UPDATE_USER_GET_DETAILS_SUCCESS:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n user: action.payload,\r\n };\r\n case ActionTypes.CREATE_UPDATE_USER_GET_DETAILS_FAILURE:\r\n return {\r\n ...state,\r\n isLoading: false,\r\n };\r\n case ActionTypes.CREATE_UPDATE_USER_CLEAN_UP:\r\n return initialState;\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { ActionTypes } from \"./action-types\";\r\n\r\nconst initialState = {\r\n isSubmittingForm: false,\r\n};\r\n\r\nfunction ApplicationForCreditReducer(state = initialState, action) {\r\n switch (action.type) {\r\n case ActionTypes.APPLY_FOR_CREDIT_SUBMIT_REQUEST:\r\n return {\r\n ...state,\r\n isSubmittingForm: true,\r\n };\r\n case ActionTypes.APPLY_FOR_CREDIT_SUBMIT_REQUEST:\r\n return {\r\n ...state,\r\n isSubmittingForm: true,\r\n };\r\n case ActionTypes.APPLY_FOR_CREDIT_SUBMIT_SUCCESS:\r\n case ActionTypes.APPLY_FOR_CREDIT_SUBMIT_FAILURE:\r\n return {\r\n ...state,\r\n isSubmittingForm: false,\r\n };\r\n case ActionTypes.APPLY_FOR_CREDIT_CLEAN_UP:\r\n return initialState;\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default ApplicationForCreditReducer;\r\n","import { combineReducers } from \"redux\";\r\nimport SystemReducer from \"./system/system-reducer\";\r\nimport ContactUsReducer from \"./../views/contact-us/redux/reducer\";\r\nimport QuoteReducer from \"./../views/quote/redux/reducer\";\r\nimport UserLoginReducer from \"./../views/login/redux/reducer\";\r\nimport RegistrationReducer from \"./../views/register/redux/reducer\";\r\nimport ForgotPasswordReducer from \"./../views/forgot-password/redux/reducer\";\r\nimport ResetPasswordReducer from \"./../views/reset-password/redux/reducer\";\r\nimport UpdateProfileReducer from \"./../views/update-profile/redux/reducer\";\r\nimport ManageUsersReducer from \"./../views/admin/manage-users/redux/reducer\";\r\nimport CreateUpdateUserReducer from \"./../views/admin/manage-users/components/create-update-user/redux/reducer\";\r\nimport ApplicationForCreditReducer from \"./../views/application-for-credit/redux/reducer\";\r\n\r\nconst RootReducer = combineReducers({\r\n system: SystemReducer,\r\n userLogin: UserLoginReducer,\r\n register: RegistrationReducer,\r\n forgotPassword: ForgotPasswordReducer,\r\n resetPassword: ResetPasswordReducer,\r\n contactUs: ContactUsReducer,\r\n updateProfile: UpdateProfileReducer,\r\n manageUsers: ManageUsersReducer,\r\n createUpdateUser: CreateUpdateUserReducer,\r\n quote: QuoteReducer,\r\n applicationForCredit: ApplicationForCreditReducer,\r\n});\r\n\r\nexport default RootReducer;\r\n","/**\r\n * Configure additional middleware here\r\n */\r\nimport { createStore, applyMiddleware, compose } from \"redux\";\r\nimport thunk from \"redux-thunk\";\r\nimport RootReducer from \"./root-reducer\";\r\n\r\nconst ConfigureStore = () => {\r\n let middleware = [thunk];\r\n let enhancers = [applyMiddleware(...middleware)];\r\n\r\n if (\r\n process.env.NODE_ENV === \"development\" &&\r\n typeof window === \"object\" &&\r\n window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\r\n ) {\r\n enhancers.push(\r\n window.__REDUX_DEVTOOLS_EXTENSION__ &&\r\n window.__REDUX_DEVTOOLS_EXTENSION__()\r\n );\r\n }\r\n\r\n return createStore(RootReducer, compose(...enhancers));\r\n\r\n // // Grab the state from a global variable injected into the server-generated HTML\r\n // const preloadedState = window.__PRELOADED_STATE__;\r\n\r\n // // Allow the passed state to be garbage-collected\r\n // delete window.__PRELOADED_STATE__;\r\n\r\n // // Create Redux store with initial state\r\n // const store = createStore(\r\n // RootReducer,\r\n // preloadedState || ,\r\n // compose(...enhancers)\r\n // );\r\n\r\n // // Tell react-snap how to save Redux state\r\n // window.snapSaveState = () => ({\r\n // __PRELOADED_STATE__: store.getState()\r\n // });\r\n\r\n // return store;\r\n};\r\n\r\nexport default ConfigureStore;\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\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 subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.0/8 are considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl, {\r\n headers: { 'Service-Worker': 'script' }\r\n })\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\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 \"react-app-polyfill/ie9\";\r\nimport \"react-app-polyfill/stable\";\r\nimport React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport App from \"./App\";\r\nimport { Provider } from \"react-redux\";\r\nimport ConfigureStore from \"./redux/configure-store\";\r\nimport * as serviceWorker from \"./serviceWorker\";\r\nimport TagManager from \"react-gtm-module\";\r\nimport * as config from \"./config\";\r\n\r\nif (config.default.gtmId !== \"\" && config.default.gtmId !== \"GTM-XXXXXXX\") {\r\n const tagManagerArgs = {\r\n gtmId: config.default.gtmId,\r\n };\r\n\r\n TagManager.initialize(tagManagerArgs);\r\n}\r\n\r\nconst store = ConfigureStore();\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n document.getElementById(\"root\")\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n\r\n// import React from \"react\";\r\n// import { hydrate, render } from \"react-dom\";\r\n// import App from \"./App\";\r\n// import { Provider } from \"react-redux\";\r\n// import ConfigureStore from \"./redux/configure-store\";\r\n// import * as serviceWorker from \"./serviceWorker\";\r\n\r\n// const store = ConfigureStore();\r\n\r\n// const rootElement = document.getElementById(\"root\");\r\n// if (rootElement.hasChildNodes()) {\r\n// hydrate(\r\n// \r\n// \r\n// ,\r\n// rootElement\r\n// );\r\n// } else {\r\n// render(\r\n// \r\n// \r\n// ,\r\n// rootElement\r\n// );\r\n// }\r\n\r\n// // If you want your app to work offline and load faster, you can change\r\n// // unregister() to register() below. Note this comes with some pitfalls.\r\n// // Learn more about service workers: https://bit.ly/CRA-PWA\r\n// serviceWorker.unregister();\r\n"],"sourceRoot":""}