{"version":3,"sources":["helpers.ts","resources/users/components/users-filter.sidebar.tsx","components/Confirm.tsx","resources/users/components/activate.button.tsx","resources/users/components/archive.button.tsx","resources/users/components/users.actions.tsx","resources/users/user.list.tsx","resources/components/AdminBroadcast.tsx","resources/components/UserImportCsv.tsx","resources/components/DownloadAsset.tsx","dashboard/Welcome.tsx","dashboard/cards/TotalCard.tsx","dashboard/cards/TotalUsers.tsx","dashboard/charts/NewUsers.tsx","dashboard/charts/PieChart.tsx","dashboard/charts/UserTypesChart.tsx","dashboard/Dashboard.tsx","providers/fragments.ts","providers/mutations/deleteMany.ts","providers/mutations/index.ts","providers/mutations/create.ts","providers/mutations/update.ts","providers/mutations/deletes.ts","providers/mutations/custom.ts","providers/queries/many.ts","providers/queries/index.ts","providers/queries/one.ts","providers/queries/list.ts","providers/mutations/formatters/default.formatter.ts","providers/mutations/formatters/living-room.formatter.ts","providers/mutations/formatters/milestone.formatter.ts","providers/mutations/formatters/user.formatter.ts","providers/mutations/formatters/index.ts","providers/data.provider.ts","providers/mutations/auth.ts","providers/auth.provider.ts","resources/countryCodes.ts","resources/users/components/user.title.tsx","resources/users/user.options.ts","public/Avatar/UserAvatarSignedUrlMutation.tsx","resources/users/user.edit.tsx","public/Avatar/upload.tsx","resources/users/user.create.tsx","Login.tsx","resources/living-rooms/components/living-room-milestone-row.tsx","resources/living-rooms/living-room.create.tsx","resources/living-rooms/components/living-room.title.tsx","resources/living-rooms/living-room.milestones.tsx","resources/living-rooms/living-room.edit.tsx","resources/living-rooms/components/reserve.seat.tsx","resources/living-rooms/components/remove.button.tsx","resources/living-rooms/components/living-room-show.actions.tsx","resources/components/TextArrayField.tsx","resources/living-rooms/living-room.show.tsx","components/LocalURLField.tsx","resources/users/components/refLink.tsx","resources/users/components/external.activate.button.tsx","resources/users/components/external.archive.button.tsx","resources/users/components/user.show.actions.tsx","components/Fields/SkillsRatingsField.tsx","components/Fields/FormattedTextArrayField.tsx","resources/users/user.show.tsx","firebase/firebase.config.ts","analytics/firebase-analytics.service.ts","public/Intake/hooks/useAnalyticsService.tsx","components/Button.tsx","public/Activate/components/ErrorMessage.tsx","public/Activate/graphql/queries/getUserInfo.ts","public/Activate/graphql/mutations/updateUser.ts","public/Activate/CreateAccount.tsx","public/Activate/graphql/userGQL.ts","public/Activate/ActivatePage.tsx","public/Activate/hooks/useGetUserInfoQuery.tsx","public/Activate/hooks/useUpdateUserMutation.tsx","public/index.tsx","public/Article/logo.png","public/Article/PublicArticle.tsx","public/Billing/Success.tsx","components/Container.tsx","public/Billing/Error.tsx","components/Input.tsx","public/Intake/intake.provider.tsx","public/Intake/intake.data.ts","public/Intake/hooks/useScroll.tsx","public/Intake/components/content/Choices.tsx","public/Intake/components/content/Description.tsx","public/Intake/components/IntakeLabel.tsx","public/Intake/components/content/MultiSelect.tsx","public/Intake/components/content/HybridSelection.tsx","public/Intake/components/content/YesNoAvail.tsx","public/Intake/components/content/ConsentSection.tsx","public/Intake/components/IntakeSection.tsx","assets/icons/chevron-up.svg","public/Intake/components/Navigators.tsx","public/Intake/graphql/createUser.ts","public/Intake/components/ErrorPopup.tsx","public/Intake/IntakePage.tsx","public/Intake/hooks/useCreateUserMutation.tsx","public/Intake/types/intake.types.ts","assets/icons/Uplevyl1.svg","public/Intake/ConfirmationPage.tsx","components/DownloadButton.tsx","components/Header.tsx","public/Download/Download.tsx","public/Account/graphql/mutations/basicLogin.ts","public/Account/Login.tsx","public/Account/hooks/useBasicLoginMutation.tsx","public/Account/graphql/queries/getMe.ts","public/Account/Account.tsx","public/Account/hooks/useGetMeQuery.tsx","components/TextArea.tsx","public/Support/graphql/mutations/submitSupportRequest.ts","public/Support/CreateSupport.tsx","public/Support/hooks/useSubmitSupportRequestMutation.tsx","public/Support/components/SupportReply.tsx","public/Support/graphql/queries/getSupportRequest.ts","public/Support/graphql/mutations/submitSupportReply.ts","public/Support/SupportRequest.tsx","public/Support/hooks/useGetSupportRequestQuery.tsx","public/Support/hooks/useReplySupportRequestMutation.tsx","public/Account/ForgotPassword/ResetSuccess.tsx","public/Account/ForgotPassword/graphql/mutations/verifyCode.ts","public/Account/ForgotPassword/EnterCode.tsx","public/Account/ForgotPassword/hooks/useVerifyCodeMutation.tsx","public/Account/ForgotPassword/graphql/mutations/resetPassword.ts","public/Account/ForgotPassword/EnterPassword.tsx","public/Account/ForgotPassword/hooks/useResetPassword.tsx","public/Account/ForgotPassword/graphql/mutations/requestCode.ts","public/Account/ForgotPassword/EnterPhone.tsx","public/Account/ForgotPassword/hooks/useRequestCodeMutation.tsx","public/Account/ForgotPassword/index.tsx","resources/reports/components/report.actions.tsx","resources/reports/components/reports.filter.tsx","resources/reports/report.list.tsx","resources/reports/components/report.title.tsx","resources/reports/report.edit.tsx","resources/reports/report.show.tsx","resources/custom/schedule/create.tsx","resources/components/ColorDropdownInput.tsx","resources/custom/schedule/create-poll.tsx","resources/polls/poll.show.tsx","resources/schedule/components/schedule-list.empty.tsx","resources/schedule/schedule.filter.tsx","resources/schedule/schedule.list.tsx","resources/freeTexts/freeText.show.tsx","resources/quotes/quote.show.tsx","resources/custom/schedule/create-quote.tsx","resources/components/ImageFormatDropdownInput.tsx","resources/custom/schedule/create-free-text.tsx","resources/polls/poll.edit.tsx","resources/custom/schedule/redirect-schedule-list.tsx","resources/freeTexts/freeText.edit.tsx","resources/quotes/quote.edit.tsx","layout/themes.ts","layout/AppBar.tsx","layout/Layout.tsx","providers/token.service.ts","providers/client/apollo.client.ts","providers/client/urql.client.ts","resources/living-rooms/components/YearDropdown.tsx","resources/living-rooms/components/sessionsQuery.tsx","resources/living-rooms/components/living-room.actions.tsx","resources/living-rooms/components/living-room.filter.tsx","resources/living-rooms/living-room.list.tsx","resources/living-rooms/components/current-living-room.tsx","resources/living-rooms/components/charts/pillarsgroupedChart.tsx","resources/living-rooms/components/charts/compareChart.tsx","resources/living-rooms/components/charts/milestonesTreeChart.tsx","resources/living-rooms/components/pillarDropdown.tsx","resources/living-rooms/components/Tabs/activeSessions.tsx","resources/living-rooms/components/past-living-room.tsx","resources/living-rooms/components/Tabs/attendeesSession.tsx","resources/living-rooms/author-data-list.tsx","resources/living-rooms/author-data-show.tsx","resources/living-rooms/components/authorsList.tsx","resources/living-rooms/components/charts/authorWiseSession.tsx","resources/living-rooms/components/Tabs/authorsSeesion.tsx","resources/living-rooms/living-room.page.tsx","MobileRedirect.tsx","MobileRedirectDeepLinking.tsx","public/Account/ResetPassword/ResetSuccess.tsx","public/Account/ResetPassword/graphql/mutations/verifyCode.ts","public/Account/ResetPassword/EnterCode.tsx","public/Account/ResetPassword/hooks/useVerifyCodeMutation.tsx","public/Account/ResetPassword/graphql/mutations/resetPassword.ts","public/Account/ResetPassword/EnterPassword.tsx","public/Account/ResetPassword/hooks/useResetPassword.tsx","public/Account/ResetPassword/graphql/mutations/requestCode.ts","public/Account/ResetPassword/EnterPhone.tsx","public/Account/ResetPassword/hooks/useRequestCodeMutation.tsx","public/Account/ResetPassword/index.tsx","public/Stripe/graphql/payment.ts","public/Stripe/CheckoutForm.tsx","public/Stripe/hooks/usePaymentQuery.tsx","public/Stripe/Stripe.tsx","components/CustomCarousel.tsx","resources/custom/graphs/show-graphs.tsx","assets/graphs/page1.png","assets/graphs/page2.png","assets/graphs/page3.png","assets/icons/Uplevyl.svg","assets/icons/shubhiRao.svg","public/Intake/components/FutureForward.tsx","public/Activate/graphql/queries/getUserCheckout.ts","public/Activate/PaymentRedirect.tsx","public/Activate/hooks/useGetUserCheckoutQuery.tsx","App.tsx","providers/client/client.factory.ts","reportWebVitals.ts","index.tsx"],"names":["getPrettyErrorMessage","msg","replace","matchSuggestion","filterValue","choice","_toLowerCase$match$le","_choice$id","_choice$id$toLowerCas","id","toLowerCase","match","length","exportFile","data","entity","pom","document","createElement","blob","Blob","type","url","URL","createObjectURL","href","setAttribute","Date","now","click","exportFilter","filter","queryFilter","fieldFilters","Object","entries","map","entry","field","value","Array","isArray","query","fields","UsersFilterSidebar","_ref","setFilter","filterValues","useListContext","React","Card","sx","order","mr","mt","width","CardContent","SavedQueriesList","FilterLiveSearch","FilterList","label","icon","ActiveIcon","FilterListItem","active","PaidIcon","subscription","ElevatorIcon","status","referred","archive","firstLogin","lastActivity","enterprise","milestones","hasComment","mobileOS","clickedActivationLink","role","useStyles","makeStyles","theme","iconPaddingStyle","paddingRight","name","Confirm","props","isOpen","loading","title","content","confirm","cancel","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions","children","classes","translate","useTranslate","handleConfirm","useCallback","e","stopPropagation","handleClick","Dialog","open","onClick","DialogTitle","_","DialogContent","DialogContentText","DialogActions","Button","disabled","className","classnames","autoFocus","defaultProps","confirmColor","ActionCheck","AlertError","ActivateButton","selectedIds","resource","single","setOpen","useState","isApprove","setIsApprove","refresh","useRefresh","notify","useNotify","unselectAll","useUnselectAll","dataProvider","useDataProvider","mutate","activateUsers","isLoading","error","useMutation","activate","input","ids","AdminUsersStatusUpdate","isLoadingStatus","statusData","statusError","approveORReject","handleIsActiveClick","useEffect","record","color","HowToRegIcon","NoAccountsIcon","handleDialogClose","handleRejectOrApproveConfirm","handleIsActiveDialogClose","ArchiveButton","archiveUsers","ArchiveIcon","UserActionsButtons","exportUsers","userExportCsv","onError","message","Fragment","BulkDeleteWithConfirmButton","BulkExportButton","assign","exporter","async","UserPagination","Pagination","rowsPerPageOptions","UserList","List","sort","aside","bulkActionButtons","pagination","Datagrid","rowClick","TextField","source","EmailField","BooleanField","sortable","FunctionField","render","CheckIcon","titleAccess","CloseIcon","headerClassName","cellClassName","DateField","EditButton","BroadcastNotificationButton","setTitle","subtitle","setSubtitle","body","setBody","broadcastNotification","onSuccess","variant","startIcon","SpeakerNotesIcon","SimpleForm","toolbar","fullWidth","multiline","required","onChange","target","UserImportCsv","setUrl","enterpriseName","setEnterpriseName","importUsers","userImportCsv","ImportExportIcon","DownloadAssetButton","setID","downloadAsset","DownloadIcon","Welcome","background","palette","mode","padding","marginTop","marginBottom","Box","flex","Typography","component","gutterBottom","maxWidth","CardActions","xs","xl","flexWrap","marginLeft","marginRight","TotalCard","to","minHeight","display","flexDirection","textDecoration","Link","overflow","justifyContent","alignItems","fontSize","textAlign","Divider","TotalUsers","stringify","page","perPage","JSON","MemberIcon","CustomerIcon","card3","height","margin","lastDay","lastMonthDays","from","i","subDays","aMonthAgo","dateFormatter","date","toLocaleDateString","getRevenuePerDay","users","daysWithRevenue","reduce","acc","curr","day","format","created","aggregateUsersByDay","getTime","total","NewUsersChart","useGetList","Paper","elevation","style","ResponsiveContainer","AreaChart","x1","y1","x2","y2","offset","stopColor","stopOpacity","XAxis","dataKey","scale","domain","addDays","tickFormatter","YAxis","CartesianGrid","strokeDasharray","Tooltip","cursor","labelFormatter","Area","stroke","strokeWidth","fill","ChartJS","register","BarElement","Legend","CategoryScale","LinearScale","ArcElement","PieChart","chartData","labels","d","datasets","backgroundColor","position","Doughnut","options","maintainAspectRatio","cutout","radius","plugins","legend","evt","item","index","window","totalUsersQuery","gql","MembersTypesChart","_users$data","_users$data2","useQuery","activeInactiveUsersData","totalUsers","activated","unactivated","Spacer","Dashboard","_users$data$totalUser","_users$data$totalUser2","fragments","livingRooms","reports","logs","polls","schedules","freeTexts","quotes","deleteMany","create","update","deletes","addRegistration","removeRegistration","livingRoomExportCsv","reportExportCsv","pollCreate","quoteCreate","freeTextCreate","contentRequestMasterAccess","many","one","list","BaseFormatter","_data","edges","edge","node","pageInfo","this","delete","LivingRoomFormatter","Set","pillars","forEach","pillar","milestone","split","add","start","header","hasStarted","registrations","meetingUrl","recordingUrl","capacity","end","small","recorded","MilestoneFormatter","UserFormatter","countryCode","phone","invitedBy","auditLog","resume","_data$registrations","_data$registrations$e","_data$auditLog","_data$auditLog$edges","_parsePhoneNumber","parsePhoneNumber","countryCallingCode","slice","FormatterFactory","getFormatter","handleErrors","includes","HttpError","buildDataProvider","client","getOne","params","_queries","combineDocuments","queries","responses","Promise","all","catch","err","reject","rawData","combineResponses","getList","extraParams","searchQuery","_query","q","filters","toUpperCase","undefined","getMany","getManyReference","_response","response","mutations","keys","_input$additionalForm","key","additionalFormInfo","__typename","updated","Error","updateMany","_response2","_response3","_response4","customMutations","_response5","_response6","_response7","_response8","_response9","_response10","_response11","_response12","_response13","_response14","_response15","_response16","_response17","documents","concat","auth","currentUser","login","logout","buildAuthProvider","username","password","email","accessToken","resolve","checkError","_error$body","graphQLErrors","some","_e$extensions","extensions","code","checkAuth","isLoggedInOrPending","getPermissions","getIdentity","_response$data$me$id","_response$data$me$nam","me","fullName","countryCodes","UserTitle","_record$firstName","_record$lastName","firstName","lastName","enumToSelection","values","word","charAt","capitaliseFirst","join","UserMobileOSOptions","UserRelationship","UserEthnicity","UserPet","UserGeneration","UserEmploymentStatus","UserCompanyType","UserCompanyIndustry","UserCompanyRole","UserCompanyFunction","UserEducation","UserSubscription","UserOccupation","UserOccupationType","UserSubscriptionEnum","UserAvatarSignedUrlMutation","section","paddingTop","paddingBottom","UserEdit","_signedUrlData$data","signedUrl","setSignedUrl","setError","getSignedUrl","signedUrlData","newAvatarUrl","userAvatarSignedUrl","Edit","transform","newData","howCanUplevylElevateYou","reason","howCanUplevylHelpYou","howCanYouHelpUplevyl","ageOfChildren","age","avatar","subscriptionActivatedAt","accountActivatedAt","focus","TabbedForm","FormTab","TextInput","DateInput","SelectInput","choices","PasswordInput","BooleanInput","helperText","DateTimeInput","ImageInput","accept","file","size","_file$type","_signedUrlResponse$da","_signedUrlResponse$da2","_signedUrlResponse$da3","signedUrlResponse","variables","fileType","fetch","method","credentials","headers","referrer","uploadFile","multiple","src","alt","ImageField","emptyText","NumberInput","ArrayInput","SimpleFormIterator","UserCreate","Create","termsAgreed","defaultValue","CustomLoginPage","Login","backgroundImage","MilestoneRow","useRecordContext","toString","LivingRoomCreate","ReferenceArrayInput","reference","AutocompleteArrayInput","optionText","inputText","option","min","LivingRoomTitle","_record$title","LivingRoomMilestones","disable","LivingRoomEdit","LivingRoomFields","startDate","endDate","isOngoing","isPast","LivingRoomRegistrionRoles","ReserveSeat","userId","setUserId","setRole","ReferenceInput","AutocompleteInput","event","inputProps","AddIcon","RemoveButton","livingRoom","user","DeleteIcon","LivingRoomShowActions","showEditButton","useMemo","TopToolbar","TextArrayField","_record$source","Chip","addLabel","LivingRoomShow","Show","actions","TabbedShowLayout","Tab","fontWeight","ArrayField","UrlField","showTime","NumberField","RichTextField","ReferenceField","link","LocalURLField","memo","linkResource","rest","get","_value","sanitizeFieldRestProps","UserRefLink","location","hostname","rel","ExternalActivateButton","_String","String","ExternalArchiveButton","UserShowActions","SkillsRatingsField","questions","aiSkillsRatings","rating","_questions$index","mb","FormattedTextArrayField","separator","console","log","dataArray","formattedText","whiteSpace","UserShow","SelectField","_record$invitedBy$fir","_record$invitedBy","_record$invitedBy$las","_record$invitedBy2","_record$activatedByAd","activatedByAdmin","ChipField","_record$previousUserD","_record$previousUserD2","_record$previousUserD3","_record$previousUserD4","previousUserDetails","version","updatedUserDetails","obj","result","t","cleanUserDetails","app","initializeApp","apiKey","process","authDomain","projectId","storageBucket","messagingSenderId","appId","measurementId","analytics","getAnalytics","FirebaseAnalytics","constructor","logEvent","logScreenView","useAnalyticsService","analyticsService","setAnalyticsService","flags","useFlags","extendedAnalyticsEvents","ErrorMessage","_error$graphQLErrors$","GetUserInfoQuery","UpdateUserMutation","CreateAccount","handleSubmit","errorMessage","formData","setFormData","currentPassword","errors","setErrors","showPassword","setShowPassword","handleInputChange","onSubmit","preventDefault","validateForm","newErrors","test","placeholder","togglePasswordVisibility","prev","VisibilityOff","Visibility","ACTIVATE_USER_ACCOUNT","ActivatePage","navigate","useNavigate","token","useParams","updateUser","activateError","activateUser","Urql","setErrorMessage","invite","context","Authorization","setClickedLink","screen_name","sendEvent","setTimeout","iframe","querySelector","localStorage","setItem","_data$invite","_res$data","userActivateAccount","_activateError$graphQ","_activateError$graphQ2","ClientWrapper","ApolloClient","uri","cache","InMemoryCache","ApolloProvider","PublicArticle","article","setArticle","setLoading","isMounted","_process$env$REACT_AP","_process$env$REACT_AP2","_data$data","res","referrerPolicy","json","getArticle","Logo","toLocaleString","publisher","image","teaser","dangerouslySetInnerHTML","__html","BillingSuccess","Container","large","BillingError","Input","refIndex","registeredFieldProps","IntakeContext","createContext","currentIndex","setCurrentIndex","IntakeProvider","Provider","inputName","description","button","svg","injectVariable","useScroll","useContext","scroll","direction","sections","elementIndex","element","getElementById","pos","getBoundingClientRect","top","pageYOffset","scrollTo","behavior","resetScroll","topPos","onbeforeunload","getElementsByTagName","classList","addEventListener","GradientButton","isSelected","Choices","_ref2","setValue","selectedChoice","setSelectedChoice","handleChoiceClick","Description","line","IntakeLabel","getValues","isRequired","renderLabel","lab","SkillRating","ratings","setRatings","isAllRated","every","skill","uniqueId","checked","handleRatingChange","updatedRatings","handleNext","HybridSelection","allowMultiple","selectedOptions","setSelectedOptions","newSelection","handleOptionChange","htmlFor","YesNoAvailability","selectedOption","setSelectedOption","isYes","ConsentSection","trim","substring","IntakeSection","_polyline","_errors$section$input","trigger","phoneValue","setPhoneValue","inputSubmit","shouldFocus","handleKeyPress","onKeyPress","PhoneInput","international","countryCallingCodeEditable","defaultCountry","x","_extends","bind","n","arguments","r","hasOwnProperty","call","apply","SvgChevronUp","svgRef","titleId","xmlns","viewBox","strokeLinecap","strokeLinejoin","ref","points","ForwardRef","Navigators","Up","CreateUserMutation","ErrorPopup","schema","yup","shape","contributeViaWorkshops","matches","currentTitle","companyName","highestEducationLevel","hearAboutProgram","motivations","of","digitalImpactVision","max","aiTopicsInterest","additionalInterests","IntakePage","hash","createUser","submitting","createUserError","formState","useForm","resolver","yupResolver","inviteeToken","inviteeUsername","isBase64","createUserData","generation","linkedInProfile","ReactGA","category","action","userCreate","handleFormSubmit","fireAnalytics","_createUserError$grap","_createUserError$grap2","_createUserError$grap3","autoComplete","autoCorrect","autoCapitalize","spellCheck","ConfirmationPage","showCopied","setShowCopied","newLink","navigator","clipboard","writeText","uplevyl1","DownloadButton","Header","smallerText","Download","BasicLoginMutation","loginUser","setEmail","setPassword","_data$basicLogin","basicLogin","URLSearchParams","search","GetMeInfoQuery","Account","getItem","setAccessToken","accessTokenStored","ACTIVE","TextArea","rows","SubmitSupportRequestMutation","CreateSupport","setName","subject","setSubject","supportId","setSupportId","createSupportRequest","supportCreate","SupportReply","_reply$staff","reply","defaultName","staff","GetSupportRequestQuery","SubmitSupportReplyMutation","SupportRequest","_error$message","_data$support2","replies","setReplies","replySupportRequest","replyLoading","_data$support","support","replyData","supportReply","ResetSuccess","VerifyCodeMutation","EnterCode","setVerification","setEnterPassword","verifyCode","setCode","ResetPasswordMutation","EnterPassword","verification","setSuccess","resetPassword","confirmPassword","setConfirmPassword","_data$resetPassword","RequestCodeMutation","setPhone","setEnterCode","requestCode","ForgotPassword","enterCode","enterPassword","success","EnterPhone","ReportActionsButtons","exportReports","ReportFilter","Filter","SearchInput","alwaysOn","ReportPagination","Aside","ReportList","ReportTitle","_record$id","ReportEdit","ReportShow","SimpleShowLayout","ScheduleCreatePage","ColorDropDownInput","PollCreatePage","setVariables","_result$data","_result$data2","Title","removeButton","_variables$choices","parentNode","contains","inputClasses","previousSibling","lastChild","regexResult","exec","removeIndex","parseInt","_choice","fontFamily","lineHeight","textTransform","PollShow","_record$percentage","getMilliseconds","percentage","Math","round","ScheduleListEmpty","Root","EmptyClasses","Inbox","paragraph","CreateButton","PREFIX","styled","overridesResolver","styles","root","opacity","text","primary","ScheduleFilter","ScheduleList","ListActions","otherProps","empty","borderRadius","FreeTextShow","QuoteShow","QuoteCreatePage","showQuotationMark","quote","author","backgroundColour","ImageFormatDropDownInput","FreeTextCreatePage","RichTextInput","RichTextInputToolbar","LevelSelect","FormatButtons","ListButtons","ClearButtons","current","imageTitle","imageSubTitle","imageURL","imageFormat","PollEdit","schedule","results","RedirectScheduleList","FreeTextEdit","QuoteEdit","lightTheme","main","secondary","light","dark","contrastText","default","sidebar","components","defaultTheme","RaMenuItemLink","styleOverrides","borderLeft","MuiPaper","elevation1","boxShadow","border","backgroundClip","MuiAppBar","colorSecondary","MuiLinearProgress","colorPrimary","barColorPrimary","CustomUserMenu","useLogout","UserMenu","Logout","reload","CustomAppBar","isLargeEnough","useMediaQuery","breakpoints","up","AppBar","userMenu","textOverflow","Layout","appBar","ACCESS_TOKEN","TokenService","_accessToken","_localStorage$getItem","removeToken","removeItem","STATUS","baseURL","tokenService","isRefreshing","pendingRequests","createClient","httpLink","createHttpLink","authLink","errorLink","createErrorLink","_ApolloClient","ApolloLink","defaultOptions","watchQuery","fetchPolicy","getClient","_response$data","mutation","_response$data2","setStatus","refreshTokens","_response$data3","_response$data3$refre","setContext","authorization","_forward$","operation","forward","_err$extensions","forward$","fromPromise","push","then","resolvePendingRequests","finally","Boolean","flatMap","oldHeaders","getContext","callback","UrqlClient","toPromise","_response$refresh","fetchOptions","exchanges","dedupExchange","cacheExchange","errorExchange","authExchange","addAuthToOperation","authState","makeOperation","kind","didAuthError","_e$extensions2","willAuthError","getAuth","_ref3","refreshToken","fetchExchange","_len","messages","_key","DropDown","FormControl","m","minWidth","InputLabel","Select","labelId","MenuItem","TOTAL_LIVING_ROOMS","TotalLivingCount","_pastLivingRoomsResul","_pastLivingRoomsResul2","_currentLivingRoomsRe","_currentLivingRoomsRe2","pastLivingRoomsResult","limit","currentLivingRoomsResult","totalLivingRoomsCount","pastLivingRooms","fetching","_pastLivingRoomsResul3","_currentLivingRoomsRe3","pillarCounts","Financial2021","Professional2021","Personal2021","Financial2022","Professional2022","Personal2022","Financial2023","Professional2023","Personal2023","pillarsQuery","monthCount","jan2021","feb2021","mar2021","apr2021","may2021","jun2021","jul2021","aug2021","sep2021","oct2021","nov2021","dec2021","jan2022","feb2022","mar2022","apr2022","may2022","jun2022","jul2022","aug2022","sep2022","oct2022","nov2022","dec2022","sessionsQuery","allmilestonesCount","career_Coaching","leadership_Peak_performance","diversity_Equity_Inclusion","performance_Reviews_Promotions","career_Pivots_Job_Loss","fierce_after_50","networking","career_Search","entrepreneurship","mentorship","mental_Health_Wellbeing","spiritual_Wellness","family_Home","health_Beauty","giving_Impact","food_Culture","gender_Lens","marriage_Relationships","aging_Caregiving","midlife_Menopause","Adulting","family_Planning_Pregnancy","personal_Growth","friendship","breakups_Divorce","family_Divorce_Education","impact_ESG_Investing","financial_Independence_Investing","secure_Aging_Retirement","homeownership","crypto_More","taxes_Insurance","me_Myself_Money","budgeting_Spending","establishing_Managing_Credit","managing_debt","milestonesQuery","TotalMilestonesCount","_data$pastLivingRooms3","_data$livingRooms$edg3","pastlivingRooms","room","TOTAL_AUTHORS","TotalAuthorsCount","AuthorsCount","authors","authorsPillarCounts","Financial","Professional","Personal","authorsQuery","LivingRoomActionsButtons","LivingRoomFilter","selectedPillar","setSelectedPillar","LivingRoomPagination","LivingRoomList","exportRooms","CurrentLivingRoomData","Stack","spacing","CircularProgress","Resource","show","edit","ArticleIcon","PillarsGroupedChart","PillarsCount","_data$pastLivingRooms","_data$livingRooms$edg","year","getFullYear","info","borderColor","borderWidth","Bar","PointElement","LineElement","SeesionsMonthlyChart","SessionCount","_data$pastLivingRooms2","_data$livingRooms$edg2","month","getMonth","Line","CustomizedContent","depth","y","colors","floor","strokeOpacity","textAnchor","AllChartMilestone","Treemap","aspectRatio","ProfessionalChart","PersonalChart","FinancialChart","PillarDropdown","showComponent","setShowComponent","BsGrid","float","card2","card4","ActiveSessionContent","setIndex","TabContext","TabList","livingHandleChange","newIndex","TabPanel","overflowY","PastLivingRoomData","AttendeesSessionContent","overflowX","handleChange","newValue","AuthorDataList","_data$authors$edges","columns","headerName","renderCell","profile","bio","DataGrid","initialState","paginationModel","pageSize","pageSizeOptions","checkboxSelection","disableRowSelectionOnClick","autoHeight","AuthorDataShow","AuthorList","AuthorWiseGroupedChart","AuthorsPillarsCount","_edge$node","_edge$node2","_edge$node2$pillar","_edge$node3","_edge$node3$pillar","_edge$node4","_edge$node4$pillar","AuthorsSessionContent","authorHandleChange","yearData","tabStyles","LivingRoomPage","tab","setTab","anchorEl","setAnchorEl","handleClose","Grid","handleChangeTab","currentTarget","IoFunnelOutline","Menu","MenuListProps","MobileRedirect","userAgent","MobileRedirectDeepLinking","queryParameters","contentId","recommendationId","authorId","uuidv4","onload","appendChild","removeChild","GetPaymentQuery","updatePaymentStatus","CheckoutForm","paymentIntent","stripe","useStripe","elements","useElements","updatePayment","useLazyQuery","confirmPayment","confirmParams","return_url","redirect","paymentIntentId","PaymentElement","StripePayment","_aks$payment","aks","setAks","stripePromise","setStripePromise","setOptions","getPayment","usePaymentQuery","_aksResponse$data","_aksResponse$data$pay","_aksResponse$data2","_aksResponse$data2$pa","aksResponse","subscriptionId","payment","paymentId","loadStripe","clientSecret","fetchData","Elements","userSubscriptionObject","CustomCarousel","images","interval","autoplay","setInterval","prevIndex","clearInterval","prevSlide","nextSlide","ShowGraphsPage","FutureForwardPage","openIntakeForm","uplevyl","shubhiRao","WebkitBackgroundClip","WebkitTextFillColor","GetUserCheckoutQuery","UserCheckoutType","PaymentRedirect","yearly","setYearly","getCheckout","paymentCreateCheckout","sessionID","redirectToCheckout","sessionId","YEARLY","MONTHLY","App","_window$location$hash","buildClient","initialize","BrowserRouter","Routes","Route","path","ResetPassword","Admin","loginPage","builDataProvider","authProvider","dashboard","layout","basename","UserIcon","ReportIcon","CustomRoutes","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","datadogRum","init","applicationId","clientToken","site","_process$env$REACT_AP3","service","_process$env$REACT_AP4","sampleRate","premiumSampleRate","trackInteractions","defaultPrivacyLevel","startSessionReplayRecording","LDProvider","asyncWithLDProvider","clientSideID","ReactDOM"],"mappings":"sgBAAO,MAAMA,EAAyBC,GAC9BA,EAAIC,QAAQ,0BAA2B,IAGlCC,EAAkBA,CAACC,EAAqBC,KAAiB,IAADC,EAAAC,EAAAC,EACpE,OAEU,QADTF,EAAW,QAAXC,EAAEF,EAAOI,UAAE,IAAAF,GAA4D,QAA5DC,EAAVD,EAAuBG,cAAcC,MAAiB,OAAXP,QAAW,IAAXA,OAAW,EAAXA,EAAaM,sBAAc,IAAAF,OAA5D,EAAVA,EACEI,cAAM,IAAA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BACA,4BACA,uBACA,mCACA,mBACA,+BACA,wBACA,SAGYC,GAAkB,CAC9B,gBACA,mBACA,oBACA,oBACA,uBACA,aACA,qBACA,aACA,gBACA,uBACA,UACA,QACA,aAGYC,GAAsB,CAClC,aACA,oCACA,2BACA,+BACA,mCACA,sCACA,+BACA,QACA,OACA,SACA,gBACA,mBACA,yCACA,qBACA,qBACA,mCACA,4BACA,sBACA,oCACA,UACA,uBACA,8BACA,aACA,eACA,yBACA,qCACA,WACA,mCACA,aACA,sBACA,SAGYC,GAAgB,CAC5B,qBACA,sCACA,mBACA,iBACA,mCAGYC,GAAmB,CAAC,SAAU,YAE9BC,GAAiB,CAC7B,aACA,uBACA,SACA,QACA,aACA,UACA,SACA,SACA,kBACA,wBACA,UACA,WACA,WACA,WACA,oBACA,mBACA,oBACA,wBACA,SACA,wBACA,UACA,0BACA,wBACA,yBACA,uBACA,iBACA,eACA,SAGYC,GAAqB,CACjC,8BACA,wBACA,2BACA,cACA,yBACA,eACA,YACA,SACA,mBACA,gCACA,oBACA,oBACA,cACA,kBACA,aACA,+BACA,cACA,kBACA,MACA,WACA,aACA,cACA,SACA,SACA,aACA,2BACA,SAGM,IAAKC,GAAoB,SAApBA,GAAoB,OAApBA,EAAoB,gBAApBA,EAAoB,oBAApBA,CAAoB,M,eClNzB,MAAMC,GAA8B7L,IAAG;;;;;;;ECwCxC9Q,GAAYC,aAAW,CAC5B2c,QAAS,CAAEC,WAAY,OAAQC,cAAe,UAKlCC,GAAYxc,IAA2B,IAADyc,EAClD,MAAM5b,EAAUpB,MACTid,EAAWC,GAAgBha,mBAAS,OACpC,CAAEia,GAAYja,mBAAS,KAEvBka,EAAcC,GD1BrBpZ,aACC0Y,GACAxM,GAPDA,MCgCA,IAAImN,EAA4B,OAAbD,QAAa,IAAbA,GAAmB,QAANL,EAAbK,EAAethB,YAAI,IAAAihB,OAAN,EAAbA,EAAqBO,oBAAoBhhB,IAmF5D,OACC2B,IAAA/B,cAACqhB,KAAIrgB,O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CAC5CC,aAAcp2B,6BAEfq2B,IAAS92C,OACRhJ,IAAA/B,cAAC0hD,EAAU,KACV3/C,IAAA/B,cAACk/C,GAAG,OAELn/C,SAASkzB,eAAe,QAEzB,EAXD,GAgBAotB,I","file":"static/js/main.af26cd88.chunk.js","sourcesContent":["export const getPrettyErrorMessage = (msg: string) => {\n\treturn msg.replace(/\\[([A-Z_])*\\](:)?(\\s)?/i, '');\n};\n\nexport const matchSuggestion = (filterValue: string, choice: any) => {\n\treturn (\n\t\t((choice.id as string)?.toLowerCase().match(filterValue?.toLowerCase())\n\t\t\t?.length ?? 0) > 0\n\t);\n};\n\nexport const cleanUserDetails = (obj: any) => {\n\tconst result: any = {};\n\tconst keys = Object.keys(obj);\n\n\tkeys.forEach((t) => {\n\t\tif (\n\t\t\tobj[t] !== null &&\n\t\t\t// obj[t] !== 0 &&\n\t\t\tt !== '__typename'\n\t\t) {\n\t\t\tresult[t] = obj[t];\n\t\t}\n\t});\n\treturn result;\n};\n\nexport const exportFile = (data: any, entity: string) => {\n\tif (data) {\n\t\tconst pom = document.createElement('a');\n\t\tconst csvContent = data;\n\t\tconst blob = new Blob([csvContent], {\n\t\t\ttype: 'text/csv;charset=utf-8;',\n\t\t});\n\t\tconst url = URL.createObjectURL(blob);\n\t\tpom.href = url;\n\t\tpom.setAttribute('download', `${entity}-${Date.now()}.csv`);\n\t\tpom.click();\n\t}\n};\n\nexport const exportFilter = (\n\tfilter: { [s: string]: unknown } | ArrayLike,\n) => {\n\t// Pull out search query\n\tlet fieldFilters: {\n\t\tfield: string;\n\t\tvalue: any;\n\t}[] = [];\n\n\tlet queryFilter;\n\tif (filter && Object.entries(filter)) {\n\t\tfieldFilters = Object.entries(filter)\n\t\t\t.map((entry: [string, any]) => {\n\t\t\t\t// eslint-disable-next-line\n\t\t\t\tlet [field, value] = entry;\n\t\t\t\tif (value && typeof value === 'object' && value.id) {\n\t\t\t\t\tvalue = value as { id: string };\n\t\t\t\t\tvalue = value.id;\n\t\t\t\t} else if (value === true) {\n\t\t\t\t\tvalue = 'true';\n\t\t\t\t} else if (value === false) {\n\t\t\t\t\tvalue = 'false';\n\t\t\t\t} else if (!Array.isArray(value)) {\n\t\t\t\t\tvalue = [value];\n\t\t\t\t}\n\t\t\t\tif (field === 'query') {\n\t\t\t\t\tconst [query] = value;\n\t\t\t\t\tqueryFilter = query;\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tfield: entry[0],\n\t\t\t\t\tvalue,\n\t\t\t\t};\n\t\t\t})\n\t\t\t.filter((field) => field)\n\t\t\t.filter((field) => field.field !== 'query') as {\n\t\t\tfield: string;\n\t\t\tvalue: string;\n\t\t}[];\n\t}\n\n\treturn {\n\t\tquery: queryFilter,\n\t\tfields: fieldFilters,\n\t};\n};\n","import * as React from 'react';\nimport { Card, CardContent } from '@mui/material';\nimport PaidIcon from '@mui/icons-material/Paid';\nimport ElevatorIcon from '@mui/icons-material/Elevator';\nimport {\n\tFilterList,\n\tFilterListItem,\n\tFilterLiveSearch,\n\tSavedQueriesList,\n\tuseListContext,\n} from 'react-admin';\nimport ActiveIcon from '@mui/icons-material/AppBlocking';\n\ninterface IUsersFilterSidebar {\n\tsetFilter: React.Dispatch;\n}\n\nconst UsersFilterSidebar = ({ setFilter }: IUsersFilterSidebar) => {\n\tconst { filterValues } = useListContext();\n\tsetFilter(filterValues);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t{/* }>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t */}\n\n\t\t\t\t{/* }>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t */}\n\t\t\t\t{/* }>\n \n \n \n \n */}\n\t\t\t\n\t\t\n\t);\n};\n\nexport default UsersFilterSidebar;\n","import * as React from 'react';\nimport { FC, useCallback, MouseEventHandler } from 'react';\nimport Dialog from '@mui/material/Dialog';\nimport DialogActions from '@mui/material/DialogActions';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogContentText from '@mui/material/DialogContentText';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport Button from '@mui/material/Button';\nimport { makeStyles } from '@mui/styles';\nimport ActionCheck from '@mui/icons-material/CheckCircle';\nimport AlertError from '@mui/icons-material/ErrorOutline';\nimport classnames from 'classnames';\nimport { useTranslate } from 'ra-core';\n\nconst useStyles = makeStyles(\n\t(theme) => ({\n\t\ticonPaddingStyle: {\n\t\t\tpaddingRight: '0.5em',\n\t\t},\n\t}),\n\t{ name: 'RaConfirm' },\n);\n\n/**\n * Confirmation dialog\n *\n * @example\n * { // do something }}\n * onClose={() => { // do something }}\n * />\n */\nconst Confirm: FC = (props) => {\n\tconst {\n\t\tisOpen,\n\t\tloading,\n\t\ttitle,\n\t\tcontent,\n\t\tconfirm,\n\t\tcancel,\n\t\tConfirmIcon,\n\t\tCancelIcon,\n\t\tonClose,\n\t\tonConfirm,\n\t\ttranslateOptions = {},\n\t\tchildren,\n\t} = props;\n\tconst classes = useStyles(props);\n\tconst translate = useTranslate();\n\n\tconst handleConfirm = useCallback(\n\t\t(e) => {\n\t\t\te.stopPropagation();\n\t\t\tonConfirm(e);\n\t\t},\n\t\t[onConfirm],\n\t);\n\n\tconst handleClick = useCallback((e) => {\n\t\te.stopPropagation();\n\t}, []);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{translate(title, { _: title, ...translateOptions })}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{translate(content, {\n\t\t\t\t\t\t_: content,\n\t\t\t\t\t\t...translateOptions,\n\t\t\t\t\t})}\n\t\t\t\t\n\t\t\t\t{children}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{translate(confirm ?? '', { _: confirm })}\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport interface ConfirmProps {\n\tcancel?: string;\n\tconfirm?: string;\n\tchildren?: React.ReactNode;\n\tconfirmColor?: string;\n\tCancelIcon?: any;\n\tConfirmIcon?: any;\n\tcontent: string;\n\tisOpen?: boolean;\n\tloading?: boolean;\n\tonClose: MouseEventHandler;\n\tonConfirm: MouseEventHandler;\n\ttitle: string;\n\ttranslateOptions?: Record;\n}\n\nConfirm.defaultProps = {\n\tcancel: 'ra.action.cancel',\n\tconfirm: 'ra.action.confirm',\n\tconfirmColor: 'primary',\n\tConfirmIcon: ActionCheck,\n\tCancelIcon: AlertError,\n\tisOpen: false,\n};\n\nexport default Confirm;\n","import * as React from 'react';\nimport {\n\tButton,\n\tuseRefresh,\n\tuseNotify,\n\tuseUnselectAll,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { useEffect, useState } from 'react';\nimport HowToRegIcon from '@mui/icons-material/HowToReg';\nimport NoAccountsIcon from '@mui/icons-material/NoAccounts';\nimport Confirm from '../../../components/Confirm';\n\ninterface IActivateButtonProps {\n\tselectedIds: string[];\n\tresource?: string;\n\tsingle?: boolean;\n}\n\nconst ActivateButton = ({\n\tselectedIds,\n\tresource = 'users',\n\tsingle,\n}: IActivateButtonProps) => {\n\tconst [open, setOpen] = useState(false);\n\tconst [isApprove, setIsApprove] = useState(false);\n\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst unselectAll = useUnselectAll('shares');\n\tconst dataProvider = useDataProvider();\n\n\tconst {\n\t\tmutate: activateUsers,\n\t\tisLoading,\n\t\tdata,\n\t\terror,\n\t} = useMutation<{\n\t\tdata: string[];\n\t}>(() => dataProvider.activate({ input: { ids: selectedIds } }));\n\n\tconst {\n\t\tmutate: AdminUsersStatusUpdate,\n\t\tisLoading: isLoadingStatus,\n\t\tdata: statusData,\n\t\terror: statusError,\n\t} = useMutation<{\n\t\tdata: string[];\n\t}>(() => dataProvider.approveORReject({ input: { ids: selectedIds, \"status\" :isApprove === 'approve' ? \"APPROVED\" : \"REJECTED\" } }));\n\n\tconst handleIsActiveClick = (type) => setIsApprove(type);\n\tconst handleIsActiveDialogClose = () => setIsApprove(false);\n\tconst handleDialogClose = () => setOpen(false);\n\n\tconst handleConfirm = () => {\n\t\tactivateUsers();\n\t\tsetOpen(false);\n\t};\n\n\tconst handleRejectOrApproveConfirm = () => {\n\t\tAdminUsersStatusUpdate();\n\t\tsetIsApprove(false);\n\t};\n\n\tuseEffect(() => {\n\t\tif (data?.data) {\n\t\t\trefresh();\n\t\t\tnotify(`${data?.data.length} users have been activated`);\n\t\t\tunselectAll();\n\t\t} else if (data?.data.length === 0) {\n\t\t\tnotify(\n\t\t\t\t'No users were activated. Make sure you select a user from the waitlist.',\n\t\t\t);\n\t\t\tunselectAll();\n\t\t} else if (error) {\n\t\t\tnotify(`${error}`, { type: 'warning' });\n\t\t}\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [data, error]);\n\n\tuseEffect(() => {\n\t\tif (statusData?.data) {\n\t\t\tconst record: any = statusData?.data[0];\n\t\t\trefresh();\n\t\t\tnotify(`${statusData?.data.length} users have been ${record?.status}`);\n\t\t\tunselectAll();\n\t\t} else if (statusData?.data.length === 0) {\n\t\t\tnotify(\n\t\t\t\t'No users were activated. Make sure you select a user from the waitlist.',\n\t\t\t);\n\t\t\tunselectAll();\n\t\t} else if (statusError) {\n\t\t\tnotify(`${statusError}`, { type: 'warning' });\n\t\t}\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [statusData, statusError]);\n\n\treturn (\n\t\t<>\n\t\t handleIsActiveClick('approve')}\n\t\t\t>\n\t\t\t\t\n\t\t\t\n\t\t\t handleIsActiveClick('reject')}\n\t\t\t>\n\t\t\t\t\n\t\t\t\n\t\t\t{/* \n\t\t\t\t\n\t\t\t */}\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default ActivateButton;\n","import * as React from 'react';\nimport {\n\tButton,\n\tuseRefresh,\n\tuseNotify,\n\tuseUnselectAll,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport ArchiveIcon from '@mui/icons-material/Archive';\nimport { useEffect, useState } from 'react';\nimport Confirm from '../../../components/Confirm';\n\ninterface IArchiveButtonProps {\n\tselectedIds: string[];\n\tresource?: string;\n\tsingle?: boolean;\n}\n\nconst ArchiveButton = ({\n\tselectedIds,\n\tresource = 'users',\n\tsingle,\n}: IArchiveButtonProps) => {\n\tconst [open, setOpen] = useState(false);\n\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst unselectAll = useUnselectAll('shares');\n\tconst dataProvider = useDataProvider();\n\n\tconst {\n\t\tmutate: archiveUsers,\n\t\tisLoading,\n\t\tdata,\n\t\terror,\n\t} = useMutation<{ archive: any }[]>(() =>\n\t\tdataProvider.archive({ input: { ids: selectedIds } }),\n\t);\n\n\tconst handleClick = () => setOpen(true);\n\tconst handleDialogClose = () => setOpen(false);\n\n\tconst handleConfirm = () => {\n\t\tarchiveUsers();\n\t\tsetOpen(false);\n\t};\n\n\tuseEffect(() => {\n\t\tif (data && data.length && data[0].archive) {\n\t\t\trefresh();\n\t\t\tnotify(`${data.length} users have been archived`);\n\t\t\tunselectAll();\n\t\t} else if (error) {\n\t\t\tnotify(`${error}`, { type: 'warning' });\n\t\t}\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [data, error]);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default ArchiveButton;\n","import {\n\tBulkDeleteWithConfirmButton,\n\tBulkExportButton,\n} from 'ra-ui-materialui';\nimport React, { useEffect } from 'react';\nimport { useDataProvider, useNotify } from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { exportFile } from '../../../helpers';\nimport ActivateButton from './activate.button';\nimport ArchiveButton from './archive.button';\n\nconst UserActionsButtons = (props: any) => {\n\tconst { selectedIds } = props;\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: exportUsers, data } = useMutation<{\n\t\tdata: Record;\n\t}>(\n\t\t() =>\n\t\t\tdataProvider.userExportCsv({\n\t\t\t\tids: selectedIds,\n\t\t\t}),\n\t\t{\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tuseEffect(() => {\n\t\tif (data) exportFile(data?.data, 'users');\n\t}, [data]);\n\n\tconst exporter = async () => {\n\t\texportUsers();\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default UserActionsButtons;\n","import React, { useEffect, useState } from 'react';\nimport {\n\tList,\n\tDatagrid,\n\tTextField,\n\tEmailField,\n\tListProps,\n\tDateField,\n\tEditButton,\n\tBooleanField,\n\tPagination,\n\tPaginationProps,\n\tuseNotify,\n\tuseDataProvider,\n\tFunctionField,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport CloseIcon from '@mui/icons-material/Close';\nimport CheckIcon from '@mui/icons-material/Check';\nimport { exportFile, exportFilter } from '../../helpers';\nimport UsersFilterSidebar from './components/users-filter.sidebar';\nimport UserActionsButtons from './components/users.actions';\n\ntype IUserListProps = ListProps;\n\nconst UserPagination = (props: PaginationProps) => (\n\t\n);\n\nexport const UserList = (props: IUserListProps) => {\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\tconst [filter, setFilter] = useState();\n\tconst { mutate: exportUsers, data } = useMutation<{\n\t\tdata: Record;\n\t}>(\n\t\t() =>\n\t\t\tdataProvider.userExportCsv({\n\t\t\t\tfilter: exportFilter(filter),\n\t\t\t}),\n\t\t{\n\t\t\tonError(error: any) {\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' });\n\t\t\t},\n\t\t},\n\t);\n\n\tconst exporter = async () => {\n\t\texportUsers();\n\t};\n\n\tuseEffect(() => {\n\t\tif (data) exportFile(data?.data, 'users');\n\t}, [data]);\n\n\treturn (\n\t\t}\n\t\t\texporter={exporter}\n\t\t\t// filters={}\n\t\t\tbulkActionButtons={}\n\t\t\tpagination={}\n\t\t\ttitle=\"Members\"\n\t\t\t{...props}\n\t\t>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t (record.status === 'APPROVED' ? : )}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t (record.subscription === 'ACTIVE' ? : )}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t{/* */}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","/* eslint-disable jsx-a11y/label-has-associated-control */\nimport * as React from 'react';\nimport {\n\tuseRefresh,\n\tuseNotify,\n\tSimpleForm,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { Button, TextField } from '@mui/material';\nimport SpeakerNotesIcon from '@mui/icons-material/SpeakerNotes';\nimport { useState } from 'react';\nimport Confirm from '../../components/Confirm';\n\ninterface BroadcastNotificationButtonProps {\n\tresource?: string;\n}\n\nconst BroadcastNotificationButton = ({\n\tresource = 'custom',\n}: BroadcastNotificationButtonProps) => {\n\tconst [open, setOpen] = useState(false);\n\tconst [title, setTitle] = useState('');\n\tconst [subtitle, setSubtitle] = useState('');\n\tconst [body, setBody] = useState('');\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: broadcastNotification, isLoading } = useMutation(\n\t\t() =>\n\t\t\tdataProvider.broadcastNotification({\n\t\t\t\tbody,\n\t\t\t\ttitle,\n\t\t\t\tsubtitle,\n\t\t\t}),\n\t\t{\n\t\t\tonSuccess: () => {\n\t\t\t\trefresh();\n\t\t\t\tnotify('Broadcasted push notification');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tconst handleClick = () => setOpen(true);\n\tconst handleDialogClose = () => {\n\t\tsetTitle('');\n\t\tsetSubtitle('');\n\t\tsetBody('');\n\t\tsetOpen(false);\n\t};\n\n\tconst handleConfirm = () => {\n\t\tbroadcastNotification();\n\t\thandleDialogClose();\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t}\n\t\t\t>\n\t\t\t\tSend Notification\n\t\t\t\n\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t setTitle(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setSubtitle(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setBody(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default BroadcastNotificationButton;\n","/* eslint-disable jsx-a11y/label-has-associated-control */\nimport * as React from 'react';\nimport {\n\tuseRefresh,\n\tuseNotify,\n\tSimpleForm,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { Button, TextField } from '@mui/material';\nimport ImportExportIcon from '@mui/icons-material/ImportExport';\nimport { useState } from 'react';\nimport Confirm from '../../components/Confirm';\n\ninterface UserImportCsvProps {\n\tresource?: string;\n}\n\nconst UserImportCsv = ({ resource = 'custom' }: UserImportCsvProps) => {\n\tconst [open, setOpen] = useState(false);\n\tconst [url, setUrl] = useState('');\n\tconst [enterpriseName, setEnterpriseName] = useState('');\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: importUsers, isLoading } = useMutation(\n\t\t() =>\n\t\t\tdataProvider.userImportCsv({\n\t\t\t\turl,\n\t\t\t\tenterpriseName,\n\t\t\t}),\n\t\t{\n\t\t\t// undoable: true,\n\t\t\tonSuccess: () => {\n\t\t\t\trefresh();\n\t\t\t\tnotify('Imported users');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tconst handleClick = () => setOpen(true);\n\tconst handleDialogClose = () => setOpen(false);\n\n\tconst handleConfirm = () => {\n\t\timportUsers();\n\t\tsetOpen(false);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t}\n\t\t\t>\n\t\t\t\tImport Users\n\t\t\t\n\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t setUrl(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setEnterpriseName(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default UserImportCsv;\n","/* eslint-disable jsx-a11y/label-has-associated-control */\nimport * as React from 'react';\nimport {\n\tuseRefresh,\n\tuseNotify,\n\tSimpleForm,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { Button, TextField } from '@mui/material';\nimport DownloadIcon from '@mui/icons-material/Download';\nimport { useState } from 'react';\nimport Confirm from '../../components/Confirm';\n\ninterface DownloadAssetButtonProps {\n\tresource?: string;\n}\n\nconst DownloadAssetButton = ({\n\tresource = 'custom',\n}: DownloadAssetButtonProps) => {\n\tconst [open, setOpen] = useState(false);\n\tconst [id, setID] = useState('');\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: broadcastNotification, isLoading } = useMutation(\n\t\t() =>\n\t\t\tdataProvider.downloadAsset({\n\t\t\t\tid,\n\t\t\t}),\n\t\t{\n\t\t\t// undoable: true,\n\t\t\tonSuccess: () => {\n\t\t\t\trefresh();\n\t\t\t\tnotify('Processing master asset - this can take a few minutes');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tconst handleClick = () => setOpen(true);\n\tconst handleDialogClose = () => setOpen(false);\n\n\tconst handleConfirm = () => {\n\t\tbroadcastNotification();\n\t\tsetOpen(false);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t}\n\t\t\t>\n\t\t\t\tDownload Asset\n\t\t\t\n\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t setID(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default DownloadAssetButton;\n","import * as React from 'react';\nimport { Box, Card, CardActions, Typography } from '@mui/material';\nimport BroadcastNotificationButton from '../resources/components/AdminBroadcast';\nimport UserImportCsv from '../resources/components/UserImportCsv';\nimport DownloadAssetButton from '../resources/components/DownloadAsset';\n\n// import publishArticleImage from './welcome_illustration.svg';\n\nconst Welcome = () => {\n\treturn (\n\t\t\n\t\t\t\t\ttheme.palette.mode === 'dark'\n\t\t\t\t\t\t? '#535353'\n\t\t\t\t\t\t: `linear-gradient(to right, #8975fb 0%, #746be7 35%), linear-gradient(to bottom, #8975fb 0%, #6f4ceb 50%), #6f4ceb`,\n\n\t\t\t\tcolor: '#fdf7ed',\n\t\t\t\tpadding: '20px',\n\t\t\t\tmarginTop: 2,\n\t\t\t\tmarginBottom: '1em',\n\t\t\t}}\n\t\t>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tWelcome to the Uplevyl Admin Panel\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tUse the buttons below to perform quick actions, or\n\t\t\t\t\t\tselect a page from the sidebar\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default Welcome;\n","import * as React from 'react';\nimport { Card, Box, Typography, Divider } from '@mui/material';\nimport { Link, To } from 'react-router-dom';\n\ninterface Props {\n\ticon: React.FC;\n\tto: To;\n\ttitle?: string;\n\tvalue?: number;\n\tsubtitle?: string;\n\tchildren?: React.ReactNode;\n}\n\nconst TotalCard = (props: Props) => {\n\tconst { icon, title, subtitle, value, to, children } = props;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\ttheme.palette.mode === 'dark'\n\t\t\t\t\t\t\t\t\t? 'inherit'\n\t\t\t\t\t\t\t\t\t: '#dc2440',\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t\n\t\t\t\t\t\t{React.createElement(icon, { fontSize: 'large' })}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\n\t\t\t\t\t\t{subtitle && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{subtitle || ' '}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{value && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{value || ' '}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t{children && }\n\t\t\t{children}\n\t\t\n\t);\n};\n\nexport default TotalCard;\n","import * as React from 'react';\nimport CustomerIcon from '@mui/icons-material/PersonAdd';\nimport MemberIcon from '@mui/icons-material/Person2';\nimport { stringify } from 'querystring';\nimport TotalCard from './TotalCard';\n\ninterface Props {\n\ttype: 'activated' | 'unactivated';\n\tvalue?: number;\n}\n\nconst TotalUsers = ({ value, type }: Props) => {\n\treturn (\n\t\t\n\t);\n};\n\nexport default TotalUsers;\n","import * as React from 'react';\nimport { Paper, Typography } from '@mui/material';\nimport {\n\tResponsiveContainer,\n\tAreaChart,\n\tArea,\n\tXAxis,\n\tYAxis,\n\tCartesianGrid,\n\tTooltip,\n} from 'recharts';\nimport { format, subDays, addDays } from 'date-fns';\nimport { RaRecord, useGetList } from 'react-admin';\n\nconst card3 = {\n\twidth: '520px',\n\theight: '400px',\n\tpadding: '10px',\n\tmargin: '10px',\n};\n\nconst lastDay = new Date();\nconst lastMonthDays = Array.from({ length: 30 }, (_, i) => subDays(lastDay, i));\nconst aMonthAgo = subDays(new Date(), 30);\n\nconst dateFormatter = (date: number): string =>\n\tnew Date(date).toLocaleDateString();\n\nconst aggregateUsersByDay = (users: RaRecord[]): { [key: string]: number } =>\n\tusers\n\t\t// .filter((order: RaRecord) => !order.active)\n\t\t.reduce((acc, curr) => {\n\t\t\tconst day = format(new Date(curr.created), 'yyyy-MM-dd');\n\t\t\tif (!acc[day]) {\n\t\t\t\tacc[day] = 0;\n\t\t\t}\n\t\t\tacc[day] += 1;\n\t\t\treturn acc;\n\t\t}, {} as { [key: string]: number });\n\nconst getRevenuePerDay = (users: RaRecord[]): TotalByDay[] => {\n\tconst daysWithRevenue = aggregateUsersByDay(users);\n\treturn lastMonthDays.map((date) => ({\n\t\tdate: date.getTime(),\n\t\ttotal: daysWithRevenue[format(new Date(date), 'yyyy-MM-dd')] || 0,\n\t}));\n};\n\nconst NewUsersChart = () => {\n\tconst { data: users } = useGetList('users', {\n\t\t// filter: { date_gte: aMonthAgo.toISOString() },\n\t\tsort: { field: 'created', order: 'DESC' },\n\t\tpagination: { page: 1, perPage: 100 },\n\t});\n\n\tif (!users) return null;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tNew users by day\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdateFormatter(label)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n};\n\ninterface TotalByDay {\n\tdate: number;\n\ttotal: number;\n}\n\nexport default NewUsersChart;\n","import React from 'react';\nimport {\n\tChart as ChartJS,\n\tBarElement,\n\tTooltip,\n\tLegend,\n\tCategoryScale,\n\tLinearScale,\n\tArcElement,\n} from 'chart.js';\nimport { Paper, Typography } from '@mui/material';\nimport { Doughnut } from 'react-chartjs-2';\nimport './charts.css';\n\nChartJS.register(\n\tBarElement,\n\tTooltip,\n\tLegend,\n\tCategoryScale,\n\tLinearScale,\n\tArcElement,\n);\n\nconst card3 = {\n\twidth: '520px',\n\theight: '400px',\n\tpadding: '10px',\n\tmargin: '10px',\n};\n\ninterface PieChartProps {\n\tdata: { label: string; value: number }[];\n\twidth: number;\n\theight: number;\n}\n\nconst PieChart: React.FC = ({ data, width, height }) => {\n\tconst chartData = {\n\t\tlabels: data.map((d) => d.label),\n\t\tdatasets: [\n\t\t\t{\n\t\t\t\tdata: data.map((d) => d.value),\n\t\t\t\tbackgroundColor: ['#c4d8d0', '#f5e6d3', '#f5e6d3', '#f5e6d3'],\n\t\t\t},\n\t\t],\n\t};\n\n\tconst handleClick = (evt: any, item: any) => {\n\t\tif (item.length > 0) {\n\t\t\tconst label = chartData.labels[item[0].index];\n\t\t\tlet url = '';\n\n\t\t\tswitch (label) {\n\t\t\t\tcase 'Active':\n\t\t\t\t\turl =\n\t\t\t\t\t\t'/admin/users?page=1&perPage=25&filter=%7B\"active\"%3Atrue%7D';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Inactive':\n\t\t\t\t\turl =\n\t\t\t\t\t\t'/admin/users?filter=%7B\"active\"%3Afalse%7D&order=desc&page=1&perPage=25&sort=created';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (url !== '') {\n\t\t\t\twindow.open(url, '_blank');\n\t\t\t}\n\t\t}\n\t};\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\tActive and Inactive Members\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default PieChart;\n","import * as React from 'react';\nimport { gql, useQuery } from 'urql';\nimport PieChart from './PieChart';\nimport './charts.css';\n\nconst totalUsersQuery = gql`\n\tquery totalUsers {\n\t\ttotalUsers {\n\t\t\tactivated\n\t\t\tunactivated\n\t\t}\n\t}\n`;\n\nconst MembersTypesChart = () => {\n\tconst [users] = useQuery({\n\t\tquery: totalUsersQuery,\n\t});\n\n\tconst activeUsers = users?.data?.totalUsers.activated;\n\tconst inactiveUsers = users?.data?.totalUsers.unactivated;\n\n\tconst activeInactiveUsersData: { label: string; value: number }[] = [\n\t\t{ label: `Active`, value: activeUsers },\n\t\t{ label: `Inactive`, value: inactiveUsers },\n\t];\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\n\t);\n};\n\nexport default MembersTypesChart;\n","import React from 'react';\nimport { gql, useQuery } from 'urql';\nimport Welcome from './Welcome';\nimport TotalUsers from './cards/TotalUsers';\nimport NewUsersChart from './charts/NewUsers';\nimport MembersTypesChart from './charts/UserTypesChart';\n\nconst totalUsersQuery = gql`\n\tquery totalUsers {\n\t\ttotalUsers {\n\t\t\tactivated\n\t\t\tunactivated\n\t\t}\n\t}\n`;\nconst Spacer = () => ;\nconst Dashboard = () => {\n\tconst [users] = useQuery({\n\t\tquery: totalUsersQuery,\n\t});\n\n\t// const [api, setAPI] = useState(null);\n\t// const [dns, setDNS] = useState(null);\n\t// const [database, setDatabase] = useState(null);\n\n\t// useEffect(() => {\n\t// \tconst getStatus = async () => {\n\t// \t\tif (!process.env.REACT_APP_API) return;\n\t// \t\tconst fqdn = process.env.REACT_APP_API.replace('graphql', 'status');\n\t// \t\tconst res = await fetch(fqdn);\n\t// \t\tconst data = (await res.json()) as {\n\t// \t\t\tstatus: string;\n\t// \t\t\tinfo?: {\n\t// \t\t\t\tdns?: {\n\t// \t\t\t\t\tstatus?: string;\n\t// \t\t\t\t};\n\t// \t\t\t\tdatabase?: {\n\t// \t\t\t\t\tstatus?: string;\n\t// \t\t\t\t};\n\t// \t\t\t};\n\t// \t\t};\n\n\t// \t\tconst { status, info } = data;\n\n\t// \t\tsetAPI(status === 'ok');\n\n\t// \t\tif (info) {\n\t// \t\t\tconst { dns: dnsStatus, database: databaseStatus } = info;\n\t// \t\t\tif (dnsStatus) setDNS(dnsStatus.status === 'up');\n\t// \t\t\tif (databaseStatus) setDatabase(databaseStatus.status === 'up');\n\t// \t\t}\n\t// \t};\n\n\t// \tconst poll = setInterval(getStatus, 2000);\n\n\t// \treturn () => clearInterval(poll);\n\t// });\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t{/*
\n\t\t\t\t} />\n\t\t\t\t\n\t\t\t\t} />\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/>\n\t\t\t
*/}\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default Dashboard;\n","import { gql } from 'urql';\nimport { IQueries } from './queries';\n\nconst fragments: IQueries = {\n\tusers: gql`\n\t\tfragment UserDetails on User {\n\t\t\tid\n\t\t\tfirstName\n\t\t\tlastName\n\t\t\tactivatedByAdmin\n\t\t\temail\n\t\t\tusername\n\t\t\tbio\n\t\t\tavatar\n\t\t\tdob\n\t\t\tphone\n\t\t\tcomment\n\t\t\thasComment\n\t\t\trole\n\t\t\taddress\n\t\t\tstate\n\t\t\tlocked\n\t\t\tactive\n\t\t\tsubscription\n\t\t\tsubscriptionActivatedAt\n\t\t\taccountActivatedAt\n\t\t\tcreated\n\t\t\tfirstLogin\n\t\t\tupdated\n\t\t\ttimeout\n\t\t\tmobileOS\n\t\t\trelationship\n\t\t\tchildren\n\t\t\tageOfChildren\n\t\t\tcontributor\n\t\t\tincome\n\t\t\tlastActivity\n\t\t\tclickedActivationLink\n\t\t\tfirstLogin\n\t\t\treferred\n\t\t\tenterprise\n\t\t\tfocus {\n\t\t\t\tmilestone\n\t\t\t}\n\t\t\tethnicity\n\t\t\tgeneration\n\t\t\tpet\n\t\t\tcity\n\t\t\tstatus\n\t\t\tcountry\n\t\t\toccupation\n\t\t\toccupationType\n\t\t\temployment\n\t\t\tcompanyName\n\t\t\tcompanySize\n\t\t\tcompanyType\n\t\t\tcompanyIndustry\n\t\t\tcompanyRole\n\t\t\tcompanyFunction\n\t\t\teducation\n\t\t\tprofiles\n\t\t\thowCanUplevylHelpYou\n\t\t\thowCanUplevylElevateYou\n\t\t\thowCanYouHelpUplevyl\n\t\t\tprofessionalGrowthImportance\n\t\t\tpersonalGrowthImportance\n\t\t\tfinancialGrowthImportance\n\t\t\tactiveParticipationImportance\n\t\t\twomenSupportImportance\n\t\t\tresume {\n\t\t\t\tname\n\t\t\t\turl\n\t\t\t}\n\t\t\tadditionalFormInfo {\n\t\t\t\tmotivations\n\t\t\t\tdigitalImpactVision\n\t\t\t\tcontributeViaWorkshops\n\t\t\t\tfirstName\n\t\t\t\tlastName\n\t\t\t\temail\n\t\t\t\tlocation\n\t\t\t\tcurrentTitle\n\t\t\t\tcompanyName\n\t\t\t\tcompanyAnnualRevenue\n\t\t\t\thighestEducationLevel\n\t\t\t\thearAboutProgram\n\t\t\t\taiSkillsRatings\n\t\t\t\taiTopicsInterest\n\t\t\t\tadditionalInterests\n\t\t\t\tlinkedInProfile\n\t\t\t\tsocialHandle\n \t\t\t}\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\tfragment LivingRoomDetails on LivingRoom {\n\t\t\tid\n\t\t\ttitle\n\t\t\theader\n\t\t\tdescription\n\t\t\tstart\n\t\t\tend\n\t\t\tmeetingUrl\n\t\t\trecorded\n\t\t\tsmall\n\t\t\tcapacity\n\t\t\tcreated\n\t\t\tupdated\n\t\t\tmilestones\n\t\t\tpillars\n\t\t\thasStarted\n\t\t\trecordingUrl\n\t\t\tregistrations {\n\t\t\t\tuser {\n\t\t\t\t\tid\n\t\t\t\t\tfirstName\n\t\t\t\t\tlastName\n\t\t\t\t}\n\t\t\t\tlivingRoom {\n\t\t\t\t\tid\n\t\t\t\t}\n\t\t\t\trole\n\t\t\t}\n\t\t}\n\t`,\n\treports: gql`\n\t\tfragment ReportDetails on Report {\n\t\t\tid\n\t\t\tcreated\n\t\t\treason\n\t\t\tstatus\n\t\t\tmadeBy {\n\t\t\t\tid\n\t\t\t}\n\t\t\tuser {\n\t\t\t\tid\n\t\t\t}\n\t\t\tlivingRoom {\n\t\t\t\tid\n\t\t\t}\n\t\t}\n\t`,\n\tmilestones: gql`\n\t\tfragment MilestoneDetails on Milestone {\n\t\t\tid\n\t\t\tname\n\t\t\tpillar {\n\t\t\t\tname\n\t\t\t}\n\t\t}\n\t`,\n\tlogs: gql`\n\t\tfragment LogDetails on Log {\n\t\t\tid\n\t\t\tmessage\n\t\t\tcontext\n\t\t\tlevel\n\t\t\tcreated\n\t\t\tupdated\n\t\t}\n\t`,\n\tpolls: gql`\n\t\tfragment PollDetails on Poll {\n\t\t\tid\n\t\t\tcreated\n\t\t\tquestion\n\t\t\tchoices\n\t\t\tresults {\n\t\t\t\tanswer\n\t\t\t\tpercentage\n\t\t\t}\n\t\t\ttitle\n\t\t\tupdated\n\t\t\tbackgroundColour\n\t\t\tschedule {\n\t\t\t\tstart\n\t\t\t\tend\n\t\t\t}\n\t\t}\n\t`,\n\tschedules: gql`\n\t\tfragment ScheduleDetails on ScheduleUnion {\n\t\t\t... on Poll {\n\t\t\t\tid\n\t\t\t\ttitle\n\t\t\t\tschedule {\n\t\t\t\t\tstart\n\t\t\t\t\tend\n\t\t\t\t}\n\t\t\t\t__typename\n\t\t\t}\n\t\t\t... on FreeText {\n\t\t\t\tid\n\t\t\t\ttitle\n\t\t\t\tschedule {\n\t\t\t\t\tstart\n\t\t\t\t\tend\n\t\t\t\t}\n\t\t\t\t__typename\n\t\t\t}\n\t\t\t... on Quote {\n\t\t\t\tid\n\t\t\t\ttitle\n\t\t\t\tschedule {\n\t\t\t\t\tstart\n\t\t\t\t\tend\n\t\t\t\t}\n\t\t\t\t__typename\n\t\t\t}\n\t\t}\n\t`,\n\tfreeTexts: gql`\n\t\tfragment FreeTextDetails on FreeText {\n\t\t\tid\n\t\t\tbackgroundColour\n\t\t\timageSubTitle\n\t\t\timageTitle\n\t\t\timageFormat\n\t\t\timageURL\n\t\t\tcreated\n\t\t\tupdated\n\t\t\ttitle\n\t\t\tdescription\n\t\t\tschedule {\n\t\t\t\tstart\n\t\t\t\tend\n\t\t\t}\n\t\t}\n\t`,\n\tquotes: gql`\n\t\tfragment QuoteDetails on Quote {\n\t\t\tauthor\n\t\t\tbackgroundColour\n\t\t\tshowQuotationMark\n\t\t\tcreated\n\t\t\tid\n\t\t\tquote\n\t\t\ttitle\n\t\t\tupdated\n\t\t\tschedule {\n\t\t\t\tstart\n\t\t\t\tend\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport default fragments;\n","import { gql } from 'urql';\nimport { IMutations } from '.';\n\nconst deleteMany: IMutations = {\n\tusers: gql`\n\t\tmutation deleteUsers($ids: [ID!]!) {\n\t\t\tadminUsersDelete(ids: $ids)\n\t\t}\n\t`,\n\treports: gql`\n\t\tmutation deleteReports($ids: [ID!]!) {\n\t\t\treportsDelete(ids: $ids)\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\tmutation deleteLivingRooms($ids: [ID!]!) {\n\t\t\tlivingRoomsDelete(ids: $ids)\n\t\t}\n\t`,\n\tfreeTexts: gql`\n\t\tmutation deleteFreeTexts($ids: [ID!]!) {\n\t\t\tfreeTextsDelete(ids: $ids)\n\t\t}\n\t`,\n\tquotes: gql`\n\t\tmutation deleteQuotes($ids: [ID!]!) {\n\t\t\tquotesDelete(ids: $ids)\n\t\t}\n\t`,\n\tpolls: gql`\n\t\tmutation deletePolls($ids: [ID!]!) {\n\t\t\tpollsDelete(ids: $ids)\n\t\t}\n\t`,\n};\n\nexport default deleteMany;\n","import { DocumentNode } from 'graphql';\nimport create from './create';\nimport update from './update';\nimport deletes from './deletes';\nimport deleteMany from './deleteMany';\n\nexport interface IMutations {\n\tusers: DocumentNode;\n\tlivingRooms: DocumentNode;\n\treports: DocumentNode;\n\tfreeTexts: DocumentNode;\n\tquotes: DocumentNode;\n\tpolls: DocumentNode;\n}\n\n// eslint-disable-next-line\nexport default { create, update, deletes, deleteMany };\n","import { DocumentNode } from 'graphql';\nimport { gql } from 'urql';\nimport { IMutations } from '.';\nimport fragments from '../fragments';\n\nconst create: Omit = {\n\tusers: gql`\n\t\tmutation createUser($input: AdminCreateUserInput!) {\n\t\t\tadminUserCreate(input: $input) {\n\t\t\t\tid\n\t\t\t\tfirstName\n\t\t\t\tlastName\n\t\t\t\temail\n\t\t\t\tdob\n\t\t\t\tphone\n\t\t\t\tcomment\n\t\t\t\trole\n\t\t\t\tcontributor\n\t\t\t\tenterprise\n\t\t\t}\n\t\t}\n\t`,\n\treports: gql`\n\t\t${fragments.reports as DocumentNode}\n\t\tmutation createReport($input: ReportCreateInput!) {\n\t\t\treportCreate(input: $input) {\n\t\t\t\t...ReportDetails\n\t\t\t}\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\t${fragments.livingRooms as DocumentNode}\n\t\tmutation createLivingRoom($input: LivingRoomCreateInput!) {\n\t\t\tlivingRoomCreate(input: $input) {\n\t\t\t\t...LivingRoomDetails\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport default create;\n","import { DocumentNode } from 'graphql';\nimport { gql } from 'urql';\nimport { IMutations } from '.';\nimport fragments from '../fragments';\n\nconst update: IMutations = {\n\tusers: gql`\n\t\tmutation updateUser($id: ID!, $input: AdminUserUpdateInput!) {\n\t\t\tadminUserUpdate(id: $id, input: $input) {\n\t\t\t\tid\n\t\t\t\tfirstName\n\t\t\t\tlastName\n\t\t\t\temail\n\t\t\t\tdob\n\t\t\t\tphone\n\t\t\t\tcomment\n\t\t\t\tavatar\n\t\t\t\trole\n\t\t\t\tlocked\n\t\t\t\ttimeout\n\t\t\t\tcreated\n\t\t\t\tupdated\n\t\t\t\tcontributor\n\t\t\t\tenterprise\n\t\t\t}\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\t${fragments.livingRooms as DocumentNode}\n\t\tmutation updateLivingRoom($id: ID!, $input: LivingRoomUpdateInput!) {\n\t\t\tlivingRoomUpdate(id: $id, input: $input) {\n\t\t\t\t...LivingRoomDetails\n\t\t\t}\n\t\t}\n\t`,\n\treports: gql`\n\t\t${fragments.reports as DocumentNode}\n\t\tmutation updateReport($id: ID!, $input: ReportUpdateInput!) {\n\t\t\treportUpdate(id: $id, input: $input) {\n\t\t\t\t...ReportDetails\n\t\t\t}\n\t\t}\n\t`,\n\tquotes: gql`\n\t\t${fragments.quotes as DocumentNode}\n\t\tmutation updateQuote($id: ID!, $input: QuoteUpdateInput!) {\n\t\t\tquoteUpdate(id: $id, input: $input) {\n\t\t\t\t...QuoteDetails\n\t\t\t}\n\t\t}\n\t`,\n\tfreeTexts: gql`\n\t\t${fragments.freeTexts as DocumentNode}\n\t\tmutation updateTextFree($id: ID!, $input: FreeTextUpdateInput!) {\n\t\t\tfreeTextUpdate(id: $id, input: $input) {\n\t\t\t\t...FreeTextDetails\n\t\t\t}\n\t\t}\n\t`,\n\tpolls: gql`\n\t\t${fragments.polls as DocumentNode}\n\t\tmutation updatePoll($id: ID!, $input: PollUpdateInput!) {\n\t\t\tpollUpdate(id: $id, input: $input) {\n\t\t\t\t...PollDetails\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport default update;\n","import { DocumentNode } from 'graphql';\nimport { gql } from 'urql';\nimport { IMutations } from '.';\nimport fragments from '../fragments';\n\nconst deletes: IMutations = {\n\tusers: gql`\n\t\tmutation deleteUser($id: ID!) {\n\t\t\tadminUserDelete(id: $id) {\n\t\t\t\tid\n\t\t\t\tfirstName\n\t\t\t\tlastName\n\t\t\t\temail\n\t\t\t\tcreated\n\t\t\t\tupdated\n\t\t\t}\n\t\t}\n\t`,\n\treports: gql`\n\t\t${fragments.reports as DocumentNode}\n\t\tmutation deleteReport($id: ID!) {\n\t\t\treportDelete(id: $id) {\n\t\t\t\t...ReportDetails\n\t\t\t}\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\t${fragments.livingRooms as DocumentNode}\n\t\tmutation deleteLivingRoom($id: ID!) {\n\t\t\tlivingRoomDelete(id: $id) {\n\t\t\t\t...LivingRoomDetails\n\t\t\t}\n\t\t}\n\t`,\n\tquotes: gql`\n\t\tmutation deleteQuote($id: ID!) {\n\t\t\tquoteDelete(id: $id) {\n\t\t\t\tid\n\t\t\t\tauthor\n\t\t\t\tbackgroundColour\n\t\t\t\tcreated\n\t\t\t\tquote\n\t\t\t\ttitle\n\t\t\t\tupdated\n\t\t\t}\n\t\t}\n\t`,\n\tfreeTexts: gql`\n\t\tmutation deleteFreeText($id: ID!) {\n\t\t\tfreeTextDelete(id: $id) {\n\t\t\t\tid\n\t\t\t\tbackgroundColour\n\t\t\t\timageSubTitle\n\t\t\t\timageTitle\n\t\t\t\timageFormat\n\t\t\t\timageURL\n\t\t\t\tcreated\n\t\t\t\tupdated\n\t\t\t\ttitle\n\t\t\t\tdescription\n\t\t\t}\n\t\t}\n\t`,\n\tpolls: gql`\n\t\tmutation deletePoll($id: ID!) {\n\t\t\tpollDelete(id: $id) {\n\t\t\t\tid\n\t\t\t\tcreated\n\t\t\t\tquestion\n\t\t\t\tchoices\n\t\t\t\tresults {\n\t\t\t\t\tanswer\n\t\t\t\t\tpercentage\n\t\t\t\t}\n\t\t\t\ttitle\n\t\t\t\tupdated\n\t\t\t\tbackgroundColour\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport default deletes;\n","import { gql } from 'urql';\n\nexport default {\n\tactivate: gql`\n\t\tmutation activateUsers($input: AdminUsersActivateInput!) {\n\t\t\tadminUsersActivate(input: $input) {\n\t\t\t\tid\n\t\t\t\tactive\n\t\t\t}\n\t\t}\n\t`,\n\tarchive: gql`\n\t\tmutation archiveUsers($input: AdminUsersArchiveInput!) {\n\t\t\tadminUsersArchive(input: $input) {\n\t\t\t\tid\n\t\t\t\tarchive\n\t\t\t}\n\t\t}\n\t`,\n\tapproveORReject: gql`\n\t\tmutation AdminUsersStatusUpdate($input: AdminUsersActivateInput!) { \n\t\t\tadminUsersStatusUpdate(input: $input) { \n\t\t\t\tid email status activatedByAdmin \n\t\t\t} \n\t\t}\n\t`,\n\taddRegistration: gql`\n\t\tmutation addRegistration($id: ID!, $input: AdminJoinLivingRoomInput!) {\n\t\t\tadminLivingRoomRegister(id: $id, input: $input) {\n\t\t\t\tid\n\t\t\t\tregistrations {\n\t\t\t\t\tid\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tremoveRegistration: gql`\n\t\tmutation removeRegistration(\n\t\t\t$id: ID!\n\t\t\t$input: AdminUnjoinLivingRoomInput!\n\t\t) {\n\t\t\tadminLivingRoomUnregister(id: $id, input: $input) {\n\t\t\t\tid\n\t\t\t\tregistrations {\n\t\t\t\t\tid\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tuserImportCsv: gql`\n\t\tmutation userImportCsv($url: String!, $enterpriseName: String) {\n\t\t\tuserImportCsv(enterpriseName: $enterpriseName, url: $url)\n\t\t}\n\t`,\n\tuserExportCsv: gql`\n\t\tquery userExportCsv($filter: ConnectionFilter, $ids: [String!]) {\n\t\t\tadminUserExportCsv(filter: $filter, ids: $ids)\n\t\t}\n\t`,\n\tlivingRoomExportCsv: gql`\n\t\tquery livingRoomExportCsv($filter: ConnectionFilter, $ids: [String!]) {\n\t\t\tadminLivingRoomExportCsv(filter: $filter, ids: $ids)\n\t\t}\n\t`,\n\treportExportCsv: gql`\n\t\tquery reportExportCsv($filter: ConnectionFilter, $ids: [String!]) {\n\t\t\tadminReportExportCsv(filter: $filter, ids: $ids)\n\t\t}\n\t`,\n\tbroadcastNotification: gql`\n\t\tmutation broadcastNotification(\n\t\t\t$body: String!\n\t\t\t$subtitle: String!\n\t\t\t$title: String!\n\t\t) {\n\t\t\tadminBroadcast(body: $body, subtitle: $subtitle, title: $title)\n\t\t}\n\t`,\n\tpollCreate: gql`\n\t\tmutation createPoll($input: PollCreateInput!) {\n\t\t\tpollCreate(input: $input) {\n\t\t\t\tid\n\t\t\t}\n\t\t}\n\t`,\n\tquoteCreate: gql`\n\t\tmutation createQuote($input: QuoteCreateInput!) {\n\t\t\tquoteCreate(input: $input) {\n\t\t\t\tid\n\t\t\t}\n\t\t}\n\t`,\n\tfreeTextCreate: gql`\n\t\tmutation createFreeText($input: FreeTextCreateInput!) {\n\t\t\tfreeTextCreate(input: $input) {\n\t\t\t\tid\n\t\t\t}\n\t\t}\n\t`,\n\tcontentRequestMasterAccess: gql`\n\t\tmutation contentRequestMasterAccess($id: ID!) {\n\t\t\tcontentRequestMasterAccess(id: $id)\n\t\t}\n\t`,\n};\n","import { gql } from '@apollo/client';\nimport { IQueries } from '.';\nimport fragments from '../fragments';\n\nconst many: IQueries = {\n\tusers: gql`\n\t\t${fragments.users}\n\t\tquery getManyUsers($ids: [ID!]!) {\n\t\t\tusersMany(ids: $ids) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...UserDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\t${fragments.livingRooms}\n\t\tquery getManyLivingRooms($ids: [ID!]!) {\n\t\t\tlivingRoomsMany(ids: $ids) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...LivingRoomDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tmilestones: gql`\n\t\t${fragments.milestones}\n\t\tquery getManyMilestones($ids: [ID!]!) {\n\t\t\tmilestonesMany(ids: $ids) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...MilestoneDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\treports: gql`\n\t\t${fragments.reports}\n\t\tquery getManyReports($ids: [ID!]!) {\n\t\t\treportsMany(ids: $ids) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...ReportDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tlogs: gql`\n\t\t${fragments.logs}\n\t\tquery getManyLogs($ids: [ID!]!) {\n\t\t\tlogsMany(ids: $ids) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...LogDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tpolls: gql`\n\t\t${fragments.polls}\n\t`,\n\tfreeTexts: gql`\n\t\t${fragments.freeTexts}\n\t`,\n\tquotes: gql`\n\t\t${fragments.quotes}\n\t`,\n\tschedules: gql`\n\t\t${fragments.schedules}\n\t`,\n};\nexport default many;\n","import { DocumentNode } from '@apollo/client';\nimport one from './one';\nimport list from './list';\nimport many from './many';\n\nexport interface IQueries {\n\tusers: DocumentNode | DocumentNode[];\n\tlivingRooms: DocumentNode | DocumentNode[];\n\tmilestones: DocumentNode | DocumentNode[];\n\tlogs: DocumentNode | DocumentNode[];\n\treports: DocumentNode | DocumentNode[];\n\tpolls: DocumentNode | DocumentNode[];\n\tschedules: DocumentNode | DocumentNode[];\n\tfreeTexts: DocumentNode | DocumentNode[];\n\tquotes: DocumentNode | DocumentNode[];\n}\n\n// eslint-disable-next-line\nexport default { one, list, many };\n","import { gql } from '@apollo/client';\nimport { IQueries } from '.';\nimport fragments from '../fragments';\n\nconst one: IQueries = {\n\t// Split complex queries up into multiple\n\tusers: [\n\t\tgql`\n\t\t\t${fragments.users}\n\t\t\tquery getUser($id: ID!) {\n\t\t\t\tuser(id: $id) {\n\t\t\t\t\t...UserDetails\n\t\t\t\t}\n\t\t\t}\n\t\t`,\n\t\tgql`\n\t\t\tquery getUserInvitedBy($id: ID!) {\n\t\t\t\tuser(id: $id) {\n\t\t\t\t\tid\n\t\t\t\t\tinvitedBy {\n\t\t\t\t\t\tid\n\t\t\t\t\t\temail\n\t\t\t\t\t\tfirstName\n\t\t\t\t\t\tlastName\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`,\n\t\tgql`\n\t\t\tquery getUserRegistrations($id: ID!) {\n\t\t\t\tuser(id: $id) {\n\t\t\t\t\tid\n\t\t\t\t\tregistrations(limit: 250) {\n\t\t\t\t\t\tedges {\n\t\t\t\t\t\t\tnode {\n\t\t\t\t\t\t\t\tlivingRoom {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tstart\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tuser {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\trole\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`,\n\t\tgql`\n\t\t\tquery getUserAuditLog($id: ID!) {\n\t\t\t\tuser(id: $id) {\n\t\t\t\t\tid\n\t\t\t\t\tauditLog(limit: 20) {\n\t\t\t\t\t\tedges {\n\t\t\t\t\t\t\tnode {\n\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\tupdated\n\t\t\t\t\t\t\t\tpreviousUserDetails {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tfirstName\n\t\t\t\t\t\t\t\t\tlastName\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tupdatedUserDetails {\n\t\t\t\t\t\t\t\t\tfirstName\n\t\t\t\t\t\t\t\t\tlastName\n\t\t\t\t\t\t\t\t\temail\n\t\t\t\t\t\t\t\t\tbio\n\t\t\t\t\t\t\t\t\tdob\n\t\t\t\t\t\t\t\t\tphone\n\t\t\t\t\t\t\t\t\tcomment\n\t\t\t\t\t\t\t\t\trole\n\t\t\t\t\t\t\t\t\taddress\n\t\t\t\t\t\t\t\t\tstate\n\t\t\t\t\t\t\t\t\tlocked\n\t\t\t\t\t\t\t\t\tactive\n\t\t\t\t\t\t\t\t\tsubscription\n\t\t\t\t\t\t\t\t\tsubscriptionActivatedAt\n\t\t\t\t\t\t\t\t\taccountActivatedAt\n\t\t\t\t\t\t\t\t\tcreated\n\t\t\t\t\t\t\t\t\tfirstLogin\n\t\t\t\t\t\t\t\t\tupdated\n\t\t\t\t\t\t\t\t\tmobileOS\n\t\t\t\t\t\t\t\t\trelationship\n\t\t\t\t\t\t\t\t\tchildren\n\t\t\t\t\t\t\t\t\tageOfChildren\n\t\t\t\t\t\t\t\t\tcontributor\n\t\t\t\t\t\t\t\t\tenterprise\n\t\t\t\t\t\t\t\t\tincome\n\t\t\t\t\t\t\t\t\tclickedActivationLink\n\t\t\t\t\t\t\t\t\tfirstLogin\n\t\t\t\t\t\t\t\t\tethnicity\n\t\t\t\t\t\t\t\t\tgeneration\n\t\t\t\t\t\t\t\t\tpet\n\t\t\t\t\t\t\t\t\temployment\n\t\t\t\t\t\t\t\t\tcompanyName\n\t\t\t\t\t\t\t\t\tcompanySize\n\t\t\t\t\t\t\t\t\tcompanyType\n\t\t\t\t\t\t\t\t\tcompanyIndustry\n\t\t\t\t\t\t\t\t\tcompanyRole\n\t\t\t\t\t\t\t\t\tcompanyFunction\n\t\t\t\t\t\t\t\t\teducation\n\t\t\t\t\t\t\t\t\tprofiles\n\t\t\t\t\t\t\t\t\thowCanUplevylHelpYou\n\t\t\t\t\t\t\t\t\thowCanUplevylElevateYou\n\t\t\t\t\t\t\t\t\thowCanYouHelpUplevyl\n\t\t\t\t\t\t\t\t\tprofessionalGrowthImportance\n\t\t\t\t\t\t\t\t\tpersonalGrowthImportance\n\t\t\t\t\t\t\t\t\tfinancialGrowthImportance\n\t\t\t\t\t\t\t\t\tactiveParticipationImportance\n\t\t\t\t\t\t\t\t\twomenSupportImportance\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t`,\n\t],\n\tlivingRooms: gql`\n\t\t${fragments.livingRooms}\n\t\tquery getLivingRoom($id: ID!) {\n\t\t\tlivingRoom(id: $id) {\n\t\t\t\t...LivingRoomDetails\n\t\t\t}\n\t\t}\n\t`,\n\tmilestones: gql`\n\t\t${fragments.milestones}\n\t\tquery getMilestone($name: String, $pillar: String) {\n\t\t\tmilestones(name: $name, pillar: $pillar) {\n\t\t\t\t...MilestoneDetails\n\t\t\t}\n\t\t}\n\t`,\n\treports: gql`\n\t\t${fragments.reports}\n\t\tquery getReport($id: ID!) {\n\t\t\treport(id: $id) {\n\t\t\t\t...ReportDetails\n\t\t\t}\n\t\t}\n\t`,\n\tpolls: gql`\n\t\t${fragments.polls}\n\t\tquery getPoll($id: ID!) {\n\t\t\tpoll(id: $id) {\n\t\t\t\t...PollDetails\n\t\t\t}\n\t\t}\n\t`,\n\tlogs: gql`\n\t\t${fragments.logs}\n\t\tquery getLog($id: ID!) {\n\t\t\tlog(id: $id) {\n\t\t\t\t${fragments.logs}\n\t\t\t}\n\t\t}\n\t`,\n\tfreeTexts: gql`\n\t\t${fragments.freeTexts}\n\t\tquery getFreeText($id: ID!) {\n\t\t\tfreeText(id: $id) {\n\t\t\t\t...FreeTextDetails\n\t\t\t}\n\t\t}\n\t`,\n\tquotes: gql`\n\t\t${fragments.quotes}\n\t\tquery getQuote($id: ID!) {\n\t\t\tquote(id: $id) {\n\t\t\t\t...QuoteDetails\n\t\t\t}\n\t\t}\n\t`,\n\tschedules: gql`\n\t\tquery getSchedule($id: ID!) {\n\t\t\tschedule(id: $id) {\n\t\t\t\tid\n\t\t\t\ttype\n\t\t\t\tentityID\n\t\t\t}\n\t\t}\n\t`,\n};\nexport default one;\n","import { gql } from '@apollo/client';\nimport { IQueries } from '.';\nimport fragments from '../fragments';\n\nconst list: IQueries = {\n\tusers: gql`\n\t\t${fragments.users}\n\t\tquery getUsers(\n\t\t\t$perPage: Float!\n\t\t\t$page: Float!\n\t\t\t$sort: ConnectionSort\n\t\t\t$filter: ConnectionFilter\n\t\t) {\n\t\t\tusers(limit: $perPage, page: $page, sort: $sort, filter: $filter) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...UserDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\t// Don't need this, is over-ridden by schedule\n\tpolls: gql`\n\t\t${fragments.polls}\n\t`,\n\treports: gql`\n\t\t${fragments.reports}\n\t\tquery getReports(\n\t\t\t$perPage: Float!\n\t\t\t$page: Float!\n\t\t\t$sort: ConnectionSort\n\t\t\t$filter: ConnectionFilter\n\t\t) {\n\t\t\treports(\n\t\t\t\tlimit: $perPage\n\t\t\t\tpage: $page\n\t\t\t\tsort: $sort\n\t\t\t\tfilter: $filter\n\t\t\t) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...ReportDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tlivingRooms: gql`\n\t\t${fragments.livingRooms}\n\t\tquery getLivingRooms(\n\t\t\t$perPage: Float!\n\t\t\t$page: Float!\n\t\t\t$sort: ConnectionSort\n\t\t\t$filter: ConnectionFilter\n\t\t) {\n\t\t\tlivingRooms(\n\t\t\t\tlimit: $perPage\n\t\t\t\tpage: $page\n\t\t\t\tsort: $sort\n\t\t\t\tfilter: $filter\n\t\t\t) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...LivingRoomDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tmilestones: gql`\n\t\t${fragments.milestones}\n\t\tquery getMilestones(\n\t\t\t$perPage: Float!\n\t\t\t$page: Float!\n\t\t\t$sort: ConnectionSort\n\t\t\t$filter: ConnectionFilter\n\t\t) {\n\t\t\tmilestones(\n\t\t\t\tlimit: $perPage\n\t\t\t\tpage: $page\n\t\t\t\tsort: $sort\n\t\t\t\tfilter: $filter\n\t\t\t) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...MilestoneDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tlogs: gql`\n\t\t${fragments.logs}\n\t\tquery getLogs(\n\t\t\t$perPage: Float!\n\t\t\t$page: Float!\n\t\t\t$sort: ConnectionSort\n\t\t\t$filter: ConnectionFilter\n\t\t\t$start: DateTime\n\t\t\t$end: DateTime\n\t\t) {\n\t\t\tlogs(\n\t\t\t\tlimit: $perPage\n\t\t\t\tpage: $page\n\t\t\t\tsort: $sort\n\t\t\t\tfilter: $filter\n\t\t\t\tstart: $start\n\t\t\t\tend: $end\n\t\t\t) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...LogDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tschedules: gql`\n\t\t${fragments.schedules}\n\t\tquery getSchedules(\n\t\t\t$perPage: Float!\n\t\t\t$page: Float!\n\t\t\t$sort: ConnectionSort\n\t\t\t$filter: ConnectionFilter\n\t\t) {\n\t\t\tschedules(\n\t\t\t\tlimit: $perPage\n\t\t\t\tpage: $page\n\t\t\t\tsort: $sort\n\t\t\t\tfilter: $filter\n\t\t\t) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t...ScheduleDetails\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpageInfo {\n\t\t\t\t\ttotal\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n\tfreeTexts: gql`\n\t\t${fragments.freeTexts}\n\t`,\n\tquotes: gql`\n\t\t${fragments.quotes}\n\t`,\n};\nexport default list;\n","import { RaRecord as Record } from 'ra-core';\nimport { IFormatter } from './formatter.interface';\n\nexport class BaseFormatter implements IFormatter {\n\t/**\n\t * Get One item formatter\n\t * @param data Data\n\t * @returns Fomatted single item\n\t */\n\tpublic one(data: D): { data: Record } {\n\t\treturn {\n\t\t\tdata,\n\t\t};\n\t}\n\n\t/**\n\t * Get List item formatter\n\t * @param data Data\n\t * @returns Fomatted list of items\n\t */\n\tpublic list(_data: T): { data: Record[]; total: number } {\n\t\tconst data = _data.edges.map((edge: { node: any }) => edge.node);\n\n\t\treturn {\n\t\t\tdata,\n\t\t\ttotal: _data ? _data.pageInfo.total : 0,\n\t\t};\n\t}\n\n\t/**\n\t * Get Many item formatter\n\t * @param _data Data\n\t * @returns Fomatted many items\n\t */\n\tpublic many(_data: T): { data: Record[] } {\n\t\tconst { data } = this.list(_data);\n\t\treturn { data };\n\t}\n\n\t/**\n\t * Create item formatter\n\t * @param data Input data\n\t * @returns Output data\n\t */\n\tpublic create(data: D): O {\n\t\treturn data as unknown as O;\n\t}\n\n\t/**\n\t * Update item formatter\n\t * @param data Input data\n\t * @returns Output data\n\t */\n\tpublic update(data: D): O {\n\t\treturn data as unknown as O;\n\t}\n\n\t/**\n\t * Delete item formatter\n\t * @param data Input data\n\t * @returns Output data\n\t */\n\tpublic delete(data: D): O {\n\t\treturn data as unknown as O;\n\t}\n}\n","import { RaRecord as Record } from 'react-admin';\nimport { BaseFormatter } from './default.formatter';\n\n/* eslint no-param-reassign: \"error\" */\nexport class LivingRoomFormatter extends BaseFormatter {\n\tpublic create(data: D): O {\n\t\tif (data.milestones) {\n\t\t\tconst milestones = new Set();\n\t\t\tconst pillars = new Set();\n\n\t\t\t(data.milestones as string[]).forEach((id) => {\n\t\t\t\tconst [pillar, milestone] = id.split(':');\n\n\t\t\t\tpillars.add(pillar);\n\t\t\t\tmilestones.add(milestone);\n\t\t\t});\n\n\t\t\t(data.milestones as unknown[]) = [...milestones];\n\t\t\t(data.pillars as unknown[]) = [...pillars];\n\t\t}\n\n\t\treturn data as unknown as O;\n\t}\n\n\tpublic update(data: D): O {\n\t\tif (new Date(data.start) > new Date()) {\n\t\t\tif (data.milestones) {\n\t\t\t\tconst milestones = new Set();\n\t\t\t\tconst pillars = new Set();\n\t\t\t\t(data.milestones as string[]).forEach((id) => {\n\t\t\t\t\tconst [pillar, milestone] = id.split(':');\n\n\t\t\t\t\tpillars.add(pillar);\n\t\t\t\t\tmilestones.add(milestone);\n\t\t\t\t});\n\t\t\t\t(data.milestones as unknown[]) = [...milestones];\n\t\t\t\t(data.pillars as unknown[]) = [...pillars];\n\t\t\t}\n\t\t\tif (data.header === '') delete data.header;\n\t\t\tdelete data.hasStarted;\n\t\t\tdelete data.url;\n\t\t\tdelete data.registrations;\n\t\t\tdelete data.meetingUrl;\n\t\t\tdelete data.recordingUrl;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tdelete data.capacity;\n\t\t\tdelete data.end;\n\t\t\tdelete data.small;\n\t\t\tdelete data.start;\n\t\t\tdelete data.recorded\n\t\t\tdelete data.hasStarted;\n\t\t\tdelete data.url;\n\t\t\tdelete data.registrations;\n\t\t\tdelete data.meetingUrl;\n\t\t\tdelete data.milestones;\n\t\t\tdelete data.pillars;\n\t\t\tif (data.header === '') delete data.header;\n\t\t}\n\n\t\treturn data as unknown as O;\n\t}\n\n\tone(data: any) {\n\t\tif (data.milestones) {\n\t\t\tdata.milestones = data.milestones.map(\n\t\t\t\t(milestone: string, index: number) =>\n\t\t\t\t\t`${data?.pillars[index]}:${milestone}`,\n\t\t\t);\n\t\t}\n\n\t\treturn { data };\n\t}\n}\n\n","import { RaRecord as Record } from 'react-admin';\nimport { BaseFormatter } from './default.formatter';\n/* eslint no-param-reassign: \"error\" */\nexport class MilestoneFormatter extends BaseFormatter {\n\tpublic create(data: D): O {\n\t\tconst milestones = new Set();\n\t\tconst pillars = new Set();\n\t\t(data.milestones as string[]).forEach((id) => {\n\t\t\tconst [pillar, milestone] = id.split(':');\n\t\t\tpillars.add(pillar);\n\t\t\tmilestones.add(milestone);\n\t\t});\n\t\t(data.milestones as unknown[]) = [...milestones];\n\t\t(data.pillars as unknown[]) = [...pillars];\n\n\t\treturn data as unknown as O;\n\t}\n\n\tpublic list(_data: T): { data: Record[]; total: number } {\n\t\tlet data = _data.edges.map((edge: { node: any }) => edge.node);\n\n\t\tdata = data.map((milestone: any) => {\n\t\t\treturn {\n\t\t\t\tid: `${milestone.id}`,\n\t\t\t\tname: `${milestone.pillar.name}`,\n\t\t\t};\n\t\t});\n\n\t\treturn {\n\t\t\tdata,\n\t\t\ttotal: _data ? _data.pageInfo.total : 0,\n\t\t};\n\t}\n}\n\n/* eslint no-param-reassign: \"error\" */\n","import parsePhoneNumber from 'libphonenumber-js';\nimport { RaRecord } from 'react-admin';\nimport { BaseFormatter } from './default.formatter';\n\n/* eslint no-param-reassign: \"error\" */\n\nexport class UserFormatter extends BaseFormatter {\n\tpublic create(data: D): O {\n\t\tif (data?.countryCode && data?.phone) {\n\t\t\tconst countryCode = data?.countryCode;\n\t\t\t(data as RaRecord).phone = `${countryCode}${data.phone}`;\n\t\t\tdelete data.countryCode;\n\t\t}\n\t\treturn data as unknown as O;\n\t}\n\n\tpublic update(data: D): O {\n\t\tif (data?.countryCode && data?.phone) {\n\t\t\tconst countryCode = data?.countryCode;\n\t\t\t(data as RaRecord).phone = `${countryCode}${data.phone}`;\n\t\t\tdelete data.countryCode;\n\t\t}\n\t\tif (!data?.phone) {\n\t\t\t(data as RaRecord).phone = '';\n\t\t\tdelete data.countryCode;\n\t\t}\n\t\tdelete data.registrations;\n\t\tdelete data.invitedBy;\n\t\tdelete data.auditLog;\n\t\tdelete data.resume;\n\n\t\treturn data as unknown as O;\n\t}\n\n\tone(data: any) {\n\t\tconst registrations = data?.registrations?.edges?.map(\n\t\t\t(edge: any) => edge?.node,\n\t\t);\n\n\t\tlet countryCode = '+1';\n\t\tlet phone = '';\n\t\tif (data.phone) {\n\t\t\tcountryCode = `+${\n\t\t\t\tparsePhoneNumber(data.phone)?.countryCallingCode\n\t\t\t}`;\n\n\t\t\tphone = data.phone.slice(countryCode.length);\n\t\t}\n\n\t\tconst auditLog = data?.auditLog?.edges?.map((edge: any) => edge?.node);\n\n\t\treturn {\n\t\t\tdata: {\n\t\t\t\t...data,\n\t\t\t\tregistrations,\n\t\t\t\tcountryCode,\n\t\t\t\tphone,\n\t\t\t\tauditLog,\n\t\t\t},\n\t\t};\n\t}\n}\n/* eslint no-param-reassign: \"error\" */\n","import { BaseFormatter } from './default.formatter';\nimport { IFormatter } from './formatter.interface';\nimport { LivingRoomFormatter } from './living-room.formatter';\nimport { MilestoneFormatter } from './milestone.formatter';\nimport { UserFormatter } from './user.formatter';\n\nexport class FormatterFactory {\n\tgetFormatter(resource: string): IFormatter {\n\t\tswitch (resource) {\n\t\t\tcase 'milestones':\n\t\t\t\treturn new MilestoneFormatter();\n\t\t\tcase 'users':\n\t\t\t\treturn new UserFormatter();\n\t\t\tcase 'livingRooms':\n\t\t\t\treturn new LivingRoomFormatter();\n\t\t\tdefault:\n\t\t\t\treturn new BaseFormatter();\n\t\t}\n\t}\n}\n","import {\n\tCreateParams,\n\tDataProvider,\n\tDeleteManyParams,\n\tDeleteParams,\n\tGetListParams,\n\tGetManyParams,\n\tGetOneParams,\n\tUpdateParams,\n\tHttpError,\n\tRaRecord,\n} from 'react-admin';\nimport { DocumentNode, GraphQLError } from 'graphql';\nimport mutations, { IMutations } from './mutations';\nimport customMutations from './mutations/custom';\nimport queries, { IQueries } from './queries';\nimport { FormatterFactory } from './mutations/formatters';\nimport { IClient } from './client/client.interface';\n\nexport const handleErrors = (error: GraphQLError) => {\n\tif (error.message.includes('UNAUTHENTICATED'))\n\t\treturn new HttpError(error.message, 401, error);\n\treturn error;\n};\n\nconst buildDataProvider = (client: IClient): DataProvider =>\n\t({\n\t\tgetOne: async (resource: string, params: GetOneParams) => {\n\t\t\tconst _queries = combineDocuments(\n\t\t\t\tqueries.one[resource as keyof IQueries],\n\t\t\t);\n\n\t\t\tconst responses = await Promise.all(\n\t\t\t\t_queries.map(async (query) =>\n\t\t\t\t\tclient\n\t\t\t\t\t\t.query(\n\t\t\t\t\t\t\tquery,\n\n\t\t\t\t\t\t\tparams,\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.catch((err) => Promise.reject(handleErrors(err))),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\tconst rawData = combineResponses(responses);\n\n\t\t\tconst formatter = new FormatterFactory().getFormatter(resource);\n\t\t\tconst data = formatter.one(rawData as RaRecord);\n\n\t\t\treturn data;\n\t\t},\n\t\tgetList: async (resource: string, params: GetListParams) => {\n\t\t\tconst _queries = combineDocuments(\n\t\t\t\tqueries.list[resource as keyof IQueries],\n\t\t\t);\n\n\t\t\tconst extraParams: Record = {};\n\n\t\t\t// Pull out search query\n\t\t\tlet fieldFilters: {\n\t\t\t\tfield: string;\n\t\t\t\tvalue: any;\n\t\t\t}[] = [];\n\n\t\t\tlet searchQuery: string | undefined;\n\t\t\tif (params.filter && Object.entries(params.filter)) {\n\t\t\t\tconst { query: _query, q, ...filters } = params.filter;\n\n\t\t\t\t// Some inputs use `q` for search queries and cannot be changed, so accept both as a search query\n\t\t\t\tsearchQuery = _query || q;\n\n\t\t\t\tfieldFilters = Object.entries(filters)\n\t\t\t\t\t.map((entry: [string, any]) => {\n\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\tlet [field, value] = entry;\n\t\t\t\t\t\tif (value && typeof value === 'object' && value.id) {\n\t\t\t\t\t\t\tvalue = value as { id: string };\n\t\t\t\t\t\t\tvalue = value.id;\n\t\t\t\t\t\t} else if (value === true) {\n\t\t\t\t\t\t\tvalue = 'true';\n\t\t\t\t\t\t} else if (value === false) {\n\t\t\t\t\t\t\tvalue = 'false';\n\t\t\t\t\t\t} else if (!Array.isArray(value)) {\n\t\t\t\t\t\t\tvalue = [value];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Log start/end\n\t\t\t\t\t\tif (field === 'start' || field === 'end') {\n\t\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\t\tif (value[0]) extraParams[field] = value[0];\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tfield: entry[0],\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t};\n\t\t\t\t\t})\n\t\t\t\t\t.filter((field) => field) as {\n\t\t\t\t\tfield: string;\n\t\t\t\t\tvalue: string;\n\t\t\t\t}[];\n\t\t\t}\n\n\t\t\tconst responses = await Promise.all(\n\t\t\t\t_queries.map(async (query) =>\n\t\t\t\t\tclient\n\t\t\t\t\t\t.query(query, {\n\t\t\t\t\t\t\t...params.pagination,\n\t\t\t\t\t\t\tsort: params.sort\n\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\tfield: params.sort.field,\n\t\t\t\t\t\t\t\t\t\torder: params.sort.order.toUpperCase(),\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\tfilter: params.filter\n\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\tquery: searchQuery,\n\t\t\t\t\t\t\t\t\t\tfields: [\n\t\t\t\t\t\t\t\t\t\t\t...fieldFilters,\n\t\t\t\t\t\t\t\t\t\t\t...(resource === 'livingRooms'\n\t\t\t\t\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfield: 'ignorePillarMilestone',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 'true',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t ]\n\t\t\t\t\t\t\t\t\t\t\t\t: []),\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t...extraParams,\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch((err) => Promise.reject(handleErrors(err))),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\tconst rawData = combineResponses(responses);\n\t\t\tconst formatter = new FormatterFactory().getFormatter(resource);\n\t\t\tconst data = formatter.list(rawData as RaRecord);\n\n\t\t\treturn data;\n\t\t},\n\t\tgetMany: async (resource: string, params: GetManyParams) => {\n\t\t\tconst _queries = combineDocuments(\n\t\t\t\tqueries.many[resource as keyof IQueries],\n\t\t\t);\n\n\t\t\tconst responses = await Promise.all(\n\t\t\t\t_queries.map(async (query) =>\n\t\t\t\t\tclient\n\t\t\t\t\t\t.query(query, params)\n\t\t\t\t\t\t.catch((err) => Promise.reject(handleErrors(err))),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\tconst rawData = combineResponses(responses);\n\n\t\t\tconst formatter = new FormatterFactory().getFormatter(resource);\n\t\t\treturn formatter.many(rawData as RaRecord);\n\t\t},\n\t\tgetManyReference: async () => {\n\t\t\treturn {\n\t\t\t\tdata: [],\n\t\t\t\ttotal: 0,\n\t\t\t};\n\t\t},\n\t\tcreate: async (resource: string, params: CreateParams | any) => {\n\t\t\tconst formatter = new FormatterFactory().getFormatter(resource);\n\t\t\tconst input = formatter.create(params?.data);\n\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tmutations.create[resource as keyof IMutations],\n\t\t\t\t\t{ input },\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tupdate: async (resource: string, params: UpdateParams) => {\n\t\t\tconst formatter = new FormatterFactory().getFormatter(resource);\n\t\t\tconst input = formatter.update(params.data as RaRecord);\n\t\t\tconst inputKeys = Object.keys(input);\n\t\t\t\n\t\t\tinputKeys.forEach((key: any) => {\n\t\t\t\tif (input[key] === '') input[key] = null;\n\t\t\t});\n\t\t\tdelete input?.additionalFormInfo?.__typename;\n\t\t\tdelete input?.id;\n\t\t\tdelete input?.created;\n\t\t\tdelete input?.updated;\n\t\t\tdelete input?.__typename;\n\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tmutations.update[resource as keyof IMutations],\n\t\t\t\t\t{\n\t\t\t\t\t\tid: params.id,\n\t\t\t\t\t\tinput,\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t\tif (!response || Object.keys(response).length === 0) {\n\t\t\t\t\tthrow new Error(\"Empty response from mutation\");\n\t\t\t\t}\n\t\t\n\t\t\t\tconst data = response[Object.keys(response)[0]];\n\t\t\t\treturn { data };\n\n\t\t\t} catch (err) {\n return Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\n\t\t},\n\t\tupdateMany: async () => {\n\t\t\treturn Promise.reject(new Error('Update many is not implemented'));\n\t\t},\n\t\tdelete: async (resource: string, params: DeleteParams) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tmutations.deletes[resource as keyof IMutations],\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tdeleteMany: async (resource: string, params: DeleteManyParams) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tmutations.deleteMany[resource as keyof IMutations],\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\n\t\t// Custom Mutations\n\t\tactivate: async (params: DeleteParams) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.activate,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tapproveORReject: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.approveORReject,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tarchive: async (params: DeleteParams) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(customMutations.archive, params);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\taddRegistration: async (params: {\n\t\t\tid: string;\n\t\t\tinput: {\n\t\t\t\tuserId: string;\n\t\t\t\trole?: string;\n\t\t\t};\n\t\t}) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.addRegistration,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tremoveRegistration: async (params: {\n\t\t\tid: string;\n\t\t\tinput: {\n\t\t\t\tuserId: string;\n\t\t\t};\n\t\t}) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.removeRegistration,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tbroadcastNotification: async (params: {\n\t\t\tbody: string;\n\t\t\tsubtitle: string;\n\t\t\ttitle: string;\n\t\t}) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.broadcastNotification,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tdownloadAsset: async (params: { id: string }) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.contentRequestMasterAccess,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tuserImportCsv: async (params: {\n\t\t\tbody: string;\n\t\t\tsubtitle: string;\n\t\t\ttitle: string;\n\t\t}) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.userImportCsv,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tuserExportCsv: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.query(\n\t\t\t\t\tcustomMutations.userExportCsv,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tlivingRoomExportCsv: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.query(\n\t\t\t\t\tcustomMutations.livingRoomExportCsv,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\treportExportCsv: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.query(\n\t\t\t\t\tcustomMutations.reportExportCsv,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tpollCreate: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.pollCreate,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tquoteCreate: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.quoteCreate,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t\tfreeTextCreate: async (params: any) => {\n\t\t\tlet response: Record | undefined;\n\t\t\ttry {\n\t\t\t\tresponse = await client.mutate(\n\t\t\t\t\tcustomMutations.freeTextCreate,\n\t\t\t\t\tparams,\n\t\t\t\t);\n\t\t\t} catch (err) {\n\t\t\t\treturn Promise.reject(handleErrors(err));\n\t\t\t}\n\n\t\t\tconst data = response?.[Object.keys(response)[0]];\n\t\t\treturn {\n\t\t\t\tdata,\n\t\t\t};\n\t\t},\n\t} as DataProvider);\n\nexport default buildDataProvider;\n\nconst combineDocuments = (documents: DocumentNode | DocumentNode[]) =>\n\t([] as DocumentNode[]).concat(documents);\n\nconst combineResponses = (responses: (Record | undefined)[]) => {\n\treturn responses.reduce((value, response) => {\n\t\tif (!response) return value;\n\n\t\treturn {\n\t\t\t...value,\n\t\t\t...response[Object.keys(response)[0]],\n\t\t};\n\t}, {});\n};\n","import { gql } from 'urql';\n\nconst auth = {\n\tcurrentUser: gql`\n\t\tquery getCurrentUser {\n\t\t\tme {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t}\n\t\t}\n\t`,\n\tlogin: gql`\n\t\tmutation login($email: String!, $password: String!) {\n\t\t\tlogin(email: $email, password: $password) {\n\t\t\t\taccessToken\n\t\t\t\trefreshToken\n\t\t\t\trole\n\t\t\t}\n\t\t}\n\t`,\n\trefresh: gql`\n\t\tmutation refresh {\n\t\t\trefresh {\n\t\t\t\taccessToken\n\t\t\t\trefreshToken\n\t\t\t}\n\t\t}\n\t`,\n\tlogout: gql`\n\t\tmutation logout {\n\t\t\tlogout\n\t\t}\n\t`,\n};\n\nexport default auth;\n","import { AuthProvider } from 'react-admin';\nimport { IClient } from './client/client.interface';\nimport { handleErrors } from './data.provider';\nimport auth from './mutations/auth';\n\nconst buildAuthProvider = (client: IClient): AuthProvider => ({\n\tlogin: async ({ username, password }) => {\n\t\tconst response = await client.mutate<{\n\t\t\tlogin: { role: string; accessToken: string };\n\t\t}>(auth.login, {\n\t\t\temail: username,\n\t\t\tpassword,\n\t\t});\n\n\t\tif (response?.login) {\n\t\t\tif (response.login.role === 'CUSTOMER')\n\t\t\t\treturn Promise.reject(\n\t\t\t\t\tnew Error(\n\t\t\t\t\t\t'You do not have the permission to access this resource',\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\tclient.login(response.login.accessToken);\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\treturn Promise.reject(new Error('Email or password incorrect'));\n\t},\n\tlogout: async () => {\n\t\tawait client.mutate(auth.logout);\n\n\t\tclient.logout();\n\t\treturn Promise.resolve();\n\t},\n\tcheckError: async (error) => {\n\t\tif (\n\t\t\tArray.isArray(error.body?.graphQLErrors) &&\n\t\t\terror.body.graphQLErrors.some(\n\t\t\t\t(e: any) => e.extensions?.code === 'UNAUTHENTICATED',\n\t\t\t)\n\t\t) {\n\t\t\treturn Promise.reject(new Error('You are not logged in'));\n\t\t}\n\n\t\treturn Promise.resolve();\n\t},\n\tcheckAuth: async () => {\n\t\treturn client.isLoggedInOrPending()\n\t\t\t? Promise.resolve()\n\t\t\t: Promise.reject();\n\t},\n\tgetPermissions: () => Promise.resolve(),\n\tgetIdentity: async () => {\n\t\tlet response: Record | undefined;\n\t\ttry {\n\t\t\tresponse = await client.query(auth.currentUser);\n\t\t} catch (err) {\n\t\t\tclient.logout();\n\t\t\treturn Promise.reject(handleErrors(err));\n\t\t}\n\n\t\tif (response?.me) {\n\t\t\treturn Promise.resolve({\n\t\t\t\tid: response.data.me.id ?? '',\n\t\t\t\tfullName: response.data.me.name ?? '',\n\t\t\t});\n\t\t}\n\t\tclient.logout();\n\t\treturn Promise.reject();\n\t},\n});\nexport default buildAuthProvider;\n","export const countryCodes = [\n\t{ name: 'Afghanistan (+93)', id: '+93' },\n\t{ name: 'Aland Islands (+358)', id: '+358' },\n\t{ name: 'Albania (+355)', id: '+355' },\n\t{ name: 'Algeria (+213)', id: '+213' },\n\t{ name: 'AmericanSamoa (+1684)', id: '+1684' },\n\t{ name: 'Andorra (+376)', id: '+376' },\n\t{ name: 'Angola (+244)', id: '+244' },\n\t{ name: 'Anguilla (+1264)', id: '+1264' },\n\t{ name: 'Antarctica (+672)', id: '+672' },\n\t{ name: 'Antigua and Barbuda (+1268)', id: '+1268' },\n\t{ name: 'Argentina (+54)', id: '+54' },\n\t{ name: 'Armenia (+374)', id: '+374' },\n\t{ name: 'Aruba (+297)', id: '+297' },\n\t{ name: 'Australia (+61)', id: '+61' },\n\t{ name: 'Austria (+43)', id: '+43' },\n\t{ name: 'Azerbaijan (+994)', id: '+994' },\n\t{ name: 'Bahamas (+1242)', id: '+1242' },\n\t{ name: 'Bahrain (+973)', id: '+973' },\n\t{ name: 'Bangladesh (+880)', id: '+880' },\n\t{ name: 'Barbados (+1246)', id: '+1246' },\n\t{ name: 'Belarus (+375)', id: '+375' },\n\t{ name: 'Belgium (+32)', id: '+32' },\n\t{ name: 'Belize (+501)', id: '+501' },\n\t{ name: 'Benin (+229)', id: '+229' },\n\t{ name: 'Bermuda (+1441)', id: '+1441' },\n\t{ name: 'Bhutan (+975)', id: '+975' },\n\t{ name: 'Bolivia (+591)', id: '+591' },\n\t{ name: 'Bosnia and Herzegovina (+387)', id: '+387' },\n\t{ name: 'Botswana (+267)', id: '+267' },\n\t{ name: 'Brazil (+55)', id: '+55' },\n\t{ name: 'British Indian Ocean Territory (+246)', id: '+246' },\n\t{ name: 'Brunei Darussalam (+673)', id: '+673' },\n\t{ name: 'Bulgaria (+359)', id: 'BG +359' },\n\t{ name: 'Burkina Faso (+226)', id: '+226' },\n\t{ name: 'Burundi (+257)', id: 'BI +257' },\n\t{ name: 'Cambodia (+855)', id: 'KH +855' },\n\t{ name: 'Cameroon (+237)', id: 'CM+237' },\n\t{ name: 'Canada (+1)', id: '+1' },\n\t{ name: 'Cape Verde (+238)', id: '+238' },\n\t{ name: 'Cayman Islands (+ 345)', id: '+345' },\n\t{ name: 'Central African Republic (+236)', id: '+236' },\n\t{ name: 'Chad (+235)', id: '+235' },\n\t{ name: 'Chile (+56)', id: '+56' },\n\t{ name: 'China (+86)', id: '+86' },\n\t{ name: 'Christmas Island (+61)', id: '+61' },\n\t{ name: 'Cocos (Keeling) Islands (+61)', id: '+61' },\n\t{ name: 'Colombia (+57)', id: '+57' },\n\t{ name: 'Comoros (+269)', id: '+269' },\n\t{ name: 'Congo (+242)', id: '+242' },\n\t{ name: 'Congo (+243)', id: '+243' },\n\t{ name: 'Cook Islands (+682)', id: '+682' },\n\t{ name: 'Costa Rica (+506)', id: '+506' },\n\t{ name: \"Cote d'Ivoire (+225)\", id: '+225' },\n\t{ name: 'Croatia (+385)', id: '+385' },\n\t{ name: 'Cuba (+53)', id: '+53' },\n\t{ name: 'Cyprus (+357)', id: '+357' },\n\t{ name: 'Czech Republic (+420)', id: '+420' },\n\t{ name: 'Denmark (+45)', id: '+45' },\n\t{ name: 'Djibouti (+253)', id: '+253' },\n\t{ name: 'Dominica (+1767)', id: '+1767' },\n\t{ name: 'Dominican Republic (+1849)', id: '+1849' },\n\t{ name: 'Ecuador (+593)', id: '+593' },\n\t{ name: 'Egypt (+20)', id: '+20' },\n\t{ name: 'El Salvador (+503)', id: '+503' },\n\t{ name: 'Equatorial Guinea (+240)', id: '+240' },\n\t{ name: 'Eritrea (+291)', id: '+291' },\n\t{ name: 'Estonia (+372)', id: '+372' },\n\t{ name: 'Ethiopia (+251)', id: '+251' },\n\t{ name: 'Falkland Islands (Malvinas) (+500)', id: '+500' },\n\t{ name: 'Faroe Islands (+298)', id: '+298' },\n\t{ name: 'Fiji (+679)', id: '+679' },\n\t{ name: 'Finland (+358)', id: '+358' },\n\t{ name: 'France (+33)', id: '+33' },\n\t{ name: 'French Guiana (+594)', id: '+594' },\n\t{ name: 'French Polynesia (+689)', id: '+689' },\n\t{ name: 'Gabon (+241)', id: '+241' },\n\t{ name: 'Gambia (+220)', id: '+220' },\n\t{ name: 'Georgia (+995)', id: '+995' },\n\t{ name: 'Germany (+49)', id: '+49' },\n\t{ name: 'Ghana (+233)', id: '+233' },\n\t{ name: 'Gibraltar (+350)', id: '+350' },\n\t{ name: 'Greece (+30)', id: '+30' },\n\t{ name: 'Greenland (+299)', id: '+299' },\n\t{ name: 'Grenada (+1473)', id: '+1473' },\n\t{ name: 'Guadeloupe (+590)', id: '+590' },\n\t{ name: 'Guam (+1671)', id: '+1671' },\n\t{ name: 'Guatemala (+502)', id: '+502' },\n\t{ name: 'Guernsey (+44)', id: '+44' },\n\t{ name: 'Guinea (+224)', id: '+224' },\n\t{ name: 'Guinea-Bissau (+245)', id: '+245' },\n\t{ name: 'Guyana (+595)', id: '+595' },\n\t{ name: 'Haiti (+509)', id: '+509' },\n\t{ name: 'Holy See (Vatican City State) (+379)', id: '+379' },\n\t{ name: 'Honduras (+504)', id: '+504' },\n\t{ name: 'Hong Kong (+852)', id: '+852' },\n\t{ name: 'Hungary (+36)', id: '+36' },\n\t{ name: 'Iceland (+354)', id: '+354' },\n\t{ name: 'India (+91)', id: '+91' },\n\t{ name: 'Indonesia (+62)', id: '+62' },\n\t{ name: 'Iran (+98)', id: '+98' },\n\t{ name: 'Iraq (+964)', id: '+964' },\n\t{ name: 'Ireland (+353)', id: 'IE +353' },\n\t{ name: 'Isle of Man (+44)', id: '+44' },\n\t{ name: 'Israel (+972)', id: '+972' },\n\t{ name: 'Italy (+39)', id: '+39' },\n\t{ name: 'Jamaica (+1876)', id: '+1876' },\n\t{ name: 'Japan (+81)', id: '+81' },\n\t{ name: 'Jersey (+44)', id: '+44' },\n\t{ name: 'Jordan (+962)', id: '+962' },\n\t{ name: 'Kazakhstan (+77)', id: '+77' },\n\t{ name: 'Kenya (+254)', id: '+254' },\n\t{ name: 'Kiribati (+686)', id: '+686' },\n\t{ name: 'Korea (North) (+850)', id: '+850' },\n\t{ name: 'Korea (South) (+82)', id: '+82' },\n\t{ name: 'Kuwait (+965)', id: '+965' },\n\t{ name: 'Kyrgyzstan (+996)', id: '+996' },\n\t{ name: 'Laos (+856)', id: '+856' },\n\t{ name: 'Latvia (+371)', id: '+371' },\n\t{ name: 'Lebanon (+961)', id: '+961' },\n\t{ name: 'Lesotho (+266)', id: '+266' },\n\t{ name: 'Liberia (+231)', id: '+231' },\n\t{ name: 'Libyan Arab Jamahiriya (+218)', id: '+218' },\n\t{ name: 'Liechtenstein (+423)', id: '+423' },\n\t{ name: 'Lithuania (+370)', id: '+370' },\n\t{ name: 'Luxembourg (+352)', id: '+352' },\n\t{ name: 'Macao (+853)', id: '+853' },\n\t{ name: 'Macedonia (+389)', id: '+389' },\n\t{ name: 'Madagascar (+261)', id: '+261' },\n\t{ name: 'Malawi (+265)', id: '+265' },\n\t{ name: 'Malaysia (+60)', id: '+60' },\n\t{ name: 'Maldives (+960)', id: '+960' },\n\t{ name: 'Mali (+223)', id: '+223' },\n\t{ name: 'Malta (+356)', id: '+356' },\n\t{ name: 'Marshall Islands (+692)', id: ' +692' },\n\t{ name: 'Martinique (+596)', id: '+596' },\n\t{ name: 'Mauritania (+222)', id: '+222' },\n\t{ name: 'Mauritius (+230)', id: '+230' },\n\t{ name: 'Mayotte (+262)', id: '+262' },\n\t{ name: 'Mexico (+52)', id: '+52' },\n\t{ name: 'Micronesia (+691)', id: '+691' },\n\t{ name: 'Moldova (+373)', id: '+373' },\n\t{ name: 'Monaco (+377)', id: '+377' },\n\t{ name: 'Mongolia (+976)', id: '+976' },\n\t{ name: 'Montenegro (+382)', id: '+382' },\n\t{ name: 'Montserrat (+1664)', id: '+1664' },\n\t{ name: 'Morocco (+212)', id: '+212' },\n\t{ name: 'Mozambique (+258)', id: '+258' },\n\t{ name: 'Myanmar (+95)', id: '+95' },\n\t{ name: 'Namibia (+264)', id: '+264' },\n\t{ name: 'Nauru (+674)', id: '+674' },\n\t{ name: 'Nepal (+977)', id: '+977' },\n\t{ name: 'Netherlands (+31)', id: '+31' },\n\t{ name: 'Netherlands Antilles (+599)', id: '+599' },\n\t{ name: 'New Caledonia (+687)', id: '+687' },\n\t{ name: 'New Zealand (+64)', id: '+64' },\n\t{ name: 'Nicaragua (+505)', id: '+505' },\n\t{ name: 'Niger (+227)', id: '+227' },\n\t{ name: 'Nigeria (+234)', id: '+234' },\n\t{ name: 'Niue (+683)', id: '+683' },\n\t{ name: 'Norfolk Island (+672)', id: '+672' },\n\t{ name: 'Northern Mariana Islands (+1670)', id: '+1670' },\n\t{ name: 'Norway (+47)', id: '+47' },\n\t{ name: 'Oman (+968)', id: '+968' },\n\t{ name: 'Pakistan (+92)', id: '+92' },\n\t{ name: 'Palau (+680)', id: '+680' },\n\t{ name: 'Palestinian Territory (+970)', id: '+970' },\n\t{ name: 'Panama (+507)', id: '+507' },\n\t{ name: 'Papua New Guinea (+675)', id: '+675' },\n\t{ name: 'Paraguay (+595)', id: '+595' },\n\t{ name: 'Peru (+51)', id: '+51' },\n\t{ name: 'Philippines (+63)', id: '+63' },\n\t{ name: 'Pitcairn (+872)', id: '+872' },\n\t{ name: 'Poland (+48)', id: '+48' },\n\t{ name: 'Portugal (+351)', id: '+351' },\n\t{ name: 'Puerto Rico (+1939)', id: '+1939' },\n\t{ name: 'Qatar (+974)', id: '+974' },\n\t{ name: 'Romania (+40)', id: '+40' },\n\t{ name: 'Russia (+7)', id: '+7' },\n\t{ name: 'Rwanda (+250)', id: '+250' },\n\t{ name: 'Reunion (+262)', id: '+262' },\n\t{ name: 'Saint Barthelemy (+590)', id: '+590' },\n\t{ name: 'Saint Helena (+290)', id: '+290' },\n\t{ name: 'Saint Kitts and Nevis (+1869)', id: '+1869' },\n\t{ name: 'Saint Lucia (+1758)', id: '+1758' },\n\t{ name: 'Saint Martin (+590)', id: '+590' },\n\t{ name: 'Saint Pierre and Miquelon (+508)', id: '+508' },\n\t{ name: 'Saint Vincent and the Grenadines (+1784)', id: '+1784' },\n\t{ name: 'Samoa (+685)', id: '+685' },\n\t{ name: 'San Marino (+378)', id: '+378' },\n\t{ name: 'Sao Tome and Principe (+239)', id: '+239' },\n\t{ name: 'Saudi Arabia (+966)', id: '+966' },\n\t{ name: 'Senegal (+221)', id: '+221' },\n\t{ name: 'Serbia (+381)', id: '+381' },\n\t{ name: 'Seychelles (+248)', id: '+248' },\n\t{ name: 'Sierra Leone (+232)', id: '+232' },\n\t{ name: 'Singapore (+65)', id: '+65' },\n\t{ name: 'Slovakia (+421)', id: '+421' },\n\t{ name: 'Slovenia (+386)', id: '+386' },\n\t{ name: 'Solomon Islands (+677)', id: '+677' },\n\t{ name: 'Somalia (+252)', id: '+252' },\n\t{ name: 'South Africa (+27)', id: '+27' },\n\t{ name: 'South Sudan (+211)', id: '+211' },\n\t{ name: 'South Georgia (+500)', id: '+500' },\n\t{ name: 'Spain (+34)', id: '+34' },\n\t{ name: 'Sri Lanka (+94)', id: '+94' },\n\t{ name: 'Sudan (+249)', id: '+249' },\n\t{ name: 'Suriname (+597)', id: '+597' },\n\t{ name: 'Svalbard and Jan Mayen (+47)', id: '+47' },\n\t{ name: 'Swaziland (+268)', id: '+268' },\n\t{ name: 'Sweden (+46)', id: '+46' },\n\t{ name: 'Switzerland (+41)', id: '+41' },\n\t{ name: 'Syrian Arab Republic (+963)', id: '+963' },\n\t{ name: 'Taiwan (+886)', id: '+886' },\n\t{ name: 'Tajikistan (+992)', id: '992' },\n\t{ name: 'Tanzania (+255)', id: '+255' },\n\t{ name: 'Thailand (+66)', id: '+66' },\n\t{ name: 'Timor-Leste (+670)', id: '+670' },\n\t{ name: 'Togo (+228)', id: '+228' },\n\t{ name: 'Tokelau (+690)', id: '+690' },\n\t{ name: 'Tonga (+676)', id: '+676' },\n\t{ name: 'Trinidad and Tobago (+1868)', id: '+1868' },\n\t{ name: 'Tunisia (+216)', id: '+216' },\n\t{ name: 'Turkey (+90)', id: '+90' },\n\t{ name: 'Turkmenistan (+993)', id: '+993' },\n\t{ name: 'Turks and Caicos Islands (+1649)', id: '+1649' },\n\t{ name: 'Tuvalu (+688)', id: '+688' },\n\t{ name: 'Uganda (+256)', id: '+256' },\n\t{ name: 'Ukraine (+380)', id: '+380' },\n\t{ name: 'United Arab Emirates (+971)', id: '+971' },\n\t{ name: 'United Kingdom (+44)', id: '+44' },\n\t{ name: 'United States (+1)', id: '+1' },\n\t{ name: 'Uruguay (+598)', id: '+598' },\n\t{ name: 'Uzbekistan (+998)', id: '+998' },\n\t{ name: 'Vanuatu (+678)', id: '+678' },\n\t{ name: 'Venezuela (+58)', id: '+58' },\n\t{ name: 'Vietnam (+84)', id: '+84' },\n\t{ name: 'Virgin Islands, British (+1284)', id: '+1284' },\n\t{ name: 'Virgin Islands, U.S. (+1340)', id: '+1340' },\n\t{ name: 'Wallis and Futuna (+681)', id: '+681' },\n\t{ name: 'Yemen (+967)', id: '+967' },\n\t{ name: 'Zambia (+260)', id: '+260' },\n\t{ name: 'Zimbabwe (+263)', id: '+263' },\n];\n","import { TitleProps } from 'react-admin';\nimport React from 'react';\n\ntype IUserTitleProps = TitleProps;\nconst UserTitle = ({ record }: IUserTitleProps) => {\n\treturn (\n\t\t\n\t\t\t{record ? `${record.firstName ?? ''} ${record.lastName ?? ''}` : ''}\n\t\t\n\t);\n};\n\nexport default UserTitle;\n","const capitaliseFirst = (value: string) =>\n\tvalue.charAt(0).toUpperCase() + value.slice(1).toLowerCase();\n\nexport const enumToSelection = (values: string[]) =>\n\tvalues.map((value) => ({\n\t\tid: value.toUpperCase(),\n\t\tname: value\n\t\t\t.split('_')\n\t\t\t.map((word) => capitaliseFirst(word))\n\t\t\t.join(' '),\n\t}));\n\nexport const UserMobileOSOptions = ['APPLE', 'ANDROID', 'OTHER'];\n\nexport const UserRelationship = [\n\t'SINGLE',\n\t'MARRIED',\n\t'PARTNER',\n\t'DATING_IN_A_RELATIONSHIP',\n\t'DIVORCED',\n\t'WIDOWED',\n\t'SEPARATED',\n\t'OTHER',\n];\n\nexport const UserEthnicity = [\n\t'WHITE_CAUCASIAN',\n\t'BLACK_AFRICAN_AMERICAN',\n\t'MIDDLE_EASTERN_OR_NORTH_AFRICAN',\n\t'NORTH_AFRICAN',\n\t'AFRICAN_AMERICAN',\n\t'HISPANIC',\n\t'LATINA_OR_SPANISH',\n\t'ASIAN',\n\t'AMERICAN_INDIAN_OR_ALASKA_NATIVE',\n\t'NATIVE_HAWAIIAN',\n\t'MULTIRACIAL',\n\t'OTHER',\n];\n\nexport const UserPet = ['DOG', 'CAT', 'OTHER', 'NONE'];\n\nexport const UserGeneration = ['BABY_BOOMER', 'GEN_X', 'MILLENNIAL', 'GEN_Z'];\n\nexport const UserEmploymentStatus = [\n\t'FULL_TIME_EMPLOYED_TEMPORARY',\n\t'FULL_TIME_EMPLOYED_PERMANENT',\n\t'PART_TIME_EMPLOYED_TEMPORARY',\n\t'PART_TIME_EMPLOYED_PERMANENT',\n\t'STUDENT',\n\t'UNEMPLOYED',\n\t'OTHER',\n];\n\nexport const UserCompanySize = [\n\t'START_UP',\n\t'SMALL',\n\t'MEDIUM',\n\t'LARGE',\n\t'X_LARGE',\n];\n\nexport const UserCompanyType = ['FOR_PROFIT', 'NOT_FOR_PROFIT', 'GOVERNMENT'];\n\nexport const UserCompanyIndustry = [\n\t'AGRICULTURE',\n\t'FORESTRY',\n\t'FISHING_AND_HUNTING',\n\t'MINING',\n\t'QUARRYING_AND_OIL_AND_GAS_EXTRACTION',\n\t'UTILITIES',\n\t'CONSTRUCTION',\n\t'MANUFACTURING',\n\t'WHOLESALE_TRADE',\n\t'RETAIL_TRADE',\n\t'TRANSPORTATION_AND_WAREHOUSING',\n\t'INFORMATION',\n\t'FINANCE_AND_INSURANCE',\n\t'REAL_ESTATE_RENTAL_AND_LEASING',\n\t'PROFESSIONAL_SCIENTIFIC_AND_TECHNICAL_SERVICES',\n\t'MANAGEMENT_OF_COMPANIES_AND_ENTERPRISES',\n\t'ADMINISTRATIVE_AND_SUPPORT',\n\t'WASTE_MANAGEMENT_SERVICES',\n\t'EDUCATIONAL_SERVICES',\n\t'HEALTHCARE_AND_SOCIAL_ASSISTANCE',\n\t'ARTS_AND_CULTURE',\n\t'ENTERTAINMENT_AND_RECREATION',\n\t'PUBLIC_ADMINISTRATION',\n\t'OTHER',\n];\n\nexport const UserCompanyRole = [\n\t'OWNER_PARTNER',\n\t'SENIOR_EXECUTIVE',\n\t'MIDDLE_MANAGEMENT',\n\t'JUNIOR_MANAGEMENT',\n\t'TRAINED_PROFESSIONAL',\n\t'CONSULTANT',\n\t'TEMPORARY_EMPLOYEE',\n\t'RESEARCHER',\n\t'SELF_EMPLOYED',\n\t'ADMINISTRATIVE_STAFF',\n\t'STUDENT',\n\t'OTHER',\n\t'EXECUTIVE',\n];\n\nexport const UserCompanyFunction = [\n\t'MANAGEMENT',\n\t'BUSINESS_AND_FINANCIAL_OPERATIONS',\n\t'COMPUTER_AND_MATHEMATICS',\n\t'ARCHITECTURE_AND_ENGINEERING',\n\t'LIFE_PHYSICAL_AND_SOCIAL_SCIENCE',\n\t'EDUCATIONAL_INSTRUCTION_AND_LIBRARY',\n\t'COMMUNITY_AND_SOCIAL_SERVICE',\n\t'LEGAL',\n\t'ARTS',\n\t'DESIGN',\n\t'ENTERTAINMENT',\n\t'SPORTS_AND_MEDIA',\n\t'HEALTHCARE_PRACTITIONERS_AND_TECHNICAL',\n\t'HEALTHCARE_SUPPORT',\n\t'PROTECTIVE_SERVICE',\n\t'FOOD_PREPARATION_AND_HOSPITALITY',\n\t'PERSONAL_CARE_AND_SERVICE',\n\t'SALES_AND_MARKETING',\n\t'OFFICE_AND_ADMINISTRATIVE_SUPPORT',\n\t'FARMING',\n\t'FISHING_AND_FORESTRY',\n\t'CONSTRUCTION_AND_EXTRACTION',\n\t'PRODUCTION',\n\t'INSTALLATION',\n\t'MAINTENANCE_AND_REPAIR',\n\t'TRANSPORTATION_AND_MATERIAL_MOVING',\n\t'MILITARY',\n\t'PR_ADVERISING_AND_COMMUNICATIONS',\n\t'TECHNOLOGY',\n\t'CONSULTING_SERVICES',\n\t'OTHER',\n];\n\nexport const UserEducation = [\n\t'SOME_OR_NO_COLLEGE',\n\t'ASSOCIATES_DEGREE_OR_APPRENTICESHIP',\n\t'BACHELORS_DEGREE',\n\t'MASTERS_DEGREE',\n\t'DOCTORAL_OR_PROFESSIONAL_DEGREE',\n];\n\nexport const UserSubscription = ['ACTIVE', 'INACTIVE'];\n\nexport const UserOccupation = [\n\t'ACCOUNTANT',\n\t'ARMED_FORCES_OFFICER',\n\t'ARTIST',\n\t'ACTOR',\n\t'ARCHITEECT',\n\t'ATHLETE',\n\t'AUTHOR',\n\t'BANKER',\n\t'CHIEF_EXECUTIVE',\n\t'COMPUTER_PROFESSIONAL',\n\t'DENTIST',\n\t'DIRECTOR',\n\t'EDUCATOR',\n\t'ENGINEER',\n\t'FINANCIAL_ANALYST',\n\t'GRPAHIC_DESIGNER',\n\t'HEALTHCARE_WORKER',\n\t'JOURNALIST_AND_EDITOR',\n\t'LAWYER',\n\t'MANAGEMENT_CONSULTANT',\n\t'MANAGER',\n\t'MARKET_RESEARCH_ANALYST',\n\t'CIVIL_SERVICE_OFFICER',\n\t'PSYCHOLOGIST_THERAPIST',\n\t'SCIENTIST_RESEARCHER',\n\t'SYSTEM_ANALYST',\n\t'VETERINARIAN',\n\t'OTHER',\n];\n\nexport const UserOccupationType = [\n\t'ADMINISTRATION_AND_BUSINESS',\n\t'ADVERTISING_AND_MEDIA',\n\t'MARKETING_COMMUNICATIONS',\n\t'AGRICULTURE',\n\t'ARTS_AND_ENTERTAINMENT',\n\t'CONSTRUCTION',\n\t'EDUCATION',\n\t'ENERGY',\n\t'ENTREPRENEURSHIP',\n\t'ENGINEERING_AND_MANUFACTURING',\n\t'FINANCE_INSURANCE',\n\t'FITNESS_NUTRITION',\n\t'FREELANCING',\n\t'GENDER_POLICIES',\n\t'GOVERNMENT',\n\t'HEALTHCARE_SOCIAL_ASSISTANCE',\n\t'HOSPITALITY',\n\t'HUMAN_RESOURCES',\n\t'LAW',\n\t'MILITARY',\n\t'NON-PROFIT',\n\t'REAL_ESTATE',\n\t'RETAIL',\n\t'SPORTS',\n\t'TECHNOLOGY',\n\t'TRANSPORTATION_UTILITIES',\n\t'OTHER',\n];\n\nexport enum UserSubscriptionEnum {\n\tACTIVE = 'ACTIVE',\n\tINACTIVE = 'INACTIVE',\n}\n","import { MutationHookOptions, gql, useMutation } from '@apollo/client';\n\nexport const UserAvatarSignedUrlMutation = gql`\n\tmutation UserAvatarSignedUrl($fileType: String!) {\n\t\tuserAvatarSignedUrl(fileType: $fileType) {\n\t\t\tsignedUrl\n\t\t\turl\n\t\t}\n\t}\n`;\n\nexport interface IUserAvatarSignedUrlVariables {\n\tfileType: string;\n}\nexport interface IUserAvatarSignedUrlData {\n\tuserAvatarSignedUrl: {\n\t\turl;\n\t\tsignedUrl;\n\t};\n}\n\nexport const useUserAvatarSignedUrlMutation = (\n\toptions?: MutationHookOptions<\n\t\tIUserAvatarSignedUrlData,\n\t\tIUserAvatarSignedUrlVariables\n\t>,\n) =>\n\tuseMutation(\n\t\tUserAvatarSignedUrlMutation,\n\t\toptions,\n\t);\n","import { Typography } from '@mui/material';\nimport { makeStyles } from '@mui/styles';\nimport React, { useState } from 'react';\nimport {\n\tArrayInput,\n\tBooleanInput,\n\tDateInput,\n\tDateTimeInput,\n\tEdit,\n\tEditProps,\n\tFormTab,\n\tImageField,\n\tImageInput,\n\tNumberInput,\n\tPasswordInput,\n\tSelectInput,\n\tSimpleFormIterator,\n\tTabbedForm,\n\tTextInput,\n} from 'react-admin';\nimport { countryCodes } from '../countryCodes';\n\nimport UserTitle from './components/user.title';\nimport {\n\tenumToSelection,\n\tUserCompanyFunction,\n\tUserCompanyIndustry,\n\tUserCompanyRole,\n\tUserCompanyType,\n\tUserEducation,\n\tUserEmploymentStatus,\n\tUserEthnicity,\n\tUserGeneration,\n\tUserPet,\n\tUserMobileOSOptions,\n\tUserRelationship,\n\tUserOccupation,\n\tUserOccupationType,\n} from './user.options';\nimport { useUserAvatarSignedUrlMutation } from '../../public/Avatar/UserAvatarSignedUrlMutation';\nimport { uploadFile } from '../../public/Avatar/upload';\n\nconst useStyles = makeStyles({\n\tsection: { paddingTop: '1rem', paddingBottom: '1rem' },\n});\n\ntype IUserEditProps = EditProps;\n\nexport const UserEdit = (props: IUserEditProps) => {\n\tconst classes = useStyles();\n\tconst [signedUrl, setSignedUrl] = useState(null);\n\tconst [, setError] = useState('');\n\n\tconst [getSignedUrl, signedUrlData] = useUserAvatarSignedUrlMutation();\n\tlet newAvatarUrl = signedUrlData?.data?.userAvatarSignedUrl.url;\n\n\tconst handleAvatarChange = async (file: File) => {\n\t\t// Error Handling\n\t\tif (file.size && file.size >= 1024 * 1024 * 5 /* 5MB */) {\n\t\t\tsetError(\n\t\t\t\t'This image is too large. It should be no larger than 5MB.',\n\t\t\t);\n\t\t\tthrow new Error('Image too large');\n\t\t}\n\t\tif (\n\t\t\tfile.type !== 'image/jpg' &&\n\t\t\tfile.type !== 'image/jpeg' &&\n\t\t\tfile.type !== 'image/png'\n\t\t) {\n\t\t\tsetError(\n\t\t\t\t'This app only accepts JPEG or PNG images, please choose the correct file type and try again.',\n\t\t\t);\n\t\t\tthrow new Error('Invalid file type');\n\t\t}\n\n\t\t// Start Uploading\n\t\ttry {\n\t\t\tconst signedUrlResponse = await getSignedUrl({\n\t\t\t\tvariables: {\n\t\t\t\t\tfileType: file.type ?? '',\n\t\t\t\t},\n\t\t\t});\n\t\t\tawait uploadFile(\n\t\t\t\tfile,\n\t\t\t\tsignedUrlResponse?.data?.userAvatarSignedUrl.signedUrl ?? '',\n\t\t\t);\n\t\t\tnewAvatarUrl = signedUrlResponse?.data?.userAvatarSignedUrl.url;\n\t\t\tsetSignedUrl(newAvatarUrl);\n\t\t} catch (err) {\n\t\t\tsetError('An error occurred while uploading the image.');\n\t\t\tthrow err;\n\t\t}\n\t};\n\tconst transform = (data: any) => {\n\t\tconst newData = data;\n\t\tnewData.howCanUplevylElevateYou =\n\t\t\tnewData.howCanUplevylElevateYou &&\n\t\t\tnewData.howCanUplevylElevateYou.length > 0\n\t\t\t\t? newData.howCanUplevylElevateYou.filter(\n\t\t\t\t\t\t(reason: string) => reason && reason.length > 0,\n\t\t\t\t )\n\t\t\t\t: [];\n\n\t\tnewData.howCanUplevylHelpYou =\n\t\t\tnewData.howCanUplevylHelpYou &&\n\t\t\tnewData.howCanUplevylHelpYou.length > 0\n\t\t\t\t? newData.howCanUplevylHelpYou.filter(\n\t\t\t\t\t\t(reason: string) => reason && reason.length > 0,\n\t\t\t\t )\n\t\t\t\t: [];\n\n\t\tnewData.howCanYouHelpUplevyl =\n\t\t\tnewData.howCanYouHelpUplevyl &&\n\t\t\tnewData.howCanYouHelpUplevyl.length > 0\n\t\t\t\t? newData.howCanYouHelpUplevyl.filter(\n\t\t\t\t\t\t(reason: string) => reason && reason.length > 0,\n\t\t\t\t )\n\t\t\t\t: [];\n\n\t\tnewData.ageOfChildren =\n\t\t\tnewData.ageOfChildren && newData.ageOfChildren.length > 0\n\t\t\t\t? newData.ageOfChildren\n\t\t\t\t\t\t.map((age: { age: string }) => age.age)\n\t\t\t\t\t\t.filter((age: string) => age && age.length > 0)\n\t\t\t\t: [];\n\t\tnewData.avatar = newAvatarUrl;\n\t\tdelete newData.referred;\n\t\tdelete newData.hasComment;\n\t\tdelete newData.subscriptionActivatedAt;\n\t\tdelete newData.accountActivatedAt;\n\t\tdelete newData.focus;\n\t\tdelete newData.firstLogin;\n\t\tdelete newData.lastActivity;\n\t\tdelete newData.username;\n\t\treturn newData;\n\t};\n\n\treturn (\n\t\t} {...props} transform={transform}>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\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const uploadFile = async (file: any, url: string) => {\n\tconst response = await fetch(url, {\n\t\tmethod: 'PUT',\n\t\tmode: 'cors',\n\t\tcredentials: 'same-origin',\n\t\theaders: {\n\t\t\t'Content-Type': file.type,\n\t\t\t'Access-Control-Allow-Origin': '*',\n\t\t},\n\t\treferrer: 'no-referrer',\n\t\tbody: file,\n\t});\n\treturn response;\n};\n","import React from 'react';\nimport {\n\tCreate,\n\tCreateProps,\n\tDateInput,\n\tPasswordInput,\n\tSimpleForm,\n\tTextInput,\n\tBooleanInput,\n\tSelectInput,\n} from 'react-admin';\nimport { countryCodes } from '../countryCodes';\n\ntype IUserCreateProps = CreateProps;\n\nexport const UserCreate = (props: IUserCreateProps) => {\n\treturn (\n\t\t {\n\t\t\t\treturn { ...data, termsAgreed: true };\n\t\t\t}}\n\t\t\ttitle=\"Create Member\"\n\t\t>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\n","import React from 'react';\nimport { Login } from 'react-admin';\n\nexport const CustomLoginPage = () => (\n\t\n);\n","import React from 'react';\nimport { useRecordContext } from 'react-admin';\n\nexport const MilestoneRow = () => {\n\tconst record = useRecordContext();\n\n\treturn (\n\t\t
\n\t\t\t

{record?.name}

\n\t\t\t

{record?.id.toString().split(':')[1]}

\n\t\t
\n\t);\n};\n","/* eslint-disable */\nimport React from 'react';\nimport {\n\tAutocompleteArrayInput,\n\tBooleanInput,\n\tCreate,\n\tCreateProps,\n\tDateTimeInput,\n\tNumberInput,\n\tReferenceArrayInput,\n\tSimpleForm,\n\tTextInput,\n} from 'react-admin';\nimport { matchSuggestion } from '../../helpers';\nimport { MilestoneRow } from './components/living-room-milestone-row';\n\ntype ILivingRoomCreateProps = CreateProps;\n\nexport const LivingRoomCreate = (props: ILivingRoomCreateProps) => (\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t}\n\t\t\t\t\tinputText={(option) => option.id}\n\t\t\t\t\tmatchSuggestion={matchSuggestion}\n\t\t\t\t\tsource=\"id\"\n\t\t\t\t\tfullWidth\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n);\n","import { TitleProps } from 'react-admin';\nimport React from 'react';\n\ntype ILivingRoomTitleProps = TitleProps;\nconst LivingRoomTitle = ({ record }: ILivingRoomTitleProps) => {\n\treturn {record ? `${record.title ?? ''}` : ''};\n};\n\nexport default LivingRoomTitle;\n","import React from 'react';\nimport { AutocompleteArrayInput, ReferenceArrayInput } from 'react-admin';\nimport { matchSuggestion } from '../../helpers';\nimport { MilestoneRow } from './components/living-room-milestone-row';\n\nconst LivingRoomMilestones = ({disable = false}) => {\n\treturn (\n\t\t\n\t\t\t}\n\t\t\t\tinputText={(option) => option.id}\n\t\t\t\tmatchSuggestion={matchSuggestion}\n\t\t\t\tsource=\"id\"\n\t\t\t\tfullWidth\n\t\t\t\tdisabled={disable}\n\t\t\t/>\n\t\t\n\t);\n};\n\nexport default LivingRoomMilestones;\n","import React from 'react';\nimport {\n\tBooleanInput,\n\tDateTimeInput,\n\tEdit,\n\tEditProps,\n\tNumberInput,\n\tSimpleForm,\n\tTextInput,\n\tuseRecordContext,\n\tRaRecord,\n} from 'react-admin';\nimport LivingRoomTitle from './components/living-room.title';\nimport LivingRoomMilestones from './living-room.milestones';\n\ntype ILivingRoom = RaRecord & {\n\ttitle: string;\n\theader: string;\n\tstart: string;\n\tend: string;\n\trecorded: boolean;\n\trecordingUrl: string;\n\tcapacity: number;\n\tdescription: string;\n};\n\nexport const LivingRoomEdit = (props: EditProps) => {\n\treturn (\n\t\t} {...props}>\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nconst LivingRoomFields = () => {\n\tconst record = useRecordContext();\n\n\tconst now = new Date();\n\tconst startDate = record?.start ? new Date(record.start) : null;\n\tconst endDate = record?.end ? new Date(record.end) : null;\n\tconst isOngoing = startDate && endDate && startDate <= now && now < endDate;\n\tconst isPast = endDate && endDate < now;\n\n\tif (!record) return null;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useState } from 'react';\nimport {\n\tButton,\n\tuseNotify,\n\tuseRefresh,\n\tSimpleForm,\n\tReferenceInput,\n\tAutocompleteInput,\n\tSelectInput,\n\tuseDataProvider,\n\tuseRecordContext,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport AddIcon from '@mui/icons-material/Add';\nimport { Typography } from '@mui/material';\nimport { enumToSelection } from '../../users/user.options';\n\nconst LivingRoomRegistrionRoles = ['HOST', 'PANELIST', 'ATTENDEE'];\n\ninterface IReserveSeatProps {\n\tresource?: string;\n}\n\nconst ReserveSeat = ({ resource = 'livingRooms' }: IReserveSeatProps) => {\n\tconst record = useRecordContext();\n\n\tconst notify = useNotify();\n\tconst refresh = useRefresh();\n\tconst dataProvider = useDataProvider();\n\n\tconst [userId, setUserId] = useState('');\n\tconst [role, setRole] = useState('ATTENDEE');\n\n\tconst { mutate: addRegistration, isLoading } = useMutation(\n\t\t() =>\n\t\t\tdataProvider.addRegistration({\n\t\t\t\tid: record?.id,\n\t\t\t\tinput: {\n\t\t\t\t\tuserId,\n\t\t\t\t\trole,\n\t\t\t\t},\n\t\t\t}),\n\t\t{\n\t\t\tonSuccess: () => {\n\t\t\t\trefresh();\n\t\t\t\tnotify('User added to living room');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tif (record?.hasStarted) return null;\n\treturn (\n\t\t<>\n\t\t\t}\n\t\t\t\tsx={{ maxWidth: 500 }}\n\t\t\t>\n\t\t\t\tRegister a User\n\t\t\t\t\n\t\t\t\t\t setUserId(event)}\n\t\t\t\t\t\toptionText=\"email\"\n\t\t\t\t\t\tsource=\"query\"\n\t\t\t\t\t\tfullWidth\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\t\tsetRole((e.target as HTMLInputElement).value);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\tfullWidth\n\t\t\t\t/>\n\t\t\t\t addRegistration()}\n\t\t\t\t\tdisabled={isLoading}\n\t\t\t\t\tvariant=\"contained\"\n\t\t\t\t\tsize=\"large\"\n\t\t\t\t>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default ReserveSeat;\n","import React from 'react';\nimport {\n\tButton,\n\tRaRecord,\n\tuseDataProvider,\n\tuseNotify,\n\tuseRefresh,\n\tuseRecordContext,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport DeleteIcon from '@mui/icons-material/Delete';\n\ninterface IRemoveButtonProps {\n\trecord?: RaRecord;\n\tresource?: string;\n}\n\nconst RemoveButton = ({ resource }: IRemoveButtonProps) => {\n\tconst notify = useNotify();\n\tconst refresh = useRefresh();\n\tconst dataProvider = useDataProvider();\n\tconst record = useRecordContext();\n\n\tconst { mutate: removeRegistration, isLoading } = useMutation(\n\t\t() =>\n\t\t\tdataProvider.removeRegistration({\n\t\t\t\tid: record?.livingRoom.id,\n\t\t\t\tinput: {\n\t\t\t\t\tuserId: record?.user.id,\n\t\t\t\t},\n\t\t\t}),\n\t\t{\n\t\t\t// undoable: true,\n\t\t\tonSuccess: () => {\n\t\t\t\trefresh();\n\t\t\t\tnotify('User removed from living room');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\treturn (\n\t\t removeRegistration()}\n\t\t\tdisabled={isLoading}\n\t\t>\n\t\t\t\n\t\t\n\t);\n};\n\nexport default RemoveButton;\n","import React, { useMemo } from 'react';\nimport { EditButton, TopToolbar, useRecordContext } from 'react-admin';\n\nconst LivingRoomShowActions = () => {\n\tconst record = useRecordContext();\n\tconst showEditButton = useMemo(() => record?.hasStarted !== true, [record]);\n\treturn (\n\t\t\n\t\t\t{showEditButton && }\n\t\t\n\t);\n};\n\nexport default LivingRoomShowActions;\n","import { Chip } from '@mui/material';\nimport React from 'react';\nimport { useRecordContext } from 'react-admin';\n\ntype TextArrayFieldProps = {\n\tsource: number | string;\n\tlabel?: string;\n\taddLabel?: boolean;\n};\n\nconst TextArrayField = ({ source }: TextArrayFieldProps) => {\n\tconst record = useRecordContext();\n\treturn (\n\t\t
\n\t\t\t{record?.[source]?.map(\n\t\t\t\t(item: any) =>\n\t\t\t\t\titem !== 'undefined' && (\n\t\t\t\t\t\t\n\t\t\t\t\t),\n\t\t\t)}\n\t\t
\n\t);\n};\n\nTextArrayField.defaultProps = { addLabel: true };\n\nexport default TextArrayField;\n","import React from 'react';\nimport {\n\tArrayField,\n\tBooleanField,\n\tDatagrid,\n\tDateField,\n\tFunctionField,\n\tImageField,\n\tNumberField,\n\tReferenceField,\n\tRichTextField,\n\tShow,\n\tShowProps,\n\tTab,\n\tTabbedShowLayout,\n\tTextField,\n\tUrlField,\n} from 'react-admin';\nimport { Chip } from '@mui/material';\nimport ReserveSeat from './components/reserve.seat';\nimport LivingRoomTitle from './components/living-room.title';\nimport RemoveButton from './components/remove.button';\nimport LivingRoomShowActions from './components/living-room-show.actions';\nimport TextArrayField from '../components/TextArrayField';\n\nexport const LivingRoomShow = (props: ShowProps) => (\n\t}\n\t\tactions={}\n\t\t{...props}\n\t>\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\trecord?.milestones.map((milestone: string) => (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t))\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n);\n","import React from 'react';\nimport get from 'lodash/get';\nimport { Link } from '@mui/material';\nimport { sanitizeFieldRestProps, UrlFieldProps } from 'react-admin';\n\ninterface ILocalURLFieldProps extends UrlFieldProps {\n\tlinkResource: string;\n\tvalue?: string;\n}\n\nconst LocalURLField: React.FC =\n\tReact.memo(\n\t\t({ linkResource, value, className, source, record = {}, ...rest }) => {\n\t\t\tconst entity = get(record, source ?? '');\n\t\t\tconst _value = get(record, value ?? '');\n\t\t\tconst href = `/admin/${linkResource}/${entity}`;\n\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t

\n\t\t\t\t\t\t{rest.label}\n\t\t\t\t\t

\n\t\t\t\t\t\n\t\t\t\t\t\t{rest.defaultValue\n\t\t\t\t\t\t\t? rest.defaultValue\n\t\t\t\t\t\t\t: _value ?? entity}\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t);\n\t\t},\n\t);\n\nexport default LocalURLField;\n","/* eslint-disable jsx-a11y/label-has-associated-control */\nimport React from 'react';\nimport { useRecordContext } from 'react-admin';\n\nconst UserRefLink = () => {\n\tconst record = useRecordContext();\n\tconst link = record\n\t\t? `https://${window.location.hostname}#invitee=${record.username}`\n\t\t: '';\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\tUser's referral link\n\t\t\t\n\t\t\t\n\t\t\t\t{link}\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default UserRefLink;\n","import { TitleProps } from 'react-admin';\nimport React from 'react';\nimport ActivateButton from './activate.button';\n\ntype ExternalButtonProps = TitleProps;\nconst ExternalActivateButton = ({ record }: ExternalButtonProps) => {\n\treturn ;\n};\n\nexport default ExternalActivateButton;\n","import { TitleProps } from 'react-admin';\nimport React from 'react';\nimport ArchiveButton from './archive.button';\n\ntype ExternalButtonProps = TitleProps;\nconst ExternalArchiveButton = ({ record }: ExternalButtonProps) => {\n\treturn ;\n};\n\nexport default ExternalArchiveButton;\n","import React from 'react';\nimport { EditButton, TopToolbar, useRecordContext } from 'react-admin';\nimport ExternalActivateButton from './external.activate.button';\nimport ExternalArchiveButton from './external.archive.button';\n\nconst UserShowActions = () => {\n\tconst record = useRecordContext();\n\treturn (\n\t\t\n\t\t\t\n\t\t\t{!record?.active && }\n\t\t\t{!record?.archive && }\n\t\t\n\t);\n};\n\nexport default UserShowActions;\n","import * as React from 'react';\nimport { Box, Typography } from '@mui/material';\nimport { useRecordContext } from 'react-admin';\n\nconst SkillsRatingsField = () => {\n const record = useRecordContext();\n\n // Define the questions and map each one to the respective index in `aiSkillsRatings`\n const questions = [\n \"Understanding AI Concepts\",\n \"Using AI Tools (e.g., chatbots, data analytics)\",\n \"Data Analysis Techniques\",\n \"Data Privacy and Ethics\",\n \"Digital Communication Platforms\"\n ];\n\n if (!record || !record.additionalFormInfo || !record.additionalFormInfo.aiSkillsRatings) {\n return No AI Skills Ratings available;\n }\n\n return (\n \n AI Skills Ratings\n {record.additionalFormInfo.aiSkillsRatings.map((rating: number, index: number) => (\n \n \n {questions[index] ?? `Question ${index + 1}`}\n \n {rating}\n \n ))}\n \n );\n};\n\nexport default SkillsRatingsField;\n","import React from 'react';\nimport { Typography } from '@mui/material';\nimport { useRecordContext } from 'react-admin';\n\ntype FormattedTextArrayFieldProps = {\n source: string;\n label?: string;\n separator?: 'comma' | 'newline';\n};\n\nconst FormattedTextArrayField = ({\n source,\n label,\n separator = 'comma',\n}: FormattedTextArrayFieldProps) => {\n const record = useRecordContext();\n\n console.log(record)\n if (!record || !record.additionalFormInfo[source]) {\n return No data available;\n }\n\n\n const dataArray = record.additionalFormInfo[source];\n const formattedText =\n separator === 'newline'\n ? dataArray.join('\\n')\n : dataArray.join(', ');\n\n return (\n
\n \n {label}\n \n {formattedText}\n
\n );\n};\n\nexport default FormattedTextArrayField;\n","import * as React from 'react';\nimport {\n\tShow,\n\tTextField,\n\tShowProps,\n\tDateField,\n\tTab,\n\tTabbedShowLayout,\n\tBooleanField,\n\tChipField,\n\tNumberField,\n\tSelectField,\n\tArrayField,\n\tDatagrid,\n\tReferenceField,\n\tFunctionField,\n\tUrlField,\n\tImageField,\n} from 'react-admin';\nimport LocalURLField from '../../components/LocalURLField';\nimport { cleanUserDetails } from '../../helpers';\nimport RemoveButton from '../living-rooms/components/remove.button';\nimport UserRefLink from './components/refLink';\nimport UserShowActions from './components/user.show.actions';\nimport {\n\tenumToSelection,\n\tUserCompanyFunction,\n\tUserCompanyIndustry,\n\tUserCompanyRole,\n\tUserCompanyType,\n\tUserEducation,\n\tUserEmploymentStatus,\n\tUserEthnicity,\n\tUserMobileOSOptions,\n\tUserOccupation,\n\tUserOccupationType,\n\tUserRelationship,\n\tUserSubscription,\n} from './user.options';\nimport SkillsRatingsField from '../../components/Fields/SkillsRatingsField';\nimport FormattedTextArrayField from '../../components/Fields/FormattedTextArrayField';\n\ntype IUserShowProps = ShowProps;\n\nconst UserTitle = ({ record }: any) => {\n\treturn (\n\t\t\n\t\t\t{record\n\t\t\t\t? `${record.firstName} ${record.lastName} (${record.email})`\n\t\t\t\t: ''}\n\t\t\n\t);\n};\n\nexport const UserShow = (props: IUserShowProps) => {\n\treturn (\n\t\t} actions={} {...props}>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t`${\n\t\t\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t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tversion.updatedUserDetails &&\n\t\t\t\t\t\t\t\t\tObject.keys(\n\t\t\t\t\t\t\t\t\t\tcleanUserDetails(\n\t\t\t\t\t\t\t\t\t\t\tversion.updatedUserDetails,\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t).map((data) => (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","// Import the functions you need from the SDKs you need\nimport { initializeApp } from 'firebase/app';\nimport { getAnalytics } from 'firebase/analytics';\n// TODO: Add SDKs for Firebase products that you want to use\n// https://firebase.google.com/docs/web/setup#available-libraries\n\n// Your web app's Firebase configuration\n// For Firebase JS SDK v7.20.0 and later, measurementId is optional\nconst firebaseConfig = {\n\tapiKey: process.env.REACT_APP_FIREBASE_API_KEY,\n\tauthDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN,\n\tprojectId: process.env.REACT_APP_FIREBASE_PROJECT_ID,\n\tstorageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET,\n\tmessagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID,\n\tappId: process.env.REACT_APP_FIREBASE_APP_ID,\n\tmeasurementId: process.env.REACT_APP_FIREBASE_MEASUREMENT_ID,\n};\n\n// Initialize Firebase\nconst app = initializeApp(firebaseConfig);\nexport const analytics = getAnalytics(app);\n","import { logEvent } from 'firebase/analytics';\nimport { analytics } from '../firebase/firebase.config';\nimport {\n\tIAnalyticsService,\n\tScreenViewParameters,\n} from './analytics-service.interface';\n\nexport class FirebaseAnalytics implements IAnalyticsService {\n\tconstructor() {\n\t\tconsole.log('Firebase initialised');\n\t}\n\n\tasync logEvent(\n\t\tname: string,\n\t\tparams?: { [key: string]: any } | undefined,\n\t): Promise {\n\t\treturn logEvent(analytics, name, params);\n\t}\n\n\tasync logScreenView(params: ScreenViewParameters): Promise {\n\t\treturn logEvent(analytics, 'screen_view' as string, params);\n\t}\n}\n","import { useFlags } from 'launchdarkly-react-client-sdk';\nimport { useEffect, useState } from 'react';\nimport { IAnalyticsService } from '../../../analytics/analytics-service.interface';\nimport { FirebaseAnalytics } from '../../../analytics/firebase-analytics.service';\n\nexport const useAnalyticsService = () => {\n\tconst [analyticsService, setAnalyticsService] =\n\t\tuseState(null);\n\n\tconst flags = useFlags();\n\n\tuseEffect(() => {\n\t\tif (flags.extendedAnalyticsEvents)\n\t\t\treturn setAnalyticsService(new FirebaseAnalytics());\n\t}, [flags]);\n\n\treturn analyticsService;\n};\n","import React from 'react'\n\ninterface IButtonProps\n\textends React.DetailedHTMLProps<\n\t\tReact.ButtonHTMLAttributes,\n\t\tHTMLButtonElement\n\t> {\n\tchildren: React.ReactNode;\n\tfullWidth?: boolean;\n\tclassName?: string;\n}\nconst Button = ({\n\tchildren,\n\tdisabled,\n\tfullWidth,\n\tclassName,\n\t...props\n}: IButtonProps) => {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n\nexport default Button;\n","import React from 'react';\nimport { ApolloError } from '@apollo/client';\nimport Button from '../../../components/Button';\n\ninterface IErrorMessage {\n\terror: ApolloError;\n}\nconst ErrorMessage = ({ error }: IErrorMessage) => {\n\t// Custom message for invalid tokens\n\tif (error.graphQLErrors[0].extensions?.code === 'INVALID_TOKEN')\n\t\treturn (\n\t\t\t
\n\t\t\t\t

\n\t\t\t\t\tHmmm that link didn't seem to work.
It has\n\t\t\t\t\teither expired, or is not valid. Reach out to us to request\n\t\t\t\t\ta new activation link by clicking the button below.\n\t\t\t\t

\n\t\t\t\t {\n\t\t\t\t\t\twindow.location.href =\n\t\t\t\t\t\t\t'mailto:hello@uplevyl.com?subject=Activation%20Link%20Expired&body=Hello,%0D%0A%0D%0A%20I%20would%20like%20to%20request%20a%20new%20Uplevyl%20activation%20link,%20as%20mine%20has%20expired%20or%20is%20not%20valid.';\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\tRequest a new link\n\t\t\t\t\n\t\t\t\t

\n\t\t\t\t\tActivation links are only valid for 4 days\n\t\t\t\t

\n\t\t\t
\n\t\t);\n\n\treturn (\n\t\t
\n\t\t\t

\n\t\t\t\tHmmm that didn't seem to work. Try again, or contact\n\t\t\t\tsupport if this error persists.\n\t\t\t

\n\t\t\t

{error.message}

\n\t\t
\n\t);\n};\n\nexport default ErrorMessage;\n","import { gql } from '@apollo/client';\n\nexport const GetUserInfoQuery = gql`\n\tquery getUserInfo($token: String!) {\n\t\tinvite(token: $token) {\n\t\t\tid\n\t\t\temail\n\t\t\tfirstName\n\t\t\taccessToken\n\t\t\thasUsedFreeTrial\n\t\t\tclickedActivationLink\n\t\t}\n\t}\n`;\n\nexport interface IGetUserInfoQueryVariables {\n\ttoken: string;\n}\n\nexport interface IGetUserInfoQueryData {\n\tinvite: {\n\t\tid: string;\n\t\temail: string;\n\t\tfirstName: string;\n\t\taccessToken: string;\n\t\thasUsedFreeTrial?: boolean;\n\t\tclickedActivationLink?: boolean;\n\t};\n}\n","import gql from 'graphql-tag';\n\nexport const UpdateUserMutation = gql`\n\tmutation updateUser($id: ID!, $input: UserUpdateInput!) {\n\t\tuserUpdate(id: $id, input: $input) {\n\t\t\tid\n\t\t}\n\t}\n`;\n\nexport interface IUpdateUserMutationVariables {\n\tid: string;\n\tinput: {\n\t\tpassword?: string;\n\t\tclickedActivationLink?: boolean;\n\t\tcurrentPassword?: string;\n\t\ttermsAgreed?: boolean;\n\t};\n}\n\nexport interface IUpdateUserMutationData {\n\tuserUpdate: {\n\t\tid: string;\n\t};\n}\n","import React, { memo, useState } from 'react';\nimport { Visibility, VisibilityOff } from \"@mui/icons-material\";\n\ninterface ICreateAccount {\n\tdata: any;\n\thandleSubmit: (password: string) => any;\n\terrorMessage: string;\n}\nconst CreateAccount = ({data, handleSubmit, errorMessage}: ICreateAccount) => {\n\tconst [formData, setFormData] = useState({\n\t\temail: data.email,\n\t\tcurrentPassword: '',\n\t});\n\tconst [errors, setErrors]: any = useState({});\n\tconst [showPassword, setShowPassword] = useState(false);\n\n\tconst handleInputChange = (e) => {\n\t\tconst { name, value } = e.target;\n\t\tsetFormData({ ...formData, [name]: value });\n\t};\n\n\tconst validateForm = () => {\n\t\tconst newErrors: any = {};\n\n\t\t// Email Validation\n\t\tif (!/\\S+@\\S+\\.\\S+/.test(formData.email)) {\n\t\t\tnewErrors.email = 'Please enter a valid email address.';\n\t\t}\n\n\t\t// Password Validation (minimum 8 characters)\n\t\tif (!formData.currentPassword || formData.currentPassword.length < 8) {\n\t\t\tnewErrors.currentPassword =\n\t\t\t\t'Password must be at least 8 characters long.';\n\t\t}\n\n\t\tsetErrors(newErrors);\n\t\treturn Object.keys(newErrors).length === 0;\n\t};\n\n\tconst handleSubmitPassword = (e) => {\n\t\te.preventDefault();\n\t\tif (validateForm()) {\n\t\t\t// Proceed with form submission\n\t\t\thandleSubmit(formData.currentPassword);\n\t\t}\n\t};\n\tconst togglePasswordVisibility = () => {\n\t\tsetShowPassword((prev) => !prev);\n\t };\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

\n\t\t\t\t\t\tCreate Account\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{/* Email Address Field */}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tEmail Address\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{errors.email && (\n\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t{errors.email}\n\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\t{/* Label */}\n\t\t\t\t\t\tPassword\n\n\t\t\t\t\t\t{/* Password Input */}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{/* Eye Icon */}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{showPassword ? : }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{errors.currentPassword && (\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t{errors.currentPassword}\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{/* Submit Button */}\n\t\t\t\t\t\t

{errorMessage}

\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tContinue\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t);\n};\nexport default memo(CreateAccount);\n","\nimport gql from 'graphql-tag';\nimport * as Urql from \"urql\";\n\n// #region ActivateUserAccount starts here\nexport const ACTIVATE_USER_ACCOUNT = gql`mutation ActivateUserAccount($token: String!, $email: String!, $password: String!) { userActivateAccount(token: $token, email: $email, password: $password) { user { id email status } accessToken } }`;\nexport const useActivateUserAccount = () => {\n return Urql.useMutation(ACTIVATE_USER_ACCOUNT);\n }\n// #endregion ActivateUserAccount end here\n\n","import React, { useEffect, useState, } from 'react';\nimport { useNavigate, useParams } from 'react-router-dom';\nimport { useAnalyticsService } from '../Intake/hooks/useAnalyticsService';\nimport ErrorMessage from './components/ErrorMessage';\nimport { useGetUserInfoQuery } from './hooks/useGetUserInfoQuery';\nimport { useUpdateUserMutation } from './hooks/useUpdateUserMutation';\nimport CreateAccount from './CreateAccount';\nimport { useActivateUserAccount } from './graphql/userGQL';\n\nconst ActivatePage = () => {\n\tconst navigate = useNavigate();\n\tconst analytics = useAnalyticsService();\n\tconst { token } = useParams<{ token: string }>();\n\tconst { data, error, loading } = useGetUserInfoQuery({\n\t\tvariables: {\n\t\t\ttoken,\n\t\t},\n\t});\n\tconst [updateUser] =\n\t\tuseUpdateUserMutation();\n\tconst [{ error: activateError }, activateUser] = useActivateUserAccount();\n\n\t// const [termsAgreed, setTermsAgreed] = useState(false);\n\tconst [errorMessage, setErrorMessage] = useState();\n\n\n\tconst setClickedLink = async () => {\n\t\tif (!data?.invite.id) return;\n\t\tawait updateUser({\n\t\t\tvariables: {\n\t\t\t\tid: data.invite.id,\n\t\t\t\tinput: {\n\t\t\t\t\tclickedActivationLink: true,\n\t\t\t\t},\n\t\t\t},\n\t\t\tcontext: {\n\t\t\t\theaders: {\n\t\t\t\t\tAuthorization: `Bearer ${data?.invite.accessToken}`,\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t};\n\n\t// If user has not been registered as clicking on the link in email, register here\n\tuseEffect(() => {\n\t\tif (data?.invite.id && !data?.invite.clickedActivationLink) {\n\t\t\tsetClickedLink();\n\t\t}\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [data]);\n\n\tuseEffect(() => {\n\t\tconst sendEvent = async () => {\n\t\t\tawait analytics.logScreenView({\n\t\t\t\tscreen_name: 'password creation',\n\t\t\t});\n\t\t};\n\t\tsendEvent();\n\t}, [analytics]);\n\n\tuseEffect(() => {\n\t\tsetTimeout(() => {\n\t\t\tconst iframe: any = document.querySelector(\n\t\t\t\t'iframe[style*=\"z-index: 2147483647\"]',\n\t\t\t);\n\t\t\tif (iframe) {\n\t\t\t\tiframe.style.display = 'none';\n\t\t\t}\n\t\t}, 4000);\n\t\tlocalStorage.setItem('paymentToken', token)\n\t}, [token]);\n\n\t/**\n\t * Set a user's password when form is submitted\n\t */\n\tconst handleSubmit = async (password: string) => {\n\t\tsetErrorMessage(undefined);\n\n\t\ttry {\n\t\t\tconst res: any = await activateUser({\n\t\t\t\ttoken,\n\t\t\t\temail: data?.invite?.email,\n\t\t\t\tpassword\n\t\t\t});\n\t\t\tif (res.data?.userActivateAccount) { navigate('/payment-redirect') }\n\t\t} catch (err) {\n\t\t\tif (\n\t\t\t\tactivateError &&\n\t\t\t\tactivateError.graphQLErrors[0].extensions?.code === 'BAD_PASSWORD'\n\t\t\t) {\n\t\t\t\tconsole.log('update')\n\t\t\t} else {\n\t\t\t\tsetErrorMessage(\n\t\t\t\t\tactivateError?.graphQLErrors[0].message ??\n\t\t\t\t\t'An unknown error occured',\n\t\t\t\t);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (!activateError)\n\t\t\t\tconsole.log(activateError)\n\t\t}\n\t};\n\t// \tgetCheckout({\n\t// \t\tvariables: {\n\t// \t\t\ttype: UserCheckoutType.YEARLY,\n\t// \t\t},\n\t// \t\tcontext: {\n\t// \t\t\theaders: {\n\t// \t\t\t\tAuthorization: `Bearer ${data.invite.accessToken}`,\n\t// \t\t\t},\n\t// \t\t},\n\t// \t}).then((res)=> {\n\t// \t\tif(res?.error) {\n\t// \t\t\tsetErrorMessage(res.errors?.[0]?.extensions?.message?.[0])\n\t// \t\t}\n\t// \t});\n\n\t// };\n\n\treturn (\n\t\t<>\n\t\t\t{error ? (\n\t\t\t\t\n\t\t\t) : loading || !data ? (\n\t\t\t\t

\n\t\t\t\t\tWe're just fetching your information, one\n\t\t\t\t\tsec...\n\t\t\t\t

\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t)}\n\t\t\n\t);\n};\n\nexport default ActivatePage;\n","import { QueryHookOptions, useQuery } from '@apollo/client';\nimport {\n\tGetUserInfoQuery,\n\tIGetUserInfoQueryData,\n\tIGetUserInfoQueryVariables,\n} from '../graphql/queries';\n\n/**\n * Get user information from invite token\n * @param options\n * @returns\n */\nexport const useGetUserInfoQuery = (\n\toptions?: QueryHookOptions<\n\t\tIGetUserInfoQueryData,\n\t\tIGetUserInfoQueryVariables\n\t>,\n) =>\n\tuseQuery(\n\t\tGetUserInfoQuery,\n\t\toptions,\n\t);\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tIUpdateUserMutationData,\n\tIUpdateUserMutationVariables,\n\tUpdateUserMutation,\n} from '../graphql/mutations';\n\n/**\n * Update a user's details\n * @param options\n * @returns Mutation hook\n */\nexport const useUpdateUserMutation = (\n\toptions?: MutationHookOptions<\n\t\tIUpdateUserMutationData,\n\t\tIUpdateUserMutationVariables\n\t>,\n) =>\n\tuseMutation(\n\t\tUpdateUserMutation,\n\t);\n","import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';\nimport React from 'react';\n\ninterface IClientWrapper {\n\tchildren: React.ReactNode;\n}\n\n/**\n * Provide a new, basic implementation of Apollo Client outside RA provided client\n * @param param0 Children\n * @returns Wrapper component\n */\nconst ClientWrapper = ({ children }: IClientWrapper) => {\n\tconst client = new ApolloClient({\n\t\turi: process.env.REACT_APP_API,\n\t\tcache: new InMemoryCache(),\n\t});\n\n\treturn {children};\n};\n\nexport default ClientWrapper;\n","export default __webpack_public_path__ + \"static/media/logo.f5af7ebe.png\";","import React, { useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport Logo from './logo.png';\n\ninterface IArticle {\n\tid: string;\n\ttitle: string;\n\tteaser: string;\n\tpublisher: string;\n\tbody: string;\n\timage: string;\n\tcreated: Date;\n}\n\ninterface IArticleResponse {\n\tdata?: {\n\t\tarticle?: IArticle | null;\n\t};\n}\n\nconst PublicArticle = () => {\n\tconst { id } = useParams<{ id?: string }>();\n\tconst [article, setArticle] = useState(null);\n\tconst [loading, setLoading] = useState(true);\n\n\tuseEffect(() => {\n\t\tlet isMounted = true;\n\t\tconst getArticle = async () => {\n\t\t\tsetLoading(true);\n\n\t\t\tconst res = await fetch(process.env.REACT_APP_API ?? '', {\n\t\t\t\theaders: {\n\t\t\t\t\taccept: '*/*',\n\t\t\t\t\t'content-type': 'application/json',\n\t\t\t\t\t'sec-fetch-mode': 'cors',\n\t\t\t\t\t'sec-fetch-site': 'same-origin',\n\t\t\t\t},\n\t\t\t\treferrer: process.env.REACT_APP_API ?? '',\n\t\t\t\treferrerPolicy: 'strict-origin-when-cross-origin',\n\t\t\t\tbody: `{\n \"operationName\":\"getArticle\",\n \"variables\": {\n \"id\":\"${id}\"\n },\n \"query\": \"query getArticle($id: String!) {\\\\n article(id: $id) {\\\\n id\\\\n title\\\\n teaser\\\\n body\\\\n created\\\\n image\\\\n publisher\\\\n }\\\\n}\\\\n\"}`,\n\t\t\t\tmethod: 'POST',\n\t\t\t\tmode: 'cors',\n\t\t\t\tcredentials: 'include',\n\t\t\t});\n\t\t\tconst data: IArticleResponse = await res.json();\n\n\t\t\tif (!isMounted) return;\n\n\t\t\tif (data.data?.article) {\n\t\t\t\tsetArticle(data.data.article);\n\t\t\t}\n\n\t\t\tsetLoading(false);\n\t\t};\n\t\tgetArticle();\n\n\t\treturn () => {\n\t\t\tisMounted = false;\n\t\t};\n\t}, [id]);\n\n\tif (loading) return

Loading...

;\n\n\tif (!article) return

Article not found

;\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t

{article.title}

\n\t\t\t\t\n\t\t\t\t\t{new Date(article.created).toLocaleString()} |{' '}\n\t\t\t\t\t{article.publisher}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t{article.teaser}\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default PublicArticle;\n","/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\nimport React, { useEffect } from 'react';\n// import Header from '../../components/Header';\nimport { useAnalyticsService } from '../Intake/hooks/useAnalyticsService';\n\nconst BillingSuccess = () => {\n\tconst analytics = useAnalyticsService();\n\tuseEffect(() => {\n\t\tconst sendEvent = async () => {\n\t\t\tawait analytics?.logScreenView({\n\t\t\t\tscreen_name: 'membership confirmed',\n\t\t\t});\n\t\t};\n\t\tsendEvent();\n\t}, [analytics]);\n\n\tuseEffect(() => {\n\t\tsetTimeout(() => {\n\t\t\tconst iframe: any = document.querySelector(\n\t\t\t\t'iframe[style*=\"z-index: 2147483647\"]',\n\t\t\t);\n\t\t\tif (iframe) {\n\t\t\t\tiframe.style.display = 'none';\n\t\t\t}\n\t\t}, 4000);\n\t}, []);\n\n\treturn (\n\t\t<>\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\tThank you so much!\n\t\t\t\t\t\t

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

\n\t\t\t\t\t\t\tYou’re in! We look forward to welcome you to the Future Forward Accelerator in January 2025.\n\t\t\t\t\t\t\tOver the next few weeks, we will connect with you to share exciting pre-launch activities, program highlights, and curated resources.\n\t\t\t\t\t\t\tPlease login to Uplevyl{' '}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\there\n\t\t\t\t\t\t\t{' '}\n\t\t\t\t\t\t\tto start your journey.\n\t\t\t\t\t\t

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

\n\t\t\t\t\t\t\tFor any questions,\n\t\t\t\t\t\t\tplease don’t hesitate to reach us at eva@uplevyl.com.\n\t\t\t\t\t\t

\n\t\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default BillingSuccess;\n","import React from 'react';\n\ntype ContainerProps = {\n\tchildren: React.ReactNode;\n\tlarge?: boolean;\n\ticon?: 'book' | 'jumping' | 'sofa';\n};\n\nconst Container = ({ children, large, icon = 'book' }: ContainerProps) => {\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\tRedesigning the World for Women\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default Container;\n","import React from 'react';\nimport Container from '../../components/Container';\n\nconst BillingError = () => {\n\treturn (\n\t\t\n\t\t\t

Payment Cancelled

\n\t\t\t

\n\t\t\t\tSomething went wrong on your end before being able to complete\n\t\t\t\tthe membership\n\t\t\t

\n\t\t\t

\n\t\t\t\tPerhaps you'd like to{' '}\n\t\t\t\t\n\t\t\t\t\ttry again\n\t\t\t\t\n\t\t\t\t?\n\t\t\t

\n\t\t
\n\t);\n};\n\nexport default BillingError;\n","import React from 'react';\nimport { RegisterOptions, UseFormRegister } from 'react-hook-form';\nimport { InputName } from '../public/Intake/intake.data';\nimport { IntakeFormData } from '../public/Intake/IntakePage';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface IInputProps\n\textends React.DetailedHTMLProps<\n\t\tReact.InputHTMLAttributes,\n\t\tHTMLInputElement\n\t> {\n\tlabel?: string;\n\tclassName?: string;\n\tfullWidth?: boolean;\n\tregister?: UseFormRegister;\n\tname?: InputName;\n\trefIndex?: number;\n}\n\nexport type InputValidations = { [K in keyof T]: RegisterOptions };\ninterface IInputProps\n\textends React.DetailedHTMLProps<\n\t\tReact.InputHTMLAttributes,\n\t\tHTMLInputElement\n\t> {\n\tname?: InputName;\n}\n\nconst Input = ({\n\tlabel,\n\tfullWidth,\n\tchildren,\n\tclassName,\n\tdisabled,\n\tregister,\n\tname,\n\trefIndex,\n\t...props\n}: IInputProps) => {\n\tconst registeredFieldProps = name && register && { ...register(name) };\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{label}\n\t\t\t\n\t\t\t\n\n\t\t\n\t);\n};\n\nexport default Input;\n","import React, { useState } from 'react';\n\ntype IntakeContextType = {\n\tcurrentIndex: number;\n\tsetCurrentIndex: React.Dispatch>;\n};\n\n/* eslint-disable */\nexport const IntakeContext = React.createContext({\n\tcurrentIndex: 0,\n\tsetCurrentIndex: () => {},\n});\n\n/* eslint-enable */\ntype IntakeProviderProps = { children: React.ReactNode };\n\nconst IntakeProvider = ({ children }: IntakeProviderProps) => {\n\tconst [currentIndex, setCurrentIndex] = useState(0);\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n\nexport default IntakeProvider;\n","\nexport type InputName =\n\t| 'firstName'\n\t| 'lastName'\n\t| 'email'\n\t| 'phone'\n\t| 'highestEducationLevel'\n\t| 'linkedInProfile'\n\t| 'socialHandle'\n\t| 'generation'\n\t| 'companyAnnualRevenue'\n\t| 'howCanUplevylElevateYou'\n\t| 'companyName'\n\t| 'currentTitle'\n\t| 'aiSkillsRatings'\n\t| 'contributeViaWorkshops'\n\t| 'additionalInterests'\n\t| 'location'\n\t| 'digital'\n\t| 'motivations'\n\t| 'digitalImpactVision'\n\t| 'hearAboutProgram'\n\t| 'aiTopicsInterest';\n\nexport type IntakeQuestion = {\n\ttype: 'text' | 'text1' | 'input' | 'choices' | 'phone' | 'role' | 'revenue' | 'company' | 'rating' | 'hybrid' | 'yesno' | 'futureforward' | 'multi-select';\n\tlabel: string | string[];\n\tinputName?: InputName;\n\tdescription: string[];\n\tbutton?: string;\n\tchoices?: string[];\n\tsvg?: string;\n\tmin?: number;\n\trequired: boolean;\n\tinjectVariable?: {\n\t\tfrom: InputName;\n\t\tto: string;\n\t};\n};\n\nconst data: IntakeQuestion[] = [\n\t// {\n\t// \ttype: 'text',\n\t// \tlabel: 'Don’t Get Left Behind in the Digital Age: Apply To Join Future Forward Now',\n\t// \tdescription: [\n\t// \t\t'Are you prepared for the rapid changes reshaping the business landscape?',\n\t// \t\t'• According to a study by McKinsey, 92% of organizations consider digital transformation a top priority.',\n\t// \t\t'• Analysis by the National Skills Coalition (NSC) in partnership with the Federal Reserve Bank of Atlanta finds that 92% of jobs analyzed require digital skills.',\n\t// \t\t'• A survey conducted by Harvard Business Review found that 78% of respondents believe that digital leadership skills are crucial for navigating the complexities of a rapidly evolving business environment.',\n\t// \t\t'The demand for leaders equipped with digital acumen has never been higher. The next five years will define which leaders succeed and which are left behind.',\n\t// \t\t'Don’t wait until you’re sidelined - act now to protect your future.',\n\t// \t\t'Join Future Forward—An Exclusive Opportunity from Uplevyl',\n\t// \t\t'Future Forward, brought to you by Uplevyl is a selective membership program designed to give you the skills, insights, and network you need to lead in the digital age. Now is the time to invest in yourself to prevent career stagnation and avoid missing out on the senior and boardroom opportunities that are now reserved for those with digital acumen.',\n\t// \t\t'Act Now: Complete Your Membership Application',\n\t// \t\t'The application process is straightforward, private, and secure.',\n\t// \t\t'However, spaces are limited, and this opportunity won’t last. Submitting an application does not guarantee membership, nor are you obligated to join if accepted. You will receive an email regarding your application status within 5-7 business days.',\n\t// \t\t'If your application is successful, you will receive sign-up and payment details.',\n\t// \t\t'Don’t get left behind. AI is hurtling towards becoming a $20 trillion-sized economy, and companies are shifting rapidly towards digital-first strategies. Seize this chance to elevate your career and ensure your place as a leader in the new digital age.',\n\t// \t],\n\t// \tbutton: 'Continue',\n\t// \trequired: false,\n\t// \tsvg: '/assets/intake/intro.png',\n\t// },\n\n\t// {\n\t// \ttype: 'text',\n\t// \tlabel: 'The next step is to complete our membership application form (don’t worry—five minutes tops).',\n\t// \tdescription: [\n\t// \t\t'Please note, we have the highest standards of privacy and encryption to protect your personal information. Knowing a little bit about you will help us personalize content just for you.',\n\t// \t\t'Ready to Uplevyl? Let’s get started.',\n\t// \t],\n\t// \tbutton: 'Begin Application',\n\t// \trequired: true,\n\t// },\n\t{\n\t\ttype: 'hybrid',\n\t\tlabel: ['Now that AI is here, do any of these concern you?'\n\t\t],\n\t\tinputName: 'motivations',\n\t\tdescription: [''],\n\t\tchoices: [\n\t\t\t'My skillset may start to become irrelevant ',\n\t\t\t'I may fall behind and put my job at risk ',\n\t\t\t'I may start to miss out on salary increases ',\n\t\t\t'I may miss out on promotions ',\n\t\t\t'My status/gravitas in the organization may get diminished ',\n\t\t\t'I may be less likely to get a seat on a company board ',\n\t\t\t'All of the above ',\n\t\t],\n\t\trequired: true\n\t},\n\t{\n\t\ttype: 'hybrid',\n\t\tlabel: ['How do you envision using your strengthened digital acumen to impact your ',\n\t\t\t'organization, community or industry?'\n\t\t],\n\t\tinputName: 'digitalImpactVision',\n\t\tdescription: [''],\n\t\tchoices: [\n\t\t\t'Drive innovation and efficiency',\n\t\t\t'Shape ethical AI practices that foster inclusivity',\n\t\t\t'Bridge technology and people',\n\t\t\t'Champion digital literacy within my industry ',\n\t\t\t'Lead my organization toward a digital-first mindset',\n\t\t\t'Inspire and support other women to embrace digital tools',\n\t\t\t'Other'\n\t\t],\n\t\trequired: true\n\t},\n\t{\n\t\ttype: 'yesno',\n\t\tlabel: ['Do you like the idea of contributing, learning, and networking via virtual',\n\t\t\t'workshops and chat discussions with other senior women leaders in the',\n\t\t\t'community?'\n\t\t],\n\t\tinputName: 'contributeViaWorkshops',\n\t\tdescription: [''],\n\t\tbutton: 'Next',\n\t\trequired: true\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'We’re excited to get to know you.',\n\t\t\t'Let’s get started! What’s your first name?',\n\t\t],\n\t\tinputName: 'firstName',\n\t\tsvg: '/assets/intake/book.png',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t\"Welcome, {FIRST NAME}! What's your last name?\",\n\t\t],\n\t\tinputName: 'lastName',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t\tinjectVariable: {\n\t\t\tfrom: 'firstName',\n\t\t\tto: '{FIRST NAME}',\n\t\t},\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: 'What’s the best email to reach you?*',\n\t\tinputName: 'email',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'phone',\n\t\tlabel: 'What’s the best contact number for you?*',\n\t\tsvg: '/assets/intake/pc.png',\n\t\tinputName: 'phone',\n\t\tdescription: [\n\t\t\t'This will help prevent fraud & helps us verify you as a valid user',\n\t\t],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'What is your location?',\n\t\t],\n\t\tinputName: 'location',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'What is your current job title or role?',\n\t\t],\n\t\tinputName: 'currentTitle',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'What is your current company name?',\n\t\t],\n\t\tinputName: 'companyName',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'choices',\n\t\tlabel: \"What's the highest level of education you've achieved?*\",\n\t\tinputName: 'highestEducationLevel',\n\t\tdescription: [],\n\t\tchoices: [\n\t\t\t'High School',\n\t\t\t\"Associate's Degree\",\n\t\t\t\"Bachelor's Degree\",\n\t\t\t\"Master's Degree\",\n\t\t\t'Doctorate',\n\t\t],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'How did you hear about our Future Forward program? ',\n\t\t],\n\t\tinputName: 'hearAboutProgram',\n\t\tdescription: [],\n\t\t// choices: [\n\t\t// \t'Linkedin',\n\t\t// \t\"Facebook\",\n\t\t// \t\"Instagram\",\n\t\t// \t\"Uplevyl Email Newsletter\",\n\t\t// \t'Partner Email Newsletter',\n\t\t// \t'Referral',\n\t\t// \t'Search Engine',\n\t\t// ],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'rating',\n\t\tlabel: ['Please rate your current familiarity with the following AI-related skills',\n\t\t\t'(1-5, with 5 being advanced):'\n\t\t],\n\t\tinputName: 'aiSkillsRatings',\n\t\tdescription: [''],\n\t\tchoices: [\n\t\t\t'Understanding AI Concepts',\n\t\t\t'Using AI Tools (e.g., chatbots, data analytics)',\n\t\t\t'Data Analysis Techniques',\n\t\t\t'Data Privacy and Ethics',\n\t\t\t'Digital Communication Platforms'\n\t\t],\n\t\trequired: true\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'Which specific AI-related topics are you interested in learning more about? ',\n\t\t\t'(e.g. AI concepts, AI tools, Data Literacy, AI and Data ethics, Leadership in',\n\t\t\t'the AI age, etc.)?'\n\t\t],\n\t\tinputName: 'aiTopicsInterest',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'Is there anything else you would like us to know about your interests or',\n\t\t\t'background? ',\n\t\t],\n\t\tinputName: 'additionalInterests',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: true,\n\t},\n\t{\n\t\ttype: 'input',\n\t\tlabel: [\n\t\t\t'Please share your LinkedIn profile. (optional)', 'Last question! Well done, you!!'\n\t\t],\n\t\tinputName: 'linkedInProfile',\n\t\tdescription: [],\n\t\tbutton: 'Next',\n\t\trequired: false,\n\t},\n\t// {\n\t// \ttype: 'input',\n\t// \tlabel: [\n\t// \t\t'What is your Instagram and / or Twitter handle',\n\t// \t\t'(portfolio website)?',\n\t// \t],\n\t// \tinputName: 'socialHandle',\n\t// \tdescription: [],\n\t// \tbutton: 'Next',\n\t// \trequired: true,\n\t// },\n\t// {\n\t// \ttype: 'input',\n\t// \tlabel: [\n\t// \t\t'How do you envision using your digital skills to impact your organization,',\n\t// \t\t'community or industry?'\n\t// \t],\n\t// \tinputName: 'digital',\n\t// \tdescription: [],\n\t// \tbutton: 'Next',\n\t// \trequired: true,\n\t// },\n\n\t{\n\t\ttype: 'text1',\n\t\tlabel: [\n\t\t\t'Thank you for being proactive and taking action.',\n\t\t\t'We are looking forward to your application.',\n\t\t],\n\t\tdescription: [],\n\t\trequired: false,\n\t},\n];\n\nexport default data;\n","import { useContext } from 'react';\nimport { IntakeContext } from '../intake.provider';\nimport sections from '../intake.data';\n\nconst useScroll = () => {\n\tconst { setCurrentIndex } = useContext(IntakeContext);\n\n\tconst scroll = (direction: 'down' | 'up', index: number) => {\n\t\tif (index === 0 && direction === 'up') return;\n\t\tif (index === sections.length - 1 && direction === 'down') return;\n\n\t\tconst elementIndex =\n\t\t\tdirection === 'down' ? `${index + 1}` : `${index - 1}`;\n\t\tconst element = document.getElementById(elementIndex);\n\t\tif (!element) return;\n\t\tconst pos = element.getBoundingClientRect().top + window.pageYOffset;\n\n\t\twindow.scrollTo({\n\t\t\ttop: pos,\n\t\t\tbehavior: 'smooth',\n\t\t});\n\n\t\tconst input = document.getElementById(`input-${elementIndex}`);\n\t\tsetTimeout(() => {\n\t\t\tif (input) input.focus();\n\t\t}, 500);\n\n\t\tsetCurrentIndex(direction === 'down' ? index + 1 : index - 1);\n\t};\n\n\tconst resetScroll = () => {\n\t\tconst element = document.getElementById(`${0}`);\n\t\tif (!element) return;\n\t\tconst topPos = element.getBoundingClientRect().top + window.pageYOffset;\n\n\t\twindow.onbeforeunload = () => {\n\t\t\twindow.scrollTo({\n\t\t\t\ttop: topPos,\n\t\t\t});\n\t\t};\n\t\tsetCurrentIndex(0);\n\n\t\tconst body = document.getElementsByTagName('body')[0];\n\t\tbody.classList.add('overflow');\n\n\t\tdocument.addEventListener('keypress', (e) => {\n\t\t\tif (e.key === 'Enter') e.preventDefault();\n\t\t});\n\t};\n\n\treturn {\n\t\tscroll,\n\t\tresetScroll,\n\t};\n};\n\nexport default useScroll;\n","import React, { useContext, useState } from 'react';\nimport { UseFormSetValue } from 'react-hook-form';\nimport useScroll from '../../hooks/useScroll';\nimport { InputName } from '../../intake.data';\nimport { IntakeContext } from '../../intake.provider';\nimport { IntakeFormData } from '../../IntakePage';\nimport Button from '../../../../components/Button';\n\n// Base button component with gradient support\nconst GradientButton = ({ \n children, \n isSelected, \n onClick, \n className = '' \n}) => (\n \n {children}\n \n);\n\nconst Choices = ({ \n inputName, \n choices, \n setValue \n}: {\n inputName: InputName;\n choices: string[];\n setValue: UseFormSetValue;\n}) => {\n const { currentIndex } = useContext(IntakeContext);\n const { scroll } = useScroll();\n const [selectedChoice, setSelectedChoice] = useState(null);\n\n const handleChoiceClick = (choice: string) => {\n if (inputName) {\n setSelectedChoice(choice);\n setValue(inputName, choice);\n scroll('down', currentIndex);\n }\n };\n\n const handleNext = (event: React.MouseEvent): void => {\n if (selectedChoice) {\n scroll('down', currentIndex);\n }\n };\n\n return (\n
\n {choices.map((choice) => (\n handleChoiceClick(choice)}\n >\n {choice}\n \n ))}\n
\n \n Next\n \n
\n
\n );\n};\n\nexport default Choices;\n","import React from 'react';\n\ntype DescriptionProps = {\n description: string[];\n type?: string; // Add type from parent section\n};\n\nconst Description = ({ description, type }: DescriptionProps) => {\n if (description.length === 0) return null;\n\n const className = type === 'phone' \n ? 'lg:text-xl text-lg mb-10 text-gray-700 text-left'\n : 'lg:text-xl text-lg my-6 text-gray-700 text-center';\n\n return (\n
\n {description.map((line) => (\n

\n {line}\n

\n ))}\n
\n );\n};\n\nexport default Description;","import React from 'react';\nimport { UseFormGetValues } from 'react-hook-form';\nimport { IntakeQuestion } from '../intake.data';\nimport { IntakeFormData } from '../IntakePage';\n\ntype IntakeLabelProps = {\n\tsection: IntakeQuestion;\n\tgetValues: UseFormGetValues;\n};\n\nconst IntakeLabel = ({ section, getValues }: IntakeLabelProps) => {\n\tconst isRequired = section.required;\n\n\tconst renderLabel = (label: string): string => {\n\t\tif (section.injectVariable) {\n\t\t\tconst newLabel = label.replace(\n\t\t\t\tsection.injectVariable.to,\n\t\t\t\tgetValues()[section.injectVariable.from] as any,\n\t\t\t);\n\t\t\treturn newLabel;\n\t\t}\n\t\treturn label;\n\t};\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t{Array.isArray(section.label) ? (\n\t\t\t\t\tsection.label.map((lab, i) => (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{i === section.label.length - 1 && isRequired ? ( // Only render asterisk on the last line\n\t\t\t\t\t\t\t\t *\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t
\n\n\t\t\t\t\t))\n\t\t\t\t) : (\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t{isRequired && (\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t)}\n\t\t\t\t\t
\n\t\t\t\t)}\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default IntakeLabel;\n","import React, { useContext } from 'react';\nimport { UseFormSetValue } from 'react-hook-form';\nimport { uniqueId } from 'lodash';\nimport useScroll from '../../hooks/useScroll';\nimport { InputName } from '../../intake.data';\nimport { IntakeContext } from '../../intake.provider';\nimport { IntakeFormData } from '../../IntakePage';\nimport Button from '../../../../components/Button';\n\ntype SkillRatingProps = {\n inputName: InputName;\n choices: string[];\n setValue: UseFormSetValue;\n};\n\nconst SkillRating = ({ inputName, choices, setValue }: SkillRatingProps) => {\n const { currentIndex } = useContext(IntakeContext);\n const { scroll } = useScroll();\n const [ratings, setRatings] = React.useState(new Array(choices.length).fill(0));\n\n const handleRatingChange = (index: number, rating: number) => {\n const updatedRatings = [...ratings];\n updatedRatings[index] = rating;\n setRatings(updatedRatings);\n };\n\n const handleNext = () => {\n setValue(inputName as keyof IntakeFormData, ratings);\n scroll('down', currentIndex);\n };\n\n const isAllRated = ratings.every((rating) => rating > 0);\n\n return (\n
\n \n\n {/* Rating Headers */}\n
\n
\n
\n {[1, 2, 3, 4, 5].map((rating) => (\n
\n {rating}\n
\n ))}\n
\n
\n\n {/* Skill Rating Choices */}\n
\n {choices.map((skill, index) => (\n
\n
\n \n {skill}\n
\n
\n {[1, 2, 3, 4, 5].map((rating) => (\n
\n handleRatingChange(index, rating)}\n className=\"custom-radio\"\n />\n
\n ))}\n
\n
\n ))}\n
\n\n {/* Button - Now always visible but conditionally disabled */}\n
\n \n Next\n \n
\n
\n );\n};\n\nexport default SkillRating;","import React, { useContext, useState } from 'react';\nimport { UseFormSetValue } from 'react-hook-form';\nimport { uniqueId } from 'lodash';\nimport useScroll from '../../hooks/useScroll';\nimport { InputName } from '../../intake.data';\nimport { IntakeContext } from '../../intake.provider';\nimport { IntakeFormData } from '../../IntakePage';\nimport Button from '../../../../components/Button';\n\ntype HybridSelectionProps = {\n inputName: InputName;\n choices: string[];\n setValue: UseFormSetValue;\n allowMultiple: boolean;\n};\n\nconst HybridSelection = ({ inputName, choices, setValue, allowMultiple }: HybridSelectionProps) => {\n const { currentIndex } = useContext(IntakeContext);\n const { scroll } = useScroll();\n const [selectedOptions, setSelectedOptions] = useState([]);\n\n const handleOptionChange = (choice: string) => {\n setSelectedOptions(prev => {\n let newSelection: string[];\n if (allowMultiple) {\n newSelection = prev.includes(choice)\n ? prev.filter(item => item !== choice)\n : [...prev, choice];\n } else {\n newSelection = [choice];\n }\n \n setValue(inputName as keyof IntakeFormData, newSelection);\n return newSelection;\n });\n };\n\n const handleNext = () => {\n if (inputName && selectedOptions.length > 0) {\n setValue(inputName as keyof IntakeFormData, allowMultiple ? selectedOptions : selectedOptions[0]);\n scroll('down', currentIndex);\n }\n };\n\n return (\n
\n \n\n
\n {choices.map((choice) => (\n
\n handleOptionChange(choice)}\n className=\"custom-radio\"\n />\n \n
\n ))}\n
\n\n
\n \n Next\n \n
\n
\n );\n};\n\nexport default HybridSelection;","import React, {useState } from 'react';\nimport { UseFormSetValue } from 'react-hook-form';\n// import useScroll from '../../hooks/useScroll';\nimport { InputName } from '../../intake.data';\n// import { IntakeContext } from '../../intake.provider';\nimport { IntakeFormData } from '../../IntakePage';\n\ntype YesNoAvailabilityProps = {\n inputName: InputName;\n setValue: UseFormSetValue;\n};\n\nconst YesNoAvailability = ({ inputName, setValue }: YesNoAvailabilityProps) => {\n // const { currentIndex } = useContext(IntakeContext);\n // const { scroll } = useScroll();\n const [selectedOption, setSelectedOption] = useState(null);\n // const [availability, setAvailability] = useState('');\n\n const handleOptionChange = (choice: string) => {\n const isYes = choice === 'Yes';\n setSelectedOption(isYes);\n setValue(inputName, isYes);\n // scroll('down', currentIndex); // Removed scroll on option change\n };\n\n // const handleAvailabilityChange = (e: React.ChangeEvent) => {\n // setAvailability(e.target.value);\n // };\n\n // useEffect(() => {\n // if (selectedOption) {\n // // Scroll to next question when an option is selected\n // scroll();\n // }\n // }, [selectedOption, currentIndex, setValue, inputName, availability, scroll]);\n\n // useEffect(() => {\n // if (selectedOption === 'Yes') {\n // setValue(inputName as string, {\n // selection: selectedOption,\n // availability,\n // });\n // }\n // }, [availability, selectedOption, setValue, inputName]);\n\n return (\n
\n \n\n
\n
\n handleOptionChange('Yes')}\n className=\"custom-radio\"\n />\n {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}\n \n
\n
\n handleOptionChange('No')}\n className=\"custom-radio\"\n />\n {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}\n \n
\n
\n {/* {selectedOption === 'Yes' && (\n
\n

• If yes, please specify your availability:

\n { e.target.style.borderBottomColor = 'black'; }}\n onBlur={(e) => { e.target.style.borderBottomColor = '' }}\n />\n
\n )} */}\n
\n );\n};\n\nexport default YesNoAvailability;\n","import React from 'react';\nimport Button from '../../../../components/Button';\n\ntype ConsentSectionProps = {\n label: string[];\n onSubmit: () => void;\n};\n\nconst ConsentSection = ({ label, onSubmit }: ConsentSectionProps) => {\n const handleSubmit = () => {\n onSubmit();\n };\n\n return (\n
{/* Applied negative margin */}\n
\n

\n
\n {label.map((line) => (\n \n {line}\n \n ))}\n
\n

\n
\n\n
\n \n Submit Application\n \n
\n
\n );\n};\n\nexport default ConsentSection;","import React, { useEffect, useState } from 'react';\nimport {\n\tUseFormGetValues,\n\tUseFormRegister,\n\tUseFormSetValue,\n\tUseFormTrigger,\n} from 'react-hook-form';\nimport PhoneInput from 'react-phone-number-input';\nimport 'react-phone-number-input/style.css';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport useScroll from '../hooks/useScroll';\nimport { IntakeQuestion } from '../intake.data';\nimport { IntakeFormData } from '../IntakePage';\nimport Choices from './content/Choices';\nimport Description from './content/Description';\nimport IntakeLabel from './IntakeLabel';\nimport SkillRating from './content/MultiSelect';\nimport HybridSelection from './content/HybridSelection';\nimport YesNoAvailability from './content/YesNoAvail';\nimport ConsentSection from './content/ConsentSection';\n\ntype IntakeSectionProps = {\n\tindex: number;\n\tsection: IntakeQuestion;\n\tregister: UseFormRegister;\n\tsetValue: UseFormSetValue;\n\ttrigger: UseFormTrigger;\n\terrors: any;\n\tloading?: boolean;\n\tgetValues: UseFormGetValues;\n\tonSubmit: () => void;\n};\n\nconst IntakeSection = ({\n\tindex,\n\tsection,\n\tregister,\n\tsetValue,\n\ttrigger,\n\terrors,\n\tloading,\n\tgetValues,\n\tonSubmit,\n}: IntakeSectionProps) => {\n\tconst { scroll } = useScroll();\n\n\tconst [phoneValue, setPhoneValue] = useState();\n\n\tconst handleSubmit = () => {\n\t\tif (section.type === 'text1') {\n\t\t\tonSubmit();\n\t\t} else {\n\t\t\tinputSubmit();\n\t\t}\n\t};\n\n\tconst inputSubmit = async () => {\n\t\tif (!section.inputName) return scroll('down', index);\n\n\t\tconst result = await trigger(section.inputName, { shouldFocus: true });\n\t\tif (!result) return console.log('Form Error');\n\t\tscroll('down', index);\n\t};\n\n\tconst handleKeyPress = (e: any) => {\n\t\tif (e.key === 'Enter') {\n\t\t\tinputSubmit();\n\t\t}\n\t};\n\n\tuseEffect(() => {\n\t\tsetValue('phone', phoneValue ?? '');\n\t}, [phoneValue, setValue]);\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{/* Only show IntakeLabel and Description if not text1 type */}\n\t\t\t\t\t{section.type !== 'text1' && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t\t{section.type === 'input' && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\t{section.type === 'phone' && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t setPhoneValue(x)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t{/* CHOICES */}\n\t\t\t\t\t{section.type === 'choices' && section.choices && section.inputName && section.choices.length > 0 && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t{/* RATING */}\n\t\t\t\t\t{section.type === 'rating' && section.choices && section.inputName && section.choices.length > 0 && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\n\t\t\t\t\t{/* HYBRID */}\n\t\t\t\t\t{section.type === 'hybrid' && section.choices && section.inputName && section.choices.length > 0 && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t{/* YES/NO AVAILABILITY */}\n\t\t\t\t\t{section.type === 'yesno' && section.inputName === 'contributeViaWorkshops' && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\n\t\t\t\t\t{/* ERRORS */}\n\t\t\t\t\t{section.inputName && errors[section.inputName] && (\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\t{errors[section.inputName]?.message}\n\t\t\t\t\t\t

\n\t\t\t\t\t)}\n\n\t\t\t\t\t{/* BUTTON */}\n\t\t\t\t\t{section.type !== 'text1' && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{section.button === 'Begin Application' && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{section.button}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{section.button === 'OK' && section.type !== 'yesno' && (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{section.button}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{section.button !== 'Submit' && section.button !== 'Begin Application' && section.button !== 'OK' && !section.choices && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{section.button}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t{section.type === 'text1' && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t);\n};\n\nexport default IntakeSection;\n","var _polyline;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nfunction SvgChevronUp(_ref, svgRef) {\n let {\n title,\n titleId,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"white\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n className: \"feather feather-chevron-up\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _polyline || (_polyline = /*#__PURE__*/React.createElement(\"polyline\", {\n points: \"18 15 12 9 6 15\"\n })));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgChevronUp);\nexport default __webpack_public_path__ + \"static/media/chevron-up.3bdb0bfd.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useContext } from 'react';\nimport useScroll from '../hooks/useScroll';\nimport { IntakeContext } from '../intake.provider';\nimport { ReactComponent as Up } from '../../../assets/icons/chevron-up.svg';\n\nconst Navigators = () => {\n\tconst { currentIndex } = useContext(IntakeContext);\n\tconst { scroll } = useScroll();\n\n\treturn (\n\t\t
\n\t\t\t scroll('up', currentIndex)}\n\t\t\t\taria-label=\"up\"\n\t\t\t>\n\t\t\t\t\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default Navigators;\n","import { gql } from '@apollo/client';\nimport {\n\tUserGeneration,\n\tUserEducation,\n} from '../types/intake.types';\n\nexport const CreateUserMutation = gql`\n\tmutation CreateUser($input: UserCreateInput!) {\n\t\tuserCreate(input: $input) {\n\t\t\tid\n\t\t\tusername\n\t\t}\n\t}\n`;\n\nexport interface ICreateUserArgs {\n\tinput: {\n\t\tfirstName: string;\n\t\temail: string;\n\t\tlastName: string;\n\t\teducation?: UserEducation;\n\t\tphone?: string;\n\t\tprofiles?: string;\n\t\ttermsAgreed: true;\n\t\tgeneration: UserGeneration;\n\t\thowCanUplevylElevateYou?: string[];\n\t\tinviteeToken?: string;\n\t\tinviteeUsername?: string;\n\t\tadditionalFormInfo?: {\n\t\t\tmotivations?: string[];\n\t\t\tdigitalImpactVision?: string[];\n\t\t\tcontributeViaWorkshops?: boolean;\n\t\t\tlocation?: string;\n\t\t\tcurrentTitle?: string;\n\t\t\tcompanyName?: string;\n\t\t\tcompanyAnnualRevenue?: string;\n\t\t\thighestEducationLevel?: string;\n\t\t\thearAboutProgram?: string;\n\t\t\taiSkillsRatings?: number[];\n\t\t\taiTopicsInterest?: string;\n\t\t\tadditionalInterests?: string;\n\t\t\tlinkedInProfile?: string;\n\t\t\tsocialHandle?: string;\n\t\t};\n\t};\n}\n\n\nexport interface ICreateUserMutationData {\n\tuserCreate: {\n\t\tid: string;\n\t\tusername: string;\n\t};\n}\n","import React, { SetStateAction } from 'react';\nimport Button from '../../../components/Button';\n\ntype ErrorPopupProps = {\n\terror: string | undefined;\n\tsetError: React.Dispatch>;\n};\n\nconst ErrorPopup = ({ error, setError }: ErrorPopupProps) => {\n\treturn (\n\t\t setError('')}\n\t\t>\n\t\t\t
\n\t\t\t\t

{error}

\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default ErrorPopup;\n","import React, { useContext, useEffect, useState } from 'react';\nimport ReactGA from \"react-ga4\";\nimport { useNavigate } from 'react-router';\nimport { useForm } from 'react-hook-form';\nimport { yupResolver } from '@hookform/resolvers/yup';\nimport * as yup from 'yup';\nimport IntakeSection from './components/IntakeSection';\nimport Navigators from './components/Navigators';\nimport useScroll from './hooks/useScroll';\nimport sections from './intake.data';\nimport { useCreateUserMutation } from './hooks/useCreateUserMutation';\nimport { toEnum, YesNoAvailability } from './types/intake.types';\nimport ErrorPopup from './components/ErrorPopup';\nimport { IntakeContext } from './intake.provider';\n\ntype IntakePageProps = {\n\thash?: string | undefined;\n};\n\nexport type IntakeFormData = {\n\tfirstName: string;\n\tlastName: string;\n\temail: string;\n\tphone: string;\n\tgeneration: string;\n\thowCanUplevylElevateYou?: string[];\n\trole: string;\n\tselection: { selection: string; availability: string };\n\t[key: string]: YesNoAvailability | boolean | number[] | string | string[] | Record | { selection: string; availability: string };\n\n\tmotivations?: string[];\n\tdigitalImpactVision?: string[];\n\tcontributeViaWorkshops?: boolean;\n\tlocation?: string;\n\tcurrentTitle?: string;\n\tcompanyName?: string;\n\tcompanyAnnualRevenue?: string;\n\thighestEducationLevel?: string;\n\thearAboutProgram?: string;\n\taiSkillsRatings?: number[];\n\taiTopicsInterest?: string;\n\tadditionalInterests?: string;\n\tlinkedInProfile?: string;\n\tsocialHandle?: string;\n};\n\n\n\nconst phoneRegExp =\n\t/^((\\+\\d{1,3}(-| )?\\(?\\d\\)?(-| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(-| )?(\\d{3,4})(-| )?(\\d{4})(( x| ext)\\d{1,5}){0,1}$/;\n\nconst schema = yup.object().shape({\n\tfirstName: yup.string().required('This is a required field'),\n\tlastName: yup.string().required('This is a required field'),\n\temail: yup.string().required('Email is required').email('Email is invalid'),\n\tcontributeViaWorkshops: yup.boolean().required('Please select an option.'),\n\tphone: yup\n\t\t.string()\n\t\t.required('Phone number is required')\n\t\t.matches(phoneRegExp, 'Phone number is not valid'),\n\tlocation: yup.string().required('Location is required'),\n\tcurrentTitle: yup.string().required('Current job title or role is required'),\n\tcompanyName: yup.string().required('Current company name is required'),\n\t// companyAnnualRevenue: yup.string().required('Company annual revenue is required'),\n\thighestEducationLevel: yup.string().required('Highest education level is required'),\n\thearAboutProgram: yup.string().required('required'),\n\tmotivations: yup.array().of(yup.string()).required('Motivations are required'),\n\tdigitalImpactVision: yup.array().of(yup.string()).required('Digital impact vision is required'),\n\taiSkillsRatings: yup.array().of(yup.number().min(1).max(5)).required('AI skills ratings are required'),\n\taiTopicsInterest: yup.string().required('Interest in AI topics is required'),\n\tadditionalInterests: yup.string().required('Additional interests are required'),\n\t// linkedInProfile: yup.string().required('LinkedIn profile is required'),\n\t// socialHandle: yup.string().required('Social handle is required'),\n});\n\nconst IntakePage = ({ hash }: IntakePageProps) => {\n\tconst { currentIndex } = useContext(IntakeContext);\n\tconst { resetScroll } = useScroll();\n\tconst navigate = useNavigate();\n\tconst [createUser, { loading: submitting, error: createUserError }] =\n\t\tuseCreateUserMutation();\n\tconst [error, setError] = useState();\n\n\tconst {\n\t\tregister,\n\t\thandleSubmit,\n\t\tsetValue,\n\t\ttrigger,\n\t\tformState: { errors },\n\t\tgetValues,\n\t} = useForm({\n\t\tresolver: yupResolver(schema),\n\t});\n\n\tconst onSubmit = async (data: IntakeFormData) => {\n\t\tlet inviteeToken: string | undefined;\n\t\tlet inviteeUsername: string | undefined;\n\n\t\tconst token = hash?.split('=')[1];\n\t\tif (token && isBase64(token)) {\n\t\t\tinviteeToken = token;\n\t\t} else if (token) {\n\t\t\tinviteeUsername = token;\n\t\t}\n\n\t\ttry {\n\t\t\tconst { data: createUserData } = await createUser({\n\t\t\t\tvariables: {\n\t\t\t\t\tinput: {\n\t\t\t\t\t\temail: data.email,\n\t\t\t\t\t\tfirstName: data.firstName,\n\t\t\t\t\t\tlastName: data.lastName,\n\t\t\t\t\t\ttermsAgreed: true,\n\t\t\t\t\t\tphone: data.phone,\n\t\t\t\t\t\tgeneration: data.generation ? toEnum(data.generation) : undefined,\n\t\t\t\t\t\tinviteeToken,\n\t\t\t\t\t\tinviteeUsername,\n\t\t\t\t\t\thowCanUplevylElevateYou: data.howCanUplevylElevateYou,\n\t\t\t\t\t\tadditionalFormInfo: {\n\t\t\t\t\t\t\tmotivations: data.motivations,\n\t\t\t\t\t\t\tdigitalImpactVision: data.digitalImpactVision,\n\t\t\t\t\t\t\tcontributeViaWorkshops: data.contributeViaWorkshops,\n\t\t\t\t\t\t\tlocation: data.location,\n\t\t\t\t\t\t\tcurrentTitle: data.currentTitle,\n\t\t\t\t\t\t\tcompanyName: data.companyName,\n\n\t\t\t\t\t\t\thighestEducationLevel: data.highestEducationLevel,\n\t\t\t\t\t\t\thearAboutProgram: data.hearAboutProgram,\n\t\t\t\t\t\t\taiSkillsRatings: data.aiSkillsRatings,\n\t\t\t\t\t\t\taiTopicsInterest: data.aiTopicsInterest,\n\t\t\t\t\t\t\tadditionalInterests: data.additionalInterests,\n\t\t\t\t\t\t\tlinkedInProfile: data.linkedInProfile ? data.linkedInProfile : null,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tReactGA.event({\n\t\t\t\tcategory: 'Form Submission',\n\t\t\t\taction: 'Future Forward form completion',\n\t\t\t\tlabel: `User ${data.firstName} ${data.lastName} completed the intake form`\n\t\t\t});\n\n\t\t\tnavigate(`/referral/${createUserData?.userCreate.username}`);\n\t\t} catch (err) {\n\t\t\tconsole.log(err);\n\t\t\tsetError('An error occurred while submitting the form. Please try again.');\n\t\t}\n\t};\n\n\tconst handleFormSubmit = () => {\n\t\thandleSubmit(onSubmit)();\n\t};\n\n\tuseEffect(() => {\n\t\tconst fireAnalytics = () => {\n\t\t\tconst section = sections[currentIndex];\n\t\t\tswitch (section.inputName) {\n\t\t\t\tcase 'motivations':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'A - motivations section',\n\t\t\t\t\t\tlabel: 'User on motivations section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'digitalImpactVision':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'B - digital impact vision section',\n\t\t\t\t\t\tlabel: 'User on digital impact vision section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'contributeViaWorkshops':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'C - workshops availability section',\n\t\t\t\t\t\tlabel: 'User on workshops availability section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'firstName':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'D - first name section',\n\t\t\t\t\t\tlabel: 'User on first name section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'lastName':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'E - last name section',\n\t\t\t\t\t\tlabel: 'User on last name section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'email':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'F - email section',\n\t\t\t\t\t\tlabel: 'User on email section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'phone':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'G - phone section',\n\t\t\t\t\t\tlabel: 'User on phone section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'location':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'H - location section',\n\t\t\t\t\t\tlabel: 'User on location section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'currentTitle':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'I - job title section',\n\t\t\t\t\t\tlabel: 'User on job title section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'companyName':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'J - company name section',\n\t\t\t\t\t\tlabel: 'User on company name section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\t// case 'companyAnnualRevenue':\n\t\t\t\t// \tReactGA.event({ \n\t\t\t\t// \t\tcategory: 'Form Navigation',\n\t\t\t\t// \t\taction: ' company revenue section',\n\t\t\t\t// \t\tlabel: 'User on company revenue section' \n\t\t\t\t// \t});\n\t\t\t\t// \tbreak;\n\t\t\t\tcase 'highestEducationLevel':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'K - education level section',\n\t\t\t\t\t\tlabel: 'User on education level section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'hearAboutProgram':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'L - hear about future forward section',\n\t\t\t\t\t\tlabel: 'User on hear about future forward section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'aiSkillsRatings':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'M - AI skills ratings section',\n\t\t\t\t\t\tlabel: 'User on AI skills ratings section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'aiTopicsInterest':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'N - AI topics interest section',\n\t\t\t\t\t\tlabel: 'User on AI topics interest section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'additionalInterests':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'O - additional interests section',\n\t\t\t\t\t\tlabel: 'User on additional interests section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'linkedInProfile':\n\t\t\t\t\tReactGA.event({\n\t\t\t\t\t\tcategory: 'Form Navigation',\n\t\t\t\t\t\taction: 'P - LinkedIn profile section',\n\t\t\t\t\t\tlabel: 'User on LinkedIn profile section'\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\t// case 'socialHandle':\n\t\t\t\t// \tReactGA.event({ \n\t\t\t\t// \t\tcategory: 'Form Navigation',\n\t\t\t\t// \t\taction: 'Q - social handle section',\n\t\t\t\t// \t\tlabel: 'User on social handle section' \n\t\t\t\t// \t});\n\t\t\t\t// \tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t};\n\n\t\tfireAnalytics();\n\t}, [currentIndex]);\n\n\t/**\n\t * Check if a string is Base64 encoded or not\n\t * @param value String value to check\n\t * @returns `true` if base64, `false` if not\n\t */\n\tconst isBase64 = (value: string) =>\n\t\t/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(\n\t\t\tvalue,\n\t\t);\n\n\tuseEffect(() => {\n\t\tif (createUserError)\n\t\t\tsetError(\n\t\t\t\tcreateUserError.graphQLErrors[0]?.extensions?.message ??\n\t\t\t\tcreateUserError.message,\n\t\t\t);\n\t}, [createUserError]);\n\n\t/* eslint-disable */\n\tuseEffect(() => {\n\t\tresetScroll();\n\t}, []);\n\n\tuseEffect(() => {\n\t\twindow.scrollTo(0, 0);\n\t}, []);\n\treturn (\n\t\t<>\n\t\t\t{error && }\n\t\t\t\n\t\t\t\t{sections.map((section, i) => (\n\t\t\t\t\t\n\t\t\t\t))}\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default IntakePage;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tCreateUserMutation,\n\tICreateUserArgs,\n\tICreateUserMutationData,\n} from '../graphql/createUser';\n\n/**\n * create a user\n * @param options\n * @returns Mutation hook\n */\nexport const useCreateUserMutation = (\n\toptions?: MutationHookOptions,\n) => useMutation(CreateUserMutation);\n","export type UserEnums = UserEducation | UserGeneration | UserMobileOS;\n\nexport enum UserEducation {\n\tSOME_OR_NO_COLLEGE = 'SOME_OR_NO_COLLEGE',\n\tASSOCIATES_DEGREE_OR_APPRENTICESHIP = 'ASSOCIATES_DEGREE_OR_APPRENTICESHIP',\n\tBACHELORS_DEGREE = 'BACHELORS_DEGREE',\n\tMASTERS_DEGREE = 'MASTERS_DEGREE',\n\tDOCTORAL_OR_PROFESSIONAL_DEGREE = 'DOCTORAL_OR_PROFESSIONAL_DEGREE',\n}\n\nexport enum UserGeneration {\n\tBABY_BOOMER = 'BABY_BOOMER',\n\tGEN_X = 'GEN_X',\n\tMILLENNIAL = 'MILLENNIAL',\n\tGEN_Z = 'GEN_Z',\n}\n\nexport enum UserMobileOS {\n\tAPPLE = 'APPLE',\n\tANDROID = 'ANDROID',\n}\n\nexport enum YesNoAvailability {\n\n\tYes = 'Yes',\n \n\tNo = 'No',\n \n\tNotAvailable = 'NotAvailable',\n \n }\n\nexport function toEnum(value: string): T {\n\treturn value\n\t\t.toUpperCase()\n\t\t.replace(/\\s|-|\\//g, '_')\n\t\t.replace(/&/g, 'AND')\n\t\t.replace(/'|,/g, '') as T;\n}\n","export default __webpack_public_path__ + \"static/media/Uplevyl1.15ecbe74.svg\";","/* eslint-disable jsx-a11y/accessible-emoji */\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n\nimport React, { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport uplevyl1 from '../../assets/icons/Uplevyl1.svg';\n\nconst ConfirmationPage: React.FC = () => {\n const params = useParams();\n const [showCopied, setShowCopied] = useState(false);\n const newLink = `https://${window.location.hostname}#invitee=${params.username}`;\n\n const handleClick = () => {\n setShowCopied(true);\n navigator.clipboard.writeText(newLink);\n setTimeout(() => {\n setShowCopied(false);\n }, 1000);\n };\n\n return (\n
\n
\n \n

\n Thank You!\n

\n
\n

\n Woohoo! Your Future Forward application has been submitted successfully! You will receive an email with the payment details for the program.\n

\n

\n Want to review the highlights of the Future Forward program? Please visit this page.\n

\n

\n In the meantime, start Uplevyling right away by listening to an episode or two from the Uplevyl podcast, Women. Wisdom. Worth..\n

\n

\n Thank you for choosing to Uplevyl with us. We're excited to have you on board!\n

\n

\n Team Uplevyl\n\n

\n
\n
\n
\n {newLink}\n
\n \n {showCopied ? 'Copied!' : 'Copy'}\n \n
\n
\n
\n );\n};\n\nexport default ConfirmationPage;","/* eslint-disable no-alert */\n/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\nimport React from 'react';\n\nconst DownloadButton = () => {\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default DownloadButton;\n","import React from 'react';\n\ntype HeaderProps = {\n\ttitle: string;\n\tsmallerText?: boolean;\n};\n\nconst Header = ({ title, smallerText }: HeaderProps) => {\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{title}\n\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default Header;\n","/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\nimport React from 'react';\nimport Container from '../../components/Container';\nimport DownloadButton from '../../components/DownloadButton';\nimport Header from '../../components/Header';\n\nconst Download = () => {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t

\n\t\t\t\tClicking the button below will take you to appstore, where\n\t\t\t\tfurther details can be found about our application.\n\t\t\t

\n\t\t\t\n\t\t\n\t);\n};\n\nexport default Download;\n","import { gql } from '@apollo/client';\n\nexport const BasicLoginMutation = gql`\n\tmutation basicLogin($email: String!, $password: String!) {\n\t\tbasicLogin(email: $email, password: $password) {\n\t\t\taccessToken\n\t\t\trefreshToken\n\t\t}\n\t}\n`;\n\nexport interface IBasicLoginMutationVariables {\n\temail: string;\n\tpassword: string;\n}\n\nexport interface IBasicLoginMutationData {\n\tbasicLogin: {\n\t\taccessToken: string;\n\t\trefreshToken: string;\n\t};\n}\n","/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */\nimport React, { useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport Container from '../../components/Container';\nimport Button from '../../components/Button';\nimport Input from '../../components/Input';\nimport { useBasicLoginMutation } from './hooks/useBasicLoginMutation';\nimport Header from '../../components/Header';\n\nconst Login = () => {\n\tconst navigate = useNavigate();\n\n\tconst [loginUser, { loading }] = useBasicLoginMutation();\n\n\tconst [email, setEmail] = useState('');\n\tconst [password, setPassword] = useState('');\n\tconst [errorMessage, setErrorMessage] = useState();\n\n\tconst handleSubmit = async () => {\n\t\tif (!password || password.length < 8)\n\t\t\treturn setErrorMessage(\n\t\t\t\t'Your password must be at least 8 characters long',\n\t\t\t);\n\n\t\ttry {\n\t\t\tconst { data, errors } = await loginUser({\n\t\t\t\tvariables: {\n\t\t\t\t\temail,\n\t\t\t\t\tpassword,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (!data?.basicLogin || !data.basicLogin?.accessToken)\n\t\t\t\tsetErrorMessage('Invalid email/password combination');\n\t\t\telse {\n\t\t\t\tlocalStorage.setItem(\n\t\t\t\t\t'accessToken',\n\t\t\t\t\tdata?.basicLogin.accessToken,\n\t\t\t\t);\n\t\t\t\tconst params = new URLSearchParams(window.location.search);\n\t\t\t\tconst id = params.get('id');\n\t\t\t\tif (id != null) {\n\t\t\t\t\tnavigate(`/payment?type=payment&id=${id}`);\n\t\t\t\t} else {\n\t\t\t\t\tnavigate('/account');\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(\n\t\t\t\t\terr?.message.replace(/\\[([A-Z_])*\\](:)?(\\s)?/i, ''),\n\t\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t

\n\t\t\t\t\tPlease login to proceed to manage your account\n\t\t\t\t

\n\t\t\t\t {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\treturn handleSubmit();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t setEmail(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setPassword(e.target.value)}\n\t\t\t\t\t/>\n\n\t\t\t\t\t {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\tnavigate('/forgot');\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\tForgotten your password?\n\t\t\t\t\t\n\t\t\t\t\t

\n\t\t\t\t\t\t{errorMessage}\n\t\t\t\t\t

\n\n\t\t\t\t\t\n\t\t\t\t\t\t{!loading ? 'Login' : 'Logging in...'}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default Login;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tBasicLoginMutation,\n\tIBasicLoginMutationVariables,\n\tIBasicLoginMutationData,\n} from '../graphql/mutations/basicLogin';\n\n/**\n * Basic login user for basic web actions (payment portal etc)\n * @param options\n * @returns\n */\nexport const useBasicLoginMutation = (\n\toptions?: MutationHookOptions<\n\t\tIBasicLoginMutationData,\n\t\tIBasicLoginMutationVariables\n\t>,\n) =>\n\tuseMutation(\n\t\tBasicLoginMutation,\n\t\toptions,\n\t);\n","import { gql } from '@apollo/client';\nimport { UserSubscriptionEnum } from '../../../../resources/users/user.options';\n\nexport const GetMeInfoQuery = gql`\n\tquery GetMeInfo {\n\t\tme {\n\t\t\tid\n\t\t\tfirstName\n\t\t\temail\n\t\t\tsubscription\n\t\t\thasUsedFreeTrial\n\t\t}\n\t}\n`;\n\nexport interface IGetMeInfoQueryData {\n\tme: {\n\t\tid: string;\n\t\temail: string;\n\t\tfirstName: string;\n\t\tsubscription: UserSubscriptionEnum;\n\t\thasUsedFreeTrial?: boolean;\n\t};\n}\n","import React, { useEffect, useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport Container from '../../components/Container';\n// import Button from '../../components/Button';\n// import { useGetBillingPortalQuery } from './hooks/useGetBillingPortalQuery';\nimport { useGetMeQuery } from './hooks/useGetMeQuery';\nimport { UserSubscriptionEnum } from '../../resources/users/user.options';\n// import PaymentRedirect from '../Activate/PaymentRedirect';\nimport Header from '../../components/Header';\nimport DownloadButton from '../../components/DownloadButton';\n\nconst Account = () => {\n\tconst navigate = useNavigate();\n\n\tconst { data, loading } = useGetMeQuery({\n\t\tcontext: {\n\t\t\theaders: {\n\t\t\t\tAuthorization: `Bearer ${localStorage.getItem('accessToken')}`,\n\t\t\t},\n\t\t},\n\t});\n\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t// const [errorMessage, setErrorMessage] = useState();\n\tconst [accessToken, setAccessToken] = useState(null);\n\n\t// const [\n\t// \tgetBillingPortal,\n\t// \t{\n\t// \t\tdata: billingPortalData,\n\t// \t\t// loading: billingPortalLoading,\n\t// \t\terror: billingPortalError,\n\t// \t},\n\t// ] = useGetBillingPortalQuery();\n\n\t// const redirectToBillingPortal = async () => {\n\t// \tgetBillingPortal({\n\t// \t\tcontext: {\n\t// \t\t\theaders: {\n\t// \t\t\t\tAuthorization: `Bearer ${accessToken}`,\n\t// \t\t\t},\n\t// \t\t},\n\t// \t});\n\n\t// \tif (billingPortalError)\n\t// \t\treturn setErrorMessage(billingPortalError.message);\n\n\t// \t// // Success, direct onto next page for payment\n\t// \t// // setShowPayment(true);\n\t// };\n\n\t// useEffect(() => {\n\t// \tif (!billingPortalData?.paymentCreatePortalLink?.url) return;\n\t// \twindow.location.href = billingPortalData.paymentCreatePortalLink.url;\n\t// }, [billingPortalData]);\n\n\tuseEffect(() => {\n\t\tconst accessTokenStored = localStorage.getItem('accessToken');\n\t\tif (!accessTokenStored) navigate('/login');\n\t\tsetAccessToken(accessTokenStored);\n\t}, [accessToken, navigate]);\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t{loading ? (\n\t\t\t\t\t

\n\t\t\t\t\t\tWe're fetching your information, one sec...\n\t\t\t\t\t

\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\tYour membership is currently{' '}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{data?.me.subscription ===\n\t\t\t\t\t\t\t\tUserSubscriptionEnum.ACTIVE\n\t\t\t\t\t\t\t\t\t? 'active'\n\t\t\t\t\t\t\t\t\t: 'inactive'}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.\n\t\t\t\t\t\t

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

\n\t\t\t\t\t\t\tTo gain access, please download the app to proceed\n\t\t\t\t\t\t\tfurther.\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\n\t\t\t\t\t\t{/* Temporarily removed as subscriptions removed */}\n\t\t\t\t\t\t{/*

\n\t\t\t\t\t\t\tYou can{' '}\n\t\t\t\t\t\t\t{data?.me.subscription ===\n\t\t\t\t\t\t\tUserSubscriptionEnum.ACTIVE\n\t\t\t\t\t\t\t\t? 'manage your membership and update your payment details via the button below'\n\t\t\t\t\t\t\t\t: 'reactivate your membership by selecting a package below'}\n\t\t\t\t\t\t\t.\n\t\t\t\t\t\t

*/}\n\t\t\t\t\t\t{/* {data?.me.subscription ===\n\t\t\t\t\t\tUserSubscriptionEnum.ACTIVE ? (\n\t\t\t\t\t\t\t redirectToBillingPortal()}\n\t\t\t\t\t\t\t\tdisabled={billingPortalLoading}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{!billingPortalLoading\n\t\t\t\t\t\t\t\t\t? 'Manage Membership'\n\t\t\t\t\t\t\t\t\t: 'Loading...'}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\taccessToken &&\n\t\t\t\t\t\t\tdata?.me && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)} */}\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default Account;\n","import { QueryHookOptions, useQuery } from '@apollo/client';\nimport { IGetMeInfoQueryData, GetMeInfoQuery } from '../graphql/queries/getMe';\n\n/**\n * Get user profile information from access token\n * @param options\n * @returns\n */\nexport const useGetMeQuery = (\n\toptions?: QueryHookOptions,\n) => useQuery(GetMeInfoQuery, options);\n","import React from 'react';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface ITextAreaProps\n\textends React.DetailedHTMLProps<\n\t\tReact.InputHTMLAttributes,\n\t\tHTMLTextAreaElement\n\t> {\n\tlabel: string;\n\trows?: number;\n\tclassName?: string;\n\tfullWidth?: boolean;\n}\nconst TextArea = ({\n\tlabel,\n\tfullWidth,\n\trows,\n\tchildren,\n\tclassName,\n\tdisabled,\n\t...props\n}: ITextAreaProps) => {\n\treturn (\n\t\t\n\t\t\t{label}\n\t\t\t\n\t\t\n\t);\n};\n\nexport default TextArea;\n","import gql from 'graphql-tag';\n\nexport const SubmitSupportRequestMutation = gql`\n\tmutation createSupport($input: SupportCreateInput!) {\n\t\tsupportCreate(input: $input) {\n\t\t\tid\n\t\t\tbody\n\t\t\tsubject\n\t\t\temail\n\t\t\tcreated\n\t\t}\n\t}\n`;\n\nexport interface ISubmitSupportRequestMutationVariables {\n\tinput: {\n\t\tbody: string;\n\t\tsubject: string;\n\t\temail: string;\n\t\tname?: string;\n\t};\n}\n\nexport interface ISubmitSupportRequestMutationData {\n\tsupportCreate: {\n\t\tid: string;\n\t\tbody: string;\n\t\tsubject: string;\n\t\temail: string;\n\t\tname?: string;\n\t\tcreated: Date;\n\t};\n}\n","import React, { useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport Button from '../../components/Button';\nimport Container from '../../components/Container';\nimport Input from '../../components/Input';\nimport TextArea from '../../components/TextArea';\nimport { useSubmitSupportRequestMutation } from './hooks/useSubmitSupportRequestMutation';\n\nconst CreateSupport = () => {\n\tconst navigate = useNavigate();\n\n\tconst [email, setEmail] = useState('');\n\tconst [name, setName] = useState('');\n\tconst [body, setBody] = useState('');\n\tconst [subject, setSubject] = useState('');\n\tconst [errorMessage, setErrorMessage] = useState();\n\tconst [supportId, setSupportId] = useState();\n\n\tconst [createSupportRequest, { loading }] =\n\t\tuseSubmitSupportRequestMutation();\n\n\tconst handleSubmit = async () => {\n\t\ttry {\n\t\t\tconst { data, errors } = await createSupportRequest({\n\t\t\t\tvariables: { input: { body, name, email, subject } },\n\t\t\t});\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\t\t\tif (data?.supportCreate.id) setSupportId(data?.supportCreate.id);\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(\n\t\t\t\t\terr?.message.replace(/\\[([A-Z_])*\\](:)?(\\s)?/i, ''),\n\t\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t\n\t\t\t

\n\t\t\t\t{supportId ? 'Request submitted' : 'Submit a support request'}\n\t\t\t

\n\t\t\t

\n\t\t\t\t{supportId\n\t\t\t\t\t? \"Your support request has been successfully submitted. You'll receive replies via email.\"\n\t\t\t\t\t: \"Questions or concerns? Not to worry, we're here to help. Submit a support request below.\"}\n\t\t\t

\n\t\t\t{supportId && (\n\t\t\t\t<>\n\t\t\t\t\t

\n\t\t\t\t\t\tAlternatively, you can monitor replies online by\n\t\t\t\t\t\tfollowing the button below\n\t\t\t\t\t

\n\t\t\t\t\t {\n\t\t\t\t\t\t\tnavigate(`/support/${supportId}`);\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Support Request\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t)}\n\n\t\t\t{!supportId && (\n\t\t\t\t {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\treturn handleSubmit();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t setName(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setEmail(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setSubject(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t setBody(e.target.value)}\n\t\t\t\t\t/>\n\t\t\t\t\t{errorMessage && (\n\t\t\t\t\t\t

\n\t\t\t\t\t\t\t{errorMessage}\n\t\t\t\t\t\t

\n\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\t\tSubmit\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t)}\n\t\t
\n\t);\n};\n\nexport default CreateSupport;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tISubmitSupportRequestMutationData,\n\tISubmitSupportRequestMutationVariables,\n\tSubmitSupportRequestMutation,\n} from '../graphql/mutations/submitSupportRequest';\n\n/**\n * Submit a support request mutation\n * @param options\n * @returns Mutation hook\n */\nexport const useSubmitSupportRequestMutation = (\n\toptions?: MutationHookOptions<\n\t\tISubmitSupportRequestMutationData,\n\t\tISubmitSupportRequestMutationVariables\n\t>,\n) =>\n\tuseMutation<\n\t\tISubmitSupportRequestMutationData,\n\t\tISubmitSupportRequestMutationVariables\n\t>(SubmitSupportRequestMutation);\n","import React from 'react';\nimport { ISupportReply } from '../graphql/queries/getSupportRequest';\n\ntype SupportReplyProps = {\n\treply: ISupportReply;\n\tdefaultName?: string;\n};\n\nconst SupportReply = ({ reply, defaultName }: SupportReplyProps) => {\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

\n\t\t\t\t\t\t{reply?.staff?.name\n\t\t\t\t\t\t\t? reply.staff.name\n\t\t\t\t\t\t\t: defaultName ?? 'User'}\n\t\t\t\t\t

\n\t\t\t\t\t{reply?.staff && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSTAFF\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

\n\t\t\t\t\t\t{new Date(reply.created).toLocaleString()}\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t'),\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default SupportReply;\n","import { gql } from '@apollo/client';\n\nexport const GetSupportRequestQuery = gql`\n\tquery supportReply($id: ID!) {\n\t\tsupport(id: $id) {\n\t\t\tid\n\t\t\tname\n\t\t\tbody\n\t\t\tsubject\n\t\t\temail\n\t\t\tcreated\n\t\t\treplies {\n\t\t\t\tcreated\n\t\t\t\tbody\n\t\t\t\tstaff {\n\t\t\t\t\tname\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n`;\n\nexport interface IGetSupportRequestQueryVariables {\n\tid: string;\n}\n\nexport interface ISupportReply {\n\tbody: string;\n\tcreated: Date;\n\tstaff?: {\n\t\tname: string;\n\t};\n}\n\nexport interface IGetSupportRequestQueryData {\n\tsupport: {\n\t\tid: string;\n\t\tsubject: string;\n\t\temail: string;\n\t\tname?: string;\n\t\tbody: string;\n\t\treplies?: ISupportReply[];\n\t\tcreated: Date;\n\t};\n}\n","import gql from 'graphql-tag';\nimport { ISupportReply } from '../queries/getSupportRequest';\n\nexport const SubmitSupportReplyMutation = gql`\n\tmutation createSupport($id: ID!, $input: SupportReplyInput!) {\n\t\tsupportReply(id: $id, input: $input) {\n\t\t\tid\n\t\t\treplies {\n\t\t\t\tcreated\n\t\t\t\tbody\n\t\t\t\tstaff {\n\t\t\t\t\tname\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n`;\n\nexport interface ISubmitSupportReplyMutationVariables {\n\tid: string;\n\tinput: {\n\t\tbody: string;\n\t};\n}\n\nexport interface ISubmitSupportReplyMutationData {\n\tsupportReply: {\n\t\tid: string;\n\t\treplies: ISupportReply[];\n\t};\n}\n","import React, { useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport Button from '../../components/Button';\nimport Container from '../../components/Container';\nimport TextArea from '../../components/TextArea';\nimport { getPrettyErrorMessage } from '../../helpers';\nimport SupportReply from './components/SupportReply';\nimport { ISupportReply } from './graphql/queries/getSupportRequest';\nimport { useGetSupportRequestQuery } from './hooks/useGetSupportRequestQuery';\nimport { useSubmitSupportReplyMutation } from './hooks/useReplySupportRequestMutation';\n\nconst SupportRequest = () => {\n\tconst { id } = useParams<{ id: string }>();\n\tconst [body, setBody] = useState('');\n\tconst [replies, setReplies] = useState();\n\tconst [errorMessage, setErrorMessage] = useState();\n\n\tconst { data, loading, error } = useGetSupportRequestQuery({\n\t\tvariables: {\n\t\t\tid,\n\t\t},\n\t});\n\n\tconst [replySupportRequest, { loading: replyLoading }] =\n\t\tuseSubmitSupportReplyMutation();\n\n\tuseEffect(() => {\n\t\tif (data?.support.replies && data?.support?.replies.length > 0) {\n\t\t\tsetReplies(data?.support.replies);\n\t\t}\n\t}, [data]);\n\n\tconst handleSubmit = async () => {\n\t\tif (replyLoading) return;\n\t\ttry {\n\t\t\tconst { data: replyData, errors } = await replySupportRequest({\n\t\t\t\tvariables: { id, input: { body } },\n\t\t\t});\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\t\t\tif (replyData?.supportReply) {\n\t\t\t\tconst reply =\n\t\t\t\t\treplyData.supportReply.replies[\n\t\t\t\t\t\treplyData.supportReply.replies.length - 1\n\t\t\t\t\t];\n\t\t\t\tsetBody('');\n\t\t\t\tsetReplies([...(replies ?? []), reply]);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message) setErrorMessage(getPrettyErrorMessage(err.msg));\n\t\t}\n\t};\n\n\treturn (\n\t\t
\n\t\t\t{loading ? (\n\t\t\t\t

\n\t\t\t\t\tWe're just fetching your information, one sec...\n\t\t\t\t

\n\t\t\t) : !data?.support || error ? (\n\t\t\t\t

\n\t\t\t\t\t{getPrettyErrorMessage(\n\t\t\t\t\t\terror?.message ?? 'An unknown issue occured',\n\t\t\t\t\t)}\n\t\t\t\t

\n\t\t\t) : (\n\t\t\t\t\n\t\t\t\t\t

\n\t\t\t\t\t\t{data?.support.subject}\n\t\t\t\t\t

\n\t\t\t\t\t\n\t\t\t\t\t{replies &&\n\t\t\t\t\t\treplies.length !== 0 &&\n\t\t\t\t\t\treplies.map((reply) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\n\t\t\t\t\t {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\treturn handleSubmit();\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t setBody(e.target.value)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{errorMessage && (\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t{errorMessage}\n\t\t\t\t\t\t\t

\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSubmit\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t)}\n\t\t
\n\t);\n};\n\nexport default SupportRequest;\n","import { QueryHookOptions, useQuery } from '@apollo/client';\nimport {\n\tGetSupportRequestQuery,\n\tIGetSupportRequestQueryData,\n\tIGetSupportRequestQueryVariables,\n} from '../graphql/queries/getSupportRequest';\n\n/**\n * Get support request query\n * @param options\n * @returns\n */\nexport const useGetSupportRequestQuery = (\n\toptions?: QueryHookOptions<\n\t\tIGetSupportRequestQueryData,\n\t\tIGetSupportRequestQueryVariables\n\t>,\n) =>\n\tuseQuery(\n\t\tGetSupportRequestQuery,\n\t\toptions,\n\t);\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tISubmitSupportReplyMutationData,\n\tISubmitSupportReplyMutationVariables,\n\tSubmitSupportReplyMutation,\n} from '../graphql/mutations/submitSupportReply';\n\n/**\n * Submit a support request mutation\n * @param options\n * @returns Mutation hook\n */\nexport const useSubmitSupportReplyMutation = (\n\toptions?: MutationHookOptions<\n\t\tISubmitSupportReplyMutationData,\n\t\tISubmitSupportReplyMutationVariables\n\t>,\n) =>\n\tuseMutation<\n\t\tISubmitSupportReplyMutationData,\n\t\tISubmitSupportReplyMutationVariables\n\t>(SubmitSupportReplyMutation);\n","import React from 'react';\nimport { useNavigate } from 'react-router';\n\nconst ResetSuccess = () => {\n\tconst navigate = useNavigate();\n\treturn (\n\t\t<>\n\t\t\t

\n\t\t\t\tYour password has been reset successfully.\n\t\t\t

\n\t\t\t

\n\t\t\t\tYou are now able to{' '}\n\t\t\t\t {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tnavigate('/login');\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\tlogin\n\t\t\t\t{' '}\n\t\t\t\twith the password you have just set.\n\t\t\t

\n\t\t\n\t);\n};\n\nexport default ResetSuccess;\n","import { gql } from '@apollo/client';\n\nexport const VerifyCodeMutation = gql`\n\tmutation verifyCode($code: String!) {\n\t\tverifyCode(code: $code)\n\t}\n`;\n\nexport interface IVerifyCodeMutationVariables {\n\tcode: string;\n}\n\nexport interface IVerifyCodeMutationData {\n\tverifyCode: string;\n}\n","import React, { useState } from 'react';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport { getPrettyErrorMessage } from '../../../helpers';\nimport { useVerifyCodeMutation } from './hooks/useVerifyCodeMutation';\n\ninterface EnterCodeProps {\n\tsetVerification: React.Dispatch>;\n\tsetEnterPassword: React.Dispatch>;\n}\n\nconst EnterCode = ({ setVerification, setEnterPassword }: EnterCodeProps) => {\n\tconst [verifyCode, { loading }] = useVerifyCodeMutation();\n\n\tconst [code, setCode] = useState('');\n\tconst [errorMessage, setErrorMessage] = useState();\n\n\tconst handleSubmit = async () => {\n\t\tif (!code) return setErrorMessage('Please enter a valid code');\n\t\ttry {\n\t\t\tconst { errors, data } = await verifyCode({\n\t\t\t\tvariables: {\n\t\t\t\t\tcode,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (data?.verifyCode) {\n\t\t\t\tsetVerification(data.verifyCode);\n\t\t\t\tsetErrorMessage(undefined);\n\t\t\t\tsetEnterPassword(true);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(getPrettyErrorMessage(err.message));\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t

\n\t\t\t\tPlease enter the one-time code sent to your email/mobile number.\n\t\t\t

\n\t\t\t {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn handleSubmit();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t setCode(e.target.value)}\n\t\t\t\t/>\n\n\t\t\t\t

{errorMessage}

\n\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default EnterCode;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tVerifyCodeMutation,\n\tIVerifyCodeMutationData,\n\tIVerifyCodeMutationVariables,\n} from '../graphql/mutations/verifyCode';\n\n/**\n * Verify code for resetting password\n * @param options\n * @returns\n */\nexport const useVerifyCodeMutation = (\n\toptions?: MutationHookOptions<\n\t\tIVerifyCodeMutationData,\n\t\tIVerifyCodeMutationVariables\n\t>,\n) =>\n\tuseMutation(\n\t\tVerifyCodeMutation,\n\t\toptions,\n\t);\n","import { gql } from '@apollo/client';\n\nexport const ResetPasswordMutation = gql`\n\tmutation resetPassword(\n\t\t$password: String!\n\t\t$phone: String!\n\t\t$verification: String!\n\t) {\n\t\tresetPassword(\n\t\t\tphone: $phone\n\t\t\tverification: $verification\n\t\t\tpassword: $password\n\t\t) {\n\t\t\taccessToken\n\t\t}\n\t}\n`;\n\nexport interface IResetPasswordMutationVariables {\n\tphone: string;\n\tverification: string;\n\tpassword: string;\n}\n\nexport interface IResetPasswordMutationData {\n\tresetPassword: {\n\t\taccessToken: string;\n\t};\n}\n","import React, { useState } from 'react';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport { getPrettyErrorMessage } from '../../../helpers';\nimport { useResetPasswordMutation } from './hooks/useResetPassword';\n\ninterface EnterPasswordProps {\n\tverification: string | undefined;\n\tphone: string | undefined;\n\tsetSuccess: React.Dispatch>;\n}\n\nconst EnterPassword = ({\n\tverification,\n\tphone,\n\tsetSuccess,\n}: EnterPasswordProps) => {\n\tconst [resetPassword, { loading }] = useResetPasswordMutation();\n\n\tconst [password, setPassword] = useState('');\n\n\tconst [confirmPassword, setConfirmPassword] = useState('');\n\n\tconst [errorMessage, setErrorMessage] = useState();\n\n\tconst handleSubmit = async () => {\n\t\tif (!verification || !phone) return;\n\t\tif (!password || !confirmPassword)\n\t\t\treturn setErrorMessage('Please fill in both password fields');\n\t\tif (password.length < 8 || confirmPassword.length < 8)\n\t\t\treturn setErrorMessage(\n\t\t\t\t'Passwords should be at least 8 characters & contain a mix of letters (uppercase and lowercase), numbers, and symbols',\n\t\t\t);\n\t\tif (password !== confirmPassword)\n\t\t\treturn setErrorMessage('Passwords do not match');\n\n\t\ttry {\n\t\t\tconst { errors, data } = await resetPassword({\n\t\t\t\tvariables: {\n\t\t\t\t\tphone,\n\t\t\t\t\tverification,\n\t\t\t\t\tpassword,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (data?.resetPassword?.accessToken) {\n\t\t\t\tsetErrorMessage(undefined);\n\t\t\t\tsetSuccess(true);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(getPrettyErrorMessage(err.message));\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t

Please enter your new password.

\n\t\t\t {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn handleSubmit();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t setPassword(e.target.value)}\n\t\t\t\t/>\n\t\t\t\t setConfirmPassword(e.target.value)}\n\t\t\t\t/>\n\n\t\t\t\t

{errorMessage}

\n\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default EnterPassword;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tResetPasswordMutation,\n\tIResetPasswordMutationData,\n\tIResetPasswordMutationVariables,\n} from '../graphql/mutations/resetPassword';\n\n/**\n * Reset password via code sent to user's phone\n * @param options\n * @returns\n */\nexport const useResetPasswordMutation = (\n\toptions?: MutationHookOptions<\n\t\tIResetPasswordMutationData,\n\t\tIResetPasswordMutationVariables\n\t>,\n) =>\n\tuseMutation(\n\t\tResetPasswordMutation,\n\t\toptions,\n\t);\n","import { gql } from '@apollo/client';\n\nexport const RequestCodeMutation = gql`\n\tmutation requestCode($phone: String!) {\n\t\trequestCode(phone: $phone)\n\t}\n`;\n\nexport interface IRequestCodeMutationVariables {\n\tphone: string;\n}\n\nexport interface IRequestCodeMutationData {\n\trequestCode: boolean;\n}\n","import React, { useState } from 'react';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport { getPrettyErrorMessage } from '../../../helpers';\nimport { useRequestCodeMutation } from './hooks/useRequestCodeMutation';\n\ninterface EnterCodeProps {\n\tphone: string;\n\tsetPhone: React.Dispatch>;\n\tsetEnterCode: React.Dispatch>;\n}\n\nconst EnterCode = ({ phone, setPhone, setEnterCode }: EnterCodeProps) => {\n\tconst [requestCode, { loading }] = useRequestCodeMutation();\n\n\tconst [errorMessage, setErrorMessage] = useState();\n\n\tconst handleSubmit = async () => {\n\t\tif (!phone)\n\t\t\treturn setErrorMessage('Invalid phone number or email address');\n\n\t\ttry {\n\t\t\tconst { errors, data } = await requestCode({\n\t\t\t\tvariables: {\n\t\t\t\t\tphone,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (data?.requestCode) {\n\t\t\t\tsetErrorMessage(undefined);\n\t\t\t\tsetEnterCode(true);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(getPrettyErrorMessage(err.message));\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t

Not to worry, we'll sort it.

\n\t\t\t

\n\t\t\t\tPlease enter the phone number or email associated with your\n\t\t\t\taccount, a code will be sent here.\n\t\t\t

\n\t\t\t {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn handleSubmit();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t setPhone(e.target.value)}\n\t\t\t\t/>\n\n\t\t\t\t

{errorMessage}

\n\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default EnterCode;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tRequestCodeMutation,\n\tIRequestCodeMutationData,\n\tIRequestCodeMutationVariables,\n} from '../graphql/mutations/requestCode';\n\n/**\n * Request code for resetting password\n * @param options\n * @returns\n */\nexport const useRequestCodeMutation = (\n\toptions?: MutationHookOptions<\n\t\tIRequestCodeMutationData,\n\t\tIRequestCodeMutationVariables\n\t>,\n) =>\n\tuseMutation(\n\t\tRequestCodeMutation,\n\t\toptions,\n\t);\n","import React, { useState } from 'react';\nimport Container from '../../../components/Container';\nimport ResetSuccess from './ResetSuccess';\nimport EnterCode from './EnterCode';\nimport EnterPassword from './EnterPassword';\nimport EnterPhone from './EnterPhone';\nimport Header from '../../../components/Header';\n\nconst ForgotPassword = () => {\n\tconst [phone, setPhone] = useState('');\n\n\tconst [enterCode, setEnterCode] = useState(false);\n\tconst [enterPassword, setEnterPassword] = useState(false);\n\tconst [success, setSuccess] = useState(false);\n\tconst [verification, setVerification] = useState();\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t{success ? (\n\t\t\t\t\t\n\t\t\t\t) : enterPassword ? (\n\t\t\t\t\t\n\t\t\t\t) : enterCode ? (\n\t\t\t\t\t\n\t\t\t\t) : (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default ForgotPassword;\n","import {\n\tBulkDeleteWithConfirmButton,\n\tBulkExportButton,\n} from 'ra-ui-materialui';\nimport React, { useEffect } from 'react';\nimport { useDataProvider, useNotify } from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { exportFile } from '../../../helpers';\n\nconst ReportActionsButtons = (props: any) => {\n\tconst { selectedIds } = props;\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: exportReports, data } = useMutation<{\n\t\tdata: Record;\n\t}>(\n\t\t() =>\n\t\t\tdataProvider.reportExportCsv({\n\t\t\t\tids: selectedIds,\n\t\t\t}),\n\t\t{\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tuseEffect(() => {\n\t\tif (data) exportFile(data?.data, 'reports');\n\t}, [data]);\n\n\tconst exporter = async () => {\n\t\texportReports();\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default ReportActionsButtons;\n","import React from 'react';\nimport { Filter, SearchInput, SelectInput } from 'react-admin';\n\ninterface IReportFilterProps {\n\tclasses?: Record<'button' | 'form', string>;\n\tcontext?: 'form' | 'button';\n\tvariant?: string;\n}\nconst ReportFilter = (props: IReportFilterProps) => {\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default ReportFilter;\n","import React, { useEffect, useState } from 'react';\nimport {\n\tList,\n\tDatagrid,\n\tTextField,\n\tListProps,\n\tEditButton,\n\tReferenceField,\n\tDateField,\n\tSelectField,\n\tPaginationProps,\n\tPagination,\n\tuseNotify,\n\tuseListContext,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { exportFile, exportFilter } from '../../helpers';\nimport ReportActionsButtons from './components/report.actions';\nimport ReportFilter from './components/reports.filter';\n\ntype IReportListProps = ListProps;\n\nconst ReportPagination = (props: PaginationProps) => (\n\t\n);\n\nexport const Aside = (props: any) => {\n\tconst { setFilter } = props;\n\tconst { filterValues } = useListContext();\n\tsetFilter(filterValues);\n\treturn null;\n};\n\nexport const ReportList = (props: IReportListProps) => {\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\tconst [filter, setFilter] = useState();\n\tconst { mutate: exportReports, data } = useMutation<{\n\t\tdata: Record;\n\t}>(\n\t\t() =>\n\t\t\tdataProvider.reportExportCsv({\n\t\t\t\tfilter: exportFilter(filter),\n\t\t\t}),\n\t\t{\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tconst exporter = async () => {\n\t\texportReports();\n\t};\n\n\tuseEffect(() => {\n\t\tif (data) exportFile(data?.data, 'reports');\n\t}, [data]);\n\n\treturn (\n\t\t}\n\t\t\tfilters={}\n\t\t\texporter={exporter}\n\t\t\tbulkActionButtons={}\n\t\t\tpagination={}\n\t\t\t{...props}\n\t\t>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import { TitleProps } from 'react-admin';\nimport React from 'react';\n\ntype IReportTitleProps = TitleProps;\nconst ReportTitle = ({ record }: IReportTitleProps) => {\n\treturn Report {record ? `${record.id ?? ''}` : ''};\n};\n\nexport default ReportTitle;\n","import React from 'react';\nimport { SelectInput, Edit, EditProps, SimpleForm } from 'react-admin';\nimport ReportTitle from './components/report.title';\n\ntype IReportEditProps = EditProps;\n\nexport const ReportEdit = (props: IReportEditProps) => (\n\t}\n\t\ttransform={(input) => ({\n\t\t\tid: input.id,\n\t\t\tstatus: input.status,\n\t\t})}\n\t\t{...props}\n\t>\n\t\t\n\t\t\t\n\t\t\n\t\n);\n","import React from 'react';\nimport {\n\tShow,\n\tShowProps,\n\tTextField,\n\tReferenceField,\n\tSimpleShowLayout,\n\tDateField,\n} from 'react-admin';\nimport ReportTitle from './components/report.title';\n\nexport const ReportShow = (props: ShowProps) => (\n\t} {...props}>\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\n);\n","import { Box, Button, Card, CardContent, Typography } from '@mui/material';\nimport React from 'react';\nimport { useNavigate } from 'react-router-dom';\n\nconst ScheduleCreatePage = () => {\n\tconst navigate = useNavigate();\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tChoose a post layout:\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tnavigate('/admin/schedule/create-poll');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tPoll\n\t\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tnavigate('/admin/schedule/create-quote');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tQuote\n\t\t\t\t\t\t\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tnavigate('/admin/schedule/create-free-text');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tFree Text\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default ScheduleCreatePage;\n","import React from 'react';\nimport { AutocompleteInput, AutocompleteInputProps } from 'react-admin';\n\nconst ColorDropDownInput = (props: AutocompleteInputProps) => {\n\treturn (\n\t\t\n\t);\n};\n\nexport default ColorDropDownInput;\n","import { Card, CardContent } from '@mui/material';\nimport React, { useState } from 'react';\nimport {\n\tArrayInput,\n\tButton,\n\tDateTimeInput,\n\tSimpleForm,\n\tSimpleFormIterator,\n\tTextInput,\n\tTitle,\n\tuseDataProvider,\n\tuseNotify,\n\tuseRefresh,\n} from 'react-admin';\nimport { FieldValues } from 'react-hook-form';\nimport { useMutation } from 'react-query';\nimport { useNavigate } from 'react-router-dom';\nimport ColorDropDownInput from '../../components/ColorDropdownInput';\n\ntype PollCreateInput = {\n\ttitle?: string;\n\tquestion?: string;\n\tbackgroundColour?: string;\n\tchoices?: string[];\n\tstart?: Date;\n\tend?: Date;\n};\n\nconst PollCreatePage = () => {\n\tconst [variables, setVariables] = useState({});\n\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst navigate = useNavigate();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: pollCreate } = useMutation(\n\t\t(input) => dataProvider.pollCreate({ input }),\n\t\t{\n\t\t\t// undoable: true,\n\t\t\tonSuccess: (result: any) => {\n\t\t\t\trefresh();\n\t\t\t\tif (result?.data?.id) {\n\t\t\t\t\tnavigate(`/admin/polls/${result?.data?.id}/show`);\n\t\t\t\t}\n\t\t\t\tnotify('Element Created');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tconst handleSubmit = async (value: FieldValues) =>\n\t\tpollCreate({\n\t\t\t...value,\n\t\t\tchoices: (value.choices as { choice: string }[]).map(\n\t\t\t\t(choice) => choice.choice as string,\n\t\t\t),\n\t\t});\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t<CardContent>\n\t\t\t\t<SimpleForm onSubmit={handleSubmit}>\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\trequired\n\t\t\t\t\t\thelperText=\"Poll's Title (e.g. `Poll of the Week`)\"\n\t\t\t\t\t\tsource=\"title\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\trequired\n\t\t\t\t\t\thelperText=\"Poll's Question (e.g. `What do you like most about Uplevyl?`)\"\n\t\t\t\t\t\tsource=\"question\"\n\t\t\t\t\t/>\n\t\t\t\t\t<ColorDropDownInput\n\t\t\t\t\t\thelperText=\"Background Colour of the Post (e.g. Finance Green)\"\n\t\t\t\t\t\tsource=\"backgroundColour\"\n\t\t\t\t\t\tisRequired\n\t\t\t\t\t\tlabel=\"Background Color\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<DateTimeInput\n\t\t\t\t\t\trequired\n\t\t\t\t\t\thelperText=\"Poll's Scheduled Start Time\"\n\t\t\t\t\t\tsource=\"start\"\n\t\t\t\t\t\tlabel=\"Start Time\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<DateTimeInput\n\t\t\t\t\t\trequired\n\t\t\t\t\t\thelperText=\"Poll's Scheduled End Time\"\n\t\t\t\t\t\tsource=\"end\"\n\t\t\t\t\t\tlabel=\"End Time\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<ArrayInput source=\"choices\" label=\"Choices\">\n\t\t\t\t\t\t<SimpleFormIterator\n\t\t\t\t\t\t\tclassName=\"mt-5 w-1/4\"\n\t\t\t\t\t\t\tremoveButton={\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t// Again another nightmarey function just to get the index of the row that's being removed, as we're not in the standard react admin resource contest\n\t\t\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\t\t\t\t\t\tlet button = (e.target as any)\n\t\t\t\t\t\t\t\t\t\t\t.parentNode;\n\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\tbutton.classList.contains(\n\t\t\t\t\t\t\t\t\t\t\t\t'MuiButton-label',\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t// Nested element inside button was clicked, go to button parent\n\t\t\t\t\t\t\t\t\t\t\tbutton = button.parentNode;\n\n\t\t\t\t\t\t\t\t\t\tconst iteratorAction =\n\t\t\t\t\t\t\t\t\t\t\tbutton.parentNode;\n\n\t\t\t\t\t\t\t\t\t\t// tried joining array as dont know the value of the classList to use exact indexing\n\t\t\t\t\t\t\t\t\t\tconst inputClasses =\n\t\t\t\t\t\t\t\t\t\t\titeratorAction.previousSibling\n\t\t\t\t\t\t\t\t\t\t\t\t.lastChild.classList.value;\n\n\t\t\t\t\t\t\t\t\t\tif (!inputClasses) return;\n\n\t\t\t\t\t\t\t\t\t\t// Different regex to below\n\t\t\t\t\t\t\t\t\t\tconst regexResult =\n\t\t\t\t\t\t\t\t\t\t\t/(.*choices\\[)([0-9]*)(\\])(.*)?/gm.exec(\n\t\t\t\t\t\t\t\t\t\t\t\tinputClasses,\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t!regexResult ||\n\t\t\t\t\t\t\t\t\t\t\tregexResult.length < 2\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t\t\t\t\tconst removeIndex = parseInt(\n\t\t\t\t\t\t\t\t\t\t\tregexResult[2],\n\t\t\t\t\t\t\t\t\t\t\t10,\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\t\t\t\tchoices: (\n\t\t\t\t\t\t\t\t\t\t\t\tvariables.choices ?? []\n\t\t\t\t\t\t\t\t\t\t\t).filter(\n\t\t\t\t\t\t\t\t\t\t\t\t(_choice, index) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\tindex !== removeIndex,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tcolor=\"secondary\"\n\t\t\t\t\t\t\t\t\tlabel=\"Remove\"\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\tcolor: 'rgba(0, 0, 0, 0.87)',\n\t\t\t\t\t\t\t\t\t\tfontFamily:\n\t\t\t\t\t\t\t\t\t\t\t'\"Nunito Sans\", \"Roboto\", \"Helvetica\", \"Arial\", sans-serif',\n\t\t\t\t\t\t\t\t\t\tfontWeight: 500,\n\t\t\t\t\t\t\t\t\t\tlineHeight: 1.75,\n\t\t\t\t\t\t\t\t\t\ttextTransform: 'uppercase',\n\t\t\t\t\t\t\t\t\t\tmarginTop: 11,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<TextInput\n\t\t\t\t\t\t\t\thelperText=\"Poll Choices\"\n\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\tsource=\"choice\"\n\t\t\t\t\t\t\t\tlabel=\"Choice\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</SimpleFormIterator>\n\t\t\t\t\t</ArrayInput>\n\t\t\t\t</SimpleForm>\n\t\t\t</CardContent>\n\t\t</Card>\n\t);\n};\n\nexport default PollCreatePage;\n","import React from 'react';\nimport {\n\tShow,\n\tShowProps,\n\tTextField,\n\tSimpleShowLayout,\n\tDateField,\n\tTabbedShowLayout,\n\tTab,\n\tArrayField,\n\tDatagrid,\n\tFunctionField,\n} from 'react-admin';\nimport TextArrayField from '../components/TextArrayField';\n\nexport const PollShow = (props: ShowProps) => (\n\t<Show {...props}>\n\t\t<SimpleShowLayout>\n\t\t\t<TabbedShowLayout>\n\t\t\t\t<Tab label=\"Poll\">\n\t\t\t\t\t<TextField source=\"id\" label=\"ID\" />\n\t\t\t\t\t<TextField source=\"title\" />\n\t\t\t\t\t<TextField source=\"question\" />\n\t\t\t\t\t<TextField source=\"backgroundColour\" />\n\t\t\t\t\t<DateField source=\"created\" showTime />\n\t\t\t\t\t<DateField source=\"schedule.start\" showTime />\n\t\t\t\t\t<DateField source=\"schedule.end\" showTime />\n\t\t\t\t\t<TextArrayField source=\"choices\" />\n\t\t\t\t</Tab>\n\t\t\t\t<Tab label=\"Results\">\n\t\t\t\t\t<ArrayField source=\"results\">\n\t\t\t\t\t\t<Datagrid bulkActionButtons={false}>\n\t\t\t\t\t\t\t<TextField source=\"answer\" label=\"Answer\" />\n\t\t\t\t\t\t\t<FunctionField\n\t\t\t\t\t\t\t\tsource=\"Percentage\"\n\t\t\t\t\t\t\t\trender={(record: any) => (\n\t\t\t\t\t\t\t\t\t<TextField\n\t\t\t\t\t\t\t\t\t\tlabel=\"Percentage\"\n\t\t\t\t\t\t\t\t\t\tsource=\"percentage\"\n\t\t\t\t\t\t\t\t\t\trecord={{\n\t\t\t\t\t\t\t\t\t\t\tid: new Date().getMilliseconds(),\n\t\t\t\t\t\t\t\t\t\t\tpercentage: `${Math.round(\n\t\t\t\t\t\t\t\t\t\t\t\t(record?.percentage ?? 0) * 100,\n\t\t\t\t\t\t\t\t\t\t\t)}%`,\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Datagrid>\n\t\t\t\t\t</ArrayField>\n\t\t\t\t</Tab>\n\t\t\t</TabbedShowLayout>\n\t\t</SimpleShowLayout>\n\t</Show>\n);\n","import * as React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { Typography } from '@mui/material';\nimport Inbox from '@mui/icons-material/Inbox';\nimport { CreateButton } from 'react-admin';\nimport { useNavigate } from 'react-router-dom';\n\nexport const ScheduleListEmpty = ({ className }: EmptyProps) => {\n\tconst navigate = useNavigate();\n\n\treturn (\n\t\t<Root className={className}>\n\t\t\t<div className={EmptyClasses.message}>\n\t\t\t\t<Inbox className={EmptyClasses.icon} />\n\t\t\t\t<Typography variant=\"h4\" paragraph>\n\t\t\t\t\tNo Daily Engagement Posts yet.\n\t\t\t\t</Typography>\n\t\t\t\t<Typography variant=\"body1\">Do you want to add one?</Typography>\n\t\t\t</div>\n\t\t\t<div className={EmptyClasses.toolbar}>\n\t\t\t\t<CreateButton\n\t\t\t\t\tvariant=\"contained\"\n\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tnavigate('/admin/schedule/create');\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</Root>\n\t);\n};\n\nexport interface EmptyProps {\n\tresource?: string;\n\thasCreate?: boolean;\n\tclassName?: string;\n}\n\nconst PREFIX = 'RaEmpty';\n\nexport const EmptyClasses = {\n\tmessage: `${PREFIX}-message`,\n\ticon: `${PREFIX}-icon`,\n\ttoolbar: `${PREFIX}-toolbar`,\n};\n\nconst Root = styled('span', {\n\tname: PREFIX,\n\toverridesResolver: (props, styles) => styles.root,\n})(({ theme }) => ({\n\tflex: 1,\n\t[`& .${EmptyClasses.message}`]: {\n\t\ttextAlign: 'center',\n\t\topacity: theme.palette.mode === 'light' ? 0.5 : 0.8,\n\t\tmargin: '0 1em',\n\t\tcolor:\n\t\t\ttheme.palette.mode === 'light'\n\t\t\t\t? 'inherit'\n\t\t\t\t: theme.palette.text.primary,\n\t},\n\n\t[`& .${EmptyClasses.icon}`]: {\n\t\twidth: '9em',\n\t\theight: '9em',\n\t},\n\n\t[`& .${EmptyClasses.toolbar}`]: {\n\t\ttextAlign: 'center',\n\t\tmarginTop: '2em',\n\t},\n}));\n","import React from 'react';\nimport { BooleanInput, Filter } from 'react-admin';\n\ninterface IScheduleFilterProps {\n\tcontext?: 'form' | 'button';\n\tvariant?: string;\n}\nconst ScheduleFilter = (props: IScheduleFilterProps) => {\n\treturn (\n\t\t<Filter {...props}>\n\t\t\t<BooleanInput source=\"past\" alwaysOn label=\"Show past posts\" />\n\t\t</Filter>\n\t);\n};\n\nexport default ScheduleFilter;\n","import React, { useCallback } from 'react';\nimport {\n\tList,\n\tDatagrid,\n\tTextField,\n\tListProps,\n\tDateField,\n\tTopToolbar,\n\tCreateButton,\n} from 'react-admin';\nimport { useNavigate } from 'react-router-dom';\nimport { ScheduleListEmpty } from './components/schedule-list.empty';\nimport ScheduleFilter from './schedule.filter';\n\ntype IScheduleListProps = ListProps;\n\nexport const ScheduleList = (props: IScheduleListProps) => {\n\tconst navigate = useNavigate();\n\n\tconst ListActions = useCallback(\n\t\t(otherProps: any) => (\n\t\t\t<TopToolbar>\n\t\t\t\t<CreateButton\n\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tnavigate('/admin/schedule/create');\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</TopToolbar>\n\t\t),\n\t\t[navigate],\n\t);\n\n\treturn (\n\t\t<List\n\t\t\tsort={{\n\t\t\t\tfield: 'created',\n\t\t\t\torder: 'desc',\n\t\t\t}}\n\t\t\tbulkActionButtons={false}\n\t\t\tfilters={<ScheduleFilter />}\n\t\t\tactions={<ListActions />}\n\t\t\tempty={<ScheduleListEmpty />}\n\t\t\ttitle=\"Daily Engagement Posts\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<Datagrid\n\t\t\t\trowClick={(id, resource, record) =>\n\t\t\t\t\t`/admin/${record.__typename.toLowerCase()}s/${id}/show`\n\t\t\t\t}\n\t\t\t\tbulkActionButtons={false}\n\t\t\t>\n\t\t\t\t<TextField source=\"title\" sortable={false} />\n\t\t\t\t<TextField source=\"__typename\" label=\"Type\" sortable={false} />\n\t\t\t\t<DateField label=\"Start\" source=\"schedule.start\" showTime />\n\t\t\t\t<DateField label=\"End\" source=\"schedule.end\" showTime />\n\t\t\t</Datagrid>\n\t\t</List>\n\t);\n};\n","import { makeStyles } from '@mui/styles';\nimport React from 'react';\nimport {\n\tShow,\n\tShowProps,\n\tTextField,\n\tSimpleShowLayout,\n\tDateField,\n\tRichTextField,\n} from 'react-admin';\n\nconst useStyles = makeStyles({\n\tdescription: {\n\t\tbackgroundColor: '#F6F6F6',\n\t\tpadding: '0.5rem 1rem',\n\t\tborderRadius: '0.35rem',\n\t},\n});\n\nexport const FreeTextShow = (props: ShowProps) => {\n\tconst classes = useStyles();\n\n\treturn (\n\t\t<Show {...props}>\n\t\t\t<SimpleShowLayout>\n\t\t\t\t<TextField source=\"id\" label=\"ID\" />\n\t\t\t\t<TextField source=\"title\" />\n\t\t\t\t<RichTextField\n\t\t\t\t\tsource=\"description\"\n\t\t\t\t\tlabel=\"Body\"\n\t\t\t\t\tclassName={classes.description}\n\t\t\t\t/>\n\t\t\t\t<TextField source=\"backgroundColour\" />\n\t\t\t\t<TextField source=\"imageURL\" label=\"Image URL\" />\n\t\t\t\t<TextField source=\"imageSubTitle\" label=\"Image Subtitle\" />\n\t\t\t\t<TextField source=\"imageTitle\" label=\"Image Title\" />\n\t\t\t\t<TextField source=\"imageFormat\" label=\"Image Format\" />\n\t\t\t\t<DateField label=\"Start\" source=\"schedule.start\" showTime />\n\t\t\t\t<DateField label=\"End\" source=\"schedule.end\" showTime />\n\t\t\t</SimpleShowLayout>\n\t\t</Show>\n\t);\n};\n","import React from 'react';\nimport {\n\tShow,\n\tShowProps,\n\tTextField,\n\tSimpleShowLayout,\n\tDateField,\n\tBooleanField,\n} from 'react-admin';\n\nexport const QuoteShow = (props: ShowProps) => (\n\t<Show {...props}>\n\t\t<SimpleShowLayout>\n\t\t\t<TextField source=\"id\" label=\"ID\" />\n\t\t\t<TextField source=\"title\" />\n\t\t\t<TextField source=\"quote\" />\n\t\t\t<TextField source=\"author\" />\n\t\t\t<TextField source=\"backgroundColour\" />\n\t\t\t<BooleanField\n\t\t\t\tsource=\"showQuotationMark\"\n\t\t\t\tlabel=\"Show Quotation Marks\"\n\t\t\t/>\n\t\t\t<DateField label=\"Start\" source=\"schedule.start\" showTime />\n\t\t\t<DateField label=\"End\" source=\"schedule.end\" showTime />\n\t\t\t<DateField source=\"created\" showTime />\n\t\t</SimpleShowLayout>\n\t</Show>\n);\n","import { Card, CardContent } from '@mui/material';\nimport React, { useState } from 'react';\nimport {\n\tBooleanInput,\n\tDateTimeInput,\n\tSimpleForm,\n\tTextInput,\n\tTitle,\n\tuseDataProvider,\n\tuseNotify,\n\tuseRefresh,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { useNavigate } from 'react-router-dom';\nimport ColorDropDownInput from '../../components/ColorDropdownInput';\n\ntype PollCreateInput = {\n\tauthor?: string;\n\tquote?: string;\n\tbackgroundColour?: string;\n\tshowQuotationMark?: boolean;\n\ttitle?: string[];\n\tstart?: Date;\n\tend?: Date;\n};\n\nconst QuoteCreatePage = () => {\n\tconst [variables, setVariables] = useState<PollCreateInput>({\n\t\tshowQuotationMark: false,\n\t});\n\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst navigate = useNavigate();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: quoteCreate } = useMutation(\n\t\t() => dataProvider.quoteCreate({ input: variables }),\n\t\t{\n\t\t\t// undoable: true,\n\t\t\tonSuccess: (result: any) => {\n\t\t\t\trefresh();\n\t\t\t\tif (result?.data?.id) {\n\t\t\t\t\tnavigate(`/admin/quotes/${result?.data?.id}/show`);\n\t\t\t\t}\n\t\t\t\tnotify('Element Created');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\treturn (\n\t\t<Card sx={{ mt: 2 }}>\n\t\t\t<Title title=\"Create Quote\" />\n\t\t\t<CardContent>\n\t\t\t\t<SimpleForm\n\t\t\t\t\tonSubmit={() => {\n\t\t\t\t\t\tquoteCreate();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\"Quote's Title (e.g. `Quote of the Week`)\"\n\t\t\t\t\t\tsource=\"title\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\ttitle: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\"Quote e.g. `Women are said to be...`\"\n\t\t\t\t\t\tsource=\"quote\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\tquote: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\"Quote's Author (e.g. `Jane Doe`)\"\n\t\t\t\t\t\tsource=\"author\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\tauthor: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<ColorDropDownInput\n\t\t\t\t\t\thelperText=\"Background Colour of the Post (e.g Finance Green)\"\n\t\t\t\t\t\tsource=\"background\"\n\t\t\t\t\t\tisRequired\n\t\t\t\t\t\tlabel=\"Background Color\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\tbackgroundColour: e,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<BooleanInput\n\t\t\t\t\t\tsource=\"showQuotationMark\"\n\t\t\t\t\t\tlabel=\"Show Quotation Marks\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tif (e.target) {\n\t\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\t\tshowQuotationMark: e.target.checked,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<DateTimeInput\n\t\t\t\t\t\thelperText=\"Quote's Scheduled Start Time\"\n\t\t\t\t\t\tsource=\"start\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tlabel=\"Start Time\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tif (e.target.value)\n\t\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\t\tstart: new Date(e.target.value),\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<DateTimeInput\n\t\t\t\t\t\thelperText=\"Quote's Scheduled End Time\"\n\t\t\t\t\t\tsource=\"end\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tlabel=\"End Time\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tif (e.target.value)\n\t\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\t\tend: new Date(e.target.value),\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t</SimpleForm>\n\t\t\t</CardContent>\n\t\t</Card>\n\t);\n};\n\nexport default QuoteCreatePage;\n","import React from 'react';\nimport { AutocompleteInput, AutocompleteInputProps } from 'react-admin';\n\nconst ImageFormatDropDownInput = (props: AutocompleteInputProps) => {\n\treturn (\n\t\t<AutocompleteInput\n\t\t\t{...props}\n\t\t\tchoices={[\n\t\t\t\t{ id: 'SMALL', name: 'Small' },\n\t\t\t\t{ id: 'MEDIUM', name: 'Medium' },\n\t\t\t\t{ id: 'LARGE', name: 'Large' },\n\t\t\t\t{ id: 'EXTRA_LARGE', name: 'Extra Large' },\n\t\t\t]}\n\t\t/>\n\t);\n};\n\nexport default ImageFormatDropDownInput;\n","import { Card, CardContent } from '@mui/material';\nimport React, { useState } from 'react';\nimport {\n\tDateTimeInput,\n\tSimpleForm,\n\tTextInput,\n\tTitle,\n\tuseNotify,\n\tuseRefresh,\n\tuseDataProvider,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport {\n\tRichTextInput,\n\tFormatButtons,\n\tRichTextInputToolbar,\n\tLevelSelect,\n\tListButtons,\n\tClearButtons,\n} from 'ra-input-rich-text';\nimport { useNavigate } from 'react-router-dom';\nimport ColorDropDownInput from '../../components/ColorDropdownInput';\nimport ImageFormatDropDownInput from '../../components/ImageFormatDropdownInput';\n\ntype PollCreateInput = {\n\ttitle?: string;\n\timageURL?: string;\n\timageFormat?: string;\n\timageTitle?: string;\n\timageSubTitle?: string;\n\tdescription?: string;\n\tbackgroundColour?: string;\n\tstart?: Date;\n\tend?: Date;\n};\n\nconst FreeTextCreatePage = () => {\n\tconst [variables, setVariables] = useState<PollCreateInput>({});\n\n\tconst refresh = useRefresh();\n\tconst notify = useNotify();\n\tconst navigate = useNavigate();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: freeTextCreate } = useMutation(\n\t\t() => dataProvider.freeTextCreate({ input: variables }),\n\t\t{\n\t\t\t// undoable: true,\n\t\t\tonSuccess: (result: any) => {\n\t\t\t\trefresh();\n\t\t\t\tif (result?.data?.id) {\n\t\t\t\t\tnavigate(`/admin/freetexts/${result?.data?.id}/show`);\n\t\t\t\t}\n\t\t\t\tnotify('Element Created');\n\t\t\t},\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\treturn (\n\t\t<Card sx={{ mt: 2 }}>\n\t\t\t<Title title=\"Create Free Text\" />\n\t\t\t<CardContent>\n\t\t\t\t<SimpleForm\n\t\t\t\t\tonSubmit={() => {\n\t\t\t\t\t\tfreeTextCreate();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\" FreeText's Title (e.g. `The Peculiar Story`)\"\n\t\t\t\t\t\tsource=\"title\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\ttitle: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<RichTextInput\n\t\t\t\t\t\thelperText=\"Rich Body Text\"\n\t\t\t\t\t\ttoolbar={\n\t\t\t\t\t\t\t<RichTextInputToolbar>\n\t\t\t\t\t\t\t\t<LevelSelect />\n\t\t\t\t\t\t\t\t<FormatButtons />\n\t\t\t\t\t\t\t\t<ListButtons />\n\t\t\t\t\t\t\t\t<ClearButtons />\n\t\t\t\t\t\t\t</RichTextInputToolbar>\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource=\"description\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables((current) => ({\n\t\t\t\t\t\t\t\t...current,\n\t\t\t\t\t\t\t\tdescription: e,\n\t\t\t\t\t\t\t}));\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\"Image Title\"\n\t\t\t\t\t\tsource=\"question\"\n\t\t\t\t\t\tlabel=\"Image Title\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\timageTitle: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\"Image Subtitle Text\"\n\t\t\t\t\t\tsource=\"imageSubTitle\"\n\t\t\t\t\t\tlabel=\"Image Subtitle\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\timageSubTitle: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\thelperText=\"Poll's Image URL (e.g. `https://image.png`)\"\n\t\t\t\t\t\tsource=\"imageURL\"\n\t\t\t\t\t\tlabel=\"Image URL\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\timageURL: e.target.value,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<ImageFormatDropDownInput\n\t\t\t\t\t\thelperText=\"Format of the Image (e.g. LARGE)\"\n\t\t\t\t\t\tsource=\"imageFormat\"\n\t\t\t\t\t\tisRequired\n\t\t\t\t\t\tlabel=\"Image Format\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\timageFormat: e,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<ColorDropDownInput\n\t\t\t\t\t\thelperText=\"Background Colour of the Post (e.g. Finance Green)\"\n\t\t\t\t\t\tsource=\"background\"\n\t\t\t\t\t\tisRequired\n\t\t\t\t\t\tlabel=\"Background Color\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\tbackgroundColour: e,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<DateTimeInput\n\t\t\t\t\t\thelperText=\"FreeText's Scheduled Start Time\"\n\t\t\t\t\t\tsource=\"start\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tlabel=\"Start Time\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tif (e.target.value)\n\t\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\t\tstart: new Date(e.target.value),\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<DateTimeInput\n\t\t\t\t\t\thelperText=\"FreeText's Scheduled End Time\"\n\t\t\t\t\t\tsource=\"end\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tlabel=\"End Time\"\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tif (e.target.value)\n\t\t\t\t\t\t\t\tsetVariables({\n\t\t\t\t\t\t\t\t\t...variables,\n\t\t\t\t\t\t\t\t\tend: new Date(e.target.value),\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t</SimpleForm>\n\t\t\t</CardContent>\n\t\t</Card>\n\t);\n};\n\nexport default FreeTextCreatePage;\n","import React from 'react';\nimport {\n\tEdit,\n\tEditProps,\n\tDateTimeInput,\n\tTextInput,\n\tSimpleForm,\n\tArrayInput,\n\tSimpleFormIterator,\n} from 'react-admin';\nimport ColorDropDownInput from '../components/ColorDropdownInput';\n\nexport const PollEdit = (props: EditProps) => {\n\tconst transform = (data: any) => {\n\t\tconst newData = data;\n\t\tnewData.start = newData.schedule.start;\n\t\tnewData.end = newData.schedule.end;\n\t\tdelete newData.results;\n\t\tdelete newData.schedule;\n\t\treturn newData;\n\t};\n\n\treturn (\n\t\t<Edit {...props} transform={transform}>\n\t\t\t<SimpleForm>\n\t\t\t\t<TextInput source=\"title\" required helperText=\"Poll's Title\" />\n\t\t\t\t<TextInput\n\t\t\t\t\tsource=\"question\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"Poll's Question\"\n\t\t\t\t/>\n\t\t\t\t<ColorDropDownInput\n\t\t\t\t\tisRequired\n\t\t\t\t\thelperText=\"Background Colour of the Post\"\n\t\t\t\t\tsource=\"backgroundColour\"\n\t\t\t\t\tlabel=\"Background Color\"\n\t\t\t\t/>\n\t\t\t\t<DateTimeInput\n\t\t\t\t\tlabel=\"Start\"\n\t\t\t\t\tsource=\"schedule.start\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"Poll's Scheduled Start Time\"\n\t\t\t\t/>\n\t\t\t\t<DateTimeInput\n\t\t\t\t\tlabel=\"End\"\n\t\t\t\t\tsource=\"schedule.end\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"Poll's Scheduled End Time\"\n\t\t\t\t/>\n\t\t\t\t<ArrayInput source=\"choices\">\n\t\t\t\t\t<SimpleFormIterator>\n\t\t\t\t\t\t<TextInput label=\"Choice\" source=\"\" />\n\t\t\t\t\t</SimpleFormIterator>\n\t\t\t\t</ArrayInput>\n\t\t\t</SimpleForm>\n\t\t</Edit>\n\t);\n};\n","import React, { useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\n\nexport const RedirectScheduleList = () => {\n\tconst navigate = useNavigate();\n\n\tuseEffect(() => {\n\t\tnavigate('/admin/schedules');\n\t}, [navigate]);\n\treturn <></>;\n};\n","import React from 'react';\nimport {\n\tEdit,\n\tEditProps,\n\tDateTimeInput,\n\tTextInput,\n\tSimpleForm,\n} from 'react-admin';\nimport {\n\tRichTextInput,\n\tFormatButtons,\n\tRichTextInputToolbar,\n\tLevelSelect,\n\tListButtons,\n\tClearButtons,\n} from 'ra-input-rich-text';\nimport ColorDropDownInput from '../components/ColorDropdownInput';\nimport ImageFormatDropDownInput from '../components/ImageFormatDropdownInput';\n\nexport const FreeTextEdit = (props: EditProps) => {\n\tconst transform = (data: any) => {\n\t\tconst newData = data;\n\t\tnewData.start = newData.schedule.start;\n\t\tnewData.end = newData.schedule.end;\n\t\tdelete newData.schedule;\n\t\treturn newData;\n\t};\n\n\treturn (\n\t\t<Edit {...props} transform={transform}>\n\t\t\t<SimpleForm>\n\t\t\t\t<TextInput\n\t\t\t\t\tsource=\"title\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"FreeText's Title\"\n\t\t\t\t/>\n\t\t\t\t<RichTextInput\n\t\t\t\t\ttoolbar={\n\t\t\t\t\t\t<RichTextInputToolbar>\n\t\t\t\t\t\t\t<LevelSelect />\n\t\t\t\t\t\t\t<FormatButtons />\n\t\t\t\t\t\t\t<ListButtons />\n\t\t\t\t\t\t\t<ClearButtons />\n\t\t\t\t\t\t</RichTextInputToolbar>\n\t\t\t\t\t}\n\t\t\t\t\tsource=\"description\"\n\t\t\t\t/>\n\t\t\t\t<ColorDropDownInput\n\t\t\t\t\thelperText=\"Background Colour of the Post\"\n\t\t\t\t\tsource=\"backgroundColour\"\n\t\t\t\t\tlabel=\"Background Color\"\n\t\t\t\t/>\n\t\t\t\t<TextInput\n\t\t\t\t\tsource=\"imageTitle\"\n\t\t\t\t\tlabel=\"Image Title\"\n\t\t\t\t\thelperText=\"Image Title\"\n\t\t\t\t/>\n\t\t\t\t<ImageFormatDropDownInput\n\t\t\t\t\thelperText=\"Format of the Image\"\n\t\t\t\t\tsource=\"imageFormat\"\n\t\t\t\t\tlabel=\"Image Format\"\n\t\t\t\t/>\n\t\t\t\t<TextInput\n\t\t\t\t\tsource=\"imageSubTitle\"\n\t\t\t\t\tlabel=\"Image Subtitle\"\n\t\t\t\t\thelperText=\"Image Subtitle\"\n\t\t\t\t/>\n\t\t\t\t<TextInput\n\t\t\t\t\tsource=\"imageURL\"\n\t\t\t\t\tlabel=\"Image URL\"\n\t\t\t\t\thelperText=\"Poll's Image URL\"\n\t\t\t\t/>\n\t\t\t\t<DateTimeInput\n\t\t\t\t\tlabel=\"Start\"\n\t\t\t\t\tsource=\"schedule.start\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"FreeText's Scheduled Start Time\"\n\t\t\t\t/>\n\t\t\t\t<DateTimeInput\n\t\t\t\t\tlabel=\"End\"\n\t\t\t\t\tsource=\"schedule.end\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"FreeText's Scheduled End Time\"\n\t\t\t\t/>\n\t\t\t</SimpleForm>\n\t\t</Edit>\n\t);\n};\n","import React from 'react';\nimport {\n\tEdit,\n\tEditProps,\n\tDateTimeInput,\n\tTextInput,\n\tSimpleForm,\n\tBooleanInput,\n} from 'react-admin';\nimport ColorDropDownInput from '../components/ColorDropdownInput';\n\nexport const QuoteEdit = (props: EditProps) => {\n\tconst transform = (data: any) => {\n\t\tconst newData = data;\n\t\tnewData.start = newData.schedule.start;\n\t\tnewData.end = newData.schedule.end;\n\t\tdelete newData.schedule;\n\t\treturn newData;\n\t};\n\n\treturn (\n\t\t<Edit {...props} transform={transform}>\n\t\t\t<SimpleForm>\n\t\t\t\t<TextInput source=\"title\" required helperText=\"Quote's Title\" />\n\t\t\t\t<TextInput source=\"quote\" required helperText=\"Quote\" />\n\t\t\t\t<TextInput\n\t\t\t\t\tsource=\"author\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"Quote's Author\"\n\t\t\t\t/>\n\t\t\t\t<ColorDropDownInput\n\t\t\t\t\thelperText=\"Background Colour of the Post\"\n\t\t\t\t\tsource=\"backgroundColour\"\n\t\t\t\t\tlabel=\"Background Color\"\n\t\t\t\t/>\n\n\t\t\t\t<BooleanInput\n\t\t\t\t\tsource=\"showQuotationMark\"\n\t\t\t\t\tlabel=\"Show Quotation Marks\"\n\t\t\t\t/>\n\t\t\t\t<DateTimeInput\n\t\t\t\t\tlabel=\"Start\"\n\t\t\t\t\tsource=\"schedule.start\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"Quote's Scheduled Start Time\"\n\t\t\t\t/>\n\t\t\t\t<DateTimeInput\n\t\t\t\t\tlabel=\"End\"\n\t\t\t\t\tsource=\"schedule.end\"\n\t\t\t\t\trequired\n\t\t\t\t\thelperText=\"Quote's Scheduled End Time\"\n\t\t\t\t/>\n\t\t\t</SimpleForm>\n\t\t</Edit>\n\t);\n};\n","import { PaletteMode } from '@mui/material';\nimport { defaultTheme } from 'react-admin';\n\nimport { Theme } from '@mui/material/styles';\n\ndeclare module '@mui/styles/defaultTheme' {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-interface\n\tinterface DefaultTheme extends Theme {}\n}\n\nexport const lightTheme = {\n\tpalette: {\n\t\tprimary: {\n\t\t\tmain: '#4f3cc9',\n\t\t},\n\t\tsecondary: {\n\t\t\tlight: '#5f5fc4',\n\t\t\tmain: '#283593',\n\t\t\tdark: '#001064',\n\t\t\tcontrastText: '#fff',\n\t\t},\n\t\tbackground: {\n\t\t\tdefault: '#fcfcfe',\n\t\t},\n\t\tmode: 'light' as PaletteMode,\n\t},\n\tshape: {\n\t\tborderRadius: 10,\n\t},\n\tsidebar: {\n\t\twidth: 200,\n\t},\n\tcomponents: {\n\t\t...defaultTheme.components,\n\t\tRaMenuItemLink: {\n\t\t\tstyleOverrides: {\n\t\t\t\troot: {\n\t\t\t\t\tborderLeft: '3px solid #fff',\n\t\t\t\t\t'&.RaMenuItemLink-active': {\n\t\t\t\t\t\tborderLeft: '3px solid #4f3cc9',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tMuiPaper: {\n\t\t\tstyleOverrides: {\n\t\t\t\televation1: {\n\t\t\t\t\tboxShadow: 'none',\n\t\t\t\t},\n\t\t\t\troot: {\n\t\t\t\t\tborder: '1px solid #e0e0e3',\n\t\t\t\t\tbackgroundClip: 'padding-box',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tMuiAppBar: {\n\t\t\tstyleOverrides: {\n\t\t\t\tcolorSecondary: {\n\t\t\t\t\tcolor: '#808080',\n\t\t\t\t\tbackgroundColor: '#fff',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tMuiLinearProgress: {\n\t\t\tstyleOverrides: {\n\t\t\t\tcolorPrimary: {\n\t\t\t\t\tbackgroundColor: '#f5f5f5',\n\t\t\t\t},\n\t\t\t\tbarColorPrimary: {\n\t\t\t\t\tbackgroundColor: '#d7d7d7',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n};\n","import * as React from 'react';\nimport { AppBar, Logout, UserMenu, useLogout } from 'react-admin';\nimport { Box, Typography, useMediaQuery, Theme } from '@mui/material';\n\nconst CustomUserMenu = () => {\n\tconst logout = useLogout();\n\n\tconst handleLogout = async () => {\n\t\tawait logout();\n\t\twindow.location.reload();\n\t};\n\n\treturn (\n\t\t<UserMenu>\n\t\t\t<Logout onClick={handleLogout} />\n\t\t</UserMenu>\n\t);\n};\n\nconst CustomAppBar = (props: any) => {\n\tconst isLargeEnough = useMediaQuery<Theme>((theme) =>\n\t\ttheme.breakpoints.up('sm'),\n\t);\n\treturn (\n\t\t<AppBar\n\t\t\t{...props}\n\t\t\tcolor=\"secondary\"\n\t\t\televation={1}\n\t\t\tuserMenu={<CustomUserMenu />}\n\t\t>\n\t\t\t<Typography\n\t\t\t\tvariant=\"h6\"\n\t\t\t\tcolor=\"inherit\"\n\t\t\t\tsx={{\n\t\t\t\t\tflex: 1,\n\t\t\t\t\ttextOverflow: 'ellipsis',\n\t\t\t\t\twhiteSpace: 'nowrap',\n\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t}}\n\t\t\t\tid=\"react-admin-title\"\n\t\t\t/>\n\t\t\t{isLargeEnough && (\n\t\t\t\t<img\n\t\t\t\t\talt=\"Uplevyl\"\n\t\t\t\t\tclassName=\"h-12 mb-1\"\n\t\t\t\t\tsrc=\"https://cdn.uplevyl.com/logo/full/grey.svg\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{isLargeEnough && <Box component=\"span\" sx={{ flex: 1 }} />}\n\t\t</AppBar>\n\t);\n};\n\nexport default CustomAppBar;\n","import * as React from 'react';\nimport { Layout, LayoutProps } from 'react-admin';\nimport AppBar from './AppBar';\n\nexport default (props: LayoutProps) => {\n\treturn <Layout {...props} appBar={AppBar} />;\n};\n","const ACCESS_TOKEN = 'com.uplevyl.accessToken';\n\nexport class TokenService {\n\tprivate _accessToken: string | undefined;\n\n\tget token() {\n\t\tif (this._accessToken) return this._accessToken;\n\n\t\tthis._accessToken = localStorage.getItem(ACCESS_TOKEN) ?? undefined;\n\n\t\treturn this._accessToken;\n\t}\n\n\tset token(token: string | undefined) {\n\t\tif (token === undefined) {\n\t\t\tthis.removeToken();\n\t\t\treturn;\n\t\t}\n\n\t\tlocalStorage.setItem(ACCESS_TOKEN, token);\n\t\tthis._accessToken = token;\n\t}\n\n\t/**\n\t * Clear token\n\t */\n\tpublic removeToken() {\n\t\tthis._accessToken = undefined;\n\t\tlocalStorage.removeItem(ACCESS_TOKEN);\n\t}\n}\n","/* eslint-disable no-restricted-syntax */\n/* eslint-disable default-case */\n/* eslint-disable no-case-declarations */\n/* eslint-disable no-loop-func */\nimport {\n\tApolloClient as _ApolloClient,\n\tApolloLink,\n\tcreateHttpLink,\n\tDocumentNode,\n\tfromPromise,\n\tInMemoryCache,\n\tNormalizedCacheObject,\n} from '@apollo/client';\nimport { setContext } from '@apollo/client/link/context';\nimport { onError } from '@apollo/client/link/error';\nimport auth from '../mutations/auth';\nimport { TokenService } from '../token.service';\nimport { IClient } from './client.interface';\n\nconst STATUS = 'uplevyl:authStatus';\n\ntype AuthenticationStatus = 'authenticated' | 'pending';\nexport class ApolloClient implements IClient {\n\tprivate client: _ApolloClient<NormalizedCacheObject>;\n\n\tprivate isRefreshing = false;\n\n\tprivate pendingRequests: any[] = [];\n\n\tconstructor(\n\t\tprivate baseURL: string,\n\t\tprivate readonly tokenService: TokenService,\n\t) {\n\t\tthis.client = this.createClient();\n\t}\n\n\tgetClient<_ApolloClient>(): _ApolloClient {\n\t\treturn this.client as unknown as _ApolloClient;\n\t}\n\n\tasync mutate<D = Record<string, any>, V = Record<string, any>>(\n\t\tquery: DocumentNode,\n\t\tvariables?: V,\n\t): Promise<D | undefined> {\n\t\tconst response = await this.client.mutate<D, V>({\n\t\t\tmutation: query,\n\t\t\tvariables,\n\t\t});\n\n\t\tif (response.errors && response.errors.length > 0)\n\t\t\tthrow response.errors[0];\n\n\t\treturn response.data ?? undefined;\n\t}\n\n\tasync query<D = Record<string, any>, V = Record<string, any>>(\n\t\tquery: DocumentNode,\n\t\tvariables?: V,\n\t): Promise<D | undefined> {\n\t\tconst response = await this.client.query<D, V>({\n\t\t\tquery,\n\t\t\tvariables,\n\t\t});\n\n\t\tif (response.errors && response.errors.length > 0)\n\t\t\tthrow response.errors[0];\n\n\t\treturn response.data ?? undefined;\n\t}\n\n\tlogin(token: string): void {\n\t\tthis.tokenService.token = token;\n\t}\n\n\tlogout(): void {\n\t\tthis.tokenService.removeToken();\n\t}\n\n\t/**\n\t * Is the user logged in (or token refresh in flight)\n\t * @description Can be edited by user as in LS\n\t */\n\tpublic isLoggedInOrPending() {\n\t\tconst status = localStorage.getItem(\n\t\t\tSTATUS,\n\t\t) as AuthenticationStatus | null;\n\t\treturn status === 'authenticated' || status === 'pending';\n\t}\n\n\tprivate setStatus(status: AuthenticationStatus | null) {\n\t\tif (!status) return localStorage.removeItem(STATUS);\n\t\tlocalStorage.setItem(STATUS, status);\n\t}\n\n\t/**\n\t * Refresh access token using refresh token\n\t */\n\tpublic async refreshTokens(): Promise<string> {\n\t\tthis.setStatus('pending');\n\t\tconst response = await this.client.mutate({\n\t\t\tmutation: auth.refresh,\n\t\t\tfetchPolicy: 'no-cache',\n\t\t});\n\t\tif (response.data?.refresh?.accessToken) {\n\t\t\tthis.setStatus('authenticated');\n\t\t\treturn response.data.refresh.accessToken;\n\t\t}\n\t\tthis.setStatus(null);\n\t\tthrow new Error();\n\t}\n\n\t/**\n\t * Create Apollo client\n\t */\n\tprivate createClient = () => {\n\t\tconst httpLink = createHttpLink({\n\t\t\turi: this.baseURL,\n\t\t\tcredentials: 'include',\n\t\t});\n\t\tconst authLink = this.createContext();\n\t\tconst errorLink = this.createErrorLink();\n\t\treturn new _ApolloClient({\n\t\t\tlink: ApolloLink.from([authLink, errorLink, httpLink]),\n\t\t\tcache: new InMemoryCache(),\n\t\t\tcredentials: 'include',\n\t\t\tdefaultOptions: {\n\t\t\t\twatchQuery: {\n\t\t\t\t\tfetchPolicy: 'no-cache',\n\t\t\t\t},\n\t\t\t\tquery: {\n\t\t\t\t\tfetchPolicy: 'no-cache',\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t};\n\n\tprivate createContext() {\n\t\treturn setContext(async (_, { headers }) => {\n\t\t\tconst accessToken = this.tokenService.token;\n\t\t\treturn {\n\t\t\t\theaders: {\n\t\t\t\t\t...headers,\n\t\t\t\t\t'X-Frame-Options': 'Deny',\n\t\t\t\t\t'X-XSS-Protection': 1,\n\t\t\t\t\t'X-Content-Type-Options': 'nosniff',\n\t\t\t\t\t'Referrer-Policy': 'same-origin',\n\t\t\t\t\tauthorization: accessToken ? `Bearer ${accessToken}` : '',\n\t\t\t\t},\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate createErrorLink() {\n\t\treturn onError(({ graphQLErrors, operation, forward }) => {\n\t\t\tconsole.log('Errors:', graphQLErrors);\n\t\t\tif (graphQLErrors) {\n\t\t\t\tfor (const err of graphQLErrors) {\n\t\t\t\t\tswitch (err.extensions?.code) {\n\t\t\t\t\t\tcase 'UNAUTHENTICATED':\n\t\t\t\t\t\t\tlet forward$;\n\n\t\t\t\t\t\t\tconsole.log('Unauthenticated, refreshing');\n\n\t\t\t\t\t\t\tif (!this.isRefreshing) {\n\t\t\t\t\t\t\t\tthis.isRefreshing = true;\n\t\t\t\t\t\t\t\tforward$ = fromPromise(\n\t\t\t\t\t\t\t\t\tthis.refreshTokens()\n\t\t\t\t\t\t\t\t\t\t.then((accessToken: string) => {\n\t\t\t\t\t\t\t\t\t\t\t// Store the new tokens for your auth link\n\t\t\t\t\t\t\t\t\t\t\tthis.resolvePendingRequests();\n\t\t\t\t\t\t\t\t\t\t\tthis.tokenService.token =\n\t\t\t\t\t\t\t\t\t\t\t\taccessToken;\n\t\t\t\t\t\t\t\t\t\t\treturn accessToken;\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\t\t\t\t\t\tthis.pendingRequests = [];\n\n\t\t\t\t\t\t\t\t\t\t\t// Handle token refresh errors e.g clear stored tokens, redirect to login, ...\n\t\t\t\t\t\t\t\t\t\t\tthis.tokenService.removeToken();\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t.finally(() => {\n\t\t\t\t\t\t\t\t\t\t\tthis.isRefreshing = false;\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t).filter((value) => Boolean(value));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Will only emit once the Promise is resolved\n\t\t\t\t\t\t\t\tforward$ = fromPromise(\n\t\t\t\t\t\t\t\t\tnew Promise<void>((resolve) => {\n\t\t\t\t\t\t\t\t\t\tthis.pendingRequests.push(() =>\n\t\t\t\t\t\t\t\t\t\t\tresolve(),\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tforward$?.flatMap((accessToken) => {\n\t\t\t\t\t\t\t\tconst oldHeaders =\n\t\t\t\t\t\t\t\t\toperation.getContext().headers;\n\t\t\t\t\t\t\t\t// modify the operation context with a new token\n\t\t\t\t\t\t\t\toperation.setContext({\n\t\t\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\t\t...oldHeaders,\n\t\t\t\t\t\t\t\t\t\tauthorization: `Bearer ${accessToken}`,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t// retry the request, returning the new observable\n\t\t\t\t\t\t\t\treturn forward(operation);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate resolvePendingRequests() {\n\t\tthis.pendingRequests.map((callback) => callback());\n\t\tthis.pendingRequests = [];\n\t}\n}\n","import { DocumentNode } from 'graphql';\nimport {\n\tcreateClient,\n\tClient,\n\tdedupExchange,\n\tcacheExchange,\n\tfetchExchange,\n\terrorExchange,\n\tOperation,\n\tAnyVariables,\n} from 'urql';\nimport { authExchange } from '@urql/exchange-auth';\nimport { makeOperation } from '@urql/core';\nimport auth from '../mutations/auth';\nimport { IClient } from './client.interface';\nimport { TokenService } from '../token.service';\n\nconst STATUS = 'com.uplevyl.authStatus:urql';\ntype AuthenticationStatus = 'authenticated' | 'pending';\n\ninterface ITokens {\n\taccessToken: string;\n\trefreshToken?: string;\n}\n\nexport class UrqlClient implements IClient {\n\tprivate client: Client;\n\n\tconstructor(baseURL: string, private readonly tokenService: TokenService) {\n\t\tthis.client = this.createClient(baseURL);\n\t}\n\n\tgetClient<Client>(): Client {\n\t\treturn this.client as unknown as Client;\n\t}\n\n\tasync mutate<D = Record<string, any>, V = Record<string, any>>(\n\t\tquery: DocumentNode,\n\t\tvariables?: V | undefined,\n\t): Promise<D | undefined> {\n\t\tconst result = await this.client\n\t\t\t.mutation<D>(query, variables ?? {})\n\t\t\t.toPromise();\n\n\t\tif (result.error) throw result.error;\n\n\t\treturn result.data;\n\t}\n\n\tasync query<D = Record<string, any>, V = Record<string, any>>(\n\t\tquery: DocumentNode,\n\t\tvariables?: V | undefined,\n\t): Promise<D | undefined> {\n\t\tconst result = await this.client\n\t\t\t.query<D>(query, variables ?? {})\n\t\t\t.toPromise();\n\n\t\tif (result.error) throw result.error;\n\n\t\treturn result.data;\n\t}\n\n\tlogin(token: string): void {\n\t\tthis.tokenService.token = token;\n\t}\n\n\tlogout(): void {\n\t\tthis.tokenService.removeToken();\n\t}\n\n\t/**\n\t * Is the user logged in (or token refresh in flight)\n\t * @description Can be edited by user as in LS\n\t */\n\tpublic isLoggedInOrPending() {\n\t\treturn !!this.tokenService.token;\n\t}\n\n\tprivate setStatus(status: AuthenticationStatus | null) {\n\t\tif (!status) return localStorage.removeItem(STATUS);\n\t\tlocalStorage.setItem(STATUS, status);\n\t}\n\n\t/**\n\t * Refresh access token using refresh token\n\t */\n\tpublic async refreshTokens(): Promise<string> {\n\t\tthis.setStatus('pending');\n\t\tconst response = await this.mutate(auth.refresh);\n\t\tif (response?.refresh?.accessToken) {\n\t\t\tthis.setStatus('authenticated');\n\t\t\treturn response.refresh.accessToken;\n\t\t}\n\t\tthis.setStatus(null);\n\t\tthrow new Error();\n\t}\n\n\tprivate createClient(url: string) {\n\t\treturn createClient({\n\t\t\turl,\n\t\t\tfetchOptions: {\n\t\t\t\tcredentials: 'include',\n\t\t\t},\n\t\t\texchanges: [\n\t\t\t\tdedupExchange,\n\t\t\t\tcacheExchange,\n\t\t\t\terrorExchange({\n\t\t\t\t\tonError: (error) => {\n\t\t\t\t\t\tconst isAuthError = error.graphQLErrors.some(\n\t\t\t\t\t\t\t(e) => e.extensions?.code === 'UNAUTHENTICATED',\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (isAuthError) {\n\t\t\t\t\t\t\tthis.logout();\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tauthExchange<ITokens>({\n\t\t\t\t\taddAuthToOperation: ({\n\t\t\t\t\t\tauthState,\n\t\t\t\t\t\toperation,\n\t\t\t\t\t}): Operation<any, AnyVariables> => {\n\t\t\t\t\t\tif (!authState || !authState.accessToken) {\n\t\t\t\t\t\t\treturn operation;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst fetchOptions =\n\t\t\t\t\t\t\ttypeof operation.context.fetchOptions === 'function'\n\t\t\t\t\t\t\t\t? operation.context.fetchOptions()\n\t\t\t\t\t\t\t\t: operation.context.fetchOptions || {};\n\n\t\t\t\t\t\treturn makeOperation(operation.kind, operation, {\n\t\t\t\t\t\t\t...operation.context,\n\t\t\t\t\t\t\tfetchOptions: {\n\t\t\t\t\t\t\t\t...fetchOptions,\n\t\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\t...fetchOptions.headers,\n\t\t\t\t\t\t\t\t\tAuthorization: `Bearer ${authState.accessToken}`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\tdidAuthError: ({ error }): boolean => {\n\t\t\t\t\t\treturn error.graphQLErrors.some(\n\t\t\t\t\t\t\t(e) => e.extensions?.code === 'UNAUTHENTICATED',\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t\twillAuthError: (): boolean => {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t\tgetAuth: async ({\n\t\t\t\t\t\tauthState,\n\t\t\t\t\t\tmutate,\n\t\t\t\t\t}): Promise<ITokens | null> => {\n\t\t\t\t\t\tif (!authState) {\n\t\t\t\t\t\t\tconst accessToken = this.tokenService.token;\n\t\t\t\t\t\t\tif (accessToken) {\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\taccessToken,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.log('Refreshing');\n\t\t\t\t\t\tconst result = await mutate(auth.refresh);\n\n\t\t\t\t\t\tif (result.data?.refresh) {\n\t\t\t\t\t\t\tthis.login(result.data.refresh.accessToken);\n\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\taccessToken: result.data.refresh.accessToken,\n\t\t\t\t\t\t\t\trefreshToken: result.data.refresh.refreshToken,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.logout();\n\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tfetchExchange,\n\t\t\t],\n\t\t});\n\t}\n\n\tprivate log(...messages: any[]) {\n\t\tconsole.log(`[Urql Client]: ${messages.join(' ')}`);\n\t}\n}\n","import * as React from 'react';\nimport InputLabel from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\nimport FormControl from '@mui/material/FormControl';\nimport Select, { SelectChangeEvent } from '@mui/material/Select';\n\ninterface DropDownProps {\n\tdata: { label: string; value: string }[];\n\twidth: number;\n\tlabel: string;\n\tsize: string;\n}\n\nconst DropDown: React.FC<DropDownProps> = ({ data, label, width }) => {\n\tconst [value, setValue] = React.useState('');\n\n\tconst handleChange = (event: SelectChangeEvent) => {\n\t\tsetValue(event.target.value);\n\t};\n\n\treturn (\n\t\t<FormControl\n\t\t\tsx={{ m: 1, minWidth: width }}\n\t\t\tsize=\"medium\"\n\t\t\tstyle={{\n\t\t\t\tmarginTop: '20px',\n\t\t\t}}\n\t\t>\n\t\t\t<InputLabel id=\"demo-select-small\">{label}</InputLabel>\n\t\t\t<Select\n\t\t\t\tlabelId=\"demo-select-small\"\n\t\t\t\tid=\"demo-select-small\"\n\t\t\t\tvalue={value}\n\t\t\t\tlabel={label}\n\t\t\t\tonChange={handleChange}\n\t\t\t>\n\t\t\t\t{data.map((item) => (\n\t\t\t\t\t<MenuItem key={item.value} value={item.value}>\n\t\t\t\t\t\t{item.label}\n\t\t\t\t\t</MenuItem>\n\t\t\t\t))}\n\t\t\t</Select>\n\t\t</FormControl>\n\t);\n};\n\nexport default DropDown;\n","import { useQuery } from 'urql';\nimport React from 'react';\n\nexport const PAST_LIVING_ROOMS = `\nquery getLivingRooms($limit: Float!) {\n pastLivingRooms(limit: $limit) {\n edges {\n node {\n ...LivingRoomDetails\n }\n }\n pageInfo {\n total\n }\n }\n }\n\n fragment LivingRoomDetails on LivingRoom {\n id\n title\n start\n end\n pillars\n }\n`;\n\nexport const CURRENT_LIVING_ROOMS = `\n query getLivingRooms($limit: Float!){\n livingRooms(limit: $limit){\n edges {\n node {\n ...LivingRoomDetails\n }\n }\n pageInfo {\n total\n }\n }\n }\n\n fragment LivingRoomDetails on LivingRoom {\n id\n title\n start\n end\n }\n`;\n\nexport const TOTAL_LIVING_ROOMS = `\nquery getLivingRooms($limit: Float!){\n pastLivingRooms(limit: 10){\n edges{\n node{\n ...LivingRoomDetails\n }\n }\n pageInfo{\n total\n }\n }\n livingRooms(limit: $limit){\n edges{\n node{\n ...LivingRoomDetails\n }\n }\n pageInfo{\n total\n }\n }\n}\n\nfragment LivingRoomDetails on LivingRoom{\n id\n start\n end\n pillars\n milestones\n registrations{\n created\n }\n}\n`;\n\n// export const PastLivingRoomCount = () => {\n// \tconst [result] = useQuery({\n// \t\tquery: PAST_LIVING_ROOMS,\n// \t\tvariables: {\n// \t\t\tperPage: 10,\n// \t\t\tpage: 1,\n// \t\t\tsort: null,\n// \t\t\tfilter: null,\n// \t\t},\n// \t});\n// \tconst { fetching, error, data } = result;\n// \tif (fetching) return <p>Loading...</p>;\n// \tif (error) return <p>Error: {error.message}</p>;\n\n// \tconst totalPastRooms: number = data.pastLivingRooms.pageInfo.total;\n\n// \treturn totalPastRooms;\n// };\n\n// export const CurrentLivingRoomCount = () => {\n// \tconst [result] = useQuery({\n// \t\tquery: CURRENT_LIVING_ROOMS,\n// \t\tvariables: {\n// \t\t\tperPage: 10,\n// \t\t\tpage: 1,\n// \t\t\tsort: null,\n// \t\t\tfilter: null,\n// \t\t},\n// \t});\n// \tconst { fetching, error, data } = result;\n// console.log(data);\n// \tif (fetching) return <p>Loading...</p>;\n// \tif (error) return <p>Error: {error.message}</p>;\n\n// \tconst totalCurrentRooms = data.pastLivingRooms.pageInfo.total;\n\n// \treturn totalCurrentRooms;\n// };\n\nexport const TotalLivingCount = () => {\n\tconst [pastLivingRoomsResult] = useQuery({\n\t\tquery: `\n\t\tquery PastLivingRooms($limit: Float!) {\n\t\t pastLivingRooms(limit: $limit) {\n\t\t\tpageInfo {\n\t\t\t total\n\t\t\t}\n\t\t }\n\t\t}\n\t `,\n\t\tvariables: { limit: 10 },\n\t});\n\n\tconst [currentLivingRoomsResult] = useQuery({\n\t\tquery: `\n\t\tquery CurrentLivingRooms($limit: Float!) {\n\t\t livingRooms(limit: $limit) {\n\t\t\tpageInfo {\n\t\t\t total\n\t\t\t}\n\t\t }\n\t\t}\n\t `,\n\t\tvariables: { limit: 10 },\n\t});\n\n\tconst pastLivingRoomsCount =\n\t\tpastLivingRoomsResult.data?.pastLivingRooms.pageInfo.total ?? 0;\n\tconst currentLivingRoomsCount =\n\t\tcurrentLivingRoomsResult.data?.livingRooms.pageInfo.total ?? 0;\n\n\tconst totalLivingRoomsCount =\n\t\tpastLivingRoomsCount + currentLivingRoomsCount;\n\n\tif (pastLivingRoomsResult.fetching || currentLivingRoomsResult.fetching) {\n\t\treturn <p>Loading...</p>;\n\t}\n\n\tif (pastLivingRoomsResult.error || currentLivingRoomsResult.error) {\n\t\treturn (\n\t\t\t<p>\n\t\t\t\tError:{' '}\n\t\t\t\t{pastLivingRoomsResult.error?.message ||\n\t\t\t\t\tcurrentLivingRoomsResult.error?.message}\n\t\t\t</p>\n\t\t);\n\t}\n\n\treturn <p>{totalLivingRoomsCount}</p>;\n};\n\nexport const pillarCounts = {\n\tFinancial2021: 0,\n\tProfessional2021: 0,\n\tPersonal2021: 0,\n\tFinancial2022: 0,\n\tProfessional2022: 0,\n\tPersonal2022: 0,\n\tFinancial2023: 0,\n\tProfessional2023: 0,\n\tPersonal2023: 0,\n};\nlet pillarsQuery = false;\nexport const PillarsCount = () => {\n\tconst [result] = useQuery({\n\t\tquery: TOTAL_LIVING_ROOMS,\n\t\tvariables: {\n\t\t\tlimit: 25,\n\t\t},\n\t});\n\n\tconst { fetching, error, data } = result;\n\n\tif (fetching) return <p>Loading...</p>;\n\tif (error) return <p>Error: {error.message}</p>;\n\n\tconst pastlivingRooms = data.pastLivingRooms.edges?.map(\n\t\t(edge) => edge.node,\n\t);\n\tconst livingRooms = data.livingRooms.edges?.map((edge) => edge.node);\n\tif (pillarsQuery === false) {\n\t\tpillarsQuery = true;\n\t\tpastlivingRooms.map((room) => {\n\t\t\tconst year = new Date(room.start).getFullYear();\n\t\t\tif (year === 2021) {\n\t\t\t\tif (room.pillars[0] === 'Financial') {\n\t\t\t\t\tpillarCounts.Financial2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Professional') {\n\t\t\t\t\tpillarCounts.Professional2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Personal') {\n\t\t\t\t\tpillarCounts.Personal2021 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (year === 2022) {\n\t\t\t\tif (room.pillars[0] === 'Financial') {\n\t\t\t\t\tpillarCounts.Financial2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Professional') {\n\t\t\t\t\tpillarCounts.Professional2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Personal') {\n\t\t\t\t\tpillarCounts.Personal2022 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (year === 2023) {\n\t\t\t\tif (room.pillars[0] === 'Financial') {\n\t\t\t\t\tpillarCounts.Financial2023 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Professional') {\n\t\t\t\t\tpillarCounts.Professional2023 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Personal') {\n\t\t\t\t\tpillarCounts.Personal2023 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\t\tlivingRooms.map((room) => {\n\t\t\tconst year = new Date(room.start).getFullYear();\n\t\t\tif (year === 2021) {\n\t\t\t\tif (room.pillars[0] === 'Financial') {\n\t\t\t\t\tpillarCounts.Financial2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Professional') {\n\t\t\t\t\tpillarCounts.Professional2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Personal') {\n\t\t\t\t\tpillarCounts.Personal2021 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (year === 2022) {\n\t\t\t\tif (room.pillars[0] === 'Financial') {\n\t\t\t\t\tpillarCounts.Financial2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Professional') {\n\t\t\t\t\tpillarCounts.Professional2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Personal') {\n\t\t\t\t\tpillarCounts.Personal2022 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (year === 2023) {\n\t\t\t\tif (room.pillars[0] === 'Financial') {\n\t\t\t\t\tpillarCounts.Financial2023 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Professional') {\n\t\t\t\t\tpillarCounts.Professional2023 += 1;\n\t\t\t\t}\n\t\t\t\tif (room.pillars[0] === 'Personal') {\n\t\t\t\t\tpillarCounts.Personal2023 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\t}\n};\n\nexport const monthCount = {\n\tjan2021: 0,\n\tfeb2021: 0,\n\tmar2021: 0,\n\tapr2021: 0,\n\tmay2021: 0,\n\tjun2021: 0,\n\tjul2021: 0,\n\taug2021: 0,\n\tsep2021: 0,\n\toct2021: 0,\n\tnov2021: 0,\n\tdec2021: 0,\n\tjan2022: 0,\n\tfeb2022: 0,\n\tmar2022: 0,\n\tapr2022: 0,\n\tmay2022: 0,\n\tjun2022: 0,\n\tjul2022: 0,\n\taug2022: 0,\n\tsep2022: 0,\n\toct2022: 0,\n\tnov2022: 0,\n\tdec2022: 0,\n};\nlet sessionsQuery = false;\nexport const SessionCount = () => {\n\tconst [result] = useQuery({\n\t\tquery: TOTAL_LIVING_ROOMS,\n\t\tvariables: {\n\t\t\tlimit: 25,\n\t\t},\n\t});\n\n\tconst { fetching, error, data } = result;\n\n\tif (fetching) return <p>Loading...</p>;\n\tif (error) return <p>Error: {error.message}</p>;\n\n\tconst pastlivingRooms = data.pastLivingRooms.edges?.map(\n\t\t(edge) => edge.node,\n\t);\n\tconst livingRooms = data.livingRooms.edges?.map((edge) => edge.node);\n\tif (sessionsQuery === false) {\n\t\tsessionsQuery = true;\n\t\tpastlivingRooms.map((room) => {\n\t\t\tconst year = new Date(room.start).getFullYear();\n\t\t\tconst month = new Date(room.start).getMonth();\n\t\t\tif (year === 2021) {\n\t\t\t\tif (month === 1) {\n\t\t\t\t\tmonthCount.jan2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 2) {\n\t\t\t\t\tmonthCount.feb2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 3) {\n\t\t\t\t\tmonthCount.mar2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 4) {\n\t\t\t\t\tmonthCount.apr2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 5) {\n\t\t\t\t\tmonthCount.may2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 6) {\n\t\t\t\t\tmonthCount.jun2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 7) {\n\t\t\t\t\tmonthCount.jul2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 8) {\n\t\t\t\t\tmonthCount.aug2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 9) {\n\t\t\t\t\tmonthCount.sep2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 10) {\n\t\t\t\t\tmonthCount.oct2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 11) {\n\t\t\t\t\tmonthCount.nov2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 12) {\n\t\t\t\t\tmonthCount.dec2021 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (year === 2022) {\n\t\t\t\tif (month === 1) {\n\t\t\t\t\tmonthCount.jan2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 2) {\n\t\t\t\t\tmonthCount.feb2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 3) {\n\t\t\t\t\tmonthCount.mar2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 4) {\n\t\t\t\t\tmonthCount.apr2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 5) {\n\t\t\t\t\tmonthCount.may2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 6) {\n\t\t\t\t\tmonthCount.jun2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 7) {\n\t\t\t\t\tmonthCount.jul2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 8) {\n\t\t\t\t\tmonthCount.aug2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 9) {\n\t\t\t\t\tmonthCount.sep2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 10) {\n\t\t\t\t\tmonthCount.oct2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 11) {\n\t\t\t\t\tmonthCount.nov2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 12) {\n\t\t\t\t\tmonthCount.dec2022 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\t\tlivingRooms.map((room) => {\n\t\t\tconst year = new Date(room.start).getFullYear();\n\t\t\tconst month = new Date(room.start).getMonth();\n\t\t\tconsole.log(room.start, month);\n\t\t\tif (year === 2021) {\n\t\t\t\tif (month === 1) {\n\t\t\t\t\tmonthCount.jan2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 2) {\n\t\t\t\t\tmonthCount.feb2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 3) {\n\t\t\t\t\tmonthCount.mar2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 4) {\n\t\t\t\t\tmonthCount.apr2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 5) {\n\t\t\t\t\tmonthCount.may2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 6) {\n\t\t\t\t\tmonthCount.jun2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 7) {\n\t\t\t\t\tmonthCount.jul2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 8) {\n\t\t\t\t\tmonthCount.aug2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 9) {\n\t\t\t\t\tmonthCount.sep2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 10) {\n\t\t\t\t\tmonthCount.oct2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 11) {\n\t\t\t\t\tmonthCount.nov2021 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 12) {\n\t\t\t\t\tmonthCount.dec2021 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (year === 2022) {\n\t\t\t\tif (month === 1) {\n\t\t\t\t\tmonthCount.jan2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 2) {\n\t\t\t\t\tmonthCount.feb2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 3) {\n\t\t\t\t\tmonthCount.mar2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 4) {\n\t\t\t\t\tmonthCount.apr2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 5) {\n\t\t\t\t\tmonthCount.may2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 6) {\n\t\t\t\t\tmonthCount.jun2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 7) {\n\t\t\t\t\tmonthCount.jul2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 8) {\n\t\t\t\t\tmonthCount.aug2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 9) {\n\t\t\t\t\tmonthCount.sep2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 10) {\n\t\t\t\t\tmonthCount.oct2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 11) {\n\t\t\t\t\tmonthCount.nov2022 += 1;\n\t\t\t\t}\n\t\t\t\tif (month === 12) {\n\t\t\t\t\tmonthCount.dec2022 += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\t}\n};\n\nexport const allmilestonesCount = {\n\tcareer_Coaching: 0,\n\tleadership_Peak_performance: 0,\n\tdiversity_Equity_Inclusion: 0,\n\tperformance_Reviews_Promotions: 0,\n\tcareer_Pivots_Job_Loss: 0,\n\tfierce_after_50: 0,\n\tnetworking: 0,\n\tcareer_Search: 0,\n\tentrepreneurship: 0,\n\tmentorship: 0,\n\tmental_Health_Wellbeing: 0,\n\tspiritual_Wellness: 0,\n\tfamily_Home: 0,\n\thealth_Beauty: 0,\n\tgiving_Impact: 0,\n\tfood_Culture: 0,\n\tgender_Lens: 0,\n\tmarriage_Relationships: 0,\n\taging_Caregiving: 0,\n\tmidlife_Menopause: 0,\n\tAdulting: 0,\n\tfamily_Planning_Pregnancy: 0,\n\tpersonal_Growth: 0,\n\tfriendship: 0,\n\tbreakups_Divorce: 0,\n\tfamily_Divorce_Education: 0,\n\timpact_ESG_Investing: 0,\n\tfinancial_Independence_Investing: 0,\n\tsecure_Aging_Retirement: 0,\n\thomeownership: 0,\n\tcrypto_More: 0,\n\ttaxes_Insurance: 0,\n\tme_Myself_Money: 0,\n\tbudgeting_Spending: 0,\n\testablishing_Managing_Credit: 0,\n\tmanaging_debt: 0,\n};\nlet milestonesQuery = false;\nexport const TotalMilestonesCount = () => {\n\tconst [result] = useQuery({\n\t\tquery: TOTAL_LIVING_ROOMS,\n\t\tvariables: {\n\t\t\tlimit: 25,\n\t\t},\n\t});\n\n\tconst { fetching, error, data } = result;\n\n\tif (fetching) return <p>Loading...</p>;\n\tif (error) return <p>Error: {error.message}</p>;\n\n\tconst pastlivingRooms = data.pastLivingRooms.edges?.map(\n\t\t(edge) => edge.node,\n\t);\n\tconst livingRooms = data.livingRooms.edges?.map((edge) => edge.node);\n\tif (milestonesQuery === false) {\n\t\tmilestonesQuery = true;\n\t\tpastlivingRooms.map((room) => {\n\t\t\t// const year = new Date(room.start).getFullYear();\n\t\t\tif (room.milestones[0] === 'Career Coaching') {\n\t\t\t\tallmilestonesCount.career_Coaching += 1;\n\t\t\t}\n\t\t\tif (\n\t\t\t\troom.milestones[0] ===\n\t\t\t\t'Leadership & Peak Performance asdasd asdasd asdasd asdasd asdasd asdasd'\n\t\t\t) {\n\t\t\t\tallmilestonesCount.leadership_Peak_performance += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Diversity, Equity and Inclusion') {\n\t\t\t\tallmilestonesCount.diversity_Equity_Inclusion += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Performance Reviews and Promotions') {\n\t\t\t\tallmilestonesCount.performance_Reviews_Promotions += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Career Pivots and Job Loss') {\n\t\t\t\tallmilestonesCount.career_Pivots_Job_Loss += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Fierce after 50') {\n\t\t\t\tallmilestonesCount.fierce_after_50 += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Networking') {\n\t\t\t\tallmilestonesCount.networking += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Career Search') {\n\t\t\t\tallmilestonesCount.career_Search += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Entrepreneurship') {\n\t\t\t\tallmilestonesCount.entrepreneurship += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Mentorship') {\n\t\t\t\tallmilestonesCount.mentorship += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Mental Health and Wellbeing') {\n\t\t\t\tallmilestonesCount.mental_Health_Wellbeing += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Spiritual Wellness') {\n\t\t\t\tallmilestonesCount.spiritual_Wellness += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Family and Home') {\n\t\t\t\tallmilestonesCount.family_Home += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Health and Beauty') {\n\t\t\t\tallmilestonesCount.health_Beauty += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Giving & Impact') {\n\t\t\t\tallmilestonesCount.giving_Impact += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Food & Culture') {\n\t\t\t\tallmilestonesCount.food_Culture += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'The Gender Lens') {\n\t\t\t\tallmilestonesCount.gender_Lens += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Marriage & Relationships') {\n\t\t\t\tallmilestonesCount.marriage_Relationships += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Aging & Caregiving') {\n\t\t\t\tallmilestonesCount.aging_Caregiving += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Midlife & Menopause') {\n\t\t\t\tallmilestonesCount.midlife_Menopause += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Adulting') {\n\t\t\t\tallmilestonesCount.Adulting += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Family Planning & Pregnancy') {\n\t\t\t\tallmilestonesCount.family_Planning_Pregnancy += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Personal Growth') {\n\t\t\t\tallmilestonesCount.personal_Growth += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Friendship') {\n\t\t\t\tallmilestonesCount.friendship += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Breakups and Divorce') {\n\t\t\t\tallmilestonesCount.breakups_Divorce += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Family, Divorce & Education') {\n\t\t\t\tallmilestonesCount.family_Divorce_Education += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Impact & ESG Investing') {\n\t\t\t\tallmilestonesCount.impact_ESG_Investing += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Financial Independence & Investing') {\n\t\t\t\tallmilestonesCount.financial_Independence_Investing += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Secure Aging & Retirement') {\n\t\t\t\tallmilestonesCount.secure_Aging_Retirement += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Homeownership') {\n\t\t\t\tallmilestonesCount.homeownership += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Crypto & More') {\n\t\t\t\tallmilestonesCount.crypto_More += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Taxes & Insurance') {\n\t\t\t\tallmilestonesCount.taxes_Insurance += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Me, Myself & Money') {\n\t\t\t\tallmilestonesCount.me_Myself_Money += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Budgeting & Spending') {\n\t\t\t\tallmilestonesCount.budgeting_Spending += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Establishing & Managing Credit') {\n\t\t\t\tallmilestonesCount.establishing_Managing_Credit += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Managing Debt') {\n\t\t\t\tallmilestonesCount.managing_debt += 1;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t});\n\t\tlivingRooms.map((room) => {\n\t\t\t// const year = new Date(room.start).getFullYear();\n\t\t\tif (room.milestones[0] === 'Career Coaching') {\n\t\t\t\tallmilestonesCount.career_Coaching += 1;\n\t\t\t}\n\t\t\tif (\n\t\t\t\troom.milestones[0] ===\n\t\t\t\t'Leadership and Peak performance Coaching'\n\t\t\t) {\n\t\t\t\tallmilestonesCount.leadership_Peak_performance += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Diversity, Equity and Inclusion') {\n\t\t\t\tallmilestonesCount.diversity_Equity_Inclusion += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Performance Reviews and Promotions') {\n\t\t\t\tallmilestonesCount.performance_Reviews_Promotions += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Career Pivots and Job Loss') {\n\t\t\t\tallmilestonesCount.career_Pivots_Job_Loss += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Fierce after 50') {\n\t\t\t\tallmilestonesCount.fierce_after_50 += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Networking') {\n\t\t\t\tallmilestonesCount.networking += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Career Search') {\n\t\t\t\tallmilestonesCount.career_Search += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Entrepreneurship') {\n\t\t\t\tallmilestonesCount.entrepreneurship += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Mentorship') {\n\t\t\t\tallmilestonesCount.mentorship += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Mental Health and Wellbeing') {\n\t\t\t\tallmilestonesCount.mental_Health_Wellbeing += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Spiritual Wellness') {\n\t\t\t\tallmilestonesCount.spiritual_Wellness += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Family and Home') {\n\t\t\t\tallmilestonesCount.family_Home += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Health and Beauty') {\n\t\t\t\tallmilestonesCount.health_Beauty += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Giving & Impact') {\n\t\t\t\tallmilestonesCount.giving_Impact += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Food & Culture') {\n\t\t\t\tallmilestonesCount.food_Culture += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'The Gender Lens') {\n\t\t\t\tallmilestonesCount.gender_Lens += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Marriage & Relationships') {\n\t\t\t\tallmilestonesCount.marriage_Relationships += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Aging & Caregiving') {\n\t\t\t\tallmilestonesCount.aging_Caregiving += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Midlife & Menopause') {\n\t\t\t\tallmilestonesCount.midlife_Menopause += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Adulting') {\n\t\t\t\tallmilestonesCount.Adulting += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Family Planning & Pregnancy') {\n\t\t\t\tallmilestonesCount.family_Planning_Pregnancy += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Personal Growth') {\n\t\t\t\tallmilestonesCount.personal_Growth += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Friendship') {\n\t\t\t\tallmilestonesCount.friendship += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Breakups and Divorce') {\n\t\t\t\tallmilestonesCount.breakups_Divorce += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Family, Divorce & Education') {\n\t\t\t\tallmilestonesCount.family_Divorce_Education += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Impact & ESG Investing') {\n\t\t\t\tallmilestonesCount.impact_ESG_Investing += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Financial Independence & Investing') {\n\t\t\t\tallmilestonesCount.financial_Independence_Investing += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Secure Aging & Retirement') {\n\t\t\t\tallmilestonesCount.secure_Aging_Retirement += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Homeownership') {\n\t\t\t\tallmilestonesCount.homeownership += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Crypto & More') {\n\t\t\t\tallmilestonesCount.crypto_More += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Taxes & Insurance') {\n\t\t\t\tallmilestonesCount.taxes_Insurance += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Me, Myself & Money') {\n\t\t\t\tallmilestonesCount.me_Myself_Money += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Budgeting & Spending') {\n\t\t\t\tallmilestonesCount.budgeting_Spending += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === 'Establishing & Managing Credit') {\n\t\t\t\tallmilestonesCount.establishing_Managing_Credit += 1;\n\t\t\t}\n\t\t\tif (room.milestones[0] === ' Managing Debt') {\n\t\t\t\tallmilestonesCount.managing_debt += 1;\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\t}\n};\n\nexport const TOTAL_AUTHORS = `\nquery getAuthors($limit: Float!) {\n authors(limit: $limit) {\n edges {\n node {\n ...AuthorDetails\n \n }\n }\n pageInfo {\n total\n }\n }\n }\n\n fragment AuthorDetails on Author {\n bio\n name\n\t\tprofile\n\t\texternalID\n pillar{\n \tname\n }\n links{\n \tfacebook\n linkedin\n website\n instagram \n }\n }\n`;\n\nexport const TotalAuthorsCount = () => {\n\tconst [result] = useQuery({\n\t\tquery: TOTAL_AUTHORS,\n\t\tvariables: {\n\t\t\tlimit: 300,\n\t\t},\n\t});\n\n\tconst { fetching, error, data } = result;\n\tif (fetching) return <p>Loading...</p>;\n\tif (error) return <p>Error: {error.message}</p>;\n\tconst AuthorsCount = data.authors.pageInfo.total;\n\treturn <p>{AuthorsCount}</p>;\n};\n\nexport const authorsPillarCounts = {\n\tFinancial: 0,\n\tProfessional: 0,\n\tPersonal: 0,\n};\nlet authorsQuery = false;\nexport const AuthorsPillarsCount = () => {\n\tconst [result] = useQuery({\n\t\tquery: TOTAL_AUTHORS,\n\t\tvariables: {\n\t\t\tlimit: 300,\n\t\t},\n\t});\n\n\tconst { fetching, error, data } = result;\n\n\tif (fetching) return <p>Loading...</p>;\n\tif (error) return <p>Error: {error.message}</p>;\n\tif (authorsQuery === false) {\n\t\tauthorsQuery = true;\n\t\tdata.authors.edges.map((edge) => {\n\t\t\tif (edge.node?.pillar) {\n\t\t\t\tif (edge.node?.pillar?.name === 'Financial') {\n\t\t\t\t\tauthorsPillarCounts.Financial += 1;\n\t\t\t\t}\n\t\t\t\tif (edge.node?.pillar?.name === 'Professional') {\n\t\t\t\t\tauthorsPillarCounts.Professional += 1;\n\t\t\t\t}\n\t\t\t\tif (edge.node?.pillar?.name === 'Personal') {\n\t\t\t\t\tauthorsPillarCounts.Personal += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\t}\n};\n","import {\n\tBulkDeleteWithConfirmButton,\n\tBulkExportButton,\n} from 'ra-ui-materialui';\nimport React, { useEffect } from 'react';\nimport { useDataProvider, useNotify } from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { exportFile } from '../../../helpers';\n\nconst LivingRoomActionsButtons = (props: any) => {\n\tconst { selectedIds } = props;\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\n\tconst { mutate: exportUsers, data } = useMutation<{\n\t\tdata: Record<string, any>;\n\t}>(\n\t\t() =>\n\t\t\tdataProvider.livingRoomExportCsv({\n\t\t\t\tids: selectedIds,\n\t\t\t}),\n\t\t{\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tuseEffect(() => {\n\t\tif (data) exportFile(data?.data, 'rooms');\n\t}, [data]);\n\n\tconst exporter = async () => {\n\t\texportUsers();\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<BulkDeleteWithConfirmButton {...props} />\n\t\t\t<BulkExportButton {...props} exporter={exporter} />\n\t\t</>\n\t);\n};\n\nexport default LivingRoomActionsButtons;\n","import React, { useState, ChangeEvent } from 'react';\nimport {\n\tBooleanInput,\n\tFilter,\n\tSearchInput,\n\tSelectInput,\n\tRaRecord,\n} from 'react-admin';\n\ninterface ILivingRoomFilterProps {\n\tclasses?: Record<'button' | 'form', string>;\n\tcontext?: 'form' | 'button';\n\tvariant?: string;\n}\n\nconst LivingRoomFilter = (props: ILivingRoomFilterProps) => {\n\tconst [selectedPillar, setSelectedPillar] = useState<string>('');\n\n\tconst handlePillarChange = (\n\t\tevent: RaRecord | ChangeEvent<HTMLInputElement>,\n\t) => {\n\t\tsetSelectedPillar(event.target.value as string);\n\t};\n\n\treturn (\n\t\t<Filter {...props}>\n\t\t\t<SearchInput source=\"query\" alwaysOn />\n\t\t\t<BooleanInput\n\t\t\t\tsource=\"past\"\n\t\t\t\talwaysOn\n\t\t\t\tlabel=\"Show past living rooms\"\n\t\t\t/>\n\t\t\t<SelectInput\n\t\t\t\tsource=\"pillars\"\n\t\t\t\tchoices={[\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'Professional',\n\t\t\t\t\t\tname: 'Professional',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'Personal',\n\t\t\t\t\t\tname: 'Personal',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'Financial',\n\t\t\t\t\t\tname: 'Financial',\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t\tonChange={handlePillarChange}\n\t\t\t/>\n\t\t\t<SelectInput\n\t\t\t\tsource=\"milestones\"\n\t\t\t\tchoices={\n\t\t\t\t\tselectedPillar === 'Professional'\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Career Coaching',\n\t\t\t\t\t\t\t\t\tname: 'Career Coaching',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Leadership and Peak performance',\n\t\t\t\t\t\t\t\t\tname: 'Leadership and Peak performance',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Diversity, Equity and Inclusion',\n\t\t\t\t\t\t\t\t\tname: 'Diversity, Equity and Inclusion',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Performance Reviews and Promotions',\n\t\t\t\t\t\t\t\t\tname: 'Performance Reviews and Promotions',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Career Pivots and Job Loss',\n\t\t\t\t\t\t\t\t\tname: 'Career Pivots and Job Loss',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Fierce after 50',\n\t\t\t\t\t\t\t\t\tname: 'Fierce after 50',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Networking',\n\t\t\t\t\t\t\t\t\tname: 'Networking',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Career Search',\n\t\t\t\t\t\t\t\t\tname: 'Career Search',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Entrepreneurship',\n\t\t\t\t\t\t\t\t\tname: 'Entrepreneurship',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Mentorship',\n\t\t\t\t\t\t\t\t\tname: 'Mentorship',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: selectedPillar === 'Personal'\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Mental Health and Wellbeing',\n\t\t\t\t\t\t\t\t\tname: 'Mental Health and Wellbeing',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Spiritual Wellness',\n\t\t\t\t\t\t\t\t\tname: 'Spiritual Wellness',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Family and Home',\n\t\t\t\t\t\t\t\t\tname: 'Family and Home',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Health and Beauty',\n\t\t\t\t\t\t\t\t\tname: 'Health and Beauty',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Giving & Impact',\n\t\t\t\t\t\t\t\t\tname: 'Giving & Impact',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Food & Culture',\n\t\t\t\t\t\t\t\t\tname: 'Food & Culture',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'The Gender Lens',\n\t\t\t\t\t\t\t\t\tname: 'The Gender Lens',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Marriage & Relationships',\n\t\t\t\t\t\t\t\t\tname: 'Marriage & Relationships',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Aging & Caregiving',\n\t\t\t\t\t\t\t\t\tname: 'Aging & Caregiving',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Midlife & Menopause',\n\t\t\t\t\t\t\t\t\tname: 'Midlife & Menopause',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Adulting',\n\t\t\t\t\t\t\t\t\tname: 'Adulting',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Family Planning & Pregnancy',\n\t\t\t\t\t\t\t\t\tname: 'Family Planning & Pregnancy',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Personal Growth',\n\t\t\t\t\t\t\t\t\tname: 'Personal Growth',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Friendship',\n\t\t\t\t\t\t\t\t\tname: 'Friendship',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Breakups and Divorce',\n\t\t\t\t\t\t\t\t\tname: 'Breakups and Divorce',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: selectedPillar === 'Financial'\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Family, Divorce & Education',\n\t\t\t\t\t\t\t\t\tname: 'Family, Divorce & Education',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Impact & ESG Investing',\n\t\t\t\t\t\t\t\t\tname: 'Impact & ESG Investing',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Financial Independence & Investing',\n\t\t\t\t\t\t\t\t\tname: 'Financial Independence & Investing',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Homeownership',\n\t\t\t\t\t\t\t\t\tname: 'Homeownership',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Crypto & More',\n\t\t\t\t\t\t\t\t\tname: 'Crypto & More',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Taxes & Insurance',\n\t\t\t\t\t\t\t\t\tname: 'Taxes & Insurance',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Me, Myself & Money',\n\t\t\t\t\t\t\t\t\tname: 'Me, Myself & Money',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Budgeting & Spending',\n\t\t\t\t\t\t\t\t\tname: 'Budgeting & Spending',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Establishing & Managing Credit',\n\t\t\t\t\t\t\t\t\tname: 'Establishing & Managing Credit',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: 'Managing Debt',\n\t\t\t\t\t\t\t\t\tname: 'Managing Debt',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: []\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<SelectInput\n\t\t\t\tsource=\"hosts\"\n\t\t\t\tchoices={[\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'Host A',\n\t\t\t\t\t\tname: 'Host A',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'Host B',\n\t\t\t\t\t\tname: 'Host B',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 'Host C',\n\t\t\t\t\t\tname: 'Host C',\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t/>\n\t\t</Filter>\n\t);\n};\n\nexport default LivingRoomFilter;\n","import React, { useEffect, useState } from 'react';\nimport {\n\tList,\n\tDatagrid,\n\tTextField,\n\tListProps,\n\tDateField,\n\tEditButton,\n\t// BooleanField,\n\tUrlField,\n\tPaginationProps,\n\tPagination,\n\tuseListContext,\n\tuseNotify,\n\tuseDataProvider,\n\tImageField,\n} from 'react-admin';\nimport { useMutation } from 'react-query';\nimport { exportFile, exportFilter } from '../../helpers';\nimport TextArrayField from '../components/TextArrayField';\nimport LivingRoomActionsButtons from './components/living-room.actions';\nimport LivingRoomFilter from './components/living-room.filter';\n\ntype ILivingRoomListProps = ListProps;\n\nconst LivingRoomPagination = (props: PaginationProps) => (\n\t<Pagination rowsPerPageOptions={[10, 25, 50, 100]} {...props} />\n);\n\nexport const Aside = (props: any) => {\n\tconst { setFilter } = props;\n\tconst { filterValues } = useListContext();\n\tsetFilter(filterValues);\n\treturn null;\n};\n\nexport const LivingRoomList = (props: ILivingRoomListProps) => {\n\tconst notify = useNotify();\n\tconst dataProvider = useDataProvider();\n\tconst [filter, setFilter] = useState<any>();\n\tconst { mutate: exportRooms, data } = useMutation<{\n\t\tdata: Record<string, any>;\n\t}>(\n\t\t() =>\n\t\t\tdataProvider.livingRoomExportCsv({\n\t\t\t\tfilter: exportFilter(filter),\n\t\t\t}),\n\t\t{\n\t\t\tonError: (error: any) =>\n\t\t\t\tnotify(`Error: ${error.message}`, { type: 'warning' }),\n\t\t},\n\t);\n\n\tconst exporter = async () => {\n\t\texportRooms();\n\t};\n\n\tuseEffect(() => {\n\t\tif (data) exportFile(data?.data, 'rooms');\n\t}, [data]);\n\n\treturn (\n\t\t<List\n\t\t\tsort={{\n\t\t\t\tfield: 'created',\n\t\t\t\torder: 'DESC',\n\t\t\t}}\n\t\t\taside={<Aside setFilter={setFilter} />}\n\t\t\tfilters={<LivingRoomFilter />}\n\t\t\texporter={exporter}\n\t\t\tpagination={<LivingRoomPagination />}\n\t\t\tbulkActionButtons={<LivingRoomActionsButtons />}\n\t\t\tempty={false}\n\t\t\t{...props}\n\t\t>\n\t\t\t<Datagrid rowClick=\"show\">\n\t\t\t\t<TextField source=\"title\" />\n\t\t\t\t<ImageField source= \"header\" />\n\t\t\t\t<UrlField source=\"meetingUrl\" />\n\t\t\t\t{/* <BooleanField source=\"recorded\" /> */}\n\t\t\t\t<DateField source=\"start\" showTime />\n\t\t\t\t<DateField source=\"end\" showTime />\n\t\t\t\t{/* <TextArrayField source=\"milestones\" /> */}\n\t\t\t\t<TextArrayField source=\"pillars\" />\n\t\t\t\t<EditButton />\n\t\t\t\t{/* {!filter?.past && <EditButton />} */}\n\t\t\t</Datagrid>\n\t\t</List>\n\t);\n};\n","import React from 'react';\nimport { useQuery } from 'urql';\nimport Stack from '@mui/material/Stack';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { Resource } from 'react-admin';\nimport ArticleIcon from '@mui/icons-material/VideoCall';\nimport { CURRENT_LIVING_ROOMS } from './sessionsQuery';\nimport { LivingRoomList } from '../living-room.list';\nimport { LivingRoomShow } from '../living-room.show';\nimport { LivingRoomCreate } from '../living-room.create';\nimport { LivingRoomEdit } from '../living-room.edit';\n\nconst CurrentLivingRoomData = () => {\n\tconst [result] = useQuery({\n\t\tquery: CURRENT_LIVING_ROOMS,\n\t\tvariables: {\n\t\t\tlimit: 10,\n\t\t},\n\t});\n\n\tconst { fetching, error, data } = result;\n\n\tif (fetching)\n\t\treturn (\n\t\t\t<Stack sx={{ color: 'grey.500' }} spacing={2} direction=\"row\">\n\t\t\t\t<CircularProgress color=\"inherit\" />\n\t\t\t</Stack>\n\t\t);\n\tif (error) return <p>Error: {error.message}</p>;\n\n\tconst tCurrentRooms = data.livingRooms.pageInfo.total;\n\tif (tCurrentRooms === 0) {\n\t\treturn (\n\t\t\t<Resource\n\t\t\t\tname=\"livingRooms\"\n\t\t\t\toptions={{\n\t\t\t\t\tlabel: 'Living Rooms',\n\t\t\t\t}}\n\t\t\t\tshow={LivingRoomShow}\n\t\t\t\tlist={LivingRoomList}\n\t\t\t\tcreate={LivingRoomCreate}\n\t\t\t\tedit={LivingRoomEdit}\n\t\t\t\ticon={ArticleIcon}\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<>\n\t\t\t<Resource\n\t\t\t\tname=\"livingRooms\"\n\t\t\t\toptions={{\n\t\t\t\t\tlabel: 'Living Rooms',\n\t\t\t\t}}\n\t\t\t\tshow={LivingRoomShow}\n\t\t\t\tlist={LivingRoomList}\n\t\t\t\tcreate={LivingRoomCreate}\n\t\t\t\tedit={LivingRoomEdit}\n\t\t\t\ticon={ArticleIcon}\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default CurrentLivingRoomData;\n","import React from 'react';\nimport {\n\tChart as ChartJS,\n\tBarElement,\n\tTooltip,\n\tLegend,\n\tCategoryScale,\n\tLinearScale,\n} from 'chart.js';\nimport { Bar } from 'react-chartjs-2';\nimport { pillarCounts, PillarsCount } from '../sessionsQuery';\n\nChartJS.register(BarElement, Tooltip, Legend, CategoryScale, LinearScale);\n\nexport const PillarsGroupedChart = () => {\n\tPillarsCount();\n\tconst info = {\n\t\tlabels: ['Professional', 'Personal', 'Financial'],\n\t\tdatasets: [\n\t\t\t{\n\t\t\t\tlabel: '2021',\n\t\t\t\tbackgroundColor: 'rgba(75,192,192,0.2)',\n\t\t\t\tborderColor: 'rgba(75,192,192,1)',\n\t\t\t\tborderWidth: 1,\n\t\t\t\tdata: [\n\t\t\t\t\tpillarCounts.Professional2021,\n\t\t\t\t\tpillarCounts.Personal2021,\n\t\t\t\t\tpillarCounts.Financial2021,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: '2022',\n\t\t\t\tbackgroundColor: 'rgba(58, 110, 199, 0.2)',\n\t\t\t\tborderColor: 'rgba(58, 110, 199, 1)',\n\t\t\t\tborderWidth: 1,\n\t\t\t\tdata: [\n\t\t\t\t\tpillarCounts.Professional2022,\n\t\t\t\t\tpillarCounts.Personal2022,\n\t\t\t\t\tpillarCounts.Financial2022,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: '2023',\n\t\t\t\tbackgroundColor: 'rgba(246, 122, 38, 0.2)',\n\t\t\t\tborderColor: 'rgba(246, 122, 38, 1)',\n\t\t\t\tborderWidth: 1,\n\t\t\t\tdata: [\n\t\t\t\t\tpillarCounts.Professional2023,\n\t\t\t\t\tpillarCounts.Personal2023,\n\t\t\t\t\tpillarCounts.Financial2023,\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t};\n\treturn (\n\t\t<div className=\"App\">\n\t\t\t<Bar\n\t\t\t\tdata={info}\n\t\t\t\twidth={360}\n\t\t\t\theight={320}\n\t\t\t\toptions={{\n\t\t\t\t\tmaintainAspectRatio: false,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n","import React from 'react';\nimport {\n\tChart as ChartJS,\n\tPointElement,\n\tTooltip,\n\tLegend,\n\tCategoryScale,\n\tLinearScale,\n\tLineElement,\n} from 'chart.js';\nimport { Line } from 'react-chartjs-2';\nimport { monthCount, SessionCount } from '../sessionsQuery';\n\nChartJS.register(\n\tPointElement,\n\tTooltip,\n\tLegend,\n\tCategoryScale,\n\tLinearScale,\n\tLineElement,\n);\n\nexport const SeesionsMonthlyChart = () => {\n\tSessionCount();\n\tconst data = {\n\t\tlabels: [\n\t\t\t'Jan',\n\t\t\t'Feb',\n\t\t\t'Mar',\n\t\t\t'Apr',\n\t\t\t'May',\n\t\t\t'Jun',\n\t\t\t'Jul',\n\t\t\t'Aug',\n\t\t\t'Sep',\n\t\t\t'Oct',\n\t\t\t'Nov',\n\t\t\t'Dec',\n\t\t],\n\t\tdatasets: [\n\t\t\t{\n\t\t\t\tlabel: '2021',\n\t\t\t\tdata: [\n\t\t\t\t\tmonthCount.jan2021,\n\t\t\t\t\tmonthCount.feb2021,\n\t\t\t\t\tmonthCount.mar2021,\n\t\t\t\t\tmonthCount.apr2021,\n\t\t\t\t\tmonthCount.may2021,\n\t\t\t\t\tmonthCount.jun2021,\n\t\t\t\t\tmonthCount.jul2021,\n\t\t\t\t\tmonthCount.aug2021,\n\t\t\t\t\tmonthCount.sep2021,\n\t\t\t\t\tmonthCount.oct2021,\n\t\t\t\t\tmonthCount.nov2021,\n\t\t\t\t\tmonthCount.dec2021,\n\t\t\t\t],\n\t\t\t\tfill: true,\n\t\t\t\tbackgroundColor: 'rgba(75,192,192,0.2)',\n\t\t\t\tborderColor: 'rgba(75,192,192,1)',\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: '2022',\n\t\t\t\tdata: [\n\t\t\t\t\tmonthCount.jan2022,\n\t\t\t\t\tmonthCount.feb2022,\n\t\t\t\t\tmonthCount.mar2022,\n\t\t\t\t\tmonthCount.apr2022,\n\t\t\t\t\tmonthCount.may2022,\n\t\t\t\t\tmonthCount.jun2022,\n\t\t\t\t\tmonthCount.jul2022,\n\t\t\t\t\tmonthCount.aug2022,\n\t\t\t\t\tmonthCount.sep2022,\n\t\t\t\t\tmonthCount.oct2022,\n\t\t\t\t\tmonthCount.nov2022,\n\t\t\t\t\tmonthCount.dec2022,\n\t\t\t\t],\n\t\t\t\tfill: false,\n\t\t\t\tborderColor: '#742774',\n\t\t\t},\n\t\t],\n\t};\n\n\treturn (\n\t\t<div className=\"App\">\n\t\t\t<Line\n\t\t\t\tdata={data}\n\t\t\t\twidth={360}\n\t\t\t\theight={320}\n\t\t\t\toptions={{\n\t\t\t\t\tmaintainAspectRatio: false,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n","import React from 'react';\nimport { Treemap, Tooltip } from 'recharts';\nimport { allmilestonesCount, TotalMilestonesCount } from '../sessionsQuery';\n\nconst CustomizedContent = (props: any) => {\n\tconst {\n\t\troot,\n\t\tdepth,\n\t\tx,\n\t\ty,\n\t\twidth,\n\t\theight,\n\t\tindex,\n\t\tcolors,\n\t\tname,\n\t\tsize,\n\t\tvalue,\n\t} = props;\n\tconsole.log(value);\n\n\treturn (\n\t\t<>\n\t\t\t<g>\n\t\t\t\t<rect\n\t\t\t\t\tx={x}\n\t\t\t\t\ty={y}\n\t\t\t\t\twidth={width}\n\t\t\t\t\theight={height}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tfill:\n\t\t\t\t\t\t\tdepth < 2\n\t\t\t\t\t\t\t\t? colors[\n\t\t\t\t\t\t\t\t\t\tMath.floor(\n\t\t\t\t\t\t\t\t\t\t\t(index / root.children.length) * 6,\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t ]\n\t\t\t\t\t\t\t\t: 'none',\n\t\t\t\t\t\tstroke: '#fff',\n\t\t\t\t\t\tstrokeWidth: 2 / (depth + 1e-10),\n\t\t\t\t\t\tstrokeOpacity: 1 / (depth + 1e-10),\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t{depth === 1 && value > 0 ? (\n\t\t\t\t\t<text\n\t\t\t\t\t\tx={x + width / 2}\n\t\t\t\t\t\ty={y + height / 2 + 7}\n\t\t\t\t\t\ttextAnchor=\"middle\"\n\t\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\t\tfontSize={14}\n\t\t\t\t\t\tstyle={{ fontFamily: 'Roboto', fontWeight: 5 }}\n\t\t\t\t\t>\n\t\t\t\t\t\t{`${name} (${size})`}\n\t\t\t\t\t</text>\n\t\t\t\t) : null}\n\t\t\t</g>\n\t\t</>\n\t);\n};\n\nexport const AllChartMilestone = () => {\n\tTotalMilestonesCount();\n\tconst data = [\n\t\t{\n\t\t\tname: 'Career Coaching',\n\t\t\tsize: allmilestonesCount.career_Coaching,\n\t\t},\n\t\t{\n\t\t\tname: 'Leadership and Peak Performance',\n\t\t\tsize: allmilestonesCount.leadership_Peak_performance,\n\t\t},\n\t\t{\n\t\t\tname: 'Diversity, Equity and Inclusion',\n\t\t\tsize: allmilestonesCount.diversity_Equity_Inclusion,\n\t\t},\n\t\t{\n\t\t\tname: 'Performance Reviews and Promotions',\n\t\t\tsize: allmilestonesCount.performance_Reviews_Promotions,\n\t\t},\n\t\t{\n\t\t\tname: 'Career Pivots and Job Loss',\n\t\t\tsize: allmilestonesCount.career_Pivots_Job_Loss,\n\t\t},\n\t\t{\n\t\t\tname: 'Fierce after 50',\n\t\t\tsize: allmilestonesCount.fierce_after_50,\n\t\t},\n\t\t{\n\t\t\tname: 'Networking',\n\t\t\tsize: allmilestonesCount.networking,\n\t\t},\n\t\t{\n\t\t\tname: 'Career Search',\n\t\t\tsize: allmilestonesCount.career_Search,\n\t\t},\n\t\t{\n\t\t\tname: 'Entrepreneurship',\n\t\t\tsize: allmilestonesCount.entrepreneurship,\n\t\t},\n\t\t{\n\t\t\tname: 'Mentorship',\n\t\t\tsize: allmilestonesCount.mentorship,\n\t\t},\n\t\t{\n\t\t\tname: 'Mental Health and Wellbeing',\n\t\t\tsize: allmilestonesCount.mental_Health_Wellbeing,\n\t\t},\n\t\t{\n\t\t\tname: 'Spiritual Wellness',\n\t\t\tsize: allmilestonesCount.spiritual_Wellness,\n\t\t},\n\t\t{\n\t\t\tname: 'Family and Home',\n\t\t\tsize: allmilestonesCount.family_Home,\n\t\t},\n\t\t{\n\t\t\tname: 'Health and Beauty',\n\t\t\tsize: allmilestonesCount.health_Beauty,\n\t\t},\n\t\t{\n\t\t\tname: 'Giving & Impact',\n\t\t\tsize: allmilestonesCount.giving_Impact,\n\t\t},\n\t\t{\n\t\t\tname: 'Food & Culture',\n\t\t\tsize: allmilestonesCount.food_Culture,\n\t\t},\n\t\t{\n\t\t\tname: 'The Gender Lens',\n\t\t\tsize: allmilestonesCount.gender_Lens,\n\t\t},\n\t\t{\n\t\t\tname: 'Marriage & Relationships',\n\t\t\tsize: allmilestonesCount.marriage_Relationships,\n\t\t},\n\t\t{\n\t\t\tname: 'Aging & Caregiving',\n\t\t\tsize: allmilestonesCount.aging_Caregiving,\n\t\t},\n\t\t{\n\t\t\tname: 'Midlife & Menopause',\n\t\t\tsize: allmilestonesCount.midlife_Menopause,\n\t\t},\n\t\t{\n\t\t\tname: 'Adulting',\n\t\t\tsize: allmilestonesCount.Adulting,\n\t\t},\n\t\t{\n\t\t\tname: 'Family Planning & Pregnancy',\n\t\t\tsize: allmilestonesCount.family_Planning_Pregnancy,\n\t\t},\n\t\t{\n\t\t\tname: 'Personal Growth',\n\t\t\tsize: allmilestonesCount.personal_Growth,\n\t\t},\n\t\t{\n\t\t\tname: 'Friendship',\n\t\t\tsize: allmilestonesCount.friendship,\n\t\t},\n\t\t{\n\t\t\tname: 'Breakups and Divorce',\n\t\t\tsize: allmilestonesCount.breakups_Divorce,\n\t\t},\n\t\t{\n\t\t\tname: 'Family, Divorce & Education',\n\t\t\tsize: allmilestonesCount.family_Divorce_Education,\n\t\t},\n\t\t{\n\t\t\tname: 'Impact & ESG Investing',\n\t\t\tsize: allmilestonesCount.impact_ESG_Investing,\n\t\t},\n\t\t{\n\t\t\tname: 'Financial Independence & Investing',\n\t\t\tsize: allmilestonesCount.financial_Independence_Investing,\n\t\t},\n\t\t{\n\t\t\tname: 'Secure Aging & Retirement',\n\t\t\tsize: allmilestonesCount.secure_Aging_Retirement,\n\t\t},\n\t\t{\n\t\t\tname: 'Homeownership',\n\t\t\tsize: allmilestonesCount.homeownership,\n\t\t},\n\t\t{\n\t\t\tname: 'Crypto & More',\n\t\t\tsize: allmilestonesCount.crypto_More,\n\t\t},\n\t\t{\n\t\t\tname: 'Taxes & Insurance',\n\t\t\tsize: allmilestonesCount.taxes_Insurance,\n\t\t},\n\t\t{\n\t\t\tname: 'Me, Myself & Money',\n\t\t\tsize: allmilestonesCount.me_Myself_Money,\n\t\t},\n\t\t{\n\t\t\tname: 'Budgeting & Spending',\n\t\t\tsize: allmilestonesCount.budgeting_Spending,\n\t\t},\n\t\t{\n\t\t\tname: 'Establishing & Managing Credit',\n\t\t\tsize: allmilestonesCount.establishing_Managing_Credit,\n\t\t},\n\t\t{\n\t\t\tname: 'Managing Debt',\n\t\t\tsize: allmilestonesCount.managing_debt,\n\t\t},\n\t];\n\tconst COLORS = [\n\t\t'#8889DD',\n\t\t'#9597E4',\n\t\t'#8DC77B',\n\t\t'#A5D297',\n\t\t'#E2CF45',\n\t\t'#F8C12D',\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Treemap\n\t\t\t\t\twidth={920}\n\t\t\t\t\theight={400}\n\t\t\t\t\tdata={data}\n\t\t\t\t\tdataKey=\"size\"\n\t\t\t\t\taspectRatio={4 / 3}\n\t\t\t\t\tstroke=\"#fff\"\n\t\t\t\t\tfill=\"#8884d8\"\n\t\t\t\t\tcontent={<CustomizedContent colors={COLORS} />}\n\t\t\t\t>\n\t\t\t\t\t<Tooltip />\n\t\t\t\t</Treemap>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nexport const ProfessionalChart = () => {\n\tconsole.log(allmilestonesCount);\n\tTotalMilestonesCount();\n\tconsole.log(allmilestonesCount);\n\tconst data = [\n\t\t{\n\t\t\tname: 'Career Coaching',\n\t\t\tsize: allmilestonesCount.career_Coaching,\n\t\t},\n\t\t{\n\t\t\tname: 'Leadership and Peak Performance',\n\t\t\tsize: allmilestonesCount.leadership_Peak_performance,\n\t\t},\n\t\t{\n\t\t\tname: 'Diversity, Equity and Inclusion',\n\t\t\tsize: allmilestonesCount.diversity_Equity_Inclusion,\n\t\t},\n\t\t{\n\t\t\tname: 'Performance Reviews and Promotions',\n\t\t\tsize: allmilestonesCount.performance_Reviews_Promotions,\n\t\t},\n\t\t{\n\t\t\tname: 'Career Pivots and Job Loss',\n\t\t\tsize: allmilestonesCount.career_Pivots_Job_Loss,\n\t\t},\n\t\t{\n\t\t\tname: 'Fierce after 50',\n\t\t\tsize: allmilestonesCount.fierce_after_50,\n\t\t},\n\t\t{\n\t\t\tname: 'Networking',\n\t\t\tsize: allmilestonesCount.networking,\n\t\t},\n\t\t{\n\t\t\tname: 'Career Search',\n\t\t\tsize: allmilestonesCount.career_Search,\n\t\t},\n\t\t{\n\t\t\tname: 'Entrepreneurship',\n\t\t\tsize: allmilestonesCount.entrepreneurship,\n\t\t},\n\t\t{\n\t\t\tname: 'Mentorship',\n\t\t\tsize: allmilestonesCount.mentorship,\n\t\t},\n\t];\n\tconst COLORS = [\n\t\t'#8889DD',\n\t\t'#9597E4',\n\t\t'#8DC77B',\n\t\t'#A5D297',\n\t\t'#E2CF45',\n\t\t'#F8C12D',\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Treemap\n\t\t\t\t\twidth={920}\n\t\t\t\t\theight={400}\n\t\t\t\t\tdata={data}\n\t\t\t\t\tdataKey=\"size\"\n\t\t\t\t\taspectRatio={4 / 3}\n\t\t\t\t\tstroke=\"#fff\"\n\t\t\t\t\tfill=\"#8884d8\"\n\t\t\t\t\tcontent={<CustomizedContent colors={COLORS} />}\n\t\t\t\t>\n\t\t\t\t\t<Tooltip />\n\t\t\t\t</Treemap>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nexport const PersonalChart = () => {\n\tconsole.log(allmilestonesCount);\n\tTotalMilestonesCount();\n\tconsole.log(allmilestonesCount);\n\tconst data = [\n\t\t{\n\t\t\tname: 'Mental Health and Wellbeing',\n\t\t\tsize: allmilestonesCount.mental_Health_Wellbeing,\n\t\t},\n\t\t{\n\t\t\tname: 'Spiritual Wellness',\n\t\t\tsize: allmilestonesCount.spiritual_Wellness,\n\t\t},\n\t\t{\n\t\t\tname: 'Family and Home',\n\t\t\tsize: allmilestonesCount.family_Home,\n\t\t},\n\t\t{\n\t\t\tname: 'Health and Beauty',\n\t\t\tsize: allmilestonesCount.health_Beauty,\n\t\t},\n\t\t{\n\t\t\tname: 'Giving & Impact',\n\t\t\tsize: allmilestonesCount.giving_Impact,\n\t\t},\n\t\t{\n\t\t\tname: 'Food & Culture',\n\t\t\tsize: allmilestonesCount.food_Culture,\n\t\t},\n\t\t{\n\t\t\tname: 'The Gender Lens',\n\t\t\tsize: allmilestonesCount.gender_Lens,\n\t\t},\n\t\t{\n\t\t\tname: 'Marriage & Relationships',\n\t\t\tsize: allmilestonesCount.marriage_Relationships,\n\t\t},\n\t\t{\n\t\t\tname: 'Aging & Caregiving',\n\t\t\tsize: allmilestonesCount.aging_Caregiving,\n\t\t},\n\t\t{\n\t\t\tname: 'Midlife & Menopause',\n\t\t\tsize: allmilestonesCount.midlife_Menopause,\n\t\t},\n\t\t{\n\t\t\tname: 'Adulting',\n\t\t\tsize: allmilestonesCount.Adulting,\n\t\t},\n\t\t{\n\t\t\tname: 'Family Planning & Pregnancy',\n\t\t\tsize: allmilestonesCount.family_Planning_Pregnancy,\n\t\t},\n\t\t{\n\t\t\tname: 'Personal Growth',\n\t\t\tsize: allmilestonesCount.personal_Growth,\n\t\t},\n\t\t{\n\t\t\tname: 'Friendship',\n\t\t\tsize: allmilestonesCount.friendship,\n\t\t},\n\t\t{\n\t\t\tname: 'Breakups and Divorce',\n\t\t\tsize: allmilestonesCount.breakups_Divorce,\n\t\t},\n\t];\n\tconst COLORS = [\n\t\t'#8889DD',\n\t\t'#9597E4',\n\t\t'#8DC77B',\n\t\t'#A5D297',\n\t\t'#E2CF45',\n\t\t'#F8C12D',\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Treemap\n\t\t\t\t\twidth={920}\n\t\t\t\t\theight={400}\n\t\t\t\t\tdata={data}\n\t\t\t\t\tdataKey=\"size\"\n\t\t\t\t\taspectRatio={4 / 3}\n\t\t\t\t\tstroke=\"#fff\"\n\t\t\t\t\tfill=\"#8884d8\"\n\t\t\t\t\tcontent={<CustomizedContent colors={COLORS} />}\n\t\t\t\t>\n\t\t\t\t\t{/* <Tooltip /> */}\n\t\t\t\t</Treemap>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nexport const FinancialChart = () => {\n\tconsole.log(allmilestonesCount);\n\tTotalMilestonesCount();\n\tconsole.log(allmilestonesCount);\n\tconst data = [\n\t\t{\n\t\t\tname: 'Family, Divorce & Education',\n\t\t\tsize: allmilestonesCount.family_Divorce_Education,\n\t\t},\n\t\t{\n\t\t\tname: 'Impact & ESG Investing',\n\t\t\tsize: allmilestonesCount.impact_ESG_Investing,\n\t\t},\n\t\t{\n\t\t\tname: 'Financial Independence & Investing',\n\t\t\tsize: allmilestonesCount.financial_Independence_Investing,\n\t\t},\n\t\t{\n\t\t\tname: 'Secure Aging & Retirement',\n\t\t\tsize: allmilestonesCount.secure_Aging_Retirement,\n\t\t},\n\t\t{\n\t\t\tname: 'Homeownership',\n\t\t\tsize: allmilestonesCount.homeownership,\n\t\t},\n\t\t{\n\t\t\tname: 'Crypto & More',\n\t\t\tsize: allmilestonesCount.crypto_More,\n\t\t},\n\t\t{\n\t\t\tname: 'Taxes & Insurance',\n\t\t\tsize: allmilestonesCount.taxes_Insurance,\n\t\t},\n\t\t{\n\t\t\tname: 'Me, Myself & Money',\n\t\t\tsize: allmilestonesCount.me_Myself_Money,\n\t\t},\n\t\t{\n\t\t\tname: 'Budgeting & Spending',\n\t\t\tsize: allmilestonesCount.budgeting_Spending,\n\t\t},\n\t\t{\n\t\t\tname: 'Establishing & Managing Credit',\n\t\t\tsize: allmilestonesCount.establishing_Managing_Credit,\n\t\t},\n\t\t{\n\t\t\tname: 'Managing Debt',\n\t\t\tsize: allmilestonesCount.managing_debt,\n\t\t},\n\t];\n\tconst COLORS = [\n\t\t'#8889DD',\n\t\t'#9597E4',\n\t\t'#8DC77B',\n\t\t'#A5D297',\n\t\t'#E2CF45',\n\t\t'#F8C12D',\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Treemap\n\t\t\t\t\twidth={920}\n\t\t\t\t\theight={400}\n\t\t\t\t\tdata={data}\n\t\t\t\t\tdataKey=\"size\"\n\t\t\t\t\taspectRatio={4 / 3}\n\t\t\t\t\tstroke=\"#fff\"\n\t\t\t\t\tfill=\"#8884d8\"\n\t\t\t\t\tcontent={<CustomizedContent colors={COLORS} />}\n\t\t\t\t>\n\t\t\t\t\t<Tooltip />\n\t\t\t\t</Treemap>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n","import React, { useState } from 'react';\nimport { BsGrid } from 'react-icons/bs';\nimport MenuItem from '@mui/material/MenuItem';\nimport Select from '@mui/material/Select';\nimport { Typography } from '@mui/material';\nimport {\n\tAllChartMilestone,\n\tFinancialChart,\n\tPersonalChart,\n\tProfessionalChart,\n} from './charts/milestonesTreeChart';\n\nconst Spacer = () => <span style={{ margin: '20px' }} />;\n\nexport const PillarDropdown = () => {\n\tconst [selectedOption, setSelectedOption] = useState('all');\n\tconst [showComponent, setShowComponent] = useState(true);\n\n\tconst handleChange = (event) => {\n\t\tsetSelectedOption(event.target.value);\n\t\tsetShowComponent(true);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\t// float: 'right',\n\t\t\t\t\tdisplay: 'inline-block',\n\t\t\t\t\tpadding: '10px',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<BsGrid\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tdisplay: 'inline-block',\n\t\t\t\t\t\tmarginTop: '10px',\n\t\t\t\t\t\tmarginLeft: '10px',\n\t\t\t\t\t\tmarginRight: '10px',\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<Select\n\t\t\t\t\tvalue={selectedOption}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tsx={{\n\t\t\t\t\t\twidth: '200px',\n\t\t\t\t\t\theight: '40px',\n\t\t\t\t\t\tmargin: '10px',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<MenuItem value=\"all\">All Pillars</MenuItem>\n\t\t\t\t\t<MenuItem value=\"Professional\">Professional</MenuItem>\n\t\t\t\t\t<MenuItem value=\"Personal\">Personal</MenuItem>\n\t\t\t\t\t<MenuItem value=\"Financial\">Financial</MenuItem>\n\t\t\t\t</Select>\n\t\t\t\t<Spacer />\n\t\t\t\t{showComponent && selectedOption === 'all' && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tfloat: 'right',\n\t\t\t\t\t\t\t\tmarginTop: '10px',\n\t\t\t\t\t\t\t\tmarginLeft: '10px',\n\t\t\t\t\t\t\t\tmarginRight: '10px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tMilestones wise sessions of all pillars\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<AllChartMilestone />\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t{showComponent && selectedOption === 'Professional' && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tfloat: 'right',\n\t\t\t\t\t\t\t\tmarginTop: '10px',\n\t\t\t\t\t\t\t\tmarginLeft: '10px',\n\t\t\t\t\t\t\t\tmarginRight: '10px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tMilestones wise sessions of professional pillar\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<ProfessionalChart />\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t{showComponent && selectedOption === 'Personal' && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tfloat: 'right',\n\t\t\t\t\t\t\t\tmarginTop: '10px',\n\t\t\t\t\t\t\t\tmarginLeft: '10px',\n\t\t\t\t\t\t\t\tmarginRight: '10px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tMilestones wise sessions of personal pillar\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<PersonalChart />\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t{showComponent && selectedOption === 'Financial' && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tfloat: 'right',\n\t\t\t\t\t\t\t\tmarginTop: '10px',\n\t\t\t\t\t\t\t\tmarginLeft: '10px',\n\t\t\t\t\t\t\t\tmarginRight: '10px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tMilestones wise sessions of financial pillar\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<FinancialChart />\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</>\n\t);\n};\n","import React from 'react';\nimport { Tab, Container, Typography, Paper } from '@mui/material';\nimport TabPanel from '@mui/lab/TabPanel';\nimport TabList from '@mui/lab/TabList';\nimport TabContext from '@mui/lab/TabContext';\n// import PastLivingRoomData from '../past-living-room';\nimport CurrentLivingRoomData from '../current-living-room';\nimport { PillarsGroupedChart } from '../charts/pillarsgroupedChart';\nimport { SeesionsMonthlyChart } from '../charts/compareChart';\nimport { PillarDropdown } from '../pillarDropdown';\n\nconst card3 = {\n\twidth: '450px',\n\theight: '420px',\n\tpadding: '32px',\n\tmarginRight: '10px',\n\tmarginTop: '10px',\n\tmarginLeft: '70px',\n\tmarginBottom: '10px',\n};\nconst card2 = {\n\twidth: '450px',\n\theight: '420px',\n\tpadding: '32px',\n\tmarginTop: '10px',\n\tmarginRight: '30px',\n\tmarginBottom: '10px',\n};\nconst card4 = {\n\twidth: '1030px',\n\theight: '540px',\n\tpadding: '10px',\n\tdisplay: 'flex',\n\tmargin: '10px',\n};\n\nexport const ActiveSessionContent = () => {\n\t// const [value, setValue] = React.useState('1');\n\t// const handleChange = (event: React.SyntheticEvent, newValue: string) => {\n\t// setValue(newValue);\n\t// };\n\n\tconst [index, setIndex] = React.useState('living-room-data');\n\n\tconst livingHandleChange = (\n\t\tevent: React.SyntheticEvent,\n\t\tnewIndex: string,\n\t) => {\n\t\tsetIndex(newIndex);\n\t};\n\treturn (\n\t\t<>\n\t\t\t<TabContext value={index}>\n\t\t\t\t<TabList\n\t\t\t\t\tonChange={livingHandleChange}\n\t\t\t\t\taria-label=\"living-room-active-tabs\"\n\t\t\t\t>\n\t\t\t\t\t<Tab label=\"Living Room Data\" value=\"living-room-data\" />\n\t\t\t\t\t<Tab\n\t\t\t\t\t\tlabel=\"Living Room Graphical Analytics\"\n\t\t\t\t\t\tvalue=\"living-room-chart\"\n\t\t\t\t\t/>\n\t\t\t\t</TabList>\n\t\t\t\t<TabPanel value=\"living-room-data\">\n\t\t\t\t\t<Container\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: '1000px',\n\t\t\t\t\t\t\theight: '600px',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\t\tfloat: 'left',\n\t\t\t\t\t\t\tbackgroundColor: 'white',\n\t\t\t\t\t\t\tborderRadius: '5px',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Typography variant=\"h5\" component=\"h2\">\n\t\t\t\t\t\t\tLiving Rooms\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<CurrentLivingRoomData />\n\t\t\t\t\t</Container>\n\t\t\t\t</TabPanel>\n\t\t\t\t<TabPanel value=\"living-room-chart\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Paper elevation={3} style={card3}>\n\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tmarginBottom: '20px',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tPillar wise sessions\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<PillarsGroupedChart />\n\t\t\t\t\t\t</Paper>\n\t\t\t\t\t\t<Paper elevation={3} style={card2}>\n\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tmarginBottom: '20px',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tMost sessions happened\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<SeesionsMonthlyChart />\n\t\t\t\t\t\t</Paper>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Paper elevation={3} style={card4}>\n\t\t\t\t\t\t<PillarDropdown />\n\t\t\t\t\t</Paper>\n\t\t\t\t</TabPanel>\n\t\t\t</TabContext>\n\t\t</>\n\t);\n};\n","import React from 'react';\nimport { Resource } from 'react-admin';\nimport ArticleIcon from '@mui/icons-material/VideoCall';\nimport { LivingRoomList } from '../living-room.list';\nimport { LivingRoomShow } from '../living-room.show';\nimport { LivingRoomCreate } from '../living-room.create';\nimport { LivingRoomEdit } from '../living-room.edit';\n\nconst PastLivingRoomData = () => {\n\treturn (\n\t\t<Resource\n\t\t\tname=\"livingRooms\"\n\t\t\toptions={{\n\t\t\t\tlabel: 'Living Rooms',\n\t\t\t}}\n\t\t\tshow={LivingRoomShow}\n\t\t\tlist={LivingRoomList}\n\t\t\tcreate={LivingRoomCreate}\n\t\t\tedit={LivingRoomEdit}\n\t\t\ticon={ArticleIcon}\n\t\t/>\n\t);\n};\n\nexport default PastLivingRoomData;\n","import React from 'react';\nimport { Box, Tab, Container, Typography } from '@mui/material';\nimport TabPanel from '@mui/lab/TabPanel';\nimport TabList from '@mui/lab/TabList';\nimport TabContext from '@mui/lab/TabContext';\nimport PastLivingRoomData from '../past-living-room';\nimport CurrentLivingRoomData from '../current-living-room';\nimport { PillarsGroupedChart } from '../charts/pillarsgroupedChart';\nimport { SeesionsMonthlyChart } from '../charts/compareChart';\nimport { AllChartMilestone } from '../charts/milestonesTreeChart';\n\nconst card2 = {\n\twidth: '450px',\n\theight: '400px',\n\tpadding: '10px',\n\tmargin: '10px',\n};\nconst card3 = {\n\twidth: '450px',\n\theight: '400px',\n\tpadding: '10px',\n\tmargin: '10px',\n};\nconst card4 = {\n\twidth: '1100px',\n\theight: '700px',\n\tpadding: '0px',\n\tdisplay: 'flex',\n\tmargin: '10px',\n\tbackgroundColor: '#edfce8',\n\tfontFamily: 'Montserrat',\n};\n\nexport const AttendeesSessionContent = () => {\n\tconst [value, setValue] = React.useState('1');\n\tconst handleChange = (event: React.SyntheticEvent, newValue: string) => {\n\t\tsetValue(newValue);\n\t};\n\treturn (\n\t\t<>\n\t\t\t<Container\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Container\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\twidth: '250px',\n\t\t\t\t\t\theight: '400px',\n\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\tmargin: '10px',\n\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\toverflowX: 'auto',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Typography variant=\"h5\" component=\"h2\">\n\t\t\t\t\t\tLiving Rooms\n\t\t\t\t\t</Typography>\n\t\t\t\t\t<TabContext value={value}>\n\t\t\t\t\t\t<TabList\n\t\t\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\t\t\taria-label=\"living rooms\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Tab label=\"Current\" value=\"1\" />\n\t\t\t\t\t\t\t<Tab label=\"Past\" value=\"2\" />\n\t\t\t\t\t\t</TabList>\n\n\t\t\t\t\t\t<TabPanel value=\"1\">\n\t\t\t\t\t\t\t<CurrentLivingRoomData />\n\t\t\t\t\t\t</TabPanel>\n\t\t\t\t\t\t<TabPanel value=\"2\">\n\t\t\t\t\t\t\t<PastLivingRoomData />\n\t\t\t\t\t\t</TabPanel>\n\t\t\t\t\t</TabContext>\n\t\t\t\t</Container>\n\t\t\t\t<Container style={card2}>\n\t\t\t\t\t<Typography variant=\"h5\" component=\"h2\">\n\t\t\t\t\t\tPillar wise Sessions\n\t\t\t\t\t</Typography>\n\t\t\t\t\t<PillarsGroupedChart />\n\t\t\t\t</Container>\n\t\t\t\t<Container style={card3}>\n\t\t\t\t\t<Typography variant=\"h5\" component=\"h2\">\n\t\t\t\t\t\tMost Sessions Happened in 2021\n\t\t\t\t\t</Typography>\n\t\t\t\t\t<SeesionsMonthlyChart />\n\t\t\t\t</Container>\n\t\t\t</Container>\n\t\t\t<Box style={card4}>\n\t\t\t\t<AllChartMilestone />\n\t\t\t</Box>\n\t\t</>\n\t);\n};\n","import React from 'react';\nimport { useQuery } from 'urql';\nimport Stack from '@mui/material/Stack';\nimport Box from '@mui/material/Box';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { DataGrid, GridColDef } from '@mui/x-data-grid';\nimport { TOTAL_AUTHORS } from './components/sessionsQuery';\n\nexport const AuthorDataList = () => {\n\tconst [result] = useQuery({\n\t\tquery: TOTAL_AUTHORS,\n\t\tvariables: {\n\t\t\tlimit: 100,\n\t\t},\n\t});\n\tconst { fetching, error, data } = result;\n\n\tif (fetching)\n\t\treturn (\n\t\t\t<Stack sx={{ color: 'grey.500' }} spacing={2} direction=\"row\">\n\t\t\t\t<CircularProgress color=\"inherit\" />\n\t\t\t</Stack>\n\t\t);\n\tif (error) return <p>Error: {error.message}</p>;\n\tconst authors = data.authors.edges?.map((edge) => edge.node) || [];\n\n\tconst columns: GridColDef[] = [\n\t\t{\n\t\t\tfield: 'name',\n\t\t\theaderName: 'Author Name',\n\t\t\twidth: 600,\n\t\t\theaderClassName: 'super-app-theme--header',\n\t\t},\n\t\t{\n\t\t\tfield: 'image',\n\t\t\theaderName: 'Profile',\n\t\t\twidth: 550,\n\t\t\theaderClassName: 'super-app-theme--header',\n\t\t\trenderCell: (params) => (\n\t\t\t\t<img\n\t\t\t\t\tsrc={params.value}\n\t\t\t\t\talt=\"pro-pic\"\n\t\t\t\t\twidth={100}\n\t\t\t\t\theight={100}\n\t\t\t\t/>\n\t\t\t),\n\t\t},\n\t];\n\n\tconst rows = authors.map((room, index) => ({\n\t\tid: index + 1,\n\t\tname: room.name,\n\t\timage: room.profile,\n\t\tbio: room.bio,\n\t}));\n\treturn (\n\t\t<>\n\t\t\t<Box\n\t\t\t\tsx={{\n\t\t\t\t\theight: 300,\n\t\t\t\t\twidth: '100%',\n\t\t\t\t\t'& .super-app-theme--header': {\n\t\t\t\t\t\tfontWeight: 'bold',\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<DataGrid\n\t\t\t\t\trows={rows}\n\t\t\t\t\tcolumns={columns}\n\t\t\t\t\tinitialState={{\n\t\t\t\t\t\tpagination: {\n\t\t\t\t\t\t\tpaginationModel: {\n\t\t\t\t\t\t\t\tpageSize: 10,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\tpageSizeOptions={[10]}\n\t\t\t\t\tcheckboxSelection\n\t\t\t\t\tdisableRowSelectionOnClick\n\t\t\t\t\tautoHeight\n\t\t\t\t/>\n\t\t\t</Box>\n\t\t</>\n\t);\n};\n","import React from 'react';\nimport { Show, ShowProps, Tab, TabbedShowLayout, TextField } from 'react-admin';\n\nexport const AuthorDataShow = (props: ShowProps) => (\n\t<Show>\n\t\t<TabbedShowLayout>\n\t\t\t<Tab label=\"Authors data\">\n\t\t\t\t<TextField\n\t\t\t\t\tsource=\"name\"\n\t\t\t\t\tlabel=\"\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tfontSize: '2rem',\n\t\t\t\t\t\tfontWeight: 'bold',\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<TextField\n\t\t\t\t\tsource=\"bio\"\n\t\t\t\t\tlabel=\"\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tfontSize: '2rem',\n\t\t\t\t\t\tfontWeight: 'bold',\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</Tab>\n\t\t</TabbedShowLayout>\n\t</Show>\n);\n","import React from 'react';\nimport { Resource } from 'react-admin';\nimport ArticleIcon from '@mui/icons-material/VideoCall';\nimport { AuthorDataList } from '../author-data-list';\nimport { AuthorDataShow } from '../author-data-show';\n\nexport const AuthorList = () => {\n\treturn (\n\t\t<>\n\t\t\t<Resource\n\t\t\t\tname=\"livingRooms\"\n\t\t\t\toptions={{\n\t\t\t\t\tlabel: 'Authors Data',\n\t\t\t\t}}\n\t\t\t\tshow={AuthorDataShow}\n\t\t\t\tlist={AuthorDataList}\n\t\t\t\ticon={ArticleIcon}\n\t\t\t/>\n\t\t</>\n\t);\n};\n","import React from 'react';\nimport { Bar } from 'react-chartjs-2';\nimport { authorsPillarCounts, AuthorsPillarsCount } from '../sessionsQuery';\n\nexport const AuthorWiseGroupedChart = () => {\n\tAuthorsPillarsCount();\n\tconst info = {\n\t\tlabels: ['Professional', 'Personal', 'Financial'],\n\t\tdatasets: [\n\t\t\t{\n\t\t\t\tlabel: 'Till Now',\n\t\t\t\tbackgroundColor: 'rgba(136, 132, 216, 0.2)',\n\t\t\t\tborderColor: 'rgba(136, 132, 216, 1)',\n\t\t\t\tborderWidth: 1,\n\t\t\t\tdata: [\n\t\t\t\t\tauthorsPillarCounts.Professional,\n\t\t\t\t\tauthorsPillarCounts.Personal,\n\t\t\t\t\tauthorsPillarCounts.Financial,\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t};\n\treturn (\n\t\t<div className=\"App\">\n\t\t\t<Bar\n\t\t\t\tdata={info}\n\t\t\t\twidth={360}\n\t\t\t\theight={320}\n\t\t\t\toptions={{\n\t\t\t\t\tmaintainAspectRatio: false,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n","import React from 'react';\nimport { Tab, Container, Typography, Paper } from '@mui/material';\nimport TabPanel from '@mui/lab/TabPanel';\nimport TabList from '@mui/lab/TabList';\nimport TabContext from '@mui/lab/TabContext';\nimport { AuthorList } from '../authorsList';\nimport { AuthorWiseGroupedChart } from '../charts/authorWiseSession';\nimport { SeesionsMonthlyChart } from '../charts/compareChart';\nimport { PillarDropdown } from '../pillarDropdown';\n\nconst card2 = {\n\twidth: '450px',\n\theight: '400px',\n\tpadding: '10px',\n\tmarginRight: '120px',\n\tmarginTop: '10px',\n\tmarginLeft: '10px',\n\tmarginBottom: '10px',\n};\nconst card3 = {\n\twidth: '450px',\n\theight: '400px',\n\tpadding: '10px',\n\tmargin: '10px',\n};\nconst card4 = {\n\twidth: '1030px',\n\theight: '470px',\n\tpadding: '10px',\n\tdisplay: 'flex',\n\tmargin: '10px',\n};\n\nexport const AuthorsSessionContent = () => {\n\tconst [index, setIndex] = React.useState('author-list-data');\n\tconst authorHandleChange = (\n\t\tevent: React.SyntheticEvent,\n\t\tnewIndex: string,\n\t) => {\n\t\tsetIndex(newIndex);\n\t};\n\treturn (\n\t\t<>\n\t\t\t<TabContext value={index}>\n\t\t\t\t<TabList onChange={authorHandleChange} aria-label=\"author-tabs\">\n\t\t\t\t\t<Tab label=\"Authors\" value=\"author-list-data\" />\n\t\t\t\t\t<Tab\n\t\t\t\t\t\tlabel=\"Author wise Graphical Analytics\"\n\t\t\t\t\t\tvalue=\"authors-chart\"\n\t\t\t\t\t/>\n\t\t\t\t</TabList>\n\t\t\t\t<TabPanel value=\"author-list-data\">\n\t\t\t\t\t<Container\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: '1000px',\n\t\t\t\t\t\t\theight: '600px',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\t\tfloat: 'left',\n\t\t\t\t\t\t\tbackgroundColor: 'white',\n\t\t\t\t\t\t\tborderRadius: '5px',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\tvariant=\"h5\"\n\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tmarginBottom: '20px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tAuthors List\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<AuthorList />\n\t\t\t\t\t</Container>\n\t\t\t\t</TabPanel>\n\t\t\t\t<TabPanel value=\"authors-chart\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Paper elevation={3} style={card2}>\n\t\t\t\t\t\t\t<Typography variant=\"h5\" component=\"h2\">\n\t\t\t\t\t\t\t\tPillar wise Sessions\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<AuthorWiseGroupedChart />\n\t\t\t\t\t\t</Paper>\n\t\t\t\t\t\t<Paper elevation={3} style={card3}>\n\t\t\t\t\t\t\t<Typography variant=\"h5\" component=\"h2\">\n\t\t\t\t\t\t\t\tMost Sessions Happened in 2021\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<SeesionsMonthlyChart />\n\t\t\t\t\t\t</Paper>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Paper elevation={3} style={card4}>\n\t\t\t\t\t\t<PillarDropdown />\n\t\t\t\t\t</Paper>\n\t\t\t\t</TabPanel>\n\t\t\t</TabContext>\n\t\t</>\n\t);\n};\n","import React from 'react';\nimport { ListProps } from 'react-admin';\nimport { Tab, Container, Grid } from '@mui/material';\nimport TabContext from '@mui/lab/TabContext';\nimport TabList from '@mui/lab/TabList';\nimport TabPanel from '@mui/lab/TabPanel';\nimport Button from '@mui/material/Button';\nimport Menu from '@mui/material/Menu';\nimport MenuItem from '@mui/material/MenuItem';\nimport { IoFunnelOutline } from 'react-icons/io5';\nimport './livingRoom.css';\nimport DropDown from './components/YearDropdown';\nimport {\n\tTotalAuthorsCount,\n\tTotalLivingCount,\n} from './components/sessionsQuery';\nimport { ActiveSessionContent } from './components/Tabs/activeSessions';\nimport { AttendeesSessionContent } from './components/Tabs/attendeesSession';\nimport { AuthorsSessionContent } from './components/Tabs/authorsSeesion';\n\ntype ILivingRoomListProps = ListProps;\n\nconst Spacer = () => <span style={{ width: '1.5em' }} />;\n\nconst yearData: { label: string; value: string }[] = [\n\t{ label: '2021', value: '2021' },\n\t{ label: '2022', value: '2022' },\n\t{ label: '2023', value: '2023' },\n];\n\nconst tabStyles = {\n\twidth: '250px',\n\theight: '70px',\n\tpadding: '10px',\n\tdisplay: 'flex',\n\tmarginTop: '10px',\n\tmarginLeft: '10px',\n\tmarginRight: '10px',\n\tmarginBottom: '0px',\n\tfontFamily: 'Roboto',\n\tfontWeight: '900',\n\tfontSize: '16px',\n\tbackgroundColor: 'white',\n};\n\nexport const LivingRoomPage = (props: ILivingRoomListProps) => {\n\tconst [tab, setTab] = React.useState('11');\n\tconst handleChangeTab = (event: React.SyntheticEvent, newValue: string) => {\n\t\tsetTab(newValue);\n\t};\n\n\tconst [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n\tconst open = Boolean(anchorEl);\n\tconst handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n\t\tsetAnchorEl(event.currentTarget);\n\t};\n\tconst handleClose = () => {\n\t\tsetAnchorEl(null);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<Container\n\t\t\t\tstyle={{\n\t\t\t\t\toverflowX: 'hidden',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<TabContext value={tab}>\n\t\t\t\t\t<Grid>\n\t\t\t\t\t\t<TabList\n\t\t\t\t\t\t\tonChange={handleChangeTab}\n\t\t\t\t\t\t\taria-label=\"tabs\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\theight: '72px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Tab\n\t\t\t\t\t\t\t\tstyle={tabStyles}\n\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\tfontFamily: 'Roboto',\n\t\t\t\t\t\t\t\t\t\t\tcolor: 'black',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tTotal Sessions <br />\n\t\t\t\t\t\t\t\t\t\t<TotalLivingCount />\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvalue=\"11\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Tab\n\t\t\t\t\t\t\t\tstyle={tabStyles}\n\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\tfontFamily: 'Roboto',\n\t\t\t\t\t\t\t\t\t\t\tcolor: 'black',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tAuthors <br />\n\t\t\t\t\t\t\t\t\t\t<TotalAuthorsCount />\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvalue=\"12\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Tab\n\t\t\t\t\t\t\t\tstyle={tabStyles}\n\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\tfontFamily: 'Roboto',\n\t\t\t\t\t\t\t\t\t\t\tcolor: 'black',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tAttendees <br />\n\t\t\t\t\t\t\t\t\t\t200\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvalue=\"13\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Spacer />\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tfloat: 'right',\n\t\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\theight: '40px',\n\t\t\t\t\t\t\t\t\t\twidth: '42px',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\tid=\"basic-button\"\n\t\t\t\t\t\t\t\t\t\taria-controls={\n\t\t\t\t\t\t\t\t\t\t\topen ? 'basic-menu' : undefined\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\taria-haspopup=\"true\"\n\t\t\t\t\t\t\t\t\t\taria-expanded={\n\t\t\t\t\t\t\t\t\t\t\topen ? 'true' : undefined\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tonClick={handleClick}\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\tmarginTop: '10px',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<IoFunnelOutline\n\t\t\t\t\t\t\t\t\t\t\tsize={40}\n\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\tpaddingTop: '20px',\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t<Menu\n\t\t\t\t\t\t\t\t\t\tid=\"basic-menu\"\n\t\t\t\t\t\t\t\t\t\tanchorEl={anchorEl}\n\t\t\t\t\t\t\t\t\t\topen={open}\n\t\t\t\t\t\t\t\t\t\tonClose={handleClose}\n\t\t\t\t\t\t\t\t\t\tMenuListProps={{\n\t\t\t\t\t\t\t\t\t\t\t'aria-labelledby': 'basic-button',\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<MenuItem onClick={handleClose}>\n\t\t\t\t\t\t\t\t\t\t\tMonthly\n\t\t\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t\t\t\t<MenuItem onClick={handleClose}>\n\t\t\t\t\t\t\t\t\t\t\tQuarterly\n\t\t\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t\t\t\t<MenuItem onClick={handleClose}>\n\t\t\t\t\t\t\t\t\t\t\tYearly\n\t\t\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<DropDown\n\t\t\t\t\t\t\t\t\tdata={yearData}\n\t\t\t\t\t\t\t\t\twidth={200}\n\t\t\t\t\t\t\t\t\tlabel=\"Time Period\"\n\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</TabList>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<TabPanel value=\"11\">\n\t\t\t\t\t\t<ActiveSessionContent />\n\t\t\t\t\t</TabPanel>\n\t\t\t\t\t<TabPanel value=\"12\">\n\t\t\t\t\t\t<AuthorsSessionContent />\n\t\t\t\t\t</TabPanel>\n\t\t\t\t\t<TabPanel value=\"13\">\n\t\t\t\t\t\t<AttendeesSessionContent />\n\t\t\t\t\t</TabPanel>\n\t\t\t\t</TabContext>\n\t\t\t</Container>\n\t\t</>\n\t);\n};\n","import React, { useEffect } from 'react';\n\nconst MobileRedirect = () => {\n\tuseEffect(() => {\n\t\tif (/Android/i.test(navigator.userAgent)) {\n\t\t\twindow.location.href =\n\t\t\t\t'https://play.google.com/store/apps/details?id=com.uplevyl.app';\n\t\t} else if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n\t\t\twindow.location.href =\n\t\t\t\t'https://apps.apple.com/ae/app/uplevyl/id1572977506';\n\t\t} else {\n\t\t\twindow.location.href = window.location.href.includes('staging')\n\t\t\t\t? 'https://staging.uplevyl.com'\n\t\t\t\t: 'https://my.uplevyl.com';\n\t\t}\n\t}, []);\n\n\treturn <></>;\n};\n\nexport default MobileRedirect;\n","import React, { useEffect } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nconst MobileRedirectDeepLinking = () => {\n\tconst queryParameters = new URLSearchParams(window.location.search);\n\tconst contentId = queryParameters.get('content_id');\n\tconst recommendationId = queryParameters.get('recommendation_id');\n\tconst authorId = queryParameters.get('author_id');\n\tconst type = queryParameters.get('type');\n\n\tuseEffect(() => {\n\t\tlet url = '';\n\t\tif (\n\t\t\t/Android/i.test(navigator.userAgent) ||\n\t\t\t/iPhone|iPad|iPod/i.test(navigator.userAgent)\n\t\t) {\n\t\t\turl = `uplevyl://uplevyl/content/post/${contentId}/${uuidv4()}`;\n\t\t\tif (type === 'author') {\n\t\t\t\turl = `uplevyl://uplevyl/author/${authorId}`;\n\t\t\t}\n\n\t\t\tconst iframe = document.createElement('iframe');\n\t\t\tiframe.style.width = '1px';\n\t\t\tiframe.style.height = '1px';\n\t\t\tiframe.style.display = 'none';\n\n\t\t\tlet success = false;\n\n\t\t\tiframe.onload = function () {\n\t\t\t\tsuccess = true;\n\t\t\t};\n\n\t\t\tiframe.src = url;\n\t\t\tdocument.body.appendChild(iframe);\n\t\t\tdocument.body.removeChild(iframe);\n\n\t\t\tif (success) {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\twindow.location.href = url;\n\t\t\t\t}, 2000);\n\t\t\t} else {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\twindow.location.href = 'https://uplevyl.com/fallback.html';\n\t\t\t\t}, 3000);\n\t\t\t}\n\t\t} else {\n\t\t\turl = window.location.href.includes('staging')\n\t\t\t\t? `https://staging.uplevyl.com/SingleEntryScreen/${contentId}/${uuidv4()}`\n\t\t\t\t: `https://my.uplevyl.com/SingleEntryScreen/${contentId}/${uuidv4()}`;\n\n\t\t\tif (type === 'author') {\n\t\t\t\turl = window.location.href.includes('staging')\n\t\t\t\t\t? `https://staging.uplevyl.com/ContributorProfile/${authorId}`\n\t\t\t\t\t: `https://my.uplevyl.com/ContributorProfile/${authorId}`;\n\t\t\t}\n\t\t}\n\n\t\twindow.location.href = url;\n\t}, [contentId, recommendationId, authorId, type]);\n\n\treturn <></>;\n};\n\nexport default MobileRedirectDeepLinking;\n","import React from 'react';\nimport { useNavigate } from 'react-router';\n\nconst ResetSuccess = () => {\n\tconst navigate = useNavigate();\n\treturn (\n\t\t<>\n\t\t\t<p className=\"font-light my-5\">\n\t\t\t\tYour password has been reset. Please{' '}\n\t\t\t\t<a\n\t\t\t\t\thref=\"/login\"\n\t\t\t\t\tclassName=\"text-black underline\"\n\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tnavigate('/login');\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\tlogin\n\t\t\t\t</a>{' '}\n\t\t\t\twith the new password and continue your Uplevyl journey\n\t\t\t</p>\n\t\t</>\n\t);\n};\n\nexport default ResetSuccess;\n","import { gql } from '@apollo/client';\n\nexport const VerifyCodeMutation = gql`\n\tmutation verifyCode($code: String!) {\n\t\tverifyCode(code: $code)\n\t}\n`;\n\nexport interface IVerifyCodeMutationVariables {\n\tcode: string;\n}\n\nexport interface IVerifyCodeMutationData {\n\tverifyCode: string;\n}\n","import React, { useState } from 'react';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport { getPrettyErrorMessage } from '../../../helpers';\nimport { useVerifyCodeMutation } from './hooks/useVerifyCodeMutation';\n\ninterface EnterCodeProps {\n\tsetVerification: React.Dispatch<React.SetStateAction<string | undefined>>;\n\tsetEnterPassword: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\nconst EnterCode = ({ setVerification, setEnterPassword }: EnterCodeProps) => {\n\tconst [verifyCode, { loading }] = useVerifyCodeMutation();\n\n\tconst [code, setCode] = useState<string>('');\n\tconst [errorMessage, setErrorMessage] = useState<string>();\n\n\tconst handleSubmit = async () => {\n\t\tif (!code) return setErrorMessage('Please enter a valid code');\n\t\ttry {\n\t\t\tconst { errors, data } = await verifyCode({\n\t\t\t\tvariables: {\n\t\t\t\t\tcode,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (data?.verifyCode) {\n\t\t\t\tsetVerification(data.verifyCode);\n\t\t\t\tsetErrorMessage(undefined);\n\t\t\t\tsetEnterPassword(true);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(getPrettyErrorMessage(err.message));\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<p className=\"font-light mt-2\">\n\t\t\t\tPlease enter the one-time code sent to your email/mobile number.\n\t\t\t</p>\n\t\t\t<form\n\t\t\t\tclassName=\"flex flex-col w-full mt-10\"\n\t\t\t\tonSubmit={(e) => {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn handleSubmit();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tlabel=\"Code\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclassName=\"mb-4 opacity-75\"\n\t\t\t\t\tdisabled={loading ?? false}\n\t\t\t\t\tvalue={code}\n\t\t\t\t\tplaceholder=\"Enter code\"\n\t\t\t\t\tonChange={(e) => setCode(e.target.value)}\n\t\t\t\t/>\n\n\t\t\t\t<p className=\"text-sm text-red-400 mb-4\">{errorMessage}</p>\n\n\t\t\t\t<Button type=\"submit\" value=\"submit\" disabled={loading}>\n\t\t\t\t\t{loading ? 'Verifying...' : 'Continue'}\n\t\t\t\t</Button>\n\t\t\t</form>\n\t\t</>\n\t);\n};\n\nexport default EnterCode;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tVerifyCodeMutation,\n\tIVerifyCodeMutationData,\n\tIVerifyCodeMutationVariables,\n} from '../graphql/mutations/verifyCode';\n\n/**\n * Verify code for resetting password\n * @param options\n * @returns\n */\nexport const useVerifyCodeMutation = (\n\toptions?: MutationHookOptions<\n\t\tIVerifyCodeMutationData,\n\t\tIVerifyCodeMutationVariables\n\t>,\n) =>\n\tuseMutation<IVerifyCodeMutationData, IVerifyCodeMutationVariables>(\n\t\tVerifyCodeMutation,\n\t\toptions,\n\t);\n","import { gql } from '@apollo/client';\n\nexport const ResetPasswordMutation = gql`\n\tmutation resetPassword(\n\t\t$password: String!\n\t\t$phone: String!\n\t\t$verification: String!\n\t) {\n\t\tresetPassword(\n\t\t\tphone: $phone\n\t\t\tverification: $verification\n\t\t\tpassword: $password\n\t\t) {\n\t\t\taccessToken\n\t\t}\n\t}\n`;\n\nexport interface IResetPasswordMutationVariables {\n\tphone: string;\n\tverification: string;\n\tpassword: string;\n}\n\nexport interface IResetPasswordMutationData {\n\tresetPassword: {\n\t\taccessToken: string;\n\t};\n}\n","import React, { useState } from 'react';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport { getPrettyErrorMessage } from '../../../helpers';\nimport { useResetPasswordMutation } from './hooks/useResetPassword';\n\ninterface EnterPasswordProps {\n\tverification: string | undefined;\n\tphone: string | undefined;\n\tsetSuccess: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\nconst EnterPassword = ({\n\tverification,\n\tphone,\n\tsetSuccess,\n}: EnterPasswordProps) => {\n\tconst [resetPassword, { loading }] = useResetPasswordMutation();\n\n\tconst [password, setPassword] = useState<string>('');\n\n\tconst [confirmPassword, setConfirmPassword] = useState<string>('');\n\n\tconst [errorMessage, setErrorMessage] = useState<string>();\n\n\tconst handleSubmit = async () => {\n\t\tif (!verification || !phone) return;\n\t\tif (!password || !confirmPassword)\n\t\t\treturn setErrorMessage('Please fill in both password fields');\n\t\tif (password !== confirmPassword)\n\t\t\treturn setErrorMessage('Passwords do not match');\n\t\tif (password.length < 8 || confirmPassword.length < 8)\n\t\t\treturn setErrorMessage(\n\t\t\t\t'Passwords should be at least 8 characters & contain a mix of letters (uppercase and lowercase), numbers, and symbols',\n\t\t\t);\n\n\t\ttry {\n\t\t\tconst { errors, data } = await resetPassword({\n\t\t\t\tvariables: {\n\t\t\t\t\tphone,\n\t\t\t\t\tverification,\n\t\t\t\t\tpassword,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (data?.resetPassword?.accessToken) {\n\t\t\t\tsetErrorMessage(undefined);\n\t\t\t\tsetSuccess(true);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(getPrettyErrorMessage(err.message));\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<p className=\"font-light mt-2\">Please enter your new password.</p>\n\t\t\t<form\n\t\t\t\tclassName=\"flex flex-col w-full mt-10\"\n\t\t\t\tonSubmit={(e) => {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn handleSubmit();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tlabel=\"New Password\"\n\t\t\t\t\ttype=\"password\"\n\t\t\t\t\tclassName=\"mb-4 opacity-75\"\n\t\t\t\t\tdisabled={loading ?? false}\n\t\t\t\t\tvalue={password}\n\t\t\t\t\tplaceholder=\"Pick your new password\"\n\t\t\t\t\tonChange={(e) => setPassword(e.target.value)}\n\t\t\t\t/>\n\t\t\t\t<Input\n\t\t\t\t\tlabel=\"Confirm New Password\"\n\t\t\t\t\ttype=\"password\"\n\t\t\t\t\tclassName=\"mb-4 opacity-75\"\n\t\t\t\t\tdisabled={loading ?? false}\n\t\t\t\t\tvalue={confirmPassword}\n\t\t\t\t\tplaceholder=\"Retype your new password\"\n\t\t\t\t\tonChange={(e) => setConfirmPassword(e.target.value)}\n\t\t\t\t/>\n\n\t\t\t\t<p className=\"text-sm text-red-400 mb-4\">{errorMessage}</p>\n\n\t\t\t\t<Button type=\"submit\" value=\"submit\" disabled={loading}>\n\t\t\t\t\t{loading ? 'Resetting...' : 'Reset Password'}\n\t\t\t\t</Button>\n\t\t\t</form>\n\t\t</>\n\t);\n};\n\nexport default EnterPassword;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tResetPasswordMutation,\n\tIResetPasswordMutationData,\n\tIResetPasswordMutationVariables,\n} from '../graphql/mutations/resetPassword';\n\n/**\n * Reset password via code sent to user's phone\n * @param options\n * @returns\n */\nexport const useResetPasswordMutation = (\n\toptions?: MutationHookOptions<\n\t\tIResetPasswordMutationData,\n\t\tIResetPasswordMutationVariables\n\t>,\n) =>\n\tuseMutation<IResetPasswordMutationData, IResetPasswordMutationVariables>(\n\t\tResetPasswordMutation,\n\t\toptions,\n\t);\n","import { gql } from '@apollo/client';\n\nexport const RequestCodeMutation = gql`\n\tmutation requestCode($phone: String!) {\n\t\trequestCode(phone: $phone)\n\t}\n`;\n\nexport interface IRequestCodeMutationVariables {\n\tphone: string;\n}\n\nexport interface IRequestCodeMutationData {\n\trequestCode: boolean;\n}\n","import React, { useState } from 'react';\nimport Button from '../../../components/Button';\nimport Input from '../../../components/Input';\nimport { getPrettyErrorMessage } from '../../../helpers';\nimport { useRequestCodeMutation } from './hooks/useRequestCodeMutation';\n\ninterface EnterCodeProps {\n\tphone: string;\n\tsetPhone: React.Dispatch<React.SetStateAction<string>>;\n\tsetEnterCode: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\nconst EnterCode = ({ phone, setPhone, setEnterCode }: EnterCodeProps) => {\n\tconst [requestCode, { loading }] = useRequestCodeMutation();\n\n\tconst [errorMessage, setErrorMessage] = useState<string>();\n\n\tconst handleSubmit = async () => {\n\t\tif (!phone)\n\t\t\treturn setErrorMessage('Invalid phone number or email address');\n\n\t\ttry {\n\t\t\tconst { errors, data } = await requestCode({\n\t\t\t\tvariables: {\n\t\t\t\t\tphone,\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tif (errors?.[0]) return setErrorMessage(errors[0].message);\n\n\t\t\tif (data?.requestCode) {\n\t\t\t\tsetErrorMessage(undefined);\n\t\t\t\tsetEnterCode(true);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tif (err?.message)\n\t\t\t\tsetErrorMessage(getPrettyErrorMessage(err.message));\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<p className=\"font-light mt-2\">\n\t\t\t\tPlease enter the phone number or email associated with your\n\t\t\t\taccount, a code will be sent here.\n\t\t\t</p>\n\t\t\t<form\n\t\t\t\tclassName=\"flex flex-col w-full mt-10\"\n\t\t\t\tonSubmit={(e) => {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn handleSubmit();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Input\n\t\t\t\t\tlabel=\"Email or Phone number (with country code)\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclassName=\"mb-4 opacity-75\"\n\t\t\t\t\tdisabled={loading ?? false}\n\t\t\t\t\tvalue={phone}\n\t\t\t\t\tplaceholder=\"Email or Phone Number\"\n\t\t\t\t\tonChange={(e) => setPhone(e.target.value)}\n\t\t\t\t/>\n\n\t\t\t\t<p className=\"text-sm text-red-400 mb-4\">{errorMessage}</p>\n\n\t\t\t\t<Button type=\"submit\" value=\"submit\" disabled={loading}>\n\t\t\t\t\t{loading ? 'Sending...' : 'Send Code'}\n\t\t\t\t</Button>\n\t\t\t</form>\n\t\t</>\n\t);\n};\n\nexport default EnterCode;\n","import { MutationHookOptions, useMutation } from '@apollo/client';\nimport {\n\tRequestCodeMutation,\n\tIRequestCodeMutationData,\n\tIRequestCodeMutationVariables,\n} from '../graphql/mutations/requestCode';\n\n/**\n * Request code for resetting password\n * @param options\n * @returns\n */\nexport const useRequestCodeMutation = (\n\toptions?: MutationHookOptions<\n\t\tIRequestCodeMutationData,\n\t\tIRequestCodeMutationVariables\n\t>,\n) =>\n\tuseMutation<IRequestCodeMutationData, IRequestCodeMutationVariables>(\n\t\tRequestCodeMutation,\n\t\toptions,\n\t);\n","import React, { useState } from 'react';\nimport Container from '../../../components/Container';\nimport ResetSuccess from './ResetSuccess';\nimport EnterCode from './EnterCode';\nimport EnterPassword from './EnterPassword';\nimport EnterPhone from './EnterPhone';\nimport Header from '../../../components/Header';\n\nconst ForgotPassword = () => {\n\tconst [phone, setPhone] = useState<string>('');\n\n\tconst [enterCode, setEnterCode] = useState<boolean>(false);\n\tconst [enterPassword, setEnterPassword] = useState<boolean>(false);\n\tconst [success, setSuccess] = useState<boolean>(false);\n\tconst [verification, setVerification] = useState<string>();\n\n\treturn (\n\t\t<main className=\"w-screen h-screen flex justify-center items-center font-body text-black\">\n\t\t\t<Container>\n\t\t\t\t<Header\n\t\t\t\t\ttitle={`${success ? 'Thank You.' : 'Reset Your Password'}`}\n\t\t\t\t/>\n\t\t\t\t{success ? (\n\t\t\t\t\t<ResetSuccess />\n\t\t\t\t) : enterPassword ? (\n\t\t\t\t\t<EnterPassword\n\t\t\t\t\t\tsetSuccess={setSuccess}\n\t\t\t\t\t\tverification={verification}\n\t\t\t\t\t\tphone={phone}\n\t\t\t\t\t/>\n\t\t\t\t) : enterCode ? (\n\t\t\t\t\t<EnterCode\n\t\t\t\t\t\tsetVerification={setVerification}\n\t\t\t\t\t\tsetEnterPassword={setEnterPassword}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<EnterPhone\n\t\t\t\t\t\tphone={phone}\n\t\t\t\t\t\tsetPhone={setPhone}\n\t\t\t\t\t\tsetEnterCode={setEnterCode}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</Container>\n\t\t</main>\n\t);\n};\n\nexport default ForgotPassword;\n","import { gql } from '@apollo/client';\n\nexport const GetPaymentQuery = gql`\n\tquery payment($subscriptionId: String!) {\n\t\tpayment(subscriptionId: $subscriptionId) {\n\t\t\tpaymentId\n\t\t\tuserSubscriptionObject {\n\t\t\t\tpaymentIntentId\n\t\t\t\tsubscriptionId\n\t\t\t}\n\t\t}\n\t}\n`;\n\nexport const updatePaymentStatus = gql`\n\tquery paymentStatusUpdate($paymentIntentId: String!) {\n\t\tpaymentStatusUpdate(paymentIntentId: $paymentIntentId) {\n\t\t\tpaymentStatus\n\t\t}\n\t}\n`;\n\nexport interface IGetPaymentQueryData {\n\tpayment: {\n\t\tpaymentId: string;\n\t\tuserSubscriptionObject: UserSubscriptions;\n\t};\n}\n\nexport interface IGetUpdateQueryData {\n\tpaymentStatusUpdate: UserSubscriptions;\n}\n\nexport interface IGetPaymentQueryVariables {\n\tsubscriptionId: string;\n}\n\nexport interface IUpdatePaymentStatusVariable {\n\tpaymentIntentId: string;\n}\n\nexport interface UserSubscriptions {\n\tid: string;\n\tsubscriptionId: string;\n\tuserId: string;\n\tstartDate: Date | null;\n\tendDate: Date | null;\n\tpaymentIntentId: string;\n\tpaymentStatus: string;\n\tcreated: Date;\n\tupdated: Date;\n\tdeleted: Date;\n}\n","import {\n\tuseStripe,\n\tuseElements,\n\tPaymentElement,\n} from '@stripe/react-stripe-js';\nimport React from 'react';\nimport { useUpdatePaymentQuery } from './hooks/usePaymentQuery';\n\nconst CheckoutForm = ({ paymentIntent }) => {\n\tconst stripe = useStripe();\n\tconst elements = useElements();\n\tconst [updatePayment, { loading }] = useUpdatePaymentQuery();\n\t// Use the hook\n\n\tconst handleSubmit = async (event) => {\n\t\tevent.preventDefault();\n\n\t\tif (!stripe || !elements) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst result = await stripe.confirmPayment({\n\t\t\telements,\n\t\t\tconfirmParams: {\n\t\t\t\treturn_url: 'https://www.uplevyl.com/subscription-success.html',\n\t\t\t},\n\t\t\tredirect: 'if_required',\n\t\t});\n\n\t\tif (result.error) {\n\t\t\tconsole.log(result.error.message);\n\t\t} else {\n\t\t\t// If payment confirmation was successful, update the payment status on the server\n\t\t\ttry {\n\t\t\t\t// Make the updatePayment query to your server, passing the paymentIntentId\n\t\t\t\tawait updatePayment({\n\t\t\t\t\tvariables: { paymentIntentId: paymentIntent },\n\t\t\t\t});\n\t\t\t\t// Log the server response for debugging\n\t\t\t\twindow.location.href =\n\t\t\t\t\t'https://www.uplevyl.com/subscription-success.html'; // Replace with your desired URL\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Error updating payment status:', error.message);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn (\n\t\t<div className=\"flex flex-col items-center justify-center h-screen\">\n\t\t\t<form\n\t\t\t\tonSubmit={handleSubmit}\n\t\t\t\tclassName=\"bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4\"\n\t\t\t>\n\t\t\t\t<div className=\"mb-4 flex flex-col items-center\">\n\t\t\t\t\t<img\n\t\t\t\t\t\tsrc=\"https://cdn.uplevyl.com/logo/full/blue.png\"\n\t\t\t\t\t\talt=\"Uplevyl\"\n\t\t\t\t\t\tclassName=\"mb-4 flex flex-col items-center w-1/6 mb-4\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t{/* Assuming <PaymentElement /> is a custom component for the payment element */}\n\t\t\t\t\t<PaymentElement />\n\t\t\t\t</div>\n\t\t\t\t<div className=\"text-center\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\t\tdisabled={!stripe || loading} // Disable the button while loading\n\t\t\t\t\t\tclassName=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{loading ? 'Submitting...' : 'Submit'}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t);\n};\n\nexport default CheckoutForm;\n","import { QueryHookOptions, useLazyQuery } from '@apollo/client';\nimport {\n\tGetPaymentQuery,\n\tIGetPaymentQueryData,\n\tIGetPaymentQueryVariables,\n\tIGetUpdateQueryData,\n\tIUpdatePaymentStatusVariable,\n\tupdatePaymentStatus,\n} from '../graphql/payment';\n\n/**\n * Get user checkout information from invite token\n * @param options\n * @returns\n */\n\nexport const usePaymentQuery = (\n\toptions?: QueryHookOptions<IGetPaymentQueryData, IGetPaymentQueryVariables>,\n) =>\n\tuseLazyQuery<IGetPaymentQueryData, IGetPaymentQueryVariables>(\n\t\tGetPaymentQuery,\n\t\toptions,\n\t);\n\nexport const useUpdatePaymentQuery = (\n\toptions?: QueryHookOptions<\n\t\tIGetUpdateQueryData,\n\t\tIUpdatePaymentStatusVariable\n\t>,\n) =>\n\tuseLazyQuery<IGetUpdateQueryData, IUpdatePaymentStatusVariable>(\n\t\tupdatePaymentStatus,\n\t\toptions,\n\t);\n","import React, { useEffect, useState } from 'react';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { loadStripe, Stripe } from '@stripe/stripe-js';\nimport { useNavigate } from 'react-router';\nimport CheckoutForm from './CheckoutForm';\nimport { usePaymentQuery } from './hooks/usePaymentQuery';\n\ninterface OptionsType {\n\tclientSecret: string;\n}\n\nconst StripePayment = () => {\n\tconst navigate = useNavigate();\n\tconst [aks, setAks] = useState(null);\n\tconst [stripePromise, setStripePromise] = useState<Stripe | null>(null);\n\tconst [options, setOptions] = useState<OptionsType | null>(null); // Use null as the initial value\n\tconst params = new URLSearchParams(window.location.search);\n\tconst id = params.get('id');\n\n\tconst accessToken = localStorage.getItem('accessToken');\n\tconst [getPayment] = usePaymentQuery();\n\tuseEffect(() => {\n\t\tconst fetchData = async () => {\n\t\t\tif (accessToken) {\n\t\t\t\ttry {\n\t\t\t\t\tconst aksResponse = await getPayment({\n\t\t\t\t\t\tvariables: {\n\t\t\t\t\t\t\tsubscriptionId: id,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcontext: {\n\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\tAuthorization: `Bearer ${accessToken}`,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t});\n\n\t\t\t\t\tif (!aksResponse.data) {\n\t\t\t\t\t\tnavigate(`/login?type=payment&id=${id}`);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (!aksResponse.data?.payment?.paymentId) {\n\t\t\t\t\t\tnavigate(`/account?type=payment&id=${id}`);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tsetAks(aksResponse.data);\n\n\t\t\t\t\tconst stripe = await loadStripe(\n\t\t\t\t\t\tprocess.env.REACT_APP_STRIPE_PUBLISH ??\n\t\t\t\t\t\t\t'pk_test_51IudWKLP7KCVbUfVSNxWQY3HwTQIos8EhuCFJ0EZPEcxLVGWF65zNWgByv6OIaTVq2jkGmX6UNe3kJNqw5AVBgCh00RbirkUKg',\n\t\t\t\t\t);\n\t\t\t\t\tsetStripePromise(stripe);\n\t\t\t\t\tsetOptions({\n\t\t\t\t\t\tclientSecret: aksResponse.data?.payment?.paymentId,\n\t\t\t\t\t});\n\t\t\t\t} catch (error) {\n\t\t\t\t\tconsole.error('Error fetching payment data:', error);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnavigate(`/login?type=payment&id=${id}`);\n\t\t\t}\n\t\t};\n\n\t\tfetchData();\n\t}, [getPayment, accessToken, id, navigate]);\n\n\t// Check if both aks and stripePromise are available before rendering Elements\n\treturn accessToken && aks && stripePromise && options?.clientSecret ? (\n\t\t<Elements stripe={stripePromise} options={options}>\n\t\t\t<CheckoutForm\n\t\t\t\tpaymentIntent={\n\t\t\t\t\taks.payment?.userSubscriptionObject.paymentIntentId\n\t\t\t\t}\n\t\t\t/>\n\t\t</Elements>\n\t) : (\n\t\t<p>Loading payment data...</p>\n\t);\n};\n\nexport default StripePayment;\n","import React, { useState, useEffect } from 'react';\n\ntype CustomCarouselProps = {\n\timages: string[];\n\tinterval?: number; // Interval for autoplay in milliseconds\n};\n\nconst CustomCarousel: React.FC<CustomCarouselProps> = ({\n\timages,\n\tinterval = 10000,\n}) => {\n\tconst [currentIndex, setCurrentIndex] = useState(0);\n\n\tuseEffect(() => {\n\t\tconst autoplay = setInterval(() => {\n\t\t\tsetCurrentIndex((prevIndex) => (prevIndex + 1) % images.length);\n\t\t}, interval);\n\t\treturn () => clearInterval(autoplay);\n\t}, [images.length, interval]);\n\n\tconst prevSlide = () => {\n\t\tsetCurrentIndex(\n\t\t\t(prevIndex) => (prevIndex - 1 + images.length) % images.length,\n\t\t);\n\t};\n\n\tconst nextSlide = () => {\n\t\tsetCurrentIndex((prevIndex) => (prevIndex + 1) % images.length);\n\t};\n\n\treturn (\n\t\t<div className=\"relative w-full mx-auto overflow-hidden\">\n\t\t\t<button\n\t\t\t\tclassName=\"absolute top-1/2 transform -translate-y-1/2 left-0 bg-gray-800 text-white p-2 cursor-pointer\"\n\t\t\t\tonClick={prevSlide}\n\t\t\t>\n\t\t\t\t❮\n\t\t\t</button>\n\t\t\t<div className=\"flex justify-center items-center\">\n\t\t\t\t<img\n\t\t\t\t\tsrc={images[currentIndex]}\n\t\t\t\t\talt={`slide-${currentIndex}`}\n\t\t\t\t\tclassName=\"w-full h-auto object-contain\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<button\n\t\t\t\tclassName=\"absolute top-1/2 transform -translate-y-1/2 right-0 bg-gray-800 text-white p-2 cursor-pointer\"\n\t\t\t\tonClick={nextSlide}\n\t\t\t>\n\t\t\t\t❯\n\t\t\t</button>\n\t\t</div>\n\t);\n};\n\nexport default CustomCarousel;\n","import React from 'react';\nimport CustomCarousel from '../../../components/CustomCarousel';\n\nimport page1 from '../../../assets/graphs/page1.png';\nimport page2 from '../../../assets/graphs/page2.png';\nimport page3 from '../../../assets/graphs/page3.png';\n\nconst images = [page1, page2, page3];\n\nconst ShowGraphsPage = () => {\n\treturn (\n\t\t<div className=\"w-full h-full p-4\">\n\t\t\t{/* <h1 className=\"text-2xl mb-4\">Graphs</h1> */}\n\t\t\t<CustomCarousel images={images} />\n\t\t</div>\n\t);\n};\n\nexport default ShowGraphsPage;\n","export default __webpack_public_path__ + \"static/media/page1.04e6c19b.png\";","export default __webpack_public_path__ + \"static/media/page2.a13049f1.png\";","export default __webpack_public_path__ + \"static/media/page3.8612a25f.png\";","export default __webpack_public_path__ + \"static/media/Uplevyl.da6af7c4.svg\";","export default __webpack_public_path__ + \"static/media/shubhiRao.48646cf3.svg\";","import React from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport uplevyl from '../../../assets/icons/Uplevyl.svg';\nimport shubhiRao from '../../../assets/icons/shubhiRao.svg';\n\nconst FutureForwardPage = () => {\n const navigate = useNavigate();\n\n const openIntakeForm = () => {\n navigate('/intake');\n };\n\n return (\n <div className=\"min-h-screen bg-white flex justify-center items-center\">\n <div className=\"max-w-4xl w-full px-8 py-12 mt-8\">\n {/* Logo */}\n <div className=\"flex justify-center mb-10\">\n <img src={uplevyl} alt=\"Uplevyl Logo\" className=\"h-10\" />\n </div>\n\n <h1 className=\"text-3xl font-header text-center mb-12\">\n <span className='block'>Stay Relevant:</span>\n <span className='block'>Apply To Join Future Forward Now</span>\n </h1>\n\n <p className=\"text-lg font-button\">Dear Woman Leader,</p>\n\n <p className=\"text-lg font-button my-6\">\n Want to stay relevant in your career?\n </p>\n\n <p className=\"text-lg font-button mb-8\">\n Major changes are coming to every workplace because of AI and digital transformation.\n </p>\n\n <p className=\"text-lg font-button mb-2\">\n The next five years will define which women leaders succeed and which are left behind.\n </p>\n\n <ul className=\"text-lg font-button ml-6 space-y-2\">\n <li className=\"flex\">\n <span className=\"mr-2\">⚠️</span>\n <span>\n 92% of employers consider digital transformation a top priority (McKinsey)\n </span>\n </li>\n <li className=\"flex\">\n <span className=\"mr-2\">⚠️</span>\n <span>\n AI is hurtling towards us and will affect us all.\n </span>\n </li>\n <li className=\"flex\">\n <span className=\"mr-2\">⚠️</span>\n <span>\n Digital acumen will become crucial to every leadership role.\n </span>\n </li>\n </ul>\n <p className=\"text-lg font-button mb-5 mt-6\">\n If you don't keep up with digital change, you risk becoming obsolete in your current role and losing out on future opportunities.\n </p>\n <p className=\"text-lg font-button mb-8 mt-6\">\n If you maintain strong digital acumen...\n </p>\n\n <ul className=\"text-lg font-button ml-6 mb-8 space-y-2\">\n <li className=\"flex\">\n <span className=\"mr-2\">✅</span>\n <span>\n You're more likely to have greater job security.\n </span>\n </li>\n <li className=\"flex\">\n <span className=\"mr-2\">✅</span>\n <span>\n You're more likely to get salary increases.\n </span>\n </li>\n <li className=\"flex\">\n <span className=\"mr-2\">✅</span>\n <span>\n You're more likely to stay relevant.\n </span>\n </li>\n </ul>\n\n <div className=\"text-left mb-8\">\n <h2 className=\"text-2xl font-header underline font-thin mb-6\">\n Join Future Forward\n </h2>\n </div>\n\n <p className=\"text-lg font-button mb-4\">\n Brought to you by <a href=\"https://uplevyl.com\" className=\"text-black\">Uplevyl</a> (the AI-for-women-by-women platform).\n </p>\n\n <p className=\"text-lg font-button mb-4\">\n I would like to invite you to apply to join me and other senior women from across the country in Future Forward. It is a selective membership program designed to give you the skills, insights, and network you need to lead in the digital age.\n </p>\n\n <p className=\"text-lg font-button\">\n Places are limited and we will commence in January 2025.\n </p>\n <div className=\"mb-8\">\n <button\n onClick={openIntakeForm}\n className=\"text-2xl text-left font-header underline font-thin my-7 text-black hover:text-black\"\n >\n Apply now\n </button>\n\n\n <p className=\"text-lg font-button mb-4\">The application process is straightforward, private, and secure.</p>\n <p className=\"text-lg font-button mb-4\">\n However, spaces are limited, and this opportunity won't last. Applying does not guarantee membership, nor are you obligated to join if accepted. You will receive an email regarding your application status within 5-7 business days. If your application is successful, you will receive sign-up and payment details.\n </p>\n </div>\n\n <div className=\"text-base mb-8\">\n <h3 className=\"text-2xl text-left font-header underline font-thin my-7\">Don't Get Left Behind</h3>\n <p className='text-lg font-button mb-4'>I urge you to take action and apply now.</p>\n </div>\n\n <div className=\"flex flex-col lg:flex-row items-center justify-center my-12 lg:my-24 lg:space-x-20 space-y-6 lg:space-y-0 px-4\">\n {/* Image on the Left */}\n <div className=\"relative w-32 h-32 lg:w-48 lg:h-48 rounded-full overflow-hidden\">\n <img src={shubhiRao} alt=\"Shubhi Rao\" className=\"w-full h-full object-cover\" />\n </div>\n\n {/* Text on the Right */}\n <div className=\"text-center lg:text-left\">\n <h2\n className=\"text-2xl lg:text-3xl font-header\"\n style={{\n background: 'linear-gradient(to right, #F6164F, #FFC903)',\n WebkitBackgroundClip: 'text',\n WebkitTextFillColor: 'transparent',\n backgroundClip: 'text',\n color: 'transparent',\n display: 'inline-block'\n }}\n >\n Shubhi Rao\n </h2>\n <p className=\"text-base lg:text-lg font-button my-2 lg:my-4\">CEO & Founder, Uplevyl</p>\n <div className=\"mt-2 lg:mt-4 max-w-full lg:max-w-lg text-sm lg:text-lg font-button\">\n <p>\n AI Founder & CEO | Public Board Director | (former Vice President, Treasurer and Officer of\n Alphabet/Google, Tesco, PwC, Ford) | Executive Member, UNESCO - Women4Ethical AI Platform\n </p>\n </div>\n </div>\n </div>\n\n <div className=\"flex justify-left\">\n <button\n onClick={openIntakeForm}\n className=\"bg-gray-900 text-white font-button text-lg lg:w-auto lg:px-8 lg:py-2.5 md:w-auto md:px-8 md:py-2.5 w-full h-12 rounded-md hover:bg-gray-800 transition-colors duration-200\"\n >\n Apply Now\n </button>\n </div>\n </div>\n </div>\n );\n};\n\nexport default FutureForwardPage;\n","import { gql } from '@apollo/client';\n\nexport const GetUserCheckoutQuery = gql`\n\tquery getUserCheckout($type: SubscriptionType!) {\n\t\tpaymentCreateCheckout(type: $type) {\n\t\t\tsessionID\n\t\t}\n\t}\n`;\n\nexport enum UserCheckoutType {\n\tMONTHLY = 'MONTHLY',\n\tYEARLY = 'YEARLY',\n}\n\nexport interface IGetUserCheckoutQueryVariables {\n\ttype: UserCheckoutType;\n}\n\nexport interface IGetUserCheckoutQueryData {\n\tpaymentCreateCheckout: {\n\t\tsessionID: string;\n\t};\n}\n","/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\nimport React, { useEffect, useState } from 'react';\nimport { useStripe } from '@stripe/react-stripe-js';\nimport Button from '../../components/Button';\nimport { useGetUserCheckoutQuery } from './hooks/useGetUserCheckoutQuery';\nimport { UserCheckoutType } from './graphql/queries/getUserCheckout';\n\nconst PaymentRedirect = () => {\n\tconst showExplainer = true\n\t// const allowFreeTrial = true\n\tconst stripe = useStripe();\n\n\tconst [yearly, setYearly] = useState<boolean>(true);\n\n\tconst [getCheckout, { data, loading }] = useGetUserCheckoutQuery();\n\n\tconst handleSubmit = () => {\n\t\tgetCheckout({\n\t\t\tvariables: {\n\t\t\t\ttype: yearly\n\t\t\t\t\t? UserCheckoutType.YEARLY\n\t\t\t\t\t: UserCheckoutType.MONTHLY,\n\t\t\t},\n\t\t\tcontext: {\n\t\t\t\theaders: {\n\t\t\t\t\tAuthorization: `Bearer ${localStorage.getItem('paymentToken')}`,\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t};\n\n\tuseEffect(() => {\n\t\tif (!data?.paymentCreateCheckout.sessionID) return;\n\t\tstripe?.redirectToCheckout({\n\t\t\tsessionId: data?.paymentCreateCheckout.sessionID,\n\t\t});\n\t}, [data, stripe]);\n\n\treturn (\n\t\t<div className=\"mt-40 flex items-center flex-col\">\n\t\t\t{showExplainer && (\n\t\t\t\t<div className=\"flex flex-col items-center\">\n\t\t\t\t\t<span className=\"text-3xl font-bold\">Welcome</span>\n\t\t\t\t\t<p className=\"font-light mb-5\">\n\t\t\t\t\t\tIt’s now time to start your Uplevyl Membership.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{/* {allowFreeTrial && (\n\t\t\t\t<p className=\"font-light mt-2 mb-5\">\n\t\t\t\t\tEach one comes with a{' '}\n\t\t\t\t\t<span className=\"font-bold\">free 90 day free trial, cancel anytime</span>.\n\t\t\t\t</p>\n\t\t\t)} */}\n\t\t\t<div className=\"flex mb-5 lg:w-1/2 w-2/3 items-center gap-2\">\n\t\t\t\t{/* Monthly Card */}\n\t\t\t\t<div\n\t\t\t\t\tclassName={`py-8 px-5 md:px-10 rounded-lg mr-3 cursor-pointer w-1/2 border flex transition-all duration-300 transform ${!yearly\n\t\t\t\t\t\t? 'gradient-selected shadow-lg scale-105 border-transparent ' // Selected styles with animation\n\t\t\t\t\t\t: 'bg-transparent border-yellow-600 scale-100' // Deselected styles\n\t\t\t\t\t\t}`}\n\t\t\t\t\tonClick={() => setYearly(false)}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"flex flex-row justify-center items-end w-full\">\n\t\t\t\t\t\t<h2 className=\"font-bold text-2xl md:text-3xl font-button\">$150</h2>\n\t\t\t\t\t\t<p className=\"font-light\">/month</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t{/* Yearly Card */}\n\t\t\t\t<div\n\t\t\t\t\tclassName={`py-8 px-5 md:px-10 rounded-lg cursor-pointer border w-1/2 flex transition-all duration-300 transform ${yearly\n\t\t\t\t\t\t? 'gradient-selected shadow-lg scale-105 border-transparent' // Selected styles with animation\n\t\t\t\t\t\t: 'bg-transparent border-yellow-600 scale-100' // Deselected styles\n\t\t\t\t\t\t}`}\n\t\t\t\t\tonClick={() => setYearly(true)}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"flex flex-row justify-center w-full items-end\">\n\t\t\t\t\t\t<h2 className=\"font-bold text-2xl md:text-3xl font-button\">$1599</h2>\n\t\t\t\t\t\t<p className=\"font-light\">/year</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<Button\n\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\tvalue=\"submit\"\n\t\t\t\t\tdisabled={loading}\n\t\t\t\t\tonClick={handleSubmit}\n\t\t\t\t\tclassName='px-6'\n\t\t\t\t>\n\t\t\t\t\t{!loading ? 'Continue' : 'Loading...'}\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default PaymentRedirect;\n","import { QueryHookOptions, useLazyQuery } from '@apollo/client';\nimport {\n\tGetUserCheckoutQuery,\n\tIGetUserCheckoutQueryData,\n\tIGetUserCheckoutQueryVariables,\n} from '../graphql/queries/getUserCheckout';\n\n/**\n * Get user checkout information from invite token\n * @param options\n * @returns\n */\nexport const useGetUserCheckoutQuery = (\n\toptions?: QueryHookOptions<\n\t\tIGetUserCheckoutQueryData,\n\t\tIGetUserCheckoutQueryVariables\n\t>,\n) =>\n\tuseLazyQuery<IGetUserCheckoutQueryData, IGetUserCheckoutQueryVariables>(\n\t\tGetUserCheckoutQuery,\n\t\toptions,\n\t);\n","import React from 'react';\nimport { Admin, CustomRoutes, Resource } from 'react-admin';\nimport ReactGA from \"react-ga4\";\nimport UserIcon from '@mui/icons-material/Group';\nimport ArticleIcon from '@mui/icons-material/VideoCall';\nimport { loadStripe } from '@stripe/stripe-js';\nimport { Elements } from '@stripe/react-stripe-js';\nimport { Route, BrowserRouter, Routes } from 'react-router-dom';\nimport { Provider } from 'urql';\nimport ReportIcon from '@mui/icons-material/Gavel';\nimport { UserList } from './resources/users/user.list';\nimport Dashboard from './dashboard/Dashboard';\nimport buildAuthProvider from './providers/auth.provider';\nimport builDataProvider from './providers/data.provider';\nimport { UserEdit } from './resources/users/user.edit';\nimport { UserCreate } from './resources/users/user.create';\nimport { CustomLoginPage } from './Login';\n// import { LivingRoomList } from './resources/living-rooms/living-room.list';\nimport { LivingRoomCreate } from './resources/living-rooms/living-room.create';\nimport { LivingRoomEdit } from './resources/living-rooms/living-room.edit';\nimport { LivingRoomShow } from './resources/living-rooms/living-room.show';\nimport { UserShow } from './resources/users/user.show';\nimport ActivatePage from './public/Activate/ActivatePage';\nimport ClientWrapper from './public';\nimport PublicArticle from './public/Article/PublicArticle';\nimport BillingSuccess from './public/Billing/Success';\nimport BillingError from './public/Billing/Error';\nimport IntakePage from './public/Intake/IntakePage';\nimport ConfirmationPage from './public/Intake/ConfirmationPage';\nimport Download from './public/Download/Download';\nimport Login from './public/Account/Login';\nimport Account from './public/Account/Account';\nimport CreateSupport from './public/Support/CreateSupport';\nimport SupportRequest from './public/Support/SupportRequest';\nimport ForgotPassword from './public/Account/ForgotPassword';\nimport IntakeProvider from './public/Intake/intake.provider';\nimport { ReportList } from './resources/reports/report.list';\nimport { ReportEdit } from './resources/reports/report.edit';\nimport { ReportShow } from './resources/reports/report.show';\nimport ScheduleCreatePage from './resources/custom/schedule/create';\nimport PollCreatePage from './resources/custom/schedule/create-poll';\nimport { PollShow } from './resources/polls/poll.show';\nimport { ScheduleList } from './resources/schedule/schedule.list';\nimport { FreeTextShow } from './resources/freeTexts/freeText.show';\nimport { QuoteShow } from './resources/quotes/quote.show';\nimport QuoteCreatePage from './resources/custom/schedule/create-quote';\nimport FreeTextCreatePage from './resources/custom/schedule/create-free-text';\nimport { PollEdit } from './resources/polls/poll.edit';\nimport { RedirectScheduleList } from './resources/custom/schedule/redirect-schedule-list';\nimport { FreeTextEdit } from './resources/freeTexts/freeText.edit';\nimport { QuoteEdit } from './resources/quotes/quote.edit';\nimport { lightTheme } from './layout/themes';\nimport Layout from './layout/Layout';\nimport { buildClient } from './providers/client/client.factory';\nimport { LivingRoomPage } from './resources/living-rooms/living-room.page';\nimport MobileRedirect from './MobileRedirect';\nimport MobileRedirectDeepLinking from './MobileRedirectDeepLinking';\nimport ResetPassword from './public/Account/ResetPassword';\nimport StripePayment from './public/Stripe/Stripe';\nimport ShowGraphsPage from './resources/custom/graphs/show-graphs';\nimport FutureForwardPage from './public/Intake/components/FutureForward';\nimport PaymentRedirect from './public/Activate/PaymentRedirect';\n\n\nconst App = () => {\n\tconst client = buildClient('urql');\n\t// const history = createHistory({ basename: 'admin' });\n\tconst stripePromise = loadStripe(\n\t\tprocess.env.REACT_APP_STRIPE_PUBLISH ??\n\t\t'pk_test_51IudWKLP7KCVbUfVSNxWQY3HwTQIos8EhuCFJ0EZPEcxLVGWF65zNWgByv6OIaTVq2jkGmX6UNe3kJNqw5AVBgCh00RbirkUKg',\n\t);\n\n\tconst GAMeasurementID = process.env.REACT_APP_GA_MEASUREMENT_ID;\n \t\n\tReactGA.initialize(GAMeasurementID);\n\t\n\treturn (\n\t\t<Provider value={client.getClient()}>\n\t\t\t<Elements stripe={stripePromise}>\n\t\t\t\t<BrowserRouter>\n\t\t\t\t\t<Routes>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/article/:id\"\n\t\t\t\t\t\t\telement={<PublicArticle />}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/activate/:token\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<ActivatePage />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/login\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<Login />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/account\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<Account />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/forgot\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<ForgotPassword />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/reset\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<ResetPassword />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/redirect-mobile\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<MobileRedirect />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/payment\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<StripePayment />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/payment-redirect\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<PaymentRedirect/>\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/redirect-mobile-deep-linking\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<MobileRedirectDeepLinking />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/support\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<CreateSupport />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/support/:id\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<SupportRequest />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/billing/success\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<BillingSuccess />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/download\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<Download />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/billing/error\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<BillingError />\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/referral/:username\"\n\t\t\t\t\t\t\telement={<ConfirmationPage />}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tkey=\"admin\"\n\t\t\t\t\t\t\tpath=\"/admin/*\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t<Admin\n\t\t\t\t\t\t\t\t\t\ttitle=\"Uplevyl Admin Panel\"\n\t\t\t\t\t\t\t\t\t\tloginPage={CustomLoginPage}\n\t\t\t\t\t\t\t\t\t\tdataProvider={builDataProvider(client)}\n\t\t\t\t\t\t\t\t\t\tauthProvider={buildAuthProvider(client)}\n\t\t\t\t\t\t\t\t\t\t// Custom components\n\t\t\t\t\t\t\t\t\t\tdashboard={Dashboard}\n\t\t\t\t\t\t\t\t\t\ttheme={lightTheme}\n\t\t\t\t\t\t\t\t\t\tlayout={Layout}\n\t\t\t\t\t\t\t\t\t\tbasename=\"/admin\"\n\t\t\t\t\t\t\t\t\t// history={history}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"users\"\n\t\t\t\t\t\t\t\t\t\t\tlist={UserList}\n\t\t\t\t\t\t\t\t\t\t\tcreate={UserCreate}\n\t\t\t\t\t\t\t\t\t\t\tedit={UserEdit}\n\t\t\t\t\t\t\t\t\t\t\tshow={UserShow}\n\t\t\t\t\t\t\t\t\t\t\ticon={UserIcon}\n\t\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: 'Members',\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"livingRooms\"\n\t\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: 'Living Rooms',\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\tshow={LivingRoomShow}\n\t\t\t\t\t\t\t\t\t\t\tlist={LivingRoomPage}\n\t\t\t\t\t\t\t\t\t\t\tcreate={LivingRoomCreate}\n\t\t\t\t\t\t\t\t\t\t\tedit={LivingRoomEdit}\n\t\t\t\t\t\t\t\t\t\t\ticon={ArticleIcon}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"reports\"\n\t\t\t\t\t\t\t\t\t\t\tlist={ReportList}\n\t\t\t\t\t\t\t\t\t\t\tedit={ReportEdit}\n\t\t\t\t\t\t\t\t\t\t\tshow={ReportShow}\n\t\t\t\t\t\t\t\t\t\t\ticon={ReportIcon}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<Resource name=\"milestones\" />\n\t\t\t\t\t\t\t\t\t\t<Resource name=\"profile\" />\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"polls\"\n\t\t\t\t\t\t\t\t\t\t\tshow={PollShow}\n\t\t\t\t\t\t\t\t\t\t\tedit={PollEdit}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"schedules\"\n\t\t\t\t\t\t\t\t\t\t\tlist={ScheduleList}\n\t\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\t\tlabel: 'Daily Posts',\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"freeTexts\"\n\t\t\t\t\t\t\t\t\t\t\tshow={FreeTextShow}\n\t\t\t\t\t\t\t\t\t\t\tedit={FreeTextEdit}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<Resource\n\t\t\t\t\t\t\t\t\t\t\tname=\"quotes\"\n\t\t\t\t\t\t\t\t\t\t\tshow={QuoteShow}\n\t\t\t\t\t\t\t\t\t\t\tedit={QuoteEdit}\n\t\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t\t<CustomRoutes>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/schedule/create\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={<ScheduleCreatePage />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/schedule/create-poll\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={<PollCreatePage />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/schedule/create-quote\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={<QuoteCreatePage />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/schedule/create-free-text\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={<FreeTextCreatePage />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/polls\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<RedirectScheduleList />\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/freeTexts\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<RedirectScheduleList />\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/quotes\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<RedirectScheduleList />\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\tpath=\"/graphs\"\n\t\t\t\t\t\t\t\t\t\t\t\telement={<ShowGraphsPage />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</CustomRoutes>\n\t\t\t\t\t\t\t\t\t</Admin>\n\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{/* </Route> */}\n\n\t\t\t\t\t\t<Route path=\"/\" element={<FutureForwardPage />} />\n\n\t\t\t\t\t\t{/* Add route for intake page */}\n\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\tpath=\"/intake\"\n\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t<IntakeProvider>\n\t\t\t\t\t\t\t\t\t<ClientWrapper>\n\t\t\t\t\t\t\t\t\t\t<IntakePage hash={window.location.hash ?? undefined} />\n\t\t\t\t\t\t\t\t\t</ClientWrapper>\n\t\t\t\t\t\t\t\t</IntakeProvider>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Routes>\n\t\t\t\t</BrowserRouter>\n\t\t\t</Elements>\n\t\t</Provider>\n\t);\n};\n\nexport default App;\n","import { TokenService } from '../token.service';\nimport { ApolloClient } from './apollo.client';\nimport { IClient } from './client.interface';\nimport { UrqlClient } from './urql.client';\n\nexport const buildClient = (type: 'apollo' | 'urql'): IClient => {\n\tif (!process.env.REACT_APP_API) throw new Error('No API URL given');\n\tconst url = process.env.REACT_APP_API;\n\n\tconst tokenService = new TokenService();\n\n\tif (type === 'urql') return new UrqlClient(url, tokenService);\n\n\treturn new ApolloClient(url, tokenService);\n};\n","import { ReportHandler } from 'web-vitals';\n\nconst reportWebVitals = (onPerfEntry?: ReportHandler) => {\n\tif (onPerfEntry && onPerfEntry instanceof Function) {\n\t\timport('web-vitals').then(\n\t\t\t({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n\t\t\t\tgetCLS(onPerfEntry);\n\t\t\t\tgetFID(onPerfEntry);\n\t\t\t\tgetFCP(onPerfEntry);\n\t\t\t\tgetLCP(onPerfEntry);\n\t\t\t\tgetTTFB(onPerfEntry);\n\t\t\t},\n\t\t);\n\t}\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { datadogRum } from '@datadog/browser-rum';\nimport { asyncWithLDProvider } from 'launchdarkly-react-client-sdk';\nimport App from './App';\nimport './index.css';\nimport reportWebVitals from './reportWebVitals';\n\ndatadogRum.init({\n\tapplicationId: process.env.REACT_APP_DD_APP_ID ?? '',\n\tclientToken: process.env.REACT_APP_DD_CLIENT_TOKEN ?? '',\n\tsite: process.env.REACT_APP_DD_SITE ?? '',\n\tservice: process.env.REACT_APP_DD_SERVICE ?? 'web-app',\n\n\t// Specify a version number to identify the deployed version of your application in Datadog\n\t// version: '1.0.0',\n\tsampleRate: 100,\n\tpremiumSampleRate: 100,\n\ttrackInteractions: true,\n\tdefaultPrivacyLevel: 'allow',\n});\n\ndatadogRum.startSessionReplayRecording();\n\n(async () => {\n\tconsole.log('I am herer', process.env.REACT_APP_LD_ID);\n\tconst LDProvider = await asyncWithLDProvider({\n\t\tclientSideID: process.env.REACT_APP_LD_ID,\n\t});\n\tReactDOM.render(\n\t\t<LDProvider>\n\t\t\t<App />\n\t\t</LDProvider>,\n\t\tdocument.getElementById('root'),\n\t);\n})();\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}