{"version":3,"sources":["common/enums/DialogType.ts","ui/AppStyles.ts","common/resources/images/mywem.svg","ui/components/landing/LandingStyles.ts","domain/stores/BaseStore.ts","common/network/agent.ts","common/config/routes/wem-routes.ts","domain/stores/PromotionStore.ts","common/config/routes/skidata-routes.ts","domain/stores/AuthStore.ts","common/constants/facebook_constants.ts","common/models/user/profile/ProfilePropertyModel.ts","common/models/user/registration/UserRegistrationModel.ts","common/models/user/registration/RegistrationFormModel.ts","common/models/user/registration/ProfilePropertyFormModel.ts","domain/stores/UserStore.ts","domain/stores/loyalty/PointStore.ts","domain/stores/loyalty/ReceiptStore.ts","domain/stores/loyalty/reward-store.ts","domain/stores/loyalty/support-store.ts","common/utils/DeviceHelper.ts","common/constants/AppRoutes.ts","domain/stores/GlobalStore.ts","common/utils/RouteHelper.ts","domain/stores/loyalty/LoyaltyCodeStore.ts","domain/stores/LoyaltyActivityStore.ts","domain/stores/loyalty/DealsStore.ts","domain/stores/Stores.ts","common/resources/images/share-icon.svg","ui/components/share-icon/ShareIcon.tsx","ui/components/share-icon/index.ts","ui/components/install-app-snackbar/InstallAppSnackbar.tsx","ui/components/install-app-snackbar/index.ts","ui/components/app-footer/AppFooterStyles.ts","ui/components/copyright/CopyrightStyles.ts","ui/components/copyright/Copyright.tsx","common/constants/MyWEMConstants.ts","ui/components/copyright/index.ts","ui/components/app-footer/AppFooter.tsx","ui/components/app-footer/index.ts","ui/components/landing/Landing.tsx","ui/components/landing/index.ts","ui/components/bottom-appbar/BottomAppbarStyles.ts","ui/components/bottom-appbar/BottomAppBar.tsx","ui/components/bottom-appbar/index.ts","ui/components/profile/ProfileStyles.ts","common/constants/RegularExpressionConstants.ts","ui/components/profile/ProfileSchema.ts","common/models/app/SelectListModel.ts","common/config/data/GenderList.ts","ui/components/profile/ProfileForm.tsx","common/models/user/profile/ProfileUpdateModel.ts","ui/components/top-appbar/TopAppbarStyles.ts","ui/components/app-drawer/AppDrawerStyles.ts","common/config/routes/SocialMedia.ts","ui/components/app-drawer/AppDrawer.tsx","ui/components/app-drawer/index.ts","ui/components/app-toolbar/AppToolBarStyles.ts","ui/components/app-toolbar/AppToolBarActionRow.tsx","ui/components/app-toolbar/AppToolBarBackButton.tsx","ui/components/app-toolbar/AppHamburgerButton.tsx","ui/components/app-toolbar/AppToolBar.tsx","ui/components/top-appbar/index.ts","ui/components/top-appbar/TopAppbar.tsx","ui/components/profile/index.ts","ui/components/profile/Profile.tsx","ui/hoc/authenticated-route/index.ts","ui/hoc/authenticated-route/AuthenticatedRoute.tsx","ui/components/rewards/RewardStyles.ts","ui/components/rewards/Reward.tsx","ui/components/rewards/RewardDetailFormSchema.ts","ui/components/detail-page/DetailPageStyles.ts","common/constants/promotion-constants.ts","ui/components/detail-page/index.ts","ui/components/detail-page/DetailPage.tsx","ui/components/rewards/RewardDetailForm.tsx","common/models/app/HeroImageModel.ts","ui/components/rewards/RewardDetail.tsx","ui/components/wrapper/WrapperStyles.ts","ui/components/notifications/index.ts","ui/components/notifications/Notification.tsx","ui/components/loading/LoadingStyles.ts","ui/components/loading/Loading.tsx","ui/components/wrapper/index.ts","ui/components/wrapper/Wrapper.tsx","ui/components/scan-loyalty/ScanLoyaltyStyles.ts","ui/components/scan-loyalty/ScanLoyaltyDialog.tsx","ui/components/loyalty-card/LoyaltyCardStyles.ts","ui/components/loyalty-card/index.ts","ui/components/loyalty-card/LoyaltyCard.tsx","ui/components/scan-loyalty/index.ts","ui/components/scan-loyalty/ScanLoyalty.tsx","ui/components/promotion/PromotionStyles.ts","ui/components/promotion/PromotionBanner.tsx","ui/components/promotion/Promotion.tsx","ui/components/promotion/PromotionDetail.tsx","ui/components/frequently-asked-questions/FrequentlyAskedQuestionsStyles.ts","ui/components/frequently-asked-questions/index.ts","ui/components/frequently-asked-questions/FrequentlyAskedQuestions.tsx","ui/components/loyalty-activity/LoyaltyActivityStyles.ts","ui/components/loyalty-activity/LoyaltyActivityHistory.tsx","ui/components/loyalty-activity/LoyaltyActivityScans.tsx","ui/components/loyalty-activity/LoyaltyActivityTabPanel.tsx","ui/components/loyalty-activity/index.ts","ui/components/loyalty-activity/LoyaltyActivity.tsx","ui/components/loyalty-activity/LoyaltyActivityScanDetail.tsx","ui/components/loyalty-code/LoyaltyCodeSchema.ts","ui/components/loyalty-code/LoyaltyCodeStyles.ts","ui/components/loyalty-code/LoyaltyCodeForm.tsx","common/models/loyalty/code/LoyaltyCodeFormModel.ts","ui/components/loyalty-code/index.ts","ui/components/loyalty-code/LoyaltyCode.tsx","ui/components/not-found/NotFoundStyles.ts","ui/components/not-found/index.ts","ui/components/not-found/NotFound.tsx","ui/components/deals/DealStyles.ts","ui/components/deals/DealsMenu.tsx","common/utils/Transitions.tsx","ui/components/deals/DealCategories.tsx","ui/components/deals/DealFilterDialog.tsx","ui/components/deals/DealChip.tsx","ui/components/deals/DealCard.tsx","ui/components/deals/DealContent.tsx","ui/components/deals/EmptyDeals.tsx","ui/components/deals/DealStaticResources.ts","ui/components/deals/index.ts","ui/components/deals/Deals.tsx","ui/components/deals/RedeemDealButton.tsx","ui/components/deals/DealPromoCode.tsx","ui/components/deals/ConfirmRedeemDialog.tsx","ui/components/deals/DealDetail.tsx","ui/App.tsx","serviceWorkerRegistration.ts","reportWebVitals.ts","common/config/theme/application-theme.ts","index.tsx"],"names":["DialogType","AppStyles","makeStyles","theme","createStyles","root","width","height","LandingStyles","display","flexDirection","justifyContent","alignItems","image","buttonSignInSignOut","backgroundColor","color","link","textDecoration","titleColor","subtitleColor","buttonContainer","BaseStore","observable","action","getHeaders","headers","isFileUpload","newHeaders","Headers","skiDataToken","localStorage","getItem","token","JSON","parse","append","loyaltyToken","accessToken","post","url","payload","a","navigator","onLine","fetch","method","mode","body","stringify","response","status","history","location","pathname","push","json","data","Promise","reject","Message","get","remove","fileUpload","undefined","WemRoutes","content","contactSupport","deals","dealCategories","PromotionStore","isLoading","ok","console","log","SkiDataRoutes","authentication","loginType","validate","resetPassword","logout","user","getUser","userProfile","updateProfile","profileImage","upload","userRegistration","registration","loyaltyCodes","sso","facebook","pointActivities","points","pointActivityType","receipt","rewardCategory","rewards","simpleContent","AuthStore","globalStore","getLoginType","username","request","getFacebookApplicationId","process","showDialog","Success","Error","authModel","clientId","loyaltyResponse","setItem","password","credential","window","FB","resolve","getLoginStatus","removeItem","resetStore","ProfilePropertyModel","UserID","PropertyDefinitionID","PropertyName","PropertyValue","LastUpdatedDate","UserRegistrationModel","firstName","lastName","email","postalCode","birthDate","gender","offersemail","RegistrationFormModel","Username","Password","Email","DisplayName","CreateSeatEntities","SendAdminRegistrationEmail","SendAdminVerificationEmail","RegistrationChannel","ReferralChannel","InvitationID","ReferralCode","ProfileProperties","ProfilePropertyFormModel","UserStore","authStore","getProfilePropertyByDefinitionId","definitionId","profileProperty","userModel","Data","find","f","getUserLoyaltyAccountId","getUserId","generateProfileFormModel","displayName","charAt","registrationForm","generateProfilePropertyArray","Array","format","generateProfilePropertyModel","model","profileProperties","firstNameProperty","lastNameProperty","postalCodeProperty","genderProperty","newDate","birthDateProperty","e","target","name","value","date","checked","resetRegistrationForm","message","FailureMessage","RegistrationForm","EmailValidationMessage","files","length","formData","FormData","PointStore","getPointActivitiesByType","_","pointActivity","filter","PointActivityTypeId","pointTypeFilter","sortBy","s","Ordinal","pointRecord","Records","excludedPointActivityTypeId","pointActivityTypes","includes","getPointActivityTypes","ReceiptStore","userStore","localStorageName","successMessage","failMessage","getScanReceiptById","id","scanRecord","ScanID","showReceiptConditionDialog","disableShowReceiptDialog","uploadReceipt","x","PortalID","getScanRecords","RewardStore","getRewardsByCategory","RewardCategoryID","categoryId","groupBy","item","LoyaltyProductID","group","getRewardByLoyaltyProductId","loyaltyProductId","rewardsByProductId","getRewardCategories","rewardsCategories","rewardId","quantity","success","SupportStore","frequentlyAskedQuestions","SimpleContentCategoryID","IssueCategorization","Description","LoyaltyId","Attachments","Name","standalone","LOYALTY_ACTIVITY","PROMOTIONS","REWARDS","GlobalStore","installPromptStorageName","addEventListener","isOnline","listen","setRouteValue","path","GetRouteValue","Open","type","title","notification","Title","Type","OnClose","Info","routeValue","userAgent","toLowerCase","test","isIos","LoyaltyCodeStore","applyLoyaltyCode","loyaltyCode","portalId","userId","processNow","PointsEarned","LoyaltyActivityStore","event","newValue","selectedTabIndex","index","DealsStore","getDealById","dealId","getExpiryDate","deal","expiry","Date","getFilteredDeals","filterByFavorites","saved","filteredCategories","some","category","categories","filters","redeemed","replaceADeal","newDeal","map","promotionStore","pointStore","receiptStore","rewardStore","supportStore","loyaltyCodeStore","loyaltyActivityStore","dealsStore","Stores","baseStore","createContext","_extends","Object","assign","i","arguments","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","d","SvgShareIcon","_ref","svgRef","titleId","props","y","viewBox","style","enableBackground","xmlSpace","ref","ForwardRef","ShareIcon","SvgIcon","fontSize","observer","useContext","useState","showShowInstallPrompt","shouldShowInstallPrompt","setShouldShowInstallPrompt","Snackbar","anchorOrigin","vertical","horizontal","open","onClose","Typography","flexWrap","Fragment","IconButton","size","aria-label","onClick","InstallAppSnackbar","AppFooterStyles","position","bottom","privacyAndTermsContainer","cursor","CopyrightStyles","textColor","Copyright","classes","variant","className","getFullYear","AppFooter","withRouter","useEffect","Container","maxWidth","Grid","container","spacing","justify","xs","src","MyWemLogo","alt","Landing","BottomAppbarStyles","BottomNavigation","showLabels","BottomNavigationAction","icon","label","BottomAppBar","ProfileStyles","marginTop","marginBottom","avatar","userImage","palette","primary","dark","infoPaper","saveProfileButton","secondary","main","contrastText","editIconButton","background","paper","inputFile","selectEmpty","NAME_EXPRESSION","ProfileSchema","Yup","shape","min","max","matches","required","SelectListModel","Key","Value","GenderList","ProfileForm","formikProps","userPhoto","uploadPhoto","uploadProfilePicRef","createRef","onSubmit","handleSubmit","accept","onChange","Badge","badgeContent","htmlFor","component","Avatar","current","click","align","values","TextField","fullWidth","onBlur","handleBlur","handleChange","error","errors","touched","helperText","disabled","Link","utils","DateFnsUtils","disableFuture","margin","openTo","setFieldValue","views","FormControl","InputLabel","Select","labelId","MenuItem","FormHelperText","Button","ProfileUpdateModel","TopAppbarStyles","appBar","transparentAppBar","boxShadow","inputRoot","avatarImage","AppDrawerStyles","avatarListItem","socialMediaListItem","socialMediaIconContainer","facebookIcon","twitterIcon","instagramIcon","WEMFacebook","WEMInstagram","WEMTwitter","Drawer","anchor","List","ListItem","ListItemAvatar","MyWem","ListItemText","gutterBottom","CurrentPoints","PointsRemaining","toLocaleString","maximumSignificantDigits","Divider","ga","transport","hitCallback","button","selected","ListItemIcon","AppDrawer","AppToolBarStyles","actionBarContainer","pointsContainer","menuButton","marginRight","mixBlendMode","showPromoCodeIcon","showUserIcon","actionButton","useTheme","useMediaQuery","breakpoints","up","startIcon","aria-controls","aria-haspopup","AppToolBarBackButton","backButtonActionOrUrl","edge","AppHamburgerButton","setDrawerOpen","Toolbar","noWrap","toLocaleUpperCase","TopAppbar","drawerOpen","AppBar","elevation","transparent","children","Profile","initialValues","EmailAddress","validationSchema","updateUserProfileData","AuthenticatedRoute","Component","rest","render","routeProps","RewardStyles","flexGrow","detailRoot","gridList","gridListTile","right","transform","divider","redeemButton","cost","available","soldOutItemBackground","availableItemBackground","caption","minHeight","gridListTileBar","padding","isMobile","down","defaultMatches","getRewards","GridList","cellHeight","GridListTile","cols","RewardCategoryName","reward","costInPoints","CostInPoints","toString","Math","QuantityRemaining","GridImage","loading","clsx","RewardID","RewardDetailFormSchema","integer","DetailPageStyles","alignSelf","textMargins","marginLeft","linkButtonWhiteBackground","borderRadius","minWidth","linkButtonGreenBackground","EXTERNAL_LINK","DetailPage","backButtonAction","isDetailAppBar","HeroImage","CaptionText","React","isValidElement","BodyContent","dangerouslySetInnerHTML","__html","Links","LinkButtonStyleVariant","externalLinkTagType","RewardDetailForm","selectedReward","setSelectedReward","pointsRemaining","Definitions","join","HeroImageModel","parseInt","match","params","PopupImage","FeaturedImage","redeemReward","to","WrapperStyles","Notification","iconSize","Dialog","DialogTitle","direction","Warning","getDialogIcon","DialogContent","DialogContentText","DialogActions","LoadingStyles","backdrop","zIndex","drawer","Backdrop","CircularProgress","Wrapper","scrollTo","Slide","timeout","in","ScanLoyaltyStyles","ScanLoyaltyDialog","initialCheckboxValue","hideLoyaltyScanDialog","setHideLoyaltyScanDialog","href","rel","FormControlLabel","control","Checkbox","onOk","LoyaltyCardStyles","info","barcodeContainer","LoyaltyCard","showLoyaltyUsageDialog","Paper","ScanLoyalty","setShowDialog","onCancel","hideScanDialog","visible","toggleLoyaltyScanDialogVisibility","PromotionStyles","carousel","promotionImage","transition","bannerImage","bannerContainer","showThumbs","showIndicators","showArrows","autoPlay","infiniteLoop","interval","swipeable","showStatus","banners","banner","featureImage","getPromotions","promotions","promotion","sm","md","zeroMinWidth","tileImage","toUpperCase","goBack","heroImage","links","FrequentlyAskedQuestionsStyles","heading","typography","pxToRem","fontWeight","fontWeightRegular","FrequentlyAskedQuestions","getFrequentlyAskedQuestions","faq","Accordion","AccordionSummary","expandIcon","AccordionDetails","LoyaltyActivityStyles","historyList","overflowY","inline","History","pointRecords","record","groupIndex","currentDate","DateCreated","day","month","year","PointActivityName","PointsAwarded","PointAuditID","Scans","scanRecords","sort","b","timeA","getTime","StatusCodeID","StatusDescription","ListItemSecondaryAction","TabPanel","other","role","hidden","aria-labelledby","LoyaltyActivity","getPointRecord","Tabs","orientation","indicatorColor","Tab","axis","onChangeIndex","handleChangeIndex","dir","scan","Images","OriginalURL","StoreName","toLocaleDateString","Amount","ExternalID","LoyaltyCodeSchema","trim","LoyaltyCodeStyles","formContainer","form","LoyaltyCodeForm","InputProps","endAdornment","LoyaltyCodeFormModel","LoyaltyCode","NotFoundStyles","NotFound","returnPath","DealStyles","card","cardHeader","borderBottom","cardContent","borderTop","media","paddingTop","dealChipContainer","overflowX","chip","toolBar","emptyDealsContainer","emptyDealsIcon","DealsMenu","anchorEl","keepMounted","TransitionUp","forwardRef","DealCategories","currentFilters","updateCategoryFilters","dense","tabIndex","text","setCurrentFilters","TransitionComponent","fullScreen","autoFocus","applyFilters","setCurrentCategoryFilters","currentCategoryFilters","Chip","onDelete","toggleFavorites","removeCategoryFilter","DealCard","Card","CardActionArea","CardHeader","storeIcon","storeName","subheader","CardMedia","CardContent","CardActions","disableSpacing","onFavoriteButtonClick","isFavorite","lg","xl","userid","removeDealFromFavorites","addDealToFavorites","NoContent","Deals","filterDialogOpen","setFilterDialogOpen","setAnchorEl","getDealCategories","getDeals","endIcon","currentTarget","EmptyDeals","Boolean","RedeemDealButton","showConfirmDialog","DealPromoCode","promoCode","ConfirmRedeemDialog","dealRedeemed","setDealRedeemed","confirmDialogOpen","setConfirmDialogOpen","terms","promocode","redeemDeal","App","CssBaseline","exact","from","DealDetail","LoyaltyActivityScanDetail","Promotion","PromotionDetail","Reward","RewardDetail","isLocalhost","hostname","registerValidSW","swUrl","config","serviceWorker","register","then","onupdatefound","installingWorker","installing","onstatechange","state","controller","onUpdate","onSuccess","catch","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ApplicationTheme","responsiveFontSizes","createMuiTheme","createBrowserHistory","ReactGA","initialize","set","page","pageview","ReactDOM","ThemeProvider","document","getElementById","createElement","URL","origin","contentType","ready","unregister","reload","checkValidServiceWorker","serviceWorkerRegistration","notifyOfNewApplicationUpdates","eventCategory","eventAction","eventValue","round","eventLabel","nonInteraction"],"mappings":"gKAAYA,E,mECWGC,EATGC,aAAW,SAACC,GAAD,OAC3BC,YAAa,CACXC,KAAM,CACJC,MAAO,OACPC,OAAQ,a,SCNC,MAA0B,kC,0BC2C1BC,EAzCON,aAAW,SAACC,GAAD,OAC/BC,YAAa,CACXC,KAAM,CACJI,QAAS,OACTC,cAAe,SACfC,eAAgB,SAChBC,WAAY,SACZ,4CAA6C,CAC3CL,OAAQ,QAEV,yCAA0C,CACxCA,OAAQ,SAGZM,MAAO,CACLN,OAAQ,UAEVO,oBAAqB,CACn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e41b8.chunk.js","sourcesContent":["export enum DialogType {\r\n Error,\r\n Info,\r\n Success,\r\n Warning,\r\n}\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst AppStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n width: '100%',\r\n height: '100%',\r\n },\r\n }),\r\n);\r\n\r\nexport default AppStyles;\r\n","export default __webpack_public_path__ + \"static/media/mywem.ad0a28fe.svg\";","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst LandingStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n '@media all and (display-mode: standalone)': {\r\n height: '90vh',\r\n },\r\n '@media all and (display-mode: browser)': {\r\n height: '85vh',\r\n },\r\n },\r\n image: {\r\n height: '40vmin',\r\n },\r\n buttonSignInSignOut: {\r\n backgroundColor: '#54b484',\r\n color: '#FFFFFF',\r\n '&:hover': {\r\n backgroundColor: '#54b484',\r\n },\r\n },\r\n link: {\r\n color: '#7f7f7f',\r\n textDecoration: 'none',\r\n },\r\n titleColor: {\r\n color: '#d1a567',\r\n },\r\n subtitleColor: {\r\n color: '#69686d',\r\n },\r\n buttonContainer: {\r\n display: 'flex',\r\n justifyContent: 'space-between',\r\n },\r\n }),\r\n);\r\n\r\nexport default LandingStyles;\r\n","import { action, observable } from 'mobx';\r\nimport IStore from '../../common/interfaces/app/IStore';\r\n\r\nexport default class BaseStore implements IStore {\r\n @observable isLoading: boolean = false;\r\n\r\n @action resetStore = () => {};\r\n}\r\n","import { history } from '../../index';\r\nimport LoyaltyTokenResponseModel from '../models/auth/LoyaltyTokenResponseModel';\r\n\r\n/**\r\n * Since we are using two types of authentication cookie/bearer token, we need\r\n * to make sure we include the token if it is available. We also need to check\r\n * if the current request is uploading a file or regular form data. Depending\r\n * on the request we either append application/json for form data or omit it\r\n * if it is a file upload.\r\n * @param headers optional headers passed in\r\n * @param isFileUpload flag to determine if the request is for a file upload\r\n * */\r\nconst getHeaders = (headers?: Headers, isFileUpload: boolean = false) => {\r\n let newHeaders = headers ? headers : new Headers();\r\n const skiDataToken = localStorage.getItem('skiDataToken');\r\n if (skiDataToken) {\r\n const token = JSON.parse(skiDataToken) as LoyaltyTokenResponseModel;\r\n newHeaders.append('Authorization', `${token.loyaltyToken?.accessToken}`);\r\n }\r\n\r\n if (!headers && !isFileUpload) {\r\n newHeaders.append('Content-Type', 'application/json');\r\n }\r\n\r\n return newHeaders;\r\n};\r\n\r\nconst post = async (\r\n url: string,\r\n payload: any,\r\n headers?: Headers,\r\n): Promise => {\r\n if (navigator.onLine) {\r\n try {\r\n const response = await fetch(url, {\r\n method: 'POST',\r\n mode: 'cors',\r\n headers: getHeaders(headers),\r\n body: JSON.stringify(payload),\r\n });\r\n\r\n // If we receive an unauthorized response, we kick the user back to the login\r\n // page\r\n if (response.status === 401 && history.location.pathname !== '/signin') {\r\n history.push('/landing');\r\n } else if (response.status >= 500) {\r\n const data = await response.json();\r\n return Promise.reject(data.Message);\r\n }\r\n\r\n return response;\r\n } catch (e) {\r\n // If for some reason the user is not able to communicate with the server,\r\n // i.e. server is down for maintenance.\r\n return Promise.reject(\r\n 'An error occurred while trying to communicate with the server.',\r\n );\r\n }\r\n } else {\r\n // Happens if the user is offline.\r\n return Promise.reject(\r\n 'Please check your internet connection and try again.',\r\n );\r\n }\r\n};\r\n\r\nconst get = async (url: string): Promise => {\r\n if (navigator.onLine) {\r\n try {\r\n const response = await fetch(url, {\r\n method: 'GET',\r\n mode: 'cors',\r\n headers: getHeaders(),\r\n });\r\n\r\n if (response.status === 401) {\r\n history.push('/landing');\r\n } else if (response.status >= 500) {\r\n const data = await response.json();\r\n return Promise.reject(data.Message);\r\n }\r\n\r\n return response;\r\n } catch (e) {\r\n return Promise.reject(\r\n 'An error occurred while trying to communicate with the server.',\r\n );\r\n }\r\n } else {\r\n return Promise.reject(\r\n 'Please check your internet connection and try again.',\r\n );\r\n }\r\n};\r\n\r\nconst put = async (url: string, payload: any): Promise => {\r\n if (navigator.onLine) {\r\n try {\r\n const response = await fetch(url, {\r\n method: 'PUT',\r\n mode: 'cors',\r\n headers: getHeaders(),\r\n body: JSON.stringify(payload),\r\n });\r\n\r\n if (response.status === 401) {\r\n history.push('/landing');\r\n } else if (response.status >= 500) {\r\n const data = await response.json();\r\n return Promise.reject(data.Message);\r\n }\r\n\r\n return response;\r\n } catch (e) {\r\n return Promise.reject(\r\n 'An error occurred while trying to communicate with the server.',\r\n );\r\n }\r\n } else {\r\n return Promise.reject(\r\n 'Please check your internet connection and try again.',\r\n );\r\n }\r\n};\r\n\r\nconst remove = async (url: string): Promise => {\r\n if (navigator.onLine) {\r\n try {\r\n const response = await fetch(url, {\r\n method: 'DELETE',\r\n mode: 'cors',\r\n headers: getHeaders(),\r\n });\r\n\r\n if (response.status === 401) {\r\n history.push('/landing');\r\n } else if (response.status >= 500) {\r\n const data = await response.json();\r\n return Promise.reject(data.Message);\r\n }\r\n\r\n return response;\r\n } catch (e) {\r\n return Promise.reject(\r\n 'An error occurred while trying to communicate with the server.',\r\n );\r\n }\r\n } else {\r\n return Promise.reject(\r\n 'Please check your internet connection and try again.',\r\n );\r\n }\r\n};\r\n\r\n/**\r\n * Handles file uploads.\r\n * @param url the requested endpoint\r\n * @param data the form data which contains the file(s)\r\n * */\r\nconst fileUpload = async (url: string, data: FormData): Promise => {\r\n if (navigator.onLine) {\r\n try {\r\n const response = await fetch(url, {\r\n method: 'POST',\r\n mode: 'cors',\r\n body: data,\r\n headers: getHeaders(undefined, true),\r\n });\r\n\r\n if (response.status === 401) {\r\n history.push('/landing');\r\n } else if (response.status >= 500) {\r\n const data = await response.json();\r\n return Promise.reject(data.Message);\r\n }\r\n\r\n return response;\r\n } catch (e) {\r\n return Promise.reject(\r\n 'An error occurred while trying to communicate with the server.',\r\n );\r\n }\r\n } else {\r\n return Promise.reject(\r\n 'Please check your internet connection and try again.',\r\n );\r\n }\r\n};\r\n\r\nexport { post, get, put, remove, fileUpload };\r\n","const WemRoutes = {\r\n content: '/umbraco/api/loyalty/content',\r\n contactSupport: '/api/loyalty/support/Email',\r\n deals: '/api/loyalty',\r\n dealCategories: '/api/loyalty/deals/categories',\r\n};\r\n\r\nexport default WemRoutes;\r\n","import { action, observable } from 'mobx';\r\nimport BaseStore from './BaseStore';\r\nimport { get } from '../../common/network/agent';\r\nimport WemRoutes from '../../common/config/routes/wem-routes';\r\nimport PromotionResponseModel from '../../common/models/loyalty/promotion/PromotionResponseModel';\r\n\r\nexport default class PromotionStore extends BaseStore {\r\n @observable data: PromotionResponseModel | null = null;\r\n\r\n @action getPromotions = async () => {\r\n try {\r\n this.isLoading = true;\r\n const response = await get(`${WemRoutes.content}`);\r\n if (response.ok) {\r\n this.data = (await response.json()) as PromotionResponseModel;\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n}\r\n","const SkiDataRoutes = {\r\n authentication: {\r\n loginType: '/DesktopModules/v1/API/Authentication/GetLoginType',\r\n validate: '/DesktopModules/v1/API/Authentication/Validate',\r\n resetPassword: '/DesktopModules/v1/API/Authentication/ResetPassword',\r\n logout: '/DesktopModules/v1/API/Authentication/Logout',\r\n },\r\n user: {\r\n getUser: '/DesktopModules/v2/API/User/GetUser',\r\n },\r\n userProfile: {\r\n updateProfile: '/DesktopModules/v2/API/UserProfile/UpdateProfile',\r\n },\r\n profileImage: {\r\n upload: '/DesktopModules/v1/API/ProfileImage/Upload',\r\n },\r\n userRegistration: {\r\n registration: '/DesktopModules/v1/API/Registration',\r\n },\r\n loyaltyCodes: '/DesktopModules/v1/API/LoyaltyCodes',\r\n sso: {\r\n facebook: '/facebook/46/v1/SSO',\r\n },\r\n pointActivities: '/DesktopModules/v1/API/PointActivities',\r\n points: '/DesktopModules/v2/API/Points',\r\n pointActivityType: '/DesktopModules/v1/API/PointActivityType/GetTypes',\r\n receipt: '/DesktopModules/v1/API/ZipLoop/Scan',\r\n rewardCategory: '/DesktopModules/v2/API/RewardCategory',\r\n rewards: '/DesktopModules/v1/API/Rewards',\r\n simpleContent: '/DesktopModules/v1/API/SimpleContent/GetArticlesByCategory',\r\n};\r\n\r\nexport default SkiDataRoutes;\r\n","import { action } from 'mobx';\r\nimport { get, post } from '../../common/network/agent';\r\nimport BaseStore from './BaseStore';\r\nimport { history } from '../../index';\r\nimport GlobalStore from './GlobalStore';\r\nimport { DialogType } from '../../common/enums/DialogType';\r\nimport SkiDataRoutes from '../../common/config/routes/skidata-routes';\r\nimport LoyaltyTokenResponseModel from '../../common/models/auth/LoyaltyTokenResponseModel';\r\nimport FacebookAuthModel from '../../common/models/social/facebook/FacebookAuthModel';\r\nimport FacebookResponseModel from '../../common/models/social/facebook/FacebookResponseModel';\r\nimport { CONNECTED } from '../../common/constants/facebook_constants';\r\n\r\nexport default class AuthStore extends BaseStore {\r\n constructor(private globalStore: GlobalStore) {\r\n super();\r\n }\r\n\r\n // Given a username get the login type the user registered with\r\n getLoginType = async (username: string): Promise => {\r\n const request = await get(\r\n `${SkiDataRoutes.authentication.loginType}/${username}`,\r\n );\r\n const response = await request.json();\r\n if (request.ok) {\r\n return response as number;\r\n } else {\r\n throw response;\r\n }\r\n };\r\n\r\n getFacebookApplicationId = () =>\r\n process.env.REACT_APP_FACEBOOK_APPLICATION_ID;\r\n\r\n @action facebookLogin = async (authModel: FacebookAuthModel) => {\r\n try {\r\n if (authModel) {\r\n this.isLoading = true;\r\n const headers = new Headers();\r\n headers.append('x-api-key', `${process.env.REACT_APP_SKIDATA_KEY}`);\r\n headers.append('Accept', 'text/plain');\r\n headers.append('Content-Type', 'application/json-patch+json');\r\n const response = await post(\r\n `${SkiDataRoutes.sso.facebook}/login`,\r\n JSON.stringify({\r\n accessToken: authModel.accessToken,\r\n clientId: `${process.env.REACT_APP_SKIDATA_CLIENT_ID}`,\r\n }),\r\n headers,\r\n );\r\n if (response.ok) {\r\n const loyaltyResponse = (await response.json()) as LoyaltyTokenResponseModel;\r\n localStorage.setItem('skiDataToken', JSON.stringify(loyaltyResponse));\r\n history.push('/promotions');\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Facebook Login',\r\n 'An error occurred while trying to validate you through Facebook',\r\n );\r\n }\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Facebook Login',\r\n 'An error occurred while trying to validate you through Facebook',\r\n );\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Sign In', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n // Authenticates the user with SkiData\r\n @action validate = async (username: string, password: string) => {\r\n try {\r\n this.isLoading = true;\r\n // Get user login type\r\n const loginType = await this.getLoginType(username);\r\n\r\n const request = await post(\r\n `${SkiDataRoutes.authentication.validate}/${username}/${loginType}`,\r\n JSON.stringify({ credential: password }),\r\n );\r\n\r\n if (request.ok) {\r\n history.push('/promotions');\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Sign In',\r\n 'Invalid user name or password',\r\n );\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Sign In', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n resetPassword = async (username: string) => {\r\n try {\r\n this.isLoading = true;\r\n const request = await post(\r\n `${SkiDataRoutes.authentication.resetPassword}/${username}`,\r\n null,\r\n );\r\n const response = await request.json();\r\n if (request.ok) {\r\n this.globalStore.showDialog(\r\n DialogType.Success,\r\n 'Password Reset',\r\n `An email with password reset instruction has been sent to ${username}`,\r\n );\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Password Reset',\r\n response.Message,\r\n );\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Password Reset', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action resetStore = async () => {\r\n try {\r\n this.isLoading = true;\r\n if ((window as any).FB) {\r\n await new Promise((resolve) =>\r\n (window as any).FB.getLoginStatus(\r\n async (response: FacebookResponseModel) => {\r\n if (response.status === CONNECTED) {\r\n (window as any).FB.logout();\r\n }\r\n resolve();\r\n },\r\n ),\r\n );\r\n }\r\n await get(SkiDataRoutes.authentication.logout);\r\n localStorage.removeItem('skiDataToken');\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Logout', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action logout = async () => {\r\n await this.resetStore();\r\n history.push('/landing');\r\n };\r\n}\r\n","const CONNECTED = 'connected';\r\nconst NOT_AUTHORIZED = 'not_authorized';\r\nconst UNKNOWN = 'unknown';\r\n\r\nexport { CONNECTED, NOT_AUTHORIZED, UNKNOWN };\r\n","export default class ProfilePropertyModel {\r\n constructor(\r\n public UserID?: number,\r\n public PropertyDefinitionID?: number,\r\n public PropertyName?: string,\r\n public PropertyValue?: string,\r\n public LastUpdatedDate?: Date,\r\n ) {}\r\n}\r\n","export default class UserRegistrationModel {\r\n public firstName: string = '';\r\n public lastName: string = '';\r\n public email: string = '';\r\n public postalCode: string = '';\r\n public birthDate: Date | null = null;\r\n public gender: string = '';\r\n public password: string = '';\r\n public offersemail: boolean = false;\r\n}\r\n","import ProfilePropertyFormModel from './ProfilePropertyFormModel';\r\n\r\nexport default class RegistrationFormModel {\r\n public Username?: string;\r\n public Password?: string;\r\n public Email?: string;\r\n public DisplayName?: string;\r\n public CreateSeatEntities?: boolean | null;\r\n public SendAdminRegistrationEmail?: boolean | null;\r\n public SendAdminVerificationEmail?: boolean | null;\r\n public RegistrationChannel?: string | null;\r\n public ReferralChannel?: string | null;\r\n public InvitationID?: number | null;\r\n public ReferralCode?: number | null;\r\n public ProfileProperties?: ProfilePropertyFormModel[] | null;\r\n}\r\n","export default class ProfilePropertyFormModel {\r\n constructor(\r\n public PropertyName: string | null,\r\n public PropertyValue: string | null,\r\n ) {}\r\n}\r\n","import BaseStore from './BaseStore';\r\nimport { action, observable } from 'mobx';\r\nimport { fileUpload, get, post } from '../../common/network/agent';\r\nimport React, { ChangeEvent } from 'react';\r\nimport { DialogType } from '../../common/enums/DialogType';\r\nimport GlobalStore from './GlobalStore';\r\nimport SkiDataRoutes from '../../common/config/routes/skidata-routes';\r\nimport AuthStore from './AuthStore';\r\nimport { format } from 'date-fns';\r\nimport ProfilePropertyModel from '../../common/models/user/profile/ProfilePropertyModel';\r\nimport ProfileUpdateModel from '../../common/models/user/profile/ProfileUpdateModel';\r\nimport UserModel from '../../common/models/user/UserModel';\r\nimport UserRegistrationModel from '../../common/models/user/registration/UserRegistrationModel';\r\nimport RegistrationFormModel from '../../common/models/user/registration/RegistrationFormModel';\r\nimport ProfilePropertyFormModel from '../../common/models/user/registration/ProfilePropertyFormModel';\r\n\r\nexport default class UserStore extends BaseStore {\r\n @observable userModel: UserModel | null = null;\r\n @observable\r\n userRegistration: UserRegistrationModel = new UserRegistrationModel();\r\n\r\n constructor(public globalStore: GlobalStore, public authStore: AuthStore) {\r\n super();\r\n }\r\n\r\n @action getUser = async () => {\r\n try {\r\n this.isLoading = true;\r\n const response = await get(SkiDataRoutes.user.getUser);\r\n if (response.ok) {\r\n this.userModel = (await response.json()) as UserModel;\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action updateRegistrationData = (\r\n e: React.FocusEvent | React.ChangeEvent,\r\n ) => {\r\n //@ts-ignore\r\n this.userRegistration[e.target.name] = e.target.value;\r\n };\r\n\r\n @action updateBirthDate = (date: Date | null) => {\r\n this.userRegistration.birthDate = date;\r\n };\r\n @action updateOffersEmail = (checked: boolean) => {\r\n this.userRegistration.offersemail = checked;\r\n };\r\n\r\n @action updateUserProfileData = async (model: ProfileUpdateModel) => {\r\n try {\r\n this.isLoading = true;\r\n const profileProperties = this.generateProfilePropertyModel(model);\r\n const request = await post(\r\n SkiDataRoutes.userProfile.updateProfile,\r\n JSON.stringify(profileProperties),\r\n );\r\n const response = await request.json();\r\n\r\n if (request.ok) {\r\n this.globalStore.showDialog(\r\n DialogType.Success,\r\n 'Success',\r\n 'Your profile has been successfully updated.',\r\n );\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Update Profile',\r\n `${response.Message}`,\r\n );\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Update Profile', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action registerUser = async (userRegistration: UserRegistrationModel) => {\r\n try {\r\n this.isLoading = true;\r\n const registrationForm = this.generateProfileFormModel(userRegistration);\r\n const request = await post(\r\n `${SkiDataRoutes.userRegistration.registration}/46`,\r\n JSON.stringify(registrationForm),\r\n );\r\n const response = await request.json();\r\n if (response && response.Success) {\r\n await this.authStore.validate(\r\n userRegistration.email,\r\n userRegistration.password,\r\n );\r\n this.resetRegistrationForm();\r\n } else {\r\n let message =\r\n response.FailureMessage ||\r\n response.Message ||\r\n 'An error occurred when trying to register you.';\r\n if (response && response.RegistrationForm) {\r\n if (response.RegistrationForm.EmailValidationMessage) {\r\n message =\r\n 'An account with this e-mail has already been created or the e-mail is invalid.';\r\n }\r\n }\r\n this.globalStore.showDialog(DialogType.Error, 'Sign Up', message);\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Sign Up', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action resetRegistrationForm = () => {\r\n this.userRegistration = new UserRegistrationModel();\r\n };\r\n\r\n @action resetStore = () => {\r\n this.userModel = null;\r\n this.resetRegistrationForm();\r\n };\r\n\r\n @action uploadPhoto = async (e: ChangeEvent) => {\r\n try {\r\n const target = e.target as HTMLInputElement;\r\n const files = target.files as FileList;\r\n if (files.length > 0) {\r\n this.isLoading = true;\r\n\r\n let formData = new FormData();\r\n formData.append('file', files[0]);\r\n\r\n const request = await fileUpload(\r\n `${SkiDataRoutes.profileImage.upload}/${this.userModel?.Data.UserID}`,\r\n formData,\r\n );\r\n const response = await request.json();\r\n\r\n if (request.ok) {\r\n await this.getUser();\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'User Photo',\r\n response.Message,\r\n );\r\n }\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'User Photo', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n /**\r\n * Return a user profile property given a definition id.\r\n * @param definitionId the profile property id.\r\n */\r\n getProfilePropertyByDefinitionId = (\r\n definitionId: number,\r\n ): any | null | undefined => {\r\n const profileProperty = this.userModel?.Data.ProfileProperties.find(\r\n (f) => f.PropertyDefinitionID === definitionId,\r\n )?.PropertyValue;\r\n if (definitionId === 1732 && !profileProperty) {\r\n return null;\r\n } else if (!profileProperty) {\r\n return '';\r\n } else {\r\n return profileProperty;\r\n }\r\n };\r\n\r\n /**\r\n * Returns the current user's GatewayLoyaltyAccountID which has a PropertyDefinitionID of 2508.\r\n * */\r\n getUserLoyaltyAccountId = (): string | null => {\r\n const profileProperty = this.userModel?.Data.ProfileProperties.find(\r\n (f) => f.PropertyDefinitionID === 2508,\r\n );\r\n if (profileProperty) {\r\n return profileProperty.PropertyValue || null;\r\n } else {\r\n return null;\r\n }\r\n };\r\n\r\n /**\r\n * Returns the current user id as a number or undefined if it is not present.\r\n * */\r\n public getUserId = (): number | undefined => this.userModel?.Data.UserID;\r\n\r\n private generateProfileFormModel = (\r\n userRegistration: UserRegistrationModel,\r\n ): RegistrationFormModel => {\r\n const displayName = `${\r\n userRegistration.firstName\r\n } ${userRegistration.lastName.charAt(0)}.`;\r\n const registrationForm = new RegistrationFormModel();\r\n registrationForm.Username = userRegistration.email;\r\n registrationForm.Password = userRegistration.password;\r\n registrationForm.Email = userRegistration.email;\r\n registrationForm.DisplayName = displayName;\r\n registrationForm.ProfileProperties = this.generateProfilePropertyArray(\r\n userRegistration,\r\n );\r\n return registrationForm;\r\n };\r\n\r\n private generateProfilePropertyArray = (\r\n userRegistration: UserRegistrationModel,\r\n ): Array => {\r\n return Array(\r\n new ProfilePropertyFormModel('Gender', userRegistration.gender),\r\n new ProfilePropertyFormModel(\r\n 'offersemail',\r\n userRegistration.offersemail ? 'true' : 'false',\r\n ),\r\n new ProfilePropertyFormModel(\r\n 'Birthdate',\r\n userRegistration.birthDate &&\r\n format(userRegistration.birthDate, 'MM/dd/yyyy'),\r\n ),\r\n new ProfilePropertyFormModel('PostalCode', userRegistration.postalCode),\r\n new ProfilePropertyFormModel('FirstName', userRegistration.firstName),\r\n new ProfilePropertyFormModel('LastName', userRegistration.lastName),\r\n );\r\n };\r\n\r\n private generateProfilePropertyModel = (\r\n model: ProfileUpdateModel,\r\n ): Array => {\r\n const firstName = this.getProfilePropertyByDefinitionId(1734);\r\n const lastName = this.getProfilePropertyByDefinitionId(1736);\r\n const postalCode = this.getProfilePropertyByDefinitionId(1743);\r\n const gender = this.getProfilePropertyByDefinitionId(1731);\r\n const birthDate = this.getProfilePropertyByDefinitionId(1732);\r\n let profileProperties = Array();\r\n\r\n if (model.firstName && model.firstName !== firstName) {\r\n const firstNameProperty = new ProfilePropertyModel();\r\n firstNameProperty.UserID = this.userModel?.Data.UserID;\r\n firstNameProperty.PropertyDefinitionID = 1734;\r\n firstNameProperty.PropertyValue = model.firstName;\r\n profileProperties.push(firstNameProperty);\r\n }\r\n\r\n if (model.lastName && model.lastName !== lastName) {\r\n const lastNameProperty = new ProfilePropertyModel();\r\n lastNameProperty.UserID = this.userModel?.Data.UserID;\r\n lastNameProperty.PropertyDefinitionID = 1736;\r\n lastNameProperty.PropertyValue = model.lastName;\r\n profileProperties.push(lastNameProperty);\r\n }\r\n\r\n if (model.postalCode && model.postalCode !== postalCode) {\r\n const postalCodeProperty = new ProfilePropertyModel();\r\n postalCodeProperty.UserID = this.userModel?.Data.UserID;\r\n postalCodeProperty.PropertyDefinitionID = 1743;\r\n postalCodeProperty.PropertyValue = model.postalCode;\r\n profileProperties.push(postalCodeProperty);\r\n }\r\n\r\n if (model.gender && model.gender !== gender) {\r\n const genderProperty = new ProfilePropertyModel();\r\n genderProperty.UserID = this.userModel?.Data.UserID;\r\n genderProperty.PropertyDefinitionID = 1731;\r\n genderProperty.PropertyValue = model.gender;\r\n profileProperties.push(genderProperty);\r\n }\r\n\r\n if (model.birthDate && typeof model.birthDate === 'object') {\r\n let newDate = format(model.birthDate, 'MM/dd/yyyy');\r\n if (birthDate !== newDate) {\r\n const birthDateProperty = new ProfilePropertyModel();\r\n birthDateProperty.UserID = this.userModel?.Data.UserID;\r\n birthDateProperty.PropertyDefinitionID = 1732;\r\n birthDateProperty.PropertyValue = newDate;\r\n profileProperties.push(birthDateProperty);\r\n }\r\n }\r\n\r\n return profileProperties;\r\n };\r\n}\r\n","import BaseStore from '../BaseStore';\r\nimport { action, observable } from 'mobx';\r\nimport { get } from '../../../common/network/agent';\r\nimport SkiDataRoutes from '../../../common/config/routes/skidata-routes';\r\nimport _ from 'lodash';\r\nimport PointActivityResponseModel from '../../../common/models/loyalty/point/PointActivityResponseModel';\r\nimport PointActivityTypeModel from '../../../common/models/loyalty/point/PointActivityTypeModel';\r\nimport PointRecordModel from '../../../common/models/loyalty/point/PointRecordModel';\r\nimport PointDataResponseModel from '../../../common/models/loyalty/point/PointDataResponseModel';\r\n\r\nexport default class PointStore extends BaseStore {\r\n @observable pointActivity: PointActivityResponseModel[] = [];\r\n @observable pointRecord: PointRecordModel[] = [];\r\n @observable pointActivityTypes: PointActivityTypeModel[] = [];\r\n @observable pointTypeFilter: number = -1;\r\n\r\n @action getPointRecord = async () => {\r\n try {\r\n this.isLoading = true;\r\n const request = await get(SkiDataRoutes.points);\r\n\r\n if (request.ok) {\r\n this.pointRecord = [];\r\n const response = (await request.json()) as PointDataResponseModel;\r\n this.pointRecord = response.Data.Records as PointRecordModel[];\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n getPointActivitiesByType = (): PointActivityResponseModel[] => {\r\n return _(this.pointActivity)\r\n .filter(\r\n (f) =>\r\n f.PointActivityTypeId === this.pointTypeFilter ||\r\n this.pointTypeFilter === -1,\r\n )\r\n .sortBy((s) => s.Ordinal)\r\n .value();\r\n };\r\n\r\n @action getPointActivityTypes = async () => {\r\n const response = await get(SkiDataRoutes.pointActivityType);\r\n\r\n if (response.ok) {\r\n // Point activity type id to exclude from result.\r\n const excludedPointActivityTypeId = [358, 359, 361, 362, 364, 489];\r\n const data = (await response.json()) as PointActivityTypeModel[];\r\n this.pointActivityTypes = data.filter(\r\n (f) => !excludedPointActivityTypeId.includes(f.PointActivityTypeId),\r\n );\r\n }\r\n };\r\n\r\n @action getAllPointActivities = async () => {\r\n try {\r\n this.isLoading = true;\r\n\r\n // Get point activity types\r\n await this.getPointActivityTypes();\r\n\r\n const response = await get(SkiDataRoutes.pointActivities);\r\n\r\n if (response.ok) {\r\n this.pointActivity = (await response.json()) as PointActivityResponseModel[];\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n}\r\n","import BaseStore from '../BaseStore';\r\nimport { fileUpload, get } from '../../../common/network/agent';\r\nimport { action, observable } from 'mobx';\r\nimport UserStore from '../UserStore';\r\nimport SkiDataRoutes from '../../../common/config/routes/skidata-routes';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport GlobalStore from '../GlobalStore';\r\nimport { ChangeEvent } from 'react';\r\nimport ScanRecordModel from '../../../common/models/loyalty/scans/ScanRecordModel';\r\nimport ScanRecordResponseModel from '../../../common/models/loyalty/scans/ScanRecordResponseModel';\r\n\r\nexport default class ReceiptStore extends BaseStore {\r\n localStorageName: string = 'myWemApplicationReceiptDialog';\r\n successMessage: string =\r\n 'Receipt(s) have been uploaded successfully, and are currently being processed for loyalty points.';\r\n failMessage: string =\r\n 'Any error occurred while trying to upload your receipt(s). Please try again later.';\r\n @observable scanRecord: ScanRecordModel[] = [];\r\n\r\n constructor(private userStore: UserStore, private globalStore: GlobalStore) {\r\n super();\r\n }\r\n\r\n @action getScanRecords = async () => {\r\n try {\r\n this.isLoading = true;\r\n const request = await get(\r\n `${SkiDataRoutes.receipt}/${this.userStore.userModel?.Data.PortalID}/${this.userStore.userModel?.Data.UserID}`,\r\n );\r\n if (request.ok) {\r\n this.scanRecord = [];\r\n const response = (await request.json()) as ScanRecordResponseModel;\r\n this.scanRecord = response.Data as ScanRecordModel[];\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n getScanReceiptById = (id: number): ScanRecordModel | null => {\r\n return this.scanRecord.find((f) => f.ScanID === id) || null;\r\n };\r\n\r\n showReceiptConditionDialog = () =>\r\n localStorage.getItem(this.localStorageName) !== null &&\r\n localStorage.getItem(\r\n this.localStorageName + this.userStore.userModel?.Data.UserID,\r\n ) === 'true';\r\n\r\n disableShowReceiptDialog = () => {\r\n localStorage.setItem(\r\n this.localStorageName + this.userStore.userModel?.Data.UserID,\r\n 'true',\r\n );\r\n };\r\n\r\n uploadReceipt = async (e: ChangeEvent) => {\r\n try {\r\n this.isLoading = true;\r\n const target = e.target as HTMLInputElement;\r\n const files = target.files as FileList;\r\n if (files.length > 0) {\r\n let formData = new FormData();\r\n for (let x = 0; x < files.length; x++) {\r\n formData.append('receipts[]', files[x]);\r\n }\r\n const request = await fileUpload(\r\n `${SkiDataRoutes.receipt}/${this.userStore.userModel?.Data.UserID}/${this.userStore.userModel?.Data.PortalID}`,\r\n formData,\r\n );\r\n\r\n if (request.ok) {\r\n await this.getScanRecords();\r\n this.globalStore.showDialog(\r\n DialogType.Success,\r\n 'Receipt(s) Upload',\r\n this.successMessage,\r\n );\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Receipt(s) Upload',\r\n this.failMessage,\r\n );\r\n }\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Receipt(s) Upload', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n}\r\n","import { action, observable } from 'mobx';\r\nimport BaseStore from '../BaseStore';\r\nimport { get, post } from '../../../common/network/agent';\r\nimport GlobalStore from '../GlobalStore';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport SkiDataRoutes from '../../../common/config/routes/skidata-routes';\r\nimport _ from 'lodash';\r\nimport RewardModel from '../../../common/models/loyalty/rewards/RewardModel';\r\nimport RewardCategoryResponseModel from '../../../common/models/loyalty/rewards/RewardCategoryResponseModel';\r\nimport UserStore from '../UserStore';\r\n\r\nexport default class RewardStore extends BaseStore {\r\n @observable rewards: RewardModel[] = [];\r\n @observable rewardsCategories: RewardCategoryResponseModel | null = null;\r\n @observable categoryId: number = -1;\r\n\r\n constructor(private globalStore: GlobalStore, private userStore: UserStore) {\r\n super();\r\n }\r\n\r\n @action getRewards = async () => {\r\n try {\r\n this.isLoading = true;\r\n\r\n // Get categories first\r\n await this.getRewardCategories();\r\n\r\n if (this.rewardsCategories?.Data) {\r\n const request = await get(SkiDataRoutes.rewards);\r\n\r\n if (request.ok) {\r\n this.rewards = [];\r\n this.rewards = (await request.json()) as RewardModel[];\r\n }\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action redeemReward = async (\r\n rewardId: number,\r\n quantity: number,\r\n ): Promise => {\r\n let success = true;\r\n try {\r\n this.isLoading = true;\r\n const response = await post(\r\n `${SkiDataRoutes.rewards}/${rewardId}`,\r\n JSON.stringify({ quantity: quantity }),\r\n );\r\n\r\n const data = await response.json();\r\n if (response.ok) {\r\n await this.userStore.getUser();\r\n this.globalStore.showDialog(\r\n DialogType.Success,\r\n 'Redeem Reward',\r\n `Congratulations! Your reward is on the way to your inbox!`,\r\n );\r\n } else {\r\n success = false;\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Redeem Reward',\r\n data.Message,\r\n );\r\n }\r\n } catch (err) {\r\n success = false;\r\n this.globalStore.showDialog(DialogType.Error, 'Redeem Reward', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n return success;\r\n };\r\n\r\n getRewardsByCategory = (): RewardModel[][] => {\r\n return _(this.rewards)\r\n .filter(\r\n (f) => f.RewardCategoryID === this.categoryId || this.categoryId === -1,\r\n )\r\n .groupBy((item) => item.LoyaltyProductID)\r\n .sortBy((group) => group[0].Ordinal)\r\n .value();\r\n };\r\n\r\n getRewardByLoyaltyProductId = (\r\n loyaltyProductId: number,\r\n ): RewardModel[] | undefined => {\r\n const rewardsByProductId = this.rewards.filter(\r\n (f) => f.LoyaltyProductID === loyaltyProductId,\r\n );\r\n if (rewardsByProductId && rewardsByProductId.length > 0) {\r\n return rewardsByProductId;\r\n } else {\r\n return undefined;\r\n }\r\n };\r\n\r\n @action getRewardCategories = async () => {\r\n const response = await get(SkiDataRoutes.rewardCategory);\r\n this.rewardsCategories = (await response.json()) as RewardCategoryResponseModel;\r\n };\r\n}\r\n","import { action, observable } from 'mobx';\r\nimport BaseStore from '../BaseStore';\r\nimport { fileUpload, get } from '../../../common/network/agent';\r\nimport GlobalStore from '../GlobalStore';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport SkiDataRoutes from '../../../common/config/routes/skidata-routes';\r\nimport WemRoutes from '../../../common/config/routes/wem-routes';\r\nimport ContactSupportModel from '../../../common/models/loyalty/support/ContactSupportModel';\r\nimport FAQModel from '../../../common/models/loyalty/support/FAQModel';\r\n\r\nexport default class SupportStore extends BaseStore {\r\n @observable frequentlyAskedQuestions: FAQModel[] = [];\r\n\r\n constructor(private globalStore: GlobalStore) {\r\n super();\r\n }\r\n\r\n @action getFrequentlyAskedQuestions = async () => {\r\n try {\r\n this.isLoading = true;\r\n const request = await get(SkiDataRoutes.simpleContent);\r\n\r\n if (request.ok) {\r\n const response = (await request.json()) as FAQModel[];\r\n this.frequentlyAskedQuestions = response.filter(\r\n (f) => f.SimpleContentCategoryID === 164,\r\n );\r\n }\r\n } catch (e) {\r\n console.log(e);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n @action contactSupport = async (\r\n data: ContactSupportModel,\r\n ): Promise => {\r\n try {\r\n this.isLoading = true;\r\n const formData = new FormData();\r\n formData.append('IssueCategorization', data.IssueCategorization);\r\n formData.append('Description', data.Description);\r\n formData.append('LoyaltyId', data.LoyaltyId || '');\r\n for (let x = 0; x < data.Attachments?.length; x++) {\r\n formData.append('Attachments[]', data.Attachments[x]);\r\n }\r\n formData.append('Email', data.Email);\r\n formData.append('Name', data.Name);\r\n const response = await fileUpload(WemRoutes.contactSupport, formData);\r\n if (response.ok) {\r\n this.globalStore.showDialog(\r\n DialogType.Success,\r\n 'Contact Support',\r\n `Your message has been sent successfully, and support will get in contact with you shortly`,\r\n );\r\n return true;\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n \"It's not you. It's us.\",\r\n `It looks like an error may have occurred. Please contact support@mywem.ca for any questions or concerns.`,\r\n );\r\n return false;\r\n }\r\n } catch (err) {\r\n if (!navigator.onLine) {\r\n this.globalStore.showDialog(DialogType.Error, 'Contact Support', err);\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n \"It's not you. It's us.\",\r\n `It looks like an error may have occurred. Please contact support@mywem.ca for any questions or concerns.`,\r\n );\r\n }\r\n return false;\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n}\r\n","// Checks if the user is using an Apple based device.\r\nconst isIos = () => {\r\n const userAgent = window.navigator.userAgent.toLowerCase();\r\n return /iphone|ipad|ipod/.test(userAgent);\r\n};\r\n\r\n// @ts-ignore\r\nconst { standalone } = window.navigator;\r\n\r\n// Checks if the user is launching the application from the browser, or in PWA\r\n// mode.\r\nconst isInStandaloneMode = () => 'standalone' in window.navigator && standalone;\r\n\r\nexport { isIos, isInStandaloneMode };\r\n","const LANDING = '/landing';\nconst SIGN_UP = '/signup';\nconst SIGN_IN = '/signin';\nconst FORGOT_PASSWORD = '/forgotpassword';\nconst PRIVACY = '/privacy';\nconst TERMS = '/terms';\nconst SUPPORT = '/support';\nconst LOYALTY_CODE = '/loyaltycode';\nconst PROFILE = '/profile';\nconst FREQUENTLY_ASKED_QUESTIONS = '/faqs';\nconst LOYALTY_ACTIVITY = '/activity';\nconst LOYALTY_ACTIVITY_SCAN_DETAIL = `${LOYALTY_ACTIVITY}/scan/:id`;\nconst PROMOTIONS = '/promotions';\nconst PROMOTION_DETAIL = `${PROMOTIONS}/:id`;\nconst REWARDS = '/rewards';\nconst REWARD_DETAIL = `${REWARDS}/:id`;\n\nexport {\n LANDING,\n SIGN_UP,\n SIGN_IN,\n FORGOT_PASSWORD,\n PRIVACY,\n TERMS,\n SUPPORT,\n LOYALTY_CODE,\n PROFILE,\n FREQUENTLY_ASKED_QUESTIONS,\n LOYALTY_ACTIVITY,\n LOYALTY_ACTIVITY_SCAN_DETAIL,\n PROMOTIONS,\n PROMOTION_DETAIL,\n REWARDS,\n REWARD_DETAIL,\n};\n","import { action, observable } from 'mobx';\r\nimport { DialogType } from '../../common/enums/DialogType';\r\nimport NotificationModel from '../../common/models/app/NotificationModel';\r\nimport { ReactNode } from 'react';\r\nimport { isInStandaloneMode, isIos } from '../../common/utils/DeviceHelper';\r\nimport { history } from '../../index';\r\nimport { GetRouteValue } from '../../common/utils/RouteHelper';\r\n\r\nexport default class GlobalStore {\r\n @observable notification: NotificationModel = {\r\n Open: false,\r\n } as NotificationModel;\r\n @observable isOnline: boolean = true;\r\n @observable routeValue: number | null = null;\r\n installPromptStorageName: string = 'myWemApplicationInstallPrompt';\r\n\r\n constructor() {\r\n // Triggered when the document is loaded.\r\n window.addEventListener('load', () => {\r\n // Checks if the user is online\r\n window.addEventListener('online', () => {\r\n this.isOnline = true;\r\n });\r\n // Checks if the user is offline, will trigger an offline icon to the observable\r\n // functions listening to it.\r\n window.addEventListener('offline', () => {\r\n this.isOnline = false;\r\n });\r\n // Updates the route value to reflect on the menu component.\r\n history.listen((location) => {\r\n this.setRouteValue(GetRouteValue(location.pathname));\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Global notification/information dialog toggle, called from observable classes\r\n * */\r\n @action showDialog = (\r\n type: DialogType,\r\n title: string,\r\n message: string | ReactNode,\r\n ) => {\r\n this.notification.Open = true;\r\n this.notification.Title = title;\r\n this.notification.Message = message;\r\n this.notification.Type = type;\r\n this.notification.OnClose = () => {\r\n this.notification = {\r\n Open: false,\r\n } as NotificationModel;\r\n };\r\n };\r\n\r\n /**\r\n * Informs the user of any pending installation.\r\n * */\r\n @action notifyOfNewApplicationUpdates = (\r\n registration: ServiceWorkerRegistration,\r\n ) => {\r\n this.showDialog(\r\n DialogType.Info,\r\n 'MyWEM Application Updates',\r\n 'A new version of MyWem is available. Please close the application and reopen it.',\r\n );\r\n };\r\n\r\n /**\r\n * Sets the currently selected route index value.\r\n * @param value currently selected route index number\r\n * */\r\n @action setRouteValue = (value: number | null) => (this.routeValue = value);\r\n\r\n /**\r\n * Utilized on Apple devices to prompt the installation instruction. At the time\r\n * of writing Apple does not auto prompt the user to install like android does.\r\n * */\r\n @action showShowInstallPrompt = () =>\r\n isIos() &&\r\n !isInStandaloneMode() &&\r\n localStorage.getItem(this.installPromptStorageName) === null;\r\n}\r\n","import {\n FREQUENTLY_ASKED_QUESTIONS,\n LOYALTY_ACTIVITY,\n PRIVACY,\n PROMOTIONS,\n REWARDS,\n SUPPORT,\n TERMS,\n} from '../constants/AppRoutes';\n\n/**\n * Menu helper function, used to identify the currently selected menu\n * @param path given a path returns the associated index number\n * */\nconst GetRouteValue = (path: string): number | null => {\n switch (path) {\n case PROMOTIONS:\n return 0;\n case LOYALTY_ACTIVITY:\n return 3;\n case REWARDS:\n return 4;\n case SUPPORT:\n return 5;\n case FREQUENTLY_ASKED_QUESTIONS:\n return 7;\n case PRIVACY:\n return 8;\n case TERMS:\n return 9;\n default:\n return null;\n }\n};\n\nexport { GetRouteValue };\n","import BaseStore from '../BaseStore';\r\nimport UserStore from '../UserStore';\r\nimport { post } from '../../../common/network/agent';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport GlobalStore from '../GlobalStore';\r\nimport SkiDataRoutes from '../../../common/config/routes/skidata-routes';\r\nimport LoyaltyCodeResponseModel from '../../../common/models/loyalty/code/LoyaltyCodeResponseModel';\r\n\r\n/**\r\n * Handles loyalty code associated requests.\r\n * */\r\nexport default class LoyaltyCodeStore extends BaseStore {\r\n constructor(private userStore: UserStore, private globalStore: GlobalStore) {\r\n super();\r\n }\r\n\r\n /**\r\n * Mediates the sending of loyalty code to SkiData, and handles the response\r\n * outcome.\r\n * @param loyaltyCode the loyalty code that will be applied.\r\n * */\r\n applyLoyaltyCode = async (loyaltyCode: string) => {\r\n try {\r\n this.isLoading = true;\r\n const request = await post(\r\n `${SkiDataRoutes.loyaltyCodes}/${this.userStore.userModel?.Data.UserID}`,\r\n JSON.stringify({\r\n portalId: this.userStore.userModel?.Data.PortalID,\r\n userId: this.userStore.userModel?.Data.UserID,\r\n loyaltyCode: loyaltyCode,\r\n processNow: true,\r\n }),\r\n );\r\n\r\n const response = (await request.json()) as LoyaltyCodeResponseModel;\r\n if (response.Success) {\r\n await this.userStore.getUser();\r\n this.globalStore.showDialog(\r\n DialogType.Success,\r\n 'Loyalty Code',\r\n response.PointsEarned > 0\r\n ? `Congratulations! You were awarded with ${response.PointsEarned} points`\r\n : \"You've been entered into the contest!\",\r\n );\r\n } else {\r\n this.globalStore.showDialog(\r\n DialogType.Error,\r\n 'Loyalty Code',\r\n `${response.FailureMessage}`,\r\n );\r\n }\r\n } catch (err) {\r\n this.globalStore.showDialog(DialogType.Error, 'Loyalty Code', err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n}\r\n","import { action, observable } from 'mobx';\r\nimport React from 'react';\r\n\r\n/**\r\n * Observable class used in the LoyaltyActivity component to support maintaining\r\n * the selected tab index when the user switches to a different page.\r\n * */\r\nexport default class LoyaltyActivityStore {\r\n @observable selectedTabIndex: number = 0;\r\n\r\n @action handleChange = (event: React.ChangeEvent<{}>, newValue: number) => {\r\n this.selectedTabIndex = newValue;\r\n };\r\n\r\n @action handleChangeIndex = (index: number) => {\r\n this.selectedTabIndex = index;\r\n };\r\n}\r\n","import { action, observable } from 'mobx';\r\nimport WemRoutes from '../../../common/config/routes/wem-routes';\r\nimport DealCategoryModel from '../../../common/models/loyalty/deals/DealCategoryModel';\r\nimport DealModel from '../../../common/models/loyalty/deals/DealModel';\r\nimport { get, post, remove } from '../../../common/network/agent';\r\nimport BaseStore from '../BaseStore';\r\nimport { format } from 'date-fns';\r\nimport _ from 'lodash';\r\n\r\n/**\r\n * An observable class that holds data about deals.\r\n * */\r\nexport default class DealsStore extends BaseStore {\r\n @observable categories: DealCategoryModel[] = []; // The deal categories\r\n @observable filteredCategories: DealCategoryModel[] = []; // stores the deal category filters\r\n @observable deals: DealModel[] = []; // contains the user deals\r\n @observable filterByFavorites: boolean = false;\r\n\r\n /**\r\n * Used to set the category filters the user has selected.\r\n * @param filters the category filter ids selected by the user\r\n */\r\n @action\r\n public applyFilters = (filters: DealCategoryModel[]) => {\r\n this.filterByFavorites = false;\r\n _.remove(this.filteredCategories);\r\n if (filters.length > 0) {\r\n this.filteredCategories = filters;\r\n }\r\n };\r\n\r\n /**\r\n * Remove a filtered category\r\n * @param categoryId the id of the category to remove\r\n */\r\n @action\r\n public removeCategoryFilter = (categoryId: number) => {\r\n this.filteredCategories = this.filteredCategories.filter(\r\n (category) => category.id !== categoryId,\r\n );\r\n };\r\n\r\n /**\r\n * Gets the available deal categories.\r\n * */\r\n @action\r\n public getDealCategories = async () => {\r\n try {\r\n this.isLoading = true;\r\n const response = await get(`${WemRoutes.dealCategories}`);\r\n if (response.ok) {\r\n this.categories = (await response.json()) as DealCategoryModel[];\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n /**\r\n * Gets all the deals for the user, which include the redeemed, and saved state (favorites).\r\n * @param userId the id of the current logged in user.\r\n * */\r\n @action\r\n public getDeals = async (userId: number) => {\r\n try {\r\n this.isLoading = true;\r\n\r\n // Get the user id and pass it as part of the api route\r\n const response = await get(`${WemRoutes.deals}/${userId}/deals`);\r\n\r\n if (response.ok) {\r\n this.deals = (await response.json()) as DealModel[];\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n /**\r\n * Used to trigger a deal redemption for the user.\r\n * @param userId the id of the current logged in user.\r\n * @param dealId the id of the deal to redeem.\r\n */\r\n @action\r\n public redeemDeal = async (userId: number, dealId: number) => {\r\n try {\r\n this.isLoading = true;\r\n\r\n const response = await post(\r\n `${WemRoutes.deals}/${userId}/deals/redeem/${dealId}`,\r\n {},\r\n );\r\n\r\n if (response.ok) {\r\n let deal = this.deals.find((f) => f.id === dealId);\r\n if (deal) {\r\n deal.redeemed = true;\r\n this.replaceADeal(deal);\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n /**\r\n * Adds a deal to the user's favorites.\r\n * @param userId the id of the current logged in user.\r\n * @param dealId the id of the deal to add to favorites.\r\n */\r\n @action\r\n public addDealToFavorites = async (userId: number, dealId: number) => {\r\n try {\r\n this.isLoading = true;\r\n\r\n const response = await post(\r\n `${WemRoutes.deals}/${userId}/deals/${dealId}`,\r\n {},\r\n );\r\n\r\n if (response.ok) {\r\n let deal = this.deals.find((f) => f.id === dealId);\r\n if (deal) {\r\n deal.saved = true;\r\n this.replaceADeal(deal);\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n /**\r\n * Removes a deal from the user's favorites.\r\n * @param userId the id of the current logged in user.\r\n * @param dealId the id of the deal to remove from favorites.\r\n */\r\n @action\r\n public removeDealFromFavorites = async (userId: number, dealId: number) => {\r\n try {\r\n this.isLoading = true;\r\n\r\n const response = await remove(\r\n `${WemRoutes.deals}/${userId}/deals/${dealId}`,\r\n );\r\n\r\n if (response.ok) {\r\n let deal = this.deals.find((f) => f.id === dealId);\r\n if (deal) {\r\n deal.saved = false;\r\n this.replaceADeal(deal);\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n };\r\n\r\n /**\r\n * Updates the filterByFavorites variable.\r\n * */\r\n @action toggleFavorites = () =>\r\n (this.filterByFavorites = !this.filterByFavorites);\r\n\r\n /**\r\n * Returns a deal based on the provided deal id.\r\n * @param dealId the id of the deal\r\n * */\r\n public getDealById = (dealId: number): DealModel | undefined => {\r\n return this.deals.find((f) => f.id === dealId);\r\n };\r\n\r\n /**\r\n * Returns the expiry date for a deal\r\n * @param dealId the id of the deal\r\n * */\r\n public getExpiryDate = (dealId: number): string => {\r\n const deal = this.getDealById(dealId);\r\n return deal?.expiry\r\n ? `Valid Until ${format(new Date(deal.expiry), 'MMMM dd, yyyy')}`\r\n : '';\r\n };\r\n\r\n /**\r\n * Returns deals based on the user filter selection, or all if no filters are\r\n * set.\r\n * */\r\n public getFilteredDeals = (): DealModel[] => {\r\n // Return the user favorites/saved if filterByFavorites is set to true\r\n if (this.filterByFavorites) {\r\n return this.deals.filter((deal) => deal.saved);\r\n } else {\r\n // If we are filtering by categories, check if we have filters first\r\n // otherwise, just return all the deals\r\n if (this.filteredCategories.length > 0) {\r\n return this.deals.filter((deal) => {\r\n let isInCategory = this.filteredCategories.some((category) =>\r\n deal.categories.includes(category.id),\r\n );\r\n return isInCategory ? deal : null;\r\n });\r\n } else {\r\n return this.deals;\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Helper function that replaces a deal in the deals array with another of the same id.\r\n * @param newDeal the deal which will replace another\r\n */\r\n @action\r\n private replaceADeal = (newDeal: DealModel) => {\r\n this.deals = this.deals.map((deal) =>\r\n deal.id === newDeal.id ? newDeal : deal,\r\n );\r\n };\r\n}\r\n","import { createContext } from 'react';\nimport PromotionStore from './PromotionStore';\nimport AuthStore from './AuthStore';\nimport BaseStore from './BaseStore';\nimport UserStore from './UserStore';\nimport PointStore from './loyalty/PointStore';\nimport ReceiptStore from './loyalty/ReceiptStore';\nimport RewardStore from './loyalty/reward-store';\nimport SupportStore from './loyalty/support-store';\nimport GlobalStore from './GlobalStore';\nimport LoyaltyCodeStore from './loyalty/LoyaltyCodeStore';\nimport LoyaltyActivityStore from './LoyaltyActivityStore';\nimport DealsStore from './loyalty/DealsStore';\n\nconst globalStore = new GlobalStore();\nconst authStore = new AuthStore(globalStore);\nconst userStore = new UserStore(globalStore, authStore);\nconst promotionStore = new PromotionStore();\nconst pointStore = new PointStore();\nconst receiptStore = new ReceiptStore(userStore, globalStore);\nconst rewardStore = new RewardStore(globalStore, userStore);\nconst supportStore = new SupportStore(globalStore);\nconst loyaltyCodeStore = new LoyaltyCodeStore(userStore, globalStore);\nconst loyaltyActivityStore = new LoyaltyActivityStore();\nconst dealsStore = new DealsStore();\nconst baseStore = new BaseStore();\n\nexport const Stores = {\n promotionStore,\n authStore,\n userStore,\n baseStore,\n pointStore,\n receiptStore,\n rewardStore,\n supportStore,\n globalStore,\n loyaltyCodeStore,\n loyaltyActivityStore,\n dealsStore,\n};\n\nexport default createContext(Stores);\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nvar _ref2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M52.1,152v-33.3c0-1.7,1.4-3,3-3h2c1.7,0,3,1.4,3,3V152c0,2.2,1.8,4,4,4h72.6c2.2,0,4-1.8,4-4v-33.3c0-1.7,1.4-3,3-3h2 c1.7,0,3,1.4,3,3V152c0,6.7-5.4,12.1-12.1,12.1H64.2C57.5,164.1,52.1,158.6,52.1,152z M57,81.7l1.8,1.8c1.2,1.2,3.1,1.2,4.3,0 l33.1-33.3v70.5c0,1.7,1.4,3,3,3h2.5c1.7,0,3-1.4,3-3V50.2l33.1,33.2c1.2,1.2,3.1,1.2,4.3,0l1.8-1.8c1.2-1.2,1.2-3.1,0-4.3 l-41.3-41.5c-1.2-1.2-3.1-1.2-4.3,0L57,77.4C55.8,78.6,55.8,80.5,57,81.7z\"\n});\n\nfunction SvgShareIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, [\"title\", \"titleId\"]);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n id: \"Layer_1\",\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 200 200\",\n style: {\n enableBackground: \"new 0 0 200 200\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _ref2);\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgShareIcon);\nexport default __webpack_public_path__ + \"static/media/share-icon.1a3a8a84.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\r\nimport { SvgIcon } from '@material-ui/core';\r\nimport { ReactComponent as AppleShareIcon } from '../../../common/resources/images/share-icon.svg';\r\n\r\nconst ShareIcon: React.FC = () => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ShareIcon;\r\n","import ShareIcon from './ShareIcon';\r\n\r\nexport default ShareIcon;\r\n","import React, { useContext, useState } from 'react';\r\nimport { Snackbar, Typography } from '@material-ui/core';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport CloseIcon from '@material-ui/icons/Close';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { observer } from 'mobx-react-lite';\r\nimport ShareIcon from '../share-icon';\r\n\r\nconst InstallAppSnackbar: React.FC = () => {\r\n const { globalStore } = useContext(Stores);\r\n const [shouldShowInstallPrompt, setShouldShowInstallPrompt] = useState(\r\n globalStore.showShowInstallPrompt(),\r\n );\r\n return (\r\n {\r\n localStorage.setItem(globalStore.installPromptStorageName, 'true');\r\n setShouldShowInstallPrompt(false);\r\n }}\r\n message={\r\n \r\n Add this web app to your home screen! Tap and then Add\r\n to Home Screen!\r\n \r\n }\r\n action={\r\n \r\n {\r\n localStorage.setItem(\r\n globalStore.installPromptStorageName,\r\n 'true',\r\n );\r\n setShouldShowInstallPrompt(false);\r\n }}\r\n >\r\n \r\n \r\n \r\n }\r\n />\r\n );\r\n};\r\n\r\nexport default observer(InstallAppSnackbar);\r\n","import InstallAppSnackbar from './InstallAppSnackbar';\r\n\r\nexport default InstallAppSnackbar;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst AppFooterStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n position: 'absolute',\r\n display: 'flex',\r\n width: '100%',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n flexDirection: 'column',\r\n bottom: 20,\r\n },\r\n privacyAndTermsContainer: {\r\n display: 'flex',\r\n flexDirection: 'row',\r\n },\r\n link: {\r\n '&:hover': {\r\n cursor: 'pointer',\r\n },\r\n },\r\n }),\r\n);\r\n\r\nexport default AppFooterStyles;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst CopyrightStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n textColor: {\r\n color: '#69686d',\r\n },\r\n }),\r\n);\r\n\r\nexport default CopyrightStyles;\r\n","import React from 'react';\r\nimport { Typography } from '@material-ui/core';\r\nimport CopyrightStyles from './CopyrightStyles';\r\nimport { VERSION } from '../../../common/constants/MyWEMConstants';\r\n\r\nconst Copyright: React.FC = () => {\r\n const classes = CopyrightStyles();\r\n return (\r\n \r\n Copyright © {new Date().getFullYear()} West Edmonton Mall •\r\n Version {VERSION}\r\n \r\n );\r\n};\r\n\r\nexport default Copyright;\r\n","const VERSION = '0.8.3';\r\n\r\nexport { VERSION };","import Copyright from './Copyright';\r\n\r\nexport default Copyright;","import React from 'react';\r\nimport AppFooterStyles from './AppFooterStyles';\r\nimport Copyright from '../copyright';\r\nimport { Divider, Link, Typography } from '@material-ui/core';\r\nimport { history } from '../../../index';\r\n\r\nconst AppFooter: React.FC = () => {\r\n const classes = AppFooterStyles();\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default AppFooter;\r\n","import AppFooter from './AppFooter';\r\n\r\nexport default AppFooter;\r\n","import React, { Fragment, useContext, useEffect } from 'react';\r\nimport MyWemLogo from '../../../common/resources/images/mywem.svg';\r\nimport { Button, Container, Grid, Typography } from '@material-ui/core';\r\nimport LandingStyles from './LandingStyles';\r\nimport { RouteComponentProps, withRouter } from 'react-router-dom';\r\nimport { history } from '../../../index';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport FacebookButton from '../facebook-button';\r\nimport InstallAppSnackbar from '../install-app-snackbar';\r\nimport AppFooter from '../app-footer';\r\n\r\nconst Landing: React.FC = (props) => {\r\n const classes = LandingStyles();\r\n const { userStore, authStore } = useContext(Stores);\r\n\r\n useEffect(() => {\r\n userStore.resetStore();\r\n authStore.resetStore();\r\n }, [userStore, authStore]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n My\r\n WEM\r\n \r\n \r\n \r\n \r\n BY WEST EDMONTON MALL\r\n \r\n \r\n \r\n \r\n MyWEM Rewards Program is no longer available.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default withRouter(Landing);\r\n","import Landing from './Landing';\r\nexport default Landing;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst BottomAppbarStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n position: 'fixed',\r\n bottom: 0,\r\n width: 'inherit',\r\n },\r\n }),\r\n);\r\n\r\nexport default BottomAppbarStyles;\r\n","import React, { useContext, useState } from 'react';\r\nimport {\r\n BottomNavigation,\r\n BottomNavigationAction,\r\n Typography,\r\n} from '@material-ui/core';\r\nimport BottomAppbarStyles from './BottomAppbarStyles';\r\nimport HomeOutlinedIcon from '@material-ui/icons/HomeOutlined';\r\nimport CardMembershipIcon from '@material-ui/icons/CardMembership';\r\nimport HistoryIcon from '@material-ui/icons/History';\r\nimport RedeemIcon from '@material-ui/icons/Redeem';\r\nimport { withRouter, RouteComponentProps } from 'react-router-dom';\r\nimport { observer } from 'mobx-react-lite';\r\nimport { history } from '../../../index';\r\nimport Stores from '../../../domain/stores/Stores';\r\n\r\nconst BottomAppBar: React.FC = (props) => {\r\n const classes = BottomAppbarStyles();\r\n const { globalStore } = useContext(Stores);\r\n return (\r\n \r\n history.push('/promotions')}\r\n icon={}\r\n label={Home}\r\n aria-label={'Home'}\r\n />\r\n\r\n }\r\n onClick={() => history.push('/activity')}\r\n label={History}\r\n aria-label={'History'}\r\n />\r\n }\r\n onClick={() => history.push('/rewards')}\r\n label={Redeem}\r\n aria-label={'Redeem'}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default withRouter(observer(BottomAppBar));\r\n","import BottomAppBar from './BottomAppBar';\r\nexport default BottomAppBar;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst ProfileStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n marginTop: '90px',\r\n marginBottom: '80px',\r\n },\r\n avatar: {\r\n width: 100,\r\n height: 100,\r\n backgroundColor: 'inherit',\r\n },\r\n userImage: {\r\n width: 'inherit',\r\n height: 'inherit',\r\n color: theme.palette.primary.dark,\r\n },\r\n infoPaper: {\r\n width: 150,\r\n height: 150,\r\n },\r\n saveProfileButton: {\r\n backgroundColor: theme.palette.secondary.main,\r\n color: theme.palette.primary.contrastText,\r\n },\r\n editIconButton: {\r\n color: theme.palette.background.paper,\r\n },\r\n inputFile: {\r\n display: 'none',\r\n },\r\n selectEmpty: {\r\n marginTop: theme.spacing(2),\r\n },\r\n }),\r\n);\r\n\r\nexport default ProfileStyles;\r\n","const NAME_EXPRESSION = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßnjƊŽ∂ð ,.'-]+$/u;\r\nconst POSTAL_ZIP_EXPRESSION = /^[A-Za-z]\\d[A-Za-z][ -]?\\d[A-Za-z]|^\\d{5}([-]?\\d{4})?$/;\r\n\r\nexport { NAME_EXPRESSION, POSTAL_ZIP_EXPRESSION };\r\n","import * as Yup from 'yup';\r\nimport {\r\n NAME_EXPRESSION,\r\n POSTAL_ZIP_EXPRESSION,\r\n} from '../../../common/constants/RegularExpressionConstants';\r\n\r\nconst ProfileSchema = Yup.object().shape({\r\n firstName: Yup.string()\r\n .min(2, 'Too Short!')\r\n .max(50, 'Too Long!')\r\n .matches(NAME_EXPRESSION, 'Please enter valid first name')\r\n .required('Please enter your first name'),\r\n lastName: Yup.string()\r\n .min(2, 'Too Short!')\r\n .max(50, 'Too Long!')\r\n .matches(NAME_EXPRESSION, 'Please enter valid last name')\r\n .required('Please enter your last name'),\r\n postalCode: Yup.string()\r\n .matches(POSTAL_ZIP_EXPRESSION, 'Please enter a valid postal/zip code')\r\n .required('Please enter your postal/zip code'),\r\n birthDate: Yup.date().required('Please enter your birth date'),\r\n gender: Yup.string().required('Please select a gender'),\r\n});\r\n\r\nexport default ProfileSchema;\r\n","export default class SelectListModel {\r\n constructor(public Key: string, public Value: string) {}\r\n}\r\n","import SelectListModel from '../../models/app/SelectListModel';\r\n\r\nconst GenderList = [\r\n new SelectListModel('2', 'Female'),\r\n new SelectListModel('1', 'Male'),\r\n new SelectListModel('0', 'Prefer Not Say'),\r\n] as SelectListModel[];\r\n\r\nexport default GenderList;\r\n","import React, { ChangeEvent, createRef } from 'react';\r\nimport { FormikProps } from 'formik';\r\nimport {\r\n Avatar,\r\n Badge,\r\n Button,\r\n FormControl,\r\n FormHelperText,\r\n Grid,\r\n IconButton,\r\n InputLabel,\r\n Link,\r\n MenuItem,\r\n Select,\r\n TextField,\r\n Typography,\r\n} from '@material-ui/core';\r\nimport EditOutlinedIcon from '@material-ui/icons/EditOutlined';\r\nimport AccountCircleOutlinedIcon from '@material-ui/icons/AccountCircleOutlined';\r\nimport { history } from '../../../index';\r\nimport {\r\n KeyboardDatePicker,\r\n MuiPickersUtilsProvider,\r\n} from '@material-ui/pickers';\r\nimport DateFnsUtils from '@date-io/date-fns';\r\nimport GenderList from '../../../common/config/data/GenderList';\r\nimport ProfileUpdateModel from '../../../common/models/user/profile/ProfileUpdateModel';\r\n\r\ninterface IProfileFormProps {\r\n formikProps: FormikProps;\r\n classes: Record<\r\n | 'root'\r\n | 'avatar'\r\n | 'userImage'\r\n | 'infoPaper'\r\n | 'saveProfileButton'\r\n | 'editIconButton'\r\n | 'inputFile'\r\n | 'selectEmpty',\r\n string\r\n >;\r\n userPhoto: string | null | undefined;\r\n uploadPhoto: (e: ChangeEvent) => Promise;\r\n resetPassword: (username: string) => Promise;\r\n}\r\n\r\nconst ProfileForm: React.FC = ({\r\n formikProps,\r\n classes,\r\n userPhoto,\r\n uploadPhoto,\r\n resetPassword,\r\n}) => {\r\n const uploadProfilePicRef = createRef();\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 uploadProfilePicRef.current?.click();\r\n }}\r\n >\r\n {userPhoto ? (\r\n {'Profile'}\r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Hello, {formikProps.values.firstName}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n history.push('/support')}>\r\n Contact support to make email changes\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n formikProps.setFieldValue('birthDate', date, false)\r\n }\r\n format=\"MM/dd/yyyy\"\r\n label=\"What's Your Birthday? (+25 Points)\"\r\n views={['year', 'month', 'date']}\r\n value={formikProps.values.birthDate}\r\n helperText={\r\n formikProps.errors.birthDate && formikProps.touched.birthDate\r\n ? formikProps.errors.birthDate\r\n : ''\r\n }\r\n error={\r\n !!(\r\n formikProps.errors.birthDate && formikProps.touched.birthDate\r\n )\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n Gender (+25 Points)\r\n \r\n {GenderList.map((gender) => {\r\n return (\r\n \r\n {gender.Value}\r\n \r\n );\r\n })}\r\n \r\n {formikProps.errors.gender && formikProps.touched.gender ? (\r\n {formikProps.errors.gender}\r\n ) : null}\r\n \r\n \r\n \r\n \r\n Save\r\n \r\n \r\n \r\n {\r\n if (formikProps.values.email) {\r\n await resetPassword(formikProps.values.email);\r\n }\r\n }}\r\n >\r\n Change Password\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default ProfileForm;\r\n","export default class ProfileUpdateModel {\r\n constructor(\r\n public firstName: string | null | undefined,\r\n public lastName: string | null | undefined,\r\n public postalCode: string | null | undefined,\r\n public gender: string | null | undefined,\r\n public email: string | null | undefined,\r\n public birthDate: Date | null | undefined,\r\n ) {}\r\n}\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst TopAppbarStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n appBar: {\r\n background: theme.palette.primary.main,\r\n width: 'inherit',\r\n },\r\n transparentAppBar: {\r\n background: 'transparent',\r\n boxShadow: 'none',\r\n },\r\n inputRoot: {\r\n color: 'inherit',\r\n },\r\n avatar: {\r\n height: 70,\r\n width: 70,\r\n },\r\n avatarImage: {\r\n height: 'inherit',\r\n width: 'inherit',\r\n },\r\n }),\r\n);\r\n\r\nexport default TopAppbarStyles;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst AppDrawerStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'space-between',\r\n height: '100%',\r\n },\r\n avatarListItem: {\r\n display: 'flex',\r\n justifyContent: 'center',\r\n height: 80,\r\n },\r\n avatar: {\r\n width: 80,\r\n height: 80,\r\n },\r\n socialMediaListItem: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n },\r\n socialMediaIconContainer: {\r\n display: 'flex',\r\n width: '100%',\r\n justifyContent: 'space-between',\r\n },\r\n facebookIcon: {\r\n color: '#3b5999',\r\n },\r\n twitterIcon: {\r\n color: '#55acee',\r\n },\r\n instagramIcon: {\r\n color: '#e4405f',\r\n },\r\n }),\r\n);\r\n\r\nexport default AppDrawerStyles;\r\n","const WEMFacebook = 'https://www.facebook.com/Westedmall/';\r\nconst WEMInstagram = 'https://www.instagram.com/official_wem/';\r\nconst WEMTwitter = 'https://twitter.com/Official_WEM';\r\n\r\nexport { WEMFacebook, WEMInstagram, WEMTwitter };\r\n","import React, { useContext } from 'react';\r\nimport {\r\n Divider,\r\n List,\r\n ListItem,\r\n ListItemText,\r\n Drawer,\r\n ListItemIcon,\r\n Typography,\r\n Avatar,\r\n ListItemAvatar,\r\n IconButton,\r\n} from '@material-ui/core';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { history } from '../../../index';\r\nimport ContactSupportOutlinedIcon from '@material-ui/icons/ContactSupportOutlined';\r\nimport ExitToAppOutlinedIcon from '@material-ui/icons/ExitToAppOutlined';\r\nimport MonetizationOnOutlinedIcon from '@material-ui/icons/MonetizationOnOutlined';\r\nimport AssignmentTurnedInOutlinedIcon from '@material-ui/icons/AssignmentTurnedInOutlined';\r\nimport VisibilityOutlinedIcon from '@material-ui/icons/VisibilityOutlined';\r\nimport AppDrawerStyles from './AppDrawerStyles';\r\nimport HelpOutlineOutlinedIcon from '@material-ui/icons/HelpOutlineOutlined';\r\nimport MyWem from '../../../common/resources/images/mywem.svg';\r\nimport LocalOfferOutlinedIcon from '@material-ui/icons/LocalOfferOutlined';\r\nimport FacebookIcon from '@material-ui/icons/Facebook';\r\nimport TwitterIcon from '@material-ui/icons/Twitter';\r\nimport InstagramIcon from '@material-ui/icons/Instagram';\r\nimport { ga } from 'react-ga';\r\nimport {\r\n WEMFacebook,\r\n WEMInstagram,\r\n WEMTwitter,\r\n} from '../../../common/config/routes/SocialMedia';\r\n\r\ninterface AppDrawerProps {\r\n onClose: () => void;\r\n open: boolean;\r\n}\r\n\r\nconst AppDrawer: React.FC = (props) => {\r\n const { authStore, userStore, globalStore } = useContext(Stores);\r\n const classes = AppDrawerStyles();\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 Hello, {userStore.userModel?.Data.DisplayName}\r\n \r\n }\r\n secondary={\r\n \r\n {userStore.userModel?.Data.CurrentPoints?.PointsRemaining.toLocaleString(\r\n 'en-US',\r\n { maximumSignificantDigits: 3 },\r\n )}{' '}\r\n Points\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n Check us out on social media\r\n \r\n
\r\n {\r\n ga(\r\n 'send',\r\n 'event',\r\n 'outbound',\r\n 'click',\r\n `WEM Facebook - ${WEMFacebook}`,\r\n {\r\n transport: 'beacon',\r\n hitCallback: function () {\r\n console.log(WEMFacebook);\r\n },\r\n },\r\n );\r\n window.open(WEMFacebook, '_blank');\r\n }}\r\n >\r\n \r\n \r\n {\r\n ga(\r\n 'send',\r\n 'event',\r\n 'outbound',\r\n 'click',\r\n `WEM Instagram - ${WEMInstagram}`,\r\n {\r\n transport: 'beacon',\r\n hitCallback: function () {\r\n console.log(WEMInstagram);\r\n },\r\n },\r\n );\r\n window.open(WEMInstagram, '_blank');\r\n }}\r\n >\r\n \r\n \r\n {\r\n ga(\r\n 'send',\r\n 'event',\r\n 'outbound',\r\n 'click',\r\n `WEM Twitter - ${WEMTwitter}`,\r\n {\r\n transport: 'beacon',\r\n hitCallback: function () {\r\n console.log(WEMTwitter);\r\n },\r\n },\r\n );\r\n window.open(WEMTwitter, '_blank');\r\n }}\r\n >\r\n \r\n \r\n
\r\n
\r\n \r\n history.push('/support')}\r\n selected={globalStore.routeValue === 5}\r\n >\r\n \r\n \r\n \r\n CONTACT SUPPORT} />\r\n \r\n \r\n history.push('/faqs')}\r\n selected={globalStore.routeValue === 7}\r\n >\r\n \r\n \r\n \r\n FAQs} />\r\n \r\n \r\n history.push('/privacy')}\r\n selected={globalStore.routeValue === 8}\r\n >\r\n \r\n \r\n \r\n PRIVACY} />\r\n \r\n \r\n history.push('/terms')}\r\n selected={globalStore.routeValue === 9}\r\n >\r\n \r\n \r\n \r\n TERMS} />\r\n \r\n \r\n
\r\n
\r\n await authStore.logout()}\r\n >\r\n \r\n \r\n \r\n LOGOUT} />\r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default observer(AppDrawer);\r\n","import AppDrawer from './AppDrawer';\r\nexport default AppDrawer;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst AppToolBarStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: 'flex',\r\n width: 'inherit',\r\n flexDirection: 'row',\r\n justifyContent: 'space-between',\r\n },\r\n actionBarContainer: {\r\n display: 'flex',\r\n flexDirection: 'row',\r\n },\r\n pointsContainer: {\r\n display: 'flex',\r\n flexDirection: 'row',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n },\r\n menuButton: {\r\n marginRight: theme.spacing(2),\r\n mixBlendMode: 'inherit',\r\n },\r\n }),\r\n);\r\n\r\nexport default AppToolBarStyles;\r\n","import React, { ReactNode, useContext } from 'react';\r\nimport { Button, IconButton, useMediaQuery, useTheme } from '@material-ui/core';\r\nimport { history } from '../../../index';\r\nimport LoyaltyOutlinedIcon from '@material-ui/icons/LoyaltyOutlined';\r\nimport AccountCircle from '@material-ui/icons/AccountCircle';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport WifiOffRoundedIcon from '@material-ui/icons/WifiOffRounded';\r\nimport AppToolBarStyles from './AppToolBarStyles';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { observer } from 'mobx-react-lite';\r\n\r\ninterface AppToolBarActionRowProps {\r\n showPromoCodeIcon?: boolean;\r\n showUserIcon?: boolean;\r\n actionButton?: ReactNode;\r\n}\r\n\r\nconst AppToolBarActionRow: React.FC = ({\r\n showPromoCodeIcon,\r\n showUserIcon,\r\n actionButton,\r\n}) => {\r\n const { globalStore } = useContext(Stores);\r\n const classes = AppToolBarStyles();\r\n const theme = useTheme();\r\n const matches = useMediaQuery(theme.breakpoints.up('md'));\r\n return (\r\n
\r\n {showPromoCodeIcon ? (\r\n matches ? (\r\n }\r\n aria-label=\"loyalty promo code\"\r\n aria-controls=\"menu-appbar\"\r\n aria-haspopup=\"true\"\r\n color=\"inherit\"\r\n onClick={() => history.push('/loyaltycode')}\r\n >\r\n Loyalty Code\r\n \r\n ) : (\r\n history.push('/loyaltycode')}\r\n >\r\n \r\n \r\n )\r\n ) : null}\r\n {showUserIcon ? (\r\n matches ? (\r\n }\r\n aria-label=\"account of current user\"\r\n aria-controls=\"menu-appbar\"\r\n aria-haspopup=\"true\"\r\n onClick={() => history.push('/profile')}\r\n color=\"inherit\"\r\n >\r\n PROFILE\r\n \r\n ) : (\r\n history.push('/profile')}\r\n color=\"inherit\"\r\n >\r\n \r\n \r\n )\r\n ) : null}\r\n {actionButton ? actionButton : null}\r\n {globalStore.isOnline ? null : (\r\n {\r\n globalStore.showDialog(\r\n DialogType.Error,\r\n 'Offline',\r\n 'You are currently browsing the application in offline mode.',\r\n );\r\n }}\r\n >\r\n \r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default observer(AppToolBarActionRow);\r\n","import React from 'react';\r\nimport { history } from '../../../index';\r\nimport ArrowBackIcon from '@material-ui/icons/ArrowBack';\r\nimport { IconButton } from '@material-ui/core';\r\n\r\ninterface AppToolBarBackButtonProps {\r\n classes: Record<'menuButton', string>;\r\n backButtonActionOrUrl?: Function | string;\r\n}\r\n\r\nconst AppToolBarBackButton: React.FC = ({\r\n classes,\r\n backButtonActionOrUrl,\r\n}) => {\r\n return (\r\n {\r\n if (typeof backButtonActionOrUrl === 'function') {\r\n backButtonActionOrUrl();\r\n } else {\r\n history.push(backButtonActionOrUrl || '');\r\n }\r\n }}\r\n >\r\n \r\n \r\n );\r\n};\r\n\r\nexport default AppToolBarBackButton;\r\n","import React, { Dispatch, SetStateAction } from 'react';\r\nimport MenuIcon from '@material-ui/icons/Menu';\r\nimport { IconButton } from '@material-ui/core';\r\n\r\ninterface AppHamburgerButtonProps {\r\n setDrawerOpen: Dispatch>;\r\n classes: Record<'menuButton', string>;\r\n}\r\n\r\nconst AppHamburgerButton: React.FC = ({\r\n setDrawerOpen,\r\n classes,\r\n}) => {\r\n return (\r\n setDrawerOpen(true)}\r\n >\r\n \r\n \r\n );\r\n};\r\n\r\nexport default AppHamburgerButton;\r\n","import React, { Dispatch, ReactNode, SetStateAction, useContext } from 'react';\r\nimport { Toolbar, Typography } from '@material-ui/core';\r\nimport AppToolBarStyles from './AppToolBarStyles';\r\nimport AppToolBarActionRow from './AppToolBarActionRow';\r\nimport AppToolBarBackButton from './AppToolBarBackButton';\r\nimport AppHamburgerButton from './AppHamburgerButton';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\n\r\ninterface AppToolBarProps {\r\n backButtonActionOrUrl?: Function | string;\r\n setDrawerOpen: Dispatch>;\r\n title?: string;\r\n showPromoCodeIcon?: boolean;\r\n showUserIcon?: boolean;\r\n actionButton?: ReactNode;\r\n}\r\n\r\nconst AppToolBar: React.FC = (props) => {\r\n const classes = AppToolBarStyles();\r\n const { userStore } = useContext(Stores);\r\n return (\r\n \r\n
\r\n {props.backButtonActionOrUrl ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {userStore.userModel?.Data.CurrentPoints?.PointsRemaining && (\r\n \r\n {userStore.userModel?.Data.CurrentPoints?.PointsRemaining || 0}{' '}\r\n POINTS\r\n \r\n )}\r\n
\r\n {props.title && (\r\n \r\n {props?.title?.toLocaleUpperCase()}\r\n \r\n )}\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default observer(AppToolBar);\r\n","import TopAppbar from './TopAppbar';\r\nexport default TopAppbar;\r\n","import React, { Fragment, ReactNode, useState } from 'react';\r\nimport { AppBar } from '@material-ui/core';\r\nimport TopAppbarStyles from './TopAppbarStyles';\r\nimport AppDrawer from '../app-drawer';\r\nimport AppToolBar from '../app-toolbar/AppToolBar';\r\n\r\ninterface TopAppbarProps {\r\n children?: ReactNode;\r\n title?: string;\r\n showUserIcon?: boolean;\r\n backButtonActionOrUrl?: Function | string;\r\n position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';\r\n transparent?: boolean;\r\n height?: number;\r\n actionButton?: ReactNode;\r\n showPromoCodeIcon?: boolean;\r\n isDetailAppBar?: boolean;\r\n}\r\n\r\nconst TopAppbar: React.FC = (props) => {\r\n const classes = TopAppbarStyles();\r\n const [drawerOpen, setDrawerOpen] = useState(false);\r\n return (\r\n \r\n \r\n \r\n {props.children}\r\n \r\n setDrawerOpen(false)} open={drawerOpen} />\r\n \r\n );\r\n};\r\n\r\nexport default TopAppbar;\r\n","import Profile from './Profile';\r\nexport default Profile;\r\n","import React, { Fragment, useContext } from 'react';\r\nimport BottomAppBar from '../bottom-appbar';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport ProfileStyles from './ProfileStyles';\r\nimport { Container } from '@material-ui/core';\r\nimport { Formik } from 'formik';\r\nimport ProfileSchema from './ProfileSchema';\r\nimport ProfileForm from './ProfileForm';\r\nimport ProfileUpdateModel from '../../../common/models/user/profile/ProfileUpdateModel';\r\nimport TopAppbar from '../top-appbar';\r\n\r\nconst Profile = () => {\r\n const { userStore, authStore } = useContext(Stores);\r\n const classes = ProfileStyles();\r\n\r\n return (\r\n \r\n \r\n {\r\n await userStore.updateUserProfileData(values);\r\n }}\r\n >\r\n {(formikProps) => (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default observer(Profile);\r\n","import AuthenticatedRoute from './AuthenticatedRoute';\r\nexport default AuthenticatedRoute;\r\n","/**\r\n * A higher order component, where applicable, and when wrapper around a component provides authentication triggers\r\n * based on responses received from SkiData.\r\n * */\r\nimport React, { useContext, useEffect } from 'react';\r\nimport { Route } from 'react-router-dom';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { RouteProps } from 'react-router-dom';\r\n\r\ninterface AuthenticatedRouteProps extends RouteProps {\r\n component: any;\r\n}\r\n\r\nconst AuthenticatedRoute: React.FC = ({\r\n component: Component,\r\n ...rest\r\n}) => {\r\n const { userStore } = useContext(Stores);\r\n useEffect(() => {\r\n (async () => await userStore.getUser())();\r\n }, [userStore]);\r\n return (\r\n } />\r\n );\r\n};\r\n\r\nexport default observer(AuthenticatedRoute);\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst RewardStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n marginTop: '80px',\r\n marginBottom: '80px',\r\n flexGrow: 1,\r\n },\r\n detailRoot: {\r\n flexGrow: 1,\r\n },\r\n appBar: {\r\n marginBottom: '10px',\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n title: {\r\n flexGrow: 1,\r\n },\r\n menuButton: {\r\n marginRight: theme.spacing(2),\r\n },\r\n gridList: {\r\n width: '100%',\r\n height: '100%',\r\n },\r\n gridListTile: {\r\n '&:hover': {\r\n cursor: 'pointer',\r\n },\r\n },\r\n icon: {\r\n position: 'absolute',\r\n right: 10,\r\n transform: 'translate(0, -50%)',\r\n color: theme.palette.secondary.main,\r\n },\r\n divider: {\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n redeemButton: {\r\n backgroundColor: theme.palette.secondary.main,\r\n color: theme.palette.secondary.contrastText,\r\n '&:hover': {\r\n backgroundColor: theme.palette.secondary.main,\r\n },\r\n },\r\n cost: {\r\n color: theme.palette.primary.main,\r\n },\r\n available: {\r\n color: theme.palette.secondary.main,\r\n },\r\n soldOutItemBackground: {\r\n backgroundColor: theme.palette.primary.main,\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n color: theme.palette.background.paper,\r\n },\r\n availableItemBackground: {\r\n background: 'rgba(0, 0, 0, 0.6)',\r\n },\r\n caption: {\r\n position: 'absolute',\r\n bottom: '0px',\r\n width: '100%',\r\n minHeight: 50,\r\n },\r\n gridListTileBar: {\r\n padding: theme.spacing(1),\r\n color: theme.palette.background.paper,\r\n },\r\n }),\r\n);\r\n\r\nexport default RewardStyles;\r\n","import React, { Fragment, useContext, useEffect } from 'react';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport {\r\n Container,\r\n GridList,\r\n GridListTile,\r\n MenuItem,\r\n Select,\r\n Typography,\r\n useMediaQuery,\r\n useTheme,\r\n} from '@material-ui/core';\r\nimport { history } from '../../../index';\r\nimport RewardStyles from './RewardStyles';\r\nimport BottomAppBar from '../bottom-appbar';\r\nimport clsx from 'clsx';\r\nimport TopAppbar from '../top-appbar';\r\n\r\nconst Reward: React.FC = () => {\r\n const { rewardStore } = useContext(Stores);\r\n const classes = RewardStyles();\r\n const theme = useTheme();\r\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'), {\r\n defaultMatches: true,\r\n });\r\n\r\n useEffect(() => {\r\n (async () => await rewardStore.getRewards())();\r\n }, [rewardStore]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n ) => {\r\n rewardStore.categoryId = event.target.value as number;\r\n }}\r\n variant={'outlined'}\r\n fullWidth={true}\r\n >\r\n \r\n All\r\n \r\n {rewardStore.rewardsCategories?.Data.map((category) => {\r\n return (\r\n \r\n {category.RewardCategoryName}\r\n \r\n );\r\n })}\r\n \r\n \r\n {rewardStore.getRewardsByCategory().map((rewards) => {\r\n let reward = rewards[0];\r\n let costInPoints = reward.CostInPoints.toString();\r\n if (rewards.length > 1) {\r\n const min = Math.min.apply(\r\n Math,\r\n rewards.map((f) => {\r\n return f.CostInPoints;\r\n }),\r\n );\r\n const max = Math.max.apply(\r\n Math,\r\n rewards.map((f) => {\r\n return f.CostInPoints;\r\n }),\r\n );\r\n costInPoints = min === max ? max.toString() : `${min} - ${max}`;\r\n }\r\n return (\r\n {\r\n if (reward.QuantityRemaining > 0) {\r\n history.push(`/rewards/${reward.LoyaltyProductID}`);\r\n }\r\n }}\r\n className={classes.gridListTile}\r\n cols={isMobile ? 2 : 1}\r\n >\r\n \r\n \r\n {reward.QuantityRemaining === 0 ? (\r\n \r\n SOLD OUT\r\n \r\n ) : (\r\n
\r\n \r\n {reward.Title}\r\n \r\n \r\n {costInPoints} points\r\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 observer(Reward);\r\n","import * as Yup from 'yup';\r\n\r\nconst RewardDetailFormSchema = Yup.object().shape({\r\n quantity: Yup.number().integer().min(1).required('Please enter a quantity'),\r\n});\r\n\r\nexport default RewardDetailFormSchema;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst DetailPageStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n [theme.breakpoints.down('sm')]: {\r\n marginTop: theme.spacing(7),\r\n marginBottom: theme.spacing(10),\r\n width: '100%',\r\n },\r\n [theme.breakpoints.up('sm')]: {\r\n marginTop: theme.spacing(8),\r\n marginBottom: theme.spacing(10),\r\n width: '50%',\r\n alignSelf: 'center',\r\n },\r\n },\r\n image: {\r\n width: '100%',\r\n marginBottom: theme.spacing(3),\r\n },\r\n textMargins: {\r\n marginLeft: theme.spacing(1),\r\n marginRight: theme.spacing(1),\r\n },\r\n linkButtonWhiteBackground: {\r\n borderRadius: 8,\r\n minWidth: 250,\r\n minHeight: 65,\r\n backgroundColor: theme.palette.background.paper,\r\n color: theme.palette.secondary.main,\r\n },\r\n linkButtonGreenBackground: {\r\n borderRadius: 8,\r\n minWidth: 250,\r\n minHeight: 65,\r\n backgroundColor: theme.palette.secondary.main,\r\n color: theme.palette.background.paper,\r\n },\r\n }),\r\n);\r\n\r\nexport default DetailPageStyles;\r\n","const EXTERNAL_LINK = 'External';\r\nconst INTERNAL_LINK = 'Internal';\r\n\r\nexport { EXTERNAL_LINK, INTERNAL_LINK };\r\n","import DetailPage from './DetailPage';\r\nexport default DetailPage;\r\n","import React, { Fragment, ReactNode } from 'react';\r\nimport DetailPageStyles from './DetailPageStyles';\r\nimport {\r\n Button,\r\n Container,\r\n Divider,\r\n Grid,\r\n Typography,\r\n} from '@material-ui/core';\r\nimport { EXTERNAL_LINK } from '../../../common/constants/promotion-constants';\r\nimport { history } from '../../../index';\r\nimport HeroImageModel from '../../../common/models/app/HeroImageModel';\r\nimport LinkModel from '../../../common/models/app/LinkModel';\r\nimport { ga } from 'react-ga';\r\nimport TopAppbar from '../top-appbar';\r\n\r\ninterface DetailPageProps {\r\n title?: string;\r\n backButtonAction?: Function;\r\n HeroImage?: HeroImageModel;\r\n CaptionText?: string;\r\n BodyContent?: string | ReactNode;\r\n Links?: LinkModel[];\r\n externalLinkTagType?: string;\r\n LinkButtonStyleVariant?: boolean;\r\n}\r\n\r\nconst DetailPage: React.FC = (props) => {\r\n const classes = DetailPageStyles();\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n {props.CaptionText}\r\n \r\n \r\n \r\n {React.isValidElement(props.BodyContent) ? (\r\n \r\n {props.BodyContent}\r\n \r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {props.Links?.map((link) => {\r\n return (\r\n \r\n {\r\n if (link.type === EXTERNAL_LINK) {\r\n ga(\r\n 'send',\r\n 'event',\r\n 'outbound',\r\n 'click',\r\n `${props.externalLinkTagType || 'Promotion'} - ${\r\n link.url\r\n }`,\r\n {\r\n transport: 'beacon',\r\n hitCallback: function () {\r\n console.log(link.url);\r\n },\r\n },\r\n );\r\n window.open(link.url, '_blank');\r\n } else {\r\n history.push(link.url);\r\n }\r\n }}\r\n >\r\n {link.name}\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 DetailPage;\r\n","import React from 'react';\r\nimport {\r\n Button,\r\n FormControl,\r\n Grid,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n TextField,\r\n} from '@material-ui/core';\r\nimport { FormikProps } from 'formik';\r\nimport RewardModel from '../../../common/models/loyalty/rewards/RewardModel';\r\n\r\ninterface RewardDetailFormProps {\r\n formikProps: FormikProps<{ quantity: number }>;\r\n rewards: RewardModel[];\r\n selectedReward: RewardModel;\r\n setSelectedReward: React.Dispatch>;\r\n classes: Record<'redeemButton', string>;\r\n pointsRemaining: number;\r\n}\r\n\r\nconst RewardDetailForm: React.FC = ({\r\n formikProps,\r\n rewards,\r\n selectedReward,\r\n setSelectedReward,\r\n classes,\r\n pointsRemaining,\r\n}) => {\r\n return (\r\n
\r\n \r\n {rewards.length > 1 ? (\r\n \r\n \r\n \r\n {rewards[0].Definitions.length > 1\r\n ? 'Reward Length and Type'\r\n : 'Number of Ride Points'}\r\n \r\n {\r\n const reward = rewards.find(\r\n (f) => f.RewardID === e.target.value,\r\n );\r\n if (reward) {\r\n setSelectedReward(reward);\r\n }\r\n }}\r\n name={'reward'}\r\n id={'reward'}\r\n labelId={'reward'}\r\n >\r\n {rewards.map((group) => {\r\n return (\r\n \r\n {group.Definitions.map((f) => f.Title).join(', ')}\r\n \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 pointsRemaining\r\n }\r\n >\r\n REDEEM\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default RewardDetailForm;\r\n","export default class HeroImageModel {\r\n constructor(public src?: string, public alt?: string) {}\r\n}\r\n","import React, { useContext, useState } from 'react';\r\nimport { observer } from 'mobx-react-lite';\r\nimport { withRouter, RouteComponentProps, Redirect } from 'react-router-dom';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { Grid, Typography } from '@material-ui/core';\r\nimport RewardStyles from './RewardStyles';\r\nimport { Formik } from 'formik';\r\nimport RewardDetailFormSchema from './RewardDetailFormSchema';\r\nimport DetailPage from '../detail-page';\r\nimport { history } from '../../../index';\r\nimport RewardDetailForm from './RewardDetailForm';\r\nimport HeroImageModel from '../../../common/models/app/HeroImageModel';\r\nimport RewardModel from '../../../common/models/loyalty/rewards/RewardModel';\r\n\r\nconst RewardDetail: React.FC> = (props) => {\r\n const { rewardStore, userStore } = useContext(Stores);\r\n const rewards = rewardStore.getRewardByLoyaltyProductId(\r\n parseInt(props.match.params.id),\r\n );\r\n const [selectedReward, setSelectedReward] = useState(\r\n rewards ? (rewards[0] as RewardModel) : ({} as RewardModel),\r\n );\r\n const classes = RewardStyles();\r\n\r\n return rewards ? (\r\n history.push('/rewards')}\r\n HeroImage={\r\n new HeroImageModel(\r\n rewards.length > 1\r\n ? selectedReward.PopupImage\r\n : selectedReward.FeaturedImage,\r\n selectedReward.Title,\r\n )\r\n }\r\n CaptionText={selectedReward.Title}\r\n BodyContent={\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Cost:{' '}\r\n \r\n {selectedReward.CostInPoints} pts\r\n {' '}\r\n | Available:{' '}\r\n \r\n {userStore.userModel?.Data.CurrentPoints?.PointsRemaining || 0}\r\n \r\n \r\n \r\n \r\n {\r\n const success = await rewardStore.redeemReward(\r\n selectedReward.RewardID,\r\n values.quantity,\r\n );\r\n if (success) {\r\n await userStore.getUser();\r\n }\r\n }}\r\n >\r\n {(formikProps) => (\r\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 withRouter(observer(RewardDetail));\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst WrapperStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n width: 'inherit',\r\n height: 'inherit',\r\n },\r\n }),\r\n);\r\n\r\nexport default WrapperStyles;\r\n","import Notification from './Notification';\r\nexport default Notification;\r\n","import React from 'react';\r\nimport {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogContentText,\r\n DialogTitle,\r\n Grid,\r\n Typography,\r\n useMediaQuery,\r\n useTheme,\r\n} from '@material-ui/core';\r\nimport CheckCircleOutlineOutlinedIcon from '@material-ui/icons/CheckCircleOutlineOutlined';\r\nimport ErrorOutlineOutlinedIcon from '@material-ui/icons/ErrorOutlineOutlined';\r\nimport InfoOutlinedIcon from '@material-ui/icons/InfoOutlined';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport ReportProblemOutlinedIcon from '@material-ui/icons/ReportProblemOutlined';\r\nimport NotificationModel from '../../../common/models/app/NotificationModel';\r\n\r\nconst Notification: React.FC = (props) => {\r\n const theme = useTheme();\r\n const iconSize = useMediaQuery(theme.breakpoints.down('sm'), {\r\n defaultMatches: true,\r\n })\r\n ? 'small'\r\n : 'default';\r\n const getDialogIcon = () => {\r\n switch (props.Type) {\r\n case DialogType.Success:\r\n return (\r\n \r\n );\r\n case DialogType.Error:\r\n return ;\r\n case DialogType.Warning:\r\n return (\r\n \r\n );\r\n default:\r\n return ;\r\n }\r\n };\r\n\r\n return (\r\n props.OnClose && props.OnClose()}>\r\n \r\n \r\n \r\n {getDialogIcon()}\r\n \r\n \r\n \r\n {props.Title}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.Message}\r\n \r\n \r\n \r\n \r\n props.OnClose && props.OnClose()}\r\n color={'secondary'}\r\n >\r\n OK\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Notification;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst LoadingStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n backdrop: {\r\n zIndex: theme.zIndex.drawer + 999999,\r\n color: '#fff',\r\n },\r\n }),\r\n);\r\n\r\nexport default LoadingStyles;\r\n","import React, { useContext } from 'react';\r\nimport { Backdrop, CircularProgress } from '@material-ui/core';\r\nimport { observer } from 'mobx-react-lite';\r\nimport LoadingStyles from './LoadingStyles';\r\nimport Stores from '../../../domain/stores/Stores';\r\n\r\nconst Loading: React.FC = () => {\r\n const {\r\n authStore,\r\n receiptStore,\r\n userStore,\r\n pointStore,\r\n promotionStore,\r\n rewardStore,\r\n supportStore,\r\n loyaltyCodeStore,\r\n dealsStore,\r\n } = useContext(Stores);\r\n const classes = LoadingStyles();\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default observer(Loading);\r\n","import Wrapper from './Wrapper';\r\nexport default Wrapper;\r\n","import React, { ReactNode, useContext, useEffect } from 'react';\r\nimport { Slide } from '@material-ui/core';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { observer } from 'mobx-react-lite';\r\nimport WrapperStyles from './WrapperStyles';\r\nimport Notification from '../notifications';\r\nimport { withRouter, RouteComponentProps } from 'react-router-dom';\r\nimport BottomAppBar from '../bottom-appbar/BottomAppBar';\r\nimport Loading from '../loading/Loading';\r\n\r\ninterface WrapperProps extends RouteComponentProps {\r\n children: ReactNode;\r\n}\r\n\r\nconst Wrapper: React.FC = ({ children, location }) => {\r\n const { userStore, globalStore } = useContext(Stores);\r\n const classes = WrapperStyles();\r\n\r\n useEffect(() => {\r\n window.scrollTo(0, 0);\r\n });\r\n\r\n return (\r\n \r\n
\r\n \r\n {children}\r\n {userStore.userModel?.Data && }\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default withRouter(observer(Wrapper));\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\nconst ScanLoyaltyStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n height: '100vh',\r\n },\r\n available: {\r\n color: theme.palette.secondary.main,\r\n },\r\n }),\r\n);\r\n\r\nexport default ScanLoyaltyStyles;\r\n","import React, { Dispatch, SetStateAction, Fragment, useState } from 'react';\r\nimport Notification from '../notifications';\r\nimport { DialogType } from '../../../common/enums/DialogType';\r\nimport { Checkbox, FormControlLabel, Typography } from '@material-ui/core';\r\n\r\ninterface ScanLoyaltyDialogProps {\r\n open: boolean;\r\n initialCheckboxValue: boolean;\r\n onCancel: Dispatch>;\r\n onOk: (hideReceiptDialog: boolean) => void;\r\n}\r\n\r\nconst ScanLoyaltyDialog: React.FC = (props) => {\r\n const [hideLoyaltyScanDialog, setHideLoyaltyScanDialog] = useState(\r\n props.initialCheckboxValue,\r\n );\r\n return (\r\n \r\n \r\n Scan your loyalty ID at the following parks & attractions to earn\r\n points:\r\n \r\n \r\n
    \r\n
  • Galaxyland
  • \r\n
  • World Waterpark
  • \r\n
  • Marine Life
  • \r\n
  • Ice Palace
  • \r\n
  • Professor Wem's Adventure Golf
  • \r\n
  • Dragon's Tale
  • \r\n
\r\n
\r\n \r\n You can also use your loyalty ID for all parks & attractions\r\n purchased at{' '}\r\n \r\n tickets.wem.ca\r\n \r\n \r\n ) => {\r\n setHideLoyaltyScanDialog(event.target.checked);\r\n }}\r\n />\r\n }\r\n label=\"Do not show this message again.\"\r\n />\r\n \r\n }\r\n Open={props.open}\r\n OnClose={() => props.onOk(hideLoyaltyScanDialog)}\r\n />\r\n );\r\n};\r\n\r\nexport default ScanLoyaltyDialog;\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst LoyaltyCardStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n width: 500,\r\n height: 280,\r\n borderRadius: 15,\r\n },\r\n info: {\r\n display: 'flex',\r\n width: '100%',\r\n padding: theme.spacing(1),\r\n justifyContent: 'space-between',\r\n alignItems: 'center',\r\n },\r\n barcodeContainer: {\r\n display: 'flex',\r\n height: 'inherit',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n },\r\n titleColor: {\r\n color: theme.palette.primary.main,\r\n },\r\n }),\r\n);\r\n\r\nexport default LoyaltyCardStyles;\r\n","import LoyaltyCard from './LoyaltyCard';\r\n\r\nexport default LoyaltyCard;\r\n","import React, { Dispatch, SetStateAction } from 'react';\r\nimport Barcode from 'react-barcode';\r\nimport { Button, Paper, Typography } from '@material-ui/core';\r\nimport LoyaltyCardStyles from './LoyaltyCardStyles';\r\nimport InfoOutlinedIcon from '@material-ui/icons/InfoOutlined';\r\n\r\ninterface LoyaltyCardProps {\r\n value: string | null;\r\n showLoyaltyUsageDialog: Dispatch>;\r\n}\r\n\r\nconst LoyaltyCard: React.FC = ({\r\n value,\r\n showLoyaltyUsageDialog,\r\n}) => {\r\n const classes = LoyaltyCardStyles();\r\n return value ? (\r\n \r\n
\r\n \r\n MyWEM\r\n \r\n }\r\n color={'secondary'}\r\n onClick={() => showLoyaltyUsageDialog(true)}\r\n >\r\n Loyalty Card\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n ) : null;\r\n};\r\n\r\nexport default LoyaltyCard;\r\n","import ScanLoyalty from './ScanLoyalty';\r\nexport default ScanLoyalty;\r\n","import React, { useContext, Fragment, useState } from 'react';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport ScanLoyaltyStyles from './ScanLoyaltyStyles';\r\nimport BottomAppBar from '../bottom-appbar';\r\nimport { Container, Grid, Typography } from '@material-ui/core';\r\nimport ScanLoyaltyDialog from './ScanLoyaltyDialog';\r\nimport LoyaltyCard from '../loyalty-card';\r\nimport TopAppbar from '../top-appbar';\r\n\r\nconst ScanLoyalty: React.FC = () => {\r\n const { userStore } = useContext(Stores);\r\n const localStorageName: string = 'myWemLoyaltyBarcodeDialog';\r\n const classes = ScanLoyaltyStyles();\r\n const [showDialog, setShowDialog] = useState(\r\n localStorage.getItem(\r\n localStorageName + userStore.userModel?.Data.UserID,\r\n ) === null &&\r\n localStorage.getItem(\r\n localStorageName + userStore.userModel?.Data.UserID,\r\n ) !== 'true',\r\n );\r\n\r\n const toggleLoyaltyScanDialogVisibility = (visible: boolean) => {\r\n if (visible) {\r\n localStorage.setItem(\r\n localStorageName + userStore.userModel?.Data.UserID,\r\n 'true',\r\n );\r\n } else {\r\n localStorage.removeItem(\r\n localStorageName + userStore.userModel?.Data.UserID,\r\n );\r\n }\r\n };\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 Available Points:{' '}\r\n \r\n {userStore.userModel?.Data.CurrentPoints?.PointsRemaining || 0}\r\n \r\n \r\n \r\n \r\n \r\n \r\n setShowDialog(false)}\r\n onOk={(hideScanDialog: boolean) => {\r\n toggleLoyaltyScanDialogVisibility(hideScanDialog);\r\n setShowDialog(false);\r\n }}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport default observer(ScanLoyalty);\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst PromotionStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n marginTop: theme.spacing(8),\r\n marginBottom: theme.spacing(7),\r\n },\r\n carousel: {\r\n marginBottom: theme.spacing(1),\r\n },\r\n promotionImage: {\r\n width: '100%',\r\n borderRadius: '8px',\r\n '&:hover': {\r\n cursor: 'pointer',\r\n transition: '.2s',\r\n transform: 'translate(0, -8px)',\r\n },\r\n },\r\n bannerImage: {\r\n width: '100%',\r\n },\r\n bannerContainer: {\r\n '&:hover': {\r\n cursor: 'pointer',\r\n },\r\n },\r\n }),\r\n);\r\n\r\nexport default PromotionStyles;\r\n","import React from 'react';\r\nimport { Carousel } from 'react-responsive-carousel';\r\nimport { EXTERNAL_LINK } from '../../../common/constants/promotion-constants';\r\nimport { ga } from 'react-ga';\r\nimport { history } from '../../../index';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { observer } from 'mobx-react-lite';\r\nimport PromotionStyles from './PromotionStyles';\r\n\r\ninterface PageBannerProps {\r\n showThumbs?: boolean;\r\n showIndicators?: boolean;\r\n showArrows?: boolean;\r\n autoPlay?: boolean;\r\n infiniteLoop?: boolean;\r\n interval?: number;\r\n swipeable?: boolean;\r\n showStatus?: boolean;\r\n}\r\n\r\nconst PromotionBanner: React.FC = (props) => {\r\n const classes = PromotionStyles();\r\n const { promotionStore } = React.useContext(Stores);\r\n return (\r\n \r\n {promotionStore.data?.banners?.map((banner) => {\r\n return (\r\n {\r\n if (banner.link.type === EXTERNAL_LINK) {\r\n ga(\r\n 'send',\r\n 'event',\r\n 'outbound',\r\n 'click',\r\n `Banner - ${banner.link.url}`,\r\n {\r\n transport: 'beacon',\r\n hitCallback: function () {\r\n console.log(banner.link.url);\r\n },\r\n },\r\n );\r\n // I am using _blank explicilty here because, I have seen instances\r\n // of banner.link.target to be null. So to be on the safe side.\r\n window.open(banner.link.url, '_blank');\r\n } else {\r\n history.push(`${banner.link.url}/${banner.id}`);\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 observer(PromotionBanner);\r\n","import React, { Fragment, useEffect } from 'react';\r\nimport PromotionStyles from './PromotionStyles';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { observer } from 'mobx-react-lite';\r\nimport BottomAppBar from '../bottom-appbar';\r\nimport 'react-responsive-carousel/lib/styles/carousel.min.css';\r\nimport { Container, Grid } from '@material-ui/core';\r\nimport TopAppbar from '../top-appbar';\r\nimport PromotionBanner from './PromotionBanner';\r\nimport { history } from '../../../index';\r\n\r\nconst Promotion: React.FC = (props) => {\r\n const classes = PromotionStyles();\r\n const { promotionStore } = React.useContext(Stores);\r\n useEffect(() => {\r\n (async () => await promotionStore.getPromotions())();\r\n }, [promotionStore]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {promotionStore.data?.promotions?.map((promotion) => {\r\n return (\r\n \r\n history.push(`/promotions/${promotion.id}`)}\r\n loading={'lazy'}\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 observer(Promotion);\r\n","import React, { useContext } from 'react';\r\nimport { withRouter, RouteComponentProps, Redirect } from 'react-router-dom';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport { history } from '../../../index';\r\nimport DetailPage from '../detail-page';\r\nimport HeroImageModel from '../../../common/models/app/HeroImageModel';\r\n\r\nconst PromotionDetail: React.FC> = (\r\n props,\r\n) => {\r\n const { promotionStore } = useContext(Stores);\r\n const promotion = promotionStore.data?.promotions?.find(\r\n (f) => f.id.toString() === props.match.params.id,\r\n );\r\n return promotion ? (\r\n history.goBack()}\r\n HeroImage={new HeroImageModel(promotion?.heroImage, promotion?.title)}\r\n CaptionText={promotion?.title.toUpperCase()}\r\n BodyContent={promotion?.caption}\r\n Links={promotion?.links}\r\n />\r\n ) : (\r\n \r\n );\r\n};\r\n\r\nexport default withRouter(observer(PromotionDetail));\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst FrequentlyAskedQuestionsStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n marginTop: '80px',\r\n marginBottom: '80px',\r\n flexGrow: 1,\r\n backgroundColor: theme.palette.background.paper,\r\n },\r\n heading: {\r\n fontSize: theme.typography.pxToRem(15),\r\n fontWeight: theme.typography.fontWeightRegular,\r\n },\r\n }),\r\n);\r\n\r\nexport default FrequentlyAskedQuestionsStyles;\r\n","import FrequentlyAskedQuestions from './FrequentlyAskedQuestions';\r\nexport default FrequentlyAskedQuestions;\r\n","import React, { Fragment, useContext, useEffect } from 'react';\r\nimport BottomAppBar from '../bottom-appbar';\r\nimport {\r\n Accordion,\r\n Container,\r\n AccordionSummary,\r\n Typography,\r\n AccordionDetails,\r\n} from '@material-ui/core';\r\nimport FrequentlyAskedQuestionsStyles from './FrequentlyAskedQuestionsStyles';\r\nimport { observer } from 'mobx-react-lite';\r\nimport Stores from '../../../domain/stores/Stores';\r\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\r\nimport TopAppbar from '../top-appbar';\r\n\r\nconst FrequentlyAskedQuestions: React.FC = () => {\r\n const { supportStore } = useContext(Stores);\r\n const classes = FrequentlyAskedQuestionsStyles();\r\n\r\n useEffect(() => {\r\n (async () => await supportStore.getFrequentlyAskedQuestions())();\r\n }, [supportStore]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n {supportStore.frequentlyAskedQuestions\r\n ? supportStore.frequentlyAskedQuestions.map((faq) => {\r\n return (\r\n \r\n }>\r\n \r\n {faq.Title}\r\n \r\n \r\n \r\n \r\n {faq.Description}\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\r\nexport default observer(FrequentlyAskedQuestions);\r\n","import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';\r\n\r\nconst LoyaltyActivityStyles = makeStyles((theme: Theme) =>\r\n createStyles({\r\n root: {\r\n marginTop: '80px',\r\n marginBottom: '80px',\r\n flexGrow: 1,\r\n },\r\n historyList: {\r\n width: '100%',\r\n overflowY: 'auto',\r\n },\r\n inline: {\r\n display: 'inline',\r\n },\r\n avatar: {\r\n backgroundColor: 'transparent',\r\n },\r\n }),\r\n);\r\n\r\nexport default LoyaltyActivityStyles;\r\n","import React, { Fragment } from 'react';\r\nimport LoyaltyActivityStyles from './LoyaltyActivityStyles';\r\nimport {\r\n Divider,\r\n List,\r\n ListItem,\r\n ListItemText,\r\n Typography,\r\n} from '@material-ui/core';\r\nimport PointRecordModel from '../../../common/models/loyalty/point/PointRecordModel';\r\n\r\ninterface IHistoryProps {\r\n pointRecords: PointRecordModel[];\r\n}\r\n\r\nconst History: React.FC = ({ pointRecords }) => {\r\n const classes = LoyaltyActivityStyles();\r\n\r\n return (\r\n \r\n {pointRecords.map((record, groupIndex) => {\r\n const currentDate = new Date(record.DateCreated).toLocaleString(\r\n 'default',\r\n {\r\n day: 'numeric',\r\n month: 'long',\r\n year: 'numeric',\r\n },\r\n );\r\n return (\r\n \r\n \r\n \r\n {record.PointActivityName}\r\n \r\n }\r\n secondary={\r\n \r\n \r\n {currentDate}\r\n \r\n {` — You have been awarded with ${record.PointsAwarded.toLocaleString(\r\n 'en',\r\n )} point(s).`}\r\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 History;\r\n","import React, { Fragment } from 'react';\r\nimport LoyaltyActivityStyles from './LoyaltyActivityStyles';\r\nimport {\r\n Avatar,\r\n IconButton,\r\n List,\r\n ListItem,\r\n ListItemAvatar,\r\n ListItemText,\r\n Typography,\r\n ListItemSecondaryAction,\r\n Divider,\r\n} from '@material-ui/core';\r\nimport DetailsIcon from '@material-ui/icons/MoreHoriz';\r\nimport { history } from '../../../index';\r\nimport ReceiptOutlinedIcon from '@material-ui/icons/ReceiptOutlined';\r\nimport ScanRecordModel from '../../../common/models/loyalty/scans/ScanRecordModel';\r\n\r\ninterface IScansProp {\r\n scanRecords: ScanRecordModel[];\r\n}\r\n\r\nconst Scans: React.FC = ({ scanRecords }) => {\r\n const classes = LoyaltyActivityStyles();\r\n\r\n return (\r\n \r\n {scanRecords\r\n .sort((a, b) => {\r\n let timeA = new Date(a.DateCreated).getTime();\r\n let timeB = new Date(b.DateCreated).getTime();\r\n return timeB - timeA;\r\n })\r\n .map((record, groupIndex) => {\r\n const currentDate = new Date(record.DateCreated).toLocaleString(\r\n 'default',\r\n {\r\n day: 'numeric',\r\n month: 'long',\r\n year: 'numeric',\r\n },\r\n );\r\n return (\r\n \r\n {\r\n history.push(`/activity/scan/${record.ScanID}`);\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n {record.StatusDescription}\r\n \r\n }\r\n secondary={\r\n \r\n {currentDate}\r\n \r\n }\r\n />\r\n \r\n {\r\n history.push(`/activity/scan/${record.ScanID}`);\r\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 Scans;\r\n","import React from 'react';\r\nimport { Typography } from '@material-ui/core';\r\n\r\ninterface TabPanelProps {\r\n children?: React.ReactNode;\r\n dir?: string;\r\n index: any;\r\n value: any;\r\n}\r\n\r\nconst TabPanel: React.FC = (props) => {\r\n const { children, value, index, ...other } = props;\r\n\r\n return (\r\n